blob: d0917c2d61c00e0c9849f4e2fcc01cd2b23a0c86 [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 */
David Hendricks67db2eb2010-09-03 03:35:48 +00008787 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008788 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008790 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008791 .block_erasers =
8792 {
8793 {
8794 .eraseblocks = { {4 * 1024, 32} },
8795 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008796 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008797 .eraseblocks = { {64 * 1024, 2} },
8798 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008799 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008800 .eraseblocks = { {128 * 1024, 1} },
8801 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008802 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008803 .eraseblocks = { {128 * 1024, 1} },
8804 .block_erase = spi_block_erase_c7,
8805 },
8806 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008807 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008808 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008809 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008810 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008811 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008812 },
8813
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008814 {
8815 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008816 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008817 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008818 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008819 .model_id = MACRONIX_MX25L12805D,
8820 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008821 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008822 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008824 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008825 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008826 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008827 .block_erasers =
8828 {
8829 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008830 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008831 .block_erase = spi_block_erase_20,
8832 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008833 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008834 .block_erase = spi_block_erase_d8,
8835 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008836 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008837 .block_erase = spi_block_erase_60,
8838 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008839 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008840 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008841 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008842 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008843 .printlock = spi_prettyprint_status_register_bp3_srwd,
8844 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008845 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008846 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008848 },
8849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 {
8851 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008852 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008853 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008854 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008855 .model_id = MACRONIX_MX25L12805D,
8856 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008858 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008859 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008860 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008862 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008863 .block_erasers =
8864 {
8865 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008866 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008867 .block_erase = spi_block_erase_20,
8868 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008869 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008870 .block_erase = spi_block_erase_52,
8871 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008872 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008873 .block_erase = spi_block_erase_d8,
8874 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008875 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008876 .block_erase = spi_block_erase_60,
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_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008880 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008881 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008882 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8883 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8884 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008885 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008886 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008887 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008888 },
8889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008890 {
8891 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008892 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008893 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008894 .manufacture_id = MACRONIX_ID,
8895 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008896 .total_size = 2048,
8897 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008898 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008899 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008901 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008902 .block_erasers =
8903 {
8904 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008905 .eraseblocks = { {64 * 1024, 32} },
8906 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008907 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008908 .eraseblocks = { {64 * 1024, 32} },
8909 .block_erase = spi_block_erase_d8,
8910 }, {
8911 .eraseblocks = { {2 * 1024 * 1024, 1} },
8912 .block_erase = spi_block_erase_60,
8913 }, {
8914 .eraseblocks = { {2 * 1024 * 1024, 1} },
8915 .block_erase = spi_block_erase_c7,
8916 },
8917 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008918 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008919 .unlock = spi_disable_blockprotect,
8920 .write = spi_chip_write_256,
8921 .read = spi_chip_read, /* Fast read (0x0B) supported */
8922 .voltage = {2700, 3600},
8923 },
8924
8925 {
8926 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008927 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008928 .bustype = BUS_SPI,
8929 .manufacture_id = MACRONIX_ID,
8930 .model_id = MACRONIX_MX25L1605,
8931 .total_size = 2048,
8932 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008933 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8935 .tested = TEST_OK_PREW,
8936 .probe = probe_spi_rdid,
8937 .probe_timing = TIMING_ZERO,
8938 .block_erasers =
8939 {
8940 {
8941 .eraseblocks = { {4 * 1024, 512} },
8942 .block_erase = spi_block_erase_20,
8943 }, {
8944 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008945 .block_erase = spi_block_erase_52,
8946 }, {
8947 .eraseblocks = { {64 * 1024, 32} },
8948 .block_erase = spi_block_erase_d8,
8949 }, {
8950 .eraseblocks = { {2 * 1024 * 1024, 1} },
8951 .block_erase = spi_block_erase_60,
8952 }, {
8953 .eraseblocks = { {2 * 1024 * 1024, 1} },
8954 .block_erase = spi_block_erase_c7,
8955 },
8956 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008957 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008958 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008959 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008960 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008961 .voltage = {2700, 3600},
8962 },
8963
8964 {
8965 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008966 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008967 .bustype = BUS_SPI,
8968 .manufacture_id = MACRONIX_ID,
8969 .model_id = MACRONIX_MX25L1605,
8970 .total_size = 2048,
8971 .page_size = 256,
8972 .feature_bits = FEATURE_WRSR_WREN,
8973 .tested = TEST_OK_PREW,
8974 .probe = probe_spi_rdid,
8975 .probe_timing = TIMING_ZERO,
8976 .block_erasers =
8977 {
8978 {
8979 .eraseblocks = { {4 * 1024, 512} },
8980 .block_erase = spi_block_erase_20,
8981 }, {
8982 .eraseblocks = { {64 * 1024, 32} },
8983 .block_erase = spi_block_erase_d8,
8984 }, {
8985 .eraseblocks = { {2 * 1024 * 1024, 1} },
8986 .block_erase = spi_block_erase_60,
8987 }, {
8988 .eraseblocks = { {2 * 1024 * 1024, 1} },
8989 .block_erase = spi_block_erase_c7,
8990 },
8991 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008992 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008993 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008994 .write = spi_chip_write_256,
8995 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008996 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008997 },
8998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008999 {
9000 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009001 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009002 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009003 .manufacture_id = MACRONIX_ID,
9004 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009005 .total_size = 2048,
9006 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009007 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9008 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01009009 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009010 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009011 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009012 .block_erasers =
9013 {
9014 {
9015 .eraseblocks = { {4 * 1024, 512} },
9016 .block_erase = spi_block_erase_20,
9017 }, {
9018 .eraseblocks = { {64 * 1024, 32} },
9019 .block_erase = spi_block_erase_d8,
9020 }, {
9021 .eraseblocks = { {2 * 1024 * 1024, 1} },
9022 .block_erase = spi_block_erase_60,
9023 }, {
9024 .eraseblocks = { {2 * 1024 * 1024, 1} },
9025 .block_erase = spi_block_erase_c7,
9026 }
9027 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009028 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009029 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009030 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009031 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009032 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009033 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00009034
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009035 {
9036 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00009037 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009038 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009039 .manufacture_id = MACRONIX_ID,
9040 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009041 .total_size = 2048,
9042 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009043 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9044 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009045 .tested = TEST_UNTESTED,
9046 .probe = probe_spi_rdid,
9047 .probe_timing = TIMING_ZERO,
9048 .block_erasers =
9049 {
9050 {
9051 .eraseblocks = { {4 * 1024, 512} },
9052 .block_erase = spi_block_erase_20,
9053 }, {
9054 .eraseblocks = { {64 * 1024, 32} },
9055 .block_erase = spi_block_erase_d8,
9056 }, {
9057 .eraseblocks = { {2 * 1024 * 1024, 1} },
9058 .block_erase = spi_block_erase_60,
9059 }, {
9060 .eraseblocks = { {2 * 1024 * 1024, 1} },
9061 .block_erase = spi_block_erase_c7,
9062 }
9063 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009064 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009065 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009066 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009067 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009068 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00009069 },
9070
9071 {
9072 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009073 .name = "MX25L2005(C)/MX25L2006E",
9074 .bustype = BUS_SPI,
9075 .manufacture_id = MACRONIX_ID,
9076 .model_id = MACRONIX_MX25L2005,
9077 .total_size = 256,
9078 .page_size = 256,
9079 .feature_bits = FEATURE_WRSR_WREN,
9080 .tested = TEST_OK_PREW,
9081 .probe = probe_spi_rdid,
9082 .probe_timing = TIMING_ZERO,
9083 .block_erasers =
9084 {
9085 {
9086 .eraseblocks = { {4 * 1024, 64} },
9087 .block_erase = spi_block_erase_20,
9088 }, {
9089 .eraseblocks = { {64 * 1024, 4} },
9090 .block_erase = spi_block_erase_52,
9091 }, {
9092 .eraseblocks = { {64 * 1024, 4} },
9093 .block_erase = spi_block_erase_d8,
9094 }, {
9095 .eraseblocks = { {256 * 1024, 1} },
9096 .block_erase = spi_block_erase_60,
9097 }, {
9098 .eraseblocks = { {256 * 1024, 1} },
9099 .block_erase = spi_block_erase_c7,
9100 },
9101 },
9102 .printlock = spi_prettyprint_status_register_bp1_srwd,
9103 .unlock = spi_disable_blockprotect,
9104 .write = spi_chip_write_256,
9105 .read = spi_chip_read, /* Fast read (0x0B) supported */
9106 .voltage = {2700, 3600},
9107 },
9108
9109 {
9110 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10009111 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009112 .bustype = BUS_SPI,
9113 .manufacture_id = MACRONIX_ID,
9114 .model_id = MACRONIX_MX25L25635F,
9115 .total_size = 32768,
9116 .page_size = 256,
9117 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
9119 .tested = TEST_OK_PREW,
9120 .probe = probe_spi_rdid,
9121 .probe_timing = TIMING_ZERO,
9122 .block_erasers =
9123 {
9124 {
9125 .eraseblocks = { {4 * 1024, 8192} },
9126 .block_erase = spi_block_erase_21,
9127 }, {
9128 .eraseblocks = { {4 * 1024, 8192} },
9129 .block_erase = spi_block_erase_20,
9130 }, {
9131 .eraseblocks = { {32 * 1024, 1024} },
9132 .block_erase = spi_block_erase_5c,
9133 }, {
9134 .eraseblocks = { {32 * 1024, 1024} },
9135 .block_erase = spi_block_erase_52,
9136 }, {
9137 .eraseblocks = { {64 * 1024, 512} },
9138 .block_erase = spi_block_erase_dc,
9139 }, {
9140 .eraseblocks = { {64 * 1024, 512} },
9141 .block_erase = spi_block_erase_d8,
9142 }, {
9143 .eraseblocks = { {32 * 1024 * 1024, 1} },
9144 .block_erase = spi_block_erase_60,
9145 }, {
9146 .eraseblocks = { {32 * 1024 * 1024, 1} },
9147 .block_erase = spi_block_erase_c7,
9148 }
9149 },
9150 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9151 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9152 .unlock = spi_disable_blockprotect_bp3_srwd,
9153 .write = spi_chip_write_256,
9154 .read = spi_chip_read, /* Fast read (0x0B) supported */
9155 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01009156 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009157 },
9158
9159 {
9160 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00009161 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009162 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009163 .manufacture_id = MACRONIX_ID,
9164 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009165 .total_size = 4096,
9166 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00009167 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00009168 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009169 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009170 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009171 .block_erasers =
9172 {
9173 {
Stefan Tauner226037d2013-03-16 01:22:12 +00009174 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009175 .block_erase = spi_block_erase_20,
9176 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00009177 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009178 .block_erase = spi_block_erase_d8,
9179 }, {
9180 .eraseblocks = { {4 * 1024 * 1024, 1} },
9181 .block_erase = spi_block_erase_60,
9182 }, {
9183 .eraseblocks = { {4 * 1024 * 1024, 1} },
9184 .block_erase = spi_block_erase_c7,
9185 },
9186 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009187 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009188 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009189 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009190 .read = spi_chip_read, /* Fast read (0x0B) supported */
9191 .voltage = {2700, 3600},
9192 },
9193
9194 {
9195 .vendor = "Macronix",
9196 .name = "MX25L3205D/MX25L3208D",
9197 .bustype = BUS_SPI,
9198 .manufacture_id = MACRONIX_ID,
9199 .model_id = MACRONIX_MX25L3205,
9200 .total_size = 4096,
9201 .page_size = 256,
9202 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9203 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9204 .tested = TEST_OK_PREW,
9205 .probe = probe_spi_rdid,
9206 .probe_timing = TIMING_ZERO,
9207 .block_erasers =
9208 {
9209 {
9210 .eraseblocks = { {4 * 1024, 1024} },
9211 .block_erase = spi_block_erase_20,
9212 }, {
9213 .eraseblocks = { {64 * 1024, 64} },
9214 .block_erase = spi_block_erase_d8,
9215 }, {
9216 .eraseblocks = { {4 * 1024 * 1024, 1} },
9217 .block_erase = spi_block_erase_60,
9218 }, {
9219 .eraseblocks = { {4 * 1024 * 1024, 1} },
9220 .block_erase = spi_block_erase_c7,
9221 },
9222 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009223 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009224 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009225 .write = spi_chip_write_256,
9226 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
9227 .voltage = {2700, 3600},
9228 },
9229
9230 {
9231 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009232 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00009233 .bustype = BUS_SPI,
9234 .manufacture_id = MACRONIX_ID,
9235 .model_id = MACRONIX_MX25L3205,
9236 .total_size = 4096,
9237 .page_size = 256,
9238 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9240 .tested = TEST_OK_PREW,
9241 .probe = probe_spi_rdid,
9242 .probe_timing = TIMING_ZERO,
9243 .block_erasers =
9244 {
9245 {
9246 .eraseblocks = { {4 * 1024, 1024} },
9247 .block_erase = spi_block_erase_20,
9248 }, {
9249 .eraseblocks = { {64 * 1024, 64} },
9250 .block_erase = spi_block_erase_d8,
9251 }, {
9252 .eraseblocks = { {64 * 1024, 64} },
9253 .block_erase = spi_block_erase_52,
9254 }, {
9255 .eraseblocks = { {4 * 1024 * 1024, 1} },
9256 .block_erase = spi_block_erase_60,
9257 }, {
9258 .eraseblocks = { {4 * 1024 * 1024, 1} },
9259 .block_erase = spi_block_erase_c7,
9260 },
9261 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009262 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009263 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009264 .write = spi_chip_write_256,
9265 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009266 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009267 },
9268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009269 {
9270 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009271 .name = "MX25L3235D",
9272 .bustype = BUS_SPI,
9273 .manufacture_id = MACRONIX_ID,
9274 .model_id = MACRONIX_MX25L3235D,
9275 .total_size = 4096,
9276 .page_size = 256,
9277 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
9278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9279 .tested = TEST_UNTESTED,
9280 .probe = probe_spi_rdid,
9281 .probe_timing = TIMING_ZERO,
9282 .block_erasers =
9283 {
9284 {
9285 .eraseblocks = { {4 * 1024, 1024} },
9286 .block_erase = spi_block_erase_20,
9287 }, {
9288 .eraseblocks = { {64 * 1024, 64} },
9289 .block_erase = spi_block_erase_d8,
9290 }, {
9291 .eraseblocks = { {4 * 1024 * 1024, 1} },
9292 .block_erase = spi_block_erase_60,
9293 }, {
9294 .eraseblocks = { {4 * 1024 * 1024, 1} },
9295 .block_erase = spi_block_erase_c7,
9296 }
9297 },
9298 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9299 .unlock = spi_disable_blockprotect_bp3_srwd,
9300 .write = spi_chip_write_256,
9301 .read = spi_chip_read,
9302 .voltage = {2700, 3600},
9303 },
9304
9305 {
9306 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02009307 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009308 .bustype = BUS_SPI,
9309 .manufacture_id = MACRONIX_ID,
9310 .model_id = MACRONIX_MX25L3205,
9311 .total_size = 4096,
9312 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02009313 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009315 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009316 .probe = probe_spi_rdid,
9317 .probe_timing = TIMING_ZERO,
9318 .block_erasers =
9319 {
9320 {
9321 .eraseblocks = { {4 * 1024, 1024} },
9322 .block_erase = spi_block_erase_20,
9323 }, {
9324 .eraseblocks = { {32 * 1024, 128} },
9325 .block_erase = spi_block_erase_52,
9326 }, {
9327 .eraseblocks = { {64 * 1024, 64} },
9328 .block_erase = spi_block_erase_d8,
9329 }, {
9330 .eraseblocks = { {4 * 1024 * 1024, 1} },
9331 .block_erase = spi_block_erase_60,
9332 }, {
9333 .eraseblocks = { {4 * 1024 * 1024, 1} },
9334 .block_erase = spi_block_erase_c7,
9335 },
9336 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009337 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009338 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009339 .write = spi_chip_write_256,
9340 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02009341 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009342 },
9343
9344 {
9345 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009346 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009347 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009348 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009349 .model_id = MACRONIX_MX25L4005,
9350 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009351 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009352 .feature_bits = FEATURE_WRSR_WREN,
9353 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009355 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009356 .block_erasers =
9357 {
9358 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009359 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009360 .block_erase = spi_block_erase_20,
9361 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009362 .eraseblocks = { {64 * 1024, 8} },
9363 .block_erase = spi_block_erase_52,
9364 }, {
9365 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009366 .block_erase = spi_block_erase_d8,
9367 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009368 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009369 .block_erase = spi_block_erase_60,
9370 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009371 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009372 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009373 },
Sean Nelson54596372010-01-09 05:30:14 +00009374 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009375 .printlock = spi_prettyprint_status_register_bp2_srwd,
9376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009377 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009378 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009379 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009380 },
9381
9382 {
9383 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009384 .name = "MX25L512(E)/MX25V512(C)",
9385 .bustype = BUS_SPI,
9386 .manufacture_id = MACRONIX_ID,
9387 .model_id = MACRONIX_MX25L512,
9388 .total_size = 64,
9389 .page_size = 256,
9390 /* MX25L512E supports SFDP */
9391 .feature_bits = FEATURE_WRSR_WREN,
9392 .tested = TEST_OK_PREW,
9393 .probe = probe_spi_rdid,
9394 .probe_timing = TIMING_ZERO,
9395 .block_erasers =
9396 {
9397 {
9398 .eraseblocks = { {4 * 1024, 16} },
9399 .block_erase = spi_block_erase_20,
9400 }, {
9401 .eraseblocks = { {64 * 1024, 1} },
9402 .block_erase = spi_block_erase_52,
9403 }, {
9404 .eraseblocks = { {64 * 1024, 1} },
9405 .block_erase = spi_block_erase_d8,
9406 }, {
9407 .eraseblocks = { {64 * 1024, 1} },
9408 .block_erase = spi_block_erase_60,
9409 }, {
9410 .eraseblocks = { {64 * 1024, 1} },
9411 .block_erase = spi_block_erase_c7,
9412 },
9413 },
9414 .printlock = spi_prettyprint_status_register_bp1_srwd,
9415 .unlock = spi_disable_blockprotect,
9416 .write = spi_chip_write_256,
9417 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
9418 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9419 },
9420
9421 {
9422 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009423 .name = "MX25L5121E",
9424 .bustype = BUS_SPI,
9425 .manufacture_id = MACRONIX_ID,
9426 .model_id = MACRONIX_MX25L5121E,
9427 .total_size = 64,
9428 .page_size = 32,
9429 .feature_bits = FEATURE_WRSR_WREN,
9430 .tested = TEST_OK_PREW,
9431 .probe = probe_spi_rdid,
9432 .probe_timing = TIMING_ZERO,
9433 .block_erasers =
9434 {
9435 {
9436 .eraseblocks = { {4 * 1024, 16} },
9437 .block_erase = spi_block_erase_20,
9438 }, {
9439 .eraseblocks = { {64 * 1024, 1} },
9440 .block_erase = spi_block_erase_52,
9441 }, {
9442 .eraseblocks = { {64 * 1024, 1} },
9443 .block_erase = spi_block_erase_d8,
9444 }, {
9445 .eraseblocks = { {64 * 1024, 1} },
9446 .block_erase = spi_block_erase_60,
9447 }, {
9448 .eraseblocks = { {64 * 1024, 1} },
9449 .block_erase = spi_block_erase_c7,
9450 },
9451 },
9452 .printlock = spi_prettyprint_status_register_bp1_srwd,
9453 .unlock = spi_disable_blockprotect,
9454 .write = spi_chip_write_256,
9455 .read = spi_chip_read, /* Fast read (0x0B) supported */
9456 .voltage = {2700, 3600},
9457 },
9458
9459 {
9460 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009461 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009462 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009463 .manufacture_id = MACRONIX_ID,
9464 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009465 .total_size = 8192,
9466 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009467 /* Has an additional 512B EEPROM sector */
9468 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009469 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009470 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009471 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009472 .block_erasers =
9473 {
9474 {
9475 .eraseblocks = { {64 * 1024, 128} },
9476 .block_erase = spi_block_erase_20,
9477 }, {
9478 .eraseblocks = { {64 * 1024, 128} },
9479 .block_erase = spi_block_erase_d8,
9480 }, {
9481 .eraseblocks = { {8 * 1024 * 1024, 1} },
9482 .block_erase = spi_block_erase_60,
9483 }, {
9484 .eraseblocks = { {8 * 1024 * 1024, 1} },
9485 .block_erase = spi_block_erase_c7,
9486 }
9487 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009488 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009489 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009490 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009491 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009492 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009493 },
9494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009495 {
9496 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009497 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009498 .bustype = BUS_SPI,
9499 .manufacture_id = MACRONIX_ID,
9500 .model_id = MACRONIX_MX25L6405,
9501 .total_size = 8192,
9502 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009503 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009504 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9505 .tested = TEST_OK_PREW,
9506 .probe = probe_spi_rdid,
9507 .probe_timing = TIMING_ZERO,
9508 .block_erasers =
9509 {
9510 {
9511 .eraseblocks = { {4 * 1024, 2048} },
9512 .block_erase = spi_block_erase_20,
9513 }, {
9514 .eraseblocks = { {64 * 1024, 128} },
9515 .block_erase = spi_block_erase_d8,
9516 }, {
9517 .eraseblocks = { {8 * 1024 * 1024, 1} },
9518 .block_erase = spi_block_erase_60,
9519 }, {
9520 .eraseblocks = { {8 * 1024 * 1024, 1} },
9521 .block_erase = spi_block_erase_c7,
9522 }
9523 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009524 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009525 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009526 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009527 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009528 .voltage = {2700, 3600},
9529 },
9530
9531 {
9532 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009533 .name = "MX25L6406E/MX25L6408E",
9534 .bustype = BUS_SPI,
9535 .manufacture_id = MACRONIX_ID,
9536 .model_id = MACRONIX_MX25L6405,
9537 .total_size = 8192,
9538 .page_size = 256,
9539 /* MX25L6406E supports SFDP */
9540 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9541 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9542 .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_52,
9553 }, {
9554 .eraseblocks = { {64 * 1024, 128} },
9555 .block_erase = spi_block_erase_d8,
9556 }, {
9557 .eraseblocks = { {8 * 1024 * 1024, 1} },
9558 .block_erase = spi_block_erase_60,
9559 }, {
9560 .eraseblocks = { {8 * 1024 * 1024, 1} },
9561 .block_erase = spi_block_erase_c7,
9562 }
9563 },
9564 .printlock = spi_prettyprint_status_register_bp3_srwd,
9565 .unlock = spi_disable_blockprotect_bp3_srwd,
9566 .write = spi_chip_write_256,
9567 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9568 .voltage = {2700, 3600},
9569 },
9570
9571 {
9572 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009573 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009574 .bustype = BUS_SPI,
9575 .manufacture_id = MACRONIX_ID,
9576 .model_id = MACRONIX_MX25L6405,
9577 .total_size = 8192,
9578 .page_size = 256,
9579 /* supports SFDP */
9580 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9582 .tested = TEST_OK_PREW,
9583 .probe = probe_spi_rdid,
9584 .probe_timing = TIMING_ZERO,
9585 .block_erasers =
9586 {
9587 {
9588 .eraseblocks = { {4 * 1024, 2048} },
9589 .block_erase = spi_block_erase_20,
9590 }, {
9591 .eraseblocks = { {32 * 1024, 256} },
9592 .block_erase = spi_block_erase_52,
9593 }, {
9594 .eraseblocks = { {64 * 1024, 128} },
9595 .block_erase = spi_block_erase_d8,
9596 }, {
9597 .eraseblocks = { {8 * 1024 * 1024, 1} },
9598 .block_erase = spi_block_erase_60,
9599 }, {
9600 .eraseblocks = { {8 * 1024 * 1024, 1} },
9601 .block_erase = spi_block_erase_c7,
9602 }
9603 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009604 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009605 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009606 .write = spi_chip_write_256,
9607 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9608 .voltage = {2700, 3600},
9609 },
9610
9611 {
9612 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009613 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009614 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009615 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009616 .model_id = MACRONIX_MX25L6495F,
9617 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009618 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009619 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009620 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009621 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009622 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009623 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009624 .block_erasers =
9625 {
9626 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009627 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009628 .block_erase = spi_block_erase_20,
9629 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009630 .eraseblocks = { {32 * 1024, 256} },
9631 .block_erase = spi_block_erase_52,
9632 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309633 .eraseblocks = { {64 * 1024, 128} },
9634 .block_erase = spi_block_erase_d8,
9635 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009636 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009637 .block_erase = spi_block_erase_60,
9638 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009639 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009640 .block_erase = spi_block_erase_c7,
9641 }
9642 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009643 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009644 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009645 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009646 .voltage = {2700, 3600},
9647 },
9648
9649 {
9650 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009651 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009652 .bustype = BUS_SPI,
9653 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009654 .model_id = MACRONIX_MX25L8005,
9655 .total_size = 1024,
9656 .page_size = 256,
9657 /* MX25L8006E, MX25L8008E support SFDP */
9658 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9659 .feature_bits = FEATURE_WRSR_WREN,
9660 .tested = TEST_OK_PREW,
9661 .probe = probe_spi_rdid,
9662 .probe_timing = TIMING_ZERO,
9663 .block_erasers =
9664 {
9665 {
9666 .eraseblocks = { {4 * 1024, 256} },
9667 .block_erase = spi_block_erase_20,
9668 }, {
9669 .eraseblocks = { {64 * 1024, 16} },
9670 .block_erase = spi_block_erase_52,
9671 }, {
9672 .eraseblocks = { {64 * 1024, 16} },
9673 .block_erase = spi_block_erase_d8,
9674 }, {
9675 .eraseblocks = { {1024 * 1024, 1} },
9676 .block_erase = spi_block_erase_60,
9677 }, {
9678 .eraseblocks = { {1024 * 1024, 1} },
9679 .block_erase = spi_block_erase_c7,
9680 },
9681 },
9682 .printlock = spi_prettyprint_status_register_bp2_srwd,
9683 .unlock = spi_disable_blockprotect,
9684 .write = spi_chip_write_256,
9685 .read = spi_chip_read, /* Fast read (0x0B) supported */
9686 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9687 },
9688
9689 {
9690 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009691 .name = "MX25R3235F",
9692 .bustype = BUS_SPI,
9693 .manufacture_id = MACRONIX_ID,
9694 .model_id = MACRONIX_MX25R3235F,
9695 .total_size = 4096,
9696 .page_size = 256,
9697 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9698 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9699 .tested = TEST_OK_PREW,
9700 .probe = probe_spi_rdid,
9701 .probe_timing = TIMING_ZERO,
9702 .block_erasers =
9703 {
9704 {
9705 .eraseblocks = { {4 * 1024, 1024} },
9706 .block_erase = spi_block_erase_20,
9707 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009708 .eraseblocks = { {32 * 1024, 128} },
9709 .block_erase = spi_block_erase_52,
9710 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309711 .eraseblocks = { {64 * 1024, 64} },
9712 .block_erase = spi_block_erase_d8,
9713 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009714 .eraseblocks = { {4 * 1024 * 1024, 1} },
9715 .block_erase = spi_block_erase_60,
9716 }, {
9717 .eraseblocks = { {4 * 1024 * 1024, 1} },
9718 .block_erase = spi_block_erase_c7,
9719 }
9720 },
9721 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9722 .unlock = spi_disable_blockprotect_bp3_srwd,
9723 .write = spi_chip_write_256,
9724 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9725 .voltage = {1650, 3600},
9726 },
9727
9728 {
9729 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009730 .name = "MX25R6435F",
9731 .bustype = BUS_SPI,
9732 .manufacture_id = MACRONIX_ID,
9733 .model_id = MACRONIX_MX25R6435F,
9734 .total_size = 8192,
9735 .page_size = 256,
9736 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9737 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9738 .tested = TEST_OK_PREW,
9739 .probe = probe_spi_rdid,
9740 .probe_timing = TIMING_ZERO,
9741 .block_erasers =
9742 {
9743 {
9744 .eraseblocks = { {4 * 1024, 2048} },
9745 .block_erase = spi_block_erase_20,
9746 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009747 .eraseblocks = { {32 * 1024, 256} },
9748 .block_erase = spi_block_erase_52,
9749 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309750 .eraseblocks = { {64 * 1024, 128} },
9751 .block_erase = spi_block_erase_d8,
9752 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009753 .eraseblocks = { {8 * 1024 * 1024, 1} },
9754 .block_erase = spi_block_erase_60,
9755 }, {
9756 .eraseblocks = { {8 * 1024 * 1024, 1} },
9757 .block_erase = spi_block_erase_c7,
9758 }
9759 },
9760 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9761 .unlock = spi_disable_blockprotect_bp3_srwd,
9762 .write = spi_chip_write_256,
9763 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9764 .voltage = {1650, 3600},
9765 },
9766
9767 {
9768 .vendor = "Macronix",
9769 .name = "MX25U12835F",
9770 .bustype = BUS_SPI,
9771 .manufacture_id = MACRONIX_ID,
9772 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009773 .total_size = 16384,
9774 .page_size = 256,
9775 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_35,
9777 .dummy_cycles =
9778 {
9779 /* 133MHz version has configuration register
9780 bit to toggle 8 dummy cycles for QIO, defaults: */
9781 .qpi_fast_read = 4,
9782 .qpi_fast_read_qio = 6,
9783 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009784 .tested = TEST_OK_PREW,
9785 .probe = probe_spi_rdid,
9786 .probe_timing = TIMING_ZERO,
9787 .block_erasers =
9788 {
9789 {
9790 .eraseblocks = { {4 * 1024, 4096} },
9791 .block_erase = spi_block_erase_20,
9792 }, {
9793 .eraseblocks = { {32 * 1024, 512} },
9794 .block_erase = spi_block_erase_52,
9795 }, {
9796 .eraseblocks = { {64 * 1024, 256} },
9797 .block_erase = spi_block_erase_d8,
9798 }, {
9799 .eraseblocks = { {16 * 1024 * 1024, 1} },
9800 .block_erase = spi_block_erase_60,
9801 }, {
9802 .eraseblocks = { {16 * 1024 * 1024, 1} },
9803 .block_erase = spi_block_erase_c7,
9804 }
9805 },
Angel Ponsf112e242018-09-30 20:14:17 +02009806 /* TODO: security register */
9807 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9808 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009809 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009810 .read = spi_chip_read,
Angel Ponsf112e242018-09-30 20:14:17 +02009811 .voltage = {1650, 2000},
9812 },
9813
9814 {
9815 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009816 .name = "MX25U1635E",
9817 .bustype = BUS_SPI,
9818 .manufacture_id = MACRONIX_ID,
9819 .model_id = MACRONIX_MX25U1635E,
9820 .total_size = 2048,
9821 .page_size = 256,
9822 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9824 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9825 .dummy_cycles =
9826 {
9827 .qpi_fast_read = 4,
9828 .qpi_fast_read_qio = 6,
9829 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009830 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009831 .probe = probe_spi_rdid,
9832 .probe_timing = TIMING_ZERO,
9833 .block_erasers =
9834 {
9835 {
9836 .eraseblocks = { {4 * 1024, 512} },
9837 .block_erase = spi_block_erase_20,
9838 }, {
9839 .eraseblocks = { {32 * 1024, 64} },
9840 .block_erase = spi_block_erase_52,
9841 }, {
9842 .eraseblocks = { {64 * 1024, 32} },
9843 .block_erase = spi_block_erase_d8,
9844 }, {
9845 .eraseblocks = { {2 * 1024 * 1024, 1} },
9846 .block_erase = spi_block_erase_60,
9847 }, {
9848 .eraseblocks = { {2 * 1024 * 1024, 1} },
9849 .block_erase = spi_block_erase_c7,
9850 }
9851 },
9852 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009853 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009854 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009855 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009856 .read = spi_chip_read,
Vincent Palatinf800f552013-03-15 02:03:16 +00009857 .voltage = {1650, 2000},
9858 },
9859
9860 {
9861 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009862 .name = "MX25U25635F",
9863 .bustype = BUS_SPI,
9864 .manufacture_id = MACRONIX_ID,
9865 .model_id = MACRONIX_MX25U25635F,
9866 .total_size = 32768,
9867 .page_size = 256,
9868 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009869 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9870 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9871 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009872 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009873 .probe = probe_spi_rdid,
9874 .probe_timing = TIMING_ZERO,
9875 .block_erasers =
9876 {
9877 {
9878 .eraseblocks = { {4 * 1024, 8192} },
9879 .block_erase = spi_block_erase_21,
9880 }, {
9881 .eraseblocks = { {4 * 1024, 8192} },
9882 .block_erase = spi_block_erase_20,
9883 }, {
9884 .eraseblocks = { {32 * 1024, 1024} },
9885 .block_erase = spi_block_erase_5c,
9886 }, {
9887 .eraseblocks = { {32 * 1024, 1024} },
9888 .block_erase = spi_block_erase_52,
9889 }, {
9890 .eraseblocks = { {64 * 1024, 512} },
9891 .block_erase = spi_block_erase_dc,
9892 }, {
9893 .eraseblocks = { {64 * 1024, 512} },
9894 .block_erase = spi_block_erase_d8,
9895 }, {
9896 .eraseblocks = { {32 * 1024 * 1024, 1} },
9897 .block_erase = spi_block_erase_60,
9898 }, {
9899 .eraseblocks = { {32 * 1024 * 1024, 1} },
9900 .block_erase = spi_block_erase_c7,
9901 }
9902 },
9903 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +01009904 .reg_bits =
9905 {
9906 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9907 },
David Tomaschikf75d8c52019-06-20 09:49:01 -07009908 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9909 .unlock = spi_disable_blockprotect_bp3_srwd,
9910 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009911 .read = spi_chip_read,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009912 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009913 .prepare_access = spi_prepare_4ba,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009914 },
9915
9916 {
9917 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009918 .name = "MX25U3235E/F",
9919 .bustype = BUS_SPI,
9920 .manufacture_id = MACRONIX_ID,
9921 .model_id = MACRONIX_MX25U3235E,
9922 .total_size = 4096,
9923 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009924 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009925 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009926 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9927 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9928 .dummy_cycles =
9929 {
9930 .qpi_fast_read = 4,
9931 .qpi_fast_read_qio = 6,
9932 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009933 .tested = TEST_OK_PREW,
9934 .probe = probe_spi_rdid,
9935 .probe_timing = TIMING_ZERO,
9936 .block_erasers =
9937 {
9938 {
9939 .eraseblocks = { {4 * 1024, 1024} },
9940 .block_erase = spi_block_erase_20,
9941 }, {
9942 .eraseblocks = { {32 * 1024, 128} },
9943 .block_erase = spi_block_erase_52,
9944 }, {
9945 .eraseblocks = { {64 * 1024, 64} },
9946 .block_erase = spi_block_erase_d8,
9947 }, {
9948 .eraseblocks = { {4 * 1024 * 1024, 1} },
9949 .block_erase = spi_block_erase_60,
9950 }, {
9951 .eraseblocks = { {4 * 1024 * 1024, 1} },
9952 .block_erase = spi_block_erase_c7,
9953 }
9954 },
9955 /* TODO: security register */
9956 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9957 .unlock = spi_disable_blockprotect_bp3_srwd,
9958 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009959 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009960 .voltage = {1650, 2000},
9961 },
9962
9963 {
9964 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009965 .name = "MX25U51245G",
9966 .bustype = BUS_SPI,
9967 .manufacture_id = MACRONIX_ID,
9968 .model_id = MACRONIX_MX25U51245G,
9969 .total_size = 65536,
9970 .page_size = 256,
9971 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9973 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9974 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009975 .tested = TEST_OK_PREW,
9976 .probe = probe_spi_rdid,
9977 .probe_timing = TIMING_ZERO,
9978 .block_erasers =
9979 {
9980 {
9981 .eraseblocks = { {4 * 1024, 16384} },
9982 .block_erase = spi_block_erase_21,
9983 }, {
9984 .eraseblocks = { {4 * 1024, 16384} },
9985 .block_erase = spi_block_erase_20,
9986 }, {
9987 .eraseblocks = { {32 * 1024, 2048} },
9988 .block_erase = spi_block_erase_5c,
9989 }, {
9990 .eraseblocks = { {32 * 1024, 2048} },
9991 .block_erase = spi_block_erase_52,
9992 }, {
9993 .eraseblocks = { {64 * 1024, 1024} },
9994 .block_erase = spi_block_erase_dc,
9995 }, {
9996 .eraseblocks = { {64 * 1024, 1024} },
9997 .block_erase = spi_block_erase_d8,
9998 }, {
9999 .eraseblocks = { {64 * 1024 * 1024, 1} },
10000 .block_erase = spi_block_erase_60,
10001 }, {
10002 .eraseblocks = { {64 * 1024 * 1024, 1} },
10003 .block_erase = spi_block_erase_c7,
10004 }
10005 },
10006 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +010010007 .reg_bits =
10008 {
10009 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
10010 },
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010011 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10012 .unlock = spi_disable_blockprotect_bp3_srwd,
10013 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +010010014 .read = spi_chip_read,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010015 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010010016 .prepare_access = spi_prepare_4ba,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010017 },
10018
10019 {
10020 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010021 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010022 .bustype = BUS_SPI,
10023 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010024 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010025 .total_size = 8192,
10026 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010027 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +100010028 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +010010029 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
10030 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
10031 .dummy_cycles =
10032 {
10033 .qpi_fast_read = 4,
10034 .qpi_fast_read_qio = 6,
10035 },
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010036 .tested = TEST_OK_PREW,
10037 .probe = probe_spi_rdid,
10038 .probe_timing = TIMING_ZERO,
10039 .block_erasers =
10040 {
10041 {
10042 .eraseblocks = { {4 * 1024, 2048} },
10043 .block_erase = spi_block_erase_20,
10044 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010045 .eraseblocks = { {32 * 1024, 256} },
10046 .block_erase = spi_block_erase_52,
10047 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010048 .eraseblocks = { {64 * 1024, 128} },
10049 .block_erase = spi_block_erase_d8,
10050 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010051 .eraseblocks = { {8 * 1024 * 1024, 1} },
10052 .block_erase = spi_block_erase_60,
10053 }, {
10054 .eraseblocks = { {8 * 1024 * 1024, 1} },
10055 .block_erase = spi_block_erase_c7,
10056 }
10057 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010058 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010059 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10060 .unlock = spi_disable_blockprotect_bp3_srwd,
10061 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010062 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010063 .voltage = {1650, 2000},
10064 },
10065
10066 {
10067 .vendor = "Macronix",
10068 .name = "MX25U8032E",
10069 .bustype = BUS_SPI,
10070 .manufacture_id = MACRONIX_ID,
10071 .model_id = MACRONIX_MX25U8032E,
10072 .total_size = 1024,
10073 .page_size = 256,
10074 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10075 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10076 .tested = TEST_OK_PREW,
10077 .probe = probe_spi_rdid,
10078 .probe_timing = TIMING_ZERO,
10079 .block_erasers =
10080 {
10081 {
10082 .eraseblocks = { {4 * 1024, 256} },
10083 .block_erase = spi_block_erase_20,
10084 }, {
10085 .eraseblocks = { {32 * 1024, 32} },
10086 .block_erase = spi_block_erase_52,
10087 }, {
10088 .eraseblocks = { {64 * 1024, 16} },
10089 .block_erase = spi_block_erase_d8,
10090 }, {
10091 .eraseblocks = { {1024 * 1024, 1} },
10092 .block_erase = spi_block_erase_60,
10093 }, {
10094 .eraseblocks = { {1024 * 1024, 1} },
10095 .block_erase = spi_block_erase_c7,
10096 }
10097 },
10098 /* TODO: security register */
10099 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10100 .unlock = spi_disable_blockprotect_bp3_srwd,
10101 .write = spi_chip_write_256,
10102 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10103 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010104 },
10105
10106 {
10107 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +000010108 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010109 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010110 .manufacture_id = MACRONIX_ID,
10111 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010112 .total_size = 128,
10113 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010114 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10115 .tested = TEST_UNTESTED,
10116 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010117 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010118 .block_erasers =
10119 {
10120 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010121 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010122 {8 * 1024, 1},
10123 {4 * 1024, 2},
10124 {8 * 1024, 2},
10125 {32 * 1024, 1},
10126 {64 * 1024, 1},
10127 },
Sean Nelson35727f72010-01-28 23:55:12 +000010128 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010129 }, {
10130 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010131 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010132 }
10133 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010134 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010135 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010136 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010137 .prepare_access = prepare_memory_access,
10138 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010139 },
10140
10141 {
10142 .vendor = "Macronix",
10143 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010144 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010145 .manufacture_id = MACRONIX_ID,
10146 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010147 .total_size = 128,
10148 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010149 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +000010150 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010151 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010152 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010153 .block_erasers =
10154 {
10155 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010156 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010157 {64 * 1024, 1},
10158 {32 * 1024, 1},
10159 {8 * 1024, 2},
10160 {4 * 1024, 2},
10161 {8 * 1024, 1},
10162 },
Sean Nelson35727f72010-01-28 23:55:12 +000010163 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010164 }, {
10165 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010166 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010167 }
10168 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010169 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010171 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010172 .prepare_access = prepare_memory_access,
10173 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010174 },
10175
10176 {
10177 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010178 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010179 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010180 .manufacture_id = MACRONIX_ID,
10181 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010182 .total_size = 256,
10183 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010184 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010185 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010186 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010187 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010188 .block_erasers =
10189 {
10190 {
10191 .eraseblocks = {
10192 {16 * 1024, 1},
10193 {8 * 1024, 2},
10194 {32 * 1024, 1},
10195 {64 * 1024, 3},
10196 },
Sean Nelson35727f72010-01-28 23:55:12 +000010197 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010198 }, {
10199 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010200 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010201 },
10202 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010203 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010204 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010205 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010206 .prepare_access = prepare_memory_access,
10207 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010208 },
10209
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010210 {
10211 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010212 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010213 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010214 .manufacture_id = MACRONIX_ID,
10215 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010216 .total_size = 256,
10217 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010218 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010219 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010220 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010221 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010222 .block_erasers =
10223 {
10224 {
10225 .eraseblocks = {
10226 {64 * 1024, 3},
10227 {32 * 1024, 1},
10228 {8 * 1024, 2},
10229 {16 * 1024, 1},
10230 },
Sean Nelson35727f72010-01-28 23:55:12 +000010231 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010232 }, {
10233 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010234 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010235 },
10236 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010237 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010239 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010240 .prepare_access = prepare_memory_access,
10241 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010242 },
10243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010244 {
10245 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +000010246 .name = "MX29F022(N)B",
10247 .bustype = BUS_PARALLEL,
10248 .manufacture_id = MACRONIX_ID,
10249 .model_id = MACRONIX_MX29F022B,
10250 .total_size = 256,
10251 .page_size = 0, /* unused */
10252 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10253 .tested = TEST_UNTESTED,
10254 .probe = probe_jedec,
10255 .probe_timing = TIMING_ZERO,
10256 .block_erasers =
10257 {
10258 {
10259 .eraseblocks = {
10260 {16 * 1024, 1},
10261 {8 * 1024, 2},
10262 {32 * 1024, 1},
10263 {64 * 1024, 3},
10264 },
10265 .block_erase = erase_sector_jedec,
10266 }, {
10267 .eraseblocks = { {256 * 1024, 1} },
10268 .block_erase = erase_chip_block_jedec,
10269 }
10270 },
10271 .write = write_jedec_1,
10272 .read = read_memmapped,
10273 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010274 .prepare_access = prepare_memory_access,
10275 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010276 },
10277
10278 {
10279 .vendor = "Macronix",
10280 .name = "MX29F022(N)T",
10281 .bustype = BUS_PARALLEL,
10282 .manufacture_id = MACRONIX_ID,
10283 .model_id = MACRONIX_MX29F022T,
10284 .total_size = 256,
10285 .page_size = 0, /* unused */
10286 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10287 .tested = TEST_OK_PREW,
10288 .probe = probe_jedec,
10289 .probe_timing = TIMING_ZERO,
10290 .block_erasers =
10291 {
10292 {
10293 .eraseblocks = {
10294 {64 * 1024, 3},
10295 {32 * 1024, 1},
10296 {8 * 1024, 2},
10297 {16 * 1024, 1},
10298 },
10299 .block_erase = erase_sector_jedec,
10300 }, {
10301 .eraseblocks = { {256 * 1024, 1} },
10302 .block_erase = erase_chip_block_jedec,
10303 }
10304 },
10305 .write = write_jedec_1,
10306 .read = read_memmapped,
10307 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010308 .prepare_access = prepare_memory_access,
10309 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010310 },
10311
10312 {
10313 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +000010314 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010315 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +000010316 .manufacture_id = MACRONIX_ID,
10317 .model_id = MACRONIX_MX29F040,
10318 .total_size = 512,
10319 .page_size = 64 * 1024,
10320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10321 .tested = TEST_UNTESTED,
10322 .probe = probe_jedec,
10323 .probe_timing = TIMING_ZERO,
10324 .block_erasers =
10325 {
10326 {
10327 .eraseblocks = { {64 * 1024, 8} },
10328 .block_erase = erase_sector_jedec,
10329 }, {
10330 .eraseblocks = { {512 * 1024, 1} },
10331 .block_erase = erase_chip_block_jedec,
10332 },
10333 },
10334 .write = write_jedec_1,
10335 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010336 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010337 .prepare_access = prepare_memory_access,
10338 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +000010339 },
10340
10341 {
10342 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010343 .name = "MX29GL128F",
10344 .bustype = BUS_PARALLEL,
10345 .manufacture_id = MACRONIX_ID,
10346 .model_id = MACRONIX_MX29GL128F,
10347 .total_size = 16384,
10348 .page_size = 128 * 1024, /* actual page size is 16 */
10349 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10350 .tested = TEST_UNTESTED,
10351 .probe = probe_jedec_29gl,
10352 .probe_timing = TIMING_ZERO,
10353 .block_erasers =
10354 {
10355 {
10356 .eraseblocks = { {128 * 1024, 128} },
10357 .block_erase = erase_sector_jedec,
10358 }, {
10359 .eraseblocks = { {16 * 1024 * 1024, 1} },
10360 .block_erase = erase_chip_block_jedec,
10361 },
10362 },
10363 .write = write_jedec_1,
10364 .read = read_memmapped,
10365 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010366 .prepare_access = prepare_memory_access,
10367 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010368 },
10369
10370 {
10371 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010372 .name = "MX29GL320EB",
10373 .bustype = BUS_PARALLEL,
10374 .manufacture_id = MACRONIX_ID,
10375 .model_id = MACRONIX_MX29GL320EB,
10376 .total_size = 4096,
10377 .page_size = 128 * 1024, /* actual page size is 16 */
10378 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10379 .tested = TEST_UNTESTED,
10380 .probe = probe_jedec_29gl,
10381 .probe_timing = TIMING_ZERO,
10382 .block_erasers =
10383 {
10384 {
10385 .eraseblocks = {
10386 {8 * 1024, 8},
10387 {64 * 1024, 63},
10388 },
10389 .block_erase = erase_sector_jedec,
10390 }, {
10391 .eraseblocks = { {4 * 1024 * 1024, 1} },
10392 .block_erase = erase_chip_block_jedec,
10393 },
10394 },
10395 .write = write_jedec_1,
10396 .read = read_memmapped,
10397 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010398 .prepare_access = prepare_memory_access,
10399 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010400 },
10401
10402 {
10403 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010404 .name = "MX29GL320EH/L",
10405 .bustype = BUS_PARALLEL,
10406 .manufacture_id = MACRONIX_ID,
10407 .model_id = MACRONIX_MX29GL320EHL,
10408 .total_size = 4096,
10409 .page_size = 128 * 1024, /* actual page size is 16 */
10410 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10411 .tested = TEST_UNTESTED,
10412 .probe = probe_jedec_29gl,
10413 .probe_timing = TIMING_ZERO,
10414 .block_erasers =
10415 {
10416 {
10417 .eraseblocks = { {64 * 1024, 64} },
10418 .block_erase = erase_sector_jedec,
10419 }, {
10420 .eraseblocks = { {4 * 1024 * 1024, 1} },
10421 .block_erase = erase_chip_block_jedec,
10422 },
10423 },
10424 .write = write_jedec_1,
10425 .read = read_memmapped,
10426 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010427 .prepare_access = prepare_memory_access,
10428 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010429 },
10430
10431 {
10432 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010433 .name = "MX29GL320ET",
10434 .bustype = BUS_PARALLEL,
10435 .manufacture_id = MACRONIX_ID,
10436 .model_id = MACRONIX_MX29GL320ET,
10437 .total_size = 4096,
10438 .page_size = 128 * 1024, /* actual page size is 16 */
10439 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10440 .tested = TEST_UNTESTED,
10441 .probe = probe_jedec_29gl,
10442 .probe_timing = TIMING_ZERO,
10443 .block_erasers =
10444 {
10445 {
10446 .eraseblocks = {
10447 {64 * 1024, 63},
10448 {8 * 1024, 8},
10449 },
10450 .block_erase = erase_sector_jedec,
10451 }, {
10452 .eraseblocks = { {4 * 1024 * 1024, 1} },
10453 .block_erase = erase_chip_block_jedec,
10454 },
10455 },
10456 .write = write_jedec_1,
10457 .read = read_memmapped,
10458 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010459 .prepare_access = prepare_memory_access,
10460 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010461 },
10462
10463 {
10464 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010465 .name = "MX29GL640EB",
10466 .bustype = BUS_PARALLEL,
10467 .manufacture_id = MACRONIX_ID,
10468 .model_id = MACRONIX_MX29GL640EB,
10469 .total_size = 8192,
10470 .page_size = 128 * 1024, /* actual page size is 16 */
10471 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10472 .tested = TEST_UNTESTED,
10473 .probe = probe_jedec_29gl,
10474 .probe_timing = TIMING_ZERO,
10475 .block_erasers =
10476 {
10477 {
10478 .eraseblocks = {
10479 {8 * 1024, 8},
10480 {64 * 1024, 127},
10481 },
10482 .block_erase = erase_sector_jedec,
10483 }, {
10484 .eraseblocks = { {8 * 1024 * 1024, 1} },
10485 .block_erase = erase_chip_block_jedec,
10486 },
10487 },
10488 .write = write_jedec_1,
10489 .read = read_memmapped,
10490 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010491 .prepare_access = prepare_memory_access,
10492 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010493 },
10494
10495 {
10496 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010497 .name = "MX29GL640EH/L",
10498 .bustype = BUS_PARALLEL,
10499 .manufacture_id = MACRONIX_ID,
10500 .model_id = MACRONIX_MX29GL640EHL,
10501 .total_size = 8192,
10502 .page_size = 128 * 1024, /* actual page size is 16 */
10503 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10504 .tested = TEST_UNTESTED,
10505 .probe = probe_jedec_29gl,
10506 .probe_timing = TIMING_ZERO,
10507 .block_erasers =
10508 {
10509 {
10510 .eraseblocks = { {64 * 1024, 128} },
10511 .block_erase = erase_sector_jedec,
10512 }, {
10513 .eraseblocks = { {8 * 1024 * 1024, 1} },
10514 .block_erase = erase_chip_block_jedec,
10515 },
10516 },
10517 .write = write_jedec_1,
10518 .read = read_memmapped,
10519 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010520 .prepare_access = prepare_memory_access,
10521 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010522 },
10523
10524 {
10525 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010526 .name = "MX29GL640ET",
10527 .bustype = BUS_PARALLEL,
10528 .manufacture_id = MACRONIX_ID,
10529 .model_id = MACRONIX_MX29GL640ET,
10530 .total_size = 8192,
10531 .page_size = 128 * 1024, /* actual page size is 16 */
10532 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10533 .tested = TEST_UNTESTED,
10534 .probe = probe_jedec_29gl,
10535 .probe_timing = TIMING_ZERO,
10536 .block_erasers =
10537 {
10538 {
10539 .eraseblocks = {
10540 {64 * 1024, 127},
10541 {8 * 1024, 8},
10542 },
10543 .block_erase = erase_sector_jedec,
10544 }, {
10545 .eraseblocks = { {8 * 1024 * 1024, 1} },
10546 .block_erase = erase_chip_block_jedec,
10547 },
10548 },
10549 .write = write_jedec_1,
10550 .read = read_memmapped,
10551 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010552 .prepare_access = prepare_memory_access,
10553 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010554 },
10555
10556 {
10557 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010558 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010559 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010560 .manufacture_id = MACRONIX_ID,
10561 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010562 .total_size = 512,
10563 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010564 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10565 .tested = TEST_UNTESTED,
10566 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010567 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010568 .block_erasers =
10569 {
10570 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010571 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010572 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010573 }, {
10574 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010575 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010576 },
10577 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010578 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010580 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010581 .prepare_access = prepare_memory_access,
10582 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010583 },
10584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010585 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010586 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010587 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010588 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010589 .manufacture_id = MACRONIX_ID,
10590 .model_id = MACRONIX_MX66L51235F,
10591 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010592 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010593 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10594 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010595 .tested = TEST_OK_PREW,
10596 .probe = probe_spi_rdid,
10597 .probe_timing = TIMING_ZERO,
10598 .block_erasers =
10599 {
10600 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010601 .eraseblocks = { {4 * 1024, 16384} },
10602 .block_erase = spi_block_erase_21,
10603 }, {
10604 .eraseblocks = { {4 * 1024, 16384} },
10605 .block_erase = spi_block_erase_20,
10606 }, {
10607 .eraseblocks = { {32 * 1024, 2048} },
10608 .block_erase = spi_block_erase_5c,
10609 }, {
10610 .eraseblocks = { {32 * 1024, 2048} },
10611 .block_erase = spi_block_erase_52,
10612 }, {
10613 .eraseblocks = { {64 * 1024, 1024} },
10614 .block_erase = spi_block_erase_dc,
10615 }, {
10616 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010617 .block_erase = spi_block_erase_d8,
10618 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010619 .eraseblocks = { {64 * 1024 * 1024, 1} },
10620 .block_erase = spi_block_erase_60,
10621 }, {
10622 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010623 .block_erase = spi_block_erase_c7,
10624 }
10625 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010626 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10627 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010628 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010629 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010630 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010631 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010632 .prepare_access = spi_prepare_4ba,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010633 },
10634
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010635 {
10636 .vendor = "Macronix",
10637 .name = "MX66L1G45G",
10638 .bustype = BUS_SPI,
10639 .manufacture_id = MACRONIX_ID,
10640 .model_id = MACRONIX_MX66L1G45G,
10641 .total_size = 131072,
10642 .page_size = 256,
10643 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10644 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10645 .tested = TEST_OK_PREW,
10646 .probe = probe_spi_rdid,
10647 .probe_timing = TIMING_ZERO,
10648 .block_erasers =
10649 {
10650 {
10651 .eraseblocks = { {4 * 1024, 32768} },
10652 .block_erase = spi_block_erase_21,
10653 }, {
10654 .eraseblocks = { {4 * 1024, 32768} },
10655 .block_erase = spi_block_erase_20,
10656 }, {
10657 .eraseblocks = { {32 * 1024, 4096} },
10658 .block_erase = spi_block_erase_5c,
10659 }, {
10660 .eraseblocks = { {32 * 1024, 4096} },
10661 .block_erase = spi_block_erase_52,
10662 }, {
10663 .eraseblocks = { {64 * 1024, 2048} },
10664 .block_erase = spi_block_erase_dc,
10665 }, {
10666 .eraseblocks = { {64 * 1024, 2048} },
10667 .block_erase = spi_block_erase_d8,
10668 }, {
10669 .eraseblocks = { {128 * 1024 * 1024, 1} },
10670 .block_erase = spi_block_erase_60,
10671 }, {
10672 .eraseblocks = { {128 * 1024 * 1024, 1} },
10673 .block_erase = spi_block_erase_c7,
10674 }
10675 },
10676 /* TODO: security register and SBLK/SBULK, configuration register */
10677 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10678 .unlock = spi_disable_blockprotect_bp3_srwd,
10679 .write = spi_chip_write_256,
10680 .read = spi_chip_read, /* Fast read (0x0B) supported */
10681 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010682 .prepare_access = spi_prepare_4ba,
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010683 },
10684
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010685 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10686 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10687 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10688 * only is successful if RDID does not work.
10689 */
10690 {
10691 .vendor = "Micron/Numonyx/ST",
10692 .name = "M25P05",
10693 .bustype = BUS_SPI,
10694 .manufacture_id = 0, /* Not used. */
10695 .model_id = ST_M25P05_RES,
10696 .total_size = 64,
10697 .page_size = 256,
10698 .feature_bits = FEATURE_WRSR_WREN,
10699 .tested = TEST_UNTESTED,
10700 .probe = probe_spi_res1,
10701 .probe_timing = TIMING_ZERO,
10702 .block_erasers =
10703 {
10704 {
10705 .eraseblocks = { {32 * 1024, 2} },
10706 .block_erase = spi_block_erase_d8,
10707 }, {
10708 .eraseblocks = { {64 * 1024, 1} },
10709 .block_erase = spi_block_erase_c7,
10710 }
10711 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010713 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010714 .write = spi_chip_write_1, /* 128 */
10715 .read = spi_chip_read,
10716 .voltage = {2700, 3600},
10717 },
10718
10719 {
10720 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010721 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010722 .bustype = BUS_SPI,
10723 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010724 .model_id = ST_M25P05A,
10725 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010726 .page_size = 256,
10727 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010728 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010729 .probe = probe_spi_rdid,
10730 .probe_timing = TIMING_ZERO,
10731 .block_erasers =
10732 {
10733 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010734 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010735 .block_erase = spi_block_erase_d8,
10736 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010737 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010738 .block_erase = spi_block_erase_c7,
10739 }
10740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010742 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010743 .write = spi_chip_write_256,
10744 .read = spi_chip_read,
10745 .voltage = {2700, 3600},
10746 },
10747
10748 /* The ST M25P10 has the same problem as the M25P05. */
10749 {
10750 .vendor = "Micron/Numonyx/ST",
10751 .name = "M25P10",
10752 .bustype = BUS_SPI,
10753 .manufacture_id = 0, /* Not used. */
10754 .model_id = ST_M25P10_RES,
10755 .total_size = 128,
10756 .page_size = 256,
10757 .feature_bits = FEATURE_WRSR_WREN,
10758 .tested = TEST_UNTESTED,
10759 .probe = probe_spi_res1,
10760 .probe_timing = TIMING_ZERO,
10761 .block_erasers =
10762 {
10763 {
10764 .eraseblocks = { {32 * 1024, 4} },
10765 .block_erase = spi_block_erase_d8,
10766 }, {
10767 .eraseblocks = { {128 * 1024, 1} },
10768 .block_erase = spi_block_erase_c7,
10769 }
10770 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010771 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010772 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010773 .write = spi_chip_write_1, /* 128 */
10774 .read = spi_chip_read,
10775 .voltage = {2700, 3600},
10776 },
10777
10778 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010779 .vendor = "Micron/Numonyx/ST",
10780 .name = "M25P10-A",
10781 .bustype = BUS_SPI,
10782 .manufacture_id = ST_ID,
10783 .model_id = ST_M25P10A,
10784 .total_size = 128,
10785 .page_size = 256,
10786 .feature_bits = FEATURE_WRSR_WREN,
10787 .tested = TEST_OK_PREW,
10788 .probe = probe_spi_rdid,
10789 .probe_timing = TIMING_ZERO,
10790 .block_erasers =
10791 {
10792 {
10793 .eraseblocks = { {32 * 1024, 4} },
10794 .block_erase = spi_block_erase_d8,
10795 }, {
10796 .eraseblocks = { {128 * 1024, 1} },
10797 .block_erase = spi_block_erase_c7,
10798 }
10799 },
10800 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10801 .unlock = spi_disable_blockprotect_bp3_srwd,
10802 .write = spi_chip_write_256,
10803 .read = spi_chip_read,
10804 .voltage = {2700, 3600},
10805 },
10806
10807 {
10808 .vendor = "Micron/Numonyx/ST",
10809 .name = "M25P128",
10810 .bustype = BUS_SPI,
10811 .manufacture_id = ST_ID,
10812 .model_id = ST_M25P128,
10813 .total_size = 16384,
10814 .page_size = 256,
10815 .feature_bits = FEATURE_WRSR_WREN,
10816 .tested = TEST_OK_PREW,
10817 .probe = probe_spi_rdid,
10818 .probe_timing = TIMING_ZERO,
10819 .block_erasers =
10820 {
10821 {
10822 .eraseblocks = { {256 * 1024, 64} },
10823 .block_erase = spi_block_erase_d8,
10824 }, {
10825 .eraseblocks = { {16 * 1024 * 1024, 1} },
10826 .block_erase = spi_block_erase_c7,
10827 }
10828 },
10829 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10830 .unlock = spi_disable_blockprotect_bp3_srwd,
10831 .write = spi_chip_write_256,
10832 .read = spi_chip_read,
10833 .voltage = {2700, 3600},
10834 },
10835
10836 {
10837 .vendor = "Micron/Numonyx/ST",
10838 .name = "M25P16",
10839 .bustype = BUS_SPI,
10840 .manufacture_id = ST_ID,
10841 .model_id = ST_M25P16,
10842 .total_size = 2048,
10843 .page_size = 256,
10844 .feature_bits = FEATURE_WRSR_WREN,
10845 .tested = TEST_OK_PREW,
10846 .probe = probe_spi_rdid,
10847 .probe_timing = TIMING_ZERO,
10848 .block_erasers =
10849 {
10850 {
10851 .eraseblocks = { {64 * 1024, 32} },
10852 .block_erase = spi_block_erase_d8,
10853 }, {
10854 .eraseblocks = { {2 * 1024 * 1024, 1} },
10855 .block_erase = spi_block_erase_c7,
10856 }
10857 },
10858 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10859 .unlock = spi_disable_blockprotect_bp3_srwd,
10860 .write = spi_chip_write_256,
10861 .read = spi_chip_read,
10862 .voltage = {2700, 3600},
10863 },
10864
10865 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010866 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10867 .name = "M25P20",
10868 .bustype = BUS_SPI,
10869 .manufacture_id = ST_ID,
10870 .model_id = ST_M25P20,
10871 .total_size = 256,
10872 .page_size = 256,
10873 .feature_bits = FEATURE_WRSR_WREN,
10874 .tested = TEST_UNTESTED,
10875 .probe = probe_spi_rdid,
10876 .probe_timing = TIMING_ZERO,
10877 .block_erasers =
10878 {
10879 {
10880 .eraseblocks = { {64 * 1024, 4} },
10881 .block_erase = spi_block_erase_d8,
10882 }, {
10883 .eraseblocks = { {256 * 1024, 1} },
10884 .block_erase = spi_block_erase_c7,
10885 }
10886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010887 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010888 .unlock = spi_disable_blockprotect,
10889 .write = spi_chip_write_256,
10890 .read = spi_chip_read, /* Fast read (0x0B) supported */
10891 .voltage = {2700, 3600},
10892 },
10893
10894 {
10895 .vendor = "Micron/Numonyx/ST",
10896 .name = "M25P20-old",
10897 .bustype = BUS_SPI,
10898 .manufacture_id = 0, /* Not used. */
10899 .model_id = ST_M25P20_RES,
10900 .total_size = 256,
10901 .page_size = 256,
10902 .feature_bits = FEATURE_WRSR_WREN,
10903 .tested = TEST_OK_PREW,
10904 .probe = probe_spi_res1,
10905 .probe_timing = TIMING_ZERO,
10906 .block_erasers =
10907 {
10908 {
10909 .eraseblocks = { {64 * 1024, 4} },
10910 .block_erase = spi_block_erase_d8,
10911 }, {
10912 .eraseblocks = { {256 * 1024, 1} },
10913 .block_erase = spi_block_erase_c7,
10914 }
10915 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010916 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010917 .unlock = spi_disable_blockprotect,
10918 .write = spi_chip_write_256,
10919 .read = spi_chip_read, /* Fast read (0x0B) supported */
10920 .voltage = {2700, 3600},
10921 },
10922
10923 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010924 .vendor = "Micron/Numonyx/ST",
10925 .name = "M25P32",
10926 .bustype = BUS_SPI,
10927 .manufacture_id = ST_ID,
10928 .model_id = ST_M25P32,
10929 .total_size = 4096,
10930 .page_size = 256,
10931 .feature_bits = FEATURE_WRSR_WREN,
10932 .tested = TEST_OK_PREW,
10933 .probe = probe_spi_rdid,
10934 .probe_timing = TIMING_ZERO,
10935 .block_erasers =
10936 {
10937 {
10938 .eraseblocks = { {64 * 1024, 64} },
10939 .block_erase = spi_block_erase_d8,
10940 }, {
10941 .eraseblocks = { {4 * 1024 * 1024, 1} },
10942 .block_erase = spi_block_erase_c7,
10943 }
10944 },
10945 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10946 .unlock = spi_disable_blockprotect_bp3_srwd,
10947 .write = spi_chip_write_256,
10948 .read = spi_chip_read,
10949 .voltage = {2700, 3600},
10950 },
10951
10952 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010953 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10954 .name = "M25P40",
10955 .bustype = BUS_SPI,
10956 .manufacture_id = ST_ID,
10957 .model_id = ST_M25P40,
10958 .total_size = 512,
10959 .page_size = 256,
10960 .feature_bits = FEATURE_WRSR_WREN,
10961 .tested = TEST_OK_PREW,
10962 .probe = probe_spi_rdid,
10963 .probe_timing = TIMING_ZERO,
10964 .block_erasers =
10965 {
10966 {
10967 .eraseblocks = { {64 * 1024, 8} },
10968 .block_erase = spi_block_erase_d8,
10969 }, {
10970 .eraseblocks = { {512 * 1024, 1} },
10971 .block_erase = spi_block_erase_c7,
10972 }
10973 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010974 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010975 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010976 .write = spi_chip_write_256,
10977 .read = spi_chip_read,
10978 .voltage = {2700, 3600},
10979 },
10980
10981 {
10982 .vendor = "Micron/Numonyx/ST",
10983 .name = "M25P40-old",
10984 .bustype = BUS_SPI,
10985 .manufacture_id = 0, /* Not used. */
10986 .model_id = ST_M25P40_RES,
10987 .total_size = 512,
10988 .page_size = 256,
10989 .feature_bits = FEATURE_WRSR_WREN,
10990 .tested = TEST_UNTESTED,
10991 .probe = probe_spi_res1,
10992 .probe_timing = TIMING_ZERO,
10993 .block_erasers =
10994 {
10995 {
10996 .eraseblocks = { {64 * 1024, 8} },
10997 .block_erase = spi_block_erase_d8,
10998 }, {
10999 .eraseblocks = { {512 * 1024, 1} },
11000 .block_erase = spi_block_erase_c7,
11001 }
11002 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011003 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011004 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011005 .write = spi_chip_write_256,
11006 .read = spi_chip_read,
11007 },
11008
11009 {
11010 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011011 .name = "M25P64",
11012 .bustype = BUS_SPI,
11013 .manufacture_id = ST_ID,
11014 .model_id = ST_M25P64,
11015 .total_size = 8192,
11016 .page_size = 256,
11017 .feature_bits = FEATURE_WRSR_WREN,
11018 .tested = TEST_OK_PREW,
11019 .probe = probe_spi_rdid,
11020 .probe_timing = TIMING_ZERO,
11021 .block_erasers =
11022 {
11023 {
11024 .eraseblocks = { {64 * 1024, 128} },
11025 .block_erase = spi_block_erase_d8,
11026 }, {
11027 .eraseblocks = { {8 * 1024 * 1024, 1} },
11028 .block_erase = spi_block_erase_c7,
11029 }
11030 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011031 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011032 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011033 .write = spi_chip_write_256,
11034 .read = spi_chip_read,
11035 .voltage = {2700, 3600},
11036 },
11037
11038 {
11039 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011040 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011041 .bustype = BUS_SPI,
11042 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011043 .model_id = ST_M25P80,
11044 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011045 .page_size = 256,
11046 .feature_bits = FEATURE_WRSR_WREN,
11047 .tested = TEST_OK_PREW,
11048 .probe = probe_spi_rdid,
11049 .probe_timing = TIMING_ZERO,
11050 .block_erasers =
11051 {
11052 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011053 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011054 .block_erase = spi_block_erase_d8,
11055 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011056 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011057 .block_erase = spi_block_erase_c7,
11058 }
11059 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011060 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011061 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011062 .write = spi_chip_write_256,
11063 .read = spi_chip_read,
11064 .voltage = {2700, 3600},
11065 },
11066
11067 {
11068 .vendor = "Micron/Numonyx/ST",
11069 .name = "M25PE10",
11070 .bustype = BUS_SPI,
11071 .manufacture_id = ST_ID,
11072 .model_id = ST_M25PE10,
11073 .total_size = 128,
11074 .page_size = 256,
11075 .feature_bits = FEATURE_WRSR_WREN,
11076 .tested = TEST_UNTESTED,
11077 .probe = probe_spi_rdid,
11078 .probe_timing = TIMING_ZERO,
11079 .block_erasers =
11080 {
11081 {
11082 .eraseblocks = { {4 * 1024, 32} },
11083 .block_erase = spi_block_erase_20,
11084 }, {
11085 .eraseblocks = { {64 * 1024, 2} },
11086 .block_erase = spi_block_erase_d8,
11087 }, {
11088 .eraseblocks = { {128 * 1024, 1} },
11089 .block_erase = spi_block_erase_c7,
11090 }
11091 },
11092 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11093 .unlock = spi_disable_blockprotect,
11094 .write = spi_chip_write_256,
11095 .read = spi_chip_read,
11096 .voltage = {2700, 3600},
11097 },
11098
11099 {
11100 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011101 .name = "M25PE16",
11102 .bustype = BUS_SPI,
11103 .manufacture_id = ST_ID,
11104 .model_id = ST_M25PE16,
11105 .total_size = 2048,
11106 .page_size = 256,
11107 .feature_bits = FEATURE_WRSR_WREN,
11108 .tested = TEST_UNTESTED,
11109 .probe = probe_spi_rdid,
11110 .probe_timing = TIMING_ZERO,
11111 .block_erasers =
11112 {
11113 {
11114 .eraseblocks = { {4 * 1024, 512} },
11115 .block_erase = spi_block_erase_20,
11116 }, {
11117 .eraseblocks = { {64 * 1024, 32} },
11118 .block_erase = spi_block_erase_d8,
11119 }, {
11120 .eraseblocks = { {2 * 1024 * 1024, 1} },
11121 .block_erase = spi_block_erase_c7,
11122 }
11123 },
11124 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11125 .unlock = spi_disable_blockprotect,
11126 .write = spi_chip_write_256,
11127 .read = spi_chip_read,
11128 .voltage = {2700, 3600},
11129 },
11130
11131 {
11132 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011133 .name = "M25PE20",
11134 .bustype = BUS_SPI,
11135 .manufacture_id = ST_ID,
11136 .model_id = ST_M25PE20,
11137 .total_size = 256,
11138 .page_size = 256,
11139 .feature_bits = FEATURE_WRSR_WREN,
11140 .tested = TEST_UNTESTED,
11141 .probe = probe_spi_rdid,
11142 .probe_timing = TIMING_ZERO,
11143 .block_erasers =
11144 {
11145 {
11146 .eraseblocks = { {4 * 1024, 64} },
11147 .block_erase = spi_block_erase_20,
11148 }, {
11149 .eraseblocks = { {64 * 1024, 4} },
11150 .block_erase = spi_block_erase_d8,
11151 }, {
11152 .eraseblocks = { {256 * 1024, 1} },
11153 .block_erase = spi_block_erase_c7,
11154 }
11155 },
11156 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11157 .unlock = spi_disable_blockprotect,
11158 .write = spi_chip_write_256,
11159 .read = spi_chip_read,
11160 .voltage = {2700, 3600},
11161 },
11162
11163 {
11164 .vendor = "Micron/Numonyx/ST",
11165 .name = "M25PE40",
11166 .bustype = BUS_SPI,
11167 .manufacture_id = ST_ID,
11168 .model_id = ST_M25PE40,
11169 .total_size = 512,
11170 .page_size = 256,
11171 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011172 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011173 .probe = probe_spi_rdid,
11174 .probe_timing = TIMING_ZERO,
11175 .block_erasers =
11176 {
11177 {
11178 .eraseblocks = { {4 * 1024, 128} },
11179 .block_erase = spi_block_erase_20,
11180 }, {
11181 .eraseblocks = { {64 * 1024, 8} },
11182 .block_erase = spi_block_erase_d8,
11183 }, {
11184 .eraseblocks = { {512 * 1024, 1} },
11185 .block_erase = spi_block_erase_c7,
11186 }
11187 },
11188 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11189 .unlock = spi_disable_blockprotect,
11190 .write = spi_chip_write_256,
11191 .read = spi_chip_read,
11192 .voltage = {2700, 3600},
11193 },
11194
11195 {
11196 .vendor = "Micron/Numonyx/ST",
11197 .name = "M25PE80",
11198 .bustype = BUS_SPI,
11199 .manufacture_id = ST_ID,
11200 .model_id = ST_M25PE80,
11201 .total_size = 1024,
11202 .page_size = 256,
11203 .feature_bits = FEATURE_WRSR_WREN,
11204 .tested = TEST_OK_PREW,
11205 .probe = probe_spi_rdid,
11206 .probe_timing = TIMING_ZERO,
11207 .block_erasers =
11208 {
11209 {
11210 .eraseblocks = { {4 * 1024, 256} },
11211 .block_erase = spi_block_erase_20,
11212 }, {
11213 .eraseblocks = { {64 * 1024, 16} },
11214 .block_erase = spi_block_erase_d8,
11215 }, {
11216 .eraseblocks = { {1024 * 1024, 1} },
11217 .block_erase = spi_block_erase_c7,
11218 }
11219 },
11220 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11221 .unlock = spi_disable_blockprotect,
11222 .write = spi_chip_write_256,
11223 .read = spi_chip_read,
11224 .voltage = {2700, 3600},
11225 },
11226
11227 {
11228 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011229 .name = "M25PX16",
11230 .bustype = BUS_SPI,
11231 .manufacture_id = ST_ID,
11232 .model_id = ST_M25PX16,
11233 .total_size = 2048,
11234 .page_size = 256,
11235 /* OTP: 64B total; read 0x4B; write 0x42 */
11236 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11237 .tested = TEST_OK_PREW,
11238 .probe = probe_spi_rdid,
11239 .probe_timing = TIMING_ZERO,
11240 .block_erasers =
11241 {
11242 {
11243 .eraseblocks = { { 4 * 1024, 512 } },
11244 .block_erase = spi_block_erase_20,
11245 }, {
11246 .eraseblocks = { {64 * 1024, 32} },
11247 .block_erase = spi_block_erase_d8,
11248 }, {
11249 .eraseblocks = { {2 * 1024 * 1024, 1} },
11250 .block_erase = spi_block_erase_c7,
11251 }
11252 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011253 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011254 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11255 .write = spi_chip_write_256,
11256 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011257 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011258 },
11259
11260 {
11261 .vendor = "Micron/Numonyx/ST",
11262 .name = "M25PX32",
11263 .bustype = BUS_SPI,
11264 .manufacture_id = ST_ID,
11265 .model_id = ST_M25PX32,
11266 .total_size = 4096,
11267 .page_size = 256,
11268 /* OTP: 64B total; read 0x4B; write 0x42 */
11269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11270 .tested = TEST_OK_PRE,
11271 .probe = probe_spi_rdid,
11272 .probe_timing = TIMING_ZERO,
11273 .block_erasers =
11274 {
11275 {
11276 .eraseblocks = { { 4 * 1024, 1024 } },
11277 .block_erase = spi_block_erase_20,
11278 }, {
11279 .eraseblocks = { {64 * 1024, 64} },
11280 .block_erase = spi_block_erase_d8,
11281 }, {
11282 .eraseblocks = { {4 * 1024 * 1024, 1} },
11283 .block_erase = spi_block_erase_c7,
11284 }
11285 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011286 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011287 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11288 .write = spi_chip_write_256,
11289 .read = spi_chip_read,
11290 .voltage = {2700, 3600},
11291 },
11292
11293 {
11294 .vendor = "Micron/Numonyx/ST",
11295 .name = "M25PX64",
11296 .bustype = BUS_SPI,
11297 .manufacture_id = ST_ID,
11298 .model_id = ST_M25PX64,
11299 .total_size = 8192,
11300 .page_size = 256,
11301 /* OTP: 64B total; read 0x4B; write 0x42 */
11302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011303 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011304 .probe = probe_spi_rdid,
11305 .probe_timing = TIMING_ZERO,
11306 .block_erasers =
11307 {
11308 {
11309 .eraseblocks = { { 4 * 1024, 2048 } },
11310 .block_erase = spi_block_erase_20,
11311 }, {
11312 .eraseblocks = { {64 * 1024, 128} },
11313 .block_erase = spi_block_erase_d8,
11314 }, {
11315 .eraseblocks = { {8 * 1024 * 1024, 1} },
11316 .block_erase = spi_block_erase_c7,
11317 }
11318 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011319 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011320 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11321 .write = spi_chip_write_256,
11322 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011323 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011324 },
11325
11326 {
11327 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011328 .name = "M25PX80",
11329 .bustype = BUS_SPI,
11330 .manufacture_id = ST_ID,
11331 .model_id = ST_M25PX80,
11332 .total_size = 1024,
11333 .page_size = 256,
11334 /* OTP: 64B total; read 0x4B, write 0x42 */
11335 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11336 .tested = TEST_OK_PREW,
11337 .probe = probe_spi_rdid,
11338 .probe_timing = TIMING_ZERO,
11339 .block_erasers =
11340 {
11341 {
11342 .eraseblocks = { { 4 * 1024, 256 } },
11343 .block_erase = spi_block_erase_20,
11344 }, {
11345 .eraseblocks = { {64 * 1024, 16} },
11346 .block_erase = spi_block_erase_d8,
11347 }, {
11348 .eraseblocks = { {1024 * 1024, 1} },
11349 .block_erase = spi_block_erase_c7,
11350 }
11351 },
11352 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
11353 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11354 .write = spi_chip_write_256,
11355 .read = spi_chip_read,
11356 .voltage = {2700, 3600},
11357 },
11358
11359 {
11360 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011361 .name = "M45PE10",
11362 .bustype = BUS_SPI,
11363 .manufacture_id = ST_ID,
11364 .model_id = ST_M45PE10,
11365 .total_size = 128,
11366 .page_size = 256,
11367 .tested = TEST_UNTESTED,
11368 .probe = probe_spi_rdid,
11369 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011370 .block_erasers =
11371 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011372 {
11373 .eraseblocks = { {256, 512} },
11374 .block_erase = spi_block_erase_db,
11375 }, {
11376 .eraseblocks = { {64 * 1024, 2} },
11377 .block_erase = spi_block_erase_d8,
11378 }
11379 },
11380 .printlock = spi_prettyprint_status_register_default_welwip,
11381 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11382 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11383 .read = spi_chip_read, /* Fast read (0x0B) supported */
11384 .voltage = {2700, 3600},
11385 },
11386
11387 {
11388 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011389 .name = "M45PE16",
11390 .bustype = BUS_SPI,
11391 .manufacture_id = ST_ID,
11392 .model_id = ST_M45PE16,
11393 .total_size = 2048,
11394 .page_size = 256,
11395 .tested = TEST_UNTESTED,
11396 .probe = probe_spi_rdid,
11397 .probe_timing = TIMING_ZERO,
11398 .block_erasers =
11399 {
11400 {
11401 .eraseblocks = { {256, 8192} },
11402 .block_erase = spi_block_erase_db,
11403 }, {
11404 .eraseblocks = { {64 * 1024, 32} },
11405 .block_erase = spi_block_erase_d8,
11406 }
11407 },
11408 .printlock = spi_prettyprint_status_register_default_welwip,
11409 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11410 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11411 .read = spi_chip_read, /* Fast read (0x0B) supported */
11412 .voltage = {2700, 3600},
11413 },
11414
11415 {
11416 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011417 .name = "M45PE20",
11418 .bustype = BUS_SPI,
11419 .manufacture_id = ST_ID,
11420 .model_id = ST_M45PE20,
11421 .total_size = 256,
11422 .page_size = 256,
11423 .tested = TEST_UNTESTED,
11424 .probe = probe_spi_rdid,
11425 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011426 .block_erasers =
11427 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011428 {
11429 .eraseblocks = { {256, 1024} },
11430 .block_erase = spi_block_erase_db,
11431 }, {
11432 .eraseblocks = { {64 * 1024, 4} },
11433 .block_erase = spi_block_erase_d8,
11434 }
11435 },
11436 .printlock = spi_prettyprint_status_register_default_welwip,
11437 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11438 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11439 .read = spi_chip_read, /* Fast read (0x0B) supported */
11440 .voltage = {2700, 3600},
11441 },
11442
11443 {
11444 .vendor = "Micron/Numonyx/ST",
11445 .name = "M45PE40",
11446 .bustype = BUS_SPI,
11447 .manufacture_id = ST_ID,
11448 .model_id = ST_M45PE40,
11449 .total_size = 512,
11450 .page_size = 256,
11451 .tested = TEST_UNTESTED,
11452 .probe = probe_spi_rdid,
11453 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011454 .block_erasers =
11455 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011456 {
11457 .eraseblocks = { {256, 2048} },
11458 .block_erase = spi_block_erase_db,
11459 }, {
11460 .eraseblocks = { {64 * 1024, 8} },
11461 .block_erase = spi_block_erase_d8,
11462 }
11463 },
11464 .printlock = spi_prettyprint_status_register_default_welwip,
11465 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011466 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011467 .read = spi_chip_read, /* Fast read (0x0B) supported */
11468 .voltage = {2700, 3600},
11469 },
11470
11471 {
11472 .vendor = "Micron/Numonyx/ST",
11473 .name = "M45PE80",
11474 .bustype = BUS_SPI,
11475 .manufacture_id = ST_ID,
11476 .model_id = ST_M45PE80,
11477 .total_size = 1024,
11478 .page_size = 256,
11479 .tested = TEST_UNTESTED,
11480 .probe = probe_spi_rdid,
11481 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011482 .block_erasers =
11483 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011484 {
11485 .eraseblocks = { {256, 4096} },
11486 .block_erase = spi_block_erase_db,
11487 }, {
11488 .eraseblocks = { {64 * 1024, 16} },
11489 .block_erase = spi_block_erase_d8,
11490 }
11491 },
11492 .printlock = spi_prettyprint_status_register_default_welwip,
11493 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11494 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11495 .read = spi_chip_read, /* Fast read (0x0B) supported */
11496 .voltage = {2700, 3600},
11497 },
11498
11499 {
11500 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011501 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11502 .bustype = BUS_SPI,
11503 .manufacture_id = ST_ID,
11504 .model_id = ST_N25Q00A__1G,
11505 .total_size = 131072,
11506 .page_size = 256,
11507 /* supports SFDP */
11508 /* OTP: 64B total; read 0x4B, write 0x42 */
11509 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11510 .tested = TEST_UNTESTED,
11511 .probe = probe_spi_rdid,
11512 .probe_timing = TIMING_ZERO,
11513 .block_erasers =
11514 {
11515 {
11516 .eraseblocks = { {4 * 1024, 32768} },
11517 .block_erase = spi_block_erase_21,
11518 }, {
11519 .eraseblocks = { {4 * 1024, 32768} },
11520 .block_erase = spi_block_erase_20,
11521 }, {
11522 .eraseblocks = { {64 * 1024, 2048} },
11523 .block_erase = spi_block_erase_dc,
11524 }, {
11525 .eraseblocks = { {64 * 1024, 2048} },
11526 .block_erase = spi_block_erase_d8,
11527 }, {
11528 .eraseblocks = { {32768 * 1024, 4} },
11529 .block_erase = spi_block_erase_c4,
11530 }
11531 },
11532 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11533 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11534 .write = spi_chip_write_256, /* Multi I/O supported */
11535 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11536 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011537 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011538 },
11539
11540 {
11541 .vendor = "Micron/Numonyx/ST",
11542 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11543 .bustype = BUS_SPI,
11544 .manufacture_id = ST_ID,
11545 .model_id = ST_N25Q00A__3G,
11546 .total_size = 131072,
11547 .page_size = 256,
11548 /* supports SFDP */
11549 /* OTP: 64B total; read 0x4B, write 0x42 */
11550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11551 .tested = TEST_UNTESTED,
11552 .probe = probe_spi_rdid,
11553 .probe_timing = TIMING_ZERO,
11554 .block_erasers =
11555 {
11556 {
11557 .eraseblocks = { {4 * 1024, 32768} },
11558 .block_erase = spi_block_erase_21,
11559 }, {
11560 .eraseblocks = { {4 * 1024, 32768} },
11561 .block_erase = spi_block_erase_20,
11562 }, {
11563 .eraseblocks = { {64 * 1024, 2048} },
11564 .block_erase = spi_block_erase_dc,
11565 }, {
11566 .eraseblocks = { {64 * 1024, 2048} },
11567 .block_erase = spi_block_erase_d8,
11568 }, {
11569 .eraseblocks = { {32768 * 1024, 4} },
11570 .block_erase = spi_block_erase_c4,
11571 }
11572 },
11573 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11574 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11575 .write = spi_chip_write_256, /* Multi I/O supported */
11576 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11577 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011578 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011579 },
11580
11581 {
11582 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011583 .name = "N25Q016",
11584 .bustype = BUS_SPI,
11585 .manufacture_id = ST_ID,
11586 .model_id = ST_N25Q016__1E,
11587 .total_size = 2048,
11588 .page_size = 256,
11589 /* supports SFDP */
11590 /* OTP: 64B total; read 0x4B, write 0x42 */
11591 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11592 .tested = TEST_UNTESTED,
11593 .probe = probe_spi_rdid,
11594 .probe_timing = TIMING_ZERO,
11595 .block_erasers =
11596 {
11597 {
11598 .eraseblocks = { {4 * 1024, 512} },
11599 .block_erase = spi_block_erase_20,
11600 }, {
11601 .eraseblocks = { {32 * 1024, 64} },
11602 .block_erase = spi_block_erase_52,
11603 }, {
11604 .eraseblocks = { {64 * 1024, 32} },
11605 .block_erase = spi_block_erase_d8,
11606 }, {
11607 .eraseblocks = { {2 * 1024 * 1024, 1} },
11608 .block_erase = spi_block_erase_c7,
11609 }
11610 },
11611 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11612 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11613 .write = spi_chip_write_256, /* Multi I/O supported */
11614 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11615 .voltage = {1700, 2000},
11616 },
11617
11618 {
11619 .vendor = "Micron/Numonyx/ST",
11620 .name = "N25Q032..1E",
11621 .bustype = BUS_SPI,
11622 .manufacture_id = ST_ID,
11623 .model_id = ST_N25Q032__1E,
11624 .total_size = 4096,
11625 .page_size = 256,
11626 /* supports SFDP */
11627 /* OTP: 64B total; read 0x4B, write 0x42 */
11628 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11629 .tested = TEST_UNTESTED,
11630 .probe = probe_spi_rdid,
11631 .probe_timing = TIMING_ZERO,
11632 .block_erasers =
11633 {
11634 {
11635 .eraseblocks = { {4 * 1024, 1024} },
11636 .block_erase = spi_block_erase_20,
11637 }, {
11638 .eraseblocks = { {64 * 1024, 64} },
11639 .block_erase = spi_block_erase_d8,
11640 }, {
11641 .eraseblocks = { {4 * 1024 * 1024, 1} },
11642 .block_erase = spi_block_erase_c7,
11643 }
11644 },
11645 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11646 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11647 .write = spi_chip_write_256, /* Multi I/O supported */
11648 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11649 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011650 .reg_bits =
11651 {
11652 /*
11653 * There is also a volatile lock register per 64KiB sector, which is not
11654 * mutually exclusive with BP-based protection.
11655 */
11656 .srp = {STATUS1, 7, RW},
11657 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11658 .tb = {STATUS1, 5, RW},
11659 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011660 .wp_write_cfg = spi_wp_write_cfg,
11661 .wp_read_cfg = spi_wp_read_cfg,
11662 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011663 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011664 },
11665
11666 {
11667 .vendor = "Micron/Numonyx/ST",
11668 .name = "N25Q032..3E",
11669 .bustype = BUS_SPI,
11670 .manufacture_id = ST_ID,
11671 .model_id = ST_N25Q032__3E,
11672 .total_size = 4096,
11673 .page_size = 256,
11674 /* supports SFDP */
11675 /* OTP: 64B total; read 0x4B, write 0x42 */
11676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11677 .tested = TEST_OK_PREW,
11678 .probe = probe_spi_rdid,
11679 .probe_timing = TIMING_ZERO,
11680 .block_erasers =
11681 {
11682 {
11683 .eraseblocks = { {4 * 1024, 1024} },
11684 .block_erase = spi_block_erase_20,
11685 }, {
11686 .eraseblocks = { {64 * 1024, 64} },
11687 .block_erase = spi_block_erase_d8,
11688 }, {
11689 .eraseblocks = { {4 * 1024 * 1024, 1} },
11690 .block_erase = spi_block_erase_c7,
11691 }
11692 },
11693 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11694 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11695 .write = spi_chip_write_256, /* Multi I/O supported */
11696 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11697 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011698 .reg_bits =
11699 {
11700 /*
11701 * There is also a volatile lock register per 64KiB sector, which is not
11702 * mutually exclusive with BP-based protection.
11703 */
11704 .srp = {STATUS1, 7, RW},
11705 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11706 .tb = {STATUS1, 5, RW},
11707 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011708 .wp_write_cfg = spi_wp_write_cfg,
11709 .wp_read_cfg = spi_wp_read_cfg,
11710 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011711 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011712 },
11713
11714 {
11715 .vendor = "Micron/Numonyx/ST",
11716 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11717 .bustype = BUS_SPI,
11718 .manufacture_id = ST_ID,
11719 .model_id = ST_N25Q064__1E,
11720 .total_size = 8192,
11721 .page_size = 256,
11722 /* supports SFDP */
11723 /* OTP: 64B total; read 0x4B, write 0x42 */
11724 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011725 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011726 .probe = probe_spi_rdid,
11727 .probe_timing = TIMING_ZERO,
11728 .block_erasers =
11729 {
11730 {
11731 .eraseblocks = { {4 * 1024, 2048 } },
11732 .block_erase = spi_block_erase_20,
11733 }, {
11734 .eraseblocks = { {64 * 1024, 128} },
11735 .block_erase = spi_block_erase_d8,
11736 }, {
11737 .eraseblocks = { {8 * 1024 * 1024, 1} },
11738 .block_erase = spi_block_erase_c7,
11739 }
11740 },
11741 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11742 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11743 .write = spi_chip_write_256, /* Multi I/O supported */
11744 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11745 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011746 .reg_bits =
11747 {
11748 /*
11749 * There is also a volatile lock register per 64KiB sector, which is not
11750 * mutually exclusive with BP-based protection.
11751 */
11752 .srp = {STATUS1, 7, RW},
11753 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11754 .tb = {STATUS1, 5, RW},
11755 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011756 .wp_write_cfg = spi_wp_write_cfg,
11757 .wp_read_cfg = spi_wp_read_cfg,
11758 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011759 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011760 },
11761
11762 {
11763 .vendor = "Micron/Numonyx/ST",
11764 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11765 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011766 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011767 .model_id = ST_N25Q064__3E,
11768 .total_size = 8192,
11769 .page_size = 256,
11770 /* supports SFDP */
11771 /* OTP: 64B total; read 0x4B, write 0x42 */
11772 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11773 .tested = TEST_OK_PREW,
11774 .probe = probe_spi_rdid,
11775 .probe_timing = TIMING_ZERO,
11776 .block_erasers =
11777 {
11778 {
11779 .eraseblocks = { {4 * 1024, 2048 } },
11780 .block_erase = spi_block_erase_20,
11781 }, {
11782 .eraseblocks = { {64 * 1024, 128} },
11783 .block_erase = spi_block_erase_d8,
11784 }, {
11785 .eraseblocks = { {8 * 1024 * 1024, 1} },
11786 .block_erase = spi_block_erase_c7,
11787 }
11788 },
11789 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11790 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11791 .write = spi_chip_write_256, /* Multi I/O supported */
11792 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11793 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011794 .reg_bits =
11795 {
11796 /*
11797 * There is also a volatile lock register per 64KiB sector, which is not
11798 * mutually exclusive with BP-based protection.
11799 */
11800 .srp = {STATUS1, 7, RW},
11801 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11802 .tb = {STATUS1, 5, RW},
11803 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011804 .wp_write_cfg = spi_wp_write_cfg,
11805 .wp_read_cfg = spi_wp_read_cfg,
11806 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011807 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011808 },
11809
11810 {
11811 .vendor = "Micron/Numonyx/ST",
11812 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11813 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011814 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011815 .model_id = ST_N25Q128__1E,
11816 .total_size = 16384,
11817 .page_size = 256,
11818 /* supports SFDP */
11819 /* OTP: 64B total; read 0x4B, write 0x42 */
11820 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011821 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011822 .probe = probe_spi_rdid,
11823 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011824 .block_erasers =
11825 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011826 {
11827 .eraseblocks = { {4 * 1024, 4096 } },
11828 .block_erase = spi_block_erase_20,
11829 }, {
11830 .eraseblocks = { {64 * 1024, 256} },
11831 .block_erase = spi_block_erase_d8,
11832 }, {
11833 .eraseblocks = { {16384 * 1024, 1} },
11834 .block_erase = spi_block_erase_c7,
11835 }
11836 },
11837 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11838 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11839 .write = spi_chip_write_256, /* Multi I/O supported */
11840 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11841 .voltage = {1700, 2000},
11842 },
11843
11844 {
11845 .vendor = "Micron/Numonyx/ST",
11846 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11847 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011848 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011849 .model_id = ST_N25Q128__3E,
11850 .total_size = 16384,
11851 .page_size = 256,
11852 /* supports SFDP */
11853 /* OTP: 64B total; read 0x4B, write 0x42 */
11854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11855 .tested = TEST_OK_PREW,
11856 .probe = probe_spi_rdid,
11857 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011858 .block_erasers =
11859 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011860 {
11861 .eraseblocks = { {4 * 1024, 4096 } },
11862 .block_erase = spi_block_erase_20,
11863 }, {
11864 .eraseblocks = { {64 * 1024, 256} },
11865 .block_erase = spi_block_erase_d8,
11866 }, {
11867 .eraseblocks = { {16384 * 1024, 1} },
11868 .block_erase = spi_block_erase_c7,
11869 }
11870 },
11871 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11872 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11873 .write = spi_chip_write_256, /* Multi I/O supported */
11874 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11875 .voltage = {2700, 3600},
11876 },
11877
11878 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011879 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011880 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11881 .bustype = BUS_SPI,
11882 .manufacture_id = ST_ID,
11883 .model_id = ST_N25Q256__1E,
11884 .total_size = 32768,
11885 .page_size = 256,
11886 /* supports SFDP */
11887 /* OTP: 64B total; read 0x4B, write 0x42 */
11888 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11889 .tested = TEST_UNTESTED,
11890 .probe = probe_spi_rdid,
11891 .probe_timing = TIMING_ZERO,
11892 .block_erasers =
11893 {
11894 {
11895 .eraseblocks = { {4 * 1024, 8192} },
11896 .block_erase = spi_block_erase_21,
11897 }, {
11898 .eraseblocks = { {4 * 1024, 8192} },
11899 .block_erase = spi_block_erase_20,
11900 }, {
11901 .eraseblocks = { {64 * 1024, 512} },
11902 .block_erase = spi_block_erase_dc,
11903 }, {
11904 .eraseblocks = { {64 * 1024, 512} },
11905 .block_erase = spi_block_erase_d8,
11906 }, {
11907 .eraseblocks = { {32768 * 1024, 1} },
11908 .block_erase = spi_block_erase_c7,
11909 }
11910 },
11911 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11912 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11913 .write = spi_chip_write_256, /* Multi I/O supported */
11914 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11915 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011916 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011917 },
11918
11919 {
11920 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011921 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11922 .bustype = BUS_SPI,
11923 .manufacture_id = ST_ID,
11924 .model_id = ST_N25Q256__3E,
11925 .total_size = 32768,
11926 .page_size = 256,
11927 /* supports SFDP */
11928 /* OTP: 64B total; read 0x4B, write 0x42 */
11929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11930 .tested = TEST_UNTESTED,
11931 .probe = probe_spi_rdid,
11932 .probe_timing = TIMING_ZERO,
11933 .block_erasers =
11934 {
11935 {
11936 .eraseblocks = { {4 * 1024, 8192} },
11937 .block_erase = spi_block_erase_21,
11938 }, {
11939 .eraseblocks = { {4 * 1024, 8192} },
11940 .block_erase = spi_block_erase_20,
11941 }, {
11942 .eraseblocks = { {64 * 1024, 512} },
11943 .block_erase = spi_block_erase_dc,
11944 }, {
11945 .eraseblocks = { {64 * 1024, 512} },
11946 .block_erase = spi_block_erase_d8,
11947 }, {
11948 .eraseblocks = { {32768 * 1024, 1} },
11949 .block_erase = spi_block_erase_c7,
11950 }
11951 },
11952 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11953 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11954 .write = spi_chip_write_256, /* Multi I/O supported */
11955 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11956 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011957 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011958 },
11959
11960 {
11961 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011962 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011963 .bustype = BUS_SPI,
11964 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011965 .model_id = ST_N25Q512__1G,
11966 .total_size = 65536,
11967 .page_size = 256,
11968 /* supports SFDP */
11969 /* OTP: 64B total; read 0x4B, write 0x42 */
11970 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11971 .tested = TEST_UNTESTED,
11972 .probe = probe_spi_rdid,
11973 .probe_timing = TIMING_ZERO,
11974 .block_erasers =
11975 {
11976 {
11977 .eraseblocks = { {4 * 1024, 16384} },
11978 .block_erase = spi_block_erase_21,
11979 }, {
11980 .eraseblocks = { {4 * 1024, 16384} },
11981 .block_erase = spi_block_erase_20,
11982 }, {
11983 .eraseblocks = { {64 * 1024, 1024} },
11984 .block_erase = spi_block_erase_dc,
11985 }, {
11986 .eraseblocks = { {64 * 1024, 1024} },
11987 .block_erase = spi_block_erase_d8,
11988 }, {
11989 .eraseblocks = { {32768 * 1024, 2} },
11990 .block_erase = spi_block_erase_c4,
11991 }
11992 },
11993 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11994 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11995 .write = spi_chip_write_256, /* Multi I/O supported */
11996 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11997 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011998 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011999 },
12000
12001 {
12002 .vendor = "Micron/Numonyx/ST",
12003 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
12004 .bustype = BUS_SPI,
12005 .manufacture_id = ST_ID,
12006 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012007 .total_size = 65536,
12008 .page_size = 256,
12009 /* supports SFDP */
12010 /* OTP: 64B total; read 0x4B, write 0x42 */
12011 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12012 .tested = TEST_OK_PREW,
12013 .probe = probe_spi_rdid,
12014 .probe_timing = TIMING_ZERO,
12015 .block_erasers =
12016 {
12017 {
12018 .eraseblocks = { {4 * 1024, 16384} },
12019 .block_erase = spi_block_erase_21,
12020 }, {
12021 .eraseblocks = { {4 * 1024, 16384} },
12022 .block_erase = spi_block_erase_20,
12023 }, {
12024 .eraseblocks = { {64 * 1024, 1024} },
12025 .block_erase = spi_block_erase_dc,
12026 }, {
12027 .eraseblocks = { {64 * 1024, 1024} },
12028 .block_erase = spi_block_erase_d8,
12029 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070012030 .eraseblocks = { {32768 * 1024, 2} },
12031 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012032 }
12033 },
12034 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12035 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12036 .write = spi_chip_write_256, /* Multi I/O supported */
12037 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12038 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012039 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012040 },
12041
12042 {
Ed Swierk199ab392017-07-03 13:33:44 -070012043 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012044 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12045 .bustype = BUS_SPI,
12046 .manufacture_id = ST_ID,
12047 .model_id = ST_N25Q00A__3G,
12048 .total_size = 131072,
12049 .page_size = 256,
12050 /* supports SFDP */
12051 /* OTP: 64B total; read 0x4B, write 0x42 */
12052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12053 .tested = TEST_OK_PREW,
12054 .probe = probe_spi_rdid,
12055 .probe_timing = TIMING_ZERO,
12056 .block_erasers =
12057 {
12058 {
12059 .eraseblocks = { {4 * 1024, 32768} },
12060 .block_erase = spi_block_erase_21,
12061 }, {
12062 .eraseblocks = { {4 * 1024, 32768} },
12063 .block_erase = spi_block_erase_20,
12064 }, {
12065 .eraseblocks = { {32 * 1024, 4096} },
12066 .block_erase = spi_block_erase_5c,
12067 }, {
12068 .eraseblocks = { {32 * 1024, 4096} },
12069 .block_erase = spi_block_erase_52,
12070 }, {
12071 .eraseblocks = { {64 * 1024, 2048} },
12072 .block_erase = spi_block_erase_dc,
12073 }, {
12074 .eraseblocks = { {64 * 1024, 2048} },
12075 .block_erase = spi_block_erase_d8,
12076 }, {
12077 .eraseblocks = { {65536 * 1024, 2} },
12078 .block_erase = spi_block_erase_c4,
12079 }
12080 },
12081 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12082 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12083 .write = spi_chip_write_256, /* Multi I/O supported */
12084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12085 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012086 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012087 },
12088
12089 {
12090 .vendor = "Micron",
12091 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12092 .bustype = BUS_SPI,
12093 .manufacture_id = ST_ID,
12094 .model_id = ST_N25Q00A__1G,
12095 .total_size = 131072,
12096 .page_size = 256,
12097 /* supports SFDP */
12098 /* OTP: 64B total; read 0x4B, write 0x42 */
12099 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12100 .tested = TEST_UNTESTED,
12101 .probe = probe_spi_rdid,
12102 .probe_timing = TIMING_ZERO,
12103 .block_erasers =
12104 {
12105 {
12106 .eraseblocks = { {4 * 1024, 32768} },
12107 .block_erase = spi_block_erase_21,
12108 }, {
12109 .eraseblocks = { {4 * 1024, 32768} },
12110 .block_erase = spi_block_erase_20,
12111 }, {
12112 .eraseblocks = { {32 * 1024, 4096} },
12113 .block_erase = spi_block_erase_5c,
12114 }, {
12115 .eraseblocks = { {32 * 1024, 4096} },
12116 .block_erase = spi_block_erase_52,
12117 }, {
12118 .eraseblocks = { {64 * 1024, 2048} },
12119 .block_erase = spi_block_erase_dc,
12120 }, {
12121 .eraseblocks = { {64 * 1024, 2048} },
12122 .block_erase = spi_block_erase_d8,
12123 }, {
12124 .eraseblocks = { {65536 * 1024, 2} },
12125 .block_erase = spi_block_erase_c4,
12126 }
12127 },
12128 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12129 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12130 .write = spi_chip_write_256, /* Multi I/O supported */
12131 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12132 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012133 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012134 },
12135
12136 {
12137 .vendor = "Micron",
12138 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12139 .bustype = BUS_SPI,
12140 .manufacture_id = ST_ID,
12141 .model_id = ST_MT25QL02G,
12142 .total_size = 262144,
12143 .page_size = 256,
12144 /* supports SFDP */
12145 /* OTP: 64B total; read 0x4B, write 0x42 */
12146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12147 .tested = TEST_UNTESTED,
12148 .probe = probe_spi_rdid,
12149 .probe_timing = TIMING_ZERO,
12150 .block_erasers =
12151 {
12152 {
12153 .eraseblocks = { {4 * 1024, 65536} },
12154 .block_erase = spi_block_erase_21,
12155 }, {
12156 .eraseblocks = { {4 * 1024, 65536} },
12157 .block_erase = spi_block_erase_20,
12158 }, {
12159 .eraseblocks = { {32 * 1024, 8192} },
12160 .block_erase = spi_block_erase_5c,
12161 }, {
12162 .eraseblocks = { {32 * 1024, 8192} },
12163 .block_erase = spi_block_erase_52,
12164 }, {
12165 .eraseblocks = { {64 * 1024, 4096} },
12166 .block_erase = spi_block_erase_dc,
12167 }, {
12168 .eraseblocks = { {64 * 1024, 4096} },
12169 .block_erase = spi_block_erase_d8,
12170 }, {
12171 .eraseblocks = { {65536 * 1024, 4} },
12172 .block_erase = spi_block_erase_c4,
12173 }
12174 },
12175 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12176 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12177 .write = spi_chip_write_256, /* Multi I/O supported */
12178 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12179 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012180 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012181 },
12182
12183 {
12184 .vendor = "Micron",
12185 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12186 .bustype = BUS_SPI,
12187 .manufacture_id = ST_ID,
12188 .model_id = ST_MT25QU02G,
12189 .total_size = 262144,
12190 .page_size = 256,
12191 /* supports SFDP */
12192 /* OTP: 64B total; read 0x4B, write 0x42 */
12193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12194 .tested = TEST_UNTESTED,
12195 .probe = probe_spi_rdid,
12196 .probe_timing = TIMING_ZERO,
12197 .block_erasers =
12198 {
12199 {
12200 .eraseblocks = { {4 * 1024, 65536} },
12201 .block_erase = spi_block_erase_21,
12202 }, {
12203 .eraseblocks = { {4 * 1024, 65536} },
12204 .block_erase = spi_block_erase_20,
12205 }, {
12206 .eraseblocks = { {32 * 1024, 8192} },
12207 .block_erase = spi_block_erase_5c,
12208 }, {
12209 .eraseblocks = { {32 * 1024, 8192} },
12210 .block_erase = spi_block_erase_52,
12211 }, {
12212 .eraseblocks = { {64 * 1024, 4096} },
12213 .block_erase = spi_block_erase_dc,
12214 }, {
12215 .eraseblocks = { {64 * 1024, 4096} },
12216 .block_erase = spi_block_erase_d8,
12217 }, {
12218 .eraseblocks = { {65536 * 1024, 4} },
12219 .block_erase = spi_block_erase_c4,
12220 }
12221 },
12222 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12223 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12224 .write = spi_chip_write_256, /* Multi I/O supported */
12225 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12226 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012227 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012228 },
12229
12230 {
12231 .vendor = "Micron",
12232 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12233 .bustype = BUS_SPI,
12234 .manufacture_id = ST_ID,
12235 .model_id = ST_N25Q128__1E,
12236 .total_size = 16384,
12237 .page_size = 256,
12238 /* supports SFDP */
12239 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010012240 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012241 .tested = TEST_UNTESTED,
12242 .probe = probe_spi_rdid,
12243 .probe_timing = TIMING_ZERO,
12244 .block_erasers =
12245 {
12246 {
12247 .eraseblocks = { {4 * 1024, 4096} },
12248 .block_erase = spi_block_erase_20,
12249 }, {
12250 .eraseblocks = { {32 * 1024, 512} },
12251 .block_erase = spi_block_erase_52,
12252 }, {
12253 .eraseblocks = { {64 * 1024, 256} },
12254 .block_erase = spi_block_erase_d8,
12255 }, {
12256 .eraseblocks = { {16384 * 1024, 1} },
12257 .block_erase = spi_block_erase_c7,
12258 }, {
12259 .eraseblocks = { {16384 * 1024, 1} },
12260 .block_erase = spi_block_erase_60,
12261 }
12262 },
12263 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12264 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12265 .write = spi_chip_write_256, /* Multi I/O supported */
12266 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12267 .voltage = {1700, 2000},
12268 },
12269
12270 {
12271 .vendor = "Micron",
12272 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12273 .bustype = BUS_SPI,
12274 .manufacture_id = ST_ID,
12275 .model_id = ST_N25Q128__3E,
12276 .total_size = 16384,
12277 .page_size = 256,
12278 /* supports SFDP */
12279 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080012280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12281 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012282 .probe = probe_spi_rdid,
12283 .probe_timing = TIMING_ZERO,
12284 .block_erasers =
12285 {
12286 {
12287 .eraseblocks = { {4 * 1024, 4096} },
12288 .block_erase = spi_block_erase_20,
12289 }, {
12290 .eraseblocks = { {32 * 1024, 512} },
12291 .block_erase = spi_block_erase_52,
12292 }, {
12293 .eraseblocks = { {64 * 1024, 256} },
12294 .block_erase = spi_block_erase_d8,
12295 }, {
12296 .eraseblocks = { {16384 * 1024, 1} },
12297 .block_erase = spi_block_erase_c7,
12298 }, {
12299 .eraseblocks = { {16384 * 1024, 1} },
12300 .block_erase = spi_block_erase_60,
12301 }
12302 },
12303 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12304 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12305 .write = spi_chip_write_256, /* Multi I/O supported */
12306 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12307 .voltage = {2700, 3600},
12308 },
12309
12310 {
12311 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012312 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012313 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012314 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070012315 .model_id = ST_N25Q256__3E,
12316 .total_size = 32768,
12317 .page_size = 256,
12318 /* supports SFDP */
12319 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010012321 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012322 .probe = probe_spi_rdid,
12323 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012324 .block_erasers =
12325 {
Ed Swierk199ab392017-07-03 13:33:44 -070012326 {
12327 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012328 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012329 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012330 .eraseblocks = { {4 * 1024, 8192} },
12331 .block_erase = spi_block_erase_20,
12332 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012333 .eraseblocks = { {32 * 1024, 1024} },
12334 .block_erase = spi_block_erase_5c,
12335 }, {
12336 .eraseblocks = { {32 * 1024, 1024} },
12337 .block_erase = spi_block_erase_52,
12338 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012339 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012340 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012341 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012342 .eraseblocks = { {64 * 1024, 512} },
12343 .block_erase = spi_block_erase_d8,
12344 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012345 .eraseblocks = { {32768 * 1024, 1} },
12346 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012347 }, {
12348 .eraseblocks = { {32768 * 1024, 1} },
12349 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012350 }
12351 },
12352 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12353 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12354 .write = spi_chip_write_256, /* Multi I/O supported */
12355 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12356 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012357 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012358 },
12359
12360 {
12361 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012362 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12363 .bustype = BUS_SPI,
12364 .manufacture_id = ST_ID,
12365 .model_id = ST_N25Q256__1E,
12366 .total_size = 32768,
12367 .page_size = 256,
12368 /* supports SFDP */
12369 /* OTP: 64B total; read 0x4B, write 0x42 */
12370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010012371 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012372 .probe = probe_spi_rdid,
12373 .probe_timing = TIMING_ZERO,
12374 .block_erasers =
12375 {
12376 {
12377 .eraseblocks = { {4 * 1024, 8192} },
12378 .block_erase = spi_block_erase_21,
12379 }, {
12380 .eraseblocks = { {4 * 1024, 8192} },
12381 .block_erase = spi_block_erase_20,
12382 }, {
12383 .eraseblocks = { {32 * 1024, 1024} },
12384 .block_erase = spi_block_erase_5c,
12385 }, {
12386 .eraseblocks = { {32 * 1024, 1024} },
12387 .block_erase = spi_block_erase_52,
12388 }, {
12389 .eraseblocks = { {64 * 1024, 512} },
12390 .block_erase = spi_block_erase_dc,
12391 }, {
12392 .eraseblocks = { {64 * 1024, 512} },
12393 .block_erase = spi_block_erase_d8,
12394 }, {
12395 .eraseblocks = { {32768 * 1024, 1} },
12396 .block_erase = spi_block_erase_c7,
12397 }, {
12398 .eraseblocks = { {32768 * 1024, 1} },
12399 .block_erase = spi_block_erase_60,
12400 }
12401 },
12402 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12403 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12404 .write = spi_chip_write_256, /* Multi I/O supported */
12405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12406 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012407 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012408 },
12409
12410 {
12411 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012412 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012413 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012414 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012415 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070012416 .total_size = 65536,
12417 .page_size = 256,
12418 /* supports SFDP */
12419 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020012421 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012422 .probe = probe_spi_rdid,
12423 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012424 .block_erasers =
12425 {
Ed Swierk199ab392017-07-03 13:33:44 -070012426 {
12427 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012428 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012429 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012430 .eraseblocks = { {4 * 1024, 16384} },
12431 .block_erase = spi_block_erase_20,
12432 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012433 .eraseblocks = { {32 * 1024, 2048} },
12434 .block_erase = spi_block_erase_5c,
12435 }, {
12436 .eraseblocks = { {32 * 1024, 2048} },
12437 .block_erase = spi_block_erase_52,
12438 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012439 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012440 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012441 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012442 .eraseblocks = { {64 * 1024, 1024} },
12443 .block_erase = spi_block_erase_d8,
12444 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012445 .eraseblocks = { {65536 * 1024, 1} },
12446 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012447 }, {
12448 .eraseblocks = { {65536 * 1024, 1} },
12449 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012450 }
12451 },
12452 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12453 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12454 .write = spi_chip_write_256, /* Multi I/O supported */
12455 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12456 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012457 .reg_bits =
12458 {
12459 .srp = {STATUS1, 7, RW},
12460 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12461 .tb = {STATUS1, 5, RW},
12462 },
Nico Huberaabb3e02023-01-13 00:22:30 +010012463 .wp_write_cfg = spi_wp_write_cfg,
12464 .wp_read_cfg = spi_wp_read_cfg,
12465 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012466 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010012467 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012468 },
12469
12470 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012471 .vendor = "Micron",
12472 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12473 .bustype = BUS_SPI,
12474 .manufacture_id = ST_ID,
12475 .model_id = ST_N25Q512__1G,
12476 .total_size = 65536,
12477 .page_size = 256,
12478 /* supports SFDP */
12479 /* OTP: 64B total; read 0x4B, write 0x42 */
12480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12481 .tested = TEST_OK_PREW,
12482 .probe = probe_spi_rdid,
12483 .probe_timing = TIMING_ZERO,
12484 .block_erasers =
12485 {
12486 {
12487 .eraseblocks = { {4 * 1024, 16384} },
12488 .block_erase = spi_block_erase_21,
12489 }, {
12490 .eraseblocks = { {4 * 1024, 16384} },
12491 .block_erase = spi_block_erase_20,
12492 }, {
12493 .eraseblocks = { {32 * 1024, 2048} },
12494 .block_erase = spi_block_erase_5c,
12495 }, {
12496 .eraseblocks = { {32 * 1024, 2048} },
12497 .block_erase = spi_block_erase_52,
12498 }, {
12499 .eraseblocks = { {64 * 1024, 1024} },
12500 .block_erase = spi_block_erase_dc,
12501 }, {
12502 .eraseblocks = { {64 * 1024, 1024} },
12503 .block_erase = spi_block_erase_d8,
12504 }, {
12505 .eraseblocks = { {65536 * 1024, 1} },
12506 .block_erase = spi_block_erase_c7,
12507 }, {
12508 .eraseblocks = { {65536 * 1024, 1} },
12509 .block_erase = spi_block_erase_60,
12510 }
12511 },
12512 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12513 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12514 .write = spi_chip_write_256, /* Multi I/O supported */
12515 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12516 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012517 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012518 },
12519
12520 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012521 .vendor = "MoselVitelic",
12522 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012523 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012524 .manufacture_id = SYNCMOS_MVC_ID,
12525 .model_id = MVC_V29C51000B,
12526 .total_size = 64,
12527 .page_size = 512,
12528 .feature_bits = FEATURE_EITHER_RESET,
12529 .tested = TEST_UNTESTED,
12530 .probe = probe_jedec,
12531 .probe_timing = TIMING_ZERO,
12532 .block_erasers =
12533 {
12534 {
12535 .eraseblocks = { {512, 128} },
12536 .block_erase = erase_sector_jedec,
12537 }, {
12538 .eraseblocks = { {64 * 1024, 1} },
12539 .block_erase = erase_chip_block_jedec,
12540 },
12541 },
12542 .write = write_jedec_1,
12543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012544 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012545 .prepare_access = prepare_memory_access,
12546 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012547 },
12548
12549 {
12550 .vendor = "MoselVitelic",
12551 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012552 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012553 .manufacture_id = SYNCMOS_MVC_ID,
12554 .model_id = MVC_V29C51000T,
12555 .total_size = 64,
12556 .page_size = 512,
12557 .feature_bits = FEATURE_EITHER_RESET,
12558 .tested = TEST_UNTESTED,
12559 .probe = probe_jedec,
12560 .probe_timing = TIMING_ZERO,
12561 .block_erasers =
12562 {
12563 {
12564 .eraseblocks = { {512, 128} },
12565 .block_erase = erase_sector_jedec,
12566 }, {
12567 .eraseblocks = { {64 * 1024, 1} },
12568 .block_erase = erase_chip_block_jedec,
12569 },
12570 },
12571 .write = write_jedec_1,
12572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012573 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012574 .prepare_access = prepare_memory_access,
12575 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012576 },
12577
12578 {
12579 .vendor = "MoselVitelic",
12580 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012581 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012582 .manufacture_id = SYNCMOS_MVC_ID,
12583 .model_id = MVC_V29C51400B,
12584 .total_size = 512,
12585 .page_size = 1024,
12586 .feature_bits = FEATURE_EITHER_RESET,
12587 .tested = TEST_UNTESTED,
12588 .probe = probe_jedec,
12589 .probe_timing = TIMING_ZERO,
12590 .block_erasers =
12591 {
12592 {
12593 .eraseblocks = { {1024, 512} },
12594 .block_erase = erase_sector_jedec,
12595 }, {
12596 .eraseblocks = { {512 * 1024, 1} },
12597 .block_erase = erase_chip_block_jedec,
12598 },
12599 },
12600 .write = write_jedec_1,
12601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012602 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012603 .prepare_access = prepare_memory_access,
12604 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012605 },
12606
12607 {
12608 .vendor = "MoselVitelic",
12609 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012610 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012611 .manufacture_id = SYNCMOS_MVC_ID,
12612 .model_id = MVC_V29C51400T,
12613 .total_size = 512,
12614 .page_size = 1024,
12615 .feature_bits = FEATURE_EITHER_RESET,
12616 .tested = TEST_UNTESTED,
12617 .probe = probe_jedec,
12618 .probe_timing = TIMING_ZERO,
12619 .block_erasers =
12620 {
12621 {
12622 .eraseblocks = { {1024, 512} },
12623 .block_erase = erase_sector_jedec,
12624 }, {
12625 .eraseblocks = { {512 * 1024, 1} },
12626 .block_erase = erase_chip_block_jedec,
12627 },
12628 },
12629 .write = write_jedec_1,
12630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012631 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012632 .prepare_access = prepare_memory_access,
12633 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012634 },
12635
12636 {
12637 .vendor = "MoselVitelic",
12638 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012639 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012640 .manufacture_id = SYNCMOS_MVC_ID,
12641 .model_id = MVC_V29LC51000,
12642 .total_size = 64,
12643 .page_size = 512,
12644 .feature_bits = FEATURE_EITHER_RESET,
12645 .tested = TEST_UNTESTED,
12646 .probe = probe_jedec,
12647 .probe_timing = TIMING_ZERO,
12648 .block_erasers =
12649 {
12650 {
12651 .eraseblocks = { {512, 128} },
12652 .block_erase = erase_sector_jedec,
12653 }, {
12654 .eraseblocks = { {64 * 1024, 1} },
12655 .block_erase = erase_chip_block_jedec,
12656 },
12657 },
12658 .write = write_jedec_1,
12659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012660 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012661 .prepare_access = prepare_memory_access,
12662 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012663 },
12664
12665 {
12666 .vendor = "MoselVitelic",
12667 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012668 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012669 .manufacture_id = SYNCMOS_MVC_ID,
12670 .model_id = MVC_V29LC51001,
12671 .total_size = 128,
12672 .page_size = 512,
12673 .feature_bits = FEATURE_EITHER_RESET,
12674 .tested = TEST_UNTESTED,
12675 .probe = probe_jedec,
12676 .probe_timing = TIMING_ZERO,
12677 .block_erasers =
12678 {
12679 {
12680 .eraseblocks = { {512, 256} },
12681 .block_erase = erase_sector_jedec,
12682 }, {
12683 .eraseblocks = { {128 * 1024, 1} },
12684 .block_erase = erase_chip_block_jedec,
12685 },
12686 },
12687 .write = write_jedec_1,
12688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012689 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012690 .prepare_access = prepare_memory_access,
12691 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012692 },
12693
12694 {
12695 .vendor = "MoselVitelic",
12696 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012697 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012698 .manufacture_id = SYNCMOS_MVC_ID,
12699 .model_id = MVC_V29LC51002,
12700 .total_size = 256,
12701 .page_size = 512,
12702 .feature_bits = FEATURE_EITHER_RESET,
12703 .tested = TEST_UNTESTED,
12704 .probe = probe_jedec,
12705 .probe_timing = TIMING_ZERO,
12706 .block_erasers =
12707 {
12708 {
12709 .eraseblocks = { {512, 512} },
12710 .block_erase = erase_sector_jedec,
12711 }, {
12712 .eraseblocks = { {256 * 1024, 1} },
12713 .block_erase = erase_chip_block_jedec,
12714 },
12715 },
12716 .write = write_jedec_1,
12717 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012718 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012719 .prepare_access = prepare_memory_access,
12720 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012721 },
12722
12723 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012724 .vendor = "Nantronics",
12725 .name = "N25S10",
12726 .bustype = BUS_SPI,
12727 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12728 .model_id = NANTRONICS_N25S10,
12729 .total_size = 128,
12730 .page_size = 256,
12731 .feature_bits = FEATURE_WRSR_WREN,
12732 .tested = TEST_UNTESTED,
12733 .probe = probe_spi_rdid,
12734 .probe_timing = TIMING_ZERO,
12735 .block_erasers =
12736 {
12737 {
12738 .eraseblocks = { {4 * 1024, 32} },
12739 .block_erase = spi_block_erase_20,
12740 }, {
12741 .eraseblocks = { {4 * 1024, 32} },
12742 .block_erase = spi_block_erase_d7,
12743 }, {
12744 .eraseblocks = { {32 * 1024, 4} },
12745 .block_erase = spi_block_erase_52,
12746 }, {
12747 .eraseblocks = { {64 * 1024, 2} },
12748 .block_erase = spi_block_erase_d8,
12749 }, {
12750 .eraseblocks = { {128 * 1024, 1} },
12751 .block_erase = spi_block_erase_60,
12752 }, {
12753 .eraseblocks = { {128 * 1024, 1} },
12754 .block_erase = spi_block_erase_c7,
12755 }
12756 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012757 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012758 .unlock = spi_disable_blockprotect_bp3_srwd,
12759 .write = spi_chip_write_256,
12760 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12761 .voltage = {2700, 3600},
12762 },
12763
12764 {
12765 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012766 .name = "N25S16",
12767 .bustype = BUS_SPI,
12768 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12769 .model_id = NANTRONICS_N25S16,
12770 .total_size = 2048,
12771 .page_size = 256,
12772 .feature_bits = FEATURE_WRSR_WREN,
12773 .tested = TEST_UNTESTED,
12774 .probe = probe_spi_rdid,
12775 .probe_timing = TIMING_ZERO,
12776 .block_erasers =
12777 {
12778 {
12779 .eraseblocks = { {4 * 1024, 512} },
12780 .block_erase = spi_block_erase_20,
12781 }, {
12782 .eraseblocks = { {64 * 1024, 32} },
12783 .block_erase = spi_block_erase_d8,
12784 }, {
12785 .eraseblocks = { {2048 * 1024, 1} },
12786 .block_erase = spi_block_erase_60,
12787 }, {
12788 .eraseblocks = { {2048 * 1024, 1} },
12789 .block_erase = spi_block_erase_c7,
12790 }
12791 },
12792 .printlock = spi_prettyprint_status_register_bp3_srwd,
12793 .unlock = spi_disable_blockprotect_bp3_srwd,
12794 .write = spi_chip_write_256,
12795 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12796 .voltage = {2700, 3600},
12797 },
12798
12799 {
12800 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012801 .name = "N25S20",
12802 .bustype = BUS_SPI,
12803 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12804 .model_id = NANTRONICS_N25S20,
12805 .total_size = 256,
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, 64} },
12815 .block_erase = spi_block_erase_20,
12816 }, {
12817 .eraseblocks = { {4 * 1024, 64} },
12818 .block_erase = spi_block_erase_d7,
12819 }, {
12820 .eraseblocks = { {32 * 1024, 8} },
12821 .block_erase = spi_block_erase_52,
12822 }, {
12823 .eraseblocks = { {64 * 1024, 4} },
12824 .block_erase = spi_block_erase_d8,
12825 }, {
12826 .eraseblocks = { {256 * 1024, 1} },
12827 .block_erase = spi_block_erase_60,
12828 }, {
12829 .eraseblocks = { {256 * 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",
12842 .name = "N25S40",
12843 .bustype = BUS_SPI,
12844 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12845 .model_id = NANTRONICS_N25S40,
12846 .total_size = 512,
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, 128} },
12856 .block_erase = spi_block_erase_20,
12857 }, {
12858 .eraseblocks = { {4 * 1024, 128} },
12859 .block_erase = spi_block_erase_d7,
12860 }, {
12861 .eraseblocks = { {32 * 1024, 16} },
12862 .block_erase = spi_block_erase_52,
12863 }, {
12864 .eraseblocks = { {64 * 1024, 8} },
12865 .block_erase = spi_block_erase_d8,
12866 }, {
12867 .eraseblocks = { {512 * 1024, 1} },
12868 .block_erase = spi_block_erase_60,
12869 }, {
12870 .eraseblocks = { {512 * 1024, 1} },
12871 .block_erase = spi_block_erase_c7,
12872 }
12873 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012874 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012875 .unlock = spi_disable_blockprotect_bp3_srwd,
12876 .write = spi_chip_write_256,
12877 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12878 .voltage = {2700, 3600},
12879 },
12880
12881 {
12882 .vendor = "Nantronics",
12883 .name = "N25S80",
12884 .bustype = BUS_SPI,
12885 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12886 .model_id = NANTRONICS_N25S80,
12887 .total_size = 1024,
12888 .page_size = 256,
12889 .feature_bits = FEATURE_WRSR_WREN,
12890 .tested = TEST_UNTESTED,
12891 .probe = probe_spi_rdid,
12892 .probe_timing = TIMING_ZERO,
12893 .block_erasers =
12894 {
12895 {
12896 .eraseblocks = { {4 * 1024, 256} },
12897 .block_erase = spi_block_erase_20,
12898 }, {
12899 .eraseblocks = { {32 * 1024, 32} },
12900 .block_erase = spi_block_erase_52,
12901 }, {
12902 .eraseblocks = { {64 * 1024, 16} },
12903 .block_erase = spi_block_erase_d8,
12904 }, {
12905 .eraseblocks = { {1024 * 1024, 1} },
12906 .block_erase = spi_block_erase_60,
12907 }, {
12908 .eraseblocks = { {1024 * 1024, 1} },
12909 .block_erase = spi_block_erase_c7,
12910 }
12911 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012912 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012913 .unlock = spi_disable_blockprotect_bp3_srwd,
12914 .write = spi_chip_write_256,
12915 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12916 .voltage = {2700, 3600},
12917 },
12918
12919 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012920 .vendor = "PMC",
12921 .name = "Pm25LD010(C)",
12922 .bustype = BUS_SPI,
12923 .manufacture_id = PMC_ID,
12924 .model_id = PMC_PM25LD010,
12925 .total_size = 128,
12926 .page_size = 256,
12927 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012928 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012929 .probe = probe_spi_rdid,
12930 .probe_timing = TIMING_ZERO,
12931 .block_erasers =
12932 {
12933 {
12934 .eraseblocks = { {4 * 1024, 32} },
12935 .block_erase = spi_block_erase_20,
12936 }, {
12937 .eraseblocks = { {4 * 1024, 32} },
12938 .block_erase = spi_block_erase_d7,
12939 }, {
12940 .eraseblocks = { {32 * 1024, 4} },
12941 .block_erase = spi_block_erase_d8,
12942 }, {
12943 .eraseblocks = { {128 * 1024, 1} },
12944 .block_erase = spi_block_erase_60,
12945 }, {
12946 .eraseblocks = { {128 * 1024, 1} },
12947 .block_erase = spi_block_erase_c7,
12948 }
12949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012950 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012951 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12952 .write = spi_chip_write_256,
12953 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12954 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12955 },
12956
12957 {
12958 .vendor = "PMC",
12959 .name = "Pm25LD020(C)",
12960 .bustype = BUS_SPI,
12961 .manufacture_id = PMC_ID,
12962 .model_id = PMC_PM25LD020,
12963 .total_size = 256,
12964 .page_size = 256,
12965 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012966 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012967 .probe = probe_spi_rdid,
12968 .probe_timing = TIMING_ZERO,
12969 .block_erasers =
12970 {
12971 {
12972 .eraseblocks = { {4 * 1024, 64} },
12973 .block_erase = spi_block_erase_20,
12974 }, {
12975 .eraseblocks = { {4 * 1024, 64} },
12976 .block_erase = spi_block_erase_d7,
12977 }, {
12978 .eraseblocks = { {64 * 1024, 4} },
12979 .block_erase = spi_block_erase_d8,
12980 }, {
12981 .eraseblocks = { {256 * 1024, 1} },
12982 .block_erase = spi_block_erase_60,
12983 }, {
12984 .eraseblocks = { {256 * 1024, 1} },
12985 .block_erase = spi_block_erase_c7,
12986 }
12987 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012988 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012989 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12990 .write = spi_chip_write_256,
12991 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12992 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12993 },
12994
12995 {
12996 .vendor = "PMC",
12997 .name = "Pm25LD040(C)",
12998 .bustype = BUS_SPI,
12999 .manufacture_id = PMC_ID,
13000 .model_id = PMC_PM25LV040,
13001 .total_size = 512,
13002 .page_size = 256,
13003 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020013004 .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, 128} },
13011 .block_erase = spi_block_erase_20,
13012 }, {
13013 .eraseblocks = { {4 * 1024, 128} },
13014 .block_erase = spi_block_erase_d7,
13015 }, {
13016 .eraseblocks = { {64 * 1024, 8} },
13017 .block_erase = spi_block_erase_d8,
13018 }, {
13019 .eraseblocks = { {512 * 1024, 1} },
13020 .block_erase = spi_block_erase_60,
13021 }, {
13022 .eraseblocks = { {512 * 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,
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 Pm25LD040 */
13031 },
13032
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013033 {
13034 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013035 .name = "Pm25LD256C",
13036 .bustype = BUS_SPI,
13037 .manufacture_id = PMC_ID,
13038 .model_id = PMC_PM25LD256C,
13039 .total_size = 32,
13040 .page_size = 256,
13041 .feature_bits = FEATURE_WRSR_WREN,
13042 .tested = TEST_UNTESTED,
13043 .probe = probe_spi_rdid,
13044 .probe_timing = TIMING_ZERO,
13045 .block_erasers =
13046 {
13047 {
13048 .eraseblocks = { {4 * 1024, 8} },
13049 .block_erase = spi_block_erase_20,
13050 }, {
13051 .eraseblocks = { {4 * 1024, 8} },
13052 .block_erase = spi_block_erase_d7,
13053 }, {
13054 .eraseblocks = { {32 * 1024, 1} },
13055 .block_erase = spi_block_erase_d8,
13056 }, {
13057 .eraseblocks = { {32 * 1024, 1} },
13058 .block_erase = spi_block_erase_60,
13059 }, {
13060 .eraseblocks = { {32 * 1024, 1} },
13061 .block_erase = spi_block_erase_c7,
13062 }
13063 },
13064 .printlock = spi_prettyprint_status_register_bp2_srwd,
13065 .unlock = spi_disable_blockprotect,
13066 .write = spi_chip_write_256,
13067 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13068 .voltage = {2700, 3600},
13069 },
13070
13071 {
13072 .vendor = "PMC",
13073 .name = "Pm25LD512(C)",
13074 .bustype = BUS_SPI,
13075 .manufacture_id = PMC_ID,
13076 .model_id = PMC_PM25LD512,
13077 .total_size = 64,
13078 .page_size = 256,
13079 .feature_bits = FEATURE_WRSR_WREN,
13080 .tested = TEST_OK_PREW,
13081 .probe = probe_spi_rdid,
13082 .probe_timing = TIMING_ZERO,
13083 .block_erasers =
13084 {
13085 {
13086 .eraseblocks = { {4 * 1024, 16} },
13087 .block_erase = spi_block_erase_20,
13088 }, {
13089 .eraseblocks = { {4 * 1024, 16} },
13090 .block_erase = spi_block_erase_d7,
13091 }, {
13092 .eraseblocks = { {32 * 1024, 2} },
13093 .block_erase = spi_block_erase_d8,
13094 }, {
13095 .eraseblocks = { {64 * 1024, 1} },
13096 .block_erase = spi_block_erase_60,
13097 }, {
13098 .eraseblocks = { {64 * 1024, 1} },
13099 .block_erase = spi_block_erase_c7,
13100 }
13101 },
13102 .printlock = spi_prettyprint_status_register_bp2_srwd,
13103 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13104 .write = spi_chip_write_256,
13105 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13106 .voltage = {2300, 3600},
13107 },
13108
13109 {
13110 .vendor = "PMC",
13111 .name = "Pm25LQ016",
13112 .bustype = BUS_SPI,
13113 .manufacture_id = PMC_ID,
13114 .model_id = PMC_PM25LQ016,
13115 .total_size = 2048,
13116 .page_size = 256,
13117 /* OTP: 256B total; read 0x4B, write 0xB1 */
13118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13119 .tested = TEST_UNTESTED,
13120 .probe = probe_spi_rdid,
13121 .probe_timing = TIMING_ZERO,
13122 .block_erasers =
13123 {
13124 {
13125 .eraseblocks = { {4 * 1024, 512} },
13126 .block_erase = spi_block_erase_20,
13127 }, {
13128 .eraseblocks = { {4 * 1024, 512} },
13129 .block_erase = spi_block_erase_d7,
13130 }, {
13131 .eraseblocks = { {64 * 1024, 32} },
13132 .block_erase = spi_block_erase_d8,
13133 }, {
13134 .eraseblocks = { {2048 * 1024, 1} },
13135 .block_erase = spi_block_erase_60,
13136 }, {
13137 .eraseblocks = { {2048 * 1024, 1} },
13138 .block_erase = spi_block_erase_c7,
13139 }
13140 },
13141 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13142 .unlock = spi_disable_blockprotect_bp3_srwd,
13143 .write = spi_chip_write_256,
13144 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13145 .voltage = {2300, 3600},
13146 },
13147
13148 {
13149 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013150 .name = "Pm25LQ020",
13151 .bustype = BUS_SPI,
13152 .manufacture_id = PMC_ID,
13153 .model_id = PMC_PM25LQ020,
13154 .total_size = 256,
13155 .page_size = 256,
13156 /* OTP: 256B total; read 0x4B, write 0xB1 */
13157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13158 .tested = TEST_UNTESTED,
13159 .probe = probe_spi_rdid,
13160 .probe_timing = TIMING_ZERO,
13161 .block_erasers =
13162 {
13163 {
13164 .eraseblocks = { {4 * 1024, 64} },
13165 .block_erase = spi_block_erase_20,
13166 }, {
13167 .eraseblocks = { {4 * 1024, 64} },
13168 .block_erase = spi_block_erase_d7,
13169 }, {
13170 .eraseblocks = { {64 * 1024, 4} },
13171 .block_erase = spi_block_erase_d8,
13172 }, {
13173 .eraseblocks = { {256 * 1024, 1} },
13174 .block_erase = spi_block_erase_60,
13175 }, {
13176 .eraseblocks = { {256 * 1024, 1} },
13177 .block_erase = spi_block_erase_c7,
13178 }
13179 },
13180 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13181 .unlock = spi_disable_blockprotect_bp3_srwd,
13182 .write = spi_chip_write_256,
13183 .read = spi_chip_read,
13184 .voltage = {2300, 3600},
13185 },
13186
13187 {
13188 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013189 .name = "Pm25LQ032C",
13190 .bustype = BUS_SPI,
13191 .manufacture_id = PMC_ID,
13192 .model_id = PMC_PM25LQ032C,
13193 .total_size = 4096,
13194 .page_size = 256,
13195 /* OTP: 64B total; read 0x4B, write 0xB1 */
13196 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13197 .tested = TEST_OK_PREW,
13198 .probe = probe_spi_rdid,
13199 .probe_timing = TIMING_ZERO,
13200 .block_erasers =
13201 {
13202 {
13203 .eraseblocks = { {4 * 1024, 1024} },
13204 .block_erase = spi_block_erase_20,
13205 }, {
13206 .eraseblocks = { {4 * 1024, 1024} },
13207 .block_erase = spi_block_erase_d7,
13208 }, {
13209 .eraseblocks = { {64 * 1024, 64} },
13210 .block_erase = spi_block_erase_d8,
13211 }, {
13212 .eraseblocks = { {4096 * 1024, 1} },
13213 .block_erase = spi_block_erase_60,
13214 }, {
13215 .eraseblocks = { {4096 * 1024, 1} },
13216 .block_erase = spi_block_erase_c7,
13217 }
13218 },
13219 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13220 .unlock = spi_disable_blockprotect_bp3_srwd,
13221 .write = spi_chip_write_256,
13222 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13223 .voltage = {2700, 3600},
13224 },
13225
13226 {
13227 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013228 .name = "Pm25LQ040",
13229 .bustype = BUS_SPI,
13230 .manufacture_id = PMC_ID,
13231 .model_id = PMC_PM25LQ040,
13232 .total_size = 512,
13233 .page_size = 256,
13234 /* OTP: 256B total; read 0x4B, write 0xB1 */
13235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13236 .tested = TEST_UNTESTED,
13237 .probe = probe_spi_rdid,
13238 .probe_timing = TIMING_ZERO,
13239 .block_erasers =
13240 {
13241 {
13242 .eraseblocks = { {4 * 1024, 128} },
13243 .block_erase = spi_block_erase_20,
13244 }, {
13245 .eraseblocks = { {4 * 1024, 128} },
13246 .block_erase = spi_block_erase_d7,
13247 }, {
13248 .eraseblocks = { {64 * 1024, 8} },
13249 .block_erase = spi_block_erase_d8,
13250 }, {
13251 .eraseblocks = { {512 * 1024, 1} },
13252 .block_erase = spi_block_erase_60,
13253 }, {
13254 .eraseblocks = { {512 * 1024, 1} },
13255 .block_erase = spi_block_erase_c7,
13256 }
13257 },
13258 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13259 .unlock = spi_disable_blockprotect_bp3_srwd,
13260 .write = spi_chip_write_256,
13261 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13262 .voltage = {2300, 3600},
13263 },
13264
13265 {
13266 .vendor = "PMC",
13267 .name = "Pm25LQ080",
13268 .bustype = BUS_SPI,
13269 .manufacture_id = PMC_ID,
13270 .model_id = PMC_PM25LQ080,
13271 .total_size = 1024,
13272 .page_size = 256,
13273 /* OTP: 64B total; read 0x4B, write 0xB1 */
13274 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13275 .tested = TEST_UNTESTED,
13276 .probe = probe_spi_rdid,
13277 .probe_timing = TIMING_ZERO,
13278 .block_erasers =
13279 {
13280 {
13281 .eraseblocks = { {4 * 1024, 256} },
13282 .block_erase = spi_block_erase_20,
13283 }, {
13284 .eraseblocks = { {4 * 1024, 256} },
13285 .block_erase = spi_block_erase_d7,
13286 }, {
13287 .eraseblocks = { {64 * 1024, 16} },
13288 .block_erase = spi_block_erase_d8,
13289 }, {
13290 .eraseblocks = { {1024 * 1024, 1} },
13291 .block_erase = spi_block_erase_60,
13292 }, {
13293 .eraseblocks = { {1024 * 1024, 1} },
13294 .block_erase = spi_block_erase_c7,
13295 }
13296 },
13297 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13298 .unlock = spi_disable_blockprotect_bp3_srwd,
13299 .write = spi_chip_write_256,
13300 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13301 .voltage = {2300, 3600},
13302 },
13303
13304 {
13305 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013306 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013307 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000013308 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013309 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013310 .total_size = 128,
13311 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013312 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000013313 .tested = TEST_OK_PREW,
13314 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013315 .probe_timing = TIMING_ZERO,
13316 .block_erasers =
13317 {
13318 {
13319 .eraseblocks = { {4 * 1024, 32} },
13320 .block_erase = spi_block_erase_d7,
13321 }, {
13322 .eraseblocks = { {32 * 1024, 4} },
13323 .block_erase = spi_block_erase_d8,
13324 }, {
13325 .eraseblocks = { {128 * 1024, 1} },
13326 .block_erase = spi_block_erase_c7,
13327 }
13328 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013329 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013330 .unlock = spi_disable_blockprotect,
13331 .write = spi_chip_write_256,
13332 .read = spi_chip_read, /* Fast read (0x0B) supported */
13333 .voltage = {2700, 3600},
13334 },
13335
13336 {
13337 .vendor = "PMC",
13338 .name = "Pm25LV010A",
13339 .bustype = BUS_SPI,
13340 .manufacture_id = PMC_ID,
13341 .model_id = PMC_PM25LV010,
13342 .total_size = 128,
13343 .page_size = 256,
13344 .feature_bits = FEATURE_WRSR_WREN,
13345 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013346 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013347 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013348 .block_erasers =
13349 {
13350 {
13351 .eraseblocks = { {4 * 1024, 32} },
13352 .block_erase = spi_block_erase_d7,
13353 }, {
13354 .eraseblocks = { {32 * 1024, 4} },
13355 .block_erase = spi_block_erase_d8,
13356 }, {
13357 .eraseblocks = { {128 * 1024, 1} },
13358 .block_erase = spi_block_erase_c7,
13359 }
13360 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013361 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013362 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013363 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013364 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013365 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013366 },
13367
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013368 {
13369 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013370 .name = "Pm25LV016B",
13371 .bustype = BUS_SPI,
13372 .manufacture_id = PMC_ID,
13373 .model_id = PMC_PM25LV016B,
13374 .total_size = 2048,
13375 .page_size = 256,
13376 .feature_bits = FEATURE_WRSR_WREN,
13377 .tested = TEST_UNTESTED,
13378 .probe = probe_spi_rdid,
13379 .probe_timing = TIMING_ZERO,
13380 .block_erasers =
13381 {
13382 {
13383 .eraseblocks = { {4 * 1024, 512} },
13384 .block_erase = spi_block_erase_d7,
13385 }, {
13386 .eraseblocks = { {4 * 1024, 512} },
13387 .block_erase = spi_block_erase_20,
13388 }, {
13389 .eraseblocks = { {64 * 1024, 32} },
13390 .block_erase = spi_block_erase_d8,
13391 }, {
13392 .eraseblocks = { {2 * 1024 * 1024, 1} },
13393 .block_erase = spi_block_erase_60,
13394 }, {
13395 .eraseblocks = { {2 * 1024 * 1024, 1} },
13396 .block_erase = spi_block_erase_c7,
13397 }
13398 },
13399 .printlock = spi_prettyprint_status_register_bp2_srwd,
13400 .unlock = spi_disable_blockprotect,
13401 .write = spi_chip_write_256,
13402 .read = spi_chip_read, /* Fast read (0x0B) supported */
13403 .voltage = {2700, 3600},
13404 },
13405
13406 {
13407 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013408 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013409 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013410 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013411 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013412 .total_size = 256,
13413 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013414 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013415 .tested = TEST_UNTESTED,
13416 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013417 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013418 .block_erasers =
13419 {
13420 {
13421 .eraseblocks = { {4 * 1024, 64} },
13422 .block_erase = spi_block_erase_d7,
13423 }, {
13424 .eraseblocks = { {64 * 1024, 4} },
13425 .block_erase = spi_block_erase_d8,
13426 }, {
13427 .eraseblocks = { {256 * 1024, 1} },
13428 .block_erase = spi_block_erase_c7,
13429 }
13430 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013431 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013432 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013433 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013434 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013435 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013436 },
13437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013438 {
13439 .vendor = "PMC",
13440 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013441 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013442 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013443 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013444 .total_size = 512,
13445 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013446 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000013447 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013448 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013449 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013450 .block_erasers =
13451 {
13452 {
13453 .eraseblocks = { {4 * 1024, 128} },
13454 .block_erase = spi_block_erase_d7,
13455 }, {
13456 .eraseblocks = { {64 * 1024, 8} },
13457 .block_erase = spi_block_erase_d8,
13458 }, {
13459 .eraseblocks = { {512 * 1024, 1} },
13460 .block_erase = spi_block_erase_c7,
13461 }
13462 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013463 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013464 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013465 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013466 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013467 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013468 },
13469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013470 {
13471 .vendor = "PMC",
13472 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013473 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013474 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013475 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 .total_size = 1024,
13477 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013478 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013479 .tested = TEST_UNTESTED,
13480 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013481 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013482 .block_erasers =
13483 {
13484 {
13485 .eraseblocks = { {4 * 1024, 256} },
13486 .block_erase = spi_block_erase_d7,
13487 }, {
13488 .eraseblocks = { {4 * 1024, 256} },
13489 .block_erase = spi_block_erase_20,
13490 }, {
13491 .eraseblocks = { {64 * 1024, 16} },
13492 .block_erase = spi_block_erase_d8,
13493 }, {
13494 .eraseblocks = { {1024 * 1024, 1} },
13495 .block_erase = spi_block_erase_60,
13496 }, {
13497 .eraseblocks = { {1024 * 1024, 1} },
13498 .block_erase = spi_block_erase_c7,
13499 }
13500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013501 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013502 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013503 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013504 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013505 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013506 },
13507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013508 {
13509 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013510 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013511 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013512 .manufacture_id = PMC_ID_NOPREFIX,
13513 .model_id = PMC_PM25LV512,
13514 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013515 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013516 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013517 .tested = TEST_OK_PREW,
13518 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013519 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013520 .block_erasers =
13521 {
13522 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013523 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013524 .block_erase = spi_block_erase_d7,
13525 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013526 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013527 .block_erase = spi_block_erase_d8,
13528 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013529 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013530 .block_erase = spi_block_erase_c7,
13531 }
13532 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013533 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013534 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013535 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013536 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013537 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013538 },
13539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013540 {
13541 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013542 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013543 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013544 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013545 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013546 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013547 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013548 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013549 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013550 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013551 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013552 .block_erasers =
13553 {
13554 {
13555 .eraseblocks = {
13556 {16 * 1024, 1},
13557 {8 * 1024, 2},
13558 {96 * 1024, 1},
13559 {128 * 1024, 1},
13560 },
Sean Nelson35727f72010-01-28 23:55:12 +000013561 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013562 }, {
13563 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013564 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013565 },
13566 },
Sean Nelson35727f72010-01-28 23:55:12 +000013567 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013568 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013569 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013570 .prepare_access = prepare_memory_access,
13571 .finish_access = finish_memory_access,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013572 },
13573
13574 {
13575 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013576 .name = "Pm29F002T",
13577 .bustype = BUS_PARALLEL,
13578 .manufacture_id = PMC_ID_NOPREFIX,
13579 .model_id = PMC_PM29F002T,
13580 .total_size = 256,
13581 .page_size = 8 * 1024,
13582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13583 .tested = TEST_OK_PREW,
13584 .probe = probe_jedec,
13585 .probe_timing = TIMING_FIXME,
13586 .block_erasers =
13587 {
13588 {
13589 .eraseblocks = {
13590 {128 * 1024, 1},
13591 {96 * 1024, 1},
13592 {8 * 1024, 2},
13593 {16 * 1024, 1},
13594 },
13595 .block_erase = erase_sector_jedec,
13596 }, {
13597 .eraseblocks = { {256 * 1024, 1} },
13598 .block_erase = erase_chip_block_jedec,
13599 },
13600 },
13601 .write = write_jedec_1,
13602 .read = read_memmapped,
13603 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013604 .prepare_access = prepare_memory_access,
13605 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013606 },
13607
13608 {
13609 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013610 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013611 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013612 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013613 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013614 .total_size = 128,
13615 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013616 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013617 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013618 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013619 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013620 .block_erasers =
13621 {
13622 {
13623 .eraseblocks = { {4 * 1024, 32} },
13624 .block_erase = erase_sector_jedec,
13625 }, {
13626 .eraseblocks = { {64 * 1024, 2} },
13627 .block_erase = erase_block_jedec,
13628 }, {
13629 .eraseblocks = { {128 * 1024, 1} },
13630 .block_erase = erase_chip_block_jedec,
13631 }
13632 },
Sean Nelson35727f72010-01-28 23:55:12 +000013633 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013635 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013636 .prepare_access = prepare_memory_access,
13637 .finish_access = finish_memory_access,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013638 },
13639
13640 {
13641 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013642 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013643 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013644 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013645 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013646 .total_size = 256,
13647 .page_size = 4096,
13648 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13649 .tested = TEST_UNTESTED,
13650 .probe = probe_jedec,
13651 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013652 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013653 {
13654 {
13655 .eraseblocks = { {4 * 1024, 64} },
13656 .block_erase = erase_sector_jedec,
13657 }, {
13658 .eraseblocks = { {64 * 1024, 4} },
13659 .block_erase = erase_block_jedec,
13660 }, {
13661 .eraseblocks = { {256 * 1024, 1} },
13662 .block_erase = erase_chip_block_jedec,
13663 }
13664 },
13665 .write = write_jedec_1,
13666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013667 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013668 .prepare_access = prepare_memory_access,
13669 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013670 },
13671
13672 {
13673 .vendor = "PMC",
13674 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013675 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013676 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013677 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013678 .total_size = 512,
13679 .page_size = 4096,
13680 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013681 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013682 .probe = probe_jedec,
13683 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013684 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013685 {
13686 {
13687 .eraseblocks = { {4 * 1024, 128} },
13688 .block_erase = erase_sector_jedec,
13689 }, {
13690 .eraseblocks = { {64 * 1024, 8} },
13691 .block_erase = erase_block_jedec,
13692 }, {
13693 .eraseblocks = { {512 * 1024, 1} },
13694 .block_erase = erase_chip_block_jedec,
13695 }
13696 },
13697 .write = write_jedec_1,
13698 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013699 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013700 .prepare_access = prepare_memory_access,
13701 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013702 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013703
13704 {
13705 .vendor = "PMC",
13706 .name = "Pm39LV512",
13707 .bustype = BUS_PARALLEL,
13708 .manufacture_id = PMC_ID_NOPREFIX,
13709 .model_id = PMC_PM39LV512,
13710 .total_size = 64,
13711 .page_size = 4096,
13712 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13713 .tested = TEST_OK_PREW,
13714 .probe = probe_jedec,
13715 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13716 .block_erasers =
13717 {
13718 {
13719 .eraseblocks = { {4 * 1024, 16} },
13720 .block_erase = erase_sector_jedec,
13721 }, {
13722 .eraseblocks = { {64 * 1024, 1} },
13723 .block_erase = erase_block_jedec,
13724 }, {
13725 .eraseblocks = { {64 * 1024, 1} },
13726 .block_erase = erase_chip_block_jedec,
13727 }
13728 },
13729 .write = write_jedec_1,
13730 .read = read_memmapped,
13731 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013732 .prepare_access = prepare_memory_access,
13733 .finish_access = finish_memory_access,
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013734 },
13735
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013736 {
13737 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013738 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013739 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013740 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013741 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013742 .total_size = 256,
13743 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013744 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013745 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013746 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013747 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013748 .block_erasers =
13749 {
13750 {
13751 .eraseblocks = { {4 * 1024, 64} },
13752 .block_erase = erase_sector_jedec,
13753 }, {
13754 .eraseblocks = { {16 * 1024, 16} },
13755 .block_erase = erase_block_jedec,
13756 }, {
13757 .eraseblocks = { {256 * 1024, 1} },
13758 .block_erase = erase_chip_block_jedec,
13759 }
13760 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013761 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013762 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013763 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013764 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013765 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013766 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013767 },
13768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013769 {
13770 .vendor = "PMC",
13771 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013772 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013773 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013774 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013775 .total_size = 512,
13776 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013777 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013778 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013779 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013780 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013781 .block_erasers =
13782 {
13783 {
13784 .eraseblocks = { {4 * 1024, 128} },
13785 .block_erase = erase_sector_jedec,
13786 }, {
13787 .eraseblocks = { {64 * 1024, 8} },
13788 .block_erase = erase_block_jedec,
13789 }, {
13790 .eraseblocks = { {512 * 1024, 1} },
13791 .block_erase = erase_chip_block_jedec,
13792 }
13793 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013794 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013795 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013797 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013798 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013799 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013800 },
13801
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013802 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013803 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013804 .name = "SST25LF020A",
13805 .bustype = BUS_SPI,
13806 .manufacture_id = SST_ID,
13807 .model_id = SST_SST25VF020_REMS,
13808 .total_size = 256,
13809 .page_size = 256,
13810 .feature_bits = FEATURE_WRSR_EWSR,
13811 .tested = TEST_OK_PREW,
13812 .probe = probe_spi_rems,
13813 .probe_timing = TIMING_ZERO,
13814 .block_erasers =
13815 {
13816 {
13817 .eraseblocks = { {4 * 1024, 64} },
13818 .block_erase = spi_block_erase_20,
13819 }, {
13820 .eraseblocks = { {32 * 1024, 8} },
13821 .block_erase = spi_block_erase_52,
13822 }, {
13823 .eraseblocks = { {256 * 1024, 1} },
13824 .block_erase = spi_block_erase_60,
13825 },
13826 },
13827 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13828 .unlock = spi_disable_blockprotect,
13829 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13830 .read = spi_chip_read, /* Fast read (0x0B) supported */
13831 .voltage = {2700, 3600},
13832 },
13833
13834 {
13835 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013836 .name = "SST25LF040A",
13837 .bustype = BUS_SPI,
13838 .manufacture_id = SST_ID,
13839 .model_id = SST_SST25VF040_REMS,
13840 .total_size = 512,
13841 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013842 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013843 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013844 .probe = probe_spi_res2,
13845 .probe_timing = TIMING_ZERO,
13846 .block_erasers =
13847 {
13848 {
13849 .eraseblocks = { {4 * 1024, 128} },
13850 .block_erase = spi_block_erase_20,
13851 }, {
13852 .eraseblocks = { {32 * 1024, 16} },
13853 .block_erase = spi_block_erase_52,
13854 }, {
13855 .eraseblocks = { {512 * 1024, 1} },
13856 .block_erase = spi_block_erase_60,
13857 },
13858 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013859 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013860 .unlock = spi_disable_blockprotect,
13861 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13862 .read = spi_chip_read,
13863 .voltage = {3000, 3600},
13864 },
13865
13866 {
13867 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013868 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013869 .bustype = BUS_SPI,
13870 .manufacture_id = SST_ID,
13871 .model_id = SST_SST25VF080_REMS,
13872 .total_size = 1024,
13873 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013874 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013875 .tested = TEST_UNTESTED,
13876 .probe = probe_spi_res2,
13877 .probe_timing = TIMING_ZERO,
13878 .block_erasers =
13879 {
13880 {
13881 .eraseblocks = { {4 * 1024, 256} },
13882 .block_erase = spi_block_erase_20,
13883 }, {
13884 .eraseblocks = { {32 * 1024, 32} },
13885 .block_erase = spi_block_erase_52,
13886 }, {
13887 .eraseblocks = { {1024 * 1024, 1} },
13888 .block_erase = spi_block_erase_60,
13889 },
13890 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013891 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013892 .unlock = spi_disable_blockprotect,
13893 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13894 .read = spi_chip_read,
13895 .voltage = {3000, 3600},
13896 },
13897
13898 {
13899 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013900 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013901 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013902 .manufacture_id = SST_ID,
13903 .model_id = SST_SST25VF010_REMS,
13904 .total_size = 128,
13905 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013906 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013907 .tested = TEST_OK_PREW,
13908 .probe = probe_spi_rems,
13909 .probe_timing = TIMING_ZERO,
13910 .block_erasers =
13911 {
13912 {
13913 .eraseblocks = { {4 * 1024, 32} },
13914 .block_erase = spi_block_erase_20,
13915 }, {
13916 .eraseblocks = { {32 * 1024, 4} },
13917 .block_erase = spi_block_erase_52,
13918 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013919 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013920 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013921 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013922 .eraseblocks = { {128 * 1024, 1} },
13923 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013924 }, {
13925 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013926 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013927 },
13928 },
13929 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13930 .unlock = spi_disable_blockprotect,
13931 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013932 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013933 .voltage = {2700, 3600},
13934 },
13935
13936 {
13937 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013938 .name = "SST25VF016B",
13939 .bustype = BUS_SPI,
13940 .manufacture_id = SST_ID,
13941 .model_id = SST_SST25VF016B,
13942 .total_size = 2048,
13943 .page_size = 256,
13944 .feature_bits = FEATURE_WRSR_EITHER,
13945 .tested = TEST_OK_PREW,
13946 .probe = probe_spi_rdid,
13947 .probe_timing = TIMING_ZERO,
13948 .block_erasers =
13949 {
13950 {
13951 .eraseblocks = { {4 * 1024, 512} },
13952 .block_erase = spi_block_erase_20,
13953 }, {
13954 .eraseblocks = { {32 * 1024, 64} },
13955 .block_erase = spi_block_erase_52,
13956 }, {
13957 .eraseblocks = { {64 * 1024, 32} },
13958 .block_erase = spi_block_erase_d8,
13959 }, {
13960 .eraseblocks = { {2 * 1024 * 1024, 1} },
13961 .block_erase = spi_block_erase_60,
13962 }, {
13963 .eraseblocks = { {2 * 1024 * 1024, 1} },
13964 .block_erase = spi_block_erase_c7,
13965 },
13966 },
13967 .printlock = spi_prettyprint_status_register_sst25vf016,
13968 .unlock = spi_disable_blockprotect,
13969 .write = spi_aai_write,
13970 .read = spi_chip_read,
13971 .voltage = {2700, 3600},
13972 },
13973
13974 {
13975 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013976 .name = "SST25VF020",
13977 .bustype = BUS_SPI,
13978 .manufacture_id = SST_ID,
13979 .model_id = SST_SST25VF020_REMS,
13980 .total_size = 256,
13981 .page_size = 256,
13982 .feature_bits = FEATURE_WRSR_EWSR,
13983 .tested = TEST_UNTESTED,
13984 .probe = probe_spi_rems,
13985 .probe_timing = TIMING_ZERO,
13986 .block_erasers =
13987 {
13988 {
13989 .eraseblocks = { {4 * 1024, 64} },
13990 .block_erase = spi_block_erase_20,
13991 }, {
13992 .eraseblocks = { {32 * 1024, 8} },
13993 .block_erase = spi_block_erase_52,
13994 }, {
13995 .eraseblocks = { {256 * 1024, 1} },
13996 .block_erase = spi_block_erase_60,
13997 },
13998 },
13999 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14000 .unlock = spi_disable_blockprotect,
14001 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14002 .read = spi_chip_read, /* only */
14003 .voltage = {2700, 3600},
14004 },
14005
14006 {
14007 .vendor = "SST",
14008 .name = "SST25VF020B",
14009 .bustype = BUS_SPI,
14010 .manufacture_id = SST_ID,
14011 .model_id = SST_SST25VF020B,
14012 .total_size = 256,
14013 .page_size = 256,
14014 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014015 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000014016 .probe = probe_spi_rdid,
14017 .probe_timing = TIMING_ZERO,
14018 .block_erasers =
14019 {
14020 {
14021 .eraseblocks = { {4 * 1024, 64} },
14022 .block_erase = spi_block_erase_20,
14023 }, {
14024 .eraseblocks = { {32 * 1024, 8} },
14025 .block_erase = spi_block_erase_52,
14026 }, {
14027 .eraseblocks = { {64 * 1024, 4} },
14028 .block_erase = spi_block_erase_d8,
14029 }, {
14030 .eraseblocks = { {256 * 1024, 1} },
14031 .block_erase = spi_block_erase_60,
14032 }, {
14033 .eraseblocks = { {256 * 1024, 1} },
14034 .block_erase = spi_block_erase_c7,
14035 },
14036 },
14037 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
14038 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
14039 .write = spi_aai_write, /* AAI supported (0xAD) */
14040 .read = spi_chip_read, /* Fast read (0x0B) supported */
14041 .voltage = {2700, 3600},
14042 },
14043
14044 {
14045 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014046 .name = "SST25VF032B",
14047 .bustype = BUS_SPI,
14048 .manufacture_id = SST_ID,
14049 .model_id = SST_SST25VF032B,
14050 .total_size = 4096,
14051 .page_size = 256,
14052 .feature_bits = FEATURE_WRSR_EWSR,
14053 .tested = TEST_OK_PREW,
14054 .probe = probe_spi_rdid,
14055 .probe_timing = TIMING_ZERO,
14056 .block_erasers =
14057 {
14058 {
14059 .eraseblocks = { {4 * 1024, 1024} },
14060 .block_erase = spi_block_erase_20,
14061 }, {
14062 .eraseblocks = { {32 * 1024, 128} },
14063 .block_erase = spi_block_erase_52,
14064 }, {
14065 .eraseblocks = { {64 * 1024, 64} },
14066 .block_erase = spi_block_erase_d8,
14067 }, {
14068 .eraseblocks = { {4 * 1024 * 1024, 1} },
14069 .block_erase = spi_block_erase_60,
14070 }, {
14071 .eraseblocks = { {4 * 1024 * 1024, 1} },
14072 .block_erase = spi_block_erase_c7,
14073 },
14074 },
14075 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14076 .unlock = spi_disable_blockprotect,
14077 .write = spi_aai_write,
14078 .read = spi_chip_read,
14079 .voltage = {2700, 3600},
14080 },
14081
14082 {
14083 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014084 .name = "SST25VF040",
14085 .bustype = BUS_SPI,
14086 .manufacture_id = SST_ID,
14087 .model_id = SST_SST25VF040_REMS,
14088 .total_size = 512,
14089 .page_size = 256,
14090 .feature_bits = FEATURE_WRSR_EWSR,
14091 .tested = TEST_OK_PR,
14092 .probe = probe_spi_rems,
14093 .probe_timing = TIMING_ZERO,
14094 .block_erasers =
14095 {
14096 {
14097 .eraseblocks = { {4 * 1024, 128} },
14098 .block_erase = spi_block_erase_20,
14099 }, {
14100 .eraseblocks = { {32 * 1024, 16} },
14101 .block_erase = spi_block_erase_52,
14102 }, {
14103 .eraseblocks = { {512 * 1024, 1} },
14104 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000014105 },
14106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014107 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000014108 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000014109 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14110 .read = spi_chip_read,
14111 .voltage = {2700, 3600},
14112 },
14113
14114 {
14115 .vendor = "SST",
14116 .name = "SST25VF040B",
14117 .bustype = BUS_SPI,
14118 .manufacture_id = SST_ID,
14119 .model_id = SST_SST25VF040B,
14120 .total_size = 512,
14121 .page_size = 256,
14122 .feature_bits = FEATURE_WRSR_EWSR,
14123 .tested = TEST_OK_PREW,
14124 .probe = probe_spi_rdid,
14125 .probe_timing = TIMING_ZERO,
14126 .block_erasers =
14127 {
14128 {
14129 .eraseblocks = { {4 * 1024, 128} },
14130 .block_erase = spi_block_erase_20,
14131 }, {
14132 .eraseblocks = { {32 * 1024, 16} },
14133 .block_erase = spi_block_erase_52,
14134 }, {
14135 .eraseblocks = { {64 * 1024, 8} },
14136 .block_erase = spi_block_erase_d8,
14137 }, {
14138 .eraseblocks = { {512 * 1024, 1} },
14139 .block_erase = spi_block_erase_60,
14140 }, {
14141 .eraseblocks = { {512 * 1024, 1} },
14142 .block_erase = spi_block_erase_c7,
14143 },
14144 },
14145 .printlock = spi_prettyprint_status_register_sst25vf040b,
14146 .unlock = spi_disable_blockprotect,
14147 .write = spi_aai_write, /* AAI supported (0xAD) */
14148 .read = spi_chip_read, /* Fast read (0x0B) supported */
14149 .voltage = {2700, 3600},
14150 },
14151
14152 {
14153 .vendor = "SST",
14154 .name = "SST25VF040B.REMS",
14155 .bustype = BUS_SPI,
14156 .manufacture_id = SST_ID,
14157 .model_id = SST_SST25VF040B_REMS,
14158 .total_size = 512,
14159 .page_size = 256,
14160 .feature_bits = FEATURE_WRSR_EWSR,
14161 .tested = TEST_OK_PREW,
14162 .probe = probe_spi_rems,
14163 .probe_timing = TIMING_ZERO,
14164 .block_erasers =
14165 {
14166 {
14167 .eraseblocks = { {4 * 1024, 128} },
14168 .block_erase = spi_block_erase_20,
14169 }, {
14170 .eraseblocks = { {32 * 1024, 16} },
14171 .block_erase = spi_block_erase_52,
14172 }, {
14173 .eraseblocks = { {64 * 1024, 8} },
14174 .block_erase = spi_block_erase_d8,
14175 }, {
14176 .eraseblocks = { {512 * 1024, 1} },
14177 .block_erase = spi_block_erase_60,
14178 }, {
14179 .eraseblocks = { {512 * 1024, 1} },
14180 .block_erase = spi_block_erase_c7,
14181 },
14182 },
14183 .printlock = spi_prettyprint_status_register_sst25vf040b,
14184 .unlock = spi_disable_blockprotect,
14185 .write = spi_aai_write,
14186 .read = spi_chip_read,
14187 .voltage = {2700, 3600},
14188 },
14189
14190 {
14191 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014192 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000014193 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014194 .manufacture_id = SST_ID,
14195 .model_id = SST_SST25VF064C,
14196 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014197 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014198 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014199 .tested = TEST_OK_PREW,
14200 .probe = probe_spi_rdid,
14201 .probe_timing = TIMING_ZERO,
14202 .block_erasers =
14203 {
14204 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014205 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014206 .block_erase = spi_block_erase_20,
14207 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014208 .eraseblocks = { {32 * 1024, 256} },
14209 .block_erase = spi_block_erase_52,
14210 }, {
14211 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014212 .block_erase = spi_block_erase_d8,
14213 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014214 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014215 .block_erase = spi_block_erase_60,
14216 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014217 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014218 .block_erase = spi_block_erase_c7,
14219 },
14220 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014221 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14222 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014223 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014224 .read = spi_chip_read,
14225 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000014226 },
14227
14228 {
14229 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014230 .name = "SST25VF080B",
14231 .bustype = BUS_SPI,
14232 .manufacture_id = SST_ID,
14233 .model_id = SST_SST25VF080B,
14234 .total_size = 1024,
14235 .page_size = 256,
14236 .feature_bits = FEATURE_WRSR_EWSR,
14237 .tested = TEST_OK_PREW,
14238 .probe = probe_spi_rdid,
14239 .probe_timing = TIMING_ZERO,
14240 .block_erasers =
14241 {
14242 {
14243 .eraseblocks = { {4 * 1024, 256} },
14244 .block_erase = spi_block_erase_20,
14245 }, {
14246 .eraseblocks = { {32 * 1024, 32} },
14247 .block_erase = spi_block_erase_52,
14248 }, {
14249 .eraseblocks = { {64 * 1024, 16} },
14250 .block_erase = spi_block_erase_d8,
14251 }, {
14252 .eraseblocks = { {1024 * 1024, 1} },
14253 .block_erase = spi_block_erase_60,
14254 }, {
14255 .eraseblocks = { {1024 * 1024, 1} },
14256 .block_erase = spi_block_erase_c7,
14257 },
14258 },
14259 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14260 .unlock = spi_disable_blockprotect,
14261 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000014262 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014263 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000014264 },
14265
14266 {
14267 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014268 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014269 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014270 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014271 .model_id = SST_SST25VF512_REMS,
14272 .total_size = 64,
14273 .page_size = 256,
14274 .feature_bits = FEATURE_WRSR_EWSR,
14275 .tested = TEST_OK_PREW,
14276 .probe = probe_spi_rems,
14277 .probe_timing = TIMING_ZERO,
14278 .block_erasers =
14279 {
14280 {
14281 .eraseblocks = { {4 * 1024, 16} },
14282 .block_erase = spi_block_erase_20,
14283 }, {
14284 .eraseblocks = { {32 * 1024, 2} },
14285 .block_erase = spi_block_erase_52,
14286 }, {
14287 .eraseblocks = { {32 * 1024, 2} },
14288 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
14289 }, {
14290 .eraseblocks = { {64 * 1024, 1} },
14291 .block_erase = spi_block_erase_60,
14292 }, {
14293 .eraseblocks = { {64 * 1024, 1} },
14294 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
14295 },
14296 },
14297 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14298 .unlock = spi_disable_blockprotect,
14299 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14300 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
14301 .voltage = {2700, 3600},
14302 },
14303
14304 {
14305 .vendor = "SST",
14306 .name = "SST25WF010",
14307 .bustype = BUS_SPI,
14308 .manufacture_id = SST_ID,
14309 .model_id = SST_SST25WF010,
14310 .total_size = 128,
14311 .page_size = 256,
14312 .feature_bits = FEATURE_WRSR_EITHER,
14313 .tested = TEST_UNTESTED,
14314 .probe = probe_spi_rdid,
14315 .probe_timing = TIMING_ZERO,
14316 .block_erasers =
14317 {
14318 {
14319 .eraseblocks = { {4 * 1024, 32} },
14320 .block_erase = spi_block_erase_20,
14321 }, {
14322 .eraseblocks = { {32 * 1024, 4} },
14323 .block_erase = spi_block_erase_52,
14324 }, {
14325 .eraseblocks = { {1024 * 128, 1} },
14326 .block_erase = spi_block_erase_60,
14327 }, {
14328 .eraseblocks = { {1024 * 128, 1} },
14329 .block_erase = spi_block_erase_c7,
14330 },
14331 },
14332 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14333 .unlock = spi_disable_blockprotect_bp2_srwd,
14334 .write = spi_aai_write,
14335 .read = spi_chip_read, /* Fast read (0x0B) supported */
14336 .voltage = {1650, 1950},
14337 },
14338
14339 {
14340 .vendor = "SST",
14341 .name = "SST25WF020",
14342 .bustype = BUS_SPI,
14343 .manufacture_id = SST_ID,
14344 .model_id = SST_SST25WF020,
14345 .total_size = 256,
14346 .page_size = 256,
14347 .feature_bits = FEATURE_WRSR_EITHER,
14348 .tested = TEST_UNTESTED,
14349 .probe = probe_spi_rdid,
14350 .probe_timing = TIMING_ZERO,
14351 .block_erasers =
14352 {
14353 {
14354 .eraseblocks = { {4 * 1024, 64} },
14355 .block_erase = spi_block_erase_20,
14356 }, {
14357 .eraseblocks = { {32 * 1024, 8} },
14358 .block_erase = spi_block_erase_52,
14359 }, {
14360 .eraseblocks = { {64 * 1024, 4} },
14361 .block_erase = spi_block_erase_d8,
14362 }, {
14363 .eraseblocks = { {1024 * 256, 1} },
14364 .block_erase = spi_block_erase_60,
14365 }, {
14366 .eraseblocks = { {1024 * 256, 1} },
14367 .block_erase = spi_block_erase_c7,
14368 },
14369 },
14370 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14371 .unlock = spi_disable_blockprotect_bp2_srwd,
14372 .write = spi_aai_write,
14373 .read = spi_chip_read, /* Fast read (0x0B) supported */
14374 .voltage = {1650, 1950},
14375 },
14376
14377 {
14378 .vendor = "SST",
14379 .name = "SST25WF020A",
14380 .bustype = BUS_SPI,
14381 .manufacture_id = SANYO_ID, /* See flashchips.h */
14382 .model_id = SST_SST25WF020A,
14383 .total_size = 256,
14384 .page_size = 256,
14385 .feature_bits = FEATURE_WRSR_WREN,
14386 .tested = TEST_UNTESTED,
14387 .probe = probe_spi_rdid,
14388 .probe_timing = TIMING_ZERO,
14389 .block_erasers =
14390 {
14391 {
14392 .eraseblocks = { {4 * 1024, 64} },
14393 .block_erase = spi_block_erase_20,
14394 }, {
14395 .eraseblocks = { {64 * 1024, 4} },
14396 .block_erase = spi_block_erase_d8,
14397 }, {
14398 .eraseblocks = { {256 * 1024, 1} },
14399 .block_erase = spi_block_erase_60,
14400 }, {
14401 .eraseblocks = { {256 * 1024, 1} },
14402 .block_erase = spi_block_erase_c7,
14403 },
14404 },
14405 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14406 .unlock = spi_disable_blockprotect_bp2_srwd,
14407 .write = spi_chip_write_256,
14408 .read = spi_chip_read, /* Fast read (0x0B) supported */
14409 .voltage = {1650, 1950},
14410 },
14411
14412 {
14413 .vendor = "SST",
14414 .name = "SST25WF040",
14415 .bustype = BUS_SPI,
14416 .manufacture_id = SST_ID,
14417 .model_id = SST_SST25WF040,
14418 .total_size = 512,
14419 .page_size = 256,
14420 .feature_bits = FEATURE_WRSR_EITHER,
14421 .tested = TEST_UNTESTED,
14422 .probe = probe_spi_rdid,
14423 .probe_timing = TIMING_ZERO,
14424 .block_erasers =
14425 {
14426 {
14427 .eraseblocks = { {4 * 1024, 128} },
14428 .block_erase = spi_block_erase_20,
14429 }, {
14430 .eraseblocks = { {32 * 1024, 16} },
14431 .block_erase = spi_block_erase_52,
14432 }, {
14433 .eraseblocks = { {64 * 1024, 8} },
14434 .block_erase = spi_block_erase_d8,
14435 }, {
14436 .eraseblocks = { {1024 * 512, 1} },
14437 .block_erase = spi_block_erase_60,
14438 }, {
14439 .eraseblocks = { {1024 * 512, 1} },
14440 .block_erase = spi_block_erase_c7,
14441 },
14442 },
14443 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14444 .unlock = spi_disable_blockprotect_bp2_srwd,
14445 .write = spi_aai_write,
14446 .read = spi_chip_read, /* Fast read (0x0B) supported */
14447 .voltage = {1650, 1950},
14448 },
14449
14450 {
14451 .vendor = "SST",
14452 .name = "SST25WF040B",
14453 .bustype = BUS_SPI,
14454 .manufacture_id = SANYO_ID, /* See flashchips.h */
14455 .model_id = SST_SST25WF040B,
14456 .total_size = 512,
14457 .page_size = 256,
14458 .feature_bits = FEATURE_WRSR_WREN,
14459 .tested = TEST_UNTESTED,
14460 .probe = probe_spi_rdid,
14461 .probe_timing = TIMING_ZERO,
14462 .block_erasers =
14463 {
14464 {
14465 .eraseblocks = { {4 * 1024, 128} },
14466 .block_erase = spi_block_erase_20,
14467 }, {
14468 .eraseblocks = { {64 * 1024, 8} },
14469 .block_erase = spi_block_erase_d8,
14470 }, {
14471 .eraseblocks = { {512 * 1024, 1} },
14472 .block_erase = spi_block_erase_60,
14473 }, {
14474 .eraseblocks = { {512 * 1024, 1} },
14475 .block_erase = spi_block_erase_c7,
14476 },
14477 },
14478 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14479 .unlock = spi_disable_blockprotect_bp2_srwd,
14480 .write = spi_chip_write_256,
14481 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14482 .voltage = {1650, 1950},
14483 },
14484
14485 {
14486 .vendor = "SST",
14487 .name = "SST25WF080",
14488 .bustype = BUS_SPI,
14489 .manufacture_id = SST_ID,
14490 .model_id = SST_SST25WF080,
14491 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014492 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014493 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014494 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014495 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014496 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014497 .block_erasers =
14498 {
14499 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014500 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014501 .block_erase = spi_block_erase_20,
14502 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014503 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014504 .block_erase = spi_block_erase_52,
14505 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014506 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014507 .block_erase = spi_block_erase_d8,
14508 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014509 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014510 .block_erase = spi_block_erase_60,
14511 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014512 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014513 .block_erase = spi_block_erase_c7,
14514 },
14515 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014516 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14517 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014518 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014519 .read = spi_chip_read, /* Fast read (0x0B) supported */
14520 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014521 },
14522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014523 {
14524 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014525 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014526 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014527 .manufacture_id = SANYO_ID, /* See flashchips.h */
14528 .model_id = SST_SST25WF080B,
14529 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014530 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014531 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014532 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014533 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014534 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014535 .block_erasers =
14536 {
14537 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014538 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014539 .block_erase = spi_block_erase_20,
14540 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014541 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014542 .block_erase = spi_block_erase_d8,
14543 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014544 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014545 .block_erase = spi_block_erase_60,
14546 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014547 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014548 .block_erase = spi_block_erase_c7,
14549 },
14550 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014551 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14552 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014553 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014554 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14555 .voltage = {1650, 1950},
14556 },
14557
14558 {
14559 .vendor = "SST",
14560 .name = "SST25WF512",
14561 .bustype = BUS_SPI,
14562 .manufacture_id = SST_ID,
14563 .model_id = SST_SST25WF512,
14564 .total_size = 64,
14565 .page_size = 256,
14566 .feature_bits = FEATURE_WRSR_EITHER,
14567 .tested = TEST_UNTESTED,
14568 .probe = probe_spi_rdid,
14569 .probe_timing = TIMING_ZERO,
14570 .block_erasers =
14571 {
14572 {
14573 .eraseblocks = { {4 * 1024, 16} },
14574 .block_erase = spi_block_erase_20,
14575 }, {
14576 .eraseblocks = { {32 * 1024, 2} },
14577 .block_erase = spi_block_erase_52,
14578 }, {
14579 .eraseblocks = { {1024 * 64, 1} },
14580 .block_erase = spi_block_erase_60,
14581 }, {
14582 .eraseblocks = { {1024 * 64, 1} },
14583 .block_erase = spi_block_erase_c7,
14584 },
14585 },
14586 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14587 .unlock = spi_disable_blockprotect_bp2_srwd,
14588 .write = spi_aai_write,
14589 .read = spi_chip_read, /* Fast read (0x0B) supported */
14590 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014591 },
14592
14593 {
14594 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014595 .name = "SST26VF016",
14596 .bustype = BUS_SPI,
14597 .manufacture_id = SST_ID,
14598 .model_id = SST_SST26VF016,
14599 .total_size = 2048,
14600 .page_size = 256,
14601 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14602 .tested = TEST_UNTESTED,
14603 .probe = probe_spi_rdid,
14604 .probe_timing = TIMING_ZERO,
14605 .block_erasers =
14606 {
14607 {
14608 .eraseblocks = { {4 * 1024, 512} },
14609 .block_erase = spi_block_erase_20,
14610 }, {
14611 .eraseblocks = {
14612 {8 * 1024, 4},
14613 {32 * 1024, 1},
14614 {64 * 1024, 30},
14615 {32 * 1024, 1},
14616 {8 * 1024, 4},
14617 },
14618 .block_erase = spi_block_erase_d8,
14619 }, {
14620 .eraseblocks = { {2 * 1024 * 1024, 1} },
14621 .block_erase = spi_block_erase_c7,
14622 },
14623 },
14624 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14625 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14626 .write = spi_chip_write_256, /* Multi I/O supported */
14627 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14628 .voltage = {2700, 3600},
14629 },
14630
14631 {
14632 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014633 .name = "SST26VF016B(A)",
14634 .bustype = BUS_SPI,
14635 .manufacture_id = SST_ID,
14636 .model_id = SST_SST26VF016B,
14637 .total_size = 2048,
14638 .page_size = 256,
14639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14640 .tested = TEST_OK_PREW,
14641 .probe = probe_spi_rdid,
14642 .probe_timing = TIMING_ZERO,
14643 .block_erasers =
14644 {
14645 {
14646 .eraseblocks = { {4 * 1024, 512} },
14647 .block_erase = spi_block_erase_20,
14648 }, {
14649 .eraseblocks = {
14650 {8 * 1024, 4},
14651 {32 * 1024, 1},
14652 {64 * 1024, 30},
14653 {32 * 1024, 1},
14654 {8 * 1024, 4},
14655 },
14656 .block_erase = spi_block_erase_d8,
14657 }, {
14658 .eraseblocks = { {2 * 1024 * 1024, 1} },
14659 .block_erase = spi_block_erase_c7,
14660 },
14661 },
14662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14663 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14664 .write = spi_chip_write_256, /* Multi I/O supported */
14665 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14666 .voltage = {2700, 3600},
14667 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014668
Wei Hu25584de2018-04-30 14:02:08 -070014669 {
14670 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014671 .name = "SST26VF032",
14672 .bustype = BUS_SPI,
14673 .manufacture_id = SST_ID,
14674 .model_id = SST_SST26VF032,
14675 .total_size = 4096,
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, 1024} },
14685 .block_erase = spi_block_erase_20,
14686 }, {
14687 .eraseblocks = {
14688 {8 * 1024, 4},
14689 {32 * 1024, 1},
14690 {64 * 1024, 62},
14691 {32 * 1024, 1},
14692 {8 * 1024, 4},
14693 },
14694 .block_erase = spi_block_erase_d8,
14695 }, {
14696 .eraseblocks = { {4 * 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 = "SST26VF032B(A)",
14710 .bustype = BUS_SPI,
14711 .manufacture_id = SST_ID,
14712 .model_id = SST_SST26VF032B,
14713 .total_size = 4096,
14714 .page_size = 256,
14715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14716 .tested = TEST_UNTESTED,
14717 .probe = probe_spi_rdid,
14718 .probe_timing = TIMING_ZERO,
14719 .block_erasers =
14720 {
14721 {
14722 .eraseblocks = { {4 * 1024, 1024} },
14723 .block_erase = spi_block_erase_20,
14724 }, {
14725 .eraseblocks = {
14726 {8 * 1024, 4},
14727 {32 * 1024, 1},
14728 {64 * 1024, 62},
14729 {32 * 1024, 1},
14730 {8 * 1024, 4},
14731 },
14732 .block_erase = spi_block_erase_d8,
14733 }, {
14734 .eraseblocks = { {4 * 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 },
14744
Wei Hu25584de2018-04-30 14:02:08 -070014745 {
14746 .vendor = "SST",
14747 .name = "SST26VF064B(A)",
14748 .bustype = BUS_SPI,
14749 .manufacture_id = SST_ID,
14750 .model_id = SST_SST26VF064B,
14751 .total_size = 8192,
14752 .page_size = 256,
14753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14754 .tested = TEST_OK_PREW,
14755 .probe = probe_spi_rdid,
14756 .probe_timing = TIMING_ZERO,
14757 .block_erasers =
14758 {
14759 {
14760 .eraseblocks = { {4 * 1024, 2048} },
14761 .block_erase = spi_block_erase_20,
14762 }, {
14763 .eraseblocks = {
14764 {8 * 1024, 4},
14765 {32 * 1024, 1},
14766 {64 * 1024, 126},
14767 {32 * 1024, 1},
14768 {8 * 1024, 4},
14769 },
14770 .block_erase = spi_block_erase_d8,
14771 }, {
14772 .eraseblocks = { {8 * 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",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014785 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014786 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014787 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014788 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014789 .total_size = 512,
14790 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014791 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014793 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014794 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014795 .block_erasers =
14796 {
14797 {
14798 .eraseblocks = { {128, 4096} },
14799 .block_erase = erase_sector_28sf040,
14800 }, {
14801 .eraseblocks = { {512 * 1024, 1} },
14802 .block_erase = erase_chip_28sf040,
14803 }
14804 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014805 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014806 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014808 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014809 .prepare_access = prepare_memory_access,
14810 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014811 },
14812
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014813 {
14814 .vendor = "SST",
14815 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014816 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014817 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014818 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014819 .total_size = 128,
14820 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014821 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014822 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014823 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014824 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014825 .block_erasers =
14826 {
14827 {
14828 .eraseblocks = { {128 * 1024, 1} },
14829 .block_erase = erase_chip_block_jedec,
14830 }
14831 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014832 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014834 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014835 .prepare_access = prepare_memory_access,
14836 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014837 },
14838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014839 {
14840 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014841 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014842 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014843 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014844 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014845 .total_size = 256,
14846 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014847 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014848 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014849 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014850 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014851 .block_erasers =
14852 {
14853 {
14854 .eraseblocks = { {256 * 1024, 1} },
14855 .block_erase = erase_chip_block_jedec,
14856 }
14857 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014858 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014859 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014860 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014861 .prepare_access = prepare_memory_access,
14862 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014863 },
14864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014865 {
14866 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014867 .name = "SST29LE010",
14868 .bustype = BUS_PARALLEL,
14869 .manufacture_id = SST_ID,
14870 .model_id = SST_SST29LE010,
14871 .total_size = 128,
14872 .page_size = 128,
14873 .feature_bits = FEATURE_LONG_RESET,
14874 .tested = TEST_UNTESTED,
14875 .probe = probe_jedec,
14876 .probe_timing = 10,
14877 .block_erasers =
14878 {
14879 {
14880 .eraseblocks = { {128 * 1024, 1} },
14881 .block_erase = erase_chip_block_jedec,
14882 }
14883 },
14884 .write = write_jedec,
14885 .read = read_memmapped,
14886 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014887 .prepare_access = prepare_memory_access,
14888 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014889 },
14890
14891 {
14892 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014893 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014894 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014895 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014896 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014897 .total_size = 256,
14898 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014899 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014900 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014901 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014902 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014903 .block_erasers =
14904 {
14905 {
14906 .eraseblocks = { {256 * 1024, 1} },
14907 .block_erase = erase_chip_block_jedec,
14908 }
14909 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014910 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014911 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014912 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014913 .prepare_access = prepare_memory_access,
14914 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014915 },
14916
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014917 {
14918 .vendor = "SST",
14919 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014920 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014921 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014922 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014923 .total_size = 128,
14924 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014925 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014926 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014927 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014928 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014929 .block_erasers =
14930 {
14931 {
14932 .eraseblocks = { {4 * 1024, 32} },
14933 .block_erase = erase_sector_jedec,
14934 }, {
14935 .eraseblocks = { {128 * 1024, 1} },
14936 .block_erase = erase_chip_block_jedec,
14937 }
14938 },
Sean Nelson35727f72010-01-28 23:55:12 +000014939 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014940 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014941 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014942 .prepare_access = prepare_memory_access,
14943 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014944 },
14945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014946 {
14947 .vendor = "SST",
14948 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014949 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014950 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014951 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014952 .total_size = 256,
14953 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014954 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014955 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014956 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014957 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014958 .block_erasers =
14959 {
14960 {
14961 .eraseblocks = { {4 * 1024, 64} },
14962 .block_erase = erase_sector_jedec,
14963 }, {
14964 .eraseblocks = { {256 * 1024, 1} },
14965 .block_erase = erase_chip_block_jedec,
14966 }
14967 },
Sean Nelson35727f72010-01-28 23:55:12 +000014968 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014970 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014971 .prepare_access = prepare_memory_access,
14972 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014973 },
14974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014975 {
14976 .vendor = "SST",
14977 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014978 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014979 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014980 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014981 .total_size = 512,
14982 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014983 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014984 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014985 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014986 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014987 .block_erasers =
14988 {
14989 {
14990 .eraseblocks = { {4 * 1024, 128} },
14991 .block_erase = erase_sector_jedec,
14992 }, {
14993 .eraseblocks = { {512 * 1024, 1} },
14994 .block_erase = erase_chip_block_jedec,
14995 }
14996 },
Sean Nelson35727f72010-01-28 23:55:12 +000014997 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014999 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015000 .prepare_access = prepare_memory_access,
15001 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015002 },
15003
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015004 {
15005 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015006 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015007 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015008 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015009 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015010 .total_size = 64,
15011 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015012 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000015013 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015014 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015015 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015016 .block_erasers =
15017 {
15018 {
15019 .eraseblocks = { {4 * 1024, 16} },
15020 .block_erase = erase_sector_jedec,
15021 }, {
15022 .eraseblocks = { {64 * 1024, 1} },
15023 .block_erase = erase_chip_block_jedec,
15024 }
15025 },
Sean Nelson35727f72010-01-28 23:55:12 +000015026 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015027 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015028 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015029 .prepare_access = prepare_memory_access,
15030 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015031 },
15032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015033 {
15034 .vendor = "SST",
15035 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015037 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015038 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015039 .total_size = 128,
15040 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015041 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000015042 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015043 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015044 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015045 .block_erasers =
15046 {
15047 {
15048 .eraseblocks = { {4 * 1024, 32} },
15049 .block_erase = erase_sector_jedec,
15050 }, {
15051 .eraseblocks = { {128 * 1024, 1} },
15052 .block_erase = erase_chip_block_jedec,
15053 }
15054 },
Sean Nelson35727f72010-01-28 23:55:12 +000015055 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015057 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015058 .prepare_access = prepare_memory_access,
15059 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015060 },
15061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015062 {
15063 .vendor = "SST",
15064 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015065 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015067 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015068 .total_size = 256,
15069 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015070 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000015071 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015072 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015073 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015074 .block_erasers =
15075 {
15076 {
15077 .eraseblocks = { {4 * 1024, 64} },
15078 .block_erase = erase_sector_jedec,
15079 }, {
15080 .eraseblocks = { {256 * 1024, 1} },
15081 .block_erase = erase_chip_block_jedec,
15082 }
15083 },
Sean Nelson35727f72010-01-28 23:55:12 +000015084 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015085 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015086 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015087 .prepare_access = prepare_memory_access,
15088 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015089 },
15090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015091 {
15092 .vendor = "SST",
15093 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015095 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015096 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015097 .total_size = 512,
15098 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015099 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015100 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015101 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015102 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015103 .block_erasers =
15104 {
15105 {
15106 .eraseblocks = { {4 * 1024, 128} },
15107 .block_erase = erase_sector_jedec,
15108 }, {
15109 .eraseblocks = { {512 * 1024, 1} },
15110 .block_erase = erase_chip_block_jedec,
15111 }
15112 },
Sean Nelson35727f72010-01-28 23:55:12 +000015113 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015114 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015115 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015116 .prepare_access = prepare_memory_access,
15117 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000015118 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015119
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015120 {
15121 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000015122 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015123 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000015124 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015125 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000015126 .total_size = 1024,
15127 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015128 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000015129 .tested = TEST_UNTESTED,
15130 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015131 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015132 .block_erasers =
15133 {
15134 {
15135 .eraseblocks = { {4 * 1024, 256} },
15136 .block_erase = erase_sector_jedec,
15137 }, {
15138 .eraseblocks = { {64 * 1024, 16} },
15139 .block_erase = erase_block_jedec,
15140 }, {
15141 .eraseblocks = { {1024 * 1024, 1} },
15142 .block_erase = erase_chip_block_jedec,
15143 }
15144 },
Sean Nelson35727f72010-01-28 23:55:12 +000015145 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015147 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015148 .prepare_access = prepare_memory_access,
15149 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +000015150 },
15151
15152 {
15153 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015154 .name = "SST39VF512",
15155 .bustype = BUS_PARALLEL,
15156 .manufacture_id = SST_ID,
15157 .model_id = SST_SST39VF512,
15158 .total_size = 64,
15159 .page_size = 4096,
15160 .feature_bits = FEATURE_EITHER_RESET,
15161 .tested = TEST_OK_PREW,
15162 .probe = probe_jedec,
15163 .probe_timing = 1, /* 150 ns */
15164 .block_erasers =
15165 {
15166 {
15167 .eraseblocks = { {4 * 1024, 16} },
15168 .block_erase = erase_sector_jedec,
15169 }, {
15170 .eraseblocks = { {64 * 1024, 1} },
15171 .block_erase = erase_chip_block_jedec,
15172 }
15173 },
15174 .write = write_jedec_1,
15175 .read = read_memmapped,
15176 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015177 .prepare_access = prepare_memory_access,
15178 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015179 },
15180
15181 {
15182 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015183 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015184 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015185 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015186 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015187 .total_size = 256,
15188 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015189 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015190 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015191 .probe = probe_jedec,
15192 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015193 .block_erasers =
15194 {
15195 {
15196 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015197 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015198 }, {
15199 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015200 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015201 }, {
15202 .eraseblocks = { {256 * 1024, 1} },
15203 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15204 }
15205 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015206 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015207 .unlock = unlock_sst_fwhub,
15208 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015209 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015210 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015211 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015212 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015213 },
15214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015215 {
15216 .vendor = "SST",
15217 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015218 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015219 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015220 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015221 .total_size = 384,
15222 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015223 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015224 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015225 .probe = probe_jedec,
15226 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015227 .block_erasers =
15228 {
15229 {
15230 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015231 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015232 }, {
15233 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015234 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015235 }, {
15236 .eraseblocks = { {384 * 1024, 1} },
15237 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15238 }
15239 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015240 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015241 .unlock = unlock_sst_fwhub,
15242 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015243 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015244 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015245 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015246 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015247 },
15248
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015249 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015250 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
15251 * and is only honored for 64k block erase, but not 4k sector erase.
15252 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015253 .vendor = "SST",
15254 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015255 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015256 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015257 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015258 .total_size = 512,
15259 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015260 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015261 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015262 .probe = probe_jedec,
15263 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015264 .block_erasers =
15265 {
15266 {
15267 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015268 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015269 }, {
15270 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015271 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015272 }, {
15273 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000015274 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015275 },
15276 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015277 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015278 .unlock = unlock_sst_fwhub,
15279 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015281 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015282 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015283 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015284 },
15285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015286 {
15287 .vendor = "SST",
15288 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015289 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015290 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015291 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015292 .total_size = 512,
15293 .page_size = 4 * 1024,
15294 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015295 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015296 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015297 .block_erasers =
15298 {
15299 {
15300 .eraseblocks = { {4 * 1024, 128} },
15301 .block_erase = erase_sector_49lfxxxc,
15302 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015303 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015304 {64 * 1024, 7},
15305 {32 * 1024, 1},
15306 {8 * 1024, 2},
15307 {16 * 1024, 1},
15308 },
Sean Nelson69e58112010-03-23 17:10:28 +000015309 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015310 }
15311 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015312 .printlock = printlock_regspace2_block_eraser_1,
15313 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015314 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015315 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015316 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015317 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015318 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015319 },
15320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015321 {
15322 .vendor = "SST",
15323 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015324 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015325 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015326 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015327 .total_size = 1024,
15328 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015329 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015330 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015331 .probe = probe_jedec,
15332 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015333 .block_erasers =
15334 {
15335 {
15336 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015337 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015338 }, {
15339 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015340 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015341 }, {
15342 .eraseblocks = { {1024 * 1024, 1} },
15343 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15344 }
15345 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015346 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015347 .unlock = unlock_sst_fwhub,
15348 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015350 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015351 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015352 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015353 },
15354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015355 {
15356 .vendor = "SST",
15357 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015358 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015359 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015360 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015361 .total_size = 1024,
15362 .page_size = 4 * 1024,
15363 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015364 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015365 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015366 .block_erasers =
15367 {
15368 {
15369 .eraseblocks = { {4 * 1024, 256} },
15370 .block_erase = erase_sector_49lfxxxc,
15371 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015372 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015373 {64 * 1024, 15},
15374 {32 * 1024, 1},
15375 {8 * 1024, 2},
15376 {16 * 1024, 1},
15377 },
Sean Nelson69e58112010-03-23 17:10:28 +000015378 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015379 }
15380 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015381 .printlock = printlock_regspace2_block_eraser_1,
15382 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015383 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015385 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015386 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015387 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015388 },
15389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015390 {
15391 .vendor = "SST",
15392 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015393 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015394 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015395 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015396 .total_size = 2048,
15397 .page_size = 4 * 1024,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015398 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015399 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015400 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015401 .block_erasers =
15402 {
15403 {
15404 .eraseblocks = { {4 * 1024, 512} },
15405 .block_erase = erase_sector_49lfxxxc,
15406 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015407 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015408 {64 * 1024, 31},
15409 {32 * 1024, 1},
15410 {8 * 1024, 2},
15411 {16 * 1024, 1},
15412 },
Sean Nelson69e58112010-03-23 17:10:28 +000015413 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015414 }
15415 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015416 .printlock = printlock_regspace2_block_eraser_1,
15417 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015418 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015419 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015420 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015421 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015422 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015423 },
15424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015425 {
15426 .vendor = "SST",
15427 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015428 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015429 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015430 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015431 .total_size = 256,
15432 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015433 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000015434 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015435 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015436 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015437 .block_erasers =
15438 {
15439 {
15440 .eraseblocks = { {4 * 1024, 64} },
15441 .block_erase = erase_sector_jedec,
15442 }, {
15443 .eraseblocks = { {16 * 1024, 16} },
15444 .block_erase = erase_block_jedec,
15445 }, {
15446 .eraseblocks = { {256 * 1024, 1} },
15447 .block_erase = NULL,
15448 }
15449 },
Sean Nelson35727f72010-01-28 23:55:12 +000015450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015452 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015453 .prepare_access = prepare_memory_access,
15454 .finish_access = finish_memory_access,
Sven Schnellec208dfb2009-01-07 12:35:09 +000015455 },
15456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015457 {
15458 .vendor = "SST",
15459 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015460 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015461 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015462 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015463 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000015464 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015465 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000015466 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015467 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015468 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015469 .block_erasers =
15470 {
15471 {
15472 .eraseblocks = { {4 * 1024, 64} },
15473 .block_erase = erase_sector_jedec,
15474 }, {
15475 .eraseblocks = { {16 * 1024, 16} },
15476 .block_erase = erase_block_jedec,
15477 }, {
15478 .eraseblocks = { {256 * 1024, 1} },
15479 .block_erase = NULL,
15480 }
15481 },
Sean Nelson35727f72010-01-28 23:55:12 +000015482 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015483 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015484 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015485 .prepare_access = prepare_memory_access,
15486 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015487 },
15488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015489 {
15490 .vendor = "SST",
15491 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015492 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015493 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015494 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015495 .total_size = 512,
15496 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015497 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015499 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015500 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015501 .block_erasers =
15502 {
15503 {
15504 .eraseblocks = { {4 * 1024, 128} },
15505 .block_erase = erase_sector_jedec,
15506 }, {
15507 .eraseblocks = { {64 * 1024, 8} },
15508 .block_erase = erase_block_jedec,
15509 }, {
15510 .eraseblocks = { {512 * 1024, 1} },
15511 .block_erase = NULL,
15512 }
15513 },
Sean Nelson35727f72010-01-28 23:55:12 +000015514 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015515 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015516 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015517 .prepare_access = prepare_memory_access,
15518 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015519 },
15520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015521 {
15522 .vendor = "SST",
15523 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015524 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015525 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015526 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015527 .total_size = 512,
15528 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015529 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015530 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015531 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015532 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015533 .block_erasers =
15534 {
15535 {
15536 .eraseblocks = { {4 * 1024, 128} },
15537 .block_erase = erase_sector_jedec,
15538 }, {
15539 .eraseblocks = { {64 * 1024, 8} },
15540 .block_erase = erase_block_jedec,
15541 }, {
15542 .eraseblocks = { {512 * 1024, 1} },
15543 .block_erase = NULL,
15544 }
15545 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015546 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015547 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015549 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015550 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015551 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015552 },
15553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015554 {
15555 .vendor = "SST",
15556 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015557 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015558 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015559 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015560 .total_size = 1024,
15561 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015562 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015564 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015565 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015566 .block_erasers =
15567 {
15568 {
15569 .eraseblocks = { {4 * 1024, 256} },
15570 .block_erase = erase_sector_jedec,
15571 }, {
15572 .eraseblocks = { {64 * 1024, 16} },
15573 .block_erase = erase_block_jedec,
15574 }, {
15575 .eraseblocks = { {1024 * 1024, 1} },
15576 .block_erase = NULL,
15577 }
15578 },
Sean Nelson35727f72010-01-28 23:55:12 +000015579 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015581 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015582 .prepare_access = prepare_memory_access,
15583 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015584 },
15585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015586 {
15587 .vendor = "SST",
15588 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015589 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015590 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015591 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015592 .total_size = 2048,
15593 .page_size = 4 * 1024,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015594 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015595 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015596 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015597 .block_erasers =
15598 {
15599 {
15600 .eraseblocks = { {4 * 1024, 512} },
15601 .block_erase = erase_sector_49lfxxxc,
15602 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015603 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015604 {64 * 1024, 31},
15605 {32 * 1024, 1},
15606 {8 * 1024, 2},
15607 {16 * 1024, 1},
15608 },
Sean Nelson69e58112010-03-23 17:10:28 +000015609 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015610 }
15611 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015612 .printlock = printlock_regspace2_block_eraser_1,
15613 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015614 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015616 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015617 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015618 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015619 },
15620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015621 {
15622 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015623 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015624 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015625 .manufacture_id = ST_ID,
15626 .model_id = ST_M29F002B,
15627 .total_size = 256,
15628 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015629 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015630 .tested = TEST_UNTESTED,
15631 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015632 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015633 .block_erasers =
15634 {
15635 {
15636 .eraseblocks = {
15637 {16 * 1024, 1},
15638 {8 * 1024, 2},
15639 {32 * 1024, 1},
15640 {64 * 1024, 3},
15641 },
15642 .block_erase = erase_sector_jedec,
15643 }, {
15644 .eraseblocks = { {256 * 1024, 1} },
15645 .block_erase = erase_chip_block_jedec,
15646 }
15647 },
Sean Nelson35727f72010-01-28 23:55:12 +000015648 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015649 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015650 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015651 .prepare_access = prepare_memory_access,
15652 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015653 },
15654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015655 {
15656 .vendor = "ST",
15657 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015658 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015659 .manufacture_id = ST_ID,
15660 .model_id = ST_M29F002T,
15661 .total_size = 256,
15662 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015663 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015664 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015665 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015666 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015667 .block_erasers =
15668 {
15669 {
15670 .eraseblocks = {
15671 {64 * 1024, 3},
15672 {32 * 1024, 1},
15673 {8 * 1024, 2},
15674 {16 * 1024, 1},
15675 },
15676 .block_erase = erase_sector_jedec,
15677 }, {
15678 .eraseblocks = { {256 * 1024, 1} },
15679 .block_erase = erase_chip_block_jedec,
15680 }
15681 },
Sean Nelson35727f72010-01-28 23:55:12 +000015682 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015683 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015684 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015685 .prepare_access = prepare_memory_access,
15686 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015687 },
15688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015689 {
15690 .vendor = "ST",
15691 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015692 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015693 .manufacture_id = ST_ID,
15694 .model_id = ST_M29F040B,
15695 .total_size = 512,
15696 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015697 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15698 .tested = TEST_UNTESTED,
15699 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015700 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015701 .block_erasers =
15702 {
15703 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015704 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015705 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015706 }, {
15707 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015708 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015709 }
15710 },
Sean Nelson35727f72010-01-28 23:55:12 +000015711 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015713 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015714 .prepare_access = prepare_memory_access,
15715 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015716 },
15717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015718 {
Sean Nelson35727f72010-01-28 23:55:12 +000015719 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015720 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015721 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015722 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015723 .manufacture_id = ST_ID,
15724 .model_id = ST_M29F400BB,
15725 .total_size = 512,
15726 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015727 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015728 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015729 .probe = probe_jedec,
15730 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015731 .block_erasers =
15732 {
15733 {
15734 .eraseblocks = {
15735 {16 * 1024, 1},
15736 {8 * 1024, 2},
15737 {32 * 1024, 1},
15738 {64 * 1024, 7},
15739 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015740 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015741 }, {
15742 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015743 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015744 }
15745 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015746 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015747 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015748 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015749 .prepare_access = prepare_memory_access,
15750 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015751 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015752
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015753 {
15754 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15755 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015756 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015757 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015758 .manufacture_id = ST_ID,
15759 .model_id = ST_M29F400BT,
15760 .total_size = 512,
15761 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015762 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015763 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015764 .probe = probe_jedec,
15765 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015766 .block_erasers =
15767 {
15768 {
15769 .eraseblocks = {
15770 {64 * 1024, 7},
15771 {32 * 1024, 1},
15772 {8 * 1024, 2},
15773 {16 * 1024, 1},
15774 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015775 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015776 }, {
15777 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015778 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015779 }
15780 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015781 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015783 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015784 .prepare_access = prepare_memory_access,
15785 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015786 },
15787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015788 {
15789 .vendor = "ST",
15790 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015791 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015792 .manufacture_id = ST_ID,
15793 .model_id = ST_M29W010B,
15794 .total_size = 128,
15795 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015796 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015797 .tested = TEST_UNTESTED,
15798 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015799 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015800 .block_erasers =
15801 {
15802 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015803 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015804 .block_erase = erase_sector_jedec,
15805 }, {
15806 .eraseblocks = { {128 * 1024, 1} },
15807 .block_erase = erase_chip_block_jedec,
15808 }
15809 },
Sean Nelson35727f72010-01-28 23:55:12 +000015810 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015811 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015812 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015813 .prepare_access = prepare_memory_access,
15814 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015815 },
15816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015817 {
15818 .vendor = "ST",
15819 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015820 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015821 .manufacture_id = ST_ID,
15822 .model_id = ST_M29W040B,
15823 .total_size = 512,
15824 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015825 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015826 .tested = TEST_UNTESTED,
15827 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015828 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015829 .block_erasers =
15830 {
15831 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015832 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015833 .block_erase = erase_sector_jedec,
15834 }, {
15835 .eraseblocks = { {512 * 1024, 1} },
15836 .block_erase = erase_chip_block_jedec,
15837 }
15838 },
Sean Nelson35727f72010-01-28 23:55:12 +000015839 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015840 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015841 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015842 .prepare_access = prepare_memory_access,
15843 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015844 },
15845
Stefan Taunereb582572012-09-21 12:52:50 +000015846 {
15847 .vendor = "ST",
15848 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015849 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015850 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015851 .model_id = ST_M29W512B,
15852 .total_size = 64,
15853 .page_size = 64 * 1024,
15854 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015855 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015856 .probe = probe_jedec,
15857 .probe_timing = TIMING_ZERO,
15858 .block_erasers =
15859 {
15860 {
15861 .eraseblocks = { {64 * 1024, 1} },
15862 .block_erase = erase_chip_block_jedec,
15863 }
15864 },
15865 .write = write_jedec_1,
15866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015867 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015868 .prepare_access = prepare_memory_access,
15869 .finish_access = finish_memory_access,
Stefan Taunereb582572012-09-21 12:52:50 +000015870 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015872 {
15873 .vendor = "ST",
15874 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015875 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015876 .manufacture_id = ST_ID,
15877 .model_id = ST_M50FLW040A,
15878 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015879 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015880 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015881 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015882 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015883 .block_erasers =
15884 {
15885 {
Sean Nelson329bde72010-01-19 16:39:19 +000015886 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015887 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015888 {64 * 1024, 5}, /* block */
15889 {4 * 1024, 16}, /* sector */
15890 {4 * 1024, 16}, /* sector */
15891 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015892 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015893 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015894 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015895 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015896 }
15897 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015898 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015899 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015900 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015901 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015902 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015903 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015904 },
15905
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015906 {
15907 .vendor = "ST",
15908 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015909 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015910 .manufacture_id = ST_ID,
15911 .model_id = ST_M50FLW040B,
15912 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015913 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015914 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015915 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015916 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015917 .block_erasers =
15918 {
15919 {
Sean Nelson329bde72010-01-19 16:39:19 +000015920 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015921 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015922 {4 * 1024, 16}, /* sector */
15923 {64 * 1024, 5}, /* block */
15924 {4 * 1024, 16}, /* sector */
15925 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015926 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015927 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015928 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015929 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015930 }
15931 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015932 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015933 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015935 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015936 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015937 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015938 },
15939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015940 {
15941 .vendor = "ST",
15942 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015943 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015944 .manufacture_id = ST_ID,
15945 .model_id = ST_M50FLW080A,
15946 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015947 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015948 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015949 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015950 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015951 .block_erasers =
15952 {
15953 {
Sean Nelson329bde72010-01-19 16:39:19 +000015954 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015955 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015956 {64 * 1024, 13}, /* block */
15957 {4 * 1024, 16}, /* sector */
15958 {4 * 1024, 16}, /* sector */
15959 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015960 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015961 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015962 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015963 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015964 }
15965 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015966 .printlock = printlock_regspace2_block_eraser_0,
15967 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015968 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015970 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015971 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015972 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015973 },
15974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015975 {
15976 .vendor = "ST",
15977 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015978 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015979 .manufacture_id = ST_ID,
15980 .model_id = ST_M50FLW080B,
15981 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015982 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015983 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015984 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015985 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015986 .block_erasers =
15987 {
15988 {
Sean Nelson329bde72010-01-19 16:39:19 +000015989 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015990 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015991 {4 * 1024, 16}, /* sector */
15992 {64 * 1024, 13}, /* block */
15993 {4 * 1024, 16}, /* sector */
15994 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015995 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015996 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015997 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015998 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015999 }
16000 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016001 .printlock = printlock_regspace2_block_eraser_0,
16002 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016003 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016004 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016005 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016006 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016007 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016008 },
16009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016010 {
16011 .vendor = "ST",
16012 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016013 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016014 .manufacture_id = ST_ID,
16015 .model_id = ST_M50FW002,
16016 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000016017 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016018 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000016019 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016020 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016021 .block_erasers =
16022 {
16023 {
16024 .eraseblocks = {
16025 {64 * 1024, 3},
16026 {32 * 1024, 1},
16027 {8 * 1024, 2},
16028 {16 * 1024, 1},
16029 },
Sean Nelson28accc22010-03-19 18:47:06 +000016030 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016031 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000016032 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016033 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000016034 }
16035 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016036 .printlock = printlock_regspace2_block_eraser_0,
16037 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016038 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016039 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016040 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016041 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016042 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016043 },
16044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016045 {
16046 .vendor = "ST",
16047 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016048 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016049 .manufacture_id = ST_ID,
16050 .model_id = ST_M50FW016,
16051 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016052 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016053 .tested = TEST_UNTESTED,
16054 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016055 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016056 .block_erasers =
16057 {
16058 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016059 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000016060 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016061 }
16062 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016063 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016064 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016066 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016067 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016068 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016069 },
16070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016071 {
16072 .vendor = "ST",
16073 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016074 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016075 .manufacture_id = ST_ID,
16076 .model_id = ST_M50FW040,
16077 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000016078 .page_size = 0,
Sean Nelson28accc22010-03-19 18:47:06 +000016079 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016080 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016081 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016082 .block_erasers =
16083 {
16084 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016085 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000016086 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016087 }
16088 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016089 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016090 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016091 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016092 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016093 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016094 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016095 },
16096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016097 {
16098 .vendor = "ST",
16099 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016100 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016101 .manufacture_id = ST_ID,
16102 .model_id = ST_M50FW080,
16103 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016104 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016105 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016106 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016107 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016108 .block_erasers =
16109 {
16110 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016111 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016112 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016113 }
16114 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016115 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016116 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016118 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016119 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016120 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016121 },
16122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016123 {
16124 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016125 .name = "M50LPW080",
16126 .bustype = BUS_LPC, /* A/A Mux */
16127 .manufacture_id = ST_ID,
16128 .model_id = ST_M50LPW080,
16129 .total_size = 1024,
16130 .page_size = 0,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016131 .tested = TEST_UNTESTED,
16132 .probe = probe_82802ab,
16133 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16134 .block_erasers =
16135 {
16136 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016137 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016138 .block_erase = erase_block_82802ab,
16139 }
16140 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016141 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016142 .write = write_82802ab,
16143 .read = read_memmapped,
16144 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016145 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016146 .finish_access = finish_memory_access,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016147 },
16148
16149 {
16150 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016151 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016152 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016153 .manufacture_id = ST_ID,
16154 .model_id = ST_M50LPW116,
16155 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016156 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016157 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000016158 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000016159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016160 .block_erasers =
16161 {
16162 {
16163 .eraseblocks = {
16164 {4 * 1024, 16},
16165 {64 * 1024, 30},
16166 {32 * 1024, 1},
16167 {8 * 1024, 2},
16168 {16 * 1024, 1},
16169 },
Sean Nelson28accc22010-03-19 18:47:06 +000016170 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016171 }
16172 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016173 .printlock = printlock_regspace2_block_eraser_0,
16174 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016175 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016177 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016178 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016179 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016180 },
16181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016182 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016183 .vendor = "ST",
16184 .name = "M95M02",
16185 .bustype = BUS_SPI,
16186 .manufacture_id = ST_ID,
16187 .model_id = ST_M95M02,
16188 .total_size = 256,
16189 .page_size = 256,
16190 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
16191 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020016192 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016193 .probe = probe_spi_st95,
16194 .probe_timing = TIMING_ZERO,
16195 .block_erasers =
16196 {
16197 {
16198 .eraseblocks = { {256 * 1024, 1} },
16199 .block_erase = spi_block_erase_emulation,
16200 }
16201 },
16202
16203 .printlock = spi_prettyprint_status_register_bp1_srwd,
16204 .unlock = spi_disable_blockprotect_bp1_srwd,
16205 .write = spi_chip_write_256,
16206 .read = spi_chip_read,
16207 .voltage = {2500, 5500},
16208 },
16209
16210 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016211 .vendor = "Sanyo",
16212 .name = "LE25FU106B",
16213 .bustype = BUS_SPI,
16214 .manufacture_id = SANYO_ID,
16215 .model_id = SANYO_LE25FU106B,
16216 .total_size = 128,
16217 .page_size = 256,
16218 .feature_bits = FEATURE_WRSR_WREN,
16219 .tested = TEST_UNTESTED,
16220 .probe = probe_spi_res2,
16221 .probe_timing = TIMING_ZERO,
16222 .block_erasers =
16223 {
16224 /* FIXME: Is this correct?
16225 {
16226 .eraseblocks = { {2 * 1024, 64} },
16227 .block_erase = spi_block_erase_d7,
16228 },*/
16229 {
16230 .eraseblocks = { {32 * 1024, 4} },
16231 .block_erase = spi_block_erase_d8,
16232 }, {
16233 .eraseblocks = { {128 * 1024, 1} },
16234 .block_erase = spi_block_erase_c7,
16235 }
16236 },
16237 .printlock = spi_prettyprint_status_register_bp1_srwd,
16238 .unlock = spi_disable_blockprotect_bp1_srwd,
16239 .write = spi_chip_write_256,
16240 .read = spi_chip_read,
16241 .voltage = {2300, 3600},
16242 },
16243
16244 {
16245 .vendor = "Sanyo",
16246 .name = "LE25FU206",
16247 .bustype = BUS_SPI,
16248 .manufacture_id = SANYO_ID,
16249 .model_id = SANYO_LE25FU206,
16250 .total_size = 256,
16251 .page_size = 256,
16252 .feature_bits = FEATURE_WRSR_WREN,
16253 .tested = TEST_UNTESTED,
16254 .probe = probe_spi_res2,
16255 .probe_timing = TIMING_ZERO,
16256 .block_erasers =
16257 {
16258 {
16259 .eraseblocks = { {4 * 1024, 64} },
16260 .block_erase = spi_block_erase_d7,
16261 }, {
16262 .eraseblocks = { {64 * 1024, 4} },
16263 .block_erase = spi_block_erase_d8,
16264 }, {
16265 .eraseblocks = { {256 * 1024, 1} },
16266 .block_erase = spi_block_erase_c7,
16267 }
16268 },
16269 .printlock = spi_prettyprint_status_register_bp1_srwd,
16270 .unlock = spi_disable_blockprotect_bp1_srwd,
16271 .write = spi_chip_write_256,
16272 .read = spi_chip_read,
16273 .voltage = {2300, 3600},
16274 },
16275
16276 {
16277 .vendor = "Sanyo",
16278 .name = "LE25FU206A",
16279 .bustype = BUS_SPI,
16280 .manufacture_id = SANYO_ID,
16281 .model_id = SANYO_LE25FU206A,
16282 .total_size = 256,
16283 .page_size = 256,
16284 .tested = TEST_UNTESTED,
16285 .probe = probe_spi_rdid,
16286 .probe_timing = TIMING_ZERO,
16287 .block_erasers =
16288 {
16289 {
16290 .eraseblocks = { {4 * 1024, 64} },
16291 .block_erase = spi_block_erase_20,
16292 }, {
16293 .eraseblocks = { {4 * 1024, 64} },
16294 .block_erase = spi_block_erase_d7,
16295 }, {
16296 .eraseblocks = { {64 * 1024, 4} },
16297 .block_erase = spi_block_erase_d8,
16298 }, {
16299 .eraseblocks = { {256 * 1024, 1} },
16300 .block_erase = spi_block_erase_60,
16301 }, {
16302 .eraseblocks = { {256 * 1024, 1} },
16303 .block_erase = spi_block_erase_c7,
16304 }
16305 },
16306 .printlock = spi_prettyprint_status_register_bp2_srwd,
16307 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16308 .write = spi_chip_write_256,
16309 .read = spi_chip_read,
16310 .voltage = {2300, 3600},
16311 },
16312
16313 {
16314 .vendor = "Sanyo",
16315 .name = "LE25FU406B",
16316 .bustype = BUS_SPI,
16317 .manufacture_id = SANYO_ID,
16318 .model_id = SANYO_LE25FU406B,
16319 .total_size = 512,
16320 .page_size = 256,
16321 .feature_bits = FEATURE_WRSR_WREN,
16322 .tested = TEST_OK_PREW,
16323 .probe = probe_spi_res2,
16324 .probe_timing = TIMING_ZERO,
16325 .block_erasers =
16326 {
16327 {
16328 .eraseblocks = { {4 * 1024, 128} },
16329 .block_erase = spi_block_erase_d7,
16330 }, {
16331 .eraseblocks = { {64 * 1024, 8} },
16332 .block_erase = spi_block_erase_d8,
16333 }, {
16334 .eraseblocks = { {512 * 1024, 1} },
16335 .block_erase = spi_block_erase_c7,
16336 }
16337 },
16338 .printlock = spi_prettyprint_status_register_bp2_srwd,
16339 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16340 .write = spi_chip_write_256,
16341 .read = spi_chip_read,
16342 .voltage = {2300, 3600},
16343 },
16344
16345 {
16346 .vendor = "Sanyo",
16347 .name = "LE25FU406C/LE25U40CMC",
16348 .bustype = BUS_SPI,
16349 .manufacture_id = SANYO_ID,
16350 .model_id = SANYO_LE25FU406C,
16351 .total_size = 512,
16352 .page_size = 256,
16353 .feature_bits = FEATURE_WRSR_WREN,
16354 .tested = TEST_OK_PREW,
16355 .probe = probe_spi_rdid,
16356 .probe_timing = TIMING_ZERO,
16357 .block_erasers =
16358 {
16359 {
16360 .eraseblocks = { {4 * 1024, 128} },
16361 .block_erase = spi_block_erase_20,
16362 }, {
16363 .eraseblocks = { {4 * 1024, 128} },
16364 .block_erase = spi_block_erase_d7,
16365 }, {
16366 .eraseblocks = { {64 * 1024, 8} },
16367 .block_erase = spi_block_erase_d8,
16368 }, {
16369 .eraseblocks = { {512 * 1024, 1} },
16370 .block_erase = spi_block_erase_60,
16371 }, {
16372 .eraseblocks = { {512 * 1024, 1} },
16373 .block_erase = spi_block_erase_c7,
16374 }
16375 },
16376 .printlock = spi_prettyprint_status_register_bp2_srwd,
16377 .unlock = spi_disable_blockprotect_bp2_srwd,
16378 .write = spi_chip_write_256,
16379 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
16380 .voltage = {2300, 3600},
16381 },
16382
16383 {
16384 .vendor = "Sanyo",
16385 .name = "LE25FW106",
16386 .bustype = BUS_SPI,
16387 .manufacture_id = SANYO_ID,
16388 .model_id = SANYO_LE25FW106,
16389 .total_size = 128,
16390 .page_size = 256,
16391 .feature_bits = FEATURE_WRSR_WREN,
16392 .tested = TEST_OK_PREW,
16393 .probe = probe_spi_res2,
16394 .probe_timing = TIMING_ZERO,
16395 .block_erasers =
16396 {
16397 {
16398 .eraseblocks = { {2 * 1024, 64} },
16399 .block_erase = spi_block_erase_d7,
16400 }, {
16401 .eraseblocks = { {32 * 1024, 4} },
16402 .block_erase = spi_block_erase_d8,
16403 }, {
16404 .eraseblocks = { {128 * 1024, 1} },
16405 .block_erase = spi_block_erase_c7,
16406 }
16407 },
16408 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
16409 .unlock = spi_disable_blockprotect_bp1_srwd,
16410 .write = spi_chip_write_256,
16411 .read = spi_chip_read,
16412 .voltage = {2700, 3600},
16413 },
16414
16415 {
16416 .vendor = "Sanyo",
16417 .name = "LE25FW203A",
16418 .bustype = BUS_SPI,
16419 .manufacture_id = SANYO_ID,
16420 .model_id = SANYO_LE25FW203A,
16421 .total_size = 256,
16422 .page_size = 256,
16423 .tested = TEST_UNTESTED,
16424 .probe = probe_spi_rdid,
16425 .probe_timing = TIMING_ZERO,
16426 .block_erasers =
16427 {
16428 {
16429 .eraseblocks = { {256, 1024} },
16430 .block_erase = spi_block_erase_db,
16431 }, {
16432 .eraseblocks = { {64 * 1024, 4} },
16433 .block_erase = spi_block_erase_d8,
16434 }, {
16435 .eraseblocks = { {256 * 1024, 1} },
16436 .block_erase = spi_block_erase_c7,
16437 }
16438 },
16439 .printlock = spi_prettyprint_status_register_default_welwip,
16440 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16441 .write = spi_chip_write_256,
16442 .read = spi_chip_read,
16443 .voltage = {2700, 3600},
16444 },
16445
16446 {
16447 .vendor = "Sanyo",
16448 .name = "LE25FW403A",
16449 .bustype = BUS_SPI,
16450 .manufacture_id = SANYO_ID,
16451 .model_id = SANYO_LE25FW403A,
16452 .total_size = 512,
16453 .page_size = 256,
16454 .tested = TEST_UNTESTED,
16455 .probe = probe_spi_rdid,
16456 .probe_timing = TIMING_ZERO,
16457 .block_erasers =
16458 {
16459 {
16460 .eraseblocks = { {256, 2 * 1024} },
16461 .block_erase = spi_block_erase_db,
16462 }, {
16463 .eraseblocks = { {64 * 1024, 8} },
16464 .block_erase = spi_block_erase_d8,
16465 }, {
16466 .eraseblocks = { {512 * 1024, 1} },
16467 .block_erase = spi_block_erase_c7,
16468 }
16469 },
16470 .printlock = spi_prettyprint_status_register_default_welwip,
16471 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16472 .write = spi_chip_write_256,
16473 .read = spi_chip_read,
16474 .voltage = {2700, 3600},
16475 },
16476
16477 {
16478 .vendor = "Sanyo",
16479 .name = "LE25FW406A",
16480 .bustype = BUS_SPI,
16481 .manufacture_id = SANYO_ID,
16482 .model_id = SANYO_LE25FW406A,
16483 .total_size = 512,
16484 .page_size = 256,
16485 .feature_bits = FEATURE_WRSR_WREN,
16486 .tested = TEST_OK_PREW,
16487 .probe = probe_spi_res2,
16488 .probe_timing = TIMING_ZERO,
16489 .block_erasers =
16490 {
16491 {
16492 .eraseblocks = { {4 * 1024, 128} },
16493 .block_erase = spi_block_erase_d7,
16494 }, {
16495 .eraseblocks = { {64 * 1024, 8} },
16496 .block_erase = spi_block_erase_d8,
16497 }, {
16498 .eraseblocks = { {512 * 1024, 1} },
16499 .block_erase = spi_block_erase_c7,
16500 }
16501 },
16502 .printlock = spi_prettyprint_status_register_plain,
16503 .unlock = spi_disable_blockprotect,
16504 .write = spi_chip_write_256,
16505 .read = spi_chip_read,
16506 .voltage = {2700, 3600},
16507 },
16508
16509 {
16510 .vendor = "Sanyo",
16511 .name = "LE25FW418A",
16512 .bustype = BUS_SPI,
16513 .manufacture_id = SANYO_ID,
16514 .model_id = SANYO_LE25FW418A,
16515 .total_size = 512,
16516 .page_size = 256,
16517 .feature_bits = FEATURE_WRSR_WREN,
16518 .tested = TEST_UNTESTED,
16519 .probe = probe_spi_res2,
16520 .probe_timing = TIMING_ZERO,
16521 .block_erasers =
16522 {
16523 {
16524 .eraseblocks = { {4 * 1024, 128} },
16525 .block_erase = spi_block_erase_d7,
16526 }, {
16527 .eraseblocks = { {64 * 1024, 8} },
16528 .block_erase = spi_block_erase_d8,
16529 }, {
16530 .eraseblocks = { {512 * 1024, 1} },
16531 .block_erase = spi_block_erase_c7,
16532 }
16533 },
16534 .printlock = spi_prettyprint_status_register_bp2_srwd,
16535 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16536 .write = spi_chip_write_256,
16537 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16538 .voltage = {2700, 3600},
16539 },
16540
16541 {
16542 .vendor = "Sanyo",
16543 .name = "LE25FW806",
16544 .bustype = BUS_SPI,
16545 .manufacture_id = SANYO_ID,
16546 .model_id = SANYO_LE25FW806,
16547 .total_size = 1024,
16548 .page_size = 256,
16549 .feature_bits = FEATURE_WRSR_WREN,
16550 .tested = TEST_UNTESTED,
16551 .probe = probe_spi_res2,
16552 .probe_timing = TIMING_ZERO,
16553 .block_erasers =
16554 {
16555 {
16556 .eraseblocks = { {4 * 1024, 256} },
16557 .block_erase = spi_block_erase_20,
16558 }, {
16559 .eraseblocks = { {4 * 1024, 256} },
16560 .block_erase = spi_block_erase_d7,
16561 }, {
16562 .eraseblocks = { {64 * 1024, 16} },
16563 .block_erase = spi_block_erase_d8,
16564 }, {
16565 .eraseblocks = { {1024 * 1024, 1} },
16566 .block_erase = spi_block_erase_c7,
16567 }
16568 },
16569 .printlock = spi_prettyprint_status_register_bp2_srwd,
16570 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16571 .write = spi_chip_write_256,
16572 .read = spi_chip_read,
16573 .voltage = {2700, 3600},
16574 },
16575
16576 {
16577 .vendor = "Sanyo",
16578 .name = "LE25FW808",
16579 .bustype = BUS_SPI,
16580 .manufacture_id = SANYO_ID,
16581 .model_id = SANYO_LE25FW808,
16582 .total_size = 1024,
16583 .page_size = 256,
16584 .feature_bits = FEATURE_WRSR_WREN,
16585 .tested = TEST_UNTESTED,
16586 .probe = probe_spi_res2,
16587 .probe_timing = TIMING_ZERO,
16588 .block_erasers =
16589 {
16590 {
16591 .eraseblocks = { {8 * 1024, 128} },
16592 .block_erase = spi_block_erase_d7,
16593 }, {
16594 .eraseblocks = { {64 * 1024, 16} },
16595 .block_erase = spi_block_erase_d8,
16596 }, {
16597 .eraseblocks = { {1024 * 1024, 1} },
16598 .block_erase = spi_block_erase_c7,
16599 }
16600 },
16601 .printlock = spi_prettyprint_status_register_bp2_srwd,
16602 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16603 .write = spi_chip_write_256,
16604 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16605 .voltage = {2700, 3600},
16606 },
16607
16608 {
16609 .vendor = "Sharp",
16610 .name = "LH28F008BJT-BTLZ1",
16611 .bustype = BUS_PARALLEL,
16612 .manufacture_id = SHARP_ID,
16613 .model_id = SHARP_LH28F008BJ__PB,
16614 .total_size = 1024,
16615 .page_size = 64 * 1024,
16616 .tested = TEST_OK_PREW,
16617 .probe = probe_82802ab,
16618 .probe_timing = TIMING_ZERO,
16619 .block_erasers =
16620 {
16621 {
16622 .eraseblocks = {
16623 {8 * 1024, 8},
16624 {64 * 1024, 15}
16625 },
16626 .block_erase = erase_block_82802ab,
16627 }, {
16628 .eraseblocks = { {1024 * 1024, 1} },
16629 .block_erase = erase_sector_49lfxxxc,
16630 }
16631 },
16632 .unlock = unlock_lh28f008bjt,
16633 .write = write_82802ab,
16634 .read = read_memmapped,
16635 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010016636 .prepare_access = prepare_memory_access,
16637 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016638 },
16639
16640 {
16641 .vendor = "Sharp",
16642 .name = "LHF00L04",
16643 .bustype = BUS_FWH, /* A/A Mux */
16644 .manufacture_id = SHARP_ID,
16645 .model_id = SHARP_LHF00L04,
16646 .total_size = 1024,
16647 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010016648 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016649 .tested = TEST_UNTESTED,
16650 .probe = probe_82802ab,
16651 .probe_timing = TIMING_ZERO,
16652 .block_erasers =
16653 {
16654 {
16655 .eraseblocks = {
16656 {64 * 1024, 15},
16657 {8 * 1024, 8}
16658 },
16659 .block_erase = erase_block_82802ab,
16660 }, {
16661 .eraseblocks = {
16662 {1024 * 1024, 1}
16663 },
16664 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16665 },
16666 },
16667 .unlock = unlock_regspace2_uniform_64k,
16668 .write = write_82802ab,
16669 .read = read_memmapped,
16670 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010016671 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016672 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016673 },
16674
16675 {
16676 .vendor = "Spansion",
16677 .name = "S25FL004A",
16678 .bustype = BUS_SPI,
16679 .manufacture_id = SPANSION_ID,
16680 .model_id = SPANSION_S25FL004A,
16681 .total_size = 512,
16682 .page_size = 256,
16683 .feature_bits = FEATURE_WRSR_WREN,
16684 .tested = TEST_UNTESTED,
16685 .probe = probe_spi_rdid,
16686 .probe_timing = TIMING_ZERO,
16687 .block_erasers =
16688 {
16689 {
16690 .eraseblocks = { {64 * 1024, 8} },
16691 .block_erase = spi_block_erase_d8,
16692 }, {
16693 .eraseblocks = { {512 * 1024, 1} },
16694 .block_erase = spi_block_erase_c7,
16695 }
16696 },
16697 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16698 .unlock = spi_disable_blockprotect,
16699 .write = spi_chip_write_256,
16700 .read = spi_chip_read,
16701 .voltage = {2700, 3600},
16702 },
16703
16704 {
16705 .vendor = "Spansion",
16706 .name = "S25FL008A",
16707 .bustype = BUS_SPI,
16708 .manufacture_id = SPANSION_ID,
16709 .model_id = SPANSION_S25FL008A,
16710 .total_size = 1024,
16711 .page_size = 256,
16712 .feature_bits = FEATURE_WRSR_WREN,
16713 .tested = TEST_OK_PRE,
16714 .probe = probe_spi_rdid,
16715 .probe_timing = TIMING_ZERO,
16716 .block_erasers =
16717 {
16718 {
16719 .eraseblocks = { {64 * 1024, 16} },
16720 .block_erase = spi_block_erase_d8,
16721 }, {
16722 .eraseblocks = { {1024 * 1024, 1} },
16723 .block_erase = spi_block_erase_c7,
16724 }
16725 },
16726 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16727 .unlock = spi_disable_blockprotect,
16728 .write = spi_chip_write_256,
16729 .read = spi_chip_read,
16730 .voltage = {2700, 3600},
16731 },
16732
16733 {
16734 .vendor = "Spansion",
16735 .name = "S25FL016A",
16736 .bustype = BUS_SPI,
16737 .manufacture_id = SPANSION_ID,
16738 .model_id = SPANSION_S25FL016A,
16739 .total_size = 2048,
16740 .page_size = 256,
16741 .feature_bits = FEATURE_WRSR_WREN,
16742 .tested = TEST_OK_PREW,
16743 .probe = probe_spi_rdid,
16744 .probe_timing = TIMING_ZERO,
16745 .block_erasers =
16746 {
16747 {
16748 .eraseblocks = { {64 * 1024, 32} },
16749 .block_erase = spi_block_erase_d8,
16750 }, {
16751 .eraseblocks = { {2 * 1024 * 1024, 1} },
16752 .block_erase = spi_block_erase_c7,
16753 }
16754 },
16755 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16756 .unlock = spi_disable_blockprotect,
16757 .write = spi_chip_write_256,
16758 .read = spi_chip_read,
16759 .voltage = {2700, 3600},
16760 },
16761
16762 {
16763 .vendor = "Spansion",
16764 .name = "S25FL032A/P",
16765 .bustype = BUS_SPI,
16766 .manufacture_id = SPANSION_ID,
16767 .model_id = SPANSION_S25FL032A,
16768 .total_size = 4096,
16769 .page_size = 256,
16770 .feature_bits = FEATURE_WRSR_WREN,
16771 .tested = TEST_OK_PREW,
16772 .probe = probe_spi_rdid,
16773 .probe_timing = TIMING_ZERO,
16774 .block_erasers =
16775 {
16776 {
16777 .eraseblocks = { {64 * 1024, 64} },
16778 .block_erase = spi_block_erase_d8,
16779 }, {
16780 .eraseblocks = { {4 * 1024 * 1024, 1} },
16781 .block_erase = spi_block_erase_c7,
16782 }
16783 },
16784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16785 .unlock = spi_disable_blockprotect,
16786 .write = spi_chip_write_256,
16787 .read = spi_chip_read,
16788 .voltage = {2700, 3600},
16789 },
16790
16791 {
16792 .vendor = "Spansion",
16793 .name = "S25FL064A/P",
16794 .bustype = BUS_SPI,
16795 .manufacture_id = SPANSION_ID,
16796 .model_id = SPANSION_S25FL064A,
16797 .total_size = 8192,
16798 .page_size = 256,
16799 .feature_bits = FEATURE_WRSR_WREN,
16800 .tested = TEST_OK_PREW,
16801 .probe = probe_spi_rdid,
16802 .probe_timing = TIMING_ZERO,
16803 .block_erasers =
16804 {
16805 {
16806 .eraseblocks = { {64 * 1024, 128} },
16807 .block_erase = spi_block_erase_d8,
16808 }, {
16809 .eraseblocks = { {8 * 1024 * 1024, 1} },
16810 .block_erase = spi_block_erase_c7,
16811 }
16812 },
16813 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16814 .unlock = spi_disable_blockprotect,
16815 .write = spi_chip_write_256,
16816 .read = spi_chip_read,
16817 .voltage = {2700, 3600},
16818 },
16819
16820 {
16821 .vendor = "Spansion",
16822 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16823 .bustype = BUS_SPI,
16824 .manufacture_id = SPANSION_ID,
16825 .model_id = SPANSION_S25FL216,
16826 .total_size = 2048,
16827 .page_size = 256,
16828 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16830 .tested = TEST_UNTESTED,
16831 .probe = probe_spi_rdid,
16832 .probe_timing = TIMING_ZERO,
16833 .block_erasers =
16834 {
16835 {
16836 .eraseblocks = { {4 * 1024, 512} },
16837 .block_erase = spi_block_erase_20,
16838 }, {
16839 .eraseblocks = { {64 * 1024, 32} },
16840 .block_erase = spi_block_erase_d8,
16841 }, {
16842 .eraseblocks = { { 2048 * 1024, 1} },
16843 .block_erase = spi_block_erase_60,
16844 }, {
16845 .eraseblocks = { { 2048 * 1024, 1} },
16846 .block_erase = spi_block_erase_c7,
16847 }
16848 },
16849 .printlock = spi_prettyprint_status_register_bp3_srwd,
16850 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16851 .write = spi_chip_write_256,
16852 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16853 .voltage = {2700, 3600},
16854 },
16855
16856 {
16857 .vendor = "Spansion",
16858 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16859 .bustype = BUS_SPI,
16860 .manufacture_id = SPANSION_ID,
16861 .model_id = SPANSION_S25FL128,
16862 .total_size = 16384,
16863 .page_size = 512,
16864 /* supports 4B addressing */
16865 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16866 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16867 .tested = TEST_UNTESTED,
16868 .probe = probe_spi_rdid,
16869 .probe_timing = TIMING_ZERO,
16870 .block_erasers =
16871 {
16872 {
16873 .eraseblocks = { {256 * 1024, 64} },
16874 .block_erase = spi_block_erase_d8,
16875 }, {
16876 .eraseblocks = { { 16384 * 1024, 1} },
16877 .block_erase = spi_block_erase_60,
16878 }, {
16879 .eraseblocks = { { 16384 * 1024, 1} },
16880 .block_erase = spi_block_erase_c7,
16881 }
16882 },
16883 .printlock = spi_prettyprint_status_register_bp2_srwd,
16884 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16885 .write = spi_chip_write_256, /* Multi I/O supported */
16886 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16887 .voltage = {2700, 3600},
16888 },
16889
16890 {
16891 .vendor = "Spansion",
16892 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16893 .bustype = BUS_SPI,
16894 .manufacture_id = SPANSION_ID,
16895 .model_id = SPANSION_S25FL128,
16896 .total_size = 16384,
16897 .page_size = 256,
16898 /* supports 4B addressing */
16899 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16900 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16901 .tested = TEST_OK_PREW,
16902 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16903 .probe = probe_spi_rdid,
16904 .probe_timing = TIMING_ZERO,
16905 .block_erasers =
16906 {
16907 {
16908 /* This chip supports erasing of 32 so-called "parameter sectors" with
16909 * opcode 0x20 which may be configured to be on top or bottom of the address
16910 * space. Trying to access an address outside these 4kB blocks does have no
16911 * effect on the memory contents, e.g.
16912 .eraseblocks = {
16913 {4 * 1024, 32},
16914 {64 * 1024, 254} // inaccessible
16915 },
16916 .block_erase = spi_block_erase_20,
16917 }, { */
16918 .eraseblocks = { { 64 * 1024, 256} },
16919 .block_erase = spi_block_erase_d8,
16920 }, {
16921 .eraseblocks = { { 16384 * 1024, 1} },
16922 .block_erase = spi_block_erase_60,
16923 }, {
16924 .eraseblocks = { { 16384 * 1024, 1} },
16925 .block_erase = spi_block_erase_c7,
16926 }
16927 },
16928 .printlock = spi_prettyprint_status_register_bp2_srwd,
16929 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16930 .write = spi_chip_write_256, /* Multi I/O supported */
16931 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16932 .voltage = {2700, 3600},
16933 },
16934
16935 {
16936 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016937 .name = "S25FL128L",
16938 .bustype = BUS_SPI,
16939 .manufacture_id = SPANSION_ID,
16940 .model_id = SPANSION_S25FL128L,
16941 .total_size = 16384,
16942 .page_size = 256,
16943 /* 4 x 256B Security Region (OTP) */
16944 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16945 .tested = TEST_UNTESTED,
16946 .probe = probe_spi_rdid,
16947 .probe_timing = TIMING_ZERO,
16948 .block_erasers =
16949 {
16950 {
16951 .eraseblocks = { {4 * 1024, 4096} },
16952 .block_erase = spi_block_erase_20,
16953 }, {
16954 .eraseblocks = { {32 * 1024, 512} },
16955 .block_erase = spi_block_erase_52,
16956 }, {
16957 .eraseblocks = { {64 * 1024, 256} },
16958 .block_erase = spi_block_erase_d8,
16959 }, {
16960 .eraseblocks = { {16384 * 1024, 1} },
16961 .block_erase = spi_block_erase_60,
16962 }, {
16963 .eraseblocks = { {16384 * 1024, 1} },
16964 .block_erase = spi_block_erase_c7,
16965 }
16966 },
16967 .printlock = spi_prettyprint_status_register_bp2_srwd,
16968 .unlock = spi_disable_blockprotect_bp2_srwd,
16969 .write = spi_chip_write_256,
16970 .read = spi_chip_read, /* Fast read (0x0B) supported */
16971 .voltage = {2700, 3600},
16972 .reg_bits =
16973 {
16974 /*
16975 * Note: This chip has a read-only Status Register 2 that is not
16976 * counted here. Registers are mapped as follows:
16977 * STATUS1 ... Status Register 1
16978 * STATUS2 ... Configuration Register 1
16979 * STATUS3 ... Configuration Register 2
16980 */
16981 .srp = {STATUS1, 7, RW},
16982 .srl = {STATUS2, 0, RW},
16983 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16984 .tb = {STATUS1, 5, RW},
16985 .sec = {STATUS1, 6, RW},
16986 .cmp = {STATUS2, 6, RW},
16987 .wps = {STATUS3, 2, RW},
16988 },
Nico Huberaabb3e02023-01-13 00:22:30 +010016989 .wp_write_cfg = spi_wp_write_cfg,
16990 .wp_read_cfg = spi_wp_read_cfg,
16991 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020016992 .decode_range = decode_range_spi25,
16993 },
16994
16995 {
16996 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016997 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16998 .bustype = BUS_SPI,
16999 .manufacture_id = SPANSION_ID,
17000 .model_id = SPANSION_S25FL128,
17001 .total_size = 16384,
17002 .page_size = 256,
17003 .feature_bits = FEATURE_WRSR_WREN,
17004 .tested = TEST_OK_PREW,
17005 .probe = probe_spi_rdid,
17006 .probe_timing = TIMING_ZERO,
17007 .block_erasers =
17008 {
17009 {
17010 .eraseblocks = { {64 * 1024, 256} },
17011 .block_erase = spi_block_erase_20,
17012 }, {
17013 .eraseblocks = { {64 * 1024, 256} },
17014 .block_erase = spi_block_erase_d8,
17015 }, {
17016 .eraseblocks = { { 16384 * 1024, 1} },
17017 .block_erase = spi_block_erase_60,
17018 }, {
17019 .eraseblocks = { { 16384 * 1024, 1} },
17020 .block_erase = spi_block_erase_c7,
17021 }
17022 },
17023 .printlock = spi_prettyprint_status_register_bp3_srwd,
17024 .unlock = spi_disable_blockprotect_bp3_srwd,
17025 .write = spi_chip_write_256,
17026 .read = spi_chip_read, /* Fast read (0x0B) supported */
17027 .voltage = {2700, 3600},
17028 },
17029
17030 {
17031 .vendor = "Spansion",
17032 .name = "S25FL128P......1", /* uniform 256kB sectors */
17033 .bustype = BUS_SPI,
17034 .manufacture_id = SPANSION_ID,
17035 .model_id = SPANSION_S25FL128,
17036 .total_size = 16384,
17037 .page_size = 256,
17038 .feature_bits = FEATURE_WRSR_WREN,
17039 .tested = TEST_UNTESTED,
17040 .probe = probe_spi_rdid,
17041 .probe_timing = TIMING_ZERO,
17042 .block_erasers =
17043 {
17044 {
17045 .eraseblocks = { {256 * 1024, 64} },
17046 .block_erase = spi_block_erase_d8,
17047 }, {
17048 .eraseblocks = { { 16384 * 1024, 1} },
17049 .block_erase = spi_block_erase_c7,
17050 }
17051 },
17052 .printlock = spi_prettyprint_status_register_bp2_srwd,
17053 .unlock = spi_disable_blockprotect_bp2_srwd,
17054 .write = spi_chip_write_256,
17055 .read = spi_chip_read, /* Fast read (0x0B) supported */
17056 .voltage = {2700, 3600},
17057 },
17058
17059 {
17060 .vendor = "Spansion",
17061 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17062 .bustype = BUS_SPI,
17063 .manufacture_id = SPANSION_ID,
17064 .model_id = SPANSION_S25FL128,
17065 .total_size = 16384,
17066 .page_size = 256,
17067 /* supports 4B addressing */
17068 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17070 .tested = TEST_OK_PREW,
17071 .probe = probe_spi_rdid,
17072 .probe_timing = TIMING_ZERO,
17073 .block_erasers =
17074 {
17075 {
17076 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17077 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17078 * have no effect on the memory contents, but sets a flag in the SR.
17079 .eraseblocks = {
17080 {4 * 1024, 32},
17081 {64 * 1024, 254} // inaccessible
17082 },
17083 .block_erase = spi_block_erase_20,
17084 }, { */
17085 .eraseblocks = { { 64 * 1024, 256} },
17086 .block_erase = spi_block_erase_d8,
17087 }, {
17088 .eraseblocks = { { 16384 * 1024, 1} },
17089 .block_erase = spi_block_erase_60,
17090 }, {
17091 .eraseblocks = { { 16384 * 1024, 1} },
17092 .block_erase = spi_block_erase_c7,
17093 }
17094 },
17095 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17096 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17097 .write = spi_chip_write_256, /* Multi I/O supported */
17098 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17099 .voltage = {2700, 3600},
17100 },
17101
17102 {
17103 .vendor = "Spansion",
17104 .name = "S25FL128S......1", /* uniform 256 kB sectors */
17105 .bustype = BUS_SPI,
17106 .manufacture_id = SPANSION_ID,
17107 .model_id = SPANSION_S25FL128,
17108 .total_size = 16384,
17109 .page_size = 512,
17110 /* supports 4B addressing */
17111 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17113 .tested = TEST_UNTESTED,
17114 .probe = probe_spi_rdid,
17115 .probe_timing = TIMING_ZERO,
17116 .block_erasers =
17117 {
17118 {
17119 .eraseblocks = { {256 * 1024, 64} },
17120 .block_erase = spi_block_erase_d8,
17121 }, {
17122 .eraseblocks = { { 16384 * 1024, 1} },
17123 .block_erase = spi_block_erase_60,
17124 }, {
17125 .eraseblocks = { { 16384 * 1024, 1} },
17126 .block_erase = spi_block_erase_c7,
17127 }
17128 },
17129 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17130 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17131 .write = spi_chip_write_256, /* Multi I/O supported */
17132 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17133 .voltage = {2700, 3600},
17134 },
17135
17136 {
17137 .vendor = "Spansion",
17138 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17139 .bustype = BUS_SPI,
17140 .manufacture_id = SPANSION_ID,
17141 .model_id = SPANSION_S25FL128,
17142 .total_size = 16384,
17143 .page_size = 256,
17144 /* OTP: 506B total, 16B 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 /* FIXME: 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 have no
17154 * 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 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
17162 .eraseblocks = {
17163 {8 * 1024, 16},
17164 {64 * 1024, 254} // inaccessible
17165 },
17166 .block_erase = spi_block_erase_40,
17167 }, { */
17168 .eraseblocks = { { 64 * 1024, 256} },
17169 .block_erase = spi_block_erase_d8,
17170 }, {
17171 .eraseblocks = { { 16384 * 1024, 1} },
17172 .block_erase = spi_block_erase_60,
17173 }, {
17174 .eraseblocks = { { 16384 * 1024, 1} },
17175 .block_erase = spi_block_erase_c7,
17176 }
17177 },
17178 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17179 .unlock = spi_disable_blockprotect_bp2_srwd,
17180 .write = spi_chip_write_256, /* Multi I/O supported */
17181 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17182 .voltage = {2700, 3600},
17183 },
17184
17185 {
17186 .vendor = "Spansion",
17187 .name = "S25FL129P......1", /* uniform 256 kB sectors */
17188 .bustype = BUS_SPI,
17189 .manufacture_id = SPANSION_ID,
17190 .model_id = SPANSION_S25FL128,
17191 .total_size = 16384,
17192 .page_size = 256,
17193 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17195 .tested = TEST_UNTESTED,
17196 .probe = probe_spi_rdid,
17197 .probe_timing = TIMING_ZERO,
17198 .block_erasers =
17199 {
17200 {
17201 .eraseblocks = { {256 * 1024, 64} },
17202 .block_erase = spi_block_erase_d8,
17203 }, {
17204 .eraseblocks = { { 16384 * 1024, 1} },
17205 .block_erase = spi_block_erase_60,
17206 }, {
17207 .eraseblocks = { { 16384 * 1024, 1} },
17208 .block_erase = spi_block_erase_c7,
17209 }
17210 },
17211 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17212 .unlock = spi_disable_blockprotect_bp2_srwd,
17213 .write = spi_chip_write_256, /* Multi I/O supported */
17214 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17215 .voltage = {2700, 3600},
17216 },
17217
17218 {
17219 .vendor = "Spansion",
17220 .name = "S25FL132K",
17221 .bustype = BUS_SPI,
17222 .manufacture_id = SPANSION_ID,
17223 .model_id = SPANSION_S25FL132K,
17224 .total_size = 4096,
17225 .page_size = 256,
17226 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17228 .tested = TEST_UNTESTED,
17229 .probe = probe_spi_rdid,
17230 .probe_timing = TIMING_ZERO,
17231 .block_erasers =
17232 {
17233 {
17234 .eraseblocks = { {4 * 1024, 1024} },
17235 .block_erase = spi_block_erase_20,
17236 }, {
17237 .eraseblocks = { {64 * 1024, 64} },
17238 .block_erase = spi_block_erase_d8,
17239 }, {
17240 .eraseblocks = { { 4096 * 1024, 1} },
17241 .block_erase = spi_block_erase_60,
17242 }, {
17243 .eraseblocks = { { 4096 * 1024, 1} },
17244 .block_erase = spi_block_erase_c7,
17245 }
17246 },
17247 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17248 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17249 .write = spi_chip_write_256,
17250 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17251 .voltage = {2700, 3600},
17252 },
17253
17254 {
17255 .vendor = "Spansion",
17256 .name = "S25FL164K",
17257 .bustype = BUS_SPI,
17258 .manufacture_id = SPANSION_ID,
17259 .model_id = SPANSION_S25FL164K,
17260 .total_size = 8192,
17261 .page_size = 256,
17262 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17264 .tested = TEST_OK_PREW,
17265 .probe = probe_spi_rdid,
17266 .probe_timing = TIMING_ZERO,
17267 .block_erasers =
17268 {
17269 {
17270 .eraseblocks = { {4 * 1024, 2048} },
17271 .block_erase = spi_block_erase_20,
17272 }, {
17273 .eraseblocks = { {64 * 1024, 128} },
17274 .block_erase = spi_block_erase_d8,
17275 }, {
17276 .eraseblocks = { { 8192 * 1024, 1} },
17277 .block_erase = spi_block_erase_60,
17278 }, {
17279 .eraseblocks = { { 8192 * 1024, 1} },
17280 .block_erase = spi_block_erase_c7,
17281 }
17282 },
17283 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17284 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17285 .write = spi_chip_write_256,
17286 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17287 .voltage = {2700, 3600},
17288 },
17289
17290 {
17291 .vendor = "Spansion",
17292 .name = "S25FL204K",
17293 .bustype = BUS_SPI,
17294 .manufacture_id = SPANSION_ID,
17295 .model_id = SPANSION_S25FL204,
17296 .total_size = 512,
17297 .page_size = 256,
17298 .feature_bits = FEATURE_WRSR_WREN,
17299 .tested = TEST_OK_PR,
17300 .probe = probe_spi_rdid,
17301 .probe_timing = TIMING_ZERO,
17302 .block_erasers =
17303 {
17304 {
17305 .eraseblocks = { {4 * 1024, 128} },
17306 .block_erase = spi_block_erase_20,
17307 }, {
17308 .eraseblocks = { {64 * 1024, 8} },
17309 .block_erase = spi_block_erase_d8,
17310 }, {
17311 .eraseblocks = { { 512 * 1024, 1} },
17312 .block_erase = spi_block_erase_60,
17313 }, {
17314 .eraseblocks = { { 512 * 1024, 1} },
17315 .block_erase = spi_block_erase_c7,
17316 }
17317 },
17318 .printlock = spi_prettyprint_status_register_bp3_srwd,
17319 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17320 .write = spi_chip_write_256,
17321 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17322 .voltage = {2700, 3600},
17323 },
17324
17325 {
17326 .vendor = "Spansion",
17327 .name = "S25FL208K",
17328 .bustype = BUS_SPI,
17329 .manufacture_id = SPANSION_ID,
17330 .model_id = SPANSION_S25FL208,
17331 .total_size = 1024,
17332 .page_size = 256,
17333 .feature_bits = FEATURE_WRSR_WREN,
17334 .tested = TEST_OK_PREW,
17335 .probe = probe_spi_rdid,
17336 .probe_timing = TIMING_ZERO,
17337 .block_erasers =
17338 {
17339 {
17340 .eraseblocks = { {4 * 1024, 256} },
17341 .block_erase = spi_block_erase_20,
17342 }, {
17343 .eraseblocks = { {64 * 1024, 16} },
17344 .block_erase = spi_block_erase_d8,
17345 }, {
17346 .eraseblocks = { { 1024 * 1024, 1} },
17347 .block_erase = spi_block_erase_60,
17348 }, {
17349 .eraseblocks = { { 1024 * 1024, 1} },
17350 .block_erase = spi_block_erase_c7,
17351 }
17352 },
17353 .printlock = spi_prettyprint_status_register_bp3_srwd,
17354 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17355 .write = spi_chip_write_256,
17356 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17357 .voltage = {2700, 3600},
17358 },
17359
17360 {
17361 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020017362 .name = "S25FL256L",
17363 .bustype = BUS_SPI,
17364 .manufacture_id = SPANSION_ID,
17365 .model_id = SPANSION_S25FL256L,
17366 .total_size = 32768,
17367 .page_size = 256,
17368 /* 4 x 256B Security Region (OTP) */
17369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
17370 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
17371 .tested = TEST_UNTESTED,
17372 .probe = probe_spi_rdid,
17373 .probe_timing = TIMING_ZERO,
17374 .block_erasers =
17375 {
17376 {
17377 .eraseblocks = { {4 * 1024, 8192} },
17378 .block_erase = spi_block_erase_21,
17379 }, {
17380 .eraseblocks = { {4 * 1024, 8192} },
17381 .block_erase = spi_block_erase_20,
17382 }, {
17383 .eraseblocks = { {32 * 1024, 1024} },
17384 .block_erase = spi_block_erase_53,
17385 }, {
17386 .eraseblocks = { {32 * 1024, 1024} },
17387 .block_erase = spi_block_erase_52,
17388 }, {
17389 .eraseblocks = { {64 * 1024, 512} },
17390 .block_erase = spi_block_erase_dc,
17391 }, {
17392 .eraseblocks = { {64 * 1024, 512} },
17393 .block_erase = spi_block_erase_d8,
17394 }, {
17395 .eraseblocks = { {32768 * 1024, 1} },
17396 .block_erase = spi_block_erase_60,
17397 }, {
17398 .eraseblocks = { {32768 * 1024, 1} },
17399 .block_erase = spi_block_erase_c7,
17400 }
17401 },
17402 .printlock = spi_prettyprint_status_register_bp3_srwd,
17403 .unlock = spi_disable_blockprotect_bp3_srwd,
17404 .write = spi_chip_write_256,
17405 .read = spi_chip_read, /* Fast read (0x0B) supported */
17406 .voltage = {2700, 3600},
17407 .reg_bits =
17408 {
17409 /*
17410 * Note: This chip has a read-only Status Register 2 that is not
17411 * counted here. Registers are mapped as follows:
17412 * STATUS1 ... Status Register 1
17413 * STATUS2 ... Configuration Register 1
17414 * STATUS3 ... Configuration Register 2
17415 */
17416 .srp = {STATUS1, 7, RW},
17417 .srl = {STATUS2, 0, RW},
17418 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17419 .tb = {STATUS1, 6, RW},
17420 .cmp = {STATUS2, 6, RW},
17421 .wps = {STATUS3, 2, RW},
17422 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017423 .wp_write_cfg = spi_wp_write_cfg,
17424 .wp_read_cfg = spi_wp_read_cfg,
17425 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020017426 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017427 .prepare_access = spi_prepare_4ba,
Nico Huberfffc48d2022-05-28 14:26:06 +020017428 },
17429
17430 {
17431 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017432 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17433 .bustype = BUS_SPI,
17434 .manufacture_id = SPANSION_ID,
17435 .model_id = SPANSION_S25FL256,
17436 .total_size = 32768,
17437 .page_size = 256,
17438 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020017439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17440 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017441 .tested = TEST_OK_PREW,
17442 .probe = probe_spi_rdid,
17443 .probe_timing = TIMING_ZERO,
17444 .block_erasers =
17445 {
17446 {
17447 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17448 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17449 * have no effect on the memory contents, but sets a flag in the SR.
17450 .eraseblocks = {
17451 {4 * 1024, 32},
17452 {64 * 1024, 254} // inaccessible
17453 },
17454 .block_erase = spi_block_erase_20,
17455 }, { */
17456 .eraseblocks = { { 64 * 1024, 512} },
17457 .block_erase = spi_block_erase_dc,
17458 }, {
17459 .eraseblocks = { { 64 * 1024, 512} },
17460 .block_erase = spi_block_erase_d8,
17461 }, {
17462 .eraseblocks = { { 32768 * 1024, 1} },
17463 .block_erase = spi_block_erase_60,
17464 }, {
17465 .eraseblocks = { { 32768 * 1024, 1} },
17466 .block_erase = spi_block_erase_c7,
17467 }
17468 },
17469 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17470 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17471 .write = spi_chip_write_256, /* Multi I/O supported */
17472 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17473 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017474 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017475 },
17476
17477 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017478 .vendor = "Spansion",
17479 .name = "S25FL512S",
17480 .bustype = BUS_SPI,
17481 .manufacture_id = SPANSION_ID,
17482 .model_id = SPANSION_S25FL512,
17483 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
17484 .page_size = 256,
17485 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020017486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17487 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
17488 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017489 .probe = probe_spi_rdid,
17490 .probe_timing = TIMING_ZERO,
17491 .block_erasers =
17492 {
17493 {
17494 .eraseblocks = { { 256 * 1024, 256} },
17495 .block_erase = spi_block_erase_dc,
17496 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020017497 .eraseblocks = { { 256 * 1024, 256} },
17498 .block_erase = spi_block_erase_d8,
17499 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017500 .eraseblocks = { { 65536 * 1024, 1} },
17501 .block_erase = spi_block_erase_60,
17502 }, {
17503 .eraseblocks = { { 65536 * 1024, 1} },
17504 .block_erase = spi_block_erase_c7,
17505 }
17506 },
17507 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17508 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17509 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
17510 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17511 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017512 .prepare_access = spi_prepare_4ba,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017513 },
17514
17515 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017516 .vendor = "SyncMOS/MoselVitelic",
17517 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017518 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017519 .manufacture_id = SYNCMOS_MVC_ID,
17520 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017521 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017522 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017523 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017524 .tested = TEST_UNTESTED,
17525 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017526 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017527 .block_erasers =
17528 {
17529 {
17530 .eraseblocks = { {512, 256} },
17531 .block_erase = erase_sector_jedec,
17532 }, {
17533 .eraseblocks = { {128 * 1024, 1} },
17534 .block_erase = erase_chip_block_jedec,
17535 },
17536 },
Sean Nelson35727f72010-01-28 23:55:12 +000017537 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017538 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017539 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017540 .prepare_access = prepare_memory_access,
17541 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017542 },
17543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017544 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017545 .vendor = "SyncMOS/MoselVitelic",
17546 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017547 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017548 .manufacture_id = SYNCMOS_MVC_ID,
17549 .model_id = SM_MVC_29C51001T,
17550 .total_size = 128,
17551 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017552 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017553 .tested = TEST_UNTESTED,
17554 .probe = probe_jedec,
17555 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17556 .block_erasers =
17557 {
17558 {
17559 .eraseblocks = { {512, 256} },
17560 .block_erase = erase_sector_jedec,
17561 }, {
17562 .eraseblocks = { {128 * 1024, 1} },
17563 .block_erase = erase_chip_block_jedec,
17564 },
17565 },
17566 .write = write_jedec_1,
17567 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017568 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017569 .prepare_access = prepare_memory_access,
17570 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017571 },
17572
17573 {
17574 .vendor = "SyncMOS/MoselVitelic",
17575 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017576 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017577 .manufacture_id = SYNCMOS_MVC_ID,
17578 .model_id = SM_MVC_29C51002B,
17579 .total_size = 256,
17580 .page_size = 512,
17581 .feature_bits = FEATURE_EITHER_RESET,
17582 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017583 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017584 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017585 .block_erasers =
17586 {
17587 {
17588 .eraseblocks = { {512, 512} },
17589 .block_erase = erase_sector_jedec,
17590 }, {
17591 .eraseblocks = { {256 * 1024, 1} },
17592 .block_erase = erase_chip_block_jedec,
17593 },
17594 },
Sean Nelson35727f72010-01-28 23:55:12 +000017595 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017596 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017597 .prepare_access = prepare_memory_access,
17598 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017599 },
17600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017601 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017602 .vendor = "SyncMOS/MoselVitelic",
17603 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017604 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017605 .manufacture_id = SYNCMOS_MVC_ID,
17606 .model_id = SM_MVC_29C51002T,
17607 .total_size = 256,
17608 .page_size = 512,
17609 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017610 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017611 .probe = probe_jedec,
17612 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17613 .block_erasers =
17614 {
17615 {
17616 .eraseblocks = { {512, 512} },
17617 .block_erase = erase_sector_jedec,
17618 }, {
17619 .eraseblocks = { {256 * 1024, 1} },
17620 .block_erase = erase_chip_block_jedec,
17621 },
17622 },
17623 .write = write_jedec_1,
17624 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017625 .prepare_access = prepare_memory_access,
17626 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017627 },
17628
17629 {
17630 .vendor = "SyncMOS/MoselVitelic",
17631 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017632 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017633 .manufacture_id = SYNCMOS_MVC_ID,
17634 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017635 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017636 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017637 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017638 .tested = TEST_UNTESTED,
17639 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017640 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017641 .block_erasers =
17642 {
17643 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017644 .eraseblocks = { {1024, 512} },
17645 .block_erase = erase_sector_jedec,
17646 }, {
17647 .eraseblocks = { {512 * 1024, 1} },
17648 .block_erase = erase_chip_block_jedec,
17649 },
17650 },
17651 .write = write_jedec_1,
17652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017653 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017654 .prepare_access = prepare_memory_access,
17655 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017656 },
17657
17658 {
17659 .vendor = "SyncMOS/MoselVitelic",
17660 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017661 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017662 .manufacture_id = SYNCMOS_MVC_ID,
17663 .model_id = SM_MVC_29C51004T,
17664 .total_size = 512,
17665 .page_size = 1024,
17666 .feature_bits = FEATURE_EITHER_RESET,
17667 .tested = TEST_UNTESTED,
17668 .probe = probe_jedec,
17669 .probe_timing = TIMING_ZERO,
17670 .block_erasers =
17671 {
17672 {
17673 .eraseblocks = { {1024, 512} },
17674 .block_erase = erase_sector_jedec,
17675 }, {
17676 .eraseblocks = { {512 * 1024, 1} },
17677 .block_erase = erase_chip_block_jedec,
17678 },
17679 },
17680 .write = write_jedec_1,
17681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017682 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017683 .prepare_access = prepare_memory_access,
17684 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017685 },
17686
17687 {
17688 .vendor = "SyncMOS/MoselVitelic",
17689 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017690 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017691 .manufacture_id = SYNCMOS_MVC_ID,
17692 .model_id = SM_MVC_29C31004B,
17693 .total_size = 512,
17694 .page_size = 1024,
17695 .feature_bits = FEATURE_EITHER_RESET,
17696 .tested = TEST_UNTESTED,
17697 .probe = probe_jedec,
17698 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17699 .block_erasers =
17700 {
17701 {
17702 .eraseblocks = { {1024, 512} },
17703 .block_erase = erase_sector_jedec,
17704 }, {
17705 .eraseblocks = { {512 * 1024, 1} },
17706 .block_erase = erase_chip_block_jedec,
17707 },
17708 },
17709 .write = write_jedec_1,
17710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017711 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017712 .prepare_access = prepare_memory_access,
17713 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017714 },
17715
17716 {
17717 .vendor = "SyncMOS/MoselVitelic",
17718 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017719 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017720 .manufacture_id = SYNCMOS_MVC_ID,
17721 .model_id = SM_MVC_29C31004T,
17722 .total_size = 512,
17723 .page_size = 1024,
17724 .feature_bits = FEATURE_EITHER_RESET,
17725 .tested = TEST_UNTESTED,
17726 .probe = probe_jedec,
17727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17728 .block_erasers =
17729 {
17730 {
17731 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017732 .block_erase = erase_sector_jedec,
17733 }, {
17734 .eraseblocks = { {512 * 1024, 1} },
17735 .block_erase = erase_chip_block_jedec,
17736 },
17737 },
Sean Nelson35727f72010-01-28 23:55:12 +000017738 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017740 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017741 .prepare_access = prepare_memory_access,
17742 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017743 },
17744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017745 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017746 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017747 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017748 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017749 .manufacture_id = TI_OLD_ID,
17750 .model_id = TI_TMS29F002RB,
17751 .total_size = 256,
17752 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017753 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017754 .tested = TEST_UNTESTED,
17755 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017756 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017757 .block_erasers =
17758 {
17759 {
17760 .eraseblocks = {
17761 {16 * 1024, 1},
17762 {8 * 1024, 2},
17763 {32 * 1024, 1},
17764 {64 * 1024, 3},
17765 },
17766 .block_erase = erase_sector_jedec,
17767 }, {
17768 .eraseblocks = { {256 * 1024, 1} },
17769 .block_erase = erase_chip_block_jedec,
17770 },
17771 },
Sean Nelson35727f72010-01-28 23:55:12 +000017772 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017774 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017775 .prepare_access = prepare_memory_access,
17776 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017777 },
17778
17779 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017780 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017781 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017782 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017783 .manufacture_id = TI_OLD_ID,
17784 .model_id = TI_TMS29F002RT,
17785 .total_size = 256,
17786 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017788 .tested = TEST_UNTESTED,
17789 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017790 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017791 .block_erasers =
17792 {
17793 {
17794 .eraseblocks = {
17795 {64 * 1024, 3},
17796 {32 * 1024, 1},
17797 {8 * 1024, 2},
17798 {16 * 1024, 1},
17799 },
17800 .block_erase = erase_sector_jedec,
17801 }, {
17802 .eraseblocks = { {256 * 1024, 1} },
17803 .block_erase = erase_chip_block_jedec,
17804 },
17805 },
Sean Nelson35727f72010-01-28 23:55:12 +000017806 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017808 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017809 .prepare_access = prepare_memory_access,
17810 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017811 },
17812
17813 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017814 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017815 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017816 .bustype = BUS_SPI,
17817 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017818 .model_id = WINBOND_NEX_W25P16,
17819 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017820 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017821 .feature_bits = FEATURE_WRSR_WREN,
17822 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017823 .probe = probe_spi_rdid,
17824 .probe_timing = TIMING_ZERO,
17825 .block_erasers =
17826 {
17827 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017828 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017829 .block_erase = spi_block_erase_d8,
17830 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017831 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017832 .block_erase = spi_block_erase_c7,
17833 }
17834 },
17835 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17836 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017837 .write = spi_chip_write_256,
17838 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017839 .voltage = {2700, 3600},
17840 },
17841
17842 {
17843 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017844 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017845 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017846 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017847 .model_id = WINBOND_NEX_W25P32,
17848 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017849 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017850 .feature_bits = FEATURE_WRSR_WREN,
17851 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017852 .probe = probe_spi_rdid,
17853 .probe_timing = TIMING_ZERO,
17854 .block_erasers =
17855 {
17856 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017857 .eraseblocks = { {64 * 1024, 64} },
17858 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017859 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017860 .eraseblocks = { {4096 * 1024, 1} },
17861 .block_erase = spi_block_erase_c7,
17862 }
17863 },
17864 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17865 .unlock = spi_disable_blockprotect,
17866 .write = spi_chip_write_256,
17867 .read = spi_chip_read, /* Fast read (0x0B) supported */
17868 .voltage = {2700, 3600},
17869 },
17870
17871 {
17872 .vendor = "Winbond",
17873 .name = "W25P80",
17874 .bustype = BUS_SPI,
17875 .manufacture_id = WINBOND_NEX_ID,
17876 .model_id = WINBOND_NEX_W25P80,
17877 .total_size = 1024,
17878 .page_size = 256,
17879 .feature_bits = FEATURE_WRSR_WREN,
17880 .tested = TEST_UNTESTED,
17881 .probe = probe_spi_rdid,
17882 .probe_timing = TIMING_ZERO,
17883 .block_erasers =
17884 {
17885 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017886 .eraseblocks = { {64 * 1024, 16} },
17887 .block_erase = spi_block_erase_d8,
17888 }, {
17889 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017890 .block_erase = spi_block_erase_c7,
17891 }
17892 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017893 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017894 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017895 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017896 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017897 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017898 },
17899
17900 {
17901 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017902 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017903 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017904 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017905 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017906 .total_size = 16384,
17907 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017908 /* supports SFDP */
17909 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017910 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17911 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017912 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017913 .probe = probe_spi_rdid,
17914 .probe_timing = TIMING_ZERO,
17915 .block_erasers =
17916 {
17917 {
17918 .eraseblocks = { {4 * 1024, 4096} },
17919 .block_erase = spi_block_erase_20,
17920 }, {
17921 .eraseblocks = { {32 * 1024, 512} },
17922 .block_erase = spi_block_erase_52,
17923 }, {
17924 .eraseblocks = { {64 * 1024, 256} },
17925 .block_erase = spi_block_erase_d8,
17926 }, {
17927 .eraseblocks = { {16 * 1024 * 1024, 1} },
17928 .block_erase = spi_block_erase_60,
17929 }, {
17930 .eraseblocks = { {16 * 1024 * 1024, 1} },
17931 .block_erase = spi_block_erase_c7,
17932 }
17933 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017934 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017935 .unlock = spi_disable_blockprotect,
17936 .write = spi_chip_write_256,
17937 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017938 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017939 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17940 .reg_bits =
17941 {
17942 .srp = {STATUS1, 7, RW},
17943 .srl = {STATUS2, 0, RW},
17944 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17945 .tb = {STATUS1, 5, RW},
17946 .sec = {STATUS1, 6, RW},
17947 .cmp = {STATUS2, 6, RW},
17948 .wps = {STATUS3, 2, RW},
17949 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017950 .wp_write_cfg = spi_wp_write_cfg,
17951 .wp_read_cfg = spi_wp_read_cfg,
17952 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017953 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017954 },
17955
17956 {
17957 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017958 .name = "W25Q128.V..M",
17959 .bustype = BUS_SPI,
17960 .manufacture_id = WINBOND_NEX_ID,
17961 .model_id = WINBOND_NEX_W25Q128_V_M,
17962 .total_size = 16384,
17963 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010017964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
17965 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017966 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017967 .probe = probe_spi_rdid,
17968 .probe_timing = TIMING_ZERO,
17969 .block_erasers =
17970 {
17971 {
17972 .eraseblocks = { {4 * 1024, 4096} },
17973 .block_erase = spi_block_erase_20,
17974 }, {
17975 .eraseblocks = { {32 * 1024, 512} },
17976 .block_erase = spi_block_erase_52,
17977 }, {
17978 .eraseblocks = { {64 * 1024, 256} },
17979 .block_erase = spi_block_erase_d8,
17980 }, {
17981 .eraseblocks = { {16 * 1024 * 1024, 1} },
17982 .block_erase = spi_block_erase_60,
17983 }, {
17984 .eraseblocks = { {16 * 1024 * 1024, 1} },
17985 .block_erase = spi_block_erase_c7,
17986 }
17987 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017988 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017989 .unlock = spi_disable_blockprotect,
17990 .write = spi_chip_write_256,
17991 .read = spi_chip_read,
17992 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017993 .reg_bits =
17994 {
17995 .srp = {STATUS1, 7, RW},
17996 .srl = {STATUS2, 0, RW},
17997 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17998 .tb = {STATUS1, 5, RW},
17999 .sec = {STATUS1, 6, RW},
18000 .cmp = {STATUS2, 6, RW},
18001 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018002 .wp_write_cfg = spi_wp_write_cfg,
18003 .wp_read_cfg = spi_wp_read_cfg,
18004 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018005 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020018006 },
18007
18008 {
18009 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018010 .name = "W25Q128.W",
18011 .bustype = BUS_SPI,
18012 .manufacture_id = WINBOND_NEX_ID,
18013 .model_id = WINBOND_NEX_W25Q128_W,
18014 .total_size = 16384,
18015 .page_size = 256,
18016 /* supports SFDP */
18017 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018018 /* QPI: only FW & JW..M versions */
18019 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018020 .tested = TEST_OK_PREW,
18021 .probe = probe_spi_rdid,
18022 .probe_timing = TIMING_ZERO,
18023 .block_erasers =
18024 {
18025 {
18026 .eraseblocks = { {4 * 1024, 4096} },
18027 .block_erase = spi_block_erase_20,
18028 }, {
18029 .eraseblocks = { {32 * 1024, 512} },
18030 .block_erase = spi_block_erase_52,
18031 }, {
18032 .eraseblocks = { {64 * 1024, 256} },
18033 .block_erase = spi_block_erase_d8,
18034 }, {
18035 .eraseblocks = { {16 * 1024 * 1024, 1} },
18036 .block_erase = spi_block_erase_60,
18037 }, {
18038 .eraseblocks = { {16 * 1024 * 1024, 1} },
18039 .block_erase = spi_block_erase_c7,
18040 }
18041 },
18042 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18043 .unlock = spi_disable_blockprotect,
18044 .write = spi_chip_write_256,
18045 .read = spi_chip_read,
18046 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018047 .reg_bits =
18048 {
18049 .srp = {STATUS1, 7, RW},
18050 .srl = {STATUS2, 0, RW},
18051 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18052 .tb = {STATUS1, 5, RW},
18053 .sec = {STATUS1, 6, RW},
18054 .cmp = {STATUS2, 6, RW},
18055 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018056 .wp_write_cfg = spi_wp_write_cfg,
18057 .wp_read_cfg = spi_wp_read_cfg,
18058 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018059 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018060 },
18061
18062 {
18063 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080018064 .name = "W25Q128.JW.DTR",
18065 .bustype = BUS_SPI,
18066 .manufacture_id = WINBOND_NEX_ID,
18067 .model_id = WINBOND_NEX_W25Q128_DTR,
18068 .total_size = 16384,
18069 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010018070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
18071 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Peichao Wang1a119492019-11-11 15:26:41 +080018072 .tested = TEST_OK_PREW,
18073 .probe = probe_spi_rdid,
18074 .probe_timing = TIMING_ZERO,
18075 .block_erasers =
18076 {
18077 {
18078 .eraseblocks = { {4 * 1024, 4096} },
18079 .block_erase = spi_block_erase_20,
18080 }, {
18081 .eraseblocks = { {32 * 1024, 512} },
18082 .block_erase = spi_block_erase_52,
18083 }, {
18084 .eraseblocks = { {64 * 1024, 256} },
18085 .block_erase = spi_block_erase_d8,
18086 }, {
18087 .eraseblocks = { {16 * 1024 * 1024, 1} },
18088 .block_erase = spi_block_erase_60,
18089 }, {
18090 .eraseblocks = { {16 * 1024 * 1024, 1} },
18091 .block_erase = spi_block_erase_c7,
18092 }
18093 },
18094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18095 .unlock = spi_disable_blockprotect,
18096 .write = spi_chip_write_256,
18097 .read = spi_chip_read,
18098 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018099 .reg_bits =
18100 {
18101 .srp = {STATUS1, 7, RW},
18102 .srl = {STATUS2, 0, RW},
18103 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18104 .tb = {STATUS1, 5, RW},
18105 .sec = {STATUS1, 6, RW},
18106 .cmp = {STATUS2, 6, RW},
18107 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018108 .wp_write_cfg = spi_wp_write_cfg,
18109 .wp_read_cfg = spi_wp_read_cfg,
18110 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018111 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080018112 },
18113
18114 {
18115 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018116 .name = "W25Q16.V",
18117 .bustype = BUS_SPI,
18118 .manufacture_id = WINBOND_NEX_ID,
18119 .model_id = WINBOND_NEX_W25Q16_V,
18120 .total_size = 2048,
18121 .page_size = 256,
18122 /* supports SFDP */
18123 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18125 .tested = TEST_OK_PREW,
18126 .probe = probe_spi_rdid,
18127 .probe_timing = TIMING_ZERO,
18128 .block_erasers =
18129 {
18130 {
18131 .eraseblocks = { {4 * 1024, 512} },
18132 .block_erase = spi_block_erase_20,
18133 }, {
18134 .eraseblocks = { {32 * 1024, 64} },
18135 .block_erase = spi_block_erase_52,
18136 }, {
18137 .eraseblocks = { {64 * 1024, 32} },
18138 .block_erase = spi_block_erase_d8,
18139 }, {
18140 .eraseblocks = { {2 * 1024 * 1024, 1} },
18141 .block_erase = spi_block_erase_60,
18142 }, {
18143 .eraseblocks = { {2 * 1024 * 1024, 1} },
18144 .block_erase = spi_block_erase_c7,
18145 }
18146 },
18147 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18148 .unlock = spi_disable_blockprotect,
18149 .write = spi_chip_write_256,
18150 .read = spi_chip_read,
18151 .voltage = {2700, 3600},
18152 },
18153
18154 {
18155 .vendor = "Winbond",
18156 .name = "W25Q16.W",
18157 .bustype = BUS_SPI,
18158 .manufacture_id = WINBOND_NEX_ID,
18159 .model_id = WINBOND_NEX_W25Q16_W,
18160 .total_size = 2048,
18161 .page_size = 256,
18162 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018163 /* QPI: only FW & JW..M versions .qpi_read_params = { 2, 4, 6, 8 } */
18164 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018165 .tested = TEST_UNTESTED,
18166 .probe = probe_spi_rdid,
18167 .probe_timing = TIMING_ZERO,
18168 .block_erasers =
18169 {
18170 {
18171 .eraseblocks = { {4 * 1024, 512} },
18172 .block_erase = spi_block_erase_20,
18173 }, {
18174 .eraseblocks = { {32 * 1024, 64} },
18175 .block_erase = spi_block_erase_52,
18176 }, {
18177 .eraseblocks = { {64 * 1024, 32} },
18178 .block_erase = spi_block_erase_d8,
18179 }, {
18180 .eraseblocks = { {2 * 1024 * 1024, 1} },
18181 .block_erase = spi_block_erase_60,
18182 }, {
18183 .eraseblocks = { {2 * 1024 * 1024, 1} },
18184 .block_erase = spi_block_erase_c7,
18185 }
18186 },
18187 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18188 .unlock = spi_disable_blockprotect,
18189 .write = spi_chip_write_256,
18190 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018191 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100018192 },
18193
18194 {
18195 .vendor = "Winbond",
18196 .name = "W25Q20.W",
18197 .bustype = BUS_SPI,
18198 .manufacture_id = WINBOND_NEX_ID,
18199 .model_id = WINBOND_NEX_W25Q20_W,
18200 .total_size = 256,
18201 .page_size = 256,
18202 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18203 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18204 .tested = TEST_UNTESTED,
18205 .probe = probe_spi_rdid,
18206 .probe_timing = TIMING_ZERO,
18207 .block_erasers =
18208 {
18209 {
18210 .eraseblocks = { {4 * 1024, 64} },
18211 .block_erase = spi_block_erase_20,
18212 }, {
18213 .eraseblocks = { {32 * 1024, 8} },
18214 .block_erase = spi_block_erase_52,
18215 }, {
18216 .eraseblocks = { {64 * 1024, 4} },
18217 .block_erase = spi_block_erase_d8,
18218 }, {
18219 .eraseblocks = { {256 * 1024, 1} },
18220 .block_erase = spi_block_erase_60,
18221 }, {
18222 .eraseblocks = { {256 * 1024, 1} },
18223 .block_erase = spi_block_erase_c7,
18224 }
18225 },
18226 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18227 .unlock = spi_disable_blockprotect,
18228 .write = spi_chip_write_256,
18229 .read = spi_chip_read,
18230 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18231 },
18232
18233 {
18234 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018235 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020018236 .bustype = BUS_SPI,
18237 .manufacture_id = WINBOND_NEX_ID,
18238 .model_id = WINBOND_NEX_W25Q256_V,
18239 .total_size = 32768,
18240 .page_size = 256,
18241 /* supports SFDP */
18242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020018244 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018245 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020018246 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018247 .probe = probe_spi_rdid,
18248 .probe_timing = TIMING_ZERO,
18249 .block_erasers =
18250 {
18251 {
18252 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020018253 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018254 }, {
18255 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020018256 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018257 }, {
18258 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020018259 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018260 }, {
18261 .eraseblocks = { {32 * 1024 * 1024, 1} },
18262 .block_erase = spi_block_erase_60,
18263 }, {
18264 .eraseblocks = { {32 * 1024 * 1024, 1} },
18265 .block_erase = spi_block_erase_c7,
18266 }
18267 },
18268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18269 .unlock = spi_disable_blockprotect,
18270 .write = spi_chip_write_256,
18271 .read = spi_chip_read,
18272 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018273 .reg_bits =
18274 {
18275 .srp = {STATUS1, 7, RW},
18276 .srl = {STATUS2, 0, RW},
18277 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18278 .tb = {STATUS1, 6, RW},
18279 .cmp = {STATUS2, 6, RW},
18280 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018281 .wp_write_cfg = spi_wp_write_cfg,
18282 .wp_read_cfg = spi_wp_read_cfg,
18283 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018284 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018285 .prepare_access = spi_prepare_4ba,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018286 },
18287
18288 {
18289 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018290 .name = "W25Q256JV_Q",
18291 .bustype = BUS_SPI,
18292 .manufacture_id = WINBOND_NEX_ID,
18293 .model_id = WINBOND_NEX_W25Q256_V,
18294 .total_size = 32768,
18295 .page_size = 256,
18296 /* supports SFDP */
18297 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18298 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
Nico Huberddfbbe82023-12-21 16:31:27 +010018299 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020018300 .probe = probe_spi_rdid,
18301 .probe_timing = TIMING_ZERO,
18302 .block_erasers =
18303 {
18304 {
18305 .eraseblocks = { {4 * 1024, 8192} },
18306 .block_erase = spi_block_erase_21,
18307 }, {
18308 .eraseblocks = { {4 * 1024, 8192} },
18309 .block_erase = spi_block_erase_20,
18310 }, {
18311 .eraseblocks = { {32 * 1024, 1024} },
18312 .block_erase = spi_block_erase_52,
18313 }, {
18314 .eraseblocks = { {64 * 1024, 512} },
18315 .block_erase = spi_block_erase_dc,
18316 }, {
18317 .eraseblocks = { {64 * 1024, 512} },
18318 .block_erase = spi_block_erase_d8,
18319 }, {
18320 .eraseblocks = { {32 * 1024 * 1024, 1} },
18321 .block_erase = spi_block_erase_60,
18322 }, {
18323 .eraseblocks = { {32 * 1024 * 1024, 1} },
18324 .block_erase = spi_block_erase_c7,
18325 }
18326 },
18327 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18328 .unlock = spi_disable_blockprotect,
18329 .write = spi_chip_write_256,
18330 .read = spi_chip_read,
18331 .voltage = {2700, 3600},
18332 .reg_bits =
18333 {
18334 .srp = {STATUS1, 7, RW},
18335 .srl = {STATUS2, 0, RW},
18336 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18337 .tb = {STATUS1, 6, RW},
18338 .cmp = {STATUS2, 6, RW},
18339 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018340 .wp_write_cfg = spi_wp_write_cfg,
18341 .wp_read_cfg = spi_wp_read_cfg,
18342 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huber5215eab2022-05-23 15:13:07 +020018343 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018344 .prepare_access = spi_prepare_4ba,
Nico Huber5215eab2022-05-23 15:13:07 +020018345 },
18346
18347 {
18348 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000018349 .name = "W25Q256JV_M",
18350 .bustype = BUS_SPI,
18351 .manufacture_id = WINBOND_NEX_ID,
18352 .model_id = WINBOND_NEX_W25Q256JV_M,
18353 .total_size = 32768,
18354 .page_size = 256,
18355 /* supports SFDP */
18356 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018357 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000018358 .tested = TEST_OK_PREW,
18359 .probe = probe_spi_rdid,
18360 .probe_timing = TIMING_ZERO,
18361 .block_erasers =
18362 {
18363 {
18364 .eraseblocks = { {4 * 1024, 8192} },
18365 .block_erase = spi_block_erase_21,
18366 }, {
18367 .eraseblocks = { {4 * 1024, 8192} },
18368 .block_erase = spi_block_erase_20,
18369 }, {
18370 .eraseblocks = { {32 * 1024, 1024} },
18371 .block_erase = spi_block_erase_52,
18372 }, {
18373 .eraseblocks = { {64 * 1024, 512} },
18374 .block_erase = spi_block_erase_dc,
18375 }, {
18376 .eraseblocks = { {64 * 1024, 512} },
18377 .block_erase = spi_block_erase_d8,
18378 }, {
18379 .eraseblocks = { {32 * 1024 * 1024, 1} },
18380 .block_erase = spi_block_erase_60,
18381 }, {
18382 .eraseblocks = { {32 * 1024 * 1024, 1} },
18383 .block_erase = spi_block_erase_c7,
18384 }
18385 },
18386 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18387 .unlock = spi_disable_blockprotect,
18388 .write = spi_chip_write_256,
18389 .read = spi_chip_read,
18390 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018391 .reg_bits =
18392 {
18393 .srp = {STATUS1, 7, RW},
18394 .srl = {STATUS2, 0, RW},
18395 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18396 .tb = {STATUS1, 6, RW},
18397 .cmp = {STATUS2, 6, RW},
18398 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018399 .wp_write_cfg = spi_wp_write_cfg,
18400 .wp_read_cfg = spi_wp_read_cfg,
18401 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018402 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018403 .prepare_access = spi_prepare_4ba,
David Hendricks49876792018-10-27 20:19:42 +000018404 },
18405
18406 {
18407 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018408 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020018409 .bustype = BUS_SPI,
18410 .manufacture_id = WINBOND_NEX_ID,
18411 .model_id = WINBOND_NEX_W25Q256_W,
18412 .total_size = 32768,
18413 .page_size = 256,
18414 /* supports SFDP */
18415 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018416 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020018417 .tested = TEST_OK_PREW,
18418 .probe = probe_spi_rdid,
18419 .probe_timing = TIMING_ZERO,
18420 .block_erasers =
18421 {
18422 {
18423 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018424 .block_erase = spi_block_erase_21,
18425 }, {
18426 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020018427 .block_erase = spi_block_erase_20,
18428 }, {
18429 .eraseblocks = { {32 * 1024, 1024} },
18430 .block_erase = spi_block_erase_52,
18431 }, {
18432 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018433 .block_erase = spi_block_erase_dc,
18434 }, {
18435 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020018436 .block_erase = spi_block_erase_d8,
18437 }, {
18438 .eraseblocks = { {32 * 1024 * 1024, 1} },
18439 .block_erase = spi_block_erase_60,
18440 }, {
18441 .eraseblocks = { {32 * 1024 * 1024, 1} },
18442 .block_erase = spi_block_erase_c7,
18443 }
18444 },
18445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18446 .unlock = spi_disable_blockprotect,
18447 .write = spi_chip_write_256,
18448 .read = spi_chip_read,
18449 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010018450 .prepare_access = spi_prepare_4ba,
el-coderon01209852020-04-29 12:12:53 +020018451 },
18452
18453 {
18454 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070018455 .name = "W25Q256JW_DTR",
18456 .bustype = BUS_SPI,
18457 .manufacture_id = WINBOND_NEX_ID,
18458 .model_id = WINBOND_NEX_W25Q256_DTR,
18459 .total_size = 32768,
18460 .page_size = 256,
18461 /* supports SFDP */
18462 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Kapil Porwal111c3802022-12-09 19:41:27 +053018463 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18464 | FEATURE_WRSR3,
18465 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070018466 .probe = probe_spi_rdid,
18467 .probe_timing = TIMING_ZERO,
18468 .block_erasers =
18469 {
18470 {
18471 .eraseblocks = { {4 * 1024, 8192} },
18472 .block_erase = spi_block_erase_21,
18473 }, {
18474 .eraseblocks = { {4 * 1024, 8192} },
18475 .block_erase = spi_block_erase_20,
18476 }, {
18477 .eraseblocks = { {32 * 1024, 1024} },
18478 .block_erase = spi_block_erase_52,
18479 }, {
18480 .eraseblocks = { {64 * 1024, 512} },
18481 .block_erase = spi_block_erase_dc,
18482 }, {
18483 .eraseblocks = { {64 * 1024, 512} },
18484 .block_erase = spi_block_erase_d8,
18485 }, {
18486 .eraseblocks = { {32 * 1024 * 1024, 1} },
18487 .block_erase = spi_block_erase_60,
18488 }, {
18489 .eraseblocks = { {32 * 1024 * 1024, 1} },
18490 .block_erase = spi_block_erase_c7,
18491 }
18492 },
18493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18494 .unlock = spi_disable_blockprotect,
18495 .write = spi_chip_write_256,
18496 .read = spi_chip_read,
18497 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053018498 .reg_bits =
18499 {
18500 .srp = {STATUS1, 7, RW},
18501 .srl = {STATUS2, 0, RW},
18502 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18503 .tb = {STATUS1, 6, RW},
18504 .cmp = {STATUS2, 6, RW},
18505 .wps = {STATUS3, 2, RW},
18506 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018507 .wp_write_cfg = spi_wp_write_cfg,
18508 .wp_read_cfg = spi_wp_read_cfg,
18509 .wp_get_ranges = spi_wp_get_available_ranges,
Kapil Porwal111c3802022-12-09 19:41:27 +053018510 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018511 .prepare_access = spi_prepare_4ba,
David Hendricks31532602020-08-16 17:14:56 -070018512 },
18513
18514 {
18515 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018516 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018517 .bustype = BUS_SPI,
18518 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018519 .model_id = WINBOND_NEX_W25Q32_V,
18520 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018521 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018522 /* supports SFDP */
18523 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018525 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018526 .probe = probe_spi_rdid,
18527 .probe_timing = TIMING_ZERO,
18528 .block_erasers =
18529 {
18530 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018531 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018532 .block_erase = spi_block_erase_20,
18533 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018534 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018535 .block_erase = spi_block_erase_52,
18536 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018537 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018538 .block_erase = spi_block_erase_d8,
18539 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018540 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018541 .block_erase = spi_block_erase_60,
18542 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018543 .eraseblocks = { {4 * 1024 * 1024, 1} },
18544 .block_erase = spi_block_erase_c7,
18545 }
18546 },
18547 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18548 .unlock = spi_disable_blockprotect,
18549 .write = spi_chip_write_256,
18550 .read = spi_chip_read,
18551 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018552 .reg_bits =
18553 {
18554 .srp = {STATUS1, 7, RW},
18555 .srl = {STATUS2, 0, RW},
18556 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18557 .tb = {STATUS1, 5, RW},
18558 .sec = {STATUS1, 6, RW},
18559 .cmp = {STATUS2, 6, RW},
18560 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018561 .wp_write_cfg = spi_wp_write_cfg,
18562 .wp_read_cfg = spi_wp_read_cfg,
18563 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018564 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018565 },
18566
18567 {
18568 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018569 .name = "W25Q32FV",
18570 .bustype = BUS_SPI,
18571 .manufacture_id = WINBOND_NEX_ID,
18572 .model_id = WINBOND_NEX_W25Q32_V,
18573 .total_size = 4096,
18574 .page_size = 256,
18575 /* supports SFDP */
18576 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018578 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018579 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018580 .tested = TEST_OK_PREW,
18581 .probe = probe_spi_rdid,
18582 .probe_timing = TIMING_ZERO,
18583 .block_erasers =
18584 {
18585 {
18586 .eraseblocks = { {4 * 1024, 1024} },
18587 .block_erase = spi_block_erase_20,
18588 }, {
18589 .eraseblocks = { {32 * 1024, 128} },
18590 .block_erase = spi_block_erase_52,
18591 }, {
18592 .eraseblocks = { {64 * 1024, 64} },
18593 .block_erase = spi_block_erase_d8,
18594 }, {
18595 .eraseblocks = { {4 * 1024 * 1024, 1} },
18596 .block_erase = spi_block_erase_60,
18597 }, {
18598 .eraseblocks = { {4 * 1024 * 1024, 1} },
18599 .block_erase = spi_block_erase_c7,
18600 }
18601 },
18602 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18603 .unlock = spi_disable_blockprotect,
18604 .write = spi_chip_write_256,
18605 .read = spi_chip_read,
18606 .voltage = {2700, 3600},
18607 .reg_bits =
18608 {
18609 .srp = {STATUS1, 7, RW},
18610 .srl = {STATUS2, 0, RW},
18611 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18612 .tb = {STATUS1, 5, RW},
18613 .sec = {STATUS1, 6, RW},
18614 .cmp = {STATUS2, 6, RW},
18615 .wps = {STATUS3, 2, RW},
18616 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018617 .wp_write_cfg = spi_wp_write_cfg,
18618 .wp_read_cfg = spi_wp_read_cfg,
18619 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018620 .decode_range = decode_range_spi25,
18621 },
18622
18623 {
18624 .vendor = "Winbond",
18625 .name = "W25Q32JV",
18626 .bustype = BUS_SPI,
18627 .manufacture_id = WINBOND_NEX_ID,
18628 .model_id = WINBOND_NEX_W25Q32_V,
18629 .total_size = 4096,
18630 .page_size = 256,
18631 /* supports SFDP */
18632 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18634 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18635 .tested = TEST_OK_PREW,
18636 .probe = probe_spi_rdid,
18637 .probe_timing = TIMING_ZERO,
18638 .block_erasers =
18639 {
18640 {
18641 .eraseblocks = { {4 * 1024, 1024} },
18642 .block_erase = spi_block_erase_20,
18643 }, {
18644 .eraseblocks = { {32 * 1024, 128} },
18645 .block_erase = spi_block_erase_52,
18646 }, {
18647 .eraseblocks = { {64 * 1024, 64} },
18648 .block_erase = spi_block_erase_d8,
18649 }, {
18650 .eraseblocks = { {4 * 1024 * 1024, 1} },
18651 .block_erase = spi_block_erase_60,
18652 }, {
18653 .eraseblocks = { {4 * 1024 * 1024, 1} },
18654 .block_erase = spi_block_erase_c7,
18655 }
18656 },
18657 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18658 .unlock = spi_disable_blockprotect,
18659 .write = spi_chip_write_256,
18660 .read = spi_chip_read,
18661 .voltage = {2700, 3600},
18662 .reg_bits =
18663 {
18664 .srp = {STATUS1, 7, RW},
18665 .srl = {STATUS2, 0, RW},
18666 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18667 .tb = {STATUS1, 5, RW},
18668 .sec = {STATUS1, 6, RW},
18669 .cmp = {STATUS2, 6, RW},
18670 .wps = {STATUS3, 2, RW},
18671 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018672 .wp_write_cfg = spi_wp_write_cfg,
18673 .wp_read_cfg = spi_wp_read_cfg,
18674 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018675 .decode_range = decode_range_spi25,
18676 },
18677
18678 {
18679 .vendor = "Winbond",
Angel Pons0d4354e2024-05-26 16:33:51 +020018680 .name = "W25Q32JV-.M",
18681 .bustype = BUS_SPI,
18682 .manufacture_id = WINBOND_NEX_ID,
18683 .model_id = WINBOND_NEX_W25Q32JV,
18684 .total_size = 4096,
18685 .page_size = 256,
18686 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010018687 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Angel Pons0d4354e2024-05-26 16:33:51 +020018688 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018689 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Angel Pons0d4354e2024-05-26 16:33:51 +020018690 .tested = TEST_OK_PREW,
18691 .probe = probe_spi_rdid,
18692 .probe_timing = TIMING_ZERO,
18693 .block_erasers =
18694 {
18695 {
18696 .eraseblocks = { {4 * 1024, 1024} },
18697 .block_erase = spi_block_erase_20,
18698 }, {
18699 .eraseblocks = { {32 * 1024, 128} },
18700 .block_erase = spi_block_erase_52,
18701 }, {
18702 .eraseblocks = { {64 * 1024, 64} },
18703 .block_erase = spi_block_erase_d8,
18704 }, {
18705 .eraseblocks = { {4 * 1024 * 1024, 1} },
18706 .block_erase = spi_block_erase_60,
18707 }, {
18708 .eraseblocks = { {4 * 1024 * 1024, 1} },
18709 .block_erase = spi_block_erase_c7,
18710 }
18711 },
18712 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18713 .unlock = spi_disable_blockprotect_bp2_srwd,
18714 .write = spi_chip_write_256,
18715 .read = spi_chip_read,
18716 .voltage = {2700, 3600},
18717 .reg_bits =
18718 {
18719 .srp = {STATUS1, 7, RW},
18720 .srl = {STATUS2, 0, RW},
18721 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18722 .tb = {STATUS1, 5, RW},
18723 .sec = {STATUS1, 6, RW},
18724 .cmp = {STATUS2, 6, RW},
18725 .wps = {STATUS3, 2, RW},
18726 },
18727 .wp_write_cfg = spi_wp_write_cfg,
18728 .wp_read_cfg = spi_wp_read_cfg,
18729 .wp_get_ranges = spi_wp_get_available_ranges,
18730 .decode_range = decode_range_spi25,
18731 },
18732
18733 {
18734 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018735 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018736 .bustype = BUS_SPI,
18737 .manufacture_id = WINBOND_NEX_ID,
18738 .model_id = WINBOND_NEX_W25Q32_W,
18739 .total_size = 4096,
18740 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018741 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018742 /* QPI: only DW version */
18743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018744 .tested = TEST_OK_PREW,
18745 .probe = probe_spi_rdid,
18746 .probe_timing = TIMING_ZERO,
18747 .block_erasers =
18748 {
18749 {
18750 .eraseblocks = { {4 * 1024, 1024} },
18751 .block_erase = spi_block_erase_20,
18752 }, {
18753 .eraseblocks = { {32 * 1024, 128} },
18754 .block_erase = spi_block_erase_52,
18755 }, {
18756 .eraseblocks = { {64 * 1024, 64} },
18757 .block_erase = spi_block_erase_d8,
18758 }, {
18759 .eraseblocks = { {4 * 1024 * 1024, 1} },
18760 .block_erase = spi_block_erase_60,
18761 }, {
18762 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018763 .block_erase = spi_block_erase_c7,
18764 }
18765 },
18766 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18767 .unlock = spi_disable_blockprotect,
18768 .write = spi_chip_write_256,
18769 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018770 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018771 .reg_bits =
18772 {
18773 .srp = {STATUS1, 7, RW},
18774 .srl = {STATUS2, 0, RW},
18775 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18776 .tb = {STATUS1, 5, RW},
18777 .sec = {STATUS1, 6, RW},
18778 .cmp = {STATUS2, 6, RW},
18779 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018780 .wp_write_cfg = spi_wp_write_cfg,
18781 .wp_read_cfg = spi_wp_read_cfg,
18782 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018783 .decode_range = decode_range_spi25,
18784 },
18785
18786 {
18787 .vendor = "Winbond",
18788 .name = "W25Q32FW",
18789 .bustype = BUS_SPI,
18790 .manufacture_id = WINBOND_NEX_ID,
18791 .model_id = WINBOND_NEX_W25Q32_W,
18792 .total_size = 4096,
18793 .page_size = 256,
18794 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018795 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018796 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018797 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018798 .tested = TEST_OK_PREW,
18799 .probe = probe_spi_rdid,
18800 .probe_timing = TIMING_ZERO,
18801 .block_erasers =
18802 {
18803 {
18804 .eraseblocks = { {4 * 1024, 1024} },
18805 .block_erase = spi_block_erase_20,
18806 }, {
18807 .eraseblocks = { {32 * 1024, 128} },
18808 .block_erase = spi_block_erase_52,
18809 }, {
18810 .eraseblocks = { {64 * 1024, 64} },
18811 .block_erase = spi_block_erase_d8,
18812 }, {
18813 .eraseblocks = { {4 * 1024 * 1024, 1} },
18814 .block_erase = spi_block_erase_60,
18815 }, {
18816 .eraseblocks = { {4 * 1024 * 1024, 1} },
18817 .block_erase = spi_block_erase_c7,
18818 }
18819 },
18820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18821 .unlock = spi_disable_blockprotect,
18822 .write = spi_chip_write_256,
18823 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018824 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018825 .reg_bits =
18826 {
18827 .srp = {STATUS1, 7, RW},
18828 .srl = {STATUS2, 0, RW},
18829 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18830 .tb = {STATUS1, 5, RW},
18831 .sec = {STATUS1, 6, RW},
18832 .cmp = {STATUS2, 6, RW},
18833 .wps = {STATUS3, 2, RW},
18834 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018835 .wp_write_cfg = spi_wp_write_cfg,
18836 .wp_read_cfg = spi_wp_read_cfg,
18837 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018838 .decode_range = decode_range_spi25,
18839 },
18840
18841 {
18842 .vendor = "Winbond",
18843 .name = "W25Q32JW...Q",
18844 .bustype = BUS_SPI,
18845 .manufacture_id = WINBOND_NEX_ID,
18846 .model_id = WINBOND_NEX_W25Q32_W,
18847 .total_size = 4096,
18848 .page_size = 256,
18849 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18850 /* QPI enable 0x38, disable 0xFF */
18851 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18852 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18853 .tested = TEST_OK_PREW,
18854 .probe = probe_spi_rdid,
18855 .probe_timing = TIMING_ZERO,
18856 .block_erasers =
18857 {
18858 {
18859 .eraseblocks = { {4 * 1024, 1024} },
18860 .block_erase = spi_block_erase_20,
18861 }, {
18862 .eraseblocks = { {32 * 1024, 128} },
18863 .block_erase = spi_block_erase_52,
18864 }, {
18865 .eraseblocks = { {64 * 1024, 64} },
18866 .block_erase = spi_block_erase_d8,
18867 }, {
18868 .eraseblocks = { {4 * 1024 * 1024, 1} },
18869 .block_erase = spi_block_erase_60,
18870 }, {
18871 .eraseblocks = { {4 * 1024 * 1024, 1} },
18872 .block_erase = spi_block_erase_c7,
18873 }
18874 },
18875 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18876 .unlock = spi_disable_blockprotect,
18877 .write = spi_chip_write_256,
18878 .read = spi_chip_read,
18879 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18880 .reg_bits =
18881 {
18882 .srp = {STATUS1, 7, RW},
18883 .srl = {STATUS2, 0, RW},
18884 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18885 .tb = {STATUS1, 5, RW},
18886 .sec = {STATUS1, 6, RW},
18887 .cmp = {STATUS2, 6, RW},
18888 .wps = {STATUS3, 2, RW},
18889 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018890 .wp_write_cfg = spi_wp_write_cfg,
18891 .wp_read_cfg = spi_wp_read_cfg,
18892 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018893 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018894 },
18895
18896 {
18897 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018898 .name = "W25Q32JW...M",
18899 .bustype = BUS_SPI,
18900 .manufacture_id = WINBOND_NEX_ID,
18901 .model_id = WINBOND_NEX_W25Q32JW_M,
18902 .total_size = 4096,
18903 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018904 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18905 /* QPI enable 0x38, disable 0xFF */
18906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18907 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018908 .tested = TEST_OK_PREW,
18909 .probe = probe_spi_rdid,
18910 .probe_timing = TIMING_ZERO,
18911 .block_erasers =
18912 {
18913 {
18914 .eraseblocks = { {4 * 1024, 1024} },
18915 .block_erase = spi_block_erase_20,
18916 }, {
18917 .eraseblocks = { {32 * 1024, 128} },
18918 .block_erase = spi_block_erase_52,
18919 }, {
18920 .eraseblocks = { {64 * 1024, 64} },
18921 .block_erase = spi_block_erase_d8,
18922 }, {
18923 .eraseblocks = { {4 * 1024 * 1024, 1} },
18924 .block_erase = spi_block_erase_60,
18925 }, {
18926 .eraseblocks = { {4 * 1024 * 1024, 1} },
18927 .block_erase = spi_block_erase_c7,
18928 }
18929 },
18930 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18931 .unlock = spi_disable_blockprotect_bp2_srwd,
18932 .write = spi_chip_write_256,
18933 .read = spi_chip_read,
18934 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018935 .reg_bits =
18936 {
18937 .srp = {STATUS1, 7, RW},
18938 .srl = {STATUS2, 0, RW},
18939 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18940 .tb = {STATUS1, 5, RW},
18941 .sec = {STATUS1, 6, RW},
18942 .cmp = {STATUS2, 6, RW},
18943 .wps = {STATUS3, 2, RW},
18944 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018945 .wp_write_cfg = spi_wp_write_cfg,
18946 .wp_read_cfg = spi_wp_read_cfg,
18947 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018948 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018949 },
18950
18951 {
18952 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018953 .name = "W25Q40.V",
18954 .bustype = BUS_SPI,
18955 .manufacture_id = WINBOND_NEX_ID,
18956 .model_id = WINBOND_NEX_W25Q40_V,
18957 .total_size = 512,
18958 .page_size = 256,
18959 /* supports SFDP */
18960 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18962 .tested = TEST_OK_PREW,
18963 .probe = probe_spi_rdid,
18964 .probe_timing = TIMING_ZERO,
18965 .block_erasers =
18966 {
18967 {
18968 .eraseblocks = { {4 * 1024, 128} },
18969 .block_erase = spi_block_erase_20,
18970 }, {
18971 .eraseblocks = { {32 * 1024, 16} },
18972 .block_erase = spi_block_erase_52,
18973 }, {
18974 .eraseblocks = { {64 * 1024, 8} },
18975 .block_erase = spi_block_erase_d8,
18976 }, {
18977 .eraseblocks = { {512 * 1024, 1} },
18978 .block_erase = spi_block_erase_60,
18979 }, {
18980 .eraseblocks = { {512 * 1024, 1} },
18981 .block_erase = spi_block_erase_c7,
18982 }
18983 },
18984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18985 .unlock = spi_disable_blockprotect,
18986 .write = spi_chip_write_256, /* Multi I/O supported */
18987 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
18988 .voltage = {2700, 3600},
18989 },
18990
18991 {
18992 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018993 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018994 .bustype = BUS_SPI,
18995 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020018996 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018997 .total_size = 512,
18998 .page_size = 256,
18999 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020019001 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019002 .probe = probe_spi_rdid,
19003 .probe_timing = TIMING_ZERO,
19004 .block_erasers =
19005 {
19006 {
19007 .eraseblocks = { {4 * 1024, 128} },
19008 .block_erase = spi_block_erase_20,
19009 }, {
19010 .eraseblocks = { {32 * 1024, 16} },
19011 .block_erase = spi_block_erase_52,
19012 }, {
19013 .eraseblocks = { {64 * 1024, 8} },
19014 .block_erase = spi_block_erase_d8,
19015 }, {
19016 .eraseblocks = { {512 * 1024, 1} },
19017 .block_erase = spi_block_erase_60,
19018 }, {
19019 .eraseblocks = { {512 * 1024, 1} },
19020 .block_erase = spi_block_erase_c7,
19021 }
19022 },
19023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19024 .unlock = spi_disable_blockprotect,
19025 .write = spi_chip_write_256,
19026 .read = spi_chip_read,
19027 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19028 },
19029
19030 {
19031 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020019032 .name = "W25Q40EW",
19033 .bustype = BUS_SPI,
19034 .manufacture_id = WINBOND_NEX_ID,
19035 .model_id = WINBOND_NEX_W25Q40EW,
19036 .total_size = 512,
19037 .page_size = 256,
19038 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19039 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100019040 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020019041 .probe = probe_spi_rdid,
19042 .probe_timing = TIMING_ZERO,
19043 .block_erasers =
19044 {
19045 {
19046 .eraseblocks = { {4 * 1024, 128} },
19047 .block_erase = spi_block_erase_20,
19048 }, {
19049 .eraseblocks = { {32 * 1024, 16} },
19050 .block_erase = spi_block_erase_52,
19051 }, {
19052 .eraseblocks = { {64 * 1024, 8} },
19053 .block_erase = spi_block_erase_d8,
19054 }, {
19055 .eraseblocks = { {512 * 1024, 1} },
19056 .block_erase = spi_block_erase_60,
19057 }, {
19058 .eraseblocks = { {512 * 1024, 1} },
19059 .block_erase = spi_block_erase_c7,
19060 }
19061 },
19062 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19063 .unlock = spi_disable_blockprotect,
19064 .write = spi_chip_write_256,
19065 .read = spi_chip_read,
19066 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
19067 },
19068
Stanislav Sedovf5775442018-03-07 14:16:51 -080019069 {
19070 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093019071 .name = "W25Q512JV",
19072 .bustype = BUS_SPI,
19073 .manufacture_id = WINBOND_NEX_ID,
19074 .model_id = WINBOND_NEX_W25Q512JV,
19075 .total_size = 64 * 1024,
19076 .page_size = 256,
19077 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
19078 .tested = TEST_OK_PREW,
19079 .probe = probe_spi_rdid,
19080 .probe_timing = TIMING_ZERO,
19081 .block_erasers =
19082 {
19083 {
19084 .eraseblocks = { {4 * 1024, 16384} },
19085 .block_erase = spi_block_erase_21,
19086 }, {
19087 .eraseblocks = { {4 * 1024, 16384} },
19088 .block_erase = spi_block_erase_20,
19089 }, {
19090 .eraseblocks = { {32 * 1024, 2048} },
19091 .block_erase = spi_block_erase_52,
19092 }, {
19093 .eraseblocks = { {64 * 1024, 1024} },
19094 .block_erase = spi_block_erase_dc,
19095 }, {
19096 .eraseblocks = { {64 * 1024, 1024} },
19097 .block_erase = spi_block_erase_d8,
19098 }, {
19099 .eraseblocks = { {64 * 1024 * 1024, 1} },
19100 .block_erase = spi_block_erase_60,
19101 }, {
19102 .eraseblocks = { {64 * 1024 * 1024, 1} },
19103 .block_erase = spi_block_erase_c7,
19104 }
19105 },
19106 .printlock = spi_prettyprint_status_register_plain,
19107 .unlock = spi_disable_blockprotect,
19108 .write = spi_chip_write_256,
19109 .read = spi_chip_read,
19110 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010019111 .prepare_access = spi_prepare_4ba,
Joel Stanley55439612019-07-27 19:25:35 +093019112 },
19113
19114 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019115 .vendor = "Winbond",
19116 .name = "W25Q512NW-IM",
19117 .bustype = BUS_SPI,
19118 .manufacture_id = WINBOND_NEX_ID,
19119 .model_id = WINBOND_NEX_W25Q512NW_IM,
19120 .total_size = 64 * 1024,
19121 .page_size = 256,
Subrata Banikf5bffd92022-12-14 12:30:43 +053019122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
19123 | FEATURE_WRSR3,
19124 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010019125 .probe = probe_spi_rdid,
19126 .probe_timing = TIMING_ZERO,
19127 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019128 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019129 {
19130 .eraseblocks = { {4 * 1024, 16384} },
19131 .block_erase = spi_block_erase_21,
19132 }, {
19133 .eraseblocks = { {4 * 1024, 16384} },
19134 .block_erase = spi_block_erase_20,
19135 }, {
19136 .eraseblocks = { {32 * 1024, 2048} },
19137 .block_erase = spi_block_erase_52,
19138 }, {
19139 .eraseblocks = { {64 * 1024, 1024} },
19140 .block_erase = spi_block_erase_dc,
19141 }, {
19142 .eraseblocks = { {64 * 1024, 1024} },
19143 .block_erase = spi_block_erase_d8,
19144 }, {
19145 .eraseblocks = { {64 * 1024 * 1024, 1} },
19146 .block_erase = spi_block_erase_60,
19147 }, {
19148 .eraseblocks = { {64 * 1024 * 1024, 1} },
19149 .block_erase = spi_block_erase_c7,
19150 }
19151 },
19152 .unlock = spi_disable_blockprotect,
19153 .write = spi_chip_write_256,
19154 .read = spi_chip_read,
19155 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053019156 .reg_bits =
19157 {
19158 .srp = {STATUS1, 7, RW},
19159 .srl = {STATUS2, 0, RW},
19160 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
19161 .tb = {STATUS1, 6, RW},
19162 .cmp = {STATUS2, 6, RW},
19163 .wps = {STATUS3, 2, RW},
19164 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019165 .wp_write_cfg = spi_wp_write_cfg,
19166 .wp_read_cfg = spi_wp_read_cfg,
19167 .wp_get_ranges = spi_wp_get_available_ranges,
Subrata Banikf5bffd92022-12-14 12:30:43 +053019168 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010019169 .prepare_access = spi_prepare_4ba,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019170 },
19171
19172 {
Joel Stanley55439612019-07-27 19:25:35 +093019173 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019174 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080019175 .bustype = BUS_SPI,
19176 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019177 .model_id = WINBOND_NEX_W25Q64_V,
19178 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019179 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019180 /* supports SFDP */
19181 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019182 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019183 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019184 .probe = probe_spi_rdid,
19185 .probe_timing = TIMING_ZERO,
19186 .block_erasers =
19187 {
19188 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019189 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019190 .block_erase = spi_block_erase_20,
19191 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019192 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019193 .block_erase = spi_block_erase_52,
19194 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019195 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019196 .block_erase = spi_block_erase_d8,
19197 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019198 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019199 .block_erase = spi_block_erase_60,
19200 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019201 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019202 .block_erase = spi_block_erase_c7,
19203 }
19204 },
19205 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19206 .unlock = spi_disable_blockprotect,
19207 .write = spi_chip_write_256,
19208 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019209 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019210 .reg_bits =
19211 {
19212 .srp = {STATUS1, 7, RW},
19213 .srl = {STATUS2, 0, RW},
19214 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19215 .tb = {STATUS1, 5, RW},
19216 .sec = {STATUS1, 6, RW},
19217 .cmp = {STATUS2, 6, RW},
19218 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019219 .wp_write_cfg = spi_wp_write_cfg,
19220 .wp_read_cfg = spi_wp_read_cfg,
19221 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019222 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019223 },
19224
19225 {
19226 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019227 .name = "W25Q64JV-.Q",
19228 .bustype = BUS_SPI,
19229 .manufacture_id = WINBOND_NEX_ID,
19230 .model_id = WINBOND_NEX_W25Q64_V,
19231 .total_size = 8192,
19232 .page_size = 256,
19233 /* supports SFDP */
19234 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020019235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
19236 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019237 .tested = TEST_OK_PREW,
19238 .probe = probe_spi_rdid,
19239 .probe_timing = TIMING_ZERO,
19240 .block_erasers =
19241 {
19242 {
19243 .eraseblocks = { {4 * 1024, 2048} },
19244 .block_erase = spi_block_erase_20,
19245 }, {
19246 .eraseblocks = { {32 * 1024, 256} },
19247 .block_erase = spi_block_erase_52,
19248 }, {
19249 .eraseblocks = { {64 * 1024, 128} },
19250 .block_erase = spi_block_erase_d8,
19251 }, {
19252 .eraseblocks = { {8 * 1024 * 1024, 1} },
19253 .block_erase = spi_block_erase_60,
19254 }, {
19255 .eraseblocks = { {8 * 1024 * 1024, 1} },
19256 .block_erase = spi_block_erase_c7,
19257 }
19258 },
19259 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19260 .unlock = spi_disable_blockprotect,
19261 .write = spi_chip_write_256,
19262 .read = spi_chip_read,
19263 .voltage = {2700, 3600},
19264 .reg_bits =
19265 {
19266 .srp = {STATUS1, 7, RW},
19267 .srl = {STATUS2, 0, RW},
19268 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19269 .tb = {STATUS1, 5, RW},
19270 .sec = {STATUS1, 6, RW},
19271 .cmp = {STATUS2, 6, RW},
19272 .wps = {STATUS3, 2, RW},
19273 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019274 .wp_write_cfg = spi_wp_write_cfg,
19275 .wp_read_cfg = spi_wp_read_cfg,
19276 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019277 .decode_range = decode_range_spi25,
19278 },
19279
19280 {
19281 .vendor = "Winbond",
19282 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010019283 .bustype = BUS_SPI,
19284 .manufacture_id = WINBOND_NEX_ID,
19285 .model_id = WINBOND_NEX_W25Q64JV,
19286 .total_size = 8192,
19287 .page_size = 256,
19288 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010019289 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
19290 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Simon Buhrow236a38c2021-11-05 11:48:30 +010019291 .tested = TEST_OK_PREW,
19292 .probe = probe_spi_rdid,
19293 .probe_timing = TIMING_ZERO,
19294 .block_erasers =
19295 {
19296 {
19297 .eraseblocks = { {4 * 1024, 2048} },
19298 .block_erase = spi_block_erase_20,
19299 }, {
19300 .eraseblocks = { {32 * 1024, 256} },
19301 .block_erase = spi_block_erase_52,
19302 }, {
19303 .eraseblocks = { {64 * 1024, 128} },
19304 .block_erase = spi_block_erase_d8,
19305 }, {
19306 .eraseblocks = { {8 * 1024 * 1024, 1} },
19307 .block_erase = spi_block_erase_60,
19308 }, {
19309 .eraseblocks = { {8 * 1024 * 1024, 1} },
19310 .block_erase = spi_block_erase_c7,
19311 }
19312 },
19313 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
19314 .unlock = spi_disable_blockprotect_bp2_srwd,
19315 .write = spi_chip_write_256,
19316 .read = spi_chip_read,
19317 .voltage = {2700, 3600},
19318 },
19319
19320 {
19321 .vendor = "Winbond",
Nico Hubera358b142024-04-14 18:29:06 +020019322 .name = "W25Q64DW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019323 .bustype = BUS_SPI,
19324 .manufacture_id = WINBOND_NEX_ID,
19325 .model_id = WINBOND_NEX_W25Q64_W,
19326 .total_size = 8192,
19327 .page_size = 256,
19328 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
19330 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Nico Hubera358b142024-04-14 18:29:06 +020019331 .tested = TEST_OK_PREW,
19332 .probe = probe_spi_rdid,
19333 .probe_timing = TIMING_ZERO,
19334 .block_erasers =
19335 {
19336 {
19337 .eraseblocks = { {4 * 1024, 2048} },
19338 .block_erase = spi_block_erase_20,
19339 }, {
19340 .eraseblocks = { {32 * 1024, 256} },
19341 .block_erase = spi_block_erase_52,
19342 }, {
19343 .eraseblocks = { {64 * 1024, 128} },
19344 .block_erase = spi_block_erase_d8,
19345 }, {
19346 .eraseblocks = { {8 * 1024 * 1024, 1} },
19347 .block_erase = spi_block_erase_60,
19348 }, {
19349 .eraseblocks = { {8 * 1024 * 1024, 1} },
19350 .block_erase = spi_block_erase_c7,
19351 }
19352 },
19353 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19354 .unlock = spi_disable_blockprotect,
19355 .write = spi_chip_write_256,
19356 .read = spi_chip_read,
19357 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19358 .reg_bits =
19359 {
19360 .srp = {STATUS1, 7, RW},
19361 .srl = {STATUS2, 0, RW},
19362 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19363 .tb = {STATUS1, 5, RW},
19364 .sec = {STATUS1, 6, RW},
19365 .cmp = {STATUS2, 6, RW},
19366 },
19367 .wp_write_cfg = spi_wp_write_cfg,
19368 .wp_read_cfg = spi_wp_read_cfg,
19369 .wp_get_ranges = spi_wp_get_available_ranges,
19370 .decode_range = decode_range_spi25,
19371 },
19372
19373 {
19374 .vendor = "Winbond",
19375 .name = "W25Q64FW/W25Q64JW...Q",
19376 .bustype = BUS_SPI,
19377 .manufacture_id = WINBOND_NEX_ID,
19378 .model_id = WINBOND_NEX_W25Q64_W,
19379 .total_size = 8192,
19380 .page_size = 256,
19381 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019382 /* FEATURE_QPI_SRP (2, 4, 6, 8): only FW version */
Nico Hubera358b142024-04-14 18:29:06 +020019383 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
Nico Huber1412d9f2024-01-06 18:25:49 +010019384 FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019385 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019386 .probe = probe_spi_rdid,
19387 .probe_timing = TIMING_ZERO,
19388 .block_erasers =
19389 {
19390 {
19391 .eraseblocks = { {4 * 1024, 2048} },
19392 .block_erase = spi_block_erase_20,
19393 }, {
19394 .eraseblocks = { {32 * 1024, 256} },
19395 .block_erase = spi_block_erase_52,
19396 }, {
19397 .eraseblocks = { {64 * 1024, 128} },
19398 .block_erase = spi_block_erase_d8,
19399 }, {
19400 .eraseblocks = { {8 * 1024 * 1024, 1} },
19401 .block_erase = spi_block_erase_60,
19402 }, {
19403 .eraseblocks = { {8 * 1024 * 1024, 1} },
19404 .block_erase = spi_block_erase_c7,
19405 }
19406 },
19407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19408 .unlock = spi_disable_blockprotect,
19409 .write = spi_chip_write_256,
19410 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019411 .voltage = {1700, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019412 .reg_bits =
19413 {
19414 .srp = {STATUS1, 7, RW},
19415 .srl = {STATUS2, 0, RW},
19416 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19417 .tb = {STATUS1, 5, RW},
19418 .sec = {STATUS1, 6, RW},
19419 .cmp = {STATUS2, 6, RW},
19420 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019421 .wp_write_cfg = spi_wp_write_cfg,
19422 .wp_read_cfg = spi_wp_read_cfg,
19423 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019424 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019425 },
19426
19427 {
19428 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019429 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080019430 .bustype = BUS_SPI,
19431 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019432 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080019433 .total_size = 8192,
19434 .page_size = 256,
19435 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19436 /* QPI enable 0x38, disable 0xFF */
Nico Huber1412d9f2024-01-06 18:25:49 +010019437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
19438 FEATURE_OTP | FEATURE_QPI_SRP,
19439 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Scott Chao1bbc5012020-04-08 22:10:50 +080019440 .tested = TEST_OK_PREW,
19441 .probe = probe_spi_rdid,
19442 .probe_timing = TIMING_ZERO,
19443 .block_erasers =
19444 {
19445 {
19446 .eraseblocks = { {4 * 1024, 2048} },
19447 .block_erase = spi_block_erase_20,
19448 }, {
19449 .eraseblocks = { {32 * 1024, 256} },
19450 .block_erase = spi_block_erase_52,
19451 }, {
19452 .eraseblocks = { {64 * 1024, 128} },
19453 .block_erase = spi_block_erase_d8,
19454 }, {
19455 .eraseblocks = { {8 * 1024 * 1024, 1} },
19456 .block_erase = spi_block_erase_60,
19457 }, {
19458 .eraseblocks = { {8 * 1024 * 1024, 1} },
19459 .block_erase = spi_block_erase_c7,
19460 }
19461 },
19462 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19463 .unlock = spi_disable_blockprotect,
19464 .write = spi_chip_write_256,
19465 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019466 .voltage = {1700, 1950},
Evan Benn29c8b5d2022-09-13 16:01:10 +100019467 .reg_bits =
19468 {
19469 .srp = {STATUS1, 7, RW},
19470 .srl = {STATUS2, 0, RW},
19471 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19472 .tb = {STATUS1, 5, RW},
19473 .sec = {STATUS1, 6, RW},
19474 .cmp = {STATUS2, 6, RW},
19475 .wps = {STATUS3, 2, RW},
19476 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019477 .wp_write_cfg = spi_wp_write_cfg,
19478 .wp_read_cfg = spi_wp_read_cfg,
19479 .wp_get_ranges = spi_wp_get_available_ranges,
Evan Benn29c8b5d2022-09-13 16:01:10 +100019480 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080019481 },
19482
19483 {
19484 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019485 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020019486 .bustype = BUS_SPI,
19487 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019488 .model_id = WINBOND_NEX_W25Q80_V,
19489 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020019490 .page_size = 256,
19491 /* supports SFDP */
19492 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100019493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080019494 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020019495 .probe = probe_spi_rdid,
19496 .probe_timing = TIMING_ZERO,
19497 .block_erasers =
19498 {
19499 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019500 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019501 .block_erase = spi_block_erase_20,
19502 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019503 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019504 .block_erase = spi_block_erase_52,
19505 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019506 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019507 .block_erase = spi_block_erase_d8,
19508 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019509 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019510 .block_erase = spi_block_erase_60,
19511 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019512 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019513 .block_erase = spi_block_erase_c7,
19514 }
19515 },
19516 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19517 .unlock = spi_disable_blockprotect,
19518 .write = spi_chip_write_256,
19519 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019520 .voltage = {2700, 3600},
19521 },
19522
19523 {
19524 .vendor = "Winbond",
19525 .name = "W25Q80BW",
19526 .bustype = BUS_SPI,
19527 .manufacture_id = WINBOND_NEX_ID,
19528 .model_id = WINBOND_NEX_W25Q80BW,
19529 .total_size = 1024,
19530 .page_size = 256,
19531 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19532 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
19533 .tested = TEST_OK_PREW,
19534 .probe = probe_spi_rdid,
19535 .probe_timing = TIMING_ZERO,
19536 .block_erasers =
19537 {
19538 {
19539 .eraseblocks = { {4 * 1024, 256} },
19540 .block_erase = spi_block_erase_20,
19541 }, {
19542 .eraseblocks = { {32 * 1024, 32} },
19543 .block_erase = spi_block_erase_52,
19544 }, {
19545 .eraseblocks = { {64 * 1024, 16} },
19546 .block_erase = spi_block_erase_d8,
19547 }, {
19548 .eraseblocks = { {1 * 1024 * 1024, 1} },
19549 .block_erase = spi_block_erase_60,
19550 }, {
19551 .eraseblocks = { {1 * 1024 * 1024, 1} },
19552 .block_erase = spi_block_erase_c7,
19553 }
19554 },
19555 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19556 .unlock = spi_disable_blockprotect,
19557 .write = spi_chip_write_256,
19558 .read = spi_chip_read,
19559 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19560 },
19561
19562 {
19563 .vendor = "Winbond",
19564 .name = "W25Q80EW",
19565 .bustype = BUS_SPI,
19566 .manufacture_id = WINBOND_NEX_ID,
19567 .model_id = WINBOND_NEX_W25Q80EW,
19568 .total_size = 1024,
19569 .page_size = 256,
19570 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19571 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
19572 .tested = TEST_OK_PREW,
19573 .probe = probe_spi_rdid,
19574 .probe_timing = TIMING_ZERO,
19575 .block_erasers =
19576 {
19577 {
19578 .eraseblocks = { {4 * 1024, 256} },
19579 .block_erase = spi_block_erase_20,
19580 }, {
19581 .eraseblocks = { {32 * 1024, 32} },
19582 .block_erase = spi_block_erase_52,
19583 }, {
19584 .eraseblocks = { {64 * 1024, 16} },
19585 .block_erase = spi_block_erase_d8,
19586 }, {
19587 .eraseblocks = { {1 * 1024 * 1024, 1} },
19588 .block_erase = spi_block_erase_60,
19589 }, {
19590 .eraseblocks = { {1 * 1024 * 1024, 1} },
19591 .block_erase = spi_block_erase_c7,
19592 }
19593 },
19594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19595 .unlock = spi_disable_blockprotect,
19596 .write = spi_chip_write_256,
19597 .read = spi_chip_read,
19598 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020019599 },
19600
19601 {
19602 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019603 .name = "W25X05",
19604 .bustype = BUS_SPI,
19605 .manufacture_id = WINBOND_NEX_ID,
19606 .model_id = WINBOND_NEX_W25X05,
19607 .total_size = 64,
19608 .page_size = 256,
19609 .feature_bits = FEATURE_WRSR_WREN,
19610 .tested = TEST_OK_PREW,
19611 .probe = probe_spi_rdid,
19612 .probe_timing = TIMING_ZERO,
19613 .block_erasers =
19614 {
19615 {
19616 .eraseblocks = { {4 * 1024, 16} },
19617 .block_erase = spi_block_erase_20,
19618 }, {
19619 .eraseblocks = { {32 * 1024, 2} },
19620 .block_erase = spi_block_erase_52,
19621 }, {
19622 .eraseblocks = { {64 * 1024, 1} },
19623 .block_erase = spi_block_erase_d8,
19624 }
19625 },
19626 .printlock = spi_prettyprint_status_register_plain,
19627 .unlock = spi_disable_blockprotect,
19628 .write = spi_chip_write_256,
19629 .read = spi_chip_read,
19630 .voltage = {2300, 3600},
19631 },
19632
19633 {
19634 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019635 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019637 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019638 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019639 .total_size = 128,
19640 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019641 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000019642 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019643 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019644 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019645 .block_erasers =
19646 {
19647 {
19648 .eraseblocks = { {4 * 1024, 32} },
19649 .block_erase = spi_block_erase_20,
19650 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019651 .eraseblocks = { {64 * 1024, 2} },
19652 .block_erase = spi_block_erase_d8,
19653 }, {
19654 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019655 .block_erase = spi_block_erase_c7,
19656 }
19657 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019658 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000019660 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019661 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019662 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019663 },
19664
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019665 {
19666 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019667 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019668 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000019669 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019670 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000019671 .total_size = 2048,
19672 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019673 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000019674 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000019675 .probe = probe_spi_rdid,
19676 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019677 .block_erasers =
19678 {
19679 {
19680 .eraseblocks = { {4 * 1024, 512} },
19681 .block_erase = spi_block_erase_20,
19682 }, {
19683 .eraseblocks = { {32 * 1024, 64} },
19684 .block_erase = spi_block_erase_52,
19685 }, {
19686 .eraseblocks = { {64 * 1024, 32} },
19687 .block_erase = spi_block_erase_d8,
19688 }, {
19689 .eraseblocks = { {2 * 1024 * 1024, 1} },
19690 .block_erase = spi_block_erase_60,
19691 }, {
19692 .eraseblocks = { {2 * 1024 * 1024, 1} },
19693 .block_erase = spi_block_erase_c7,
19694 }
19695 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019696 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019697 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000019698 .write = spi_chip_write_256,
19699 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019700 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000019701 },
19702
19703 {
19704 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019705 .name = "W25X20",
19706 .bustype = BUS_SPI,
19707 .manufacture_id = WINBOND_NEX_ID,
19708 .model_id = WINBOND_NEX_W25X20,
19709 .total_size = 256,
19710 .page_size = 256,
19711 .feature_bits = FEATURE_WRSR_WREN,
19712 .tested = TEST_OK_PREW,
19713 .probe = probe_spi_rdid,
19714 .probe_timing = TIMING_ZERO,
19715 .block_erasers =
19716 {
19717 {
19718 .eraseblocks = { {4 * 1024, 64} },
19719 .block_erase = spi_block_erase_20,
19720 }, {
19721 .eraseblocks = { {64 * 1024, 4} },
19722 .block_erase = spi_block_erase_d8,
19723 }, {
19724 .eraseblocks = { {256 * 1024, 1} },
19725 .block_erase = spi_block_erase_c7,
19726 }
19727 },
19728 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19729 .unlock = spi_disable_blockprotect,
19730 .write = spi_chip_write_256,
19731 .read = spi_chip_read,
19732 .voltage = {2700, 3600},
19733 },
19734
19735 {
19736 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019737 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019738 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019739 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019740 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000019741 .total_size = 4096,
19742 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019743 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000019744 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019745 .probe = probe_spi_rdid,
19746 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019747 .block_erasers =
19748 {
19749 {
19750 .eraseblocks = { {4 * 1024, 1024} },
19751 .block_erase = spi_block_erase_20,
19752 }, {
19753 .eraseblocks = { {32 * 1024, 128} },
19754 .block_erase = spi_block_erase_52,
19755 }, {
19756 .eraseblocks = { {64 * 1024, 64} },
19757 .block_erase = spi_block_erase_d8,
19758 }, {
19759 .eraseblocks = { {4 * 1024 * 1024, 1} },
19760 .block_erase = spi_block_erase_60,
19761 }, {
19762 .eraseblocks = { {4 * 1024 * 1024, 1} },
19763 .block_erase = spi_block_erase_c7,
19764 }
19765 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019766 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019767 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019768 .write = spi_chip_write_256,
19769 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019770 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019771 },
19772
19773 {
19774 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019775 .name = "W25X40",
19776 .bustype = BUS_SPI,
19777 .manufacture_id = WINBOND_NEX_ID,
19778 .model_id = WINBOND_NEX_W25X40,
19779 .total_size = 512,
19780 .page_size = 256,
19781 .feature_bits = FEATURE_WRSR_WREN,
19782 .tested = TEST_OK_PREW,
19783 .probe = probe_spi_rdid,
19784 .probe_timing = TIMING_ZERO,
19785 .block_erasers =
19786 {
19787 {
19788 .eraseblocks = { {4 * 1024, 128} },
19789 .block_erase = spi_block_erase_20,
19790 }, {
19791 .eraseblocks = { {64 * 1024, 8} },
19792 .block_erase = spi_block_erase_d8,
19793 }, {
19794 .eraseblocks = { {512 * 1024, 1} },
19795 .block_erase = spi_block_erase_c7,
19796 }
19797 },
19798 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19799 .unlock = spi_disable_blockprotect,
19800 .write = spi_chip_write_256,
19801 .read = spi_chip_read,
19802 .voltage = {2700, 3600},
19803 },
19804
19805 {
19806 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019807 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019808 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019809 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019810 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019811 .total_size = 8192,
19812 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019813 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019814 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019815 .probe = probe_spi_rdid,
19816 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019817 .block_erasers =
19818 {
19819 {
19820 .eraseblocks = { {4 * 1024, 2048} },
19821 .block_erase = spi_block_erase_20,
19822 }, {
19823 .eraseblocks = { {32 * 1024, 256} },
19824 .block_erase = spi_block_erase_52,
19825 }, {
19826 .eraseblocks = { {64 * 1024, 128} },
19827 .block_erase = spi_block_erase_d8,
19828 }, {
19829 .eraseblocks = { {8 * 1024 * 1024, 1} },
19830 .block_erase = spi_block_erase_60,
19831 }, {
19832 .eraseblocks = { {8 * 1024 * 1024, 1} },
19833 .block_erase = spi_block_erase_c7,
19834 }
19835 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019836 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019837 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019838 .write = spi_chip_write_256,
19839 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019840 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019841 },
19842
19843 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019844 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019845 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100019846 .bustype = BUS_SPI,
19847 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019848 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019849 .total_size = 1024,
19850 .page_size = 256,
19851 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019852 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019853 .probe = probe_spi_rdid,
19854 .probe_timing = TIMING_ZERO,
19855 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019856 {
19857 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019858 .eraseblocks = { {4 * 1024, 256} },
19859 .block_erase = spi_block_erase_20,
19860 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019861 .eraseblocks = { {64 * 1024, 16} },
19862 .block_erase = spi_block_erase_d8,
19863 }, {
19864 .eraseblocks = { {1024 * 1024, 1} },
19865 .block_erase = spi_block_erase_c7,
19866 }
19867 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19869 .unlock = spi_disable_blockprotect,
19870 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019871 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019872 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019873 },
19874
Alan Greenf29ea362019-06-27 17:14:02 +100019875 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
19876 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000019877 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019878 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019879 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019880 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019881 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019882 .total_size = 128,
19883 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019884 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000019885 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019886 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019887 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019888 .block_erasers =
19889 {
19890 {
19891 .eraseblocks = { {128 * 1024, 1} },
19892 .block_erase = erase_chip_block_jedec,
19893 }
19894 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019895 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019896 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010019897 .prepare_access = prepare_memory_access,
19898 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019899 },
19900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019901 {
19902 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019903 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
19904 .bustype = BUS_PARALLEL,
19905 .manufacture_id = WINBOND_ID,
19906 .model_id = WINBOND_W29C010,
19907 .total_size = 128,
19908 .page_size = 128,
19909 .feature_bits = FEATURE_LONG_RESET,
19910 .tested = TEST_OK_PREW,
19911 .probe = probe_w29ee011,
19912 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
19913 .block_erasers =
19914 {
19915 {
19916 .eraseblocks = { {128 * 1024, 1} },
19917 .block_erase = erase_chip_block_jedec,
19918 }
19919 },
19920 .write = write_jedec,
19921 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010019922 .prepare_access = prepare_memory_access,
19923 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019924 },
19925
19926 {
19927 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019928 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019929 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019930 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019931 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019932 .total_size = 256,
19933 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019934 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019935 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019936 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019937 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019938 .block_erasers =
19939 {
19940 {
19941 .eraseblocks = { {256 * 1024, 1} },
19942 .block_erase = erase_chip_block_jedec,
19943 }
19944 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019945 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019947 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019948 .prepare_access = prepare_memory_access,
19949 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019950 },
19951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019952 {
19953 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019954 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019955 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019956 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019957 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019958 .total_size = 512,
19959 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000019960 .feature_bits = FEATURE_LONG_RESET,
19961 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019962 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019963 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019964 .block_erasers =
19965 {
19966 {
19967 .eraseblocks = { {512 * 1024, 1} },
19968 .block_erase = erase_chip_block_jedec,
19969 }
19970 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019971 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019972 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019973 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019974 .prepare_access = prepare_memory_access,
19975 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019976 },
19977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019978 {
19979 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019980 .name = "W29C512A/W29EE512",
19981 .bustype = BUS_PARALLEL,
19982 .manufacture_id = WINBOND_ID,
19983 .model_id = WINBOND_W29C512A,
19984 .total_size = 64,
19985 .page_size = 128,
19986 .feature_bits = FEATURE_LONG_RESET,
19987 .tested = TEST_OK_PREW,
19988 .probe = probe_jedec,
19989 .probe_timing = 10,
19990 .block_erasers =
19991 {
19992 {
19993 .eraseblocks = { {64 * 1024, 1} },
19994 .block_erase = erase_chip_block_jedec,
19995 }
19996 },
19997 .write = write_jedec,
19998 .read = read_memmapped,
19999 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020000 .prepare_access = prepare_memory_access,
20001 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020002 },
20003
20004 {
20005 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020006 .name = "W29GL032CB",
20007 .bustype = BUS_PARALLEL,
20008 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20009 .model_id = WINBOND_W29GL032CB,
20010 .total_size = 4096,
20011 .page_size = 128 * 1024, /* actual page size is 16 */
20012 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20013 .tested = TEST_UNTESTED,
20014 .probe = probe_jedec_29gl,
20015 .probe_timing = TIMING_ZERO,
20016 .block_erasers =
20017 {
20018 {
20019 .eraseblocks = {
20020 {8 * 1024, 8},
20021 {64 * 1024, 63},
20022 },
20023 .block_erase = erase_sector_jedec,
20024 }, {
20025 .eraseblocks = { {4 * 1024 * 1024, 1} },
20026 .block_erase = erase_chip_block_jedec,
20027 },
20028 },
20029 .write = write_jedec_1,
20030 .read = read_memmapped,
20031 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020032 .prepare_access = prepare_memory_access,
20033 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020034 },
20035
20036 {
20037 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020038 .name = "W29GL032CH/L",
20039 .bustype = BUS_PARALLEL,
20040 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20041 .model_id = WINBOND_W29GL032CHL,
20042 .total_size = 4096,
20043 .page_size = 128 * 1024, /* actual page size is 16 */
20044 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20045 .tested = TEST_UNTESTED,
20046 .probe = probe_jedec_29gl,
20047 .probe_timing = TIMING_ZERO,
20048 .block_erasers =
20049 {
20050 {
20051 .eraseblocks = { {64 * 1024, 64} },
20052 .block_erase = erase_sector_jedec,
20053 }, {
20054 .eraseblocks = { {4 * 1024 * 1024, 1} },
20055 .block_erase = erase_chip_block_jedec,
20056 },
20057 },
20058 .write = write_jedec_1,
20059 .read = read_memmapped,
20060 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020061 .prepare_access = prepare_memory_access,
20062 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020063 },
20064
20065 {
20066 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020067 .name = "W29GL032CT",
20068 .bustype = BUS_PARALLEL,
20069 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20070 .model_id = WINBOND_W29GL032CT,
20071 .total_size = 4096,
20072 .page_size = 128 * 1024, /* actual page size is 16 */
20073 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20074 .tested = TEST_UNTESTED,
20075 .probe = probe_jedec_29gl,
20076 .probe_timing = TIMING_ZERO,
20077 .block_erasers =
20078 {
20079 {
20080 .eraseblocks = {
20081 {64 * 1024, 63},
20082 {8 * 1024, 8},
20083 },
20084 .block_erase = erase_sector_jedec,
20085 }, {
20086 .eraseblocks = { {4 * 1024 * 1024, 1} },
20087 .block_erase = erase_chip_block_jedec,
20088 },
20089 },
20090 .write = write_jedec_1,
20091 .read = read_memmapped,
20092 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020093 .prepare_access = prepare_memory_access,
20094 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020095 },
20096
20097 {
20098 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020099 .name = "W29GL064CB",
20100 .bustype = BUS_PARALLEL,
20101 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20102 .model_id = WINBOND_W29GL064CB,
20103 .total_size = 8192,
20104 .page_size = 128 * 1024, /* actual page size is 16 */
20105 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20106 .tested = TEST_UNTESTED,
20107 .probe = probe_jedec_29gl,
20108 .probe_timing = TIMING_ZERO,
20109 .block_erasers =
20110 {
20111 {
20112 .eraseblocks = {
20113 {8 * 1024, 8},
20114 {64 * 1024, 127},
20115 },
20116 .block_erase = erase_sector_jedec,
20117 }, {
20118 .eraseblocks = { {8 * 1024 * 1024, 1} },
20119 .block_erase = erase_chip_block_jedec,
20120 },
20121 },
20122 .write = write_jedec_1,
20123 .read = read_memmapped,
20124 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020125 .prepare_access = prepare_memory_access,
20126 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020127 },
20128
20129 {
20130 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020131 .name = "W29GL064CH/L",
20132 .bustype = BUS_PARALLEL,
20133 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20134 .model_id = WINBOND_W29GL064CHL,
20135 .total_size = 8192,
20136 .page_size = 128 * 1024, /* actual page size is 16 */
20137 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20138 .tested = TEST_UNTESTED,
20139 .probe = probe_jedec_29gl,
20140 .probe_timing = TIMING_ZERO,
20141 .block_erasers =
20142 {
20143 {
20144 .eraseblocks = { {64 * 1024, 128} },
20145 .block_erase = erase_sector_jedec,
20146 }, {
20147 .eraseblocks = { {8 * 1024 * 1024, 1} },
20148 .block_erase = erase_chip_block_jedec,
20149 },
20150 },
20151 .write = write_jedec_1,
20152 .read = read_memmapped,
20153 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020154 .prepare_access = prepare_memory_access,
20155 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020156 },
20157
20158 {
20159 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020160 .name = "W29GL064CT",
20161 .bustype = BUS_PARALLEL,
20162 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20163 .model_id = WINBOND_W29GL064CT,
20164 .total_size = 8192,
20165 .page_size = 128 * 1024, /* actual page size is 16 */
20166 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20167 .tested = TEST_UNTESTED,
20168 .probe = probe_jedec_29gl,
20169 .probe_timing = TIMING_ZERO,
20170 .block_erasers =
20171 {
20172 {
20173 .eraseblocks = {
20174 {64 * 1024, 127},
20175 {8 * 1024, 8},
20176 },
20177 .block_erase = erase_sector_jedec,
20178 }, {
20179 .eraseblocks = { {8 * 1024 * 1024, 1} },
20180 .block_erase = erase_chip_block_jedec,
20181 },
20182 },
20183 .write = write_jedec_1,
20184 .read = read_memmapped,
20185 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020186 .prepare_access = prepare_memory_access,
20187 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020188 },
20189
20190 {
20191 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020192 .name = "W29GL128C",
20193 .bustype = BUS_PARALLEL,
20194 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20195 .model_id = WINBOND_W29GL128CHL,
20196 .total_size = 16384,
20197 .page_size = 128 * 1024, /* actual page size is 16 */
20198 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20199 .tested = TEST_UNTESTED,
20200 .probe = probe_jedec_29gl,
20201 .probe_timing = TIMING_ZERO,
20202 .block_erasers =
20203 {
20204 {
20205 .eraseblocks = { {128 * 1024, 128} },
20206 .block_erase = erase_sector_jedec,
20207 }, {
20208 .eraseblocks = { {16 * 1024 * 1024, 1} },
20209 .block_erase = erase_chip_block_jedec,
20210 },
20211 },
20212 .write = write_jedec_1,
20213 .read = read_memmapped,
20214 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020215 .prepare_access = prepare_memory_access,
20216 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020217 },
20218
20219 {
20220 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020221 .name = "W39F010",
20222 .bustype = BUS_PARALLEL,
20223 .manufacture_id = WINBOND_ID,
20224 .model_id = WINBOND_W39F010,
20225 .total_size = 128,
20226 .page_size = 4 * 1024,
20227 .feature_bits = FEATURE_EITHER_RESET,
20228 .tested = TEST_OK_PREW,
20229 .probe = probe_jedec,
20230 .probe_timing = 10,
20231 .block_erasers =
20232 {
20233 {
20234 .eraseblocks = { {4 * 1024, 32} },
20235 .block_erase = erase_block_jedec,
20236 }, {
20237 .eraseblocks = { {128 * 1024, 1} },
20238 .block_erase = erase_chip_block_jedec,
20239 }
20240 },
20241 .printlock = printlock_w39f010,
20242 .write = write_jedec_1,
20243 .read = read_memmapped,
20244 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020245 .prepare_access = prepare_memory_access,
20246 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020247 },
20248
20249 {
20250 .vendor = "Winbond",
20251 .name = "W39L010",
20252 .bustype = BUS_PARALLEL,
20253 .manufacture_id = WINBOND_ID,
20254 .model_id = WINBOND_W39L010,
20255 .total_size = 128,
20256 .page_size = 4 * 1024,
20257 .feature_bits = FEATURE_EITHER_RESET,
20258 .tested = TEST_UNTESTED,
20259 .probe = probe_jedec,
20260 .probe_timing = 10,
20261 .block_erasers =
20262 {
20263 {
20264 .eraseblocks = { {4 * 1024, 32} },
20265 .block_erase = erase_block_jedec,
20266 }, {
20267 .eraseblocks = { {128 * 1024, 1} },
20268 .block_erase = erase_chip_block_jedec,
20269 }
20270 },
20271 .printlock = printlock_w39l010,
20272 .write = write_jedec_1,
20273 .read = read_memmapped,
20274 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020275 .prepare_access = prepare_memory_access,
20276 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020277 },
20278
20279 {
20280 .vendor = "Winbond",
20281 .name = "W39L020",
20282 .bustype = BUS_PARALLEL,
20283 .manufacture_id = WINBOND_ID,
20284 .model_id = WINBOND_W39L020,
20285 .total_size = 256,
20286 .page_size = 4 * 1024,
20287 .feature_bits = FEATURE_EITHER_RESET,
20288 .tested = TEST_UNTESTED,
20289 .probe = probe_jedec,
20290 .probe_timing = 10,
20291 .block_erasers =
20292 {
20293 {
20294 .eraseblocks = { {4 * 1024, 64} },
20295 .block_erase = erase_block_jedec,
20296 }, {
20297 .eraseblocks = { {64 * 1024, 4} },
20298 .block_erase = erase_sector_jedec,
20299 }, {
20300 .eraseblocks = { {256 * 1024, 1} },
20301 .block_erase = erase_chip_block_jedec,
20302 }
20303 },
20304 .printlock = printlock_w39l020,
20305 .write = write_jedec_1,
20306 .read = read_memmapped,
20307 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020308 .prepare_access = prepare_memory_access,
20309 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020310 },
20311
20312 {
20313 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000020314 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020315 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020316 .manufacture_id = WINBOND_ID,
20317 .model_id = WINBOND_W39L040,
20318 .total_size = 512,
20319 .page_size = 64 * 1024,
20320 .feature_bits = FEATURE_EITHER_RESET,
20321 .tested = TEST_OK_PR,
20322 .probe = probe_jedec,
20323 .probe_timing = 10,
20324 .block_erasers =
20325 {
20326 {
20327 .eraseblocks = { {4 * 1024, 128} },
20328 .block_erase = erase_block_jedec,
20329 }, {
20330 .eraseblocks = { {64 * 1024, 8} },
20331 .block_erase = erase_sector_jedec,
20332 }, {
20333 .eraseblocks = { {512 * 1024, 1} },
20334 .block_erase = erase_chip_block_jedec,
20335 }
20336 },
20337 .printlock = printlock_w39l040,
20338 .write = write_jedec_1,
20339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020340 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020341 .prepare_access = prepare_memory_access,
20342 .finish_access = finish_memory_access,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020343 },
20344
20345 {
20346 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020347 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020348 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020349 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020350 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020351 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020352 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020353 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020354 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020355 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000020356 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020357 .block_erasers =
20358 {
20359 {
20360 .eraseblocks = { {64 * 1024, 8} },
20361 .block_erase = erase_sector_jedec,
20362 }, {
20363 .eraseblocks = { {512 * 1024, 1} },
20364 .block_erase = erase_chip_block_jedec,
20365 }
20366 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020367 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000020368 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020370 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020371 .prepare_access = prepare_memory_access,
20372 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020373 },
20374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020375 {
20376 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020377 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020378 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020379 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020380 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020381 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020382 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020383 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020384 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020385 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000020386 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020387 .block_erasers =
20388 {
20389 {
20390 .eraseblocks = { {64 * 1024, 8} },
20391 .block_erase = erase_sector_jedec,
20392 }, {
20393 .eraseblocks = { {512 * 1024, 1} },
20394 .block_erase = erase_chip_block_jedec,
20395 }
20396 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020397 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000020398 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020399 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020400 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020401 .prepare_access = prepare_memory_access,
20402 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020403 },
20404
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020405 {
20406 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020407 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020408 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020409 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020410 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020411 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020412 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020413 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020414 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000020415 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020416 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020417 .block_erasers =
20418 {
20419 {
20420 .eraseblocks = { {64 * 1024, 8} },
20421 .block_erase = erase_sector_jedec,
20422 }, {
20423 .eraseblocks = { {512 * 1024, 1} },
20424 .block_erase = erase_chip_block_jedec,
20425 }
20426 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000020427 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000020428 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020430 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020431 .prepare_access = prepare_memory_access,
20432 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020433 },
20434
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020435 {
20436 .vendor = "Winbond",
20437 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020438 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020439 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020440 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020441 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020442 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020443 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000020444 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020445 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000020446 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020447 .block_erasers =
20448 {
20449 {
20450 .eraseblocks = { {4 * 1024, 128} },
20451 .block_erase = erase_block_jedec,
20452 }, {
20453 .eraseblocks = { {64 * 1024, 8} },
20454 .block_erase = erase_sector_jedec,
20455 }, {
20456 .eraseblocks = { {512 * 1024, 1} },
20457 .block_erase = erase_chip_block_jedec,
20458 }
20459 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020460 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020461 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000020462 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020464 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010020465 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020466 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020467 },
20468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020469 {
20470 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020471 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020472 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020473 .manufacture_id = WINBOND_ID,
20474 .model_id = WINBOND_W39V040B,
20475 .total_size = 512,
20476 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020477 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000020478 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020479 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020480 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020481 .block_erasers =
20482 {
20483 {
20484 .eraseblocks = { {64 * 1024, 8} },
20485 .block_erase = erase_sector_jedec,
20486 }, {
20487 .eraseblocks = { {512 * 1024, 1} },
20488 .block_erase = erase_chip_block_jedec,
20489 }
20490 },
20491 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020492 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020493 .write = write_jedec_1,
20494 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020495 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020496 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020497 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020498 },
20499
20500 {
20501 .vendor = "Winbond",
20502 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020503 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020504 .manufacture_id = WINBOND_ID,
20505 .model_id = WINBOND_W39V040C,
20506 .total_size = 512,
20507 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020508 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000020509 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020510 .probe = probe_jedec,
20511 .probe_timing = 10,
20512 .block_erasers =
20513 {
20514 {
20515 .eraseblocks = { {64 * 1024, 8} },
20516 .block_erase = erase_sector_jedec,
20517 }, {
20518 .eraseblocks = { {512 * 1024, 1} },
20519 .block_erase = erase_chip_block_jedec,
20520 }
20521 },
20522 .printlock = printlock_w39v040fc,
20523 .write = write_jedec_1,
20524 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020525 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020526 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020527 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020528 },
20529
20530 {
20531 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020532 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020533 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020534 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020535 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020536 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000020537 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020538 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000020539 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020540 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000020541 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020542 .block_erasers =
20543 {
20544 {
20545 .eraseblocks = { {64 * 1024, 16} },
20546 .block_erase = erase_sector_jedec,
20547 }, {
20548 .eraseblocks = { {1024 * 1024, 1} },
20549 .block_erase = erase_chip_block_jedec,
20550 }
20551 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020552 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000020553 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020555 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020556 .prepare_access = prepare_memory_access,
20557 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020558 },
20559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020560 {
20561 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020562 .name = "W39V080FA",
20563 .bustype = BUS_FWH,
20564 .manufacture_id = WINBOND_ID,
20565 .model_id = WINBOND_W39V080FA,
20566 .total_size = 1024,
20567 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020568 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020569 .tested = TEST_OK_PREW,
20570 .probe = probe_jedec,
20571 .probe_timing = 10,
20572 .block_erasers =
20573 {
20574 {
20575 .eraseblocks = { {64 * 1024, 16} },
20576 .block_erase = erase_sector_jedec,
20577 }, {
20578 .eraseblocks = { {1024 * 1024, 1} },
20579 .block_erase = erase_chip_block_jedec,
20580 }
20581 },
20582 .printlock = printlock_w39v080fa,
20583 .unlock = unlock_regspace2_uniform_64k,
20584 .write = write_jedec_1,
20585 .read = read_memmapped,
20586 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020587 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020588 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020589 },
20590
20591 {
20592 .vendor = "Winbond",
20593 .name = "W39V080FA (dual mode)",
20594 .bustype = BUS_FWH,
20595 .manufacture_id = WINBOND_ID,
20596 .model_id = WINBOND_W39V080FA_DM,
20597 .total_size = 512,
20598 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020599 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020600 .tested = TEST_UNTESTED,
20601 .probe = probe_jedec,
20602 .probe_timing = 10,
20603 .block_erasers =
20604 {
20605 {
20606 .eraseblocks = { {64 * 1024, 8} },
20607 .block_erase = erase_sector_jedec,
20608 }, {
20609 .eraseblocks = { {512 * 1024, 1} },
20610 .block_erase = erase_chip_block_jedec,
20611 }
20612 },
20613 .printlock = printlock_w39v080fa_dual,
20614 .write = write_jedec_1,
20615 .read = read_memmapped,
20616 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020617 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020618 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020619 },
20620
20621 {
20622 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020623 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020624 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020625 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020626 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020627 .total_size = 256,
20628 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020629 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020630 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020631 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020632 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020633 .block_erasers =
20634 {
20635 {
20636 .eraseblocks = {
20637 {128 * 1024, 1},
20638 {96 * 1024, 1},
20639 {8 * 1024, 2},
20640 {16 * 1024, 1},
20641 },
20642 .block_erase = erase_sector_jedec,
20643 }, {
20644 .eraseblocks = { {256 * 1024, 1} },
20645 .block_erase = erase_chip_block_jedec,
20646 }
20647 },
Sean Nelson35727f72010-01-28 23:55:12 +000020648 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020649 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020650 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020651 .prepare_access = prepare_memory_access,
20652 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020653 },
20654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020655 {
20656 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020657 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020658 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020659 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020660 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020661 .total_size = 256,
20662 .page_size = 128,
20663 .feature_bits = FEATURE_EITHER_RESET,
20664 .tested = TEST_OK_PROBE,
20665 .probe = probe_jedec,
20666 .probe_timing = 10,
20667 .block_erasers =
20668 {
20669 {
20670 .eraseblocks = { {256 * 1024, 1} },
20671 .block_erase = erase_chip_block_jedec,
20672 }
20673 },
20674 .write = write_jedec_1,
20675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020676 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020677 .prepare_access = prepare_memory_access,
20678 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020679 },
20680
20681 {
20682 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020683 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020684 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020685 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020686 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020687 .total_size = 256,
20688 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020689 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020690 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020691 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020692 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020693 .block_erasers =
20694 {
20695 {
20696 .eraseblocks = {
20697 {64 * 1024, 3},
20698 {32 * 1024, 1},
20699 {8 * 1024, 2},
20700 {16 * 1024, 1},
20701 },
20702 .block_erase = erase_sector_jedec,
20703 }, {
20704 .eraseblocks = { {256 * 1024, 1} },
20705 .block_erase = erase_chip_block_jedec,
20706 }
20707 },
Sean Nelson35727f72010-01-28 23:55:12 +000020708 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020709 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020710 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020711 .prepare_access = prepare_memory_access,
20712 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020713 },
20714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020715 {
20716 .vendor = "Winbond",
20717 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020718 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020719 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020720 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020721 .total_size = 256,
20722 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020723 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000020724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020725 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020726 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020727 .block_erasers =
20728 {
20729 {
20730 .eraseblocks = {
20731 {64 * 1024, 3},
20732 {32 * 1024, 1},
20733 {8 * 1024, 2},
20734 {16 * 1024, 1},
20735 },
20736 .block_erase = erase_sector_jedec,
20737 }, {
20738 .eraseblocks = { {256 * 1024, 1} },
20739 .block_erase = erase_chip_block_jedec,
20740 }
20741 },
Sean Nelson35727f72010-01-28 23:55:12 +000020742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020744 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020745 .prepare_access = prepare_memory_access,
20746 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020747 },
20748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020749 {
luke heef884232020-12-28 18:22:21 +080020750 .vendor = "XMC",
20751 .name = "XM25QH128C",
20752 .bustype = BUS_SPI,
20753 .manufacture_id = ST_ID,
20754 .model_id = XMC_XM25QH128C,
20755 .total_size = 16384,
20756 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
20758 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020759 .tested = TEST_UNTESTED,
20760 .probe = probe_spi_rdid,
20761 .probe_timing = TIMING_ZERO,
20762 .block_erasers =
20763 {
20764 {
20765 .eraseblocks = { {4 * 1024, 4096} },
20766 .block_erase = spi_block_erase_20,
20767 }, {
20768 .eraseblocks = { {32 * 1024, 512} },
20769 .block_erase = spi_block_erase_52,
20770 }, {
20771 .eraseblocks = { {64 * 1024, 256} },
20772 .block_erase = spi_block_erase_d8,
20773 }, {
20774 .eraseblocks = { {16 * 1024 * 1024, 1} },
20775 .block_erase = spi_block_erase_60,
20776 }, {
20777 .eraseblocks = { {16 * 1024 * 1024, 1} },
20778 .block_erase = spi_block_erase_c7,
20779 }
20780 },
20781 .printlock = spi_prettyprint_status_register_plain,
20782 .unlock = spi_disable_blockprotect,
20783 .write = spi_chip_write_256,
20784 .read = spi_chip_read,
20785 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020786 .reg_bits =
20787 {
20788 .srp = {STATUS1, 7, RW},
20789 .srl = {STATUS2, 0, RW},
20790 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
20791 .tb = {STATUS1, 5, RW},
20792 .sec = {STATUS1, 6, RW},
20793 .cmp = {STATUS2, 6, RW},
20794 },
Nico Huberaabb3e02023-01-13 00:22:30 +010020795 .wp_write_cfg = spi_wp_write_cfg,
20796 .wp_read_cfg = spi_wp_read_cfg,
20797 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020798 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080020799 },
20800
20801 {
20802 .vendor = "XMC",
20803 .name = "XM25QH256C",
20804 .bustype = BUS_SPI,
20805 .manufacture_id = ST_ID,
20806 .model_id = XMC_XM25QH256C,
20807 .total_size = 32768,
20808 .page_size = 256,
20809 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020810 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080020811 .tested = TEST_UNTESTED,
20812 .probe = probe_spi_rdid,
20813 .probe_timing = TIMING_ZERO,
20814 .block_erasers =
20815 {
20816 {
20817 .eraseblocks = { {4 * 1024, 8192} },
20818 .block_erase = spi_block_erase_21,
20819 }, {
20820 .eraseblocks = { {4 * 1024, 8192} },
20821 .block_erase = spi_block_erase_20,
20822 }, {
20823 .eraseblocks = { {32 * 1024, 1024} },
20824 .block_erase = spi_block_erase_52,
20825 }, {
20826 .eraseblocks = { {64 * 1024, 512} },
20827 .block_erase = spi_block_erase_dc,
20828 }, {
20829 .eraseblocks = { {64 * 1024, 512} },
20830 .block_erase = spi_block_erase_d8,
20831 }, {
20832 .eraseblocks = { {32 * 1024 * 1024, 1} },
20833 .block_erase = spi_block_erase_60,
20834 }, {
20835 .eraseblocks = { {32 * 1024 * 1024, 1} },
20836 .block_erase = spi_block_erase_c7,
20837 }
20838 },
20839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20840 .unlock = spi_disable_blockprotect,
20841 .write = spi_chip_write_256,
20842 .read = spi_chip_read,
20843 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020844 .reg_bits =
20845 {
20846 .srp = {STATUS1, 7, RW},
20847 .srl = {STATUS2, 0, RW},
20848 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
20849 .tb = {STATUS1, 6, RW},
20850 },
Nico Huberaabb3e02023-01-13 00:22:30 +010020851 .wp_write_cfg = spi_wp_write_cfg,
20852 .wp_read_cfg = spi_wp_read_cfg,
20853 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020854 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010020855 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020856 },
20857
20858 {
20859 .vendor = "XMC",
20860 .name = "XM25QH64C",
20861 .bustype = BUS_SPI,
20862 .manufacture_id = ST_ID,
20863 .model_id = XMC_XM25QH64C,
20864 .total_size = 8192,
20865 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020866 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
20867 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020868 .tested = TEST_UNTESTED,
20869 .probe = probe_spi_rdid,
20870 .probe_timing = TIMING_ZERO,
20871 .block_erasers =
20872 {
20873 {
20874 .eraseblocks = { {4 * 1024, 2048} },
20875 .block_erase = spi_block_erase_20,
20876 }, {
20877 .eraseblocks = { {32 * 1024, 256} },
20878 .block_erase = spi_block_erase_52,
20879 }, {
20880 .eraseblocks = { {64 * 1024, 128} },
20881 .block_erase = spi_block_erase_d8,
20882 }, {
20883 .eraseblocks = { {8 * 1024 * 1024, 1} },
20884 .block_erase = spi_block_erase_60,
20885 }, {
20886 .eraseblocks = { {8 * 1024 * 1024, 1} },
20887 .block_erase = spi_block_erase_c7,
20888 }
20889 },
20890 .printlock = spi_prettyprint_status_register_plain,
20891 .unlock = spi_disable_blockprotect,
20892 .write = spi_chip_write_256,
20893 .read = spi_chip_read,
20894 .voltage = {2700, 3600},
20895 },
20896
20897 {
20898 .vendor = "XMC",
20899 .name = "XM25QU128C",
20900 .bustype = BUS_SPI,
20901 .manufacture_id = ST_ID,
20902 .model_id = XMC_XM25QU128C,
20903 .total_size = 16384,
20904 .page_size = 256,
20905 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010020906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
20907 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020908 .tested = TEST_UNTESTED,
20909 .probe = probe_spi_rdid,
20910 .probe_timing = TIMING_ZERO,
20911 .block_erasers =
20912 {
20913 {
20914 .eraseblocks = { {4 * 1024, 4096} },
20915 .block_erase = spi_block_erase_20,
20916 }, {
20917 .eraseblocks = { {32 * 1024, 512} },
20918 .block_erase = spi_block_erase_52,
20919 }, {
20920 .eraseblocks = { {64 * 1024, 256} },
20921 .block_erase = spi_block_erase_d8,
20922 }, {
20923 .eraseblocks = { {16 * 1024 * 1024, 1} },
20924 .block_erase = spi_block_erase_60,
20925 }, {
20926 .eraseblocks = { {16 * 1024 * 1024, 1} },
20927 .block_erase = spi_block_erase_c7,
20928 }
20929 },
20930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20931 .unlock = spi_disable_blockprotect,
20932 .write = spi_chip_write_256,
20933 .read = spi_chip_read,
20934 .voltage = {1650, 1950},
20935 },
20936
20937 {
20938 .vendor = "XMC",
20939 .name = "XM25QU256C",
20940 .bustype = BUS_SPI,
20941 .manufacture_id = ST_ID,
20942 .model_id = XMC_XM25QU256C,
20943 .total_size = 32768,
20944 .page_size = 256,
20945 /* supports SFDP */
20946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
20947 .tested = TEST_UNTESTED,
20948 .probe = probe_spi_rdid,
20949 .probe_timing = TIMING_ZERO,
20950 .block_erasers =
20951 {
20952 {
20953 .eraseblocks = { {4 * 1024, 8192} },
20954 .block_erase = spi_block_erase_21,
20955 }, {
20956 .eraseblocks = { {4 * 1024, 8192} },
20957 .block_erase = spi_block_erase_20,
20958 }, {
20959 .eraseblocks = { {32 * 1024, 1024} },
20960 .block_erase = spi_block_erase_52,
20961 }, {
20962 .eraseblocks = { {64 * 1024, 512} },
20963 .block_erase = spi_block_erase_dc,
20964 }, {
20965 .eraseblocks = { {64 * 1024, 512} },
20966 .block_erase = spi_block_erase_d8,
20967 }, {
20968 .eraseblocks = { {32 * 1024 * 1024, 1} },
20969 .block_erase = spi_block_erase_60,
20970 }, {
20971 .eraseblocks = { {32 * 1024 * 1024, 1} },
20972 .block_erase = spi_block_erase_c7,
20973 }
20974 },
20975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20976 .unlock = spi_disable_blockprotect,
20977 .write = spi_chip_write_256,
20978 .read = spi_chip_read,
20979 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010020980 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020981 },
20982
20983 {
20984 .vendor = "XMC",
20985 .name = "XM25QU64C",
20986 .bustype = BUS_SPI,
20987 .manufacture_id = ST_ID,
20988 .model_id = XMC_XM25QU64C,
20989 .total_size = 8192,
20990 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020991 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
20992 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020993 .tested = TEST_UNTESTED,
20994 .probe = probe_spi_rdid,
20995 .probe_timing = TIMING_ZERO,
20996 .block_erasers =
20997 {
20998 {
20999 .eraseblocks = { {4 * 1024, 2048} },
21000 .block_erase = spi_block_erase_20,
21001 }, {
21002 .eraseblocks = { {32 * 1024, 256} },
21003 .block_erase = spi_block_erase_52,
21004 }, {
21005 .eraseblocks = { {64 * 1024, 128} },
21006 .block_erase = spi_block_erase_d8,
21007 }, {
21008 .eraseblocks = { {8 * 1024 * 1024, 1} },
21009 .block_erase = spi_block_erase_60,
21010 }, {
21011 .eraseblocks = { {8 * 1024 * 1024, 1} },
21012 .block_erase = spi_block_erase_c7,
21013 }
21014 },
21015 .printlock = spi_prettyprint_status_register_plain,
21016 .unlock = spi_disable_blockprotect,
21017 .write = spi_chip_write_256,
21018 .read = spi_chip_read,
21019 .voltage = {1650, 1950},
21020 },
21021
21022 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021023 .vendor = "Zetta Device",
21024 .name = "ZD25D20",
21025 .bustype = BUS_SPI,
21026 .manufacture_id = ZETTADEVICE_ID,
21027 .model_id = ZETTADEVICE_ZD25D20,
21028 .total_size = 256,
21029 .page_size = 256,
21030 .feature_bits = FEATURE_WRSR_WREN,
21031 .tested = TEST_UNTESTED,
21032 .probe = probe_spi_rdid,
21033 .probe_timing = TIMING_ZERO,
21034 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080021035 {
21036 {
21037 .eraseblocks = { {4 * 1024, 64} },
21038 .block_erase = spi_block_erase_20,
21039 }, {
21040 .eraseblocks = { {32 * 1024, 8} },
21041 .block_erase = spi_block_erase_52,
21042 }, {
21043 .eraseblocks = { {64 * 1024, 4} },
21044 .block_erase = spi_block_erase_d8,
21045 }, {
21046 .eraseblocks = { {256 * 1024, 1} },
21047 .block_erase = spi_block_erase_60,
21048 }, {
21049 .eraseblocks = { {256 * 1024, 1} },
21050 .block_erase = spi_block_erase_c7,
21051 }
21052 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21054 .unlock = spi_disable_blockprotect,
21055 .write = spi_chip_write_256,
21056 .read = spi_chip_read,
21057 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080021058 },
21059
21060 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021061 .vendor = "Zetta Device",
21062 .name = "ZD25D40",
21063 .bustype = BUS_SPI,
21064 .manufacture_id = ZETTADEVICE_ID,
21065 .model_id = ZETTADEVICE_ZD25D40,
21066 .total_size = 512,
21067 .page_size = 256,
21068 .feature_bits = FEATURE_WRSR_WREN,
21069 .tested = TEST_UNTESTED,
21070 .probe = probe_spi_rdid,
21071 .probe_timing = TIMING_ZERO,
21072 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080021073 {
21074 {
21075 .eraseblocks = { {4 * 1024, 128} },
21076 .block_erase = spi_block_erase_20,
21077 }, {
21078 .eraseblocks = { {32 * 1024, 16} },
21079 .block_erase = spi_block_erase_52,
21080 }, {
21081 .eraseblocks = { {64 * 1024, 8} },
21082 .block_erase = spi_block_erase_d8,
21083 }, {
21084 .eraseblocks = { {512 * 1024, 1} },
21085 .block_erase = spi_block_erase_60,
21086 }, {
21087 .eraseblocks = { {512 * 1024, 1} },
21088 .block_erase = spi_block_erase_c7,
21089 }
21090 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21092 .unlock = spi_disable_blockprotect,
21093 .write = spi_chip_write_256,
21094 .read = spi_chip_read,
21095 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080021096 },
21097
Stefan Taunerac1b4c82012-02-17 14:51:04 +000021098 {
Alan Greendd592202019-08-23 10:11:37 +100021099 .vendor = "Unknown",
21100 .name = "SFDP-capable chip",
21101 .bustype = BUS_SPI,
21102 .manufacture_id = GENERIC_MANUF_ID,
21103 .model_id = SFDP_DEVICE_ID,
21104 .total_size = 0, /* set by probing function */
21105 .page_size = 0, /* set by probing function */
21106 .feature_bits = 0, /* set by probing function */
21107 /* We present our own "report this" text hence we do not */
21108 /* want the default "This flash part has status UNTESTED..." */
21109 /* text to be printed. */
21110 .tested = TEST_OK_PREW,
21111 .probe = probe_spi_sfdp,
21112 .block_erasers = {}, /* set by probing function */
21113 .unlock = spi_disable_blockprotect, /* is this safe? */
21114 .write = NULL, /* set by probing function */
21115 .read = spi_chip_read,
21116 /* FIXME: some vendor extensions define this */
21117 .voltage = {0},
21118 },
21119
21120 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000021121 .vendor = "Programmer",
21122 .name = "Opaque flash chip",
21123 .bustype = BUS_PROG,
21124 .manufacture_id = PROGMANUF_ID,
21125 .model_id = PROGDEV_ID,
21126 .total_size = 0,
21127 .page_size = 256,
21128 /* probe is assumed to work, rest will be filled in by probe */
21129 .tested = TEST_OK_PROBE,
21130 .probe = probe_opaque,
21131 /* eraseblock sizes will be set by the probing function */
21132 .block_erasers =
21133 {
21134 {
21135 .block_erase = erase_opaque,
21136 }
21137 },
21138 .write = write_opaque,
21139 .read = read_opaque,
21140 },
21141
21142 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021143 .vendor = "AMIC",
21144 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021145 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021146 .manufacture_id = AMIC_ID,
21147 .model_id = GENERIC_DEVICE_ID,
21148 .total_size = 0,
21149 .page_size = 256,
21150 .tested = TEST_BAD_PREW,
21151 .probe = probe_spi_rdid4,
21152 .probe_timing = TIMING_ZERO,
21153 .write = NULL,
21154 .read = NULL,
21155 },
21156
21157 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021158 .vendor = "Atmel",
21159 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021160 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021161 .manufacture_id = ATMEL_ID,
21162 .model_id = GENERIC_DEVICE_ID,
21163 .total_size = 0,
21164 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021165 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021166 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021167 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021168 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021169 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021170 },
21171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021172 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000021173 .vendor = "Eon",
21174 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021175 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021176 .manufacture_id = EON_ID_NOPREFIX,
21177 .model_id = GENERIC_DEVICE_ID,
21178 .total_size = 0,
21179 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021180 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021181 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021182 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021183 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021184 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021185 },
21186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021187 {
21188 .vendor = "Macronix",
21189 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021190 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000021191 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021192 .model_id = GENERIC_DEVICE_ID,
21193 .total_size = 0,
21194 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021195 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021196 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021197 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021198 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021199 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021200 },
21201
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021202 {
21203 .vendor = "PMC",
21204 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021205 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021206 .manufacture_id = PMC_ID,
21207 .model_id = GENERIC_DEVICE_ID,
21208 .total_size = 0,
21209 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021210 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021211 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021212 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021213 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021214 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021215 },
21216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021217 {
21218 .vendor = "SST",
21219 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021220 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021221 .manufacture_id = SST_ID,
21222 .model_id = GENERIC_DEVICE_ID,
21223 .total_size = 0,
21224 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021225 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021226 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021227 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021228 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021229 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021230 },
21231
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021232 {
21233 .vendor = "ST",
21234 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021235 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021236 .manufacture_id = ST_ID,
21237 .model_id = GENERIC_DEVICE_ID,
21238 .total_size = 0,
21239 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021240 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021241 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021242 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021243 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021244 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021245 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000021246
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021247 {
Sean Nelson118e1d62009-11-24 02:08:11 +000021248 .vendor = "Sanyo",
21249 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021250 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000021251 .manufacture_id = SANYO_ID,
21252 .model_id = GENERIC_DEVICE_ID,
21253 .total_size = 0,
21254 .page_size = 256,
21255 .tested = TEST_BAD_PREW,
21256 .probe = probe_spi_rdid,
21257 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000021258 .write = NULL,
21259 .read = NULL,
21260 },
21261
21262 {
Stefan Taunereb582572012-09-21 12:52:50 +000021263 .vendor = "Winbond",
21264 .name = "unknown Winbond (ex Nexcom) SPI chip",
21265 .bustype = BUS_SPI,
21266 .manufacture_id = WINBOND_NEX_ID,
21267 .model_id = GENERIC_DEVICE_ID,
21268 .total_size = 0,
21269 .page_size = 256,
21270 .tested = TEST_BAD_PREW,
21271 .probe = probe_spi_rdid,
21272 .probe_timing = TIMING_ZERO,
21273 .write = NULL,
21274 .read = NULL,
21275 },
21276
21277 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021278 .vendor = "Generic",
21279 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021280 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021281 .manufacture_id = GENERIC_MANUF_ID,
21282 .model_id = GENERIC_DEVICE_ID,
21283 .total_size = 0,
21284 .page_size = 256,
21285 .tested = TEST_BAD_PREW,
21286 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021287 .write = NULL,
21288 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000021289
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021290 {
21291 .vendor = "Generic",
21292 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021293 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021294 .manufacture_id = GENERIC_MANUF_ID,
21295 .model_id = GENERIC_DEVICE_ID,
21296 .total_size = 0,
21297 .page_size = 256,
21298 .tested = TEST_BAD_PREW,
21299 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021300 .write = NULL,
21301 },
21302
Stefan Tauner96658be2014-05-26 22:05:31 +000021303 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000021304};
Stefan Tauner96658be2014-05-26 22:05:31 +000021305
21306const unsigned int flashchips_size = ARRAY_SIZE(flashchips);