blob: 3f544cabc71a35cb8042b45d1a65262de91d218d [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Nico Huberaabb3e02023-01-13 00:22:30 +010024#include "writeprotect.h"
Ollie Lho184a4042005-11-26 21:55:36 +000025
Uwe Hermannfc425e82008-03-16 02:06:25 +000026/**
Uwe Hermanna9720402009-05-21 15:55:46 +000027 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000028 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100029 * Temporarily, this file is sorted alphabetically by vendor and name to
Nico Huberc3b02dc2023-08-12 01:13:45 +020030 * assist with merging the Chromium fork of flashprog.
Alan Green1f9cc7d2019-07-01 11:10:45 +100031 *
32 * The usual intention is that that this list is sorted by vendor, then chip
Nico Huberc3b02dc2023-08-12 01:13:45 +020033 * family and chip density, which is useful for the output of 'flashprog -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
62 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000066 .total_size = 256,
67 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000069 .tested = TEST_UNTESTED,
70 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = {
76 {16 * 1024, 1},
77 {8 * 1024, 2},
78 {32 * 1024, 1},
79 {64 * 1024, 3},
80 },
81 .block_erase = erase_sector_jedec,
82 }, {
83 .eraseblocks = { {256 * 1024, 1} },
84 .block_erase = erase_chip_block_jedec,
85 },
86 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000087 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000088 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000089 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010090 .prepare_access = prepare_memory_access,
91 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000092 },
93
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000094 {
95 .vendor = "AMD",
96 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000097 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000098 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000099 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000100 .total_size = 256,
101 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000102 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
103 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000104 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000105 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000106 .block_erasers =
107 {
108 {
109 .eraseblocks = {
110 {64 * 1024, 3},
111 {32 * 1024, 1},
112 {8 * 1024, 2},
113 {16 * 1024, 1},
114 },
115 .block_erase = erase_sector_jedec,
116 }, {
117 .eraseblocks = { {256 * 1024, 1} },
118 .block_erase = erase_chip_block_jedec,
119 },
120 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000121 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000122 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000123 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +0100124 .prepare_access = prepare_memory_access,
125 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000126 },
127
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000128 {
129 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000130 .name = "Am29F010",
131 .bustype = BUS_PARALLEL,
132 .manufacture_id = AMD_ID,
133 .model_id = AMD_AM29F010,
134 .total_size = 128,
135 .page_size = 16 * 1024,
136 .feature_bits = FEATURE_SHORT_RESET,
137 .tested = TEST_UNTESTED,
138 .probe = probe_jedec,
139 .probe_timing = TIMING_ZERO,
140 .block_erasers =
141 {
142 {
143 .eraseblocks = { {16 * 1024, 8} },
144 .block_erase = erase_sector_jedec,
145 }, {
146 .eraseblocks = { {128 * 1024, 1} },
147 .block_erase = erase_chip_block_jedec,
148 },
149 },
150 .write = write_jedec_1,
151 .read = read_memmapped,
152 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100153 .prepare_access = prepare_memory_access,
154 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000155 },
156
157 {
158 .vendor = "AMD",
159 .name = "Am29F010A/B",
160 .bustype = BUS_PARALLEL,
161 .manufacture_id = AMD_ID,
162 .model_id = AMD_AM29F010,
163 .total_size = 128,
164 .page_size = 16 * 1024,
165 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000166 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000167 .probe = probe_jedec,
168 .probe_timing = TIMING_ZERO,
169 .block_erasers =
170 {
171 {
172 .eraseblocks = { {16 * 1024, 8} },
173 .block_erase = erase_sector_jedec,
174 }, {
175 .eraseblocks = { {128 * 1024, 1} },
176 .block_erase = erase_chip_block_jedec,
177 },
178 },
179 .write = write_jedec_1,
180 .read = read_memmapped,
181 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100182 .prepare_access = prepare_memory_access,
183 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000184 },
185
186 {
187 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000188 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000189 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000190 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000191 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000192 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000193 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000195 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000197 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 .block_erasers =
199 {
200 {
201 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000202 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000203 }, {
204 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000205 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000206 },
207 },
Sean Nelson35727f72010-01-28 23:55:12 +0000208 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000209 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000210 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100211 .prepare_access = prepare_memory_access,
212 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000213 },
214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000215 {
216 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000217 .name = "Am29F040",
218 .bustype = BUS_PARALLEL,
219 .manufacture_id = AMD_ID,
220 .model_id = AMD_AM29F040,
221 .total_size = 512,
222 .page_size = 64 * 1024,
223 .feature_bits = FEATURE_EITHER_RESET,
224 .tested = TEST_UNTESTED,
225 .probe = probe_jedec,
226 .probe_timing = TIMING_ZERO,
227 .block_erasers =
228 {
229 {
230 .eraseblocks = { {64 * 1024, 8} },
231 .block_erase = erase_sector_jedec,
232 }, {
233 .eraseblocks = { {512 * 1024, 1} },
234 .block_erase = erase_chip_block_jedec,
235 },
236 },
237 .write = write_jedec_1,
238 .read = read_memmapped,
239 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100240 .prepare_access = prepare_memory_access,
241 .finish_access = finish_memory_access,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000242 },
243
244 {
245 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000246 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000247 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000248 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000249 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000250 .total_size = 512,
251 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000252 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
253 .tested = TEST_UNTESTED,
254 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000255 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000256 .block_erasers =
257 {
258 {
259 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000260 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000261 }, {
262 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000263 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000264 },
265 },
Sean Nelson35727f72010-01-28 23:55:12 +0000266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000268 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100269 .prepare_access = prepare_memory_access,
270 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000271 },
272
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000273 {
274 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000275 .name = "Am29F080",
276 .bustype = BUS_PARALLEL,
277 .manufacture_id = AMD_ID,
278 .model_id = AMD_AM29F080,
279 .total_size = 1024,
280 .page_size = 64 * 1024,
281 .feature_bits = FEATURE_EITHER_RESET,
282 .tested = TEST_UNTESTED,
283 .probe = probe_jedec,
284 .probe_timing = TIMING_ZERO,
285 .block_erasers =
286 {
287 {
288 .eraseblocks = { {64 * 1024, 16} },
289 .block_erase = erase_sector_jedec,
290 }, {
291 .eraseblocks = { {1024 * 1024, 1} },
292 .block_erase = erase_chip_block_jedec,
293 },
294 },
295 .write = write_jedec_1,
296 .read = read_memmapped,
297 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100298 .prepare_access = prepare_memory_access,
299 .finish_access = finish_memory_access,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000300 },
301
302 {
303 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000304 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000305 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000306 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000307 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000308 .total_size = 1024,
309 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000310 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000311 .tested = TEST_UNTESTED,
312 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000313 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000314 .block_erasers =
315 {
316 {
317 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000318 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000319 }, {
320 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000321 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000322 },
323 },
Sean Nelson35727f72010-01-28 23:55:12 +0000324 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000325 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000326 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100327 .prepare_access = prepare_memory_access,
328 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +0000329 },
330
331 {
332 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000333 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000334 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000335 .manufacture_id = AMD_ID,
336 .model_id = AMD_AM29LV001BB,
337 .total_size = 128,
338 .page_size = 64 * 1024, /* unused */
339 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
340 .tested = TEST_OK_PREW,
341 .probe = probe_jedec,
342 .probe_timing = TIMING_ZERO,
343 .block_erasers =
344 {
345 {
346 .eraseblocks = {
347 {8 * 1024, 1},
348 {4 * 1024, 2},
349 {16 * 1024, 7},
350 },
351 .block_erase = erase_sector_jedec,
352 }, {
353 .eraseblocks = { {128 * 1024, 1} },
354 .block_erase = erase_chip_block_jedec,
355 },
356 },
357 .write = write_jedec_1,
358 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000359 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100360 .prepare_access = prepare_memory_access,
361 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 },
363
364 {
365 .vendor = "AMD",
366 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000367 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000368 .manufacture_id = AMD_ID,
369 .model_id = AMD_AM29LV001BT,
370 .total_size = 128,
371 .page_size = 64 * 1024, /* unused */
372 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
373 .tested = TEST_UNTESTED,
374 .probe = probe_jedec,
375 .probe_timing = TIMING_ZERO,
376 .block_erasers =
377 {
378 {
379 .eraseblocks = {
380 {16 * 1024, 7},
381 {4 * 1024, 2},
382 {8 * 1024, 1},
383 },
384 .block_erase = erase_sector_jedec,
385 }, {
386 .eraseblocks = { {128 * 1024, 1} },
387 .block_erase = erase_chip_block_jedec,
388 },
389 },
390 .write = write_jedec_1,
391 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000392 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100393 .prepare_access = prepare_memory_access,
394 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000395 },
396
397 {
398 .vendor = "AMD",
399 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000400 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000401 .manufacture_id = AMD_ID,
402 .model_id = AMD_AM29LV002BB,
403 .total_size = 256,
404 .page_size = 64 * 1024, /* unused */
405 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
406 .tested = TEST_UNTESTED,
407 .probe = probe_jedec,
408 .probe_timing = TIMING_ZERO,
409 .block_erasers =
410 {
411 {
412 .eraseblocks = {
413 {16 * 1024, 1},
414 {8 * 1024, 2},
415 {32 * 1024, 1},
416 {64 * 1024, 3},
417 },
418 .block_erase = erase_sector_jedec,
419 }, {
420 .eraseblocks = { {256 * 1024, 1} },
421 .block_erase = erase_chip_block_jedec,
422 },
423 },
424 .write = write_jedec_1,
425 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000426 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100427 .prepare_access = prepare_memory_access,
428 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000429 },
430
431 {
432 .vendor = "AMD",
433 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000434 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000435 .manufacture_id = AMD_ID,
436 .model_id = AMD_AM29LV002BT,
437 .total_size = 256,
438 .page_size = 64 * 1024, /* unused */
439 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
440 .tested = TEST_UNTESTED,
441 .probe = probe_jedec,
442 .probe_timing = TIMING_ZERO,
443 .block_erasers =
444 {
445 {
446 .eraseblocks = {
447 {64 * 1024, 3},
448 {32 * 1024, 1},
449 {8 * 1024, 2},
450 {16 * 1024, 1},
451 },
452 .block_erase = erase_sector_jedec,
453 }, {
454 .eraseblocks = { {256 * 1024, 1} },
455 .block_erase = erase_chip_block_jedec,
456 },
457 },
458 .write = write_jedec_1,
459 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000460 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100461 .prepare_access = prepare_memory_access,
462 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000463 },
464
465 {
466 .vendor = "AMD",
467 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000468 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000469 .manufacture_id = AMD_ID,
470 .model_id = AMD_AM29LV004BB,
471 .total_size = 512,
472 .page_size = 64 * 1024, /* unused */
473 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
474 .tested = TEST_UNTESTED,
475 .probe = probe_jedec,
476 .probe_timing = TIMING_ZERO,
477 .block_erasers =
478 {
479 {
480 .eraseblocks = {
481 {16 * 1024, 1},
482 {8 * 1024, 2},
483 {32 * 1024, 1},
484 {64 * 1024, 7},
485 },
486 .block_erase = erase_sector_jedec,
487 }, {
488 .eraseblocks = { {512 * 1024, 1} },
489 .block_erase = erase_chip_block_jedec,
490 },
491 },
492 .write = write_jedec_1,
493 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000494 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +0100495 .prepare_access = prepare_memory_access,
496 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000497 },
498
499 {
500 .vendor = "AMD",
501 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000502 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000503 .manufacture_id = AMD_ID,
504 .model_id = AMD_AM29LV004BT,
505 .total_size = 512,
506 .page_size = 64 * 1024, /* unused */
507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
508 .tested = TEST_UNTESTED,
509 .probe = probe_jedec,
510 .probe_timing = TIMING_ZERO,
511 .block_erasers =
512 {
513 {
514 .eraseblocks = {
515 {64 * 1024, 7},
516 {32 * 1024, 1},
517 {8 * 1024, 2},
518 {16 * 1024, 1},
519 },
520 .block_erase = erase_sector_jedec,
521 }, {
522 .eraseblocks = { {512 * 1024, 1} },
523 .block_erase = erase_chip_block_jedec,
524 },
525 },
526 .write = write_jedec_1,
527 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000528 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +0100529 .prepare_access = prepare_memory_access,
530 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000531 },
532
533 {
534 .vendor = "AMD",
535 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000536 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000537 .manufacture_id = AMD_ID,
538 .model_id = AMD_AM29LV008BB,
539 .total_size = 1024,
540 .page_size = 64 * 1024, /* unused */
541 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000542 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000543 .probe = probe_jedec,
544 .probe_timing = TIMING_ZERO,
545 .block_erasers =
546 {
547 {
548 .eraseblocks = {
549 {16 * 1024, 1},
550 {8 * 1024, 2},
551 {32 * 1024, 1},
552 {64 * 1024, 15},
553 },
554 .block_erase = erase_sector_jedec,
555 }, {
556 .eraseblocks = { {1024 * 1024, 1} },
557 .block_erase = erase_chip_block_jedec,
558 },
559 },
560 .write = write_jedec_1,
561 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000562 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100563 .prepare_access = prepare_memory_access,
564 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000565 },
566
567 {
568 .vendor = "AMD",
569 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000570 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000571 .manufacture_id = AMD_ID,
572 .model_id = AMD_AM29LV008BT,
573 .total_size = 1024,
574 .page_size = 64 * 1024, /* unused */
575 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
576 .tested = TEST_UNTESTED,
577 .probe = probe_jedec,
578 .probe_timing = TIMING_ZERO,
579 .block_erasers =
580 {
581 {
582 .eraseblocks = {
583 {64 * 1024, 15},
584 {32 * 1024, 1},
585 {8 * 1024, 2},
586 {16 * 1024, 1},
587 },
588 .block_erase = erase_sector_jedec,
589 }, {
590 .eraseblocks = { {1024 * 1024, 1} },
591 .block_erase = erase_chip_block_jedec,
592 },
593 },
594 .write = write_jedec_1,
595 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000596 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100597 .prepare_access = prepare_memory_access,
598 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000599 },
600
601 {
602 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000603 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000604 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000605 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000606 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000607 .total_size = 512,
608 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000610 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000611 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000612 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 .block_erasers =
614 {
615 {
616 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000617 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000618 }, {
619 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000620 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000621 },
622 },
Sean Nelson35727f72010-01-28 23:55:12 +0000623 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000624 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000625 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
Nico Huber9eec4072023-01-12 01:17:30 +0100626 .prepare_access = prepare_memory_access,
627 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000628 },
629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000630 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000631 .vendor = "AMD",
632 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000633 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000634 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000635 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000636 .total_size = 1024,
637 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000638 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000639 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000640 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000641 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000642 .block_erasers =
643 {
644 {
645 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000646 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000647 }, {
648 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000649 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000650 },
651 },
Sean Nelson35727f72010-01-28 23:55:12 +0000652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000653 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000654 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100655 .prepare_access = prepare_memory_access,
656 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +0000657 },
658
659 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000660 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000661 .name = "A25L010",
662 .bustype = BUS_SPI,
663 .manufacture_id = AMIC_ID_NOPREFIX,
664 .model_id = AMIC_A25L010,
665 .total_size = 128,
666 .page_size = 256,
667 .feature_bits = FEATURE_WRSR_WREN,
668 .tested = TEST_UNTESTED,
669 .probe = probe_spi_rdid,
670 .probe_timing = TIMING_ZERO,
671 .block_erasers =
672 {
673 {
674 .eraseblocks = { { 4 * 1024, 32 } },
675 .block_erase = spi_block_erase_20,
676 }, {
677 .eraseblocks = { { 64 * 1024, 2 } },
678 .block_erase = spi_block_erase_d8,
679 }, {
680 .eraseblocks = { { 128 * 1024, 1 } },
681 .block_erase = spi_block_erase_c7,
682 }
683 },
684 .printlock = spi_prettyprint_status_register_bp2_srwd,
685 .unlock = spi_disable_blockprotect,
686 .write = spi_chip_write_256,
687 .read = spi_chip_read,
688 .voltage = {2700, 3600},
689 },
690
691 {
692 .vendor = "AMIC",
693 .name = "A25L016",
694 .bustype = BUS_SPI,
695 .manufacture_id = AMIC_ID_NOPREFIX,
696 .model_id = AMIC_A25L016,
697 .total_size = 2048,
698 .page_size = 256,
699 .feature_bits = FEATURE_WRSR_WREN,
700 .tested = TEST_UNTESTED,
701 .probe = probe_spi_rdid,
702 .probe_timing = TIMING_ZERO,
703 .block_erasers =
704 {
705 {
706 .eraseblocks = { { 4 * 1024, 512 } },
707 .block_erase = spi_block_erase_20,
708 }, {
709 .eraseblocks = { { 64 * 1024, 32 } },
710 .block_erase = spi_block_erase_d8,
711 }, {
712 .eraseblocks = { { 2048 * 1024, 1 } },
713 .block_erase = spi_block_erase_c7,
714 }
715 },
716 .printlock = spi_prettyprint_status_register_bp2_srwd,
717 .unlock = spi_disable_blockprotect,
718 .write = spi_chip_write_256,
719 .read = spi_chip_read,
720 .voltage = {2700, 3600},
721 },
722
723 {
724 .vendor = "AMIC",
725 .name = "A25L020",
726 .bustype = BUS_SPI,
727 .manufacture_id = AMIC_ID_NOPREFIX,
728 .model_id = AMIC_A25L020,
729 .total_size = 256,
730 .page_size = 256,
731 .feature_bits = FEATURE_WRSR_WREN,
732 .tested = TEST_UNTESTED,
733 .probe = probe_spi_rdid,
734 .probe_timing = TIMING_ZERO,
735 .block_erasers =
736 {
737 {
738 .eraseblocks = { { 4 * 1024, 64 } },
739 .block_erase = spi_block_erase_20,
740 }, {
741 .eraseblocks = { { 64 * 1024, 4 } },
742 .block_erase = spi_block_erase_d8,
743 }, {
744 .eraseblocks = { { 256 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_bp2_srwd,
749 .unlock = spi_disable_blockprotect,
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L032",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L032,
761 .total_size = 4096,
762 .page_size = 256,
763 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
765 .tested = TEST_OK_PREW,
766 .probe = probe_spi_rdid,
767 .probe_timing = TIMING_ZERO,
768 .block_erasers =
769 {
770 {
771 .eraseblocks = { { 4 * 1024, 1024 } },
772 .block_erase = spi_block_erase_20,
773 }, {
774 .eraseblocks = { { 64 * 1024, 64 } },
775 .block_erase = spi_block_erase_52,
776 }, {
777 .eraseblocks = { { 64 * 1024, 64 } },
778 .block_erase = spi_block_erase_d8,
779 }, {
780 .eraseblocks = { { 4096 * 1024, 1 } },
781 .block_erase = spi_block_erase_60,
782 }, {
783 .eraseblocks = { { 4096 * 1024, 1 } },
784 .block_erase = spi_block_erase_c7,
785 }
786 },
787 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
788 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
789 .write = spi_chip_write_256,
790 .read = spi_chip_read,
791 .voltage = {2700, 3600},
792 },
793
794 {
795 .vendor = "AMIC",
796 .name = "A25L040",
797 .bustype = BUS_SPI,
798 .manufacture_id = AMIC_ID_NOPREFIX,
799 .model_id = AMIC_A25L040,
800 .total_size = 512,
801 .page_size = 256,
802 .feature_bits = FEATURE_WRSR_WREN,
803 .tested = TEST_UNTESTED,
804 .probe = probe_spi_rdid,
805 .probe_timing = TIMING_ZERO,
806 .block_erasers =
807 {
808 {
809 .eraseblocks = { { 4 * 1024, 128 } },
810 .block_erase = spi_block_erase_20,
811 }, {
812 .eraseblocks = { { 64 * 1024, 8 } },
813 .block_erase = spi_block_erase_d8,
814 }, {
815 .eraseblocks = { { 512 * 1024, 1 } },
816 .block_erase = spi_block_erase_c7,
817 }
818 },
819 .printlock = spi_prettyprint_status_register_bp2_srwd,
820 .unlock = spi_disable_blockprotect,
821 .write = spi_chip_write_256,
822 .read = spi_chip_read,
823 .voltage = {2700, 3600},
824 },
825
826 {
827 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000828 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000829 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .manufacture_id = AMIC_ID,
831 .model_id = AMIC_A25L05PT,
832 .total_size = 64,
833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000834 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000835 .tested = TEST_UNTESTED,
836 .probe = probe_spi_rdid4,
837 .probe_timing = TIMING_ZERO,
838 .block_erasers =
839 {
840 {
841 .eraseblocks = {
842 {32 * 1024, 1},
843 {16 * 1024, 1},
844 {8 * 1024, 1},
845 {4 * 1024, 2},
846 },
847 .block_erase = spi_block_erase_d8,
848 }, {
849 .eraseblocks = { {64 * 1024, 1} },
850 .block_erase = spi_block_erase_c7,
851 }
852 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000853 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000854 .unlock = spi_disable_blockprotect,
855 .write = spi_chip_write_256,
856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000857 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000858 },
859
860 {
861 .vendor = "AMIC",
862 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000863 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000864 .manufacture_id = AMIC_ID,
865 .model_id = AMIC_A25L05PU,
866 .total_size = 64,
867 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000868 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000869 .tested = TEST_UNTESTED,
870 .probe = probe_spi_rdid4,
871 .probe_timing = TIMING_ZERO,
872 .block_erasers =
873 {
874 {
875 .eraseblocks = {
876 {4 * 1024, 2},
877 {8 * 1024, 1},
878 {16 * 1024, 1},
879 {32 * 1024, 1},
880 },
881 .block_erase = spi_block_erase_d8,
882 }, {
883 .eraseblocks = { {64 * 1024, 1} },
884 .block_erase = spi_block_erase_c7,
885 }
886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000887 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000888 .unlock = spi_disable_blockprotect,
889 .write = spi_chip_write_256,
890 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000891 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000892 },
893
894 {
895 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000896 .name = "A25L080",
897 .bustype = BUS_SPI,
898 .manufacture_id = AMIC_ID_NOPREFIX,
899 .model_id = AMIC_A25L080,
900 .total_size = 1024,
901 .page_size = 256,
902 .feature_bits = FEATURE_WRSR_WREN,
903 .tested = TEST_UNTESTED,
904 .probe = probe_spi_rdid,
905 .probe_timing = TIMING_ZERO,
906 .block_erasers =
907 {
908 {
909 .eraseblocks = { { 4 * 1024, 256 } },
910 .block_erase = spi_block_erase_20,
911 }, {
912 .eraseblocks = { { 64 * 1024, 16 } },
913 .block_erase = spi_block_erase_d8,
914 }, {
915 .eraseblocks = { { 1024 * 1024, 1 } },
916 .block_erase = spi_block_erase_c7,
917 }
918 },
919 .printlock = spi_prettyprint_status_register_bp2_srwd,
920 .unlock = spi_disable_blockprotect,
921 .write = spi_chip_write_256,
922 .read = spi_chip_read,
923 .voltage = {2700, 3600},
924 },
925
926 {
927 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000929 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000930 .manufacture_id = AMIC_ID,
931 .model_id = AMIC_A25L10PT,
932 .total_size = 128,
933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000934 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000935 .tested = TEST_UNTESTED,
936 .probe = probe_spi_rdid4,
937 .probe_timing = TIMING_ZERO,
938 .block_erasers =
939 {
940 {
941 .eraseblocks = {
942 {64 * 1024, 1},
943 {32 * 1024, 1},
944 {16 * 1024, 1},
945 {8 * 1024, 1},
946 {4 * 1024, 2},
947 },
948 .block_erase = spi_block_erase_d8,
949 }, {
950 .eraseblocks = { {128 * 1024, 1} },
951 .block_erase = spi_block_erase_c7,
952 }
953 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000954 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 .unlock = spi_disable_blockprotect,
956 .write = spi_chip_write_256,
957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000958 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000959 },
960
961 {
962 .vendor = "AMIC",
963 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000964 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000965 .manufacture_id = AMIC_ID,
966 .model_id = AMIC_A25L10PU,
967 .total_size = 128,
968 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000969 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000970 .tested = TEST_UNTESTED,
971 .probe = probe_spi_rdid4,
972 .probe_timing = TIMING_ZERO,
973 .block_erasers =
974 {
975 {
976 .eraseblocks = {
977 {4 * 1024, 2},
978 {8 * 1024, 1},
979 {16 * 1024, 1},
980 {32 * 1024, 1},
981 {64 * 1024, 1},
982 },
983 .block_erase = spi_block_erase_d8,
984 }, {
985 .eraseblocks = { {128 * 1024, 1} },
986 .block_erase = spi_block_erase_c7,
987 }
988 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000989 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000990 .unlock = spi_disable_blockprotect,
991 .write = spi_chip_write_256,
992 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000993 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000994 },
995
996 {
997 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000998 .name = "A25L16PT",
999 .bustype = BUS_SPI,
1000 .manufacture_id = AMIC_ID,
1001 .model_id = AMIC_A25L16PT,
1002 .total_size = 2048,
1003 .page_size = 256,
1004 .feature_bits = FEATURE_WRSR_WREN,
1005 .tested = TEST_UNTESTED,
1006 .probe = probe_spi_rdid4,
1007 .probe_timing = TIMING_ZERO,
1008 .block_erasers =
1009 {
1010 {
1011 .eraseblocks = {
1012 {64 * 1024, 31},
1013 {32 * 1024, 1},
1014 {16 * 1024, 1},
1015 {8 * 1024, 1},
1016 {4 * 1024, 2},
1017 },
1018 .block_erase = spi_block_erase_d8,
1019 }, {
1020 .eraseblocks = { {2048 * 1024, 1} },
1021 .block_erase = spi_block_erase_60,
1022 }, {
1023 .eraseblocks = { {2048 * 1024, 1} },
1024 .block_erase = spi_block_erase_c7,
1025 }
1026 },
1027 .printlock = spi_prettyprint_status_register_bp2_srwd,
1028 .unlock = spi_disable_blockprotect,
1029 .write = spi_chip_write_256,
1030 .read = spi_chip_read,
1031 .voltage = {2700, 3600},
1032 },
1033
1034 {
1035 .vendor = "AMIC",
1036 .name = "A25L16PU",
1037 .bustype = BUS_SPI,
1038 .manufacture_id = AMIC_ID,
1039 .model_id = AMIC_A25L16PU,
1040 .total_size = 2048,
1041 .page_size = 256,
1042 .feature_bits = FEATURE_WRSR_WREN,
1043 .tested = TEST_OK_PR,
1044 .probe = probe_spi_rdid4,
1045 .probe_timing = TIMING_ZERO,
1046 .block_erasers =
1047 {
1048 {
1049 .eraseblocks = {
1050 {4 * 1024, 2},
1051 {8 * 1024, 1},
1052 {16 * 1024, 1},
1053 {32 * 1024, 1},
1054 {64 * 1024, 31},
1055 },
1056 .block_erase = spi_block_erase_d8,
1057 }, {
1058 .eraseblocks = { {2048 * 1024, 1} },
1059 .block_erase = spi_block_erase_60,
1060 }, {
1061 .eraseblocks = { {2048 * 1024, 1} },
1062 .block_erase = spi_block_erase_c7,
1063 }
1064 },
1065 .printlock = spi_prettyprint_status_register_bp2_srwd,
1066 .unlock = spi_disable_blockprotect,
1067 .write = spi_chip_write_256,
1068 .read = spi_chip_read,
1069 .voltage = {2700, 3600},
1070 },
1071
1072 {
1073 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001074 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001075 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001076 .manufacture_id = AMIC_ID,
1077 .model_id = AMIC_A25L20PT,
1078 .total_size = 256,
1079 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001080 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001081 .tested = TEST_UNTESTED,
1082 .probe = probe_spi_rdid4,
1083 .probe_timing = TIMING_ZERO,
1084 .block_erasers =
1085 {
1086 {
1087 .eraseblocks = {
1088 {64 * 1024, 3},
1089 {32 * 1024, 1},
1090 {16 * 1024, 1},
1091 {8 * 1024, 1},
1092 {4 * 1024, 2},
1093 },
1094 .block_erase = spi_block_erase_d8,
1095 }, {
1096 .eraseblocks = { {256 * 1024, 1} },
1097 .block_erase = spi_block_erase_c7,
1098 }
1099 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001100 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 .unlock = spi_disable_blockprotect,
1102 .write = spi_chip_write_256,
1103 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001104 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001105 },
1106
1107 {
1108 .vendor = "AMIC",
1109 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001110 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001111 .manufacture_id = AMIC_ID,
1112 .model_id = AMIC_A25L20PU,
1113 .total_size = 256,
1114 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001115 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001116 .tested = TEST_UNTESTED,
1117 .probe = probe_spi_rdid4,
1118 .probe_timing = TIMING_ZERO,
1119 .block_erasers =
1120 {
1121 {
1122 .eraseblocks = {
1123 {4 * 1024, 2},
1124 {8 * 1024, 1},
1125 {16 * 1024, 1},
1126 {32 * 1024, 1},
1127 {64 * 1024, 3},
1128 },
1129 .block_erase = spi_block_erase_d8,
1130 }, {
1131 .eraseblocks = { {256 * 1024, 1} },
1132 .block_erase = spi_block_erase_c7,
1133 }
1134 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001135 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001136 .unlock = spi_disable_blockprotect,
1137 .write = spi_chip_write_256,
1138 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001139 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001140 },
1141
1142 /* The A25L40P{T,U} chips are distinguished by their
1143 * erase block layouts, but without any distinction in RDID.
1144 * This inexplicable quirk was verified by Rudolf Marek
Nico Huberc3b02dc2023-08-12 01:13:45 +02001145 * and discussed on the flashprog mailing list on 2010-07-12.
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001146 */
1147 {
1148 .vendor = "AMIC",
1149 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001150 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001151 .manufacture_id = AMIC_ID,
1152 .model_id = AMIC_A25L40PT,
1153 .total_size = 512,
1154 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001155 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001156 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001157 .probe = probe_spi_rdid4,
1158 .probe_timing = TIMING_ZERO,
1159 .block_erasers =
1160 {
1161 {
1162 .eraseblocks = {
1163 {64 * 1024, 7},
1164 {32 * 1024, 1},
1165 {16 * 1024, 1},
1166 {8 * 1024, 1},
1167 {4 * 1024, 2},
1168 },
1169 .block_erase = spi_block_erase_d8,
1170 }, {
1171 .eraseblocks = { {512 * 1024, 1} },
1172 .block_erase = spi_block_erase_c7,
1173 }
1174 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001175 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 .unlock = spi_disable_blockprotect,
1177 .write = spi_chip_write_256,
1178 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001179 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001180 },
1181
1182 {
1183 .vendor = "AMIC",
1184 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001185 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001186 .manufacture_id = AMIC_ID,
1187 .model_id = AMIC_A25L40PU,
1188 .total_size = 512,
1189 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001190 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001191 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001192 .probe = probe_spi_rdid4,
1193 .probe_timing = TIMING_ZERO,
1194 .block_erasers =
1195 {
1196 {
1197 .eraseblocks = {
1198 {4 * 1024, 2},
1199 {8 * 1024, 1},
1200 {16 * 1024, 1},
1201 {32 * 1024, 1},
1202 {64 * 1024, 7},
1203 },
1204 .block_erase = spi_block_erase_d8,
1205 }, {
1206 .eraseblocks = { {512 * 1024, 1} },
1207 .block_erase = spi_block_erase_c7,
1208 }
1209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001210 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001211 .unlock = spi_disable_blockprotect,
1212 .write = spi_chip_write_256,
1213 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001214 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001215 },
1216
1217 {
1218 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001219 .name = "A25L512",
1220 .bustype = BUS_SPI,
1221 .manufacture_id = AMIC_ID_NOPREFIX,
1222 .model_id = AMIC_A25L512,
1223 .total_size = 64,
1224 .page_size = 256,
1225 .feature_bits = FEATURE_WRSR_WREN,
1226 .tested = TEST_UNTESTED,
1227 .probe = probe_spi_rdid,
1228 .probe_timing = TIMING_ZERO,
1229 .block_erasers =
1230 {
1231 {
1232 .eraseblocks = { { 4 * 1024, 16 } },
1233 .block_erase = spi_block_erase_20,
1234 }, {
1235 .eraseblocks = { { 64 * 1024, 1 } },
1236 .block_erase = spi_block_erase_d8,
1237 }, {
1238 .eraseblocks = { { 64 * 1024, 1 } },
1239 .block_erase = spi_block_erase_c7,
1240 }
1241 },
1242 .printlock = spi_prettyprint_status_register_bp2_srwd,
1243 .unlock = spi_disable_blockprotect,
1244 .write = spi_chip_write_256,
1245 .read = spi_chip_read,
1246 .voltage = {2700, 3600},
1247 },
1248
1249 {
1250 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001251 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001252 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001253 .manufacture_id = AMIC_ID,
1254 .model_id = AMIC_A25L80P,
1255 .total_size = 1024,
1256 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001257 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001258 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001259 .probe = probe_spi_rdid4,
1260 .probe_timing = TIMING_ZERO,
1261 .block_erasers =
1262 {
1263 {
1264 .eraseblocks = {
1265 {4 * 1024, 2},
1266 {8 * 1024, 1},
1267 {16 * 1024, 1},
1268 {32 * 1024, 1},
1269 {64 * 1024, 15},
1270 },
1271 .block_erase = spi_block_erase_d8,
1272 }, {
1273 .eraseblocks = { {1024 * 1024, 1} },
1274 .block_erase = spi_block_erase_c7,
1275 }
1276 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001277 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001278 .unlock = spi_disable_blockprotect,
1279 .write = spi_chip_write_256,
1280 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001281 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001282 },
1283
1284 {
1285 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001286 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001287 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001288 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001289 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001290 .total_size = 4096,
1291 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001292 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001293 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001295 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001296 .probe = probe_spi_rdid,
1297 .probe_timing = TIMING_ZERO,
1298 .block_erasers =
1299 {
1300 {
1301 .eraseblocks = { { 4 * 1024, 1024 } },
1302 .block_erase = spi_block_erase_20,
1303 }, {
1304 .eraseblocks = { { 64 * 1024, 64 } },
1305 .block_erase = spi_block_erase_52,
1306 }, {
1307 .eraseblocks = { { 64 * 1024, 64 } },
1308 .block_erase = spi_block_erase_d8,
1309 }, {
1310 .eraseblocks = { { 4096 * 1024, 1 } },
1311 .block_erase = spi_block_erase_60,
1312 }, {
1313 .eraseblocks = { { 4096 * 1024, 1 } },
1314 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001315 }
Dan Lenski11617122010-07-29 15:00:40 +00001316 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001317 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1318 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001319 .write = spi_chip_write_256,
1320 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001321 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001322 },
1323
1324 {
1325 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001326 .name = "A25LQ16",
1327 .bustype = BUS_SPI,
1328 .manufacture_id = AMIC_ID_NOPREFIX,
1329 .model_id = AMIC_A25LQ16,
1330 .total_size = 2048,
1331 .page_size = 256,
1332 /* supports SFDP */
1333 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1334 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1335 .tested = TEST_UNTESTED,
1336 .probe = probe_spi_rdid,
1337 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001338 .block_erasers =
1339 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001340 {
1341 .eraseblocks = { { 4 * 1024, 512 } },
1342 .block_erase = spi_block_erase_20,
1343 }, {
1344 .eraseblocks = { { 64 * 1024, 32 } },
1345 .block_erase = spi_block_erase_52,
1346 }, {
1347 .eraseblocks = { { 64 * 1024, 32 } },
1348 .block_erase = spi_block_erase_d8,
1349 }, {
1350 .eraseblocks = { { 2048 * 1024, 1 } },
1351 .block_erase = spi_block_erase_60,
1352 }, {
1353 .eraseblocks = { { 2048 * 1024, 1 } },
1354 .block_erase = spi_block_erase_c7,
1355 }
1356 },
1357 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1358 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1359 .write = spi_chip_write_256,
1360 .read = spi_chip_read,
1361 .voltage = {2700, 3600},
1362 },
1363
1364 {
1365 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001366 .name = "A25LQ64",
1367 .bustype = BUS_SPI,
1368 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001369 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001370 .total_size = 8192,
1371 .page_size = 256,
1372 /* supports SFDP */
1373 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01001374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
1375 FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT |
1376 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO |
1377 FEATURE_QPI_35_F5,
1378 .dummy_cycles =
1379 {
1380 .qpi_fast_read = 4,
1381 .qpi_fast_read_qio = 6,
1382 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001383 .tested = TEST_UNTESTED,
1384 .probe = probe_spi_rdid,
1385 .probe_timing = TIMING_ZERO,
1386 .block_erasers =
1387 {
1388 {
1389 .eraseblocks = { { 4 * 1024, 2048 } },
1390 .block_erase = spi_block_erase_20,
1391 }, {
1392 .eraseblocks = { { 32 * 1024, 256 } },
1393 .block_erase = spi_block_erase_52,
1394 }, {
1395 .eraseblocks = { { 64 * 1024, 128 } },
1396 .block_erase = spi_block_erase_d8,
1397 }, {
1398 .eraseblocks = { { 8192 * 1024, 1 } },
1399 .block_erase = spi_block_erase_60,
1400 }, {
1401 .eraseblocks = { { 8192 * 1024, 1 } },
1402 .block_erase = spi_block_erase_c7,
1403 }
1404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001405 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001406 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001407 .write = spi_chip_write_256,
1408 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001409 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001410 },
1411
1412 {
1413 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001415 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001416 .manufacture_id = AMIC_ID_NOPREFIX,
1417 .model_id = AMIC_A29002B,
1418 .total_size = 256,
1419 .page_size = 64 * 1024,
1420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1421 .tested = TEST_UNTESTED,
1422 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001423 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001424 .block_erasers =
1425 {
1426 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001427 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 {16 * 1024, 1},
1429 {8 * 1024, 2},
1430 {32 * 1024, 1},
1431 {64 * 1024, 3},
1432 },
1433 .block_erase = erase_sector_jedec,
1434 }, {
1435 .eraseblocks = { {256 * 1024, 1} },
1436 .block_erase = erase_chip_block_jedec,
1437 },
1438 },
1439 .write = write_jedec_1,
1440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001441 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001442 .prepare_access = prepare_memory_access,
1443 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001444 },
1445
1446 {
1447 .vendor = "AMIC",
1448 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001449 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001450 .manufacture_id = AMIC_ID_NOPREFIX,
1451 .model_id = AMIC_A29002T,
1452 .total_size = 256,
1453 .page_size = 64 * 1024,
1454 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001455 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001456 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001457 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001458 .block_erasers =
1459 {
1460 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001461 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001462 {64 * 1024, 3},
1463 {32 * 1024, 1},
1464 {8 * 1024, 2},
1465 {16 * 1024, 1},
1466 },
1467 .block_erase = erase_sector_jedec,
1468 }, {
1469 .eraseblocks = { {256 * 1024, 1} },
1470 .block_erase = erase_chip_block_jedec,
1471 },
1472 },
1473 .write = write_jedec_1,
1474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001475 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001476 .prepare_access = prepare_memory_access,
1477 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001478 },
1479
1480 {
1481 .vendor = "AMIC",
1482 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001483 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001484 .manufacture_id = AMIC_ID_NOPREFIX,
1485 .model_id = AMIC_A29040B,
1486 .total_size = 512,
1487 .page_size = 64 * 1024,
1488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001489 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001490 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001491 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001492 .block_erasers =
1493 {
1494 {
1495 .eraseblocks = { {64 * 1024, 8} },
1496 .block_erase = erase_sector_jedec,
1497 }, {
1498 .eraseblocks = { {512 * 1024, 1} },
1499 .block_erase = erase_chip_block_jedec,
1500 },
1501 },
1502 .write = write_jedec_1,
1503 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001504 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001505 .prepare_access = prepare_memory_access,
1506 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001507 },
1508
1509 {
1510 .vendor = "AMIC",
1511 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001512 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001513 .manufacture_id = AMIC_ID_NOPREFIX,
1514 .model_id = AMIC_A49LF040A,
1515 .total_size = 512,
1516 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +01001517 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001518 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001519 .probe = probe_jedec,
1520 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1521 .block_erasers =
1522 {
1523 {
1524 .eraseblocks = { {64 * 1024, 8} },
1525 .block_erase = erase_block_jedec,
1526 }, {
1527 .eraseblocks = { {512 * 1024, 1} },
1528 .block_erase = erase_chip_block_jedec,
1529 }
1530 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001531 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001532 .write = write_jedec_1,
1533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001534 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01001535 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01001536 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001537 },
1538
1539 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001540 .vendor = "Atmel",
1541 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001542 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001543 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001544 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001545 .total_size = 256,
1546 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001547 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1548 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001549 .tested = TEST_UNTESTED,
1550 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001551 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001552 .block_erasers =
1553 {
1554 {
1555 .eraseblocks = { {4 * 1024, 64} },
1556 .block_erase = spi_block_erase_20,
1557 }, {
1558 .eraseblocks = { {32 * 1024, 8} },
1559 .block_erase = spi_block_erase_52,
1560 }, {
1561 .eraseblocks = { {64 * 1024, 4} },
1562 .block_erase = spi_block_erase_d8,
1563 }, {
1564 .eraseblocks = { {256 * 1024, 1} },
1565 .block_erase = spi_block_erase_60,
1566 }, {
1567 .eraseblocks = { {256 * 1024, 1} },
1568 .block_erase = spi_block_erase_c7,
1569 }
1570 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001572 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001573 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001574 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001575 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001576 },
1577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001578 {
1579 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001580 .name = "AT25DF021A",
1581 .bustype = BUS_SPI,
1582 .manufacture_id = ATMEL_ID,
1583 .model_id = ATMEL_AT25DF021A,
1584 .total_size = 256,
1585 .page_size = 256,
1586 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1588 .tested = TEST_OK_PREW,
1589 .probe = probe_spi_rdid,
1590 .probe_timing = TIMING_ZERO,
1591 .block_erasers =
1592 {
1593 {
1594 .eraseblocks = { {4 * 1024, 64} },
1595 .block_erase = spi_block_erase_20,
1596 }, {
1597 .eraseblocks = { {32 * 1024, 8} },
1598 .block_erase = spi_block_erase_52,
1599 }, {
1600 .eraseblocks = { {64 * 1024, 4} },
1601 .block_erase = spi_block_erase_d8,
1602 }, {
1603 .eraseblocks = { {256 * 1024, 1} },
1604 .block_erase = spi_block_erase_60,
1605 }, {
1606 .eraseblocks = { {256 * 1024, 1} },
1607 .block_erase = spi_block_erase_c7,
1608 }
1609 },
1610 .printlock = spi_prettyprint_status_register_at25df,
1611 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1612 .write = spi_chip_write_256,
1613 .read = spi_chip_read,
1614 .voltage = {1650, 3600},
1615 },
1616
1617 {
1618 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001619 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001620 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001621 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001622 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001623 .total_size = 512,
1624 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001625 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001626 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001627 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001628 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001629 .block_erasers =
1630 {
1631 {
1632 .eraseblocks = { {4 * 1024, 128} },
1633 .block_erase = spi_block_erase_20,
1634 }, {
1635 .eraseblocks = { {32 * 1024, 16} },
1636 .block_erase = spi_block_erase_52,
1637 }, {
1638 .eraseblocks = { {64 * 1024, 8} },
1639 .block_erase = spi_block_erase_d8,
1640 }, {
1641 .eraseblocks = { {512 * 1024, 1} },
1642 .block_erase = spi_block_erase_60,
1643 }, {
1644 .eraseblocks = { {512 * 1024, 1} },
1645 .block_erase = spi_block_erase_c7,
1646 }
1647 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001648 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001649 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001650 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001651 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001652 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001653 },
1654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001655 {
1656 .vendor = "Atmel",
1657 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001659 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001660 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .total_size = 1024,
1662 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001663 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .tested = TEST_UNTESTED,
1665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001666 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001667 .block_erasers =
1668 {
1669 {
1670 .eraseblocks = { {4 * 1024, 256} },
1671 .block_erase = spi_block_erase_20,
1672 }, {
1673 .eraseblocks = { {32 * 1024, 32} },
1674 .block_erase = spi_block_erase_52,
1675 }, {
1676 .eraseblocks = { {64 * 1024, 16} },
1677 .block_erase = spi_block_erase_d8,
1678 }, {
1679 .eraseblocks = { {1024 * 1024, 1} },
1680 .block_erase = spi_block_erase_60,
1681 }, {
1682 .eraseblocks = { {1024 * 1024, 1} },
1683 .block_erase = spi_block_erase_c7,
1684 }
1685 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001686 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001687 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001688 .write = spi_chip_write_256,
1689 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001690 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001691 },
1692
1693 {
1694 .vendor = "Atmel",
1695 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001696 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001697 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001698 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001699 .total_size = 1024,
1700 .page_size = 256,
1701 .feature_bits = FEATURE_WRSR_WREN,
1702 .tested = TEST_UNTESTED,
1703 .probe = probe_spi_rdid,
1704 .probe_timing = TIMING_ZERO,
1705 .block_erasers =
1706 {
1707 {
1708 .eraseblocks = { {4 * 1024, 256} },
1709 .block_erase = spi_block_erase_20,
1710 }, {
1711 .eraseblocks = { {32 * 1024, 32} },
1712 .block_erase = spi_block_erase_52,
1713 }, {
1714 .eraseblocks = { {64 * 1024, 16} },
1715 .block_erase = spi_block_erase_d8,
1716 }, {
1717 .eraseblocks = { {1024 * 1024, 1} },
1718 .block_erase = spi_block_erase_60,
1719 }, {
1720 .eraseblocks = { {1024 * 1024, 1} },
1721 .block_erase = spi_block_erase_c7,
1722 }
1723 },
1724 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001725 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001726 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001727 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001728 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001729 },
1730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001731 {
1732 .vendor = "Atmel",
1733 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001734 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001735 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001736 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 .total_size = 2048,
1738 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001739 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001740 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001741 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001742 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001743 .block_erasers =
1744 {
1745 {
1746 .eraseblocks = { {4 * 1024, 512} },
1747 .block_erase = spi_block_erase_20,
1748 }, {
1749 .eraseblocks = { {32 * 1024, 64} },
1750 .block_erase = spi_block_erase_52,
1751 }, {
1752 .eraseblocks = { {64 * 1024, 32} },
1753 .block_erase = spi_block_erase_d8,
1754 }, {
1755 .eraseblocks = { {2 * 1024 * 1024, 1} },
1756 .block_erase = spi_block_erase_60,
1757 }, {
1758 .eraseblocks = { {2 * 1024 * 1024, 1} },
1759 .block_erase = spi_block_erase_c7,
1760 }
1761 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001762 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001763 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001764 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001767 },
1768
Alan Green86bf6ab2019-06-27 16:58:20 +10001769 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001770 {
1771 .vendor = "Atmel",
1772 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001773 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001774 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001775 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001776 .total_size = 4096,
1777 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001778 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001779 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001780 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001781 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001782 .block_erasers =
1783 {
1784 {
1785 .eraseblocks = { {4 * 1024, 1024} },
1786 .block_erase = spi_block_erase_20,
1787 }, {
1788 .eraseblocks = { {32 * 1024, 128} },
1789 .block_erase = spi_block_erase_52,
1790 }, {
1791 .eraseblocks = { {64 * 1024, 64} },
1792 .block_erase = spi_block_erase_d8,
1793 }, {
1794 .eraseblocks = { {4 * 1024 * 1024, 1} },
1795 .block_erase = spi_block_erase_60,
1796 }, {
1797 .eraseblocks = { {4 * 1024 * 1024, 1} },
1798 .block_erase = spi_block_erase_c7,
1799 }
1800 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001802 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001803 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001804 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001805 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001806 },
1807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001808 {
1809 .vendor = "Atmel",
1810 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 4096,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001818 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 1024} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 128} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {64 * 1024, 64} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {4 * 1024 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {4 * 1024 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
1838 }
1839 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001840 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001841 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001842 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001843 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001844 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001845 },
1846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001847 {
1848 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001849 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001850 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001851 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001852 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001853 .total_size = 8192,
1854 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001855 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001856 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001858 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001859 .block_erasers =
1860 {
1861 {
1862 .eraseblocks = { {4 * 1024, 2048} },
1863 .block_erase = spi_block_erase_20,
1864 }, {
1865 .eraseblocks = { {32 * 1024, 256} },
1866 .block_erase = spi_block_erase_52,
1867 }, {
1868 .eraseblocks = { {64 * 1024, 128} },
1869 .block_erase = spi_block_erase_d8,
1870 }, {
1871 .eraseblocks = { {8 * 1024 * 1024, 1} },
1872 .block_erase = spi_block_erase_60,
1873 }, {
1874 .eraseblocks = { {8 * 1024 * 1024, 1} },
1875 .block_erase = spi_block_erase_c7,
1876 }
1877 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001878 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001879 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001880 .write = spi_chip_write_256,
1881 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001882 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001883 },
1884
1885 {
1886 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001887 .name = "AT25DL081",
1888 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001889 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001890 .model_id = ATMEL_AT25DF081,
1891 .total_size = 1024,
1892 .page_size = 256,
1893 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1895 .tested = TEST_UNTESTED,
1896 .probe = probe_spi_rdid,
1897 .probe_timing = TIMING_ZERO,
1898 .block_erasers =
1899 {
1900 {
1901 .eraseblocks = { {4 * 1024, 256} },
1902 .block_erase = spi_block_erase_20,
1903 }, {
1904 .eraseblocks = { {32 * 1024, 32} },
1905 .block_erase = spi_block_erase_52,
1906 }, {
1907 .eraseblocks = { {64 * 1024, 16} },
1908 .block_erase = spi_block_erase_d8,
1909 }, {
1910 .eraseblocks = { {1 * 1024 * 1024, 1} },
1911 .block_erase = spi_block_erase_60,
1912 }, {
1913 .eraseblocks = { {1 * 1024 * 1024, 1} },
1914 .block_erase = spi_block_erase_c7,
1915 }
1916 },
1917 .printlock = spi_prettyprint_status_register_at25df_sec,
1918 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1919 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1920 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1921 .voltage = {1650, 1950},
1922 },
1923
1924 {
1925 .vendor = "Atmel",
1926 .name = "AT25DL161",
1927 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001928 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001929 .model_id = ATMEL_AT25DL161,
1930 .total_size = 2048,
1931 .page_size = 256,
1932 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1933 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
1936 .probe_timing = TIMING_ZERO,
1937 .block_erasers =
1938 {
1939 {
1940 .eraseblocks = { {4 * 1024, 512} },
1941 .block_erase = spi_block_erase_20,
1942 }, {
1943 .eraseblocks = { {32 * 1024, 64} },
1944 .block_erase = spi_block_erase_52,
1945 }, {
1946 .eraseblocks = { {64 * 1024, 32} },
1947 .block_erase = spi_block_erase_d8,
1948 }, {
1949 .eraseblocks = { {2 * 1024 * 1024, 1} },
1950 .block_erase = spi_block_erase_60,
1951 }, {
1952 .eraseblocks = { {2 * 1024 * 1024, 1} },
1953 .block_erase = spi_block_erase_c7,
1954 }
1955 },
1956 .printlock = spi_prettyprint_status_register_at25df_sec,
1957 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1958 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1959 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1960 .voltage = {1650, 1950},
1961 },
1962
1963 {
1964 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001965 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001966 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001967 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001968 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001969 .total_size = 2048,
1970 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001971 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001973 .tested = TEST_UNTESTED,
1974 .probe = probe_spi_rdid,
1975 .probe_timing = TIMING_ZERO,
1976 .block_erasers =
1977 {
1978 {
1979 .eraseblocks = { {4 * 1024, 512} },
1980 .block_erase = spi_block_erase_20,
1981 }, {
1982 .eraseblocks = { {32 * 1024, 64} },
1983 .block_erase = spi_block_erase_52,
1984 }, {
1985 .eraseblocks = { {64 * 1024, 32} },
1986 .block_erase = spi_block_erase_d8,
1987 }, {
1988 .eraseblocks = { {2 * 1024 * 1024, 1} },
1989 .block_erase = spi_block_erase_60,
1990 }, {
1991 .eraseblocks = { {2 * 1024 * 1024, 1} },
1992 .block_erase = spi_block_erase_c7,
1993 }
1994 },
1995 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001996 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001997 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001998 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002000 },
2001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002002 {
2003 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002004 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2005 * All other properties seem to be the same.*/
2006 .name = "AT25F1024(A)",
2007 .bustype = BUS_SPI,
2008 .manufacture_id = ATMEL_ID,
2009 .model_id = ATMEL_AT25F1024,
2010 .total_size = 128,
2011 .page_size = 256,
2012 .feature_bits = FEATURE_WRSR_WREN,
2013 .tested = TEST_OK_PREW,
2014 .probe = probe_spi_at25f,
2015 .probe_timing = TIMING_ZERO,
2016 .block_erasers =
2017 {
2018 {
2019 .eraseblocks = { {32 * 1024, 4} },
2020 .block_erase = spi_block_erase_52,
2021 }, {
2022 .eraseblocks = { {128 * 1024, 1} },
2023 .block_erase = spi_block_erase_62,
2024 }
2025 },
2026 .printlock = spi_prettyprint_status_register_at25f,
2027 .unlock = spi_disable_blockprotect_at25f,
2028 .write = spi_chip_write_256,
2029 .read = spi_chip_read,
2030 .voltage = {2700, 3600},
2031 },
2032
2033 {
2034 .vendor = "Atmel",
2035 .name = "AT25F2048",
2036 .bustype = BUS_SPI,
2037 .manufacture_id = ATMEL_ID,
2038 .model_id = ATMEL_AT25F2048,
2039 .total_size = 256,
2040 .page_size = 256,
2041 .feature_bits = FEATURE_WRSR_WREN,
2042 .tested = TEST_UNTESTED,
2043 .probe = probe_spi_at25f,
2044 .probe_timing = TIMING_ZERO,
2045 .block_erasers =
2046 {
2047 {
2048 .eraseblocks = { {64 * 1024, 4} },
2049 .block_erase = spi_block_erase_52,
2050 }, {
2051 .eraseblocks = { {256 * 1024, 1} },
2052 .block_erase = spi_block_erase_62,
2053 }
2054 },
2055 .printlock = spi_prettyprint_status_register_at25f,
2056 .unlock = spi_disable_blockprotect_at25f,
2057 .write = spi_chip_write_256,
2058 .read = spi_chip_read,
2059 .voltage = {2700, 3600},
2060 },
2061
2062 {
2063 .vendor = "Atmel",
2064 .name = "AT25F4096",
2065 .bustype = BUS_SPI,
2066 .manufacture_id = ATMEL_ID,
2067 .model_id = ATMEL_AT25F4096,
2068 .total_size = 512,
2069 .page_size = 256,
2070 .feature_bits = FEATURE_WRSR_WREN,
2071 .tested = TEST_OK_PREW,
2072 .probe = probe_spi_at25f,
2073 .probe_timing = TIMING_ZERO,
2074 .block_erasers =
2075 {
2076 {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {512 * 1024, 1} },
2081 .block_erase = spi_block_erase_62,
2082 }
2083 },
2084 .printlock = spi_prettyprint_status_register_at25f4096,
2085 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2086 .unlock = spi_disable_blockprotect_bp2_srwd,
2087 .write = spi_chip_write_256,
2088 .read = spi_chip_read,
2089 .voltage = {2700, 3600},
2090 },
2091
2092 {
2093 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002094 .name = "AT25F512",
2095 .bustype = BUS_SPI,
2096 .manufacture_id = ATMEL_ID,
2097 .model_id = ATMEL_AT25F512,
2098 .total_size = 64,
2099 .page_size = 256,
2100 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002101 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002102 .probe = probe_spi_at25f,
2103 .probe_timing = TIMING_ZERO,
2104 .block_erasers =
2105 {
2106 {
2107 .eraseblocks = { {32 * 1024, 2} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 1} },
2111 .block_erase = spi_block_erase_62,
2112 }
2113 },
2114 .printlock = spi_prettyprint_status_register_at25f,
2115 .unlock = spi_disable_blockprotect_at25f,
2116 .write = spi_chip_write_256,
2117 .read = spi_chip_read,
2118 .voltage = {2700, 3600},
2119 },
2120
2121 {
2122 .vendor = "Atmel",
2123 .name = "AT25F512A",
2124 .bustype = BUS_SPI,
2125 .manufacture_id = ATMEL_ID,
2126 .model_id = ATMEL_AT25F512A,
2127 .total_size = 64,
2128 .page_size = 128,
2129 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002130 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002131 .probe = probe_spi_at25f,
2132 .probe_timing = TIMING_ZERO,
2133 .block_erasers =
2134 {
2135 {
2136 .eraseblocks = { {32 * 1024, 2} },
2137 .block_erase = spi_block_erase_52,
2138 }, {
2139 .eraseblocks = { {64 * 1024, 1} },
2140 .block_erase = spi_block_erase_62,
2141 }
2142 },
2143 .printlock = spi_prettyprint_status_register_at25f512a,
2144 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2145 .unlock = spi_disable_blockprotect_at25f512a,
2146 .write = spi_chip_write_256,
2147 .read = spi_chip_read,
2148 .voltage = {2700, 3600},
2149 },
2150
2151 {
2152 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002154 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002156 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002157 .total_size = 64,
2158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002159 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .tested = TEST_UNTESTED,
2162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002163 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002164 .block_erasers =
2165 {
2166 {
2167 .eraseblocks = { {4 * 1024, 16} },
2168 .block_erase = spi_block_erase_20,
2169 }, {
2170 .eraseblocks = { {32 * 1024, 2} },
2171 .block_erase = spi_block_erase_52,
2172 }, {
2173 .eraseblocks = { {32 * 1024, 2} },
2174 .block_erase = spi_block_erase_d8,
2175 }, {
2176 .eraseblocks = { {64 * 1024, 1} },
2177 .block_erase = spi_block_erase_60,
2178 }, {
2179 .eraseblocks = { {64 * 1024, 1} },
2180 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002181 }, {
2182 .eraseblocks = { {64 * 1024, 1} },
2183 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002184 }
2185 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002186 .printlock = spi_prettyprint_status_register_at25f512b,
2187 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002188 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002190 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002191 },
2192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002193 {
2194 .vendor = "Atmel",
2195 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002196 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002197 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002198 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002199 .total_size = 128,
2200 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002201 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002202 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002203 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002204 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002205 .block_erasers =
2206 {
2207 {
2208 .eraseblocks = { {4 * 1024, 32} },
2209 .block_erase = spi_block_erase_20,
2210 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .eraseblocks = { {4 * 1024, 32} },
2212 .block_erase = spi_block_erase_d7,
2213 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002214 .eraseblocks = { {32 * 1024, 4} },
2215 .block_erase = spi_block_erase_52,
2216 }, {
2217 .eraseblocks = { {32 * 1024, 4} },
2218 .block_erase = spi_block_erase_d8,
2219 }, {
2220 .eraseblocks = { {128 * 1024, 1} },
2221 .block_erase = spi_block_erase_60,
2222 }, {
2223 .eraseblocks = { {128 * 1024, 1} },
2224 .block_erase = spi_block_erase_c7,
2225 }
2226 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002227 .printlock = spi_prettyprint_status_register_at25fs010,
2228 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002229 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002231 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002232 },
2233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002234 {
2235 .vendor = "Atmel",
2236 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002237 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002238 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002239 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002240 .total_size = 512,
2241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002242 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002243 .tested = TEST_UNTESTED,
2244 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002245 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002246 .block_erasers =
2247 {
2248 {
2249 .eraseblocks = { {4 * 1024, 128} },
2250 .block_erase = spi_block_erase_20,
2251 }, {
2252 .eraseblocks = { {64 * 1024, 8} },
2253 .block_erase = spi_block_erase_52,
2254 }, {
2255 .eraseblocks = { {64 * 1024, 8} },
2256 .block_erase = spi_block_erase_d8,
2257 }, {
2258 .eraseblocks = { {512 * 1024, 1} },
2259 .block_erase = spi_block_erase_60,
2260 }, {
2261 .eraseblocks = { {512 * 1024, 1} },
2262 .block_erase = spi_block_erase_c7,
2263 }
2264 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002265 .printlock = spi_prettyprint_status_register_at25fs040,
2266 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002267 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002269 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002270 },
2271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 {
2273 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002274 .name = "AT25SF041",
2275 .bustype = BUS_SPI,
2276 .manufacture_id = ATMEL_ID,
2277 .model_id = ATMEL_AT25SF041,
2278 .total_size = 512,
2279 .page_size = 256,
2280 .feature_bits = FEATURE_WRSR_WREN,
2281 .tested = TEST_OK_PREW,
2282 .probe = probe_spi_rdid,
2283 .probe_timing = TIMING_ZERO,
2284 .block_erasers =
2285 {
2286 {
2287 .eraseblocks = { {4 * 1024, 128} },
2288 .block_erase = spi_block_erase_20,
2289 }, {
2290 .eraseblocks = { {32 * 1024, 16} },
2291 .block_erase = spi_block_erase_52,
2292 }, {
2293 .eraseblocks = { {64 * 1024, 8} },
2294 .block_erase = spi_block_erase_d8,
2295 }, {
2296 .eraseblocks = { {512 * 1024, 1} },
2297 .block_erase = spi_block_erase_60,
2298 }, {
2299 .eraseblocks = { {512 * 1024, 1} },
2300 .block_erase = spi_block_erase_c7,
2301 }
2302 },
2303 .printlock = spi_prettyprint_status_register_plain,
2304 .unlock = spi_disable_blockprotect,
2305 .write = spi_chip_write_256,
2306 .read = spi_chip_read,
2307 .voltage = {2500, 3600},
2308 },
2309
2310 {
2311 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002312 .name = "AT25SF081",
2313 .bustype = BUS_SPI,
2314 .manufacture_id = ATMEL_ID,
2315 .model_id = ATMEL_AT25SF081,
2316 .total_size = 1024,
2317 .page_size = 256,
2318 .feature_bits = FEATURE_WRSR_WREN,
2319 .tested = TEST_OK_PREW,
2320 .probe = probe_spi_rdid,
2321 .probe_timing = TIMING_ZERO,
2322 .block_erasers =
2323 {
2324 {
2325 .eraseblocks = { {4 * 1024, 256} },
2326 .block_erase = spi_block_erase_20,
2327 }, {
2328 .eraseblocks = { {32 * 1024, 32} },
2329 .block_erase = spi_block_erase_52,
2330 }, {
2331 .eraseblocks = { {64 * 1024, 16} },
2332 .block_erase = spi_block_erase_d8,
2333 }, {
2334 .eraseblocks = { {1024 * 1024, 1} },
2335 .block_erase = spi_block_erase_60,
2336 }, {
2337 .eraseblocks = { {1024 * 1024, 1} },
2338 .block_erase = spi_block_erase_c7,
2339 }
2340 },
2341 .printlock = spi_prettyprint_status_register_plain,
2342 .unlock = spi_disable_blockprotect,
2343 .write = spi_chip_write_256,
2344 .read = spi_chip_read,
2345 .voltage = {2300, 3600},
2346 },
2347
2348 {
2349 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002350 .name = "AT25SF161",
2351 .bustype = BUS_SPI,
2352 .manufacture_id = ATMEL_ID,
2353 .model_id = ATMEL_AT25SF161,
2354 .total_size = 2048,
2355 .page_size = 256,
2356 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2357 .tested = TEST_OK_PREW,
2358 .probe = probe_spi_rdid,
2359 .probe_timing = TIMING_ZERO,
2360 .block_erasers =
2361 {
2362 {
2363 .eraseblocks = { {4 * 1024, 512} },
2364 .block_erase = spi_block_erase_20,
2365 }, {
2366 .eraseblocks = { {32 * 1024, 64} },
2367 .block_erase = spi_block_erase_52,
2368 }, {
2369 .eraseblocks = { {64 * 1024, 32} },
2370 .block_erase = spi_block_erase_d8,
2371 }, {
2372 .eraseblocks = { {2048 * 1024, 1} },
2373 .block_erase = spi_block_erase_60,
2374 }, {
2375 .eraseblocks = { {2048 * 1024, 1} },
2376 .block_erase = spi_block_erase_c7,
2377 }
2378 },
2379 .printlock = spi_prettyprint_status_register_plain,
2380 .unlock = spi_disable_blockprotect,
2381 .write = spi_chip_write_256,
2382 .read = spi_chip_read,
2383 .voltage = {2500, 3600},
2384 },
2385
2386 {
Alan Green57938f82019-06-27 15:06:43 +10002387 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002388 .name = "AT25SF321",
2389 .bustype = BUS_SPI,
2390 .manufacture_id = ATMEL_ID,
2391 .model_id = ATMEL_AT25SF321,
2392 .total_size = 4096,
2393 .page_size = 256,
2394 .feature_bits = FEATURE_WRSR_WREN,
2395 .tested = TEST_OK_PR,
2396 .probe = probe_spi_rdid,
2397 .probe_timing = TIMING_ZERO,
2398 .block_erasers =
2399 {
2400 {
2401 .eraseblocks = { {4 * 1024, 1024} },
2402 .block_erase = spi_block_erase_20,
2403 }, {
2404 .eraseblocks = { {32 * 1024, 128} },
2405 .block_erase = spi_block_erase_52,
2406 }, {
2407 .eraseblocks = { {64 * 1024, 64} },
2408 .block_erase = spi_block_erase_d8,
2409 }, {
2410 .eraseblocks = { {4096 * 1024, 1} },
2411 .block_erase = spi_block_erase_60,
2412 }, {
2413 .eraseblocks = { {4096 * 1024, 1} },
2414 .block_erase = spi_block_erase_c7,
2415 }
2416 },
2417 .printlock = spi_prettyprint_status_register_plain,
2418 .unlock = spi_disable_blockprotect,
2419 .write = spi_chip_write_256,
2420 .read = spi_chip_read,
2421 .voltage = {2500, 3600},
2422 },
2423
2424 {
2425 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002426 .name = "AT25SL128A",
2427 .bustype = BUS_SPI,
2428 .manufacture_id = ATMEL_ID,
2429 .model_id = ATMEL_AT25SL128A,
2430 .total_size = 16384,
2431 .page_size = 256,
2432 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +01002433 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
2434 .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } },
Hal Martin49e23d22018-05-27 14:18:43 +02002435 .tested = TEST_OK_PREW,
2436 .probe = probe_spi_rdid,
2437 .probe_timing = TIMING_ZERO,
2438 .block_erasers =
2439 {
2440 {
2441 .eraseblocks = { {4 * 1024, 4096} },
2442 .block_erase = spi_block_erase_20,
2443 }, {
2444 .eraseblocks = { {32 * 1024, 512} },
2445 .block_erase = spi_block_erase_52,
2446 }, {
2447 .eraseblocks = { {64 * 1024, 256} },
2448 .block_erase = spi_block_erase_d8,
2449 }, {
2450 .eraseblocks = { {16 * 1024 * 1024, 1} },
2451 .block_erase = spi_block_erase_60,
2452 }, {
2453 .eraseblocks = { {16 * 1024 * 1024, 1} },
2454 .block_erase = spi_block_erase_c7,
2455 }
2456 },
2457 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2458 .unlock = spi_disable_blockprotect,
2459 .write = spi_chip_write_256,
2460 .read = spi_chip_read,
2461 .voltage = {1700, 2000},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002462 .reg_bits =
2463 {
2464 .srp = {STATUS1, 7, RW},
2465 .srl = {STATUS2, 0, RW},
2466 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
2467 .tb = {STATUS1, 5, RW},
2468 .sec = {STATUS1, 6, RW},
2469 .cmp = {STATUS2, 6, RW},
2470 },
Nico Huberaabb3e02023-01-13 00:22:30 +01002471 .wp_write_cfg = spi_wp_write_cfg,
2472 .wp_read_cfg = spi_wp_read_cfg,
2473 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002474 .decode_range = decode_range_spi25,
Hal Martin49e23d22018-05-27 14:18:43 +02002475 },
2476
2477 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002478 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002480 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002481 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002482 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .total_size = 512,
2484 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002485 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002486 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002487 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002488 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002489 .block_erasers =
2490 {
2491 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002492 .eraseblocks = { {256, 2048} },
2493 .block_erase = spi_block_erase_81,
2494 }, {
2495 .eraseblocks = { {2 * 1024, 256} },
2496 .block_erase = spi_block_erase_50,
2497 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002498 .eraseblocks = { {4 * 1024, 128} },
2499 .block_erase = spi_block_erase_20,
2500 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002501 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002502 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002503 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002504 .write = spi_chip_write_1,
2505 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002506 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002507 },
2508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002509 {
2510 .vendor = "Atmel",
2511 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002512 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002514 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .total_size = 1024,
2516 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002517 .feature_bits = FEATURE_WRSR_WREN,
2518 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002519 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002520 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002521 .block_erasers =
2522 {
2523 {
2524 .eraseblocks = { {4 * 1024, 256} },
2525 .block_erase = spi_block_erase_20,
2526 }, {
2527 .eraseblocks = { {32 * 1024, 32} },
2528 .block_erase = spi_block_erase_52,
2529 }, {
2530 .eraseblocks = { {64 * 1024, 16} },
2531 .block_erase = spi_block_erase_d8,
2532 }, {
2533 .eraseblocks = { {1024 * 1024, 1} },
2534 .block_erase = spi_block_erase_60,
2535 }, {
2536 .eraseblocks = { {1024 * 1024, 1} },
2537 .block_erase = spi_block_erase_c7,
2538 }
2539 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002540 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002541 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002542 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002543 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002544 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002545 },
2546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002547 {
2548 .vendor = "Atmel",
2549 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002550 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002552 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 .total_size = 2048,
2554 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002555 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002556 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002558 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002559 .block_erasers =
2560 {
2561 {
2562 .eraseblocks = { {4 * 1024, 512} },
2563 .block_erase = spi_block_erase_20,
2564 }, {
2565 .eraseblocks = { {32 * 1024, 64} },
2566 .block_erase = spi_block_erase_52,
2567 }, {
2568 .eraseblocks = { {64 * 1024, 32} },
2569 .block_erase = spi_block_erase_d8,
2570 }, {
2571 .eraseblocks = { {2 * 1024 * 1024, 1} },
2572 .block_erase = spi_block_erase_60,
2573 }, {
2574 .eraseblocks = { {2 * 1024 * 1024, 1} },
2575 .block_erase = spi_block_erase_c7,
2576 }
2577 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002578 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002579 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002580 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002581 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002582 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002583 },
2584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002585 {
2586 .vendor = "Atmel",
2587 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002588 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002589 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002590 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002591 .total_size = 2048,
2592 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002593 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002594 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002596 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002597 .block_erasers =
2598 {
2599 {
2600 .eraseblocks = { {4 * 1024, 512} },
2601 .block_erase = spi_block_erase_20,
2602 }, {
2603 .eraseblocks = { {32 * 1024, 64} },
2604 .block_erase = spi_block_erase_52,
2605 }, {
2606 .eraseblocks = { {64 * 1024, 32} },
2607 .block_erase = spi_block_erase_d8,
2608 }, {
2609 .eraseblocks = { {2 * 1024 * 1024, 1} },
2610 .block_erase = spi_block_erase_60,
2611 }, {
2612 .eraseblocks = { {2 * 1024 * 1024, 1} },
2613 .block_erase = spi_block_erase_c7,
2614 }
2615 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002616 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002617 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002618 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002619 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002620 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002621 },
2622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002623 {
2624 .vendor = "Atmel",
2625 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002626 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002627 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002628 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002629 .total_size = 512,
2630 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002631 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002632 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002634 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002635 .block_erasers =
2636 {
2637 {
2638 .eraseblocks = { {4 * 1024, 128} },
2639 .block_erase = spi_block_erase_20,
2640 }, {
2641 .eraseblocks = { {32 * 1024, 16} },
2642 .block_erase = spi_block_erase_52,
2643 }, {
2644 .eraseblocks = { {64 * 1024, 8} },
2645 .block_erase = spi_block_erase_d8,
2646 }, {
2647 .eraseblocks = { {512 * 1024, 1} },
2648 .block_erase = spi_block_erase_60,
2649 }, {
2650 .eraseblocks = { {512 * 1024, 1} },
2651 .block_erase = spi_block_erase_c7,
2652 }
2653 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002654 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002655 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002657 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002658 },
2659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002660 {
2661 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002662 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002663 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002664 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002665 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002666 .total_size = 128,
2667 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002668 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002669 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002670 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002671 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002672 .block_erasers =
2673 {
2674 {
2675 .eraseblocks = { {128 * 1024, 1} },
2676 .block_erase = erase_chip_block_jedec,
2677 }
2678 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002679 .write = write_jedec, /* FIXME */
2680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002681 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002682 .prepare_access = prepare_memory_access,
2683 .finish_access = finish_memory_access,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002684 },
2685
2686 {
2687 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002688 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .total_size = 256,
2693 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002694 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002695 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002696 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002697 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002698 .block_erasers =
2699 {
2700 {
2701 .eraseblocks = { {256 * 1024, 1} },
2702 .block_erase = erase_chip_block_jedec,
2703 }
2704 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002705 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002707 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002708 .prepare_access = prepare_memory_access,
2709 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00002710 },
2711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002712 {
2713 .vendor = "Atmel",
2714 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002715 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002716 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002717 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 .total_size = 512,
2719 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002720 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002721 .tested = TEST_UNTESTED,
2722 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002723 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002724 .block_erasers =
2725 {
2726 {
2727 .eraseblocks = { {512 * 1024, 1} },
2728 .block_erase = erase_chip_block_jedec,
2729 }
2730 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002731 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002733 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002734 .prepare_access = prepare_memory_access,
2735 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00002736 },
2737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002738 {
2739 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002740 .name = "AT29C512",
2741 .bustype = BUS_PARALLEL,
2742 .manufacture_id = ATMEL_ID,
2743 .model_id = ATMEL_AT29C512,
2744 .total_size = 64,
2745 .page_size = 128,
2746 .feature_bits = FEATURE_LONG_RESET,
2747 .tested = TEST_OK_PREW,
2748 .probe = probe_jedec,
2749 .probe_timing = 10000, /* 10mS, Enter=Exec */
2750 .block_erasers =
2751 {
2752 {
2753 .eraseblocks = { {64 * 1024, 1} },
2754 .block_erase = erase_chip_block_jedec,
2755 }
2756 },
2757 .write = write_jedec,
2758 .read = read_memmapped,
2759 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002760 .prepare_access = prepare_memory_access,
2761 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10002762 },
2763
2764 {
2765 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002770 .total_size = 16896, /* No power of two sizes */
2771 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002776 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = {
2782 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2783 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2784 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2785 },
2786 .block_erase = spi_erase_at45cs_sector,
2787 }
2788 },
2789 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002790 .write = spi_write_at45db,
2791 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002792 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002793 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002794 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002796 {
2797 .vendor = "Atmel",
2798 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002799 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002800 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002801 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002802 .total_size = 128, /* or 132, determined from status register */
2803 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002804 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002805 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2806 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002807 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002808 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002809 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002810 .block_erasers =
2811 {
2812 {
2813 .eraseblocks = { {256, 512} },
2814 .block_erase = spi_erase_at45db_page,
2815 }, {
2816 .eraseblocks = { {8 * 256, 512/8} },
2817 .block_erase = spi_erase_at45db_block,
2818 }, {
2819 .eraseblocks = {
2820 {8 * 256, 1},
2821 {120 * 256, 1},
2822 {128 * 256, 3},
2823 },
2824 .block_erase = spi_erase_at45db_sector
2825 }, {
2826 .eraseblocks = { {128 * 1024, 1} },
2827 .block_erase = spi_erase_at45db_chip,
2828 }
2829 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002830 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002831 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002832 /* granularity will be set by the probing function. */
2833 .write = spi_write_at45db,
2834 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002835 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002836 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002838 {
2839 .vendor = "Atmel",
2840 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002841 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002842 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002843 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002844 .total_size = 256, /* or 264, determined from status register */
2845 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002846 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002847 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2848 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002849 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002850 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002851 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002852 .block_erasers =
2853 {
2854 {
2855 .eraseblocks = { {256, 1024} },
2856 .block_erase = spi_erase_at45db_page,
2857 }, {
2858 .eraseblocks = { {8 * 256, 1024/8} },
2859 .block_erase = spi_erase_at45db_block,
2860 }, {
2861 .eraseblocks = {
2862 {8 * 256, 1},
2863 {120 * 256, 1},
2864 {128 * 256, 7},
2865 },
2866 .block_erase = spi_erase_at45db_sector
2867 }, {
2868 .eraseblocks = { {256 * 1024, 1} },
2869 .block_erase = spi_erase_at45db_chip,
2870 }
2871 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002872 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002873 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002874 /* granularity will be set by the probing function. */
2875 .write = spi_write_at45db,
2876 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002877 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002878 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002879
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002880 {
2881 .vendor = "Atmel",
2882 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002883 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002884 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002885 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002886 .total_size = 512, /* or 528, determined from status register */
2887 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002888 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002889 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2890 .feature_bits = FEATURE_OTP,
2891 .tested = TEST_OK_PREW,
2892 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002893 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002894 .block_erasers =
2895 {
2896 {
2897 .eraseblocks = { {256, 2048} },
2898 .block_erase = spi_erase_at45db_page,
2899 }, {
2900 .eraseblocks = { {8 * 256, 2048/8} },
2901 .block_erase = spi_erase_at45db_block,
2902 }, {
2903 .eraseblocks = {
2904 {8 * 256, 1},
2905 {248 * 256, 1},
2906 {256 * 256, 7},
2907 },
2908 .block_erase = spi_erase_at45db_sector
2909 }, {
2910 .eraseblocks = { {512 * 1024, 1} },
2911 .block_erase = spi_erase_at45db_chip,
2912 }
2913 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002914 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002915 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002916 /* granularity will be set by the probing function. */
2917 .write = spi_write_at45db,
2918 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2919 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002920 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002922 {
2923 .vendor = "Atmel",
2924 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002925 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002926 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002927 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002928 .total_size = 1024, /* or 1056, determined from status register */
2929 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002930 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002931 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2932 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002933 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002934 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002935 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002936 .block_erasers =
2937 {
2938 {
2939 .eraseblocks = { {256, 4096} },
2940 .block_erase = spi_erase_at45db_page,
2941 }, {
2942 .eraseblocks = { {8 * 256, 4096/8} },
2943 .block_erase = spi_erase_at45db_block,
2944 }, {
2945 .eraseblocks = {
2946 {8 * 256, 1},
2947 {248 * 256, 1},
2948 {256 * 256, 15},
2949 },
2950 .block_erase = spi_erase_at45db_sector
2951 }, {
2952 .eraseblocks = { {1024 * 1024, 1} },
2953 .block_erase = spi_erase_at45db_chip,
2954 }
2955 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002956 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002957 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002958 /* granularity will be set by the probing function. */
2959 .write = spi_write_at45db,
2960 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002961 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002962 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002964 {
2965 .vendor = "Atmel",
2966 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002967 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002968 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002969 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002970 .total_size = 2048, /* or 2112, determined from status register */
2971 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002972 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002973 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2974 .feature_bits = FEATURE_OTP,
2975 .tested = TEST_OK_PREW,
2976 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002977 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = { {512, 4096} },
2982 .block_erase = spi_erase_at45db_page,
2983 }, {
2984 .eraseblocks = { {8 * 512, 4096/8} },
2985 .block_erase = spi_erase_at45db_block,
2986 }, {
2987 .eraseblocks = {
2988 {8 * 512, 1},
2989 {248 * 512, 1},
2990 {256 * 512, 15},
2991 },
2992 .block_erase = spi_erase_at45db_sector
2993 }, {
2994 .eraseblocks = { {2048 * 1024, 1} },
2995 .block_erase = spi_erase_at45db_chip,
2996 }
2997 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002998 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002999 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003000 /* granularity will be set by the probing function. */
3001 .write = spi_write_at45db,
3002 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00003003 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003004 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003006 {
3007 .vendor = "Atmel",
3008 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003009 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003010 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003011 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003012 .total_size = 4224, /* No power of two sizes */
3013 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00003014 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003015 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
3016 .feature_bits = FEATURE_OTP,
3017 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003018 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003019 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003020 .block_erasers =
3021 {
3022 {
3023 .eraseblocks = { {528, 8192} },
3024 .block_erase = spi_erase_at45db_page,
3025 }, {
3026 .eraseblocks = { {8 * 528, 8192/8} },
3027 .block_erase = spi_erase_at45db_block,
3028 }, /* Although the datasheets describes sectors (which can be write protected)
3029 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00003030 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003031 .eraseblocks = {
3032 {8 * 528, 1},
3033 {120 * 528, 1},
3034 {128 * 528, 63},
3035 },
3036 .block_erase = spi_erase_at45db_sector
3037 }, */ {
3038 .eraseblocks = { {4224 * 1024, 1} },
3039 .block_erase = spi_erase_at45db_chip,
3040 }
3041 },
3042 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003043 .write = spi_write_at45db,
3044 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003045 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003046 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003047 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003049 {
3050 .vendor = "Atmel",
3051 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003052 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003053 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003054 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10003055 .total_size = 4096, /* or 4224, determined from status register */
3056 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003057 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003058 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00003059 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00003060 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003061 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003062 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003063 .block_erasers =
3064 {
3065 {
3066 .eraseblocks = { {512, 8192} },
3067 .block_erase = spi_erase_at45db_page,
3068 }, {
3069 .eraseblocks = { {8 * 512, 8192/8} },
3070 .block_erase = spi_erase_at45db_block,
3071 }, {
3072 .eraseblocks = {
3073 {8 * 512, 1},
3074 {120 * 512, 1},
3075 {128 * 512, 63},
3076 },
3077 .block_erase = spi_erase_at45db_sector
3078 }, {
3079 .eraseblocks = { {4096 * 1024, 1} },
3080 .block_erase = spi_erase_at45db_chip,
3081 }
3082 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003083 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003084 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003085 /* granularity will be set by the probing function. */
3086 .write = spi_write_at45db,
3087 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3088 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3089 },
3090
3091 {
3092 .vendor = "Atmel",
3093 .name = "AT45DB321E",
3094 .bustype = BUS_SPI,
3095 .manufacture_id = ATMEL_ID,
3096 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003097 .total_size = 4096, /* or 4224, determined from status register */
3098 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003099 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3100 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3101 .feature_bits = FEATURE_OTP,
3102 .tested = TEST_UNTESTED,
3103 .probe = probe_spi_at45db,
3104 .probe_timing = TIMING_ZERO,
3105 .block_erasers =
3106 {
3107 {
3108 .eraseblocks = { {512, 8192} },
3109 .block_erase = spi_erase_at45db_page,
3110 }, {
3111 .eraseblocks = { {8 * 512, 8192/8} },
3112 .block_erase = spi_erase_at45db_block,
3113 }, {
3114 .eraseblocks = {
3115 {8 * 512, 1},
3116 {120 * 512, 1},
3117 {128 * 512, 63},
3118 },
3119 .block_erase = spi_erase_at45db_sector
3120 }, {
3121 .eraseblocks = { {4096 * 1024, 1} },
3122 .block_erase = spi_erase_at45db_chip,
3123 }
3124 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003125 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003126 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003127 /* granularity will be set by the probing function. */
3128 .write = spi_write_at45db,
3129 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3130 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003131 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003133 {
3134 .vendor = "Atmel",
3135 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003136 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003137 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003138 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003139 .total_size = 8192, /* or 8448, determined from status register */
3140 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003141 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003142 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3143 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003144 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003145 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003146 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003147 .block_erasers =
3148 {
3149 {
3150 .eraseblocks = { {1024, 8192} },
3151 .block_erase = spi_erase_at45db_page,
3152 }, {
3153 .eraseblocks = { {8 * 1024, 8192/8} },
3154 .block_erase = spi_erase_at45db_block,
3155 }, {
3156 .eraseblocks = {
3157 {8 * 1024, 1},
3158 {248 * 1024, 1},
3159 {256 * 1024, 31},
3160 },
3161 .block_erase = spi_erase_at45db_sector
3162 }, {
3163 .eraseblocks = { {8192 * 1024, 1} },
3164 .block_erase = spi_erase_at45db_chip,
3165 }
3166 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003167 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003168 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003169 /* granularity will be set by the probing function. */
3170 .write = spi_write_at45db,
3171 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003172 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003173 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003175 {
3176 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003177 .name = "AT49(H)F010",
3178 .bustype = BUS_PARALLEL,
3179 .manufacture_id = ATMEL_ID,
3180 .model_id = ATMEL_AT49F010,
3181 .total_size = 128,
3182 .page_size = 0, /* unused */
3183 .feature_bits = FEATURE_EITHER_RESET,
3184 .tested = TEST_OK_PREW,
3185 .probe = probe_jedec,
3186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3187 .block_erasers =
3188 {
3189 {
3190 .eraseblocks = { {128 * 1024, 1} },
3191 .block_erase = erase_chip_block_jedec,
3192 }
3193 },
3194 .printlock = printlock_at49f,
3195 .write = write_jedec_1,
3196 .read = read_memmapped,
3197 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003198 .prepare_access = prepare_memory_access,
3199 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003200 },
3201
3202 {
3203 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003204 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003205 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003206 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003207 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003208 .total_size = 64,
3209 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003210 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003211 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003212 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003214 .block_erasers =
3215 {
3216 {
3217 .eraseblocks = { {64 * 1024, 1} },
3218 .block_erase = erase_chip_block_jedec,
3219 }
3220 },
Sean Nelson35727f72010-01-28 23:55:12 +00003221 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003223 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01003224 .prepare_access = prepare_memory_access,
3225 .finish_access = finish_memory_access,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003226 },
3227
3228 {
3229 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003230 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003231 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003232 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003233 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003234 .total_size = 256,
3235 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003236 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003237 .tested = TEST_UNTESTED,
3238 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003239 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003240 .block_erasers =
3241 {
3242 {
3243 .eraseblocks = {
3244 {16 * 1024, 1},
3245 {8 * 1024, 2},
3246 {96 * 1024, 1},
3247 {128 * 1024, 1},
3248 },
3249 .block_erase = erase_sector_jedec,
3250 }, {
3251 .eraseblocks = { {256 * 1024, 1} },
3252 .block_erase = erase_chip_block_jedec,
3253 }
3254 },
Sean Nelson35727f72010-01-28 23:55:12 +00003255 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003257 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003258 .prepare_access = prepare_memory_access,
3259 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00003260 },
3261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003262 {
3263 .vendor = "Atmel",
3264 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003265 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003267 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003268 .total_size = 256,
3269 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003270 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003271 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003272 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003274 .block_erasers =
3275 {
3276 {
3277 .eraseblocks = {
3278 {128 * 1024, 1},
3279 {96 * 1024, 1},
3280 {8 * 1024, 2},
3281 {16 * 1024, 1},
3282 },
3283 .block_erase = erase_sector_jedec,
3284 }, {
3285 .eraseblocks = { {256 * 1024, 1} },
3286 .block_erase = erase_chip_block_jedec,
3287 }
3288 },
Sean Nelson35727f72010-01-28 23:55:12 +00003289 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003291 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003292 .prepare_access = prepare_memory_access,
3293 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00003294 },
3295
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003296 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003297 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003298 .name = "AT49F020",
3299 .bustype = BUS_PARALLEL,
3300 .manufacture_id = ATMEL_ID,
3301 .model_id = ATMEL_AT49F020,
3302 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003303 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003304 .feature_bits = FEATURE_EITHER_RESET,
3305 .tested = TEST_OK_PRE,
3306 .probe = probe_jedec,
3307 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3308 .block_erasers =
3309 {
3310 {
3311 .eraseblocks = { {256 * 1024, 1} },
3312 .block_erase = erase_chip_block_jedec,
3313 }
3314 /* Chip features an optional permanent write protection
3315 * of the first 8 kB. The erase function is the same as
3316 * above, but 00000H to 01FFFH will not be erased.
3317 * FIXME: add another eraser when partial erasers are
3318 * supported.
3319 */
3320 },
3321 .printlock = printlock_at49f,
3322 .write = write_jedec_1,
3323 .read = read_memmapped,
3324 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003325 .prepare_access = prepare_memory_access,
3326 .finish_access = finish_memory_access,
David Borgf5a30f62012-04-15 13:16:32 +00003327 },
3328
3329 {
3330 .vendor = "Atmel",
3331 .name = "AT49F040",
3332 .bustype = BUS_PARALLEL,
3333 .manufacture_id = ATMEL_ID,
3334 .model_id = ATMEL_AT49F040,
3335 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003336 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003337 .feature_bits = FEATURE_EITHER_RESET,
3338 .tested = TEST_UNTESTED,
3339 .probe = probe_jedec,
3340 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3341 .block_erasers =
3342 {
3343 {
3344 .eraseblocks = { {512 * 1024, 1} },
3345 .block_erase = erase_chip_block_jedec,
3346 }
3347 /* Chip features an optional permanent write protection
3348 * of the first 16 kB. The erase function is the same as
3349 * above, but 00000H to 03FFFH will not be erased.
3350 * FIXME: add another eraser when partial erasers are
3351 * supported.
3352 */
3353 },
3354 .printlock = printlock_at49f,
3355 .write = write_jedec_1,
3356 .read = read_memmapped,
3357 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003358 .prepare_access = prepare_memory_access,
3359 .finish_access = finish_memory_access,
David Borgf5a30f62012-04-15 13:16:32 +00003360 },
3361
3362 {
3363 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003364 .name = "AT49F080",
3365 .bustype = BUS_PARALLEL,
3366 .manufacture_id = ATMEL_ID,
3367 .model_id = ATMEL_AT49F080,
3368 .total_size = 1024,
3369 .page_size = 0, /* unused */
3370 .feature_bits = FEATURE_EITHER_RESET,
3371 .tested = TEST_UNTESTED,
3372 .probe = probe_jedec,
3373 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3374 .block_erasers =
3375 {
3376 {
3377 .eraseblocks = { {1024 * 1024, 1} },
3378 .block_erase = erase_chip_block_jedec,
3379 }
3380 /* Chip features an optional permanent write protection
3381 * of the first 16 kB. The erase function is the same as
3382 * above, but 00000H to 03FFFH will not be erased.
3383 * FIXME: add another eraser when partial erasers are
3384 * supported.
3385 */
3386 },
3387 .printlock = printlock_at49f,
3388 .write = write_jedec_1,
3389 .read = read_memmapped,
3390 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003391 .prepare_access = prepare_memory_access,
3392 .finish_access = finish_memory_access,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003393 },
3394
3395 {
3396 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3397 .vendor = "Atmel",
3398 .name = "AT49F080T",
3399 .bustype = BUS_PARALLEL,
3400 .manufacture_id = ATMEL_ID,
3401 .model_id = ATMEL_AT49F080T,
3402 .total_size = 1024,
3403 .page_size = 0, /* unused */
3404 .feature_bits = FEATURE_EITHER_RESET,
3405 .tested = TEST_UNTESTED,
3406 .probe = probe_jedec,
3407 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = { {1024 * 1024, 1} },
3412 .block_erase = erase_chip_block_jedec,
3413 }
3414 /* Chip features an optional permanent write protection
3415 * of the first 16 kB. The erase function is the same as
3416 * above, but FC000H to FFFFFH will not be erased.
3417 * FIXME: add another eraser when partial erasers are
3418 * supported.
3419 */
3420 },
3421 .printlock = printlock_at49f,
3422 .write = write_jedec_1,
3423 .read = read_memmapped,
3424 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003425 .prepare_access = prepare_memory_access,
3426 .finish_access = finish_memory_access,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003427 },
3428
3429 {
3430 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003431 .name = "AT49LH002",
3432 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3433 .manufacture_id = ATMEL_ID,
3434 .model_id = ATMEL_AT49LH002,
3435 .total_size = 256,
3436 .page_size = 0, /* unused */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003437 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003438 .probe = probe_82802ab,
3439 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003440 .block_erasers =
3441 {
3442 {
3443 .eraseblocks = {
3444 {64 * 1024, 3},
3445 {32 * 1024, 1},
3446 {8 * 1024, 2},
3447 {16 * 1024, 1},
3448 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003449 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003450 }, {
3451 .eraseblocks = {
3452 {64 * 1024, 4},
3453 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003454 .block_erase = erase_block_82802ab,
3455 },
3456 },
3457 .printlock = printlock_regspace2_block_eraser_0,
3458 .unlock = unlock_regspace2_block_eraser_0,
3459 .write = write_82802ab,
3460 .read = read_memmapped,
3461 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003462 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003463 .finish_access = finish_memory_access,
Stefan Tauner7de93932014-08-03 13:05:45 +00003464 },
3465
3466 {
3467 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003468 .name = "AT49LH004",
3469 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3470 .manufacture_id = ATMEL_ID,
3471 .model_id = ATMEL_AT49LH004,
3472 .total_size = 512,
3473 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003474 .tested = TEST_UNTESTED,
3475 .probe = probe_82802ab,
3476 .probe_timing = TIMING_ZERO,
3477 .block_erasers =
3478 {
3479 {
3480 .eraseblocks = {
3481 {64 * 1024, 7},
3482 {32 * 1024, 1},
3483 {8 * 1024, 2},
3484 {16 * 1024, 1},
3485 },
3486 .block_erase = erase_block_82802ab,
3487 }, {
3488 .eraseblocks = {
3489 {64 * 1024, 8},
3490 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003491 .block_erase = NULL, /* TODO: Implement. */
3492 },
3493 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003494 .printlock = printlock_regspace2_block_eraser_0,
3495 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003496 .write = write_82802ab,
3497 .read = read_memmapped,
3498 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003499 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003500 .finish_access = finish_memory_access,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003501 },
3502
3503 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003504 .vendor = "Atmel",
3505 .name = "AT49LH00B4",
3506 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3507 .manufacture_id = ATMEL_ID,
3508 .model_id = ATMEL_AT49LH00B4,
3509 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003510 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003511 .tested = TEST_UNTESTED,
3512 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003513 .probe_timing = TIMING_ZERO,
3514 .block_erasers =
3515 {
3516 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003517 .eraseblocks = {
3518 {8 * 1024, 2},
3519 {16 * 1024, 1},
3520 {32 * 1024, 1},
3521 {64 * 1024, 7},
3522 },
3523 .block_erase = NULL, /* TODO: Implement. */
3524 }, {
3525 .eraseblocks = {
3526 {64 * 1024, 8},
3527 },
3528 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003529 },
3530 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003531 .printlock = printlock_regspace2_block_eraser_0,
3532 .unlock = unlock_regspace2_block_eraser_0,
3533 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003534 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003535 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003536 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003537 .finish_access = finish_memory_access,
Andrew Morganca081462011-09-13 22:05:44 +00003538 },
3539
3540 {
Angel Pons1ebda782021-04-20 21:39:11 +02003541 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003542 .name = "B.25D16A",
3543 .bustype = BUS_SPI,
3544 .manufacture_id = BOYA_BOHONG_ID,
3545 .model_id = BOYA_BOHONG_B_25D16A,
3546 .total_size = 2048,
3547 .page_size = 256,
3548 .feature_bits = FEATURE_WRSR_WREN,
3549 .tested = TEST_OK_PR,
3550 .probe = probe_spi_rdid,
3551 .probe_timing = TIMING_ZERO,
3552 .block_erasers =
3553 {
3554 {
3555 .eraseblocks = { {4 * 1024, 512} },
3556 .block_erase = spi_block_erase_20,
3557 }, {
3558 .eraseblocks = { {32 * 1024, 64} },
3559 .block_erase = spi_block_erase_52,
3560 }, {
3561 .eraseblocks = { {64 * 1024, 32} },
3562 .block_erase = spi_block_erase_d8,
3563 }, {
3564 .eraseblocks = { {2 * 1024 * 1024, 1} },
3565 .block_erase = spi_block_erase_60,
3566 }, {
3567 .eraseblocks = { {2 * 1024 * 1024, 1} },
3568 .block_erase = spi_block_erase_c7,
3569 }
3570 },
3571 .printlock = spi_prettyprint_status_register_bp2_srwd,
3572 .unlock = spi_disable_blockprotect_bp2_srwd,
3573 .write = spi_chip_write_256,
3574 .read = spi_chip_read,
3575 .voltage = {2700, 3600},
3576 },
3577
3578 {
3579 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003580 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003581 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003582 .manufacture_id = BOYA_BOHONG_ID,
3583 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003584 .total_size = 16384,
3585 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01003586 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003587 .tested = TEST_OK_PREW,
3588 .probe = probe_spi_rdid,
3589 .probe_timing = TIMING_ZERO,
3590 .block_erasers =
3591 {
3592 {
3593 .eraseblocks = { {4 * 1024, 4096} },
3594 .block_erase = spi_block_erase_20,
3595 }, {
3596 .eraseblocks = { {32 * 1024, 512} },
3597 .block_erase = spi_block_erase_52,
3598 }, {
3599 .eraseblocks = { {64 * 1024, 256} },
3600 .block_erase = spi_block_erase_d8,
3601 }, {
3602 .eraseblocks = { {16 * 1024 * 1024, 1} },
3603 .block_erase = spi_block_erase_60,
3604 }, {
3605 .eraseblocks = { {16 * 1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
3609 .printlock = spi_prettyprint_status_register_plain,
3610 .unlock = spi_disable_blockprotect_at25fs040,
3611 .write = spi_chip_write_256,
3612 .read = spi_chip_read,
3613 .voltage = {2700, 3600},
3614 },
3615
3616 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003617 .vendor = "Bright",
3618 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003620 .manufacture_id = BRIGHT_ID,
3621 .model_id = BRIGHT_BM29F040,
3622 .total_size = 512,
3623 .page_size = 64 * 1024,
3624 .feature_bits = FEATURE_EITHER_RESET,
3625 .tested = TEST_OK_PR,
3626 .probe = probe_jedec,
3627 .probe_timing = TIMING_ZERO,
3628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = { {64 * 1024, 8} },
3632 .block_erase = erase_sector_jedec,
3633 }, {
3634 .eraseblocks = { {512 * 1024, 1} },
3635 .block_erase = erase_chip_block_jedec,
3636 },
3637 },
3638 .write = write_jedec_1,
3639 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003640 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003641 .prepare_access = prepare_memory_access,
3642 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00003643 },
3644
3645 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003646 .vendor = "Catalyst",
3647 .name = "CAT28F512",
3648 .bustype = BUS_PARALLEL,
3649 .manufacture_id = CATALYST_ID,
3650 .model_id = CATALYST_CAT28F512,
3651 .total_size = 64,
3652 .page_size = 0, /* unused */
3653 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003654 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003655 .probe = probe_jedec, /* FIXME! */
3656 .probe_timing = TIMING_ZERO,
3657 .block_erasers =
3658 {
3659 {
3660 .eraseblocks = { {64 * 1024, 1} },
3661 .block_erase = NULL, /* TODO */
3662 },
3663 },
3664 .write = NULL, /* TODO */
3665 .read = read_memmapped,
3666 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003667 .prepare_access = prepare_memory_access,
3668 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003669 },
3670
3671 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003672 .vendor = "ENE",
3673 .name = "KB9012 (EDI)",
3674 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003675 .total_size = 128,
3676 .page_size = 128,
3677 .feature_bits = FEATURE_ERASED_ZERO,
3678 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003679 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003680 .probe = edi_probe_kb9012,
3681 .probe_timing = TIMING_ZERO,
3682 .block_erasers =
3683 {
3684 {
3685 .eraseblocks = { {128, 1024} },
3686 .block_erase = edi_chip_block_erase,
3687 },
3688 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003689 .write = edi_chip_write,
3690 .read = edi_chip_read,
3691 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003692 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003693 },
3694
3695 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003696 .vendor = "ESI",
3697 .name = "ES25P16",
3698 .bustype = BUS_SPI,
3699 .manufacture_id = EXCEL_ID_NOPREFIX,
3700 .model_id = EXCEL_ES25P16,
3701 .total_size = 2 * 1024,
3702 .page_size = 256,
3703 /* 256-byte parameter page separate from memory array:
3704 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3705 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003706 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003707 .probe = probe_spi_rdid,
3708 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003709 .block_erasers =
3710 {
3711 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003712 .eraseblocks = { {64 * 1024, 32} },
3713 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003714 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003715 .eraseblocks = { {2 * 1024 * 1024, 1} },
3716 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003717 }
3718 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003719 .printlock = spi_prettyprint_status_register_bp2_srwd,
3720 .unlock = spi_disable_blockprotect_bp2_srwd,
3721 .write = spi_chip_write_256,
3722 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3723 .voltage = {2700, 3600},
3724 },
3725
3726 {
3727 .vendor = "ESI",
3728 .name = "ES25P40",
3729 .bustype = BUS_SPI,
3730 .manufacture_id = EXCEL_ID_NOPREFIX,
3731 .model_id = EXCEL_ES25P40,
3732 .total_size = 512,
3733 .page_size = 256,
3734 /* 256-byte parameter page separate from memory array:
3735 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3736 .feature_bits = FEATURE_WRSR_WREN,
3737 .tested = TEST_UNTESTED,
3738 .probe = probe_spi_rdid,
3739 .probe_timing = TIMING_ZERO,
3740 .block_erasers =
3741 {
3742 {
3743 .eraseblocks = { {64 * 1024, 8} },
3744 .block_erase = spi_block_erase_d8,
3745 }, {
3746 .eraseblocks = { {512 * 1024, 1} },
3747 .block_erase = spi_block_erase_c7,
3748 }
3749 },
3750 .printlock = spi_prettyprint_status_register_bp2_srwd,
3751 .unlock = spi_disable_blockprotect_bp2_srwd,
3752 .write = spi_chip_write_256,
3753 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3754 .voltage = {2700, 3600},
3755 },
3756
3757 {
3758 .vendor = "ESI",
3759 .name = "ES25P80",
3760 .bustype = BUS_SPI,
3761 .manufacture_id = EXCEL_ID_NOPREFIX,
3762 .model_id = EXCEL_ES25P80,
3763 .total_size = 1024,
3764 .page_size = 256,
3765 /* 256-byte parameter page separate from memory array:
3766 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3767 .feature_bits = FEATURE_WRSR_WREN,
3768 .tested = TEST_UNTESTED,
3769 .probe = probe_spi_rdid,
3770 .probe_timing = TIMING_ZERO,
3771 .block_erasers =
3772 {
3773 {
3774 .eraseblocks = { {64 * 1024, 16} },
3775 .block_erase = spi_block_erase_d8,
3776 }, {
3777 .eraseblocks = { {1024 * 1024, 1} },
3778 .block_erase = spi_block_erase_c7,
3779 }
3780 },
3781 .printlock = spi_prettyprint_status_register_bp2_srwd,
3782 .unlock = spi_disable_blockprotect_bp2_srwd,
3783 .write = spi_chip_write_256,
3784 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3785 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003786 },
3787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003788 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003789 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003790 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003791 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003792 .manufacture_id = ESMT_ID,
3793 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003794 .total_size = 1024,
3795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003796 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003797 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003798 .probe = probe_spi_rdid,
3799 .probe_timing = TIMING_ZERO,
3800 .block_erasers =
3801 {
3802 {
3803 .eraseblocks = { {4 * 1024, 256} },
3804 .block_erase = spi_block_erase_20,
3805 }, {
3806 .eraseblocks = { {64 * 1024, 16} },
3807 .block_erase = spi_block_erase_d8,
3808 }, {
3809 .eraseblocks = { {1024 * 1024, 1} },
3810 .block_erase = spi_block_erase_60,
3811 }, {
3812 .eraseblocks = { {1024 * 1024, 1} },
3813 .block_erase = spi_block_erase_c7,
3814 }
3815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003817 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003818 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003820 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003821 },
3822
3823 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003824 .vendor = "ESMT",
3825 .name = "F25L32PA",
3826 .bustype = BUS_SPI,
3827 .manufacture_id = ESMT_ID,
3828 .model_id = ESMT_F25L32PA,
3829 .total_size = 4096,
3830 .page_size = 256,
3831 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3832 .tested = TEST_UNTESTED,
3833 .probe = probe_spi_rdid,
3834 .probe_timing = TIMING_ZERO,
3835 .block_erasers =
3836 {
3837 {
3838 .eraseblocks = { {4 * 1024, 1024} },
3839 .block_erase = spi_block_erase_20,
3840 }, {
3841 .eraseblocks = { {64 * 1024, 64} },
3842 .block_erase = spi_block_erase_d8,
3843 }, {
3844 .eraseblocks = { {4 * 1024 * 1024, 1} },
3845 .block_erase = spi_block_erase_60,
3846 }, {
3847 .eraseblocks = { {4 * 1024 * 1024, 1} },
3848 .block_erase = spi_block_erase_c7,
3849 }
3850 },
3851 .printlock = spi_prettyprint_status_register_bp2_bpl,
3852 .unlock = spi_disable_blockprotect,
3853 .write = spi_chip_write_256,
3854 .read = spi_chip_read,
3855 .voltage = {2700, 3600},
3856 },
3857
3858 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003859 .vendor = "ESMT",
3860 .name = "F49B002UA",
3861 .bustype = BUS_PARALLEL,
3862 .manufacture_id = ESMT_ID,
3863 .model_id = ESMT_F49B002UA,
3864 .total_size = 256,
3865 .page_size = 4096,
3866 .feature_bits = FEATURE_EITHER_RESET,
3867 .tested = TEST_UNTESTED,
3868 .probe = probe_jedec,
3869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3870 .block_erasers =
3871 {
3872 {
3873 .eraseblocks = {
3874 {128 * 1024, 1},
3875 {96 * 1024, 1},
3876 {8 * 1024, 2},
3877 {16 * 1024, 1},
3878 },
3879 .block_erase = erase_sector_jedec,
3880 }, {
3881 .eraseblocks = { {256 * 1024, 1} },
3882 .block_erase = erase_chip_block_jedec,
3883 }
3884 },
3885 .write = write_jedec_1,
3886 .read = read_memmapped,
3887 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003888 .prepare_access = prepare_memory_access,
3889 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003890 },
3891
3892 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003893 .vendor = "Eon",
3894 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003895 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003896 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003897 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003898 .total_size = 64,
3899 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003900 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003901 .tested = TEST_UNTESTED,
3902 .probe = probe_spi_rdid,
3903 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003904 .block_erasers =
3905 {
3906 {
3907 .eraseblocks = {
3908 {4 * 1024, 2},
3909 {8 * 1024, 1},
3910 {16 * 1024, 1},
3911 {32 * 1024, 1},
3912 },
3913 .block_erase = spi_block_erase_d8,
3914 }, {
3915 .eraseblocks = { {64 * 1024, 1} },
3916 .block_erase = spi_block_erase_c7,
3917 }
3918 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003919 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003920 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003921 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003922 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003923 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003924 },
3925
3926 {
3927 .vendor = "Eon",
3928 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003929 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003930 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003931 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003932 .total_size = 64,
3933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003934 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003935 .tested = TEST_UNTESTED,
3936 .probe = probe_spi_rdid,
3937 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003938 .block_erasers =
3939 {
3940 {
3941 .eraseblocks = {
3942 {32 * 1024, 1},
3943 {16 * 1024, 1},
3944 {8 * 1024, 1},
3945 {4 * 1024, 2},
3946 },
3947 .block_erase = spi_block_erase_d8,
3948 }, {
3949 .eraseblocks = { {64 * 1024, 1} },
3950 .block_erase = spi_block_erase_c7,
3951 }
3952 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003953 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003954 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003955 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003956 .read = spi_chip_read, /* Fast read (0x0B) supported */
3957 .voltage = {2700, 3600},
3958 },
3959
3960 {
3961 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003962 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003963 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003964 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003965 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003966 .total_size = 128,
3967 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003968 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003969 .tested = TEST_UNTESTED,
3970 .probe = probe_spi_rdid,
3971 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003972 .block_erasers =
3973 {
3974 {
3975 .eraseblocks = {
3976 {4 * 1024, 2},
3977 {8 * 1024, 1},
3978 {16 * 1024, 1},
3979 {32 * 1024, 3},
3980 },
3981 .block_erase = spi_block_erase_d8,
3982 }, {
3983 .eraseblocks = { {128 * 1024, 1} },
3984 .block_erase = spi_block_erase_c7,
3985 }
3986 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003987 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003988 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003989 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003990 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003991 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003992 },
3993
3994 {
3995 .vendor = "Eon",
3996 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003997 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003998 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003999 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00004000 .total_size = 128,
4001 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004002 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004003 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .probe = probe_spi_rdid,
4005 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004006 .block_erasers =
4007 {
4008 {
4009 .eraseblocks = {
4010 {32 * 1024, 3},
4011 {16 * 1024, 1},
4012 {8 * 1024, 1},
4013 {4 * 1024, 2},
4014 },
4015 .block_erase = spi_block_erase_d8,
4016 }, {
4017 .eraseblocks = { {128 * 1024, 1} },
4018 .block_erase = spi_block_erase_c7,
4019 }
4020 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004021 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004023 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004024 .read = spi_chip_read, /* Fast read (0x0B) supported */
4025 .voltage = {2700, 3600},
4026 },
4027
4028 {
4029 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004030 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004031 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004032 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004033 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004034 .total_size = 2048,
4035 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004036 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004037 .tested = TEST_UNTESTED,
4038 .probe = probe_spi_rdid,
4039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .block_erasers =
4041 {
4042 {
4043 .eraseblocks = {
4044 {4 * 1024, 2},
4045 {8 * 1024, 1},
4046 {16 * 1024, 1},
4047 {32 * 1024, 1},
4048 {64 * 1024, 31},
4049 },
4050 .block_erase = spi_block_erase_d8,
4051 }, {
4052 .eraseblocks = { {2 * 1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004057 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004058 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004059 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004060 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004061 },
4062
4063 {
4064 .vendor = "Eon",
4065 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004066 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004067 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004068 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004069 .total_size = 2048,
4070 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004071 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004075 .block_erasers =
4076 {
4077 {
4078 .eraseblocks = {
4079 {64 * 1024, 31},
4080 {32 * 1024, 1},
4081 {16 * 1024, 1},
4082 {8 * 1024, 1},
4083 {4 * 1024, 2},
4084 },
4085 .block_erase = spi_block_erase_d8,
4086 }, {
4087 .eraseblocks = { {2 * 1024 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 }
4090 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004092 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004093 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004094 .read = spi_chip_read, /* Fast read (0x0B) supported */
4095 .voltage = {2700, 3600},
4096 },
4097
4098 {
4099 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004100 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004101 .bustype = BUS_SPI,
4102 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004103 .model_id = EON_EN25B20,
4104 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004105 .page_size = 256,
4106 .feature_bits = FEATURE_WRSR_WREN,
4107 .tested = TEST_UNTESTED,
4108 .probe = probe_spi_rdid,
4109 .probe_timing = TIMING_ZERO,
4110 .block_erasers =
4111 {
4112 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004113 .eraseblocks = {
4114 {4 * 1024, 2},
4115 {8 * 1024, 1},
4116 {16 * 1024, 1},
4117 {32 * 1024, 1},
4118 {64 * 1024, 3}
4119 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004120 .block_erase = spi_block_erase_d8,
4121 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004122 .eraseblocks = { {256 * 1024, 1} },
4123 .block_erase = spi_block_erase_c7,
4124 }
4125 },
4126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read, /* Fast read (0x0B) supported */
4130 .voltage = {2700, 3600},
4131 },
4132
4133 {
4134 .vendor = "Eon",
4135 .name = "EN25B20T",
4136 .bustype = BUS_SPI,
4137 .manufacture_id = EON_ID_NOPREFIX,
4138 .model_id = EON_EN25B20,
4139 .total_size = 256,
4140 .page_size = 256,
4141 .feature_bits = FEATURE_WRSR_WREN,
4142 .tested = TEST_UNTESTED,
4143 .probe = probe_spi_rdid,
4144 .probe_timing = TIMING_ZERO,
4145 .block_erasers =
4146 {
4147 {
4148 .eraseblocks = {
4149 {64 * 1024, 3},
4150 {32 * 1024, 1},
4151 {16 * 1024, 1},
4152 {8 * 1024, 1},
4153 {4 * 1024, 2},
4154 },
4155 .block_erase = spi_block_erase_d8,
4156 }, {
4157 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004158 .block_erase = spi_block_erase_c7,
4159 }
4160 },
4161 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4162 .unlock = spi_disable_blockprotect,
4163 .write = spi_chip_write_256,
4164 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004165 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004166 },
4167
4168 {
4169 .vendor = "Eon",
4170 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004171 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004172 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004173 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004174 .total_size = 4096,
4175 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004176 /* OTP: 512B total; enter 0x3A */
4177 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004178 .tested = TEST_UNTESTED,
4179 .probe = probe_spi_rdid,
4180 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004181 .block_erasers =
4182 {
4183 {
4184 .eraseblocks = {
4185 {4 * 1024, 2},
4186 {8 * 1024, 1},
4187 {16 * 1024, 1},
4188 {32 * 1024, 1},
4189 {64 * 1024, 63},
4190 },
4191 .block_erase = spi_block_erase_d8,
4192 }, {
4193 .eraseblocks = { {4 * 1024 * 1024, 1} },
4194 .block_erase = spi_block_erase_c7,
4195 }
4196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004197 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004198 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004199 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004200 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004201 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004202 },
4203
4204 {
4205 .vendor = "Eon",
4206 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004207 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004208 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004209 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004210 .total_size = 4096,
4211 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004212 /* OTP: 512B total; enter 0x3A */
4213 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004214 .tested = TEST_UNTESTED,
4215 .probe = probe_spi_rdid,
4216 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004217 .block_erasers =
4218 {
4219 {
4220 .eraseblocks = {
4221 {64 * 1024, 63},
4222 {32 * 1024, 1},
4223 {16 * 1024, 1},
4224 {8 * 1024, 1},
4225 {4 * 1024, 2},
4226 },
4227 .block_erase = spi_block_erase_d8,
4228 }, {
4229 .eraseblocks = { {4 * 1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_c7,
4231 }
4232 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004234 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004235 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004236 .read = spi_chip_read, /* Fast read (0x0B) supported */
4237 .voltage = {2700, 3600},
4238 },
4239
4240 {
4241 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004242 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004243 .bustype = BUS_SPI,
4244 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004245 .model_id = EON_EN25B40,
4246 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004247 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004248 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004249 .tested = TEST_UNTESTED,
4250 .probe = probe_spi_rdid,
4251 .probe_timing = TIMING_ZERO,
4252 .block_erasers =
4253 {
4254 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004255 .eraseblocks = {
4256 {4 * 1024, 2},
4257 {8 * 1024, 1},
4258 {16 * 1024, 1},
4259 {32 * 1024, 1},
4260 {64 * 1024, 7}
4261 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004262 .block_erase = spi_block_erase_d8,
4263 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004264 .eraseblocks = { {512 * 1024, 1} },
4265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
4268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4269 .unlock = spi_disable_blockprotect,
4270 .write = spi_chip_write_256,
4271 .read = spi_chip_read, /* Fast read (0x0B) supported */
4272 .voltage = {2700, 3600},
4273 },
4274
4275 {
4276 .vendor = "Eon",
4277 .name = "EN25B40T",
4278 .bustype = BUS_SPI,
4279 .manufacture_id = EON_ID_NOPREFIX,
4280 .model_id = EON_EN25B40,
4281 .total_size = 512,
4282 .page_size = 256,
4283 .feature_bits = FEATURE_WRSR_WREN,
4284 .tested = TEST_UNTESTED,
4285 .probe = probe_spi_rdid,
4286 .probe_timing = TIMING_ZERO,
4287 .block_erasers =
4288 {
4289 {
4290 .eraseblocks = {
4291 {64 * 1024, 7},
4292 {32 * 1024, 1},
4293 {16 * 1024, 1},
4294 {8 * 1024, 1},
4295 {4 * 1024, 2},
4296 },
4297 .block_erase = spi_block_erase_d8,
4298 }, {
4299 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004300 .block_erase = spi_block_erase_c7,
4301 }
4302 },
4303 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4304 .unlock = spi_disable_blockprotect,
4305 .write = spi_chip_write_256,
4306 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004307 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004308 },
4309
4310 {
4311 .vendor = "Eon",
4312 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004313 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004314 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004315 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004316 .total_size = 8192,
4317 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004318 /* OTP: 512B total; enter 0x3A */
4319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004320 .tested = TEST_UNTESTED,
4321 .probe = probe_spi_rdid,
4322 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004323 .block_erasers =
4324 {
4325 {
4326 .eraseblocks = {
4327 {4 * 1024, 2},
4328 {8 * 1024, 1},
4329 {16 * 1024, 1},
4330 {32 * 1024, 1},
4331 {64 * 1024, 127},
4332 },
4333 .block_erase = spi_block_erase_d8,
4334 }, {
4335 .eraseblocks = { {8 * 1024 * 1024, 1} },
4336 .block_erase = spi_block_erase_c7,
4337 }
4338 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004339 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004340 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004341 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004342 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004343 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004344 },
4345
4346 {
4347 .vendor = "Eon",
4348 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004349 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004350 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004351 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004352 .total_size = 8192,
4353 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004354 /* OTP: 512B total; enter 0x3A */
4355 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004356 .tested = TEST_UNTESTED,
4357 .probe = probe_spi_rdid,
4358 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004359 .block_erasers =
4360 {
4361 {
4362 .eraseblocks = {
4363 {64 * 1024, 127},
4364 {32 * 1024, 1},
4365 {16 * 1024, 1},
4366 {8 * 1024, 1},
4367 {4 * 1024, 2},
4368 },
4369 .block_erase = spi_block_erase_d8,
4370 }, {
4371 .eraseblocks = { {8 * 1024 * 1024, 1} },
4372 .block_erase = spi_block_erase_c7,
4373 }
4374 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004375 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004377 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004378 .read = spi_chip_read, /* Fast read (0x0B) supported */
4379 .voltage = {2700, 3600},
4380 },
4381
4382 {
4383 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004384 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004385 .bustype = BUS_SPI,
4386 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004387 .model_id = EON_EN25B80,
4388 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004389 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004390 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004391 .tested = TEST_UNTESTED,
4392 .probe = probe_spi_rdid,
4393 .probe_timing = TIMING_ZERO,
4394 .block_erasers =
4395 {
4396 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004397 .eraseblocks = {
4398 {4 * 1024, 2},
4399 {8 * 1024, 1},
4400 {16 * 1024, 1},
4401 {32 * 1024, 1},
4402 {64 * 1024, 15}
4403 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004404 .block_erase = spi_block_erase_d8,
4405 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004406 .eraseblocks = { {1024 * 1024, 1} },
4407 .block_erase = spi_block_erase_c7,
4408 }
4409 },
4410 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4411 .unlock = spi_disable_blockprotect,
4412 .write = spi_chip_write_256,
4413 .read = spi_chip_read, /* Fast read (0x0B) supported */
4414 .voltage = {2700, 3600},
4415 },
4416
4417 {
4418 .vendor = "Eon",
4419 .name = "EN25B80T",
4420 .bustype = BUS_SPI,
4421 .manufacture_id = EON_ID_NOPREFIX,
4422 .model_id = EON_EN25B80,
4423 .total_size = 1024,
4424 .page_size = 256,
4425 .feature_bits = FEATURE_WRSR_WREN,
4426 .tested = TEST_UNTESTED,
4427 .probe = probe_spi_rdid,
4428 .probe_timing = TIMING_ZERO,
4429 .block_erasers =
4430 {
4431 {
4432 .eraseblocks = {
4433 {64 * 1024, 15},
4434 {32 * 1024, 1},
4435 {16 * 1024, 1},
4436 {8 * 1024, 1},
4437 {4 * 1024, 2},
4438 },
4439 .block_erase = spi_block_erase_d8,
4440 }, {
4441 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004442 .block_erase = spi_block_erase_c7,
4443 }
4444 },
4445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4446 .unlock = spi_disable_blockprotect,
4447 .write = spi_chip_write_256,
4448 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004449 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004450 },
4451
4452 {
4453 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004454 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004455 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004456 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004457 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004458 .total_size = 64,
4459 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004460 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004461 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004462 .probe = probe_spi_rdid,
4463 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004464 .block_erasers =
4465 {
4466 {
4467 .eraseblocks = { {4 * 1024, 16} },
4468 .block_erase = spi_block_erase_20,
4469 }, {
4470 .eraseblocks = { {32 * 1024, 2} },
4471 .block_erase = spi_block_erase_d8,
4472 }, {
4473 .eraseblocks = { {32 * 1024, 2} },
4474 .block_erase = spi_block_erase_52,
4475 }, {
4476 .eraseblocks = { {64 * 1024, 1} },
4477 .block_erase = spi_block_erase_60,
4478 }, {
4479 .eraseblocks = { {64 * 1024, 1} },
4480 .block_erase = spi_block_erase_c7,
4481 }
4482 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004483 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004484 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004485 .write = spi_chip_write_256,
4486 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004487 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004488 },
4489
4490 {
4491 .vendor = "Eon",
4492 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004493 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004494 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004495 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004496 .total_size = 128,
4497 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004498 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004499 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004500 .probe = probe_spi_rdid,
4501 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004502 .block_erasers =
4503 {
4504 {
4505 .eraseblocks = { {4 * 1024, 32} },
4506 .block_erase = spi_block_erase_20,
4507 }, {
4508 .eraseblocks = { {32 * 1024, 4} },
4509 .block_erase = spi_block_erase_d8,
4510 }, {
4511 .eraseblocks = { {32 * 1024, 4} },
4512 .block_erase = spi_block_erase_52,
4513 }, {
4514 .eraseblocks = { {128 * 1024, 1} },
4515 .block_erase = spi_block_erase_60,
4516 }, {
4517 .eraseblocks = { {128 * 1024, 1} },
4518 .block_erase = spi_block_erase_c7,
4519 }
4520 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004521 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004522 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004523 .write = spi_chip_write_256,
4524 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004525 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004526 },
4527
4528 {
4529 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004530 .name = "EN25F16",
4531 .bustype = BUS_SPI,
4532 .manufacture_id = EON_ID_NOPREFIX,
4533 .model_id = EON_EN25F16,
4534 .total_size = 2048,
4535 .page_size = 256,
4536 .feature_bits = FEATURE_WRSR_WREN,
4537 .tested = TEST_OK_PREW,
4538 .probe = probe_spi_rdid,
4539 .probe_timing = TIMING_ZERO,
4540 .block_erasers =
4541 {
4542 {
4543 .eraseblocks = { {4 * 1024, 512} },
4544 .block_erase = spi_block_erase_20,
4545 }, {
4546 .eraseblocks = { {64 * 1024, 32} },
4547 .block_erase = spi_block_erase_d8,
4548 }, {
4549 .eraseblocks = { {2 * 1024 * 1024, 1} },
4550 .block_erase = spi_block_erase_60,
4551 }, {
4552 .eraseblocks = { {2 * 1024 * 1024, 1} },
4553 .block_erase = spi_block_erase_c7,
4554 }
4555 },
4556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4557 .unlock = spi_disable_blockprotect,
4558 .write = spi_chip_write_256,
4559 .read = spi_chip_read,
4560 .voltage = {2700, 3600},
4561 },
4562
4563 {
4564 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004565 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004566 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004568 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004569 .total_size = 256,
4570 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004571 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004572 .tested = TEST_UNTESTED,
4573 .probe = probe_spi_rdid,
4574 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004575 .block_erasers =
4576 {
4577 {
4578 .eraseblocks = { {4 * 1024, 64} },
4579 .block_erase = spi_block_erase_20,
4580 }, {
4581 .eraseblocks = { {64 * 1024, 4} },
4582 .block_erase = spi_block_erase_d8,
4583 }, {
4584 .eraseblocks = { {64 * 1024, 4} },
4585 .block_erase = spi_block_erase_52,
4586 }, {
4587 .eraseblocks = { {256 * 1024, 1} },
4588 .block_erase = spi_block_erase_60,
4589 }, {
4590 .eraseblocks = { {256 * 1024, 1} },
4591 .block_erase = spi_block_erase_c7,
4592 }
4593 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004595 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004596 .write = spi_chip_write_256,
4597 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004598 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004599 },
4600
4601 {
4602 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004603 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004604 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004605 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004606 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004607 .total_size = 4096,
4608 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004609 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004610 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004611 .probe = probe_spi_rdid,
4612 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004613 .block_erasers =
4614 {
4615 {
4616 .eraseblocks = { {4 * 1024, 1024} },
4617 .block_erase = spi_block_erase_20,
4618 }, {
4619 .eraseblocks = { {64 * 1024, 64} },
4620 .block_erase = spi_block_erase_d8,
4621 }, {
4622 .eraseblocks = { {4 * 1024 * 1024, 1} },
4623 .block_erase = spi_block_erase_60,
4624 }, {
4625 .eraseblocks = { {4 * 1024 * 1024, 1} },
4626 .block_erase = spi_block_erase_c7,
4627 }
4628 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004629 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004630 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004631 .write = spi_chip_write_256,
4632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004633 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004634 },
4635
4636 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004637 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004638 .name = "EN25F40",
4639 .bustype = BUS_SPI,
4640 .manufacture_id = EON_ID_NOPREFIX,
4641 .model_id = EON_EN25F40,
4642 .total_size = 512,
4643 .page_size = 256,
4644 .feature_bits = FEATURE_WRSR_WREN,
4645 .tested = TEST_OK_PREW,
4646 .probe = probe_spi_rdid,
4647 .probe_timing = TIMING_ZERO,
4648 .block_erasers =
4649 {
4650 {
4651 .eraseblocks = { {4 * 1024, 128} },
4652 .block_erase = spi_block_erase_20,
4653 }, {
4654 .eraseblocks = { {64 * 1024, 8} },
4655 .block_erase = spi_block_erase_d8,
4656 }, {
4657 .eraseblocks = { {512 * 1024, 1} },
4658 .block_erase = spi_block_erase_60,
4659 }, {
4660 .eraseblocks = { {512 * 1024, 1} },
4661 .block_erase = spi_block_erase_c7,
4662 },
4663 },
4664 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4665 .unlock = spi_disable_blockprotect,
4666 .write = spi_chip_write_256,
4667 .read = spi_chip_read,
4668 .voltage = {2700, 3600},
4669 },
4670
4671 {
4672 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004673 .name = "EN25F64",
4674 .bustype = BUS_SPI,
4675 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004676 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004677 .total_size = 8192,
4678 .page_size = 256,
4679 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004680 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004681 .probe = probe_spi_rdid,
4682 .probe_timing = TIMING_ZERO,
4683 .block_erasers =
4684 {
4685 {
4686 .eraseblocks = { {4 * 1024, 2048} },
4687 .block_erase = spi_block_erase_20,
4688 }, {
4689 .eraseblocks = { {64 * 1024, 128} },
4690 .block_erase = spi_block_erase_d8,
4691 }, {
4692 .eraseblocks = { {8 * 1024 * 1024, 1} },
4693 .block_erase = spi_block_erase_60,
4694 }, {
4695 .eraseblocks = { {8 * 1024 * 1024, 1} },
4696 .block_erase = spi_block_erase_c7,
4697 }
4698 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004699 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004700 .unlock = spi_disable_blockprotect,
4701 .write = spi_chip_write_256,
4702 .read = spi_chip_read,
4703 .voltage = {2700, 3600},
4704 },
4705
4706 {
4707 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004708 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004709 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004710 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004711 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004712 .total_size = 1024,
4713 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004714 .feature_bits = FEATURE_WRSR_WREN,
4715 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004716 .probe = probe_spi_rdid,
4717 .probe_timing = TIMING_ZERO,
4718 .block_erasers =
4719 {
4720 {
4721 .eraseblocks = { {4 * 1024, 256} },
4722 .block_erase = spi_block_erase_20,
4723 }, {
4724 .eraseblocks = { {64 * 1024, 16} },
4725 .block_erase = spi_block_erase_d8,
4726 }, {
4727 .eraseblocks = { {1024 * 1024, 1} },
4728 .block_erase = spi_block_erase_60,
4729 }, {
4730 .eraseblocks = { {1024 * 1024, 1} },
4731 .block_erase = spi_block_erase_c7,
4732 }
4733 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004734 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004735 .unlock = spi_disable_blockprotect,
4736 .write = spi_chip_write_256,
4737 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004738 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004739 },
4740
4741 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004742 .vendor = "Eon",
4743 .name = "EN25P05",
4744 .bustype = BUS_SPI,
4745 .manufacture_id = EON_ID_NOPREFIX,
4746 .model_id = EON_EN25B05,
4747 .total_size = 64,
4748 .page_size = 256,
4749 .feature_bits = FEATURE_WRSR_WREN,
4750 .tested = TEST_UNTESTED,
4751 .probe = probe_spi_rdid,
4752 .probe_timing = TIMING_ZERO,
4753 .block_erasers =
4754 {
4755 {
4756 .eraseblocks = {
4757 {32 * 1024, 2} },
4758 .block_erase = spi_block_erase_d8,
4759 }, {
4760 .eraseblocks = { {64 * 1024, 1} },
4761 .block_erase = spi_block_erase_c7,
4762 }
4763 },
4764 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4765 .unlock = spi_disable_blockprotect,
4766 .write = spi_chip_write_256,
4767 .read = spi_chip_read, /* Fast read (0x0B) supported */
4768 .voltage = {2700, 3600},
4769 },
4770
4771 {
4772 .vendor = "Eon",
4773 .name = "EN25P10",
4774 .bustype = BUS_SPI,
4775 .manufacture_id = EON_ID_NOPREFIX,
4776 .model_id = EON_EN25B10,
4777 .total_size = 128,
4778 .page_size = 256,
4779 .feature_bits = FEATURE_WRSR_WREN,
4780 .tested = TEST_UNTESTED,
4781 .probe = probe_spi_rdid,
4782 .probe_timing = TIMING_ZERO,
4783 .block_erasers =
4784 {
4785 {
4786 .eraseblocks = { {32 * 1024, 4} },
4787 .block_erase = spi_block_erase_d8,
4788 }, {
4789 .eraseblocks = { {128 * 1024, 1} },
4790 .block_erase = spi_block_erase_c7,
4791 }
4792 },
4793 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4794 .unlock = spi_disable_blockprotect,
4795 .write = spi_chip_write_256,
4796 .read = spi_chip_read, /* Fast read (0x0B) supported */
4797 .voltage = {2700, 3600},
4798 },
4799
4800 {
4801 .vendor = "Eon",
4802 .name = "EN25P16",
4803 .bustype = BUS_SPI,
4804 .manufacture_id = EON_ID_NOPREFIX,
4805 .model_id = EON_EN25B16,
4806 .total_size = 2048,
4807 .page_size = 256,
4808 .feature_bits = FEATURE_WRSR_WREN,
4809 .tested = TEST_UNTESTED,
4810 .probe = probe_spi_rdid,
4811 .probe_timing = TIMING_ZERO,
4812 .block_erasers =
4813 {
4814 {
4815 .eraseblocks = { {64 * 1024, 32} },
4816 .block_erase = spi_block_erase_d8,
4817 }, {
4818 .eraseblocks = { {2 * 1024 * 1024, 1} },
4819 .block_erase = spi_block_erase_c7,
4820 }
4821 },
4822 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4823 .unlock = spi_disable_blockprotect,
4824 .write = spi_chip_write_256,
4825 .read = spi_chip_read, /* Fast read (0x0B) supported */
4826 .voltage = {2700, 3600},
4827 },
4828
4829 {
4830 .vendor = "Eon",
4831 .name = "EN25P20",
4832 .bustype = BUS_SPI,
4833 .manufacture_id = EON_ID_NOPREFIX,
4834 .model_id = EON_EN25B20,
4835 .total_size = 256,
4836 .page_size = 256,
4837 .feature_bits = FEATURE_WRSR_WREN,
4838 .tested = TEST_UNTESTED,
4839 .probe = probe_spi_rdid,
4840 .probe_timing = TIMING_ZERO,
4841 .block_erasers =
4842 {
4843 {
4844 .eraseblocks = { {64 * 1024, 4} },
4845 .block_erase = spi_block_erase_d8,
4846 }, {
4847 .eraseblocks = { {256 * 1024, 1} },
4848 .block_erase = spi_block_erase_c7,
4849 }
4850 },
4851 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4852 .unlock = spi_disable_blockprotect,
4853 .write = spi_chip_write_256,
4854 .read = spi_chip_read, /* Fast read (0x0B) supported */
4855 .voltage = {2700, 3600},
4856 },
4857
4858 {
4859 .vendor = "Eon",
4860 .name = "EN25P32", /* Uniform version of EN25B32 */
4861 .bustype = BUS_SPI,
4862 .manufacture_id = EON_ID_NOPREFIX,
4863 .model_id = EON_EN25B32,
4864 .total_size = 4096,
4865 .page_size = 256,
4866 /* OTP: 512B total; enter 0x3A */
4867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4868 .tested = TEST_UNTESTED,
4869 .probe = probe_spi_rdid,
4870 .probe_timing = TIMING_ZERO,
4871 .block_erasers =
4872 {
4873 {
4874 .eraseblocks = { {64 * 1024, 64} },
4875 .block_erase = spi_block_erase_d8,
4876 }, {
4877 .eraseblocks = { {4 * 1024 * 1024, 1} },
4878 .block_erase = spi_block_erase_c7,
4879 }
4880 },
4881 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4882 .unlock = spi_disable_blockprotect,
4883 .write = spi_chip_write_256,
4884 .read = spi_chip_read, /* Fast read (0x0B) supported */
4885 .voltage = {2700, 3600},
4886 },
4887
4888 {
4889 .vendor = "Eon",
4890 .name = "EN25P40",
4891 .bustype = BUS_SPI,
4892 .manufacture_id = EON_ID_NOPREFIX,
4893 .model_id = EON_EN25B40,
4894 .total_size = 512,
4895 .page_size = 256,
4896 .feature_bits = FEATURE_WRSR_WREN,
4897 .tested = TEST_UNTESTED,
4898 .probe = probe_spi_rdid,
4899 .probe_timing = TIMING_ZERO,
4900 .block_erasers =
4901 {
4902 {
4903 .eraseblocks = { {64 * 1024, 8} },
4904 .block_erase = spi_block_erase_d8,
4905 }, {
4906 .eraseblocks = { {512 * 1024, 1} },
4907 .block_erase = spi_block_erase_c7,
4908 }
4909 },
4910 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4911 .unlock = spi_disable_blockprotect,
4912 .write = spi_chip_write_256,
4913 .read = spi_chip_read, /* Fast read (0x0B) supported */
4914 .voltage = {2700, 3600},
4915 },
4916
4917 {
4918 .vendor = "Eon",
4919 .name = "EN25P64",
4920 .bustype = BUS_SPI,
4921 .manufacture_id = EON_ID_NOPREFIX,
4922 .model_id = EON_EN25B64,
4923 .total_size = 8192,
4924 .page_size = 256,
4925 /* OTP: 512B total; enter 0x3A */
4926 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4927 .tested = TEST_UNTESTED,
4928 .probe = probe_spi_rdid,
4929 .probe_timing = TIMING_ZERO,
4930 .block_erasers =
4931 {
4932 {
4933 .eraseblocks = { {64 * 1024, 128} },
4934 .block_erase = spi_block_erase_d8,
4935 }, {
4936 .eraseblocks = { {8 * 1024 * 1024, 1} },
4937 .block_erase = spi_block_erase_c7,
4938 }
4939 },
4940 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4941 .unlock = spi_disable_blockprotect,
4942 .write = spi_chip_write_256,
4943 .read = spi_chip_read, /* Fast read (0x0B) supported */
4944 .voltage = {2700, 3600},
4945 },
4946
4947 {
4948 .vendor = "Eon",
4949 .name = "EN25P80",
4950 .bustype = BUS_SPI,
4951 .manufacture_id = EON_ID_NOPREFIX,
4952 .model_id = EON_EN25B80,
4953 .total_size = 1024,
4954 .page_size = 256,
4955 .feature_bits = FEATURE_WRSR_WREN,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers =
4960 {
4961 {
4962 .eraseblocks = { {64 * 1024, 16} },
4963 .block_erase = spi_block_erase_d8,
4964 }, {
4965 .eraseblocks = { {1024 * 1024, 1} },
4966 .block_erase = spi_block_erase_c7,
4967 }
4968 },
4969 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4970 .unlock = spi_disable_blockprotect,
4971 .write = spi_chip_write_256,
4972 .read = spi_chip_read, /* Fast read (0x0B) supported */
4973 .voltage = {2700, 3600},
4974 },
4975
4976 {
4977 .vendor = "Eon",
4978 .name = "EN25Q128",
4979 .bustype = BUS_SPI,
4980 .manufacture_id = EON_ID_NOPREFIX,
4981 .model_id = EON_EN25Q128,
4982 .total_size = 16384,
4983 .page_size = 256,
4984 /* OTP: 512B total; enter 0x3A */
4985 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4986 .tested = TEST_OK_PREW,
4987 .probe = probe_spi_rdid,
4988 .probe_timing = TIMING_ZERO,
4989 .block_erasers =
4990 {
4991 {
4992 .eraseblocks = { {4 * 1024, 4096} },
4993 .block_erase = spi_block_erase_20,
4994 }, {
4995 .eraseblocks = { {64 * 1024, 256} },
4996 .block_erase = spi_block_erase_d8,
4997 }, {
4998 .eraseblocks = { {16 * 1024 * 1024, 1} },
4999 .block_erase = spi_block_erase_60,
5000 }, {
5001 .eraseblocks = { {16 * 1024 * 1024, 1} },
5002 .block_erase = spi_block_erase_c7,
5003 }
5004 },
5005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5006 .unlock = spi_disable_blockprotect,
5007 .write = spi_chip_write_256,
5008 .read = spi_chip_read,
5009 },
5010
5011 {
David Hendricks6d715302011-07-24 22:21:57 +00005012 /* Note: EN25D16 is an evil twin which shares the model ID
5013 but has different write protection capabilities */
5014 .vendor = "Eon",
5015 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005016 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005017 .manufacture_id = EON_ID_NOPREFIX,
5018 .model_id = EON_EN25Q16,
5019 .total_size = 2048,
5020 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005021 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
5022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00005023 .tested = TEST_UNTESTED,
5024 .probe = probe_spi_rdid,
5025 .probe_timing = TIMING_ZERO,
5026 .block_erasers =
5027 {
5028 {
5029 .eraseblocks = { {4 * 1024, 512} },
5030 .block_erase = spi_block_erase_20,
5031 }, {
5032 .eraseblocks = { {64 * 1024, 32} },
5033 .block_erase = spi_block_erase_d8,
5034 }, {
5035 /* not supported by Q16 version */
5036 .eraseblocks = { {64 * 1024, 32} },
5037 .block_erase = spi_block_erase_52,
5038 }, {
5039 .eraseblocks = { {2 * 1024 * 1024, 1} },
5040 .block_erase = spi_block_erase_60,
5041 }, {
5042 .eraseblocks = { {2 * 1024 * 1024, 1} },
5043 .block_erase = spi_block_erase_c7,
5044 }
5045 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005046 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005047 .unlock = spi_disable_blockprotect,
5048 .write = spi_chip_write_256,
5049 .read = spi_chip_read,
5050 .voltage = {2700, 3600},
5051 },
5052
5053 {
5054 .vendor = "Eon",
5055 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005056 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005057 .manufacture_id = EON_ID_NOPREFIX,
5058 .model_id = EON_EN25Q32,
5059 .total_size = 4096,
5060 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005061 /* OTP: 512B total; enter 0x3A */
5062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005063 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .probe = probe_spi_rdid,
5065 .probe_timing = TIMING_ZERO,
5066 .block_erasers =
5067 {
5068 {
5069 .eraseblocks = { {4 * 1024, 1024} },
5070 .block_erase = spi_block_erase_20,
5071 }, {
5072 .eraseblocks = { {64 * 1024, 64} },
5073 .block_erase = spi_block_erase_d8,
5074 }, {
5075 .eraseblocks = { {4 * 1024 * 1024, 1} },
5076 .block_erase = spi_block_erase_60,
5077 }, {
5078 .eraseblocks = { {4 * 1024 * 1024, 1} },
5079 .block_erase = spi_block_erase_c7,
5080 }
5081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005082 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005083 .unlock = spi_disable_blockprotect,
5084 .write = spi_chip_write_256,
5085 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005086 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005087 },
5088
5089 {
5090 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005091 .name = "EN25Q40",
5092 .bustype = BUS_SPI,
5093 .manufacture_id = EON_ID_NOPREFIX,
5094 .model_id = EON_EN25Q40,
5095 .total_size = 512,
5096 .page_size = 256,
5097 /* OTP: 256B total; enter 0x3A */
5098 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5099 .tested = TEST_UNTESTED,
5100 .probe = probe_spi_rdid,
5101 .probe_timing = TIMING_ZERO,
5102 .block_erasers =
5103 {
5104 {
5105 .eraseblocks = { {4 * 1024, 128} },
5106 .block_erase = spi_block_erase_20,
5107 }, {
5108 .eraseblocks = { {64 * 1024, 8} },
5109 .block_erase = spi_block_erase_d8,
5110 }, {
5111 .eraseblocks = { {512 * 1024, 1} },
5112 .block_erase = spi_block_erase_60,
5113 }, {
5114 .eraseblocks = { {512 * 1024, 1} },
5115 .block_erase = spi_block_erase_c7,
5116 }
5117 },
5118 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5119 .unlock = spi_disable_blockprotect,
5120 .write = spi_chip_write_256,
5121 .read = spi_chip_read,
5122 .voltage = {2700, 3600},
5123 },
5124
5125 {
5126 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005127 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005128 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .manufacture_id = EON_ID_NOPREFIX,
5130 .model_id = EON_EN25Q64,
5131 .total_size = 8192,
5132 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005133 /* OTP: 512B total; enter 0x3A */
5134 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005135 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005136 .probe = probe_spi_rdid,
5137 .probe_timing = TIMING_ZERO,
5138 .block_erasers =
5139 {
5140 {
5141 .eraseblocks = { {4 * 1024, 2048} },
5142 .block_erase = spi_block_erase_20,
5143 }, {
5144 .eraseblocks = { {64 * 1024, 128} },
5145 .block_erase = spi_block_erase_d8,
5146 }, {
5147 .eraseblocks = { {8 * 1024 * 1024, 1} },
5148 .block_erase = spi_block_erase_60,
5149 }, {
5150 .eraseblocks = { {8 * 1024 * 1024, 1} },
5151 .block_erase = spi_block_erase_c7,
5152 }
5153 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005154 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005155 .unlock = spi_disable_blockprotect,
5156 .write = spi_chip_write_256,
5157 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005158 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005159 },
5160
5161 {
5162 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005163 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005164 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005165 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005166 .model_id = EON_EN25Q80,
5167 .total_size = 1024,
5168 .page_size = 256,
5169 /* OTP: 256B total; enter 0x3A */
5170 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5171 .tested = TEST_UNTESTED,
5172 .probe = probe_spi_rdid,
5173 .probe_timing = TIMING_ZERO,
5174 .block_erasers =
5175 {
5176 {
5177 .eraseblocks = { {4 * 1024, 256} },
5178 .block_erase = spi_block_erase_20,
5179 }, {
5180 .eraseblocks = { {64 * 1024, 16} },
5181 .block_erase = spi_block_erase_d8,
5182 }, {
5183 .eraseblocks = { {1024 * 1024, 1} },
5184 .block_erase = spi_block_erase_60,
5185 }, {
5186 .eraseblocks = { {1024 * 1024, 1} },
5187 .block_erase = spi_block_erase_c7,
5188 }
5189 },
5190 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5191 .unlock = spi_disable_blockprotect,
5192 .write = spi_chip_write_256,
5193 .read = spi_chip_read,
5194 .voltage = {2700, 3600},
5195 },
5196
5197 {
5198 .vendor = "Eon",
5199 .name = "EN25QH128",
5200 .bustype = BUS_SPI,
5201 .manufacture_id = EON_ID_NOPREFIX,
5202 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005203 .total_size = 16384,
5204 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005205 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005206 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5208 .dummy_cycles =
5209 {
5210 .qpi_fast_read = 6,
5211 .qpi_fast_read_qio = 6,
5212 },
Tim Chenbfe149a2020-07-06 14:59:21 +08005213 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005214 .probe = probe_spi_rdid,
5215 .probe_timing = TIMING_ZERO,
5216 .block_erasers =
5217 {
5218 {
5219 .eraseblocks = { {4 * 1024, 4096} },
5220 .block_erase = spi_block_erase_20,
5221 }, {
5222 .eraseblocks = { {64 * 1024, 256} },
5223 .block_erase = spi_block_erase_d8,
5224 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005225 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005226 .block_erase = spi_block_erase_60,
5227 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005228 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005229 .block_erase = spi_block_erase_c7,
5230 }
5231 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005232 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5233 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005234 .write = spi_chip_write_256,
5235 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005236 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005237 .reg_bits =
5238 {
5239 .srp = {STATUS1, 7, RW},
5240 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5241 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5242 },
Nico Huberaabb3e02023-01-13 00:22:30 +01005243 .wp_write_cfg = spi_wp_write_cfg,
5244 .wp_read_cfg = spi_wp_read_cfg,
5245 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005246 .decode_range = decode_range_spi25,
David Hendricks6d715302011-07-24 22:21:57 +00005247 },
5248
5249 {
5250 .vendor = "Eon",
5251 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005252 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005253 .manufacture_id = EON_ID_NOPREFIX,
5254 .model_id = EON_EN25QH16,
5255 .total_size = 2048,
5256 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005257 /* supports SFDP */
5258 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5260 .dummy_cycles =
5261 {
5262 .qpi_fast_read = 6,
5263 .qpi_fast_read_qio = 6,
5264 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00005265 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005266 .probe = probe_spi_rdid,
5267 .probe_timing = TIMING_ZERO,
5268 .block_erasers =
5269 {
5270 {
5271 .eraseblocks = { {4 * 1024, 512} },
5272 .block_erase = spi_block_erase_20,
5273 }, {
5274 .eraseblocks = { {64 * 1024, 32} },
5275 .block_erase = spi_block_erase_d8,
5276 }, {
5277 .eraseblocks = { {1024 * 2048, 1} },
5278 .block_erase = spi_block_erase_60,
5279 }, {
5280 .eraseblocks = { {1024 * 2048, 1} },
5281 .block_erase = spi_block_erase_c7,
5282 }
5283 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005284 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005285 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005286 .write = spi_chip_write_256,
5287 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005288 .voltage = {2700, 3600},
5289 },
5290
5291 {
5292 .vendor = "Eon",
5293 .name = "EN25QH32",
5294 .bustype = BUS_SPI,
5295 .manufacture_id = EON_ID_NOPREFIX,
5296 .model_id = EON_EN25QH32,
5297 .total_size = 4096,
5298 .page_size = 256,
5299 /* supports SFDP */
5300 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5302 .dummy_cycles =
5303 {
5304 .qpi_fast_read = 6,
5305 .qpi_fast_read_qio = 6,
5306 },
Stefan Tauner23e10b82016-01-23 16:16:49 +00005307 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005308 .probe = probe_spi_rdid,
5309 .probe_timing = TIMING_ZERO,
5310 .block_erasers =
5311 {
5312 {
5313 .eraseblocks = { {4 * 1024, 1024} },
5314 .block_erase = spi_block_erase_20,
5315 }, {
5316 .eraseblocks = { {64 * 1024, 64} },
5317 .block_erase = spi_block_erase_d8,
5318 }, {
5319 .eraseblocks = { {1024 * 4096, 1} },
5320 .block_erase = spi_block_erase_60,
5321 }, {
5322 .eraseblocks = { {1024 * 4096, 1} },
5323 .block_erase = spi_block_erase_c7,
5324 }
5325 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005326 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005327 .unlock = spi_disable_blockprotect_bp3_srwd,
5328 .write = spi_chip_write_256,
5329 .read = spi_chip_read,
5330 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005331 .reg_bits =
5332 {
5333 .srp = {STATUS1, 7, RW},
5334 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5335 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5336 },
Nico Huberaabb3e02023-01-13 00:22:30 +01005337 .wp_write_cfg = spi_wp_write_cfg,
5338 .wp_read_cfg = spi_wp_read_cfg,
5339 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005340 .decode_range = decode_range_spi25,
5341 },
5342
5343 {
5344 .vendor = "Eon",
5345 .name = "EN25QH32B",
5346 .bustype = BUS_SPI,
5347 .manufacture_id = EON_ID_NOPREFIX,
5348 .model_id = EON_EN25QH32,
5349 .total_size = 4096,
5350 .page_size = 256,
5351 /* supports SFDP */
5352 /* OTP: 1536B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005353 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_38,
5354 .dummy_cycles =
5355 {
5356 .qpi_fast_read = 6,
5357 .qpi_fast_read_qio = 6,
5358 },
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005359 .tested = TEST_OK_PREW,
5360 .probe = probe_spi_rdid,
5361 .probe_timing = TIMING_ZERO,
5362 .block_erasers =
5363 {
5364 {
5365 .eraseblocks = { {4 * 1024, 1024} },
5366 .block_erase = spi_block_erase_20,
5367 }, {
5368 .eraseblocks = { {32 * 1024, 128} },
5369 .block_erase = spi_block_erase_52,
5370 }, {
5371 .eraseblocks = { {64 * 1024, 64} },
5372 .block_erase = spi_block_erase_d8,
5373 }, {
5374 .eraseblocks = { {1024 * 4096, 1} },
5375 .block_erase = spi_block_erase_60,
5376 }, {
5377 .eraseblocks = { {1024 * 4096, 1} },
5378 .block_erase = spi_block_erase_c7,
5379 }
5380 },
5381 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5382 .unlock = spi_disable_blockprotect_bp3_srwd,
5383 .write = spi_chip_write_256,
5384 .read = spi_chip_read,
5385 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005386 },
5387
5388 {
5389 .vendor = "Eon",
5390 .name = "EN25QH64",
5391 .bustype = BUS_SPI,
5392 .manufacture_id = EON_ID_NOPREFIX,
5393 .model_id = EON_EN25QH64,
5394 .total_size = 8192,
5395 .page_size = 256,
5396 /* supports SFDP */
5397 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5399 .dummy_cycles =
5400 {
5401 .qpi_fast_read = 6,
5402 .qpi_fast_read_qio = 6,
5403 },
Stefan Tauner23e10b82016-01-23 16:16:49 +00005404 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005405 .probe = probe_spi_rdid,
5406 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005407 .block_erasers =
5408 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005409 {
5410 .eraseblocks = { {4 * 1024, 2048} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 128} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { { 8192 * 1024, 1} },
5417 .block_erase = spi_block_erase_60,
5418 }, {
5419 .eraseblocks = { { 8192 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
5422 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005423 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005424 .unlock = spi_disable_blockprotect_bp3_srwd,
5425 .write = spi_chip_write_256,
5426 .read = spi_chip_read,
5427 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005428 .reg_bits =
5429 {
5430 .srp = {STATUS1, 7, RW},
5431 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5432 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5433 },
Nico Huberaabb3e02023-01-13 00:22:30 +01005434 .wp_write_cfg = spi_wp_write_cfg,
5435 .wp_read_cfg = spi_wp_read_cfg,
5436 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005437 .decode_range = decode_range_spi25_64k_block,
5438 },
5439
5440 {
5441 .vendor = "Eon",
5442 .name = "EN25QH64A",
5443 .bustype = BUS_SPI,
5444 .manufacture_id = EON_ID_NOPREFIX,
5445 .model_id = EON_EN25QH64,
5446 .total_size = 8192,
5447 .page_size = 256,
5448 /* supports SFDP */
5449 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005450 /* Has a special, volatile status register 3 that is written with
5451 0xc0 like Set Read Parameters. Hence treating as QPI_SRP. */
5452 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
5453 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005454 .tested = TEST_OK_PREW,
5455 .probe = probe_spi_rdid,
5456 .probe_timing = TIMING_ZERO,
5457 .block_erasers =
5458 {
5459 {
5460 .eraseblocks = { {4 * 1024, 2048} },
5461 .block_erase = spi_block_erase_20,
5462 }, {
5463 .eraseblocks = { {32 * 1024, 256} },
5464 .block_erase = spi_block_erase_52,
5465 }, {
5466 .eraseblocks = { {64 * 1024, 128} },
5467 .block_erase = spi_block_erase_d8,
5468 }, {
5469 .eraseblocks = { { 8192 * 1024, 1} },
5470 .block_erase = spi_block_erase_60,
5471 }, {
5472 .eraseblocks = { { 8192 * 1024, 1} },
5473 .block_erase = spi_block_erase_c7,
5474 }
5475 },
5476 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5477 .unlock = spi_disable_blockprotect_bp3_srwd,
5478 .write = spi_chip_write_256,
5479 .read = spi_chip_read,
5480 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005481 },
5482
5483 {
5484 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005485 .name = "EN25S10",
5486 .bustype = BUS_SPI,
5487 .manufacture_id = EON_ID_NOPREFIX,
5488 .model_id = EON_EN25S10,
5489 .total_size = 128,
5490 .page_size = 256,
5491 /* OTP: 256B total; enter 0x3A */
5492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5493 .tested = TEST_UNTESTED,
5494 .probe = probe_spi_rdid,
5495 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005496 .block_erasers =
5497 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005498 {
5499 .eraseblocks = { {4 * 1024, 32} },
5500 .block_erase = spi_block_erase_20,
5501 }, {
5502 .eraseblocks = { {32 * 1024, 4} },
5503 .block_erase = spi_block_erase_52,
5504 }, {
5505 .eraseblocks = { {128 * 1024, 1} },
5506 .block_erase = spi_block_erase_60,
5507 }, {
5508 .eraseblocks = { {128 * 1024, 1} },
5509 .block_erase = spi_block_erase_c7,
5510 }
5511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005512 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005513 .unlock = spi_disable_blockprotect,
5514 .write = spi_chip_write_256,
5515 .read = spi_chip_read,
5516 .voltage = {1650, 1950},
5517 },
5518
5519 {
5520 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005521 .name = "EN25S16",
5522 .bustype = BUS_SPI,
5523 .manufacture_id = EON_ID_NOPREFIX,
5524 .model_id = EON_EN25S16,
5525 .total_size = 2048,
5526 .page_size = 256,
5527 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5529 .dummy_cycles =
5530 {
5531 .qpi_fast_read = 6,
5532 .qpi_fast_read_qio = 6,
5533 },
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005534 .tested = TEST_UNTESTED,
5535 .probe = probe_spi_rdid,
5536 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005537 .block_erasers =
5538 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005539 {
5540 .eraseblocks = { {4 * 1024, 512} },
5541 .block_erase = spi_block_erase_20,
5542 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005543 .eraseblocks = { {32 * 1024, 64} },
5544 .block_erase = spi_block_erase_d8,
5545 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05305546 .eraseblocks = { {64 * 1024, 32} },
5547 .block_erase = spi_block_erase_52,
5548 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005549 .eraseblocks = { {2048 * 1024, 1} },
5550 .block_erase = spi_block_erase_60,
5551 }, {
5552 .eraseblocks = { {2048 * 1024, 1} },
5553 .block_erase = spi_block_erase_c7,
5554 }
5555 },
5556 .printlock = spi_prettyprint_status_register_en25s_wp,
5557 .unlock = spi_disable_blockprotect_bp3_srwd,
5558 .write = spi_chip_write_256,
5559 .read = spi_chip_read,
5560 .voltage = {1650, 1950},
5561 },
5562
5563 {
5564 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005565 .name = "EN25S20",
5566 .bustype = BUS_SPI,
5567 .manufacture_id = EON_ID_NOPREFIX,
5568 .model_id = EON_EN25S20,
5569 .total_size = 256,
5570 .page_size = 256,
5571 /* OTP: 256B total; enter 0x3A */
5572 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5573 .tested = TEST_UNTESTED,
5574 .probe = probe_spi_rdid,
5575 .probe_timing = TIMING_ZERO,
5576 .block_erasers =
5577 {
5578 {
5579 .eraseblocks = { {4 * 1024, 64} },
5580 .block_erase = spi_block_erase_20,
5581 }, {
5582 .eraseblocks = { {64 * 1024, 4} },
5583 .block_erase = spi_block_erase_d8,
5584 }, {
5585 .eraseblocks = { {256 * 1024, 1} },
5586 .block_erase = spi_block_erase_60,
5587 }, {
5588 .eraseblocks = { {256 * 1024, 1} },
5589 .block_erase = spi_block_erase_c7,
5590 }
5591 },
5592 .printlock = spi_prettyprint_status_register_bp2_srwd,
5593 .unlock = spi_disable_blockprotect,
5594 .write = spi_chip_write_256,
5595 .read = spi_chip_read,
5596 .voltage = {1650, 1950},
5597 },
5598
5599 {
5600 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005601 .name = "EN25S32",
5602 .bustype = BUS_SPI,
5603 .manufacture_id = EON_ID_NOPREFIX,
5604 .model_id = EON_EN25S32,
5605 .total_size = 4096,
5606 .page_size = 256,
5607 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005608 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5609 .dummy_cycles =
5610 {
5611 .qpi_fast_read = 6,
5612 .qpi_fast_read_qio = 6,
5613 },
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005614 .tested = TEST_UNTESTED,
5615 .probe = probe_spi_rdid,
5616 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005617 .block_erasers =
5618 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005619 {
5620 .eraseblocks = { {4 * 1024, 1024} },
5621 .block_erase = spi_block_erase_20,
5622 }, {
5623 .eraseblocks = { {32 * 1024, 128} },
5624 .block_erase = spi_block_erase_52,
5625 }, {
5626 .eraseblocks = { {64 * 1024, 64} },
5627 .block_erase = spi_block_erase_d8,
5628 }, {
5629 .eraseblocks = { {4096 * 1024, 1} },
5630 .block_erase = spi_block_erase_60,
5631 }, {
5632 .eraseblocks = { {4096 * 1024, 1} },
5633 .block_erase = spi_block_erase_c7,
5634 }
5635 },
5636 .printlock = spi_prettyprint_status_register_en25s_wp,
5637 .unlock = spi_disable_blockprotect_bp3_srwd,
5638 .write = spi_chip_write_256,
5639 .read = spi_chip_read,
5640 .voltage = {1650, 1950},
5641 },
5642
5643 {
5644 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005645 .name = "EN25S40",
5646 .bustype = BUS_SPI,
5647 .manufacture_id = EON_ID_NOPREFIX,
5648 .model_id = EON_EN25S40,
5649 .total_size = 512,
5650 .page_size = 256,
5651 /* OTP: 256B total; enter 0x3A */
5652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5653 .tested = TEST_OK_PREW,
5654 .probe = probe_spi_rdid,
5655 .probe_timing = TIMING_ZERO,
5656 .block_erasers =
5657 {
5658 {
5659 .eraseblocks = { {4 * 1024, 128} },
5660 .block_erase = spi_block_erase_20,
5661 }, {
5662 .eraseblocks = { {64 * 1024, 8} },
5663 .block_erase = spi_block_erase_d8,
5664 }, {
5665 .eraseblocks = { {512 * 1024, 1} },
5666 .block_erase = spi_block_erase_60,
5667 }, {
5668 .eraseblocks = { {512 * 1024, 1} },
5669 .block_erase = spi_block_erase_c7,
5670 }
5671 },
5672 .printlock = spi_prettyprint_status_register_bp2_srwd,
5673 .unlock = spi_disable_blockprotect,
5674 .write = spi_chip_write_256,
5675 .read = spi_chip_read,
5676 .voltage = {1650, 1950},
5677 },
5678
5679 {
5680 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005681 .name = "EN25S64",
5682 .bustype = BUS_SPI,
5683 .manufacture_id = EON_ID_NOPREFIX,
5684 .model_id = EON_EN25S64,
5685 .total_size = 8192,
5686 .page_size = 256,
5687 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5689 .dummy_cycles =
5690 {
5691 .qpi_fast_read = 6,
5692 .qpi_fast_read_qio = 6,
5693 },
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005694 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005695 .probe = probe_spi_rdid,
5696 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005697 .block_erasers =
5698 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005699 {
5700 .eraseblocks = { {4 * 1024, 2048} },
5701 .block_erase = spi_block_erase_20,
5702 }, {
5703 .eraseblocks = { {64 * 1024, 128} },
5704 .block_erase = spi_block_erase_d8,
5705 }, {
5706 .eraseblocks = { {8192 * 1024, 1} },
5707 .block_erase = spi_block_erase_60,
5708 }, {
5709 .eraseblocks = { {8192 * 1024, 1} },
5710 .block_erase = spi_block_erase_c7,
5711 }
5712 },
5713 .printlock = spi_prettyprint_status_register_en25s_wp,
5714 .unlock = spi_disable_blockprotect_bp3_srwd,
5715 .write = spi_chip_write_256,
5716 .read = spi_chip_read,
5717 .voltage = {1650, 1950},
5718 },
5719
5720 {
5721 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005722 .name = "EN25S80",
5723 .bustype = BUS_SPI,
5724 .manufacture_id = EON_ID_NOPREFIX,
5725 .model_id = EON_EN25S80,
5726 .total_size = 1024,
5727 .page_size = 256,
5728 /* OTP: 256B total; enter 0x3A */
5729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5730 .tested = TEST_UNTESTED,
5731 .probe = probe_spi_rdid,
5732 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005733 .block_erasers =
5734 {
5735 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005736 .eraseblocks = { {4 * 1024, 256} },
5737 .block_erase = spi_block_erase_20,
5738 }, {
5739 .eraseblocks = { {64 * 1024, 16} },
5740 .block_erase = spi_block_erase_d8,
5741 }, {
5742 .eraseblocks = { {1024 * 1024, 1} },
5743 .block_erase = spi_block_erase_60,
5744 }, {
5745 .eraseblocks = { {1024 * 1024, 1} },
5746 .block_erase = spi_block_erase_c7,
5747 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005748 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005749 .printlock = spi_prettyprint_status_register_bp2_srwd,
5750 .unlock = spi_disable_blockprotect,
5751 .write = spi_chip_write_256,
5752 .read = spi_chip_read,
5753 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005754 },
5755
5756 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005757 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005758 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005759 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005760 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005761 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005762 .total_size = 256,
5763 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005764 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005765 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005766 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005767 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005768 .block_erasers =
5769 {
5770 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005771 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005772 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005773 {8 * 1024, 2},
5774 {32 * 1024, 1},
5775 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005776 },
5777 .block_erase = erase_sector_jedec,
5778 }, {
5779 .eraseblocks = { {256 * 1024, 1} },
5780 .block_erase = erase_chip_block_jedec,
5781 },
5782 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005783 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005784 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005785 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005786 .prepare_access = prepare_memory_access,
5787 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00005788 },
5789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005791 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005792 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005793 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005794 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005795 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005796 .total_size = 256,
5797 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005798 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005799 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005800 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005801 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005802 .block_erasers =
5803 {
5804 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005805 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005806 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005807 {32 * 1024, 1},
5808 {8 * 1024, 2},
5809 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005810 },
5811 .block_erase = erase_sector_jedec,
5812 }, {
5813 .eraseblocks = { {256 * 1024, 1} },
5814 .block_erase = erase_chip_block_jedec,
5815 },
5816 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005819 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005820 .prepare_access = prepare_memory_access,
5821 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00005822 },
5823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005824 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005825 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005826 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005827 .bustype = BUS_PARALLEL,
5828 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005829 .model_id = EON_EN29F010,
5830 .total_size = 128,
5831 .page_size = 128,
5832 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5833 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005834 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005835 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005836 .block_erasers =
5837 {
5838 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005839 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005840 .block_erase = erase_sector_jedec,
5841 },
5842 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005843 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005844 .block_erase = erase_chip_block_jedec,
5845 },
5846 },
5847 .write = write_jedec_1,
5848 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005849 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005850 .prepare_access = prepare_memory_access,
5851 .finish_access = finish_memory_access,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005852 },
5853
5854 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005855 .vendor = "Eon",
5856 .name = "EN29GL064(A)B",
5857 .bustype = BUS_PARALLEL,
5858 .manufacture_id = EON_ID,
5859 .model_id = EON_EN29GL064B,
5860 .total_size = 8192,
5861 .page_size = 128 * 1024, /* actual page size is 16 */
5862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5863 .tested = TEST_UNTESTED,
5864 .probe = probe_jedec_29gl,
5865 .probe_timing = TIMING_ZERO,
5866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = {
5870 {8 * 1024, 8},
5871 {64 * 1024, 127},
5872 },
5873 .block_erase = erase_sector_jedec,
5874 }, {
5875 .eraseblocks = { {8 * 1024 * 1024, 1} },
5876 .block_erase = erase_chip_block_jedec,
5877 },
5878 },
5879 .write = write_jedec_1,
5880 .read = read_memmapped,
5881 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005882 .prepare_access = prepare_memory_access,
5883 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005884 },
5885
5886 {
5887 .vendor = "Eon",
5888 .name = "EN29GL064(A)T",
5889 .bustype = BUS_PARALLEL,
5890 .manufacture_id = EON_ID,
5891 .model_id = EON_EN29GL064T,
5892 .total_size = 8192,
5893 .page_size = 128 * 1024, /* actual page size is 16 */
5894 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5895 .tested = TEST_UNTESTED,
5896 .probe = probe_jedec_29gl,
5897 .probe_timing = TIMING_ZERO,
5898 .block_erasers =
5899 {
5900 {
5901 .eraseblocks = {
5902 {64 * 1024, 127},
5903 {8 * 1024, 8},
5904 },
5905 .block_erase = erase_sector_jedec,
5906 }, {
5907 .eraseblocks = { {8 * 1024 * 1024, 1} },
5908 .block_erase = erase_chip_block_jedec,
5909 },
5910 },
5911 .write = write_jedec_1,
5912 .read = read_memmapped,
5913 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005914 .prepare_access = prepare_memory_access,
5915 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005916 },
5917
5918 {
5919 .vendor = "Eon",
5920 .name = "EN29GL064H/L",
5921 .bustype = BUS_PARALLEL,
5922 .manufacture_id = EON_ID,
5923 .model_id = EON_EN29GL064HL,
5924 .total_size = 8192,
5925 .page_size = 128 * 1024, /* actual page size is 16 */
5926 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5927 .tested = TEST_UNTESTED,
5928 .probe = probe_jedec_29gl,
5929 .probe_timing = TIMING_ZERO,
5930 .block_erasers =
5931 {
5932 {
5933 .eraseblocks = { {64 * 1024, 128} },
5934 .block_erase = erase_sector_jedec,
5935 }, {
5936 .eraseblocks = { {8 * 1024 * 1024, 1} },
5937 .block_erase = erase_chip_block_jedec,
5938 },
5939 },
5940 .write = write_jedec_1,
5941 .read = read_memmapped,
5942 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005943 .prepare_access = prepare_memory_access,
5944 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005945 },
5946
5947 {
5948 .vendor = "Eon",
5949 .name = "EN29GL128",
5950 .bustype = BUS_PARALLEL,
5951 .manufacture_id = EON_ID,
5952 .model_id = EON_EN29GL128HL,
5953 .total_size = 16384,
5954 .page_size = 128 * 1024, /* actual page size is 16 */
5955 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5956 .tested = TEST_UNTESTED,
5957 .probe = probe_jedec_29gl,
5958 .probe_timing = TIMING_ZERO,
5959 .block_erasers =
5960 {
5961 {
5962 .eraseblocks = { {128 * 1024, 128} },
5963 .block_erase = erase_sector_jedec,
5964 }, {
5965 .eraseblocks = { {16 * 1024 * 1024, 1} },
5966 .block_erase = erase_chip_block_jedec,
5967 },
5968 },
5969 .write = write_jedec_1,
5970 .read = read_memmapped,
5971 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005972 .prepare_access = prepare_memory_access,
5973 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005974 },
5975
5976 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005977 .vendor = "Eon",
5978 .name = "EN29LV040(A)",
5979 .bustype = BUS_PARALLEL,
5980 .manufacture_id = EON_ID,
5981 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005982 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005983 .page_size = 4 * 1024,
5984 .tested = TEST_OK_PREW,
5985 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005986 .probe_timing = TIMING_ZERO,
5987 .block_erasers =
5988 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005989 {
5990 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005991 .block_erase = erase_sector_jedec,
5992 },
5993 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005994 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005995 .block_erase = erase_chip_block_jedec,
5996 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005997 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005998 .write = write_jedec_1,
5999 .read = read_memmapped,
6000 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006001 .prepare_access = prepare_memory_access,
6002 .finish_access = finish_memory_access,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006003 },
6004
6005 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006006 .vendor = "Eon",
6007 .name = "EN29LV640B",
6008 .bustype = BUS_PARALLEL,
6009 .manufacture_id = EON_ID,
6010 .model_id = EON_EN29LV640B,
6011 .total_size = 8192,
6012 .page_size = 8192,
6013 .feature_bits = FEATURE_ADDR_SHIFTED,
6014 .tested = TEST_OK_PREW,
6015 .probe = probe_en29lv640b,
6016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006017 .block_erasers =
6018 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006019 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006020 .eraseblocks = {
6021 {8 * 1024, 8},
6022 {64 * 1024, 127},
6023 },
6024 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006025 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006026 .eraseblocks = { {8 * 1024 * 1024, 1} },
6027 .block_erase = erase_chip_block_jedec,
6028 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006029 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006030 .write = write_en29lv640b,
6031 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006032 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01006033 .prepare_access = prepare_memory_access,
6034 .finish_access = finish_memory_access,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006035 },
6036
6037 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006038 .vendor = "Fudan",
6039 .name = "FM25F005",
6040 .bustype = BUS_SPI,
6041 .manufacture_id = FUDAN_ID_NOPREFIX,
6042 .model_id = FUDAN_FM25F005,
6043 .total_size = 64,
6044 .page_size = 256,
6045 /* OTP: 256B total; enter 0x3A */
6046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6047 .tested = TEST_UNTESTED,
6048 .probe = probe_spi_rdid,
6049 .probe_timing = TIMING_ZERO,
6050 .block_erasers = {
6051 {
6052 .eraseblocks = { {4 * 1024, 16} },
6053 .block_erase = spi_block_erase_20,
6054 }, {
6055 .eraseblocks = { {32 * 1024, 2} },
6056 .block_erase = spi_block_erase_52,
6057 }, {
6058 .eraseblocks = { {64 * 1024, 1} },
6059 .block_erase = spi_block_erase_d8,
6060 }, {
6061 .eraseblocks = { {64 * 1024, 1} },
6062 .block_erase = spi_block_erase_60,
6063 }, {
6064 .eraseblocks = { {64 * 1024, 1} },
6065 .block_erase = spi_block_erase_c7,
6066 }
6067 },
6068 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6069 .unlock = spi_disable_blockprotect_bp2_srwd,
6070 .write = spi_chip_write_256,
6071 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6072 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6073 },
6074
6075 {
6076 .vendor = "Fudan",
6077 .name = "FM25F01",
6078 .bustype = BUS_SPI,
6079 .manufacture_id = FUDAN_ID_NOPREFIX,
6080 .model_id = FUDAN_FM25F01,
6081 .total_size = 128,
6082 .page_size = 256,
6083 /* OTP: 256B total; enter 0x3A */
6084 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6085 .tested = TEST_UNTESTED,
6086 .probe = probe_spi_rdid,
6087 .probe_timing = TIMING_ZERO,
6088 .block_erasers = {
6089 {
6090 .eraseblocks = { {4 * 1024, 32} },
6091 .block_erase = spi_block_erase_20,
6092 }, {
6093 .eraseblocks = { {32 * 1024, 4} },
6094 .block_erase = spi_block_erase_52,
6095 }, {
6096 .eraseblocks = { {64 * 1024, 2} },
6097 .block_erase = spi_block_erase_d8,
6098 }, {
6099 .eraseblocks = { {128 * 1024, 1} },
6100 .block_erase = spi_block_erase_60,
6101 }, {
6102 .eraseblocks = { {128 * 1024, 1} },
6103 .block_erase = spi_block_erase_c7,
6104 }
6105 },
6106 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6107 .unlock = spi_disable_blockprotect_bp2_srwd,
6108 .write = spi_chip_write_256,
6109 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6110 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6111 },
6112
6113 {
6114 .vendor = "Fudan",
6115 .name = "FM25F02(A)",
6116 .bustype = BUS_SPI,
6117 .manufacture_id = FUDAN_ID_NOPREFIX,
6118 .model_id = FUDAN_FM25F02,
6119 .total_size = 256,
6120 .page_size = 256,
6121 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6123 .tested = TEST_UNTESTED,
6124 .probe = probe_spi_rdid,
6125 .probe_timing = TIMING_ZERO,
6126 .block_erasers = {
6127 {
6128 .eraseblocks = { {4 * 1024, 64} },
6129 .block_erase = spi_block_erase_20,
6130 }, {
6131 .eraseblocks = { {32 * 1024, 8} },
6132 .block_erase = spi_block_erase_52,
6133 }, {
6134 .eraseblocks = { {64 * 1024, 4} },
6135 .block_erase = spi_block_erase_d8,
6136 }, {
6137 .eraseblocks = { {1024 * 256, 1} },
6138 .block_erase = spi_block_erase_60,
6139 }, {
6140 .eraseblocks = { {1024 * 256, 1} },
6141 .block_erase = spi_block_erase_c7,
6142 },
6143 },
6144 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6145 .unlock = spi_disable_blockprotect_bp2_srwd,
6146 .write = spi_chip_write_256,
6147 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6148 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6149 },
6150
6151 {
6152 .vendor = "Fudan",
6153 .name = "FM25F04(A)",
6154 .bustype = BUS_SPI,
6155 .manufacture_id = FUDAN_ID_NOPREFIX,
6156 .model_id = FUDAN_FM25F04,
6157 .total_size = 512,
6158 .page_size = 256,
6159 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6161 .tested = TEST_UNTESTED,
6162 .probe = probe_spi_rdid,
6163 .probe_timing = TIMING_ZERO,
6164 .block_erasers = {
6165 {
6166 .eraseblocks = { {4 * 1024, 128} },
6167 .block_erase = spi_block_erase_20,
6168 }, {
6169 .eraseblocks = { {32 * 1024, 16} },
6170 .block_erase = spi_block_erase_52,
6171 }, {
6172 .eraseblocks = { {64 * 1024, 8} },
6173 .block_erase = spi_block_erase_d8,
6174 }, {
6175 .eraseblocks = { {1024 * 512, 1} },
6176 .block_erase = spi_block_erase_60,
6177 }, {
6178 .eraseblocks = { {1024 * 512, 1} },
6179 .block_erase = spi_block_erase_c7,
6180 },
6181 },
6182 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6183 .unlock = spi_disable_blockprotect_bp2_srwd,
6184 .write = spi_chip_write_256,
6185 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6186 .voltage = {2700, 3600},
6187 },
6188
6189 {
6190 .vendor = "Fudan",
6191 .name = "FM25Q08",
6192 .bustype = BUS_SPI,
6193 .manufacture_id = FUDAN_ID_NOPREFIX,
6194 .model_id = FUDAN_FM25Q08,
6195 .total_size = 1024,
6196 .page_size = 256,
6197 /* supports SFDP */
6198 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +01006199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
6200 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006201 .tested = TEST_UNTESTED,
6202 .probe = probe_spi_rdid,
6203 .probe_timing = TIMING_ZERO,
6204 .block_erasers = {
6205 {
6206 .eraseblocks = { {4 * 1024, 256} },
6207 .block_erase = spi_block_erase_20,
6208 }, {
6209 .eraseblocks = { {32 * 1024, 32} },
6210 .block_erase = spi_block_erase_52,
6211 }, {
6212 .eraseblocks = { {64 * 1024, 16} },
6213 .block_erase = spi_block_erase_d8,
6214 }, {
6215 .eraseblocks = { {1024 * 1024, 1} },
6216 .block_erase = spi_block_erase_60,
6217 }, {
6218 .eraseblocks = { {1024 * 1024, 1} },
6219 .block_erase = spi_block_erase_c7,
6220 },
6221 },
6222 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6223 .unlock = spi_disable_blockprotect_bp2_srwd,
6224 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006225 .read = spi_chip_read,
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006226 .voltage = {2700, 3600},
6227 },
6228
6229 {
6230 .vendor = "Fudan",
6231 .name = "FM25Q16",
6232 .bustype = BUS_SPI,
6233 .manufacture_id = FUDAN_ID_NOPREFIX,
6234 .model_id = FUDAN_FM25Q16,
6235 .total_size = 2048,
6236 .page_size = 256,
6237 /* supports SFDP */
6238 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +01006239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
6240 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006241 .tested = TEST_UNTESTED,
6242 .probe = probe_spi_rdid,
6243 .probe_timing = TIMING_ZERO,
6244 .block_erasers = {
6245 {
6246 .eraseblocks = { {4 * 1024, 512} },
6247 .block_erase = spi_block_erase_20,
6248 }, {
6249 .eraseblocks = { {32 * 1024, 64} },
6250 .block_erase = spi_block_erase_52,
6251 }, {
6252 .eraseblocks = { {64 * 1024, 32} },
6253 .block_erase = spi_block_erase_d8,
6254 }, {
6255 .eraseblocks = { {2 * 1024 * 1024, 1} },
6256 .block_erase = spi_block_erase_60,
6257 }, {
6258 .eraseblocks = { {2 * 1024 * 1024, 1} },
6259 .block_erase = spi_block_erase_c7,
6260 }
6261 },
6262 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6263 .unlock = spi_disable_blockprotect_bp2_srwd,
6264 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006265 .read = spi_chip_read,
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006266 .voltage = {2700, 3600},
6267 },
6268
6269 {
6270 .vendor = "Fudan",
6271 .name = "FM25Q32",
6272 .bustype = BUS_SPI,
6273 .manufacture_id = FUDAN_ID_NOPREFIX,
6274 .model_id = FUDAN_FM25Q32,
6275 .total_size = 4096,
6276 .page_size = 256,
6277 /* supports SFDP */
6278 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +01006279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
6280 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006281 .tested = TEST_UNTESTED,
6282 .probe = probe_spi_rdid,
6283 .probe_timing = TIMING_ZERO,
6284 .block_erasers = {
6285 {
6286 .eraseblocks = { {4 * 1024, 1024} },
6287 .block_erase = spi_block_erase_20,
6288 }, {
6289 .eraseblocks = { {32 * 1024, 128} },
6290 .block_erase = spi_block_erase_52,
6291 }, {
6292 .eraseblocks = { {64 * 1024, 64} },
6293 .block_erase = spi_block_erase_d8,
6294 }, {
6295 .eraseblocks = { {4 * 1024 * 1024, 1} },
6296 .block_erase = spi_block_erase_60,
6297 }, {
6298 .eraseblocks = { {4 * 1024 * 1024, 1} },
6299 .block_erase = spi_block_erase_c7,
6300 },
6301 },
6302 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6303 .unlock = spi_disable_blockprotect_bp2_srwd,
6304 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006305 .read = spi_chip_read,
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006306 .voltage = {2700, 3600},
6307 },
6308
6309 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006310 .vendor = "Fujitsu",
6311 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006312 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006313 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006314 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006315 .total_size = 512,
6316 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006317 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006318 .tested = TEST_UNTESTED,
6319 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006320 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006321 .block_erasers =
6322 {
6323 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006324 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006325 {16 * 1024, 1},
6326 {8 * 1024, 2},
6327 {32 * 1024, 1},
6328 {64 * 1024, 7},
6329 },
Sean Nelson35727f72010-01-28 23:55:12 +00006330 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006331 }, {
6332 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006333 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006334 },
6335 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006336 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006338 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01006339 .prepare_access = prepare_memory_access,
6340 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006341 },
6342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006343 {
6344 .vendor = "Fujitsu",
6345 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006346 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006347 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006348 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006349 .total_size = 512,
6350 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 .tested = TEST_UNTESTED,
6353 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006354 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006355 .block_erasers =
6356 {
6357 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006358 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006359 {64 * 1024, 7},
6360 {32 * 1024, 1},
6361 {8 * 1024, 2},
6362 {16 * 1024, 1},
6363 },
Sean Nelson35727f72010-01-28 23:55:12 +00006364 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006365 }, {
6366 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006367 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006368 },
6369 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006370 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006371 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006372 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01006373 .prepare_access = prepare_memory_access,
6374 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006375 },
6376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006377 {
Sean Nelson35727f72010-01-28 23:55:12 +00006378 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006379 .vendor = "Fujitsu",
6380 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006381 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006382 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006383 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .total_size = 512,
6385 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006386 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006387 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006388 .probe = probe_jedec,
6389 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006390 .block_erasers =
6391 {
6392 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006393 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006394 {16 * 1024, 1},
6395 {8 * 1024, 2},
6396 {32 * 1024, 1},
6397 {64 * 1024, 7},
6398 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006399 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006400 }, {
6401 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006402 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006403 },
6404 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006405 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006406 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006407 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01006408 .prepare_access = prepare_memory_access,
6409 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006410 },
6411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006412 {
6413 .vendor = "Fujitsu",
6414 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006415 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006416 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006417 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006418 .total_size = 512,
6419 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006420 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006421 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006422 .probe = probe_jedec,
6423 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006424 .block_erasers =
6425 {
6426 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006427 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006428 {64 * 1024, 7},
6429 {32 * 1024, 1},
6430 {8 * 1024, 2},
6431 {16 * 1024, 1},
6432 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006433 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006434 }, {
6435 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006436 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006437 },
6438 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006439 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006440 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006441 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01006442 .prepare_access = prepare_memory_access,
6443 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006444 },
6445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006446 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006447 .vendor = "Fujitsu",
6448 .name = "MBM29LV160BE",
6449 .bustype = BUS_PARALLEL,
6450 .manufacture_id = FUJITSU_ID,
6451 .model_id = FUJITSU_MBM29LV160BE,
6452 .total_size = 2 * 1024,
6453 .page_size = 0,
6454 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6455 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006456 .probe = probe_jedec,
6457 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006458 .block_erasers =
6459 {
6460 {
6461 .eraseblocks = {
6462 {16 * 1024, 1},
6463 {8 * 1024, 2},
6464 {32 * 1024, 1},
6465 {64 * 1024, 31},
6466 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006467 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006468 }, {
6469 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006470 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006471 },
6472 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006473 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006474 .read = read_memmapped,
6475 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006476 .prepare_access = prepare_memory_access,
6477 .finish_access = finish_memory_access,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006478 },
6479
6480 {
6481 .vendor = "Fujitsu",
6482 .name = "MBM29LV160TE",
6483 .bustype = BUS_PARALLEL,
6484 .manufacture_id = FUJITSU_ID,
6485 .model_id = FUJITSU_MBM29LV160TE,
6486 .total_size = 2 * 1024,
6487 .page_size = 0,
6488 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6489 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006490 .probe = probe_jedec,
6491 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006492 .block_erasers =
6493 {
6494 {
6495 .eraseblocks = {
6496 {64 * 1024, 31},
6497 {32 * 1024, 1},
6498 {8 * 1024, 2},
6499 {16 * 1024, 1},
6500 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006501 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006502 }, {
6503 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006504 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006505 },
6506 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006507 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006508 .read = read_memmapped,
6509 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006510 .prepare_access = prepare_memory_access,
6511 .finish_access = finish_memory_access,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006512 },
6513
6514 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006515 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006516 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006517 .bustype = BUS_SPI,
6518 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006519 .model_id = GIGADEVICE_GD25Q128,
6520 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006521 .page_size = 256,
6522 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006524 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006525 .probe = probe_spi_rdid,
6526 .probe_timing = TIMING_ZERO,
6527 .block_erasers =
6528 {
6529 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006530 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006531 .block_erase = spi_block_erase_20,
6532 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006533 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006534 .block_erase = spi_block_erase_52,
6535 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006536 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006537 .block_erase = spi_block_erase_d8,
6538 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006539 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006540 .block_erase = spi_block_erase_60,
6541 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006542 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006543 .block_erase = spi_block_erase_c7,
6544 }
6545 },
Nico Huber4da971f2024-03-27 01:18:12 +01006546 .reg_bits =
6547 {
6548 .qe = {STATUS2, 1, RW}, /* RO 1 in GD25B128B case */
6549 },
Roman Titov95edc892015-04-03 21:29:04 +00006550 .printlock = spi_prettyprint_status_register_bp4_srwd,
6551 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6552 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006553 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006554 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006555 },
6556
6557 {
6558 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006559 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006560 .bustype = BUS_SPI,
6561 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006562 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006563 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006564 .page_size = 256,
6565 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006566 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
6567 .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006568 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006569 .probe = probe_spi_rdid,
6570 .probe_timing = TIMING_ZERO,
6571 .block_erasers =
6572 {
6573 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006574 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006575 .block_erase = spi_block_erase_20,
6576 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006577 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006578 .block_erase = spi_block_erase_52,
6579 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006580 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006581 .block_erase = spi_block_erase_d8,
6582 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006583 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006584 .block_erase = spi_block_erase_60,
6585 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006586 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006587 .block_erase = spi_block_erase_c7,
6588 }
6589 },
6590 .printlock = spi_prettyprint_status_register_bp4_srwd,
6591 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6592 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006593 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006594 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006595 .reg_bits =
6596 {
Nico Huber4da971f2024-03-27 01:18:12 +01006597 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006598 .srp = {STATUS1, 7, RW},
6599 .srl = {STATUS2, 0, RW},
6600 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6601 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6602 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6603 .cmp = {STATUS2, 6, RW},
6604 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006605 .wp_write_cfg = spi_wp_write_cfg,
6606 .wp_read_cfg = spi_wp_read_cfg,
6607 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006608 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006609 },
6610
6611 {
6612 .vendor = "GigaDevice",
6613 .name = "GD25LQ16",
6614 .bustype = BUS_SPI,
6615 .manufacture_id = GIGADEVICE_ID,
6616 .model_id = GIGADEVICE_GD25LQ16,
6617 .total_size = 2048,
6618 .page_size = 256,
6619 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006620 /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ16C */
6621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Roman Titov95edc892015-04-03 21:29:04 +00006622 .tested = TEST_UNTESTED,
6623 .probe = probe_spi_rdid,
6624 .probe_timing = TIMING_ZERO,
6625 .block_erasers =
6626 {
6627 {
6628 .eraseblocks = { {4 * 1024, 512} },
6629 .block_erase = spi_block_erase_20,
6630 }, {
6631 .eraseblocks = { {32 * 1024, 64} },
6632 .block_erase = spi_block_erase_52,
6633 }, {
6634 .eraseblocks = { {64 * 1024, 32} },
6635 .block_erase = spi_block_erase_d8,
6636 }, {
6637 .eraseblocks = { {2 * 1024 * 1024, 1} },
6638 .block_erase = spi_block_erase_60,
6639 }, {
6640 .eraseblocks = { {2 * 1024 * 1024, 1} },
6641 .block_erase = spi_block_erase_c7,
6642 }
6643 },
Nico Huber4da971f2024-03-27 01:18:12 +01006644 .reg_bits =
6645 {
6646 .qe = {STATUS2, 1, RW},
6647 },
Roman Titov95edc892015-04-03 21:29:04 +00006648 .printlock = spi_prettyprint_status_register_bp4_srwd,
6649 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6650 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006651 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006652 .voltage = {1695, 1950},
6653 },
6654
6655 {
6656 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006657 .name = "GD25LQ32",
6658 .bustype = BUS_SPI,
6659 .manufacture_id = GIGADEVICE_ID,
6660 .model_id = GIGADEVICE_GD25LQ32,
6661 .total_size = 4096,
6662 .page_size = 256,
6663 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
6665 .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006666 .tested = TEST_OK_PREW,
6667 .probe = probe_spi_rdid,
6668 .probe_timing = TIMING_ZERO,
6669 .block_erasers =
6670 {
6671 {
6672 .eraseblocks = { {4 * 1024, 1024} },
6673 .block_erase = spi_block_erase_20,
6674 }, {
6675 .eraseblocks = { {32 * 1024, 128} },
6676 .block_erase = spi_block_erase_52,
6677 }, {
6678 .eraseblocks = { {64 * 1024, 64} },
6679 .block_erase = spi_block_erase_d8,
6680 }, {
6681 .eraseblocks = { {4 * 1024 * 1024, 1} },
6682 .block_erase = spi_block_erase_60,
6683 }, {
6684 .eraseblocks = { {4 * 1024 * 1024, 1} },
6685 .block_erase = spi_block_erase_c7,
6686 }
6687 },
Nico Huber4da971f2024-03-27 01:18:12 +01006688 .reg_bits =
6689 {
6690 .qe = {STATUS2, 1, RW},
6691 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006692 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006693 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6694 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006695 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006696 .voltage = {1695, 1950},
6697 },
6698
6699 {
6700 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006701 .name = "GD25LQ40",
6702 .bustype = BUS_SPI,
6703 .manufacture_id = GIGADEVICE_ID,
6704 .model_id = GIGADEVICE_GD25LQ40,
6705 .total_size = 512,
6706 .page_size = 256,
6707 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006708 /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ40B, LQ40C */
6709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006710 .tested = TEST_UNTESTED,
6711 .probe = probe_spi_rdid,
6712 .probe_timing = TIMING_ZERO,
6713 .block_erasers =
6714 {
6715 {
6716 .eraseblocks = { {4 * 1024, 128} },
6717 .block_erase = spi_block_erase_20,
6718 }, {
6719 .eraseblocks = { {32 * 1024, 16} },
6720 .block_erase = spi_block_erase_52,
6721 }, {
6722 .eraseblocks = { {64 * 1024, 8} },
6723 .block_erase = spi_block_erase_d8,
6724 }, {
6725 .eraseblocks = { {512 * 1024, 1} },
6726 .block_erase = spi_block_erase_60,
6727 }, {
6728 .eraseblocks = { {512 * 1024, 1} },
6729 .block_erase = spi_block_erase_c7,
6730 }
6731 },
Nico Huber4da971f2024-03-27 01:18:12 +01006732 .reg_bits =
6733 {
6734 .qe = {STATUS2, 1, RW},
6735 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006736 .printlock = spi_prettyprint_status_register_bp4_srwd,
6737 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6738 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006739 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006740 .voltage = {1695, 1950},
6741 },
6742
6743 {
6744 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006745 .name = "GD25LQ64(B)",
6746 .bustype = BUS_SPI,
6747 .manufacture_id = GIGADEVICE_ID,
6748 .model_id = GIGADEVICE_GD25LQ64,
6749 .total_size = 8192,
6750 .page_size = 256,
6751 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
6753 .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006754 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006755 .probe = probe_spi_rdid,
6756 .probe_timing = TIMING_ZERO,
6757 .block_erasers =
6758 {
6759 {
6760 .eraseblocks = { {4 * 1024, 2048} },
6761 .block_erase = spi_block_erase_20,
6762 }, {
6763 .eraseblocks = { {32 * 1024, 256} },
6764 .block_erase = spi_block_erase_52,
6765 }, {
6766 .eraseblocks = { {64 * 1024, 128} },
6767 .block_erase = spi_block_erase_d8,
6768 }, {
6769 .eraseblocks = { {8 * 1024 * 1024, 1} },
6770 .block_erase = spi_block_erase_60,
6771 }, {
6772 .eraseblocks = { {8 * 1024 * 1024, 1} },
6773 .block_erase = spi_block_erase_c7,
6774 }
6775 },
6776 .printlock = spi_prettyprint_status_register_bp4_srwd,
6777 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6778 .write = spi_chip_write_256,
6779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6780 .voltage = {1695, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006781 .reg_bits =
6782 {
Nico Huber4da971f2024-03-27 01:18:12 +01006783 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006784 .srp = {STATUS1, 7, RW},
6785 .srl = {STATUS2, 0, RW},
6786 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6787 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6788 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6789 .cmp = {STATUS2, 6, RW},
6790 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006791 .wp_write_cfg = spi_wp_write_cfg,
6792 .wp_read_cfg = spi_wp_read_cfg,
6793 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006794 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006795 },
6796
6797 {
6798 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006799 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006800 .bustype = BUS_SPI,
6801 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006802 .model_id = GIGADEVICE_GD25LQ80,
6803 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006804 .page_size = 256,
6805 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006806 /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ80B, LQ80C */
6807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Roman Titov95edc892015-04-03 21:29:04 +00006808 .tested = TEST_UNTESTED,
6809 .probe = probe_spi_rdid,
6810 .probe_timing = TIMING_ZERO,
6811 .block_erasers =
6812 {
6813 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006814 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006815 .block_erase = spi_block_erase_20,
6816 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006817 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006818 .block_erase = spi_block_erase_52,
6819 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006820 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006821 .block_erase = spi_block_erase_d8,
6822 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006823 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006824 .block_erase = spi_block_erase_60,
6825 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006826 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006827 .block_erase = spi_block_erase_c7,
6828 }
6829 },
Nico Huber4da971f2024-03-27 01:18:12 +01006830 .reg_bits =
6831 {
6832 .qe = {STATUS2, 1, RW},
6833 },
Roman Titov95edc892015-04-03 21:29:04 +00006834 .printlock = spi_prettyprint_status_register_bp4_srwd,
6835 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6836 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006837 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006838 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006839 },
6840
6841 {
6842 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006843 .name = "GD25Q10",
6844 .bustype = BUS_SPI,
6845 .manufacture_id = GIGADEVICE_ID,
6846 .model_id = GIGADEVICE_GD25Q10,
6847 .total_size = 128,
6848 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01006849 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006850 .tested = TEST_UNTESTED,
6851 .probe = probe_spi_rdid,
6852 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006853 .block_erasers =
6854 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006855 {
6856 .eraseblocks = { {4 * 1024, 32} },
6857 .block_erase = spi_block_erase_20,
6858 }, {
6859 .eraseblocks = { {32 * 1024, 4} },
6860 .block_erase = spi_block_erase_52,
6861 }, {
6862 .eraseblocks = { {64 * 1024, 2} },
6863 .block_erase = spi_block_erase_d8,
6864 }, {
6865 .eraseblocks = { {128 * 1024, 1} },
6866 .block_erase = spi_block_erase_60,
6867 }, {
6868 .eraseblocks = { {128 * 1024, 1} },
6869 .block_erase = spi_block_erase_c7,
6870 }
6871 },
Nico Huber4da971f2024-03-27 01:18:12 +01006872 .reg_bits =
6873 {
6874 .qe = {STATUS2, 1, RW},
6875 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006876 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006877 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6878 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006879 .read = spi_chip_read,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006880 .voltage = {2700, 3600},
6881 },
6882
6883 {
6884 .vendor = "GigaDevice",
Nico Huber68573af2024-01-06 18:28:22 +01006885 .name = "GD25Q127C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006886 .bustype = BUS_SPI,
6887 .manufacture_id = GIGADEVICE_ID,
6888 .model_id = GIGADEVICE_GD25Q128,
6889 .total_size = 16384,
6890 .page_size = 256,
6891 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
Nico Huber1412d9f2024-01-06 18:25:49 +01006892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006893 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006894 .probe = probe_spi_rdid,
6895 .probe_timing = TIMING_ZERO,
6896 .block_erasers =
6897 {
6898 {
6899 .eraseblocks = { {4 * 1024, 4096} },
6900 .block_erase = spi_block_erase_20,
6901 }, {
6902 .eraseblocks = { {32 * 1024, 512} },
6903 .block_erase = spi_block_erase_52,
6904 }, {
6905 .eraseblocks = { {64 * 1024, 256} },
6906 .block_erase = spi_block_erase_d8,
6907 }, {
6908 .eraseblocks = { {16 * 1024 * 1024, 1} },
6909 .block_erase = spi_block_erase_60,
6910 }, {
6911 .eraseblocks = { {16 * 1024 * 1024, 1} },
6912 .block_erase = spi_block_erase_c7,
6913 }
6914 },
6915 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6916 .printlock = spi_prettyprint_status_register_bp4_srwd,
6917 .unlock = spi_disable_blockprotect_bp4_srwd,
6918 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006919 .read = spi_chip_read,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006920 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006921 .reg_bits =
6922 {
Nico Huber4da971f2024-03-27 01:18:12 +01006923 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006924 .srp = {STATUS1, 7, RW},
6925 .srl = {STATUS2, 0, RW},
6926 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6927 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6928 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6929 .cmp = {STATUS2, 6, RW},
6930 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006931 .wp_write_cfg = spi_wp_write_cfg,
6932 .wp_read_cfg = spi_wp_read_cfg,
6933 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006934 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006935 },
6936
6937 {
6938 .vendor = "GigaDevice",
Nico Huber68573af2024-01-06 18:28:22 +01006939 .name = "GD25Q128C",
6940 .bustype = BUS_SPI,
6941 .manufacture_id = GIGADEVICE_ID,
6942 .model_id = GIGADEVICE_GD25Q128,
6943 .total_size = 16384,
6944 .page_size = 256,
6945 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
6947 .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } },
6948 .tested = TEST_OK_PREWB,
6949 .probe = probe_spi_rdid,
6950 .probe_timing = TIMING_ZERO,
6951 .block_erasers =
6952 {
6953 {
6954 .eraseblocks = { {4 * 1024, 4096} },
6955 .block_erase = spi_block_erase_20,
6956 }, {
6957 .eraseblocks = { {32 * 1024, 512} },
6958 .block_erase = spi_block_erase_52,
6959 }, {
6960 .eraseblocks = { {64 * 1024, 256} },
6961 .block_erase = spi_block_erase_d8,
6962 }, {
6963 .eraseblocks = { {16 * 1024 * 1024, 1} },
6964 .block_erase = spi_block_erase_60,
6965 }, {
6966 .eraseblocks = { {16 * 1024 * 1024, 1} },
6967 .block_erase = spi_block_erase_c7,
6968 }
6969 },
6970 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6971 .printlock = spi_prettyprint_status_register_bp4_srwd,
6972 .unlock = spi_disable_blockprotect_bp4_srwd,
6973 .write = spi_chip_write_256,
6974 .read = spi_chip_read,
6975 .voltage = {2700, 3600},
6976 .reg_bits =
6977 {
6978 .qe = {STATUS2, 1, RW},
6979 .srp = {STATUS1, 7, RW},
6980 .srl = {STATUS2, 0, RW},
6981 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6982 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6983 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6984 .cmp = {STATUS2, 6, RW},
6985 },
6986 .decode_range = decode_range_spi25,
6987 },
6988
6989 {
6990 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006991 .name = "GD25Q16(B)",
6992 .bustype = BUS_SPI,
6993 .manufacture_id = GIGADEVICE_ID,
6994 .model_id = GIGADEVICE_GD25Q16,
6995 .total_size = 2048,
6996 .page_size = 256,
6997 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Nico Huber4da971f2024-03-27 01:18:12 +01006998 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006999 .tested = TEST_OK_PREW,
7000 .probe = probe_spi_rdid,
7001 .probe_timing = TIMING_ZERO,
7002 .block_erasers =
7003 {
7004 {
7005 .eraseblocks = { {4 * 1024, 512} },
7006 .block_erase = spi_block_erase_20,
7007 }, {
7008 .eraseblocks = { {32 * 1024, 64} },
7009 .block_erase = spi_block_erase_52,
7010 }, {
7011 .eraseblocks = { {64 * 1024, 32} },
7012 .block_erase = spi_block_erase_d8,
7013 }, {
7014 .eraseblocks = { {2 * 1024 * 1024, 1} },
7015 .block_erase = spi_block_erase_60,
7016 }, {
7017 .eraseblocks = { {2 * 1024 * 1024, 1} },
7018 .block_erase = spi_block_erase_c7,
7019 }
7020 },
Nico Huber4da971f2024-03-27 01:18:12 +01007021 .reg_bits =
7022 {
7023 .qe = {STATUS2, 1, RW},
7024 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007025 .printlock = spi_prettyprint_status_register_bp4_srwd,
7026 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7027 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007028 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007029 .voltage = {2700, 3600},
7030 },
7031
7032 {
7033 .vendor = "GigaDevice",
7034 .name = "GD25Q20(B)",
7035 .bustype = BUS_SPI,
7036 .manufacture_id = GIGADEVICE_ID,
7037 .model_id = GIGADEVICE_GD25Q20,
7038 .total_size = 256,
7039 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007040 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007041 .tested = TEST_OK_PREW,
7042 .probe = probe_spi_rdid,
7043 .probe_timing = TIMING_ZERO,
7044 .block_erasers =
7045 {
7046 {
7047 .eraseblocks = { {4 * 1024, 64} },
7048 .block_erase = spi_block_erase_20,
7049 }, {
7050 .eraseblocks = { {32 * 1024, 8} },
7051 .block_erase = spi_block_erase_52,
7052 }, {
7053 .eraseblocks = { {64 * 1024, 4} },
7054 .block_erase = spi_block_erase_d8,
7055 }, {
7056 .eraseblocks = { {256 * 1024, 1} },
7057 .block_erase = spi_block_erase_60,
7058 }, {
7059 .eraseblocks = { {256 * 1024, 1} },
7060 .block_erase = spi_block_erase_c7,
7061 }
7062 },
Nico Huber4da971f2024-03-27 01:18:12 +01007063 .reg_bits = {
7064 .qe = {STATUS2, 1, RW},
7065 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007066 .printlock = spi_prettyprint_status_register_bp4_srwd,
7067 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7068 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007069 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007070 .voltage = {2700, 3600},
7071 },
7072
7073 {
7074 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10007075 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10007076 .bustype = BUS_SPI,
7077 .manufacture_id = GIGADEVICE_ID,
7078 .model_id = GIGADEVICE_GD25Q256D,
7079 .total_size = 32768,
7080 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11007081 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber4da971f2024-03-27 01:18:12 +01007082 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
7083 FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007084 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10007085 .probe = probe_spi_rdid,
7086 .probe_timing = TIMING_ZERO,
7087 .block_erasers =
7088 {
7089 {
7090 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02007091 .block_erase = spi_block_erase_21,
7092 }, {
7093 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007094 .block_erase = spi_block_erase_20,
7095 }, {
7096 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02007097 .block_erase = spi_block_erase_5c,
7098 }, {
7099 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007100 .block_erase = spi_block_erase_52,
7101 }, {
7102 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02007103 .block_erase = spi_block_erase_dc,
7104 }, {
7105 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007106 .block_erase = spi_block_erase_d8,
7107 }, {
7108 .eraseblocks = { {32 * 1024 * 1024, 1} },
7109 .block_erase = spi_block_erase_60,
7110 }, {
7111 .eraseblocks = { {32 * 1024 * 1024, 1} },
7112 .block_erase = spi_block_erase_c7,
7113 }
7114 },
7115 .printlock = spi_prettyprint_status_register_bp3_srwd,
7116 .unlock = spi_disable_blockprotect,
7117 .write = spi_chip_write_256,
7118 .read = spi_chip_read,
7119 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007120 .reg_bits =
7121 {
Nico Huber4da971f2024-03-27 01:18:12 +01007122 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007123 .srp = {STATUS1, 7, RW},
7124 .srl = {STATUS2, 6, RW},
7125 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
7126 .tb = {STATUS1, 6, RW},
7127 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007128 .wp_write_cfg = spi_wp_write_cfg,
7129 .wp_read_cfg = spi_wp_read_cfg,
7130 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007131 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +01007132 .prepare_access = spi_prepare_4ba,
Alan Green86fc9cf2019-08-26 15:02:12 +10007133 },
7134
7135 {
7136 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007137 .name = "GD25Q32(B)",
7138 .bustype = BUS_SPI,
7139 .manufacture_id = GIGADEVICE_ID,
7140 .model_id = GIGADEVICE_GD25Q32,
7141 .total_size = 4096,
7142 .page_size = 256,
7143 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007144 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007145 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007146 .probe = probe_spi_rdid,
7147 .probe_timing = TIMING_ZERO,
7148 .block_erasers =
7149 {
7150 {
7151 .eraseblocks = { {4 * 1024, 1024} },
7152 .block_erase = spi_block_erase_20,
7153 }, {
7154 .eraseblocks = { {32 * 1024, 128} },
7155 .block_erase = spi_block_erase_52,
7156 }, {
7157 .eraseblocks = { {64 * 1024, 64} },
7158 .block_erase = spi_block_erase_d8,
7159 }, {
7160 .eraseblocks = { {4 * 1024 * 1024, 1} },
7161 .block_erase = spi_block_erase_60,
7162 }, {
7163 .eraseblocks = { {4 * 1024 * 1024, 1} },
7164 .block_erase = spi_block_erase_c7,
7165 }
7166 },
7167 .printlock = spi_prettyprint_status_register_bp4_srwd,
7168 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7169 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007170 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007171 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007172 .reg_bits =
7173 {
Nico Huber4da971f2024-03-27 01:18:12 +01007174 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007175 .srp = {STATUS1, 7, RW},
7176 .srl = {STATUS2, 0, RW},
7177 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7178 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7179 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7180 .cmp = {STATUS2, 6, RW},
7181 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007182 .wp_write_cfg = spi_wp_write_cfg,
7183 .wp_read_cfg = spi_wp_read_cfg,
7184 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007185 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007186 },
7187
7188 {
7189 .vendor = "GigaDevice",
7190 .name = "GD25Q40(B)",
7191 .bustype = BUS_SPI,
7192 .manufacture_id = GIGADEVICE_ID,
7193 .model_id = GIGADEVICE_GD25Q40,
7194 .total_size = 512,
7195 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007196 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Simon Buhrow551664c2022-03-09 16:09:08 +01007197 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007198 .probe = probe_spi_rdid,
7199 .probe_timing = TIMING_ZERO,
7200 .block_erasers =
7201 {
7202 {
7203 .eraseblocks = { {4 * 1024, 128} },
7204 .block_erase = spi_block_erase_20,
7205 }, {
7206 .eraseblocks = { {32 * 1024, 16} },
7207 .block_erase = spi_block_erase_52,
7208 }, {
7209 .eraseblocks = { {64 * 1024, 8} },
7210 .block_erase = spi_block_erase_d8,
7211 }, {
7212 .eraseblocks = { {512 * 1024, 1} },
7213 .block_erase = spi_block_erase_60,
7214 }, {
7215 .eraseblocks = { {512 * 1024, 1} },
7216 .block_erase = spi_block_erase_c7,
7217 }
7218 },
Nico Huber4da971f2024-03-27 01:18:12 +01007219 .reg_bits =
7220 {
7221 .qe = {STATUS2, 1, RW},
7222 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007223 .printlock = spi_prettyprint_status_register_bp4_srwd,
7224 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7225 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007226 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007227 .voltage = {2700, 3600},
7228 },
7229
7230 {
7231 .vendor = "GigaDevice",
7232 .name = "GD25Q512",
7233 .bustype = BUS_SPI,
7234 .manufacture_id = GIGADEVICE_ID,
7235 .model_id = GIGADEVICE_GD25Q512,
7236 .total_size = 64,
7237 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007238 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007239 .tested = TEST_OK_PREW,
7240 .probe = probe_spi_rdid,
7241 .probe_timing = TIMING_ZERO,
7242 .block_erasers =
7243 {
7244 {
7245 .eraseblocks = { {4 * 1024, 16} },
7246 .block_erase = spi_block_erase_20,
7247 }, {
7248 .eraseblocks = { {32 * 1024, 2} },
7249 .block_erase = spi_block_erase_52,
7250 }, {
7251 .eraseblocks = { {64 * 1024, 1} },
7252 .block_erase = spi_block_erase_60,
7253 }, {
7254 .eraseblocks = { {64 * 1024, 1} },
7255 .block_erase = spi_block_erase_c7,
7256 }
7257 },
Nico Huber4da971f2024-03-27 01:18:12 +01007258 .reg_bits =
7259 {
7260 .qe = {STATUS2, 1, RW},
7261 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007262 .printlock = spi_prettyprint_status_register_bp4_srwd,
7263 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7264 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007265 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007266 .voltage = {2700, 3600},
7267 },
7268
7269 {
7270 .vendor = "GigaDevice",
7271 .name = "GD25Q64(B)",
7272 .bustype = BUS_SPI,
7273 .manufacture_id = GIGADEVICE_ID,
7274 .model_id = GIGADEVICE_GD25Q64,
7275 .total_size = 8192,
7276 .page_size = 256,
7277 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007279 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007280 .probe = probe_spi_rdid,
7281 .probe_timing = TIMING_ZERO,
7282 .block_erasers =
7283 {
7284 {
7285 .eraseblocks = { {4 * 1024, 2048} },
7286 .block_erase = spi_block_erase_20,
7287 }, {
7288 .eraseblocks = { {32 * 1024, 256} },
7289 .block_erase = spi_block_erase_52,
7290 }, {
7291 .eraseblocks = { {64 * 1024, 128} },
7292 .block_erase = spi_block_erase_d8,
7293 }, {
7294 .eraseblocks = { {8 * 1024 * 1024, 1} },
7295 .block_erase = spi_block_erase_60,
7296 }, {
7297 .eraseblocks = { {8 * 1024 * 1024, 1} },
7298 .block_erase = spi_block_erase_c7,
7299 }
7300 },
7301 .printlock = spi_prettyprint_status_register_bp4_srwd,
7302 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7303 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007304 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007305 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007306 .reg_bits =
7307 {
Nico Huber4da971f2024-03-27 01:18:12 +01007308 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007309 .srp = {STATUS1, 7, RW},
7310 .srl = {STATUS2, 0, RW},
7311 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7312 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7313 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7314 .cmp = {STATUS2, 6, RW},
7315 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007316 .wp_write_cfg = spi_wp_write_cfg,
7317 .wp_read_cfg = spi_wp_read_cfg,
7318 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007319 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007320 },
7321
7322 {
7323 .vendor = "GigaDevice",
7324 .name = "GD25Q80(B)",
7325 .bustype = BUS_SPI,
7326 .manufacture_id = GIGADEVICE_ID,
7327 .model_id = GIGADEVICE_GD25Q80,
7328 .total_size = 1024,
7329 .page_size = 256,
7330 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Nico Huber4da971f2024-03-27 01:18:12 +01007331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007332 .tested = TEST_OK_PREW,
7333 .probe = probe_spi_rdid,
7334 .probe_timing = TIMING_ZERO,
7335 .block_erasers =
7336 {
7337 {
7338 .eraseblocks = { {4 * 1024, 256} },
7339 .block_erase = spi_block_erase_20,
7340 }, {
7341 .eraseblocks = { {32 * 1024, 32} },
7342 .block_erase = spi_block_erase_52,
7343 }, {
7344 .eraseblocks = { {64 * 1024, 16} },
7345 .block_erase = spi_block_erase_d8,
7346 }, {
7347 .eraseblocks = { {1024 * 1024, 1} },
7348 .block_erase = spi_block_erase_60,
7349 }, {
7350 .eraseblocks = { {1024 * 1024, 1} },
7351 .block_erase = spi_block_erase_c7,
7352 }
7353 },
Nico Huber4da971f2024-03-27 01:18:12 +01007354 .reg_bits =
7355 {
7356 .qe = {STATUS2, 1, RW},
7357 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007358 .printlock = spi_prettyprint_status_register_bp4_srwd,
7359 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7360 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007361 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007362 .voltage = {2700, 3600},
7363 },
7364
7365 {
7366 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007367 .name = "GD25T80",
7368 .bustype = BUS_SPI,
7369 .manufacture_id = GIGADEVICE_ID,
7370 .model_id = GIGADEVICE_GD25T80,
7371 .total_size = 1024,
7372 .page_size = 256,
7373 /* OTP: 256B total; enter 0x3A */
7374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7375 .tested = TEST_UNTESTED,
7376 .probe = probe_spi_rdid,
7377 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007378 .block_erasers =
7379 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007380 {
7381 .eraseblocks = { {4 * 1024, 256} },
7382 .block_erase = spi_block_erase_20,
7383 }, {
7384 .eraseblocks = { {64 * 1024, 16} },
7385 .block_erase = spi_block_erase_52,
7386 }, {
7387 .eraseblocks = { {64 * 1024, 16} },
7388 .block_erase = spi_block_erase_d8,
7389 }, {
7390 .eraseblocks = { {1024 * 1024, 1} },
7391 .block_erase = spi_block_erase_60,
7392 }, {
7393 .eraseblocks = { {1024 * 1024, 1} },
7394 .block_erase = spi_block_erase_c7,
7395 }
7396 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007398 .unlock = spi_disable_blockprotect,
7399 .write = spi_chip_write_256,
7400 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007401 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007402 },
7403
7404 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007405 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007406 .name = "GD25VQ16C",
7407 .bustype = BUS_SPI,
7408 .manufacture_id = GIGADEVICE_ID,
7409 .model_id = GIGADEVICE_GD25VQ16C,
7410 .total_size = 2 * 1024,
7411 .page_size = 256,
7412 /* Supports SFDP */
7413 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007414 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007415 .tested = TEST_UNTESTED,
7416 .probe = probe_spi_rdid,
7417 .probe_timing = TIMING_ZERO,
7418 .block_erasers =
7419 {
7420 {
7421 .eraseblocks = { { 4 * 1024, 512} },
7422 .block_erase = spi_block_erase_20,
7423 }, {
7424 .eraseblocks = { { 32 * 1024, 64} },
7425 .block_erase = spi_block_erase_52,
7426 }, {
7427 .eraseblocks = { { 64 * 1024, 32} },
7428 .block_erase = spi_block_erase_d8,
7429 }, {
7430 .eraseblocks = { {2 * 1024 * 1024, 1} },
7431 .block_erase = spi_block_erase_60,
7432 }, {
7433 .eraseblocks = { {2 * 1024 * 1024, 1} },
7434 .block_erase = spi_block_erase_c7,
7435 }
7436 },
Nico Huber4da971f2024-03-27 01:18:12 +01007437 .reg_bits =
7438 {
7439 .qe = {STATUS2, 1, RW},
7440 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007441 .printlock = spi_prettyprint_status_register_bp4_srwd,
7442 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7443 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007444 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007445 .voltage = {2300, 3600},
7446 },
7447
7448 {
7449 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007450 .name = "GD25VQ21B",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = GIGADEVICE_ID,
7453 .model_id = GIGADEVICE_GD25VQ21B,
7454 .total_size = 256,
7455 .page_size = 256,
7456 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007457 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
7458 FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007459 .tested = TEST_UNTESTED,
7460 .probe = probe_spi_rdid,
7461 .probe_timing = TIMING_ZERO,
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = { { 4 * 1024, 64} },
7466 .block_erase = spi_block_erase_20,
7467 }, {
7468 .eraseblocks = { { 32 * 1024, 8} },
7469 .block_erase = spi_block_erase_52,
7470 }, {
7471 .eraseblocks = { { 64 * 1024, 4} },
7472 .block_erase = spi_block_erase_d8,
7473 }, {
7474 .eraseblocks = { {256 * 1024, 1} },
7475 .block_erase = spi_block_erase_60,
7476 }, {
7477 .eraseblocks = { {256 * 1024, 1} },
7478 .block_erase = spi_block_erase_c7,
7479 }
7480 },
Nico Huber4da971f2024-03-27 01:18:12 +01007481 .reg_bits =
7482 {
7483 .qe = {STATUS2, 1, RW},
7484 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007485 .printlock = spi_prettyprint_status_register_bp4_srwd,
7486 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7487 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007488 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007489 .voltage = {2300, 3600},
7490 },
7491
7492 {
7493 .vendor = "GigaDevice",
7494 .name = "GD25VQ40C",
7495 .bustype = BUS_SPI,
7496 .manufacture_id = GIGADEVICE_ID,
7497 .model_id = GIGADEVICE_GD25VQ41B,
7498 .total_size = 512,
7499 .page_size = 256,
7500 /* Supports SFDP */
7501 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007502 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007503 .tested = TEST_UNTESTED,
7504 .probe = probe_spi_rdid,
7505 .probe_timing = TIMING_ZERO,
7506 .block_erasers =
7507 {
7508 {
7509 .eraseblocks = { { 4 * 1024, 128} },
7510 .block_erase = spi_block_erase_20,
7511 }, {
7512 .eraseblocks = { { 32 * 1024, 16} },
7513 .block_erase = spi_block_erase_52,
7514 }, {
7515 .eraseblocks = { { 64 * 1024, 8} },
7516 .block_erase = spi_block_erase_d8,
7517 }, {
7518 .eraseblocks = { {512 * 1024, 1} },
7519 .block_erase = spi_block_erase_60,
7520 }, {
7521 .eraseblocks = { {512 * 1024, 1} },
7522 .block_erase = spi_block_erase_c7,
7523 }
7524 },
Nico Huber4da971f2024-03-27 01:18:12 +01007525 .reg_bits =
7526 {
7527 .qe = {STATUS2, 1, RW},
7528 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007529 .printlock = spi_prettyprint_status_register_bp4_srwd,
7530 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7531 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007532 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007533 .voltage = {2300, 3600},
7534 },
7535
7536 {
7537 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007538 .name = "GD25VQ41B",
7539 .bustype = BUS_SPI,
7540 .manufacture_id = GIGADEVICE_ID,
7541 .model_id = GIGADEVICE_GD25VQ41B,
7542 .total_size = 512,
7543 .page_size = 256,
7544 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
7546 FEATURE_OTP | FEATURE_QIO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007547 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007548 .probe = probe_spi_rdid,
7549 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007550 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007551 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007552 {
7553 .eraseblocks = { { 4 * 1024, 128} },
7554 .block_erase = spi_block_erase_20,
7555 }, {
7556 .eraseblocks = { { 32 * 1024, 16} },
7557 .block_erase = spi_block_erase_52,
7558 }, {
7559 .eraseblocks = { { 64 * 1024, 8} },
7560 .block_erase = spi_block_erase_d8,
7561 }, {
7562 .eraseblocks = { {512 * 1024, 1} },
7563 .block_erase = spi_block_erase_60,
7564 }, {
7565 .eraseblocks = { {512 * 1024, 1} },
7566 .block_erase = spi_block_erase_c7,
7567 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007568 },
Nico Huber4da971f2024-03-27 01:18:12 +01007569 .reg_bits =
7570 {
7571 .qe = {STATUS2, 1, RW},
7572 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007573 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007574 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7575 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007576 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007577 .voltage = {2300, 3600},
7578 },
7579
7580 {
7581 .vendor = "GigaDevice",
7582 .name = "GD25VQ80C",
7583 .bustype = BUS_SPI,
7584 .manufacture_id = GIGADEVICE_ID,
7585 .model_id = GIGADEVICE_GD25VQ80C,
7586 .total_size = 1024,
7587 .page_size = 256,
7588 /* Supports SFDP */
7589 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007591 .tested = TEST_UNTESTED,
7592 .probe = probe_spi_rdid,
7593 .probe_timing = TIMING_ZERO,
7594 .block_erasers =
7595 {
7596 {
7597 .eraseblocks = { { 4 * 1024, 256} },
7598 .block_erase = spi_block_erase_20,
7599 }, {
7600 .eraseblocks = { { 32 * 1024, 32} },
7601 .block_erase = spi_block_erase_52,
7602 }, {
7603 .eraseblocks = { { 64 * 1024, 16} },
7604 .block_erase = spi_block_erase_d8,
7605 }, {
7606 .eraseblocks = { {1024 * 1024, 1} },
7607 .block_erase = spi_block_erase_60,
7608 }, {
7609 .eraseblocks = { {1024 * 1024, 1} },
7610 .block_erase = spi_block_erase_c7,
7611 }
7612 },
Nico Huber4da971f2024-03-27 01:18:12 +01007613 .reg_bits =
7614 {
7615 .qe = {STATUS2, 1, RW},
7616 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007617 .printlock = spi_prettyprint_status_register_bp4_srwd,
7618 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7619 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007620 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007621 .voltage = {2300, 3600},
7622 },
7623
7624 {
Dino Li3214f582020-03-25 17:39:53 +08007625 .vendor = "GigaDevice",
7626 .name = "GD25WQ80E",
7627 .bustype = BUS_SPI,
7628 .manufacture_id = GIGADEVICE_ID,
7629 .model_id = GIGADEVICE_GD25WQ80E,
7630 .total_size = 1024,
7631 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Dino Li3214f582020-03-25 17:39:53 +08007633 .tested = TEST_OK_PREW,
7634 .probe = probe_spi_rdid,
7635 .probe_timing = TIMING_ZERO,
7636 .block_erasers =
7637 {
7638 {
7639 .eraseblocks = { {4 * 1024, 256} },
7640 .block_erase = spi_block_erase_20,
7641 }, {
7642 .eraseblocks = { {32 * 1024, 32} },
7643 .block_erase = spi_block_erase_52,
7644 }, {
7645 .eraseblocks = { {64 * 1024, 16} },
7646 .block_erase = spi_block_erase_d8,
7647 }, {
7648 .eraseblocks = { {1 * 1024 * 1024, 1} },
7649 .block_erase = spi_block_erase_60,
7650 }, {
7651 .eraseblocks = { {1 * 1024 * 1024, 1} },
7652 .block_erase = spi_block_erase_c7,
7653 }
7654 },
Nico Huber4da971f2024-03-27 01:18:12 +01007655 .reg_bits =
7656 {
7657 .qe = {STATUS2, 1, RW},
7658 },
Dino Li3214f582020-03-25 17:39:53 +08007659 .printlock = spi_prettyprint_status_register_bp4_srwd,
7660 .unlock = spi_disable_blockprotect_bp4_srwd,
7661 .write = spi_chip_write_256,
7662 .read = spi_chip_read,
7663 .voltage = {1650, 3600},
7664 },
7665
7666 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007667 .vendor = "Hyundai",
7668 .name = "HY29F002B",
7669 .bustype = BUS_PARALLEL,
7670 .manufacture_id = HYUNDAI_ID,
7671 .model_id = HYUNDAI_HY29F002B,
7672 .total_size = 256,
7673 .page_size = 256 * 1024,
7674 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007675 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007676 .probe = probe_jedec,
7677 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007678 .block_erasers =
7679 {
7680 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007681 .eraseblocks = {
7682 {16 * 1024, 1},
7683 {8 * 1024, 2},
7684 {32 * 1024, 1},
7685 {64 * 1024, 3},
7686 },
7687 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007688 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007689 .eraseblocks = { {256 * 1024, 1} },
7690 .block_erase = erase_chip_block_jedec,
7691 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007692 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007693 .write = write_jedec_1,
7694 .read = read_memmapped,
7695 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007696 .prepare_access = prepare_memory_access,
7697 .finish_access = finish_memory_access,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007698 },
7699
7700 {
David Borgc96a8bd2010-06-21 16:12:22 +00007701 .vendor = "Hyundai",
7702 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007703 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007704 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007705 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007706 .total_size = 256,
7707 .page_size = 256 * 1024,
7708 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007709 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007710 .probe = probe_jedec,
7711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7712 .block_erasers =
7713 {
7714 {
7715 .eraseblocks = {
7716 {64 * 1024, 3},
7717 {32 * 1024, 1},
7718 {8 * 1024, 2},
7719 {16 * 1024, 1},
7720 },
7721 .block_erase = erase_sector_jedec,
7722 }, {
7723 .eraseblocks = { {256 * 1024, 1} },
7724 .block_erase = erase_chip_block_jedec,
7725 },
7726 },
7727 .write = write_jedec_1,
7728 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007729 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007730 .prepare_access = prepare_memory_access,
7731 .finish_access = finish_memory_access,
David Borgc96a8bd2010-06-21 16:12:22 +00007732 },
7733
7734 {
7735 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007736 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007737 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007738 .manufacture_id = HYUNDAI_ID,
7739 .model_id = HYUNDAI_HY29F040A,
7740 .total_size = 512,
7741 .page_size = 64 * 1024,
7742 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7743 .tested = TEST_UNTESTED,
7744 .probe = probe_jedec,
7745 .probe_timing = TIMING_ZERO,
7746 .block_erasers =
7747 {
7748 {
7749 .eraseblocks = { {64 * 1024, 8} },
7750 .block_erase = erase_sector_jedec,
7751 }, {
7752 .eraseblocks = { {512 * 1024, 1} },
7753 .block_erase = erase_chip_block_jedec,
7754 },
7755 },
7756 .write = write_jedec_1,
7757 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007758 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01007759 .prepare_access = prepare_memory_access,
7760 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00007761 },
7762
7763 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007764 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007765 .name = "IS25LP064",
7766 .bustype = BUS_SPI,
7767 .manufacture_id = ISSI_ID_SPI,
7768 .model_id = ISSI_IS25LP064,
7769 .total_size = 8192,
7770 .page_size = 256,
7771 /* OTP: 1024B total; read 0x48; write 0x42 */
7772 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007773 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007774 .probe = probe_spi_rdid,
7775 .probe_timing = TIMING_ZERO,
7776 .block_erasers =
7777 {
7778 {
7779 .eraseblocks = { {4 * 1024, 2048} },
7780 .block_erase = spi_block_erase_20,
7781 }, {
7782 .eraseblocks = { {4 * 1024, 2048} },
7783 .block_erase = spi_block_erase_d7,
7784 }, {
7785 .eraseblocks = { {32 * 1024, 256} },
7786 .block_erase = spi_block_erase_52,
7787 }, {
7788 .eraseblocks = { {64 * 1024, 128} },
7789 .block_erase = spi_block_erase_d8,
7790 }, {
7791 .eraseblocks = { {8 * 1024 * 1024, 1} },
7792 .block_erase = spi_block_erase_60,
7793 }, {
7794 .eraseblocks = { {8 * 1024 * 1024, 1} },
7795 .block_erase = spi_block_erase_c7,
7796 }
7797 },
7798 .unlock = spi_disable_blockprotect,
7799 .write = spi_chip_write_256,
7800 .read = spi_chip_read,
7801 .voltage = {2300, 3600},
7802 },
7803
7804 {
7805 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007806 .name = "IS25LP128",
7807 .bustype = BUS_SPI,
7808 .manufacture_id = ISSI_ID_SPI,
7809 .model_id = ISSI_IS25LP128,
7810 .total_size = 16384,
7811 .page_size = 256,
7812 /* OTP: 1024B total; read 0x48; write 0x42 */
7813 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7814 .tested = TEST_OK_PREW,
7815 .probe = probe_spi_rdid,
7816 .probe_timing = TIMING_ZERO,
7817 .block_erasers =
7818 {
7819 {
7820 .eraseblocks = { {4 * 1024, 4096} },
7821 .block_erase = spi_block_erase_20,
7822 }, {
7823 .eraseblocks = { {4 * 1024, 4096} },
7824 .block_erase = spi_block_erase_d7,
7825 }, {
7826 .eraseblocks = { {32 * 1024, 512} },
7827 .block_erase = spi_block_erase_52,
7828 }, {
7829 .eraseblocks = { {64 * 1024, 256} },
7830 .block_erase = spi_block_erase_d8,
7831 }, {
7832 .eraseblocks = { {16 * 1024 * 1024, 1} },
7833 .block_erase = spi_block_erase_60,
7834 }, {
7835 .eraseblocks = { {16 * 1024 * 1024, 1} },
7836 .block_erase = spi_block_erase_c7,
7837 }
7838 },
7839 .unlock = spi_disable_blockprotect,
7840 .write = spi_chip_write_256,
7841 .read = spi_chip_read,
7842 .voltage = {2300, 3600},
7843 },
7844
7845 {
7846 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007847 .name = "IS25LP256",
7848 .bustype = BUS_SPI,
7849 .manufacture_id = ISSI_ID_SPI,
7850 .model_id = ISSI_IS25LP256,
7851 .total_size = 32768,
7852 .page_size = 256,
7853 /* supports SFDP */
7854 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007855 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7856 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007857 .tested = TEST_OK_PREW,
7858 .probe = probe_spi_rdid,
7859 .probe_timing = TIMING_ZERO,
7860 .block_erasers =
7861 {
7862 {
7863 .eraseblocks = { {4 * 1024, 8192} },
7864 .block_erase = spi_block_erase_21,
7865 }, {
7866 .eraseblocks = { {4 * 1024, 8192} },
7867 .block_erase = spi_block_erase_20,
7868 /* could also use spi_block_erase_d7 */
7869 }, {
7870 .eraseblocks = { {32 * 1024, 1024} },
7871 .block_erase = spi_block_erase_5c,
7872 }, {
7873 .eraseblocks = { {32 * 1024, 1024} },
7874 .block_erase = spi_block_erase_52,
7875 }, {
7876 .eraseblocks = { {64 * 1024, 512} },
7877 .block_erase = spi_block_erase_dc,
7878 }, {
7879 .eraseblocks = { {64 * 1024, 512} },
7880 .block_erase = spi_block_erase_d8,
7881 }, {
7882 .eraseblocks = { {32 * 1024 * 1024, 1} },
7883 .block_erase = spi_block_erase_60,
7884 }, {
7885 .eraseblocks = { {32 * 1024 * 1024, 1} },
7886 .block_erase = spi_block_erase_c7,
7887 }
7888 },
7889 .unlock = spi_disable_blockprotect,
7890 .write = spi_chip_write_256,
7891 .read = spi_chip_read,
7892 .voltage = {2300, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01007893 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007894 },
7895
7896 {
7897 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007898 .name = "IS25WP032",
7899 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007900 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007901 .model_id = ISSI_IS25WP032,
7902 .total_size = 4096,
7903 .page_size = 256,
7904 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007905 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7906 dummy cycles; non-volatile read parameters, so disable for now */
7907 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Nico Huberb27b8d12018-10-02 20:46:21 +02007908 .tested = TEST_UNTESTED,
7909 .probe = probe_spi_rdid,
7910 .probe_timing = TIMING_ZERO,
7911 .block_erasers =
7912 {
7913 {
7914 .eraseblocks = { {4 * 1024, 1024} },
7915 .block_erase = spi_block_erase_20,
7916 }, {
7917 .eraseblocks = { {4 * 1024, 1024} },
7918 .block_erase = spi_block_erase_d7,
7919 }, {
7920 .eraseblocks = { {32 * 1024, 128} },
7921 .block_erase = spi_block_erase_52,
7922 }, {
7923 .eraseblocks = { {64 * 1024, 64} },
7924 .block_erase = spi_block_erase_d8,
7925 }, {
7926 .eraseblocks = { {4 * 1024 * 1024, 1} },
7927 .block_erase = spi_block_erase_60,
7928 }, {
7929 .eraseblocks = { {4 * 1024 * 1024, 1} },
7930 .block_erase = spi_block_erase_c7,
7931 }
7932 },
7933 .unlock = spi_disable_blockprotect,
7934 .write = spi_chip_write_256,
7935 .read = spi_chip_read,
7936 .voltage = {1650, 1950},
7937 },
7938
7939 {
7940 .vendor = "ISSI",
7941 .name = "IS25WP064",
7942 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007943 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007944 .model_id = ISSI_IS25WP064,
7945 .total_size = 8192,
7946 .page_size = 256,
7947 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007948 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7949 dummy cycles; non-volatile read parameters, so disable for now */
7950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Nico Huberb27b8d12018-10-02 20:46:21 +02007951 .tested = TEST_OK_PREW,
7952 .probe = probe_spi_rdid,
7953 .probe_timing = TIMING_ZERO,
7954 .block_erasers =
7955 {
7956 {
7957 .eraseblocks = { {4 * 1024, 2048} },
7958 .block_erase = spi_block_erase_20,
7959 }, {
7960 .eraseblocks = { {4 * 1024, 2048} },
7961 .block_erase = spi_block_erase_d7,
7962 }, {
7963 .eraseblocks = { {32 * 1024, 256} },
7964 .block_erase = spi_block_erase_52,
7965 }, {
7966 .eraseblocks = { {64 * 1024, 128} },
7967 .block_erase = spi_block_erase_d8,
7968 }, {
7969 .eraseblocks = { {8 * 1024 * 1024, 1} },
7970 .block_erase = spi_block_erase_60,
7971 }, {
7972 .eraseblocks = { {8 * 1024 * 1024, 1} },
7973 .block_erase = spi_block_erase_c7,
7974 }
7975 },
7976 .unlock = spi_disable_blockprotect,
7977 .write = spi_chip_write_256,
7978 .read = spi_chip_read,
7979 .voltage = {1650, 1950},
7980 },
7981
7982 {
7983 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007984 .name = "IS25WP128",
7985 .bustype = BUS_SPI,
7986 .manufacture_id = ISSI_ID_SPI,
7987 .model_id = ISSI_IS25WP128,
7988 .total_size = 16384,
7989 .page_size = 256,
7990 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007991 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7992 dummy cycles; non-volatile read parameters, so disable for now */
7993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks3083ed92017-05-02 13:25:56 -07007994 .tested = TEST_OK_PREW,
7995 .probe = probe_spi_rdid,
7996 .probe_timing = TIMING_ZERO,
7997 .block_erasers =
7998 {
7999 {
8000 .eraseblocks = { {4 * 1024, 4096} },
8001 .block_erase = spi_block_erase_20,
8002 }, {
8003 .eraseblocks = { {4 * 1024, 4096} },
8004 .block_erase = spi_block_erase_d7,
8005 }, {
8006 .eraseblocks = { {32 * 1024, 512} },
8007 .block_erase = spi_block_erase_52,
8008 }, {
8009 .eraseblocks = { {64 * 1024, 256} },
8010 .block_erase = spi_block_erase_d8,
8011 }, {
8012 .eraseblocks = { {16 * 1024 * 1024, 1} },
8013 .block_erase = spi_block_erase_60,
8014 }, {
8015 .eraseblocks = { {16 * 1024 * 1024, 1} },
8016 .block_erase = spi_block_erase_c7,
8017 }
8018 },
8019 .unlock = spi_disable_blockprotect,
8020 .write = spi_chip_write_256,
8021 .read = spi_chip_read,
8022 .voltage = {1650, 1950},
8023 },
8024
8025 {
8026 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00008027 .name = "IS25WP256",
8028 .bustype = BUS_SPI,
8029 .manufacture_id = ISSI_ID_SPI,
8030 .model_id = ISSI_IS25WP256,
8031 .total_size = 32768,
8032 .page_size = 256,
8033 /* supports SFDP */
8034 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02008035 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
8036 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00008037 .tested = TEST_OK_PREW,
8038 .probe = probe_spi_rdid,
8039 .probe_timing = TIMING_ZERO,
8040 .block_erasers =
8041 {
8042 {
8043 .eraseblocks = { {4 * 1024, 8192} },
8044 .block_erase = spi_block_erase_21,
8045 }, {
8046 .eraseblocks = { {4 * 1024, 8192} },
8047 .block_erase = spi_block_erase_20,
8048 /* could also use spi_block_erase_d7 */
8049 }, {
8050 .eraseblocks = { {32 * 1024, 1024} },
8051 .block_erase = spi_block_erase_5c,
8052 }, {
8053 .eraseblocks = { {32 * 1024, 1024} },
8054 .block_erase = spi_block_erase_52,
8055 }, {
8056 .eraseblocks = { {64 * 1024, 512} },
8057 .block_erase = spi_block_erase_dc,
8058 }, {
8059 .eraseblocks = { {64 * 1024, 512} },
8060 .block_erase = spi_block_erase_d8,
8061 }, {
8062 .eraseblocks = { {32 * 1024 * 1024, 1} },
8063 .block_erase = spi_block_erase_60,
8064 }, {
8065 .eraseblocks = { {32 * 1024 * 1024, 1} },
8066 .block_erase = spi_block_erase_c7,
8067 }
8068 },
8069 .unlock = spi_disable_blockprotect,
8070 .write = spi_chip_write_256,
8071 .read = spi_chip_read,
8072 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +01008073 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00008074 },
8075
8076 {
8077 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008078 .name = "IS29GL064B",
8079 .bustype = BUS_PARALLEL,
8080 .manufacture_id = ISSI_ID,
8081 .model_id = ISSI_PMC_IS29GL064B,
8082 .total_size = 8192,
8083 .page_size = 128 * 1024, /* actual page size is 16 */
8084 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8085 .tested = TEST_UNTESTED,
8086 .probe = probe_jedec_29gl,
8087 .probe_timing = TIMING_ZERO,
8088 .block_erasers =
8089 {
8090 {
8091 .eraseblocks = {
8092 {8 * 1024, 8},
8093 {64 * 1024, 127},
8094 },
8095 .block_erase = erase_sector_jedec,
8096 }, {
8097 .eraseblocks = { {8 * 1024 * 1024, 1} },
8098 .block_erase = erase_chip_block_jedec,
8099 },
8100 },
8101 .write = write_jedec_1,
8102 .read = read_memmapped,
8103 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008104 .prepare_access = prepare_memory_access,
8105 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008106 },
8107
8108 {
8109 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008110 .name = "IS29GL064H/L",
8111 .bustype = BUS_PARALLEL,
8112 .manufacture_id = ISSI_ID,
8113 .model_id = ISSI_PMC_IS29GL064HL,
8114 .total_size = 8192,
8115 .page_size = 128 * 1024, /* actual page size is 16 */
8116 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8117 .tested = TEST_UNTESTED,
8118 .probe = probe_jedec_29gl,
8119 .probe_timing = TIMING_ZERO,
8120 .block_erasers =
8121 {
8122 {
8123 .eraseblocks = { {64 * 1024, 128} },
8124 .block_erase = erase_sector_jedec,
8125 }, {
8126 .eraseblocks = { {8 * 1024 * 1024, 1} },
8127 .block_erase = erase_chip_block_jedec,
8128 },
8129 },
8130 .write = write_jedec_1,
8131 .read = read_memmapped,
8132 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008133 .prepare_access = prepare_memory_access,
8134 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008135 },
8136
8137 {
8138 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008139 .name = "IS29GL064T",
8140 .bustype = BUS_PARALLEL,
8141 .manufacture_id = ISSI_ID,
8142 .model_id = ISSI_PMC_IS29GL064T,
8143 .total_size = 8192,
8144 .page_size = 128 * 1024, /* actual page size is 16 */
8145 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8146 .tested = TEST_UNTESTED,
8147 .probe = probe_jedec_29gl,
8148 .probe_timing = TIMING_ZERO,
8149 .block_erasers =
8150 {
8151 {
8152 .eraseblocks = {
8153 {64 * 1024, 127},
8154 {8 * 1024, 8},
8155 },
8156 .block_erase = erase_sector_jedec,
8157 }, {
8158 .eraseblocks = { {8 * 1024 * 1024, 1} },
8159 .block_erase = erase_chip_block_jedec,
8160 },
8161 },
8162 .write = write_jedec_1,
8163 .read = read_memmapped,
8164 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008165 .prepare_access = prepare_memory_access,
8166 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008167 },
8168
8169 {
8170 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008171 .name = "IS29GL128H/L",
8172 .bustype = BUS_PARALLEL,
8173 .manufacture_id = ISSI_ID,
8174 .model_id = ISSI_PMC_IS29GL128HL,
8175 .total_size = 16384,
8176 .page_size = 128 * 1024, /* actual page size is 16 */
8177 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8178 .tested = TEST_UNTESTED,
8179 .probe = probe_jedec_29gl,
8180 .probe_timing = TIMING_ZERO,
8181 .block_erasers =
8182 {
8183 {
8184 .eraseblocks = { {128 * 1024, 128} },
8185 .block_erase = erase_sector_jedec,
8186 }, {
8187 .eraseblocks = { {16 * 1024 * 1024, 1} },
8188 .block_erase = erase_chip_block_jedec,
8189 },
8190 },
8191 .write = write_jedec_1,
8192 .read = read_memmapped,
8193 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008194 .prepare_access = prepare_memory_access,
8195 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008196 },
8197
8198 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008199 .vendor = "Intel",
8200 .name = "25F160S33B8",
8201 .bustype = BUS_SPI,
8202 .manufacture_id = INTEL_ID,
8203 .model_id = INTEL_25F160S33B8,
8204 .total_size = 2048,
8205 .page_size = 256,
8206 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8208 .tested = TEST_UNTESTED,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers =
8212 {
8213 {
8214 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8215 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8216 * have no effect on the memory contents, but sets a flag in the SR.
8217 .eraseblocks = {
8218 {8 * 1024, 8},
8219 {64 * 1024, 31} // inaccessible
8220 },
8221 .block_erase = spi_block_erase_40,
8222 }, { */
8223 .eraseblocks = { {64 * 1024, 32} },
8224 .block_erase = spi_block_erase_d8,
8225 }, {
8226 .eraseblocks = { {2 * 1024 * 1024, 1} },
8227 .block_erase = spi_block_erase_c7,
8228 }
8229 },
8230 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8231 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8232 .write = spi_chip_write_256,
8233 .read = spi_chip_read, /* also fast read 0x0B */
8234 .voltage = {2700, 3600},
8235 },
8236
8237 {
8238 .vendor = "Intel",
8239 .name = "25F160S33T8",
8240 .bustype = BUS_SPI,
8241 .manufacture_id = INTEL_ID,
8242 .model_id = INTEL_25F160S33T8,
8243 .total_size = 2048,
8244 .page_size = 256,
8245 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8246 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8247 .tested = TEST_UNTESTED,
8248 .probe = probe_spi_rdid,
8249 .probe_timing = TIMING_ZERO,
8250 .block_erasers =
8251 {
8252 {
8253 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8254 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8255 * have no effect on the memory contents, but sets a flag in the SR.
8256 .eraseblocks = {
8257 {64 * 1024, 31}, // inaccessible
8258 {8 * 1024, 8}
8259 },
8260 .block_erase = spi_block_erase_40,
8261 }, { */
8262 .eraseblocks = { {64 * 1024, 32} },
8263 .block_erase = spi_block_erase_d8,
8264 }, {
8265 .eraseblocks = { {2 * 1024 * 1024, 1} },
8266 .block_erase = spi_block_erase_c7,
8267 }
8268 },
8269 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8270 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8271 .write = spi_chip_write_256,
8272 .read = spi_chip_read, /* also fast read 0x0B */
8273 .voltage = {2700, 3600},
8274 },
8275
8276 {
8277 .vendor = "Intel",
8278 .name = "25F320S33B8",
8279 .bustype = BUS_SPI,
8280 .manufacture_id = INTEL_ID,
8281 .model_id = INTEL_25F320S33B8,
8282 .total_size = 4096,
8283 .page_size = 256,
8284 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8285 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8286 .tested = TEST_UNTESTED,
8287 .probe = probe_spi_rdid,
8288 .probe_timing = TIMING_ZERO,
8289 .block_erasers =
8290 {
8291 {
8292 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8293 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8294 * have no effect on the memory contents, but sets a flag in the SR.
8295 .eraseblocks = {
8296 {8 * 1024, 8},
8297 {64 * 1024, 63} // inaccessible
8298 },
8299 .block_erase = spi_block_erase_40,
8300 }, { */
8301 .eraseblocks = { {64 * 1024, 64} },
8302 .block_erase = spi_block_erase_d8,
8303 }, {
8304 .eraseblocks = { {4 * 1024 * 1024, 1} },
8305 .block_erase = spi_block_erase_c7,
8306 }
8307 },
8308 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8309 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8310 .write = spi_chip_write_256,
8311 .read = spi_chip_read, /* also fast read 0x0B */
8312 .voltage = {2700, 3600},
8313 },
8314
8315 {
8316 .vendor = "Intel",
8317 .name = "25F320S33T8",
8318 .bustype = BUS_SPI,
8319 .manufacture_id = INTEL_ID,
8320 .model_id = INTEL_25F320S33T8,
8321 .total_size = 4096,
8322 .page_size = 256,
8323 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8325 .tested = TEST_UNTESTED,
8326 .probe = probe_spi_rdid,
8327 .probe_timing = TIMING_ZERO,
8328 .block_erasers =
8329 {
8330 {
8331 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8332 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8333 * have no effect on the memory contents, but sets a flag in the SR.
8334 .eraseblocks = {
8335 {64 * 1024, 63}, // inaccessible
8336 {8 * 1024, 8}
8337 },
8338 .block_erase = spi_block_erase_40,
8339 }, { */
8340 .eraseblocks = { {64 * 1024, 64} },
8341 .block_erase = spi_block_erase_d8,
8342 }, {
8343 .eraseblocks = { {4 * 1024 * 1024, 1} },
8344 .block_erase = spi_block_erase_c7,
8345 }
8346 },
8347 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8348 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8349 .write = spi_chip_write_256,
8350 .read = spi_chip_read, /* also fast read 0x0B */
8351 .voltage = {2700, 3600},
8352 },
8353
8354 {
8355 .vendor = "Intel",
8356 .name = "25F640S33B8",
8357 .bustype = BUS_SPI,
8358 .manufacture_id = INTEL_ID,
8359 .model_id = INTEL_25F640S33B8,
8360 .total_size = 8192,
8361 .page_size = 256,
8362 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008364 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008365 .probe = probe_spi_rdid,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers =
8368 {
8369 {
8370 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8371 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8372 * have no effect on the memory contents, but sets a flag in the SR.
8373 .eraseblocks = {
8374 {8 * 1024, 8},
8375 {64 * 1024, 127} // inaccessible
8376 },
8377 .block_erase = spi_block_erase_40,
8378 }, { */
8379 .eraseblocks = { {64 * 1024, 128} },
8380 .block_erase = spi_block_erase_d8,
8381 }, {
8382 .eraseblocks = { {8 * 1024 * 1024, 1} },
8383 .block_erase = spi_block_erase_c7,
8384 }
8385 },
8386 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8387 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8388 .write = spi_chip_write_256,
8389 .read = spi_chip_read, /* also fast read 0x0B */
8390 .voltage = {2700, 3600},
8391 },
8392
8393 {
8394 .vendor = "Intel",
8395 .name = "25F640S33T8",
8396 .bustype = BUS_SPI,
8397 .manufacture_id = INTEL_ID,
8398 .model_id = INTEL_25F640S33T8,
8399 .total_size = 8192,
8400 .page_size = 256,
8401 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8402 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8403 .tested = TEST_UNTESTED,
8404 .probe = probe_spi_rdid,
8405 .probe_timing = TIMING_ZERO,
8406 .block_erasers =
8407 {
8408 {
8409 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8410 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8411 * have no effect on the memory contents, but sets a flag in the SR.
8412 .eraseblocks = {
8413 {64 * 1024, 127}, // inaccessible
8414 {8 * 1024, 8}
8415 },
8416 .block_erase = spi_block_erase_40,
8417 }, { */
8418 .eraseblocks = { {64 * 1024, 128} },
8419 .block_erase = spi_block_erase_d8,
8420 }, {
8421 .eraseblocks = { {8 * 1024 * 1024, 1} },
8422 .block_erase = spi_block_erase_c7,
8423 }
8424 },
8425 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8426 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8427 .write = spi_chip_write_256,
8428 .read = spi_chip_read, /* also fast read 0x0B */
8429 .voltage = {2700, 3600},
8430 },
8431
8432 {
8433 .vendor = "Intel",
8434 .name = "28F001BN/BX-B",
8435 .bustype = BUS_PARALLEL,
8436 .manufacture_id = INTEL_ID,
8437 .model_id = INTEL_28F001B,
8438 .total_size = 128,
8439 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8440 .tested = TEST_UNTESTED,
8441 .probe = probe_jedec,
8442 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8443 .block_erasers =
8444 {
8445 {
8446 .eraseblocks = {
8447 {8 * 1024, 1},
8448 {4 * 1024, 2},
8449 {112 * 1024, 1},
8450 },
8451 .block_erase = erase_block_82802ab,
8452 },
8453 },
8454 .write = write_82802ab,
8455 .read = read_memmapped,
8456 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008457 .prepare_access = prepare_memory_access,
8458 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008459 },
8460
8461 {
8462 .vendor = "Intel",
8463 .name = "28F001BN/BX-T",
8464 .bustype = BUS_PARALLEL,
8465 .manufacture_id = INTEL_ID,
8466 .model_id = INTEL_28F001T,
8467 .total_size = 128,
8468 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8469 .tested = TEST_OK_PREW,
8470 .probe = probe_jedec,
8471 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8472 .block_erasers =
8473 {
8474 {
8475 .eraseblocks = {
8476 {112 * 1024, 1},
8477 {4 * 1024, 2},
8478 {8 * 1024, 1},
8479 },
8480 .block_erase = erase_block_82802ab,
8481 },
8482 },
8483 .write = write_82802ab,
8484 .read = read_memmapped,
8485 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008486 .prepare_access = prepare_memory_access,
8487 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008488 },
8489
8490 {
8491 .vendor = "Intel",
8492 .name = "28F002BC/BL/BV/BX-T",
8493 .bustype = BUS_PARALLEL,
8494 .manufacture_id = INTEL_ID,
8495 .model_id = INTEL_28F002T,
8496 .total_size = 256,
8497 .page_size = 256 * 1024,
8498 .tested = TEST_OK_PRE,
8499 .probe = probe_82802ab,
8500 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8501 .block_erasers =
8502 {
8503 {
8504 .eraseblocks = {
8505 {128 * 1024, 1},
8506 {96 * 1024, 1},
8507 {8 * 1024, 2},
8508 {16 * 1024, 1},
8509 },
8510 .block_erase = erase_block_82802ab,
8511 },
8512 },
8513 .write = write_82802ab,
8514 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008515 .prepare_access = prepare_memory_access,
8516 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008517 },
8518
8519 {
8520 .vendor = "Intel",
8521 .name = "28F004B5/BE/BV/BX-B",
8522 .bustype = BUS_PARALLEL,
8523 .manufacture_id = INTEL_ID,
8524 .model_id = INTEL_28F004B,
8525 .total_size = 512,
8526 .page_size = 128 * 1024, /* maximal block size */
8527 .tested = TEST_UNTESTED,
8528 .probe = probe_82802ab,
8529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8530 .block_erasers =
8531 {
8532 {
8533 .eraseblocks = {
8534 {16 * 1024, 1},
8535 {8 * 1024, 2},
8536 {96 * 1024, 1},
8537 {128 * 1024, 3},
8538 },
8539 .block_erase = erase_block_82802ab,
8540 },
8541 },
8542 .write = write_82802ab,
8543 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008544 .prepare_access = prepare_memory_access,
8545 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008546 },
8547
8548 {
8549 .vendor = "Intel",
8550 .name = "28F004B5/BE/BV/BX-T",
8551 .bustype = BUS_PARALLEL,
8552 .manufacture_id = INTEL_ID,
8553 .model_id = INTEL_28F004T,
8554 .total_size = 512,
8555 .page_size = 128 * 1024, /* maximal block size */
8556 .tested = TEST_UNTESTED,
8557 .probe = probe_82802ab,
8558 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8559 .block_erasers =
8560 {
8561 {
8562 .eraseblocks = {
8563 {128 * 1024, 3},
8564 {96 * 1024, 1},
8565 {8 * 1024, 2},
8566 {16 * 1024, 1},
8567 },
8568 .block_erase = erase_block_82802ab,
8569 },
8570 },
8571 .write = write_82802ab,
8572 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008573 .prepare_access = prepare_memory_access,
8574 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008575 },
8576
8577 {
8578 .vendor = "Intel",
8579 .name = "28F008S3/S5/SC",
8580 .bustype = BUS_PARALLEL,
8581 .manufacture_id = INTEL_ID,
8582 .model_id = INTEL_28F004S3,
8583 .total_size = 512,
8584 .page_size = 256,
8585 .tested = TEST_UNTESTED,
8586 .probe = probe_82802ab,
8587 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8588 .block_erasers =
8589 {
8590 {
8591 .eraseblocks = { {64 * 1024, 8} },
8592 .block_erase = erase_block_82802ab,
8593 },
8594 },
8595 .unlock = unlock_28f004s5,
8596 .write = write_82802ab,
8597 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008598 .prepare_access = prepare_memory_access,
8599 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008600 },
8601
8602 {
8603 .vendor = "Intel",
8604 .name = "28F400BV/BX/CE/CV-B",
8605 .bustype = BUS_PARALLEL,
8606 .manufacture_id = INTEL_ID,
8607 .model_id = INTEL_28F400B,
8608 .total_size = 512,
8609 .page_size = 128 * 1024, /* maximal block size */
8610 .feature_bits = FEATURE_ADDR_SHIFTED,
8611 .tested = TEST_UNTESTED,
8612 .probe = probe_82802ab,
8613 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8614 .block_erasers =
8615 {
8616 {
8617 .eraseblocks = {
8618 {16 * 1024, 1},
8619 {8 * 1024, 2},
8620 {96 * 1024, 1},
8621 {128 * 1024, 3},
8622 },
8623 .block_erase = erase_block_82802ab,
8624 },
8625 },
8626 .write = write_82802ab,
8627 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008628 .prepare_access = prepare_memory_access,
8629 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008630 },
8631
8632 {
8633 .vendor = "Intel",
8634 .name = "28F400BV/BX/CE/CV-T",
8635 .bustype = BUS_PARALLEL,
8636 .manufacture_id = INTEL_ID,
8637 .model_id = INTEL_28F400T,
8638 .total_size = 512,
8639 .page_size = 128 * 1024, /* maximal block size */
8640 .feature_bits = FEATURE_ADDR_SHIFTED,
8641 .tested = TEST_UNTESTED,
8642 .probe = probe_82802ab,
8643 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8644 .block_erasers =
8645 {
8646 {
8647 .eraseblocks = {
8648 {128 * 1024, 3},
8649 {96 * 1024, 1},
8650 {8 * 1024, 2},
8651 {16 * 1024, 1},
8652 },
8653 .block_erase = erase_block_82802ab,
8654 },
8655 },
8656 .write = write_82802ab,
8657 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008658 .prepare_access = prepare_memory_access,
8659 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008660 },
8661
8662 {
8663 .vendor = "Intel",
8664 .name = "82802AB",
8665 .bustype = BUS_FWH,
8666 .manufacture_id = INTEL_ID,
8667 .model_id = INTEL_82802AB,
8668 .total_size = 512,
8669 .page_size = 64 * 1024,
Alan Green88552572019-07-24 13:56:06 +10008670 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008671 .probe = probe_82802ab,
8672 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8673 .block_erasers =
8674 {
8675 {
8676 .eraseblocks = { {64 * 1024, 8} },
8677 .block_erase = erase_block_82802ab,
8678 },
8679 },
8680 .unlock = unlock_regspace2_uniform_64k,
8681 .write = write_82802ab,
8682 .read = read_memmapped,
8683 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008684 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008685 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008686 },
8687
8688 {
8689 .vendor = "Intel",
8690 .name = "82802AC",
8691 .bustype = BUS_FWH,
8692 .manufacture_id = INTEL_ID,
8693 .model_id = INTEL_82802AC,
8694 .total_size = 1024,
8695 .page_size = 64 * 1024,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008696 .tested = TEST_OK_PR,
8697 .probe = probe_82802ab,
8698 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = { {64 * 1024, 16} },
8703 .block_erase = erase_block_82802ab,
8704 },
8705 },
8706 .unlock = unlock_regspace2_uniform_64k,
8707 .write = write_82802ab,
8708 .read = read_memmapped,
8709 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008710 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008711 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008712 },
8713
8714 {
8715 .vendor = "Macronix",
8716 .name = "MX23L12854",
8717 .bustype = BUS_SPI,
8718 .manufacture_id = MACRONIX_ID,
8719 .model_id = MACRONIX_MX23L12854,
8720 .total_size = 16384,
8721 .page_size = 256,
8722 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8723 .probe = probe_spi_rdid,
8724 .probe_timing = TIMING_ZERO,
8725 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8726 .read = spi_chip_read, /* Fast read (0x0B) supported */
8727 .voltage = {3000, 3600},
8728 },
8729
8730 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008731 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008732 .name = "MX23L1654",
8733 .bustype = BUS_SPI,
8734 .manufacture_id = MACRONIX_ID,
8735 .model_id = MACRONIX_MX23L1654,
8736 .total_size = 2048,
8737 .page_size = 256,
8738 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8739 .probe = probe_spi_rdid,
8740 .probe_timing = TIMING_ZERO,
8741 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8742 .read = spi_chip_read, /* Fast read (0x0B) supported */
8743 .voltage = {3000, 3600},
8744 },
8745
8746 {
8747 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008748 .name = "MX23L3254",
8749 .bustype = BUS_SPI,
8750 .manufacture_id = MACRONIX_ID,
8751 .model_id = MACRONIX_MX23L3254,
8752 .total_size = 4096,
8753 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008754 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008755 .probe = probe_spi_rdid,
8756 .probe_timing = TIMING_ZERO,
8757 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8758 .read = spi_chip_read, /* Fast read (0x0B) supported */
8759 .voltage = {3000, 3600},
8760 },
8761
8762 {
8763 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008764 .name = "MX23L6454",
8765 .bustype = BUS_SPI,
8766 .manufacture_id = MACRONIX_ID,
8767 .model_id = MACRONIX_MX23L6454,
8768 .total_size = 8192,
8769 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008770 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008771 .probe = probe_spi_rdid,
8772 .probe_timing = TIMING_ZERO,
8773 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8774 .read = spi_chip_read, /* Fast read (0x0B) supported */
8775 .voltage = {3000, 3600},
8776 },
8777
8778 {
8779 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008780 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008781 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008782 .manufacture_id = MACRONIX_ID,
8783 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008784 .total_size = 128,
8785 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008786 /* MX25L1006E supports SFDP */
Nico Huber46552c82024-03-27 01:18:12 +01008787 /* FEATURE_FAST_READ_DOUT: MX25L1006E */
8788 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008789 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008790 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008791 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008792 .block_erasers =
8793 {
8794 {
8795 .eraseblocks = { {4 * 1024, 32} },
8796 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008797 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008798 .eraseblocks = { {64 * 1024, 2} },
8799 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008800 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008801 .eraseblocks = { {128 * 1024, 1} },
8802 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008803 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008804 .eraseblocks = { {128 * 1024, 1} },
8805 .block_erase = spi_block_erase_c7,
8806 },
8807 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008808 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008809 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008810 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008811 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008812 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008813 },
8814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008815 {
8816 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008817 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008819 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008820 .model_id = MACRONIX_MX25L12805D,
8821 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008822 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008823 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01008824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008827 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008828 .block_erasers =
8829 {
8830 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008831 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008832 .block_erase = spi_block_erase_20,
8833 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008834 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008835 .block_erase = spi_block_erase_d8,
8836 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008837 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008838 .block_erase = spi_block_erase_60,
8839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008840 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008841 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008842 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008843 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008844 .printlock = spi_prettyprint_status_register_bp3_srwd,
8845 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008846 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008848 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008849 },
8850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008851 {
8852 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008853 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008854 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008855 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008856 .model_id = MACRONIX_MX25L12805D,
8857 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008858 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008859 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01008860 /* *F versions: FEATURE_QPI_35 + DC bits (6, 4, 8, 10) in configuration register */
8861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
8862 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Stefan Tauner8179be52011-06-04 13:13:34 +00008863 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008864 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008865 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008866 .block_erasers =
8867 {
8868 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008869 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008870 .block_erase = spi_block_erase_20,
8871 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008872 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008873 .block_erase = spi_block_erase_52,
8874 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008875 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008876 .block_erase = spi_block_erase_d8,
8877 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008878 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008879 .block_erase = spi_block_erase_60,
8880 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008881 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008882 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008883 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008884 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008885 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
Nico Huber46552c82024-03-27 01:18:12 +01008886 .reg_bits =
8887 {
8888 .qe = {STATUS1, 6, RW},
8889 },
8890 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008891 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008892 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008894 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008895 },
8896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008897 {
8898 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008899 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008900 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008901 .manufacture_id = MACRONIX_ID,
8902 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008903 .total_size = 2048,
8904 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01008905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008906 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008907 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008908 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008909 .block_erasers =
8910 {
8911 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008912 .eraseblocks = { {64 * 1024, 32} },
8913 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008914 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008915 .eraseblocks = { {64 * 1024, 32} },
8916 .block_erase = spi_block_erase_d8,
8917 }, {
8918 .eraseblocks = { {2 * 1024 * 1024, 1} },
8919 .block_erase = spi_block_erase_60,
8920 }, {
8921 .eraseblocks = { {2 * 1024 * 1024, 1} },
8922 .block_erase = spi_block_erase_c7,
8923 },
8924 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008925 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008926 .unlock = spi_disable_blockprotect,
8927 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008928 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00008929 .voltage = {2700, 3600},
8930 },
8931
8932 {
8933 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008934 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008935 .bustype = BUS_SPI,
8936 .manufacture_id = MACRONIX_ID,
8937 .model_id = MACRONIX_MX25L1605,
8938 .total_size = 2048,
8939 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008940 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Nico Huber46552c82024-03-27 01:18:12 +01008941 /* FEATURE_FAST_READ_DOUT: MX25L1606E & MX25L1608E */
8942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ,
Stefan Tauner226037d2013-03-16 01:22:12 +00008943 .tested = TEST_OK_PREW,
8944 .probe = probe_spi_rdid,
8945 .probe_timing = TIMING_ZERO,
8946 .block_erasers =
8947 {
8948 {
8949 .eraseblocks = { {4 * 1024, 512} },
8950 .block_erase = spi_block_erase_20,
8951 }, {
8952 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008953 .block_erase = spi_block_erase_52,
8954 }, {
8955 .eraseblocks = { {64 * 1024, 32} },
8956 .block_erase = spi_block_erase_d8,
8957 }, {
8958 .eraseblocks = { {2 * 1024 * 1024, 1} },
8959 .block_erase = spi_block_erase_60,
8960 }, {
8961 .eraseblocks = { {2 * 1024 * 1024, 1} },
8962 .block_erase = spi_block_erase_c7,
8963 },
8964 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008965 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008966 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008967 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008968 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00008969 .voltage = {2700, 3600},
8970 },
8971
8972 {
8973 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008974 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008975 .bustype = BUS_SPI,
8976 .manufacture_id = MACRONIX_ID,
8977 .model_id = MACRONIX_MX25L1605,
8978 .total_size = 2048,
8979 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01008980 /* FEATURE_QIO: MX25L1673E */
8981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO,
Stefan Tauner226037d2013-03-16 01:22:12 +00008982 .tested = TEST_OK_PREW,
8983 .probe = probe_spi_rdid,
8984 .probe_timing = TIMING_ZERO,
8985 .block_erasers =
8986 {
8987 {
8988 .eraseblocks = { {4 * 1024, 512} },
8989 .block_erase = spi_block_erase_20,
8990 }, {
8991 .eraseblocks = { {64 * 1024, 32} },
8992 .block_erase = spi_block_erase_d8,
8993 }, {
8994 .eraseblocks = { {2 * 1024 * 1024, 1} },
8995 .block_erase = spi_block_erase_60,
8996 }, {
8997 .eraseblocks = { {2 * 1024 * 1024, 1} },
8998 .block_erase = spi_block_erase_c7,
8999 },
9000 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009001 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009002 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009003 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009005 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009006 },
9007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009008 {
9009 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009010 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009011 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009012 .manufacture_id = MACRONIX_ID,
9013 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009014 .total_size = 2048,
9015 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009016 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
9018 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Angel Ponsc2054872021-01-15 18:57:32 +01009019 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009020 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009021 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009022 .block_erasers =
9023 {
9024 {
9025 .eraseblocks = { {4 * 1024, 512} },
9026 .block_erase = spi_block_erase_20,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 32} },
9029 .block_erase = spi_block_erase_d8,
9030 }, {
9031 .eraseblocks = { {2 * 1024 * 1024, 1} },
9032 .block_erase = spi_block_erase_60,
9033 }, {
9034 .eraseblocks = { {2 * 1024 * 1024, 1} },
9035 .block_erase = spi_block_erase_c7,
9036 }
9037 },
Nico Huber46552c82024-03-27 01:18:12 +01009038 .reg_bits =
9039 {
9040 .qe = {STATUS1, 6, RW},
9041 },
9042 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009043 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009044 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009045 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009046 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009047 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00009048
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009049 {
9050 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00009051 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009052 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009053 .manufacture_id = MACRONIX_ID,
9054 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009055 .total_size = 2048,
9056 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009057 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
9059 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009060 .tested = TEST_UNTESTED,
9061 .probe = probe_spi_rdid,
9062 .probe_timing = TIMING_ZERO,
9063 .block_erasers =
9064 {
9065 {
9066 .eraseblocks = { {4 * 1024, 512} },
9067 .block_erase = spi_block_erase_20,
9068 }, {
9069 .eraseblocks = { {64 * 1024, 32} },
9070 .block_erase = spi_block_erase_d8,
9071 }, {
9072 .eraseblocks = { {2 * 1024 * 1024, 1} },
9073 .block_erase = spi_block_erase_60,
9074 }, {
9075 .eraseblocks = { {2 * 1024 * 1024, 1} },
9076 .block_erase = spi_block_erase_c7,
9077 }
9078 },
Nico Huber46552c82024-03-27 01:18:12 +01009079 .reg_bits =
9080 {
9081 .qe = {STATUS1, 6, RW},
9082 },
9083 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009084 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009085 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009086 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009087 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00009088 },
9089
9090 {
9091 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009092 .name = "MX25L2005(C)/MX25L2006E",
9093 .bustype = BUS_SPI,
9094 .manufacture_id = MACRONIX_ID,
9095 .model_id = MACRONIX_MX25L2005,
9096 .total_size = 256,
9097 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01009098 /* FEATURE_FAST_READ_DOUT: MX25L2006E */
9099 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009100 .tested = TEST_OK_PREW,
9101 .probe = probe_spi_rdid,
9102 .probe_timing = TIMING_ZERO,
9103 .block_erasers =
9104 {
9105 {
9106 .eraseblocks = { {4 * 1024, 64} },
9107 .block_erase = spi_block_erase_20,
9108 }, {
9109 .eraseblocks = { {64 * 1024, 4} },
9110 .block_erase = spi_block_erase_52,
9111 }, {
9112 .eraseblocks = { {64 * 1024, 4} },
9113 .block_erase = spi_block_erase_d8,
9114 }, {
9115 .eraseblocks = { {256 * 1024, 1} },
9116 .block_erase = spi_block_erase_60,
9117 }, {
9118 .eraseblocks = { {256 * 1024, 1} },
9119 .block_erase = spi_block_erase_c7,
9120 },
9121 },
9122 .printlock = spi_prettyprint_status_register_bp1_srwd,
9123 .unlock = spi_disable_blockprotect,
9124 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009125 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009126 .voltage = {2700, 3600},
9127 },
9128
9129 {
9130 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10009131 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009132 .bustype = BUS_SPI,
9133 .manufacture_id = MACRONIX_ID,
9134 .model_id = MACRONIX_MX25L25635F,
9135 .total_size = 32768,
9136 .page_size = 256,
9137 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009138 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9139 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9140 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009141 .tested = TEST_OK_PREW,
9142 .probe = probe_spi_rdid,
9143 .probe_timing = TIMING_ZERO,
9144 .block_erasers =
9145 {
9146 {
9147 .eraseblocks = { {4 * 1024, 8192} },
9148 .block_erase = spi_block_erase_21,
9149 }, {
9150 .eraseblocks = { {4 * 1024, 8192} },
9151 .block_erase = spi_block_erase_20,
9152 }, {
9153 .eraseblocks = { {32 * 1024, 1024} },
9154 .block_erase = spi_block_erase_5c,
9155 }, {
9156 .eraseblocks = { {32 * 1024, 1024} },
9157 .block_erase = spi_block_erase_52,
9158 }, {
9159 .eraseblocks = { {64 * 1024, 512} },
9160 .block_erase = spi_block_erase_dc,
9161 }, {
9162 .eraseblocks = { {64 * 1024, 512} },
9163 .block_erase = spi_block_erase_d8,
9164 }, {
9165 .eraseblocks = { {32 * 1024 * 1024, 1} },
9166 .block_erase = spi_block_erase_60,
9167 }, {
9168 .eraseblocks = { {32 * 1024 * 1024, 1} },
9169 .block_erase = spi_block_erase_c7,
9170 }
9171 },
9172 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
Nico Huber46552c82024-03-27 01:18:12 +01009173 .reg_bits = {
9174 .qe = {STATUS1, 6, RW},
9175 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9176 },
9177 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009178 .unlock = spi_disable_blockprotect_bp3_srwd,
9179 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009180 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009181 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01009182 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009183 },
9184
9185 {
9186 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00009187 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009188 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009189 .manufacture_id = MACRONIX_ID,
9190 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009191 .total_size = 4096,
9192 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01009193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
David Hendricks22e05322010-12-13 23:54:59 +00009194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009196 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009197 .block_erasers =
9198 {
9199 {
Stefan Tauner226037d2013-03-16 01:22:12 +00009200 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009201 .block_erase = spi_block_erase_20,
9202 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00009203 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009204 .block_erase = spi_block_erase_d8,
9205 }, {
9206 .eraseblocks = { {4 * 1024 * 1024, 1} },
9207 .block_erase = spi_block_erase_60,
9208 }, {
9209 .eraseblocks = { {4 * 1024 * 1024, 1} },
9210 .block_erase = spi_block_erase_c7,
9211 },
9212 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009213 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009214 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009215 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009216 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009217 .voltage = {2700, 3600},
9218 },
9219
9220 {
9221 .vendor = "Macronix",
9222 .name = "MX25L3205D/MX25L3208D",
9223 .bustype = BUS_SPI,
9224 .manufacture_id = MACRONIX_ID,
9225 .model_id = MACRONIX_MX25L3205,
9226 .total_size = 4096,
9227 .page_size = 256,
9228 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009229 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO,
Stefan Tauner226037d2013-03-16 01:22:12 +00009230 .tested = TEST_OK_PREW,
9231 .probe = probe_spi_rdid,
9232 .probe_timing = TIMING_ZERO,
9233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = { {4 * 1024, 1024} },
9237 .block_erase = spi_block_erase_20,
9238 }, {
9239 .eraseblocks = { {64 * 1024, 64} },
9240 .block_erase = spi_block_erase_d8,
9241 }, {
9242 .eraseblocks = { {4 * 1024 * 1024, 1} },
9243 .block_erase = spi_block_erase_60,
9244 }, {
9245 .eraseblocks = { {4 * 1024 * 1024, 1} },
9246 .block_erase = spi_block_erase_c7,
9247 },
9248 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009249 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009250 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009251 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009252 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009253 .voltage = {2700, 3600},
9254 },
9255
9256 {
9257 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009258 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00009259 .bustype = BUS_SPI,
9260 .manufacture_id = MACRONIX_ID,
9261 .model_id = MACRONIX_MX25L3205,
9262 .total_size = 4096,
9263 .page_size = 256,
9264 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT,
Stefan Tauner226037d2013-03-16 01:22:12 +00009266 .tested = TEST_OK_PREW,
9267 .probe = probe_spi_rdid,
9268 .probe_timing = TIMING_ZERO,
9269 .block_erasers =
9270 {
9271 {
9272 .eraseblocks = { {4 * 1024, 1024} },
9273 .block_erase = spi_block_erase_20,
9274 }, {
9275 .eraseblocks = { {64 * 1024, 64} },
9276 .block_erase = spi_block_erase_d8,
9277 }, {
9278 .eraseblocks = { {64 * 1024, 64} },
9279 .block_erase = spi_block_erase_52,
9280 }, {
9281 .eraseblocks = { {4 * 1024 * 1024, 1} },
9282 .block_erase = spi_block_erase_60,
9283 }, {
9284 .eraseblocks = { {4 * 1024 * 1024, 1} },
9285 .block_erase = spi_block_erase_c7,
9286 },
9287 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009288 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009289 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009290 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009291 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009292 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009293 },
9294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009295 {
9296 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009297 .name = "MX25L3235D",
9298 .bustype = BUS_SPI,
9299 .manufacture_id = MACRONIX_ID,
9300 .model_id = MACRONIX_MX25L3235D,
9301 .total_size = 4096,
9302 .page_size = 256,
9303 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
9305 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009306 .tested = TEST_UNTESTED,
9307 .probe = probe_spi_rdid,
9308 .probe_timing = TIMING_ZERO,
9309 .block_erasers =
9310 {
9311 {
9312 .eraseblocks = { {4 * 1024, 1024} },
9313 .block_erase = spi_block_erase_20,
9314 }, {
9315 .eraseblocks = { {64 * 1024, 64} },
9316 .block_erase = spi_block_erase_d8,
9317 }, {
9318 .eraseblocks = { {4 * 1024 * 1024, 1} },
9319 .block_erase = spi_block_erase_60,
9320 }, {
9321 .eraseblocks = { {4 * 1024 * 1024, 1} },
9322 .block_erase = spi_block_erase_c7,
9323 }
9324 },
Nico Huber46552c82024-03-27 01:18:12 +01009325 .reg_bits =
9326 {
9327 .qe = {STATUS1, 6, RW},
9328 },
9329 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009330 .unlock = spi_disable_blockprotect_bp3_srwd,
9331 .write = spi_chip_write_256,
9332 .read = spi_chip_read,
9333 .voltage = {2700, 3600},
9334 },
9335
9336 {
9337 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02009338 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009339 .bustype = BUS_SPI,
9340 .manufacture_id = MACRONIX_ID,
9341 .model_id = MACRONIX_MX25L3205,
9342 .total_size = 4096,
9343 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02009344 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009346 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009347 .probe = probe_spi_rdid,
9348 .probe_timing = TIMING_ZERO,
9349 .block_erasers =
9350 {
9351 {
9352 .eraseblocks = { {4 * 1024, 1024} },
9353 .block_erase = spi_block_erase_20,
9354 }, {
9355 .eraseblocks = { {32 * 1024, 128} },
9356 .block_erase = spi_block_erase_52,
9357 }, {
9358 .eraseblocks = { {64 * 1024, 64} },
9359 .block_erase = spi_block_erase_d8,
9360 }, {
9361 .eraseblocks = { {4 * 1024 * 1024, 1} },
9362 .block_erase = spi_block_erase_60,
9363 }, {
9364 .eraseblocks = { {4 * 1024 * 1024, 1} },
9365 .block_erase = spi_block_erase_c7,
9366 },
9367 },
Nico Huber46552c82024-03-27 01:18:12 +01009368 .reg_bits =
9369 {
9370 .qe = {STATUS1, 6, RW},
9371 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009372 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009373 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009374 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009375 .read = spi_chip_read,
Nico Huberb6683e02021-04-21 13:04:29 +02009376 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009377 },
9378
9379 {
9380 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009381 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009382 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009383 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009384 .model_id = MACRONIX_MX25L4005,
9385 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009386 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01009387 /* FEATURE_FAST_READ_DOUT: MX25L4006E */
9388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009389 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009391 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009392 .block_erasers =
9393 {
9394 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009395 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009396 .block_erase = spi_block_erase_20,
9397 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009398 .eraseblocks = { {64 * 1024, 8} },
9399 .block_erase = spi_block_erase_52,
9400 }, {
9401 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009402 .block_erase = spi_block_erase_d8,
9403 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009404 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009405 .block_erase = spi_block_erase_60,
9406 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009407 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009408 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009409 },
Sean Nelson54596372010-01-09 05:30:14 +00009410 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009411 .printlock = spi_prettyprint_status_register_bp2_srwd,
9412 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009413 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009414 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009415 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009416 },
9417
9418 {
9419 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009420 .name = "MX25L512(E)/MX25V512(C)",
9421 .bustype = BUS_SPI,
9422 .manufacture_id = MACRONIX_ID,
9423 .model_id = MACRONIX_MX25L512,
9424 .total_size = 64,
9425 .page_size = 256,
9426 /* MX25L512E supports SFDP */
Nico Huber46552c82024-03-27 01:18:12 +01009427 /* FEATURE_FAST_READ_DOUT: MX25L512E */
9428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009429 .tested = TEST_OK_PREW,
9430 .probe = probe_spi_rdid,
9431 .probe_timing = TIMING_ZERO,
9432 .block_erasers =
9433 {
9434 {
9435 .eraseblocks = { {4 * 1024, 16} },
9436 .block_erase = spi_block_erase_20,
9437 }, {
9438 .eraseblocks = { {64 * 1024, 1} },
9439 .block_erase = spi_block_erase_52,
9440 }, {
9441 .eraseblocks = { {64 * 1024, 1} },
9442 .block_erase = spi_block_erase_d8,
9443 }, {
9444 .eraseblocks = { {64 * 1024, 1} },
9445 .block_erase = spi_block_erase_60,
9446 }, {
9447 .eraseblocks = { {64 * 1024, 1} },
9448 .block_erase = spi_block_erase_c7,
9449 },
9450 },
9451 .printlock = spi_prettyprint_status_register_bp1_srwd,
9452 .unlock = spi_disable_blockprotect,
9453 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009454 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009455 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9456 },
9457
9458 {
9459 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009460 .name = "MX25L5121E",
9461 .bustype = BUS_SPI,
9462 .manufacture_id = MACRONIX_ID,
9463 .model_id = MACRONIX_MX25L5121E,
9464 .total_size = 64,
9465 .page_size = 32,
Nico Huber46552c82024-03-27 01:18:12 +01009466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009467 .tested = TEST_OK_PREW,
9468 .probe = probe_spi_rdid,
9469 .probe_timing = TIMING_ZERO,
9470 .block_erasers =
9471 {
9472 {
9473 .eraseblocks = { {4 * 1024, 16} },
9474 .block_erase = spi_block_erase_20,
9475 }, {
9476 .eraseblocks = { {64 * 1024, 1} },
9477 .block_erase = spi_block_erase_52,
9478 }, {
9479 .eraseblocks = { {64 * 1024, 1} },
9480 .block_erase = spi_block_erase_d8,
9481 }, {
9482 .eraseblocks = { {64 * 1024, 1} },
9483 .block_erase = spi_block_erase_60,
9484 }, {
9485 .eraseblocks = { {64 * 1024, 1} },
9486 .block_erase = spi_block_erase_c7,
9487 },
9488 },
9489 .printlock = spi_prettyprint_status_register_bp1_srwd,
9490 .unlock = spi_disable_blockprotect,
9491 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009492 .read = spi_chip_read,
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009493 .voltage = {2700, 3600},
9494 },
9495
9496 {
9497 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009498 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009499 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009500 .manufacture_id = MACRONIX_ID,
9501 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009502 .total_size = 8192,
9503 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009504 /* Has an additional 512B EEPROM sector */
9505 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009506 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009507 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009508 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009509 .block_erasers =
9510 {
9511 {
9512 .eraseblocks = { {64 * 1024, 128} },
9513 .block_erase = spi_block_erase_20,
9514 }, {
9515 .eraseblocks = { {64 * 1024, 128} },
9516 .block_erase = spi_block_erase_d8,
9517 }, {
9518 .eraseblocks = { {8 * 1024 * 1024, 1} },
9519 .block_erase = spi_block_erase_60,
9520 }, {
9521 .eraseblocks = { {8 * 1024 * 1024, 1} },
9522 .block_erase = spi_block_erase_c7,
9523 }
9524 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009525 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009526 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009527 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009528 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009529 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009530 },
9531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009532 {
9533 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009534 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009535 .bustype = BUS_SPI,
9536 .manufacture_id = MACRONIX_ID,
9537 .model_id = MACRONIX_MX25L6405,
9538 .total_size = 8192,
9539 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009540 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009541 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO,
Stefan Tauner226037d2013-03-16 01:22:12 +00009542 .tested = TEST_OK_PREW,
9543 .probe = probe_spi_rdid,
9544 .probe_timing = TIMING_ZERO,
9545 .block_erasers =
9546 {
9547 {
9548 .eraseblocks = { {4 * 1024, 2048} },
9549 .block_erase = spi_block_erase_20,
9550 }, {
9551 .eraseblocks = { {64 * 1024, 128} },
9552 .block_erase = spi_block_erase_d8,
9553 }, {
9554 .eraseblocks = { {8 * 1024 * 1024, 1} },
9555 .block_erase = spi_block_erase_60,
9556 }, {
9557 .eraseblocks = { {8 * 1024 * 1024, 1} },
9558 .block_erase = spi_block_erase_c7,
9559 }
9560 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009561 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009562 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009563 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009564 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009565 .voltage = {2700, 3600},
9566 },
9567
9568 {
9569 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009570 .name = "MX25L6406E/MX25L6408E",
9571 .bustype = BUS_SPI,
9572 .manufacture_id = MACRONIX_ID,
9573 .model_id = MACRONIX_MX25L6405,
9574 .total_size = 8192,
9575 .page_size = 256,
9576 /* MX25L6406E supports SFDP */
9577 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009579 .tested = TEST_OK_PREW,
9580 .probe = probe_spi_rdid,
9581 .probe_timing = TIMING_ZERO,
9582 .block_erasers =
9583 {
9584 {
9585 .eraseblocks = { {4 * 1024, 2048} },
9586 .block_erase = spi_block_erase_20,
9587 }, {
9588 .eraseblocks = { {64 * 1024, 128} },
9589 .block_erase = spi_block_erase_52,
9590 }, {
9591 .eraseblocks = { {64 * 1024, 128} },
9592 .block_erase = spi_block_erase_d8,
9593 }, {
9594 .eraseblocks = { {8 * 1024 * 1024, 1} },
9595 .block_erase = spi_block_erase_60,
9596 }, {
9597 .eraseblocks = { {8 * 1024 * 1024, 1} },
9598 .block_erase = spi_block_erase_c7,
9599 }
9600 },
9601 .printlock = spi_prettyprint_status_register_bp3_srwd,
9602 .unlock = spi_disable_blockprotect_bp3_srwd,
9603 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009604 .read = spi_chip_read,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009605 .voltage = {2700, 3600},
9606 },
9607
9608 {
9609 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009610 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009611 .bustype = BUS_SPI,
9612 .manufacture_id = MACRONIX_ID,
9613 .model_id = MACRONIX_MX25L6405,
9614 .total_size = 8192,
9615 .page_size = 256,
9616 /* supports SFDP */
9617 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009618 /* FEATURE_QIO: MX25L6473E, MX25L6473F */
9619 /* FEATURE_FAST_READ_DOUT, _QOUT: MX25L6436E */
9620 /* FEATURE_FAST_READ_DIO, _QIO: MX25L6445E, MX25L6465E */
9621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ,
Stefan Tauner226037d2013-03-16 01:22:12 +00009622 .tested = TEST_OK_PREW,
9623 .probe = probe_spi_rdid,
9624 .probe_timing = TIMING_ZERO,
9625 .block_erasers =
9626 {
9627 {
9628 .eraseblocks = { {4 * 1024, 2048} },
9629 .block_erase = spi_block_erase_20,
9630 }, {
9631 .eraseblocks = { {32 * 1024, 256} },
9632 .block_erase = spi_block_erase_52,
9633 }, {
9634 .eraseblocks = { {64 * 1024, 128} },
9635 .block_erase = spi_block_erase_d8,
9636 }, {
9637 .eraseblocks = { {8 * 1024 * 1024, 1} },
9638 .block_erase = spi_block_erase_60,
9639 }, {
9640 .eraseblocks = { {8 * 1024 * 1024, 1} },
9641 .block_erase = spi_block_erase_c7,
9642 }
9643 },
Nico Huber46552c82024-03-27 01:18:12 +01009644 .reg_bits =
9645 {
9646 .qe = {STATUS1, 6, RW},
9647 },
9648 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009649 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009650 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009651 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009652 .voltage = {2700, 3600},
9653 },
9654
9655 {
9656 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009657 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009658 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009659 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009660 .model_id = MACRONIX_MX25L6495F,
9661 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009662 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009663 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009665 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009667 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009668 .block_erasers =
9669 {
9670 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009671 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009672 .block_erase = spi_block_erase_20,
9673 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009674 .eraseblocks = { {32 * 1024, 256} },
9675 .block_erase = spi_block_erase_52,
9676 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309677 .eraseblocks = { {64 * 1024, 128} },
9678 .block_erase = spi_block_erase_d8,
9679 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009680 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009681 .block_erase = spi_block_erase_60,
9682 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009683 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009684 .block_erase = spi_block_erase_c7,
9685 }
9686 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009687 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009688 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009689 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009690 .voltage = {2700, 3600},
9691 },
9692
9693 {
9694 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009695 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009696 .bustype = BUS_SPI,
9697 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009698 .model_id = MACRONIX_MX25L8005,
9699 .total_size = 1024,
9700 .page_size = 256,
9701 /* MX25L8006E, MX25L8008E support SFDP */
9702 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
Nico Huber46552c82024-03-27 01:18:12 +01009703 /* FEATURE_FAST_READ_DOUT: MX25L8006E, MX25L8008E */
9704 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009705 .tested = TEST_OK_PREW,
9706 .probe = probe_spi_rdid,
9707 .probe_timing = TIMING_ZERO,
9708 .block_erasers =
9709 {
9710 {
9711 .eraseblocks = { {4 * 1024, 256} },
9712 .block_erase = spi_block_erase_20,
9713 }, {
9714 .eraseblocks = { {64 * 1024, 16} },
9715 .block_erase = spi_block_erase_52,
9716 }, {
9717 .eraseblocks = { {64 * 1024, 16} },
9718 .block_erase = spi_block_erase_d8,
9719 }, {
9720 .eraseblocks = { {1024 * 1024, 1} },
9721 .block_erase = spi_block_erase_60,
9722 }, {
9723 .eraseblocks = { {1024 * 1024, 1} },
9724 .block_erase = spi_block_erase_c7,
9725 },
9726 },
9727 .printlock = spi_prettyprint_status_register_bp2_srwd,
9728 .unlock = spi_disable_blockprotect,
9729 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009730 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009731 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9732 },
9733
9734 {
9735 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009736 .name = "MX25R3235F",
9737 .bustype = BUS_SPI,
9738 .manufacture_id = MACRONIX_ID,
9739 .model_id = MACRONIX_MX25R3235F,
9740 .total_size = 4096,
9741 .page_size = 256,
9742 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Nico Huber5f509992024-03-27 01:18:12 +01009743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
sibradzicf62623c2020-03-14 17:21:34 +09009744 .tested = TEST_OK_PREW,
9745 .probe = probe_spi_rdid,
9746 .probe_timing = TIMING_ZERO,
9747 .block_erasers =
9748 {
9749 {
9750 .eraseblocks = { {4 * 1024, 1024} },
9751 .block_erase = spi_block_erase_20,
9752 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009753 .eraseblocks = { {32 * 1024, 128} },
9754 .block_erase = spi_block_erase_52,
9755 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309756 .eraseblocks = { {64 * 1024, 64} },
9757 .block_erase = spi_block_erase_d8,
9758 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009759 .eraseblocks = { {4 * 1024 * 1024, 1} },
9760 .block_erase = spi_block_erase_60,
9761 }, {
9762 .eraseblocks = { {4 * 1024 * 1024, 1} },
9763 .block_erase = spi_block_erase_c7,
9764 }
9765 },
Nico Huber5f509992024-03-27 01:18:12 +01009766 .reg_bits =
9767 {
9768 .qe = {STATUS1, 6, RW},
9769 },
9770 .printlock = spi_prettyprint_status_register_bp3_srwd,
sibradzicf62623c2020-03-14 17:21:34 +09009771 .unlock = spi_disable_blockprotect_bp3_srwd,
9772 .write = spi_chip_write_256,
Nico Huber5f509992024-03-27 01:18:12 +01009773 .read = spi_chip_read,
sibradzicf62623c2020-03-14 17:21:34 +09009774 .voltage = {1650, 3600},
9775 },
9776
9777 {
9778 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009779 .name = "MX25R6435F",
9780 .bustype = BUS_SPI,
9781 .manufacture_id = MACRONIX_ID,
9782 .model_id = MACRONIX_MX25R6435F,
9783 .total_size = 8192,
9784 .page_size = 256,
9785 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Nico Huber5f509992024-03-27 01:18:12 +01009786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009787 .tested = TEST_OK_PREW,
9788 .probe = probe_spi_rdid,
9789 .probe_timing = TIMING_ZERO,
9790 .block_erasers =
9791 {
9792 {
9793 .eraseblocks = { {4 * 1024, 2048} },
9794 .block_erase = spi_block_erase_20,
9795 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009796 .eraseblocks = { {32 * 1024, 256} },
9797 .block_erase = spi_block_erase_52,
9798 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309799 .eraseblocks = { {64 * 1024, 128} },
9800 .block_erase = spi_block_erase_d8,
9801 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009802 .eraseblocks = { {8 * 1024 * 1024, 1} },
9803 .block_erase = spi_block_erase_60,
9804 }, {
9805 .eraseblocks = { {8 * 1024 * 1024, 1} },
9806 .block_erase = spi_block_erase_c7,
9807 }
9808 },
Nico Huber5f509992024-03-27 01:18:12 +01009809 .reg_bits =
9810 {
9811 .qe = {STATUS1, 6, RW},
9812 },
9813 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009814 .unlock = spi_disable_blockprotect_bp3_srwd,
9815 .write = spi_chip_write_256,
Nico Huber5f509992024-03-27 01:18:12 +01009816 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009817 .voltage = {1650, 3600},
9818 },
9819
9820 {
9821 .vendor = "Macronix",
9822 .name = "MX25U12835F",
9823 .bustype = BUS_SPI,
9824 .manufacture_id = MACRONIX_ID,
9825 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009826 .total_size = 16384,
9827 .page_size = 256,
9828 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_35,
9830 .dummy_cycles =
9831 {
9832 /* 133MHz version has configuration register
9833 bit to toggle 8 dummy cycles for QIO, defaults: */
9834 .qpi_fast_read = 4,
9835 .qpi_fast_read_qio = 6,
9836 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009837 .tested = TEST_OK_PREW,
9838 .probe = probe_spi_rdid,
9839 .probe_timing = TIMING_ZERO,
9840 .block_erasers =
9841 {
9842 {
9843 .eraseblocks = { {4 * 1024, 4096} },
9844 .block_erase = spi_block_erase_20,
9845 }, {
9846 .eraseblocks = { {32 * 1024, 512} },
9847 .block_erase = spi_block_erase_52,
9848 }, {
9849 .eraseblocks = { {64 * 1024, 256} },
9850 .block_erase = spi_block_erase_d8,
9851 }, {
9852 .eraseblocks = { {16 * 1024 * 1024, 1} },
9853 .block_erase = spi_block_erase_60,
9854 }, {
9855 .eraseblocks = { {16 * 1024 * 1024, 1} },
9856 .block_erase = spi_block_erase_c7,
9857 }
9858 },
Angel Ponsf112e242018-09-30 20:14:17 +02009859 /* TODO: security register */
9860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9861 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009862 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009863 .read = spi_chip_read,
Angel Ponsf112e242018-09-30 20:14:17 +02009864 .voltage = {1650, 2000},
9865 },
9866
9867 {
9868 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009869 .name = "MX25U1635E",
9870 .bustype = BUS_SPI,
9871 .manufacture_id = MACRONIX_ID,
9872 .model_id = MACRONIX_MX25U1635E,
9873 .total_size = 2048,
9874 .page_size = 256,
9875 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9877 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9878 .dummy_cycles =
9879 {
9880 .qpi_fast_read = 4,
9881 .qpi_fast_read_qio = 6,
9882 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009883 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009884 .probe = probe_spi_rdid,
9885 .probe_timing = TIMING_ZERO,
9886 .block_erasers =
9887 {
9888 {
9889 .eraseblocks = { {4 * 1024, 512} },
9890 .block_erase = spi_block_erase_20,
9891 }, {
9892 .eraseblocks = { {32 * 1024, 64} },
9893 .block_erase = spi_block_erase_52,
9894 }, {
9895 .eraseblocks = { {64 * 1024, 32} },
9896 .block_erase = spi_block_erase_d8,
9897 }, {
9898 .eraseblocks = { {2 * 1024 * 1024, 1} },
9899 .block_erase = spi_block_erase_60,
9900 }, {
9901 .eraseblocks = { {2 * 1024 * 1024, 1} },
9902 .block_erase = spi_block_erase_c7,
9903 }
9904 },
9905 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009906 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009907 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009908 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009909 .read = spi_chip_read,
Vincent Palatinf800f552013-03-15 02:03:16 +00009910 .voltage = {1650, 2000},
9911 },
9912
9913 {
9914 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009915 .name = "MX25U25635F",
9916 .bustype = BUS_SPI,
9917 .manufacture_id = MACRONIX_ID,
9918 .model_id = MACRONIX_MX25U25635F,
9919 .total_size = 32768,
9920 .page_size = 256,
9921 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9923 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9924 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009925 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009926 .probe = probe_spi_rdid,
9927 .probe_timing = TIMING_ZERO,
9928 .block_erasers =
9929 {
9930 {
9931 .eraseblocks = { {4 * 1024, 8192} },
9932 .block_erase = spi_block_erase_21,
9933 }, {
9934 .eraseblocks = { {4 * 1024, 8192} },
9935 .block_erase = spi_block_erase_20,
9936 }, {
9937 .eraseblocks = { {32 * 1024, 1024} },
9938 .block_erase = spi_block_erase_5c,
9939 }, {
9940 .eraseblocks = { {32 * 1024, 1024} },
9941 .block_erase = spi_block_erase_52,
9942 }, {
9943 .eraseblocks = { {64 * 1024, 512} },
9944 .block_erase = spi_block_erase_dc,
9945 }, {
9946 .eraseblocks = { {64 * 1024, 512} },
9947 .block_erase = spi_block_erase_d8,
9948 }, {
9949 .eraseblocks = { {32 * 1024 * 1024, 1} },
9950 .block_erase = spi_block_erase_60,
9951 }, {
9952 .eraseblocks = { {32 * 1024 * 1024, 1} },
9953 .block_erase = spi_block_erase_c7,
9954 }
9955 },
9956 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +01009957 .reg_bits =
9958 {
9959 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9960 },
David Tomaschikf75d8c52019-06-20 09:49:01 -07009961 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9962 .unlock = spi_disable_blockprotect_bp3_srwd,
9963 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009964 .read = spi_chip_read,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009965 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009966 .prepare_access = spi_prepare_4ba,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009967 },
9968
9969 {
9970 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009971 .name = "MX25U3235E/F",
9972 .bustype = BUS_SPI,
9973 .manufacture_id = MACRONIX_ID,
9974 .model_id = MACRONIX_MX25U3235E,
9975 .total_size = 4096,
9976 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009977 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009978 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9980 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9981 .dummy_cycles =
9982 {
9983 .qpi_fast_read = 4,
9984 .qpi_fast_read_qio = 6,
9985 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009986 .tested = TEST_OK_PREW,
9987 .probe = probe_spi_rdid,
9988 .probe_timing = TIMING_ZERO,
9989 .block_erasers =
9990 {
9991 {
9992 .eraseblocks = { {4 * 1024, 1024} },
9993 .block_erase = spi_block_erase_20,
9994 }, {
9995 .eraseblocks = { {32 * 1024, 128} },
9996 .block_erase = spi_block_erase_52,
9997 }, {
9998 .eraseblocks = { {64 * 1024, 64} },
9999 .block_erase = spi_block_erase_d8,
10000 }, {
10001 .eraseblocks = { {4 * 1024 * 1024, 1} },
10002 .block_erase = spi_block_erase_60,
10003 }, {
10004 .eraseblocks = { {4 * 1024 * 1024, 1} },
10005 .block_erase = spi_block_erase_c7,
10006 }
10007 },
10008 /* TODO: security register */
10009 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10010 .unlock = spi_disable_blockprotect_bp3_srwd,
10011 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010012 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010013 .voltage = {1650, 2000},
10014 },
10015
10016 {
10017 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010018 .name = "MX25U51245G",
10019 .bustype = BUS_SPI,
10020 .manufacture_id = MACRONIX_ID,
10021 .model_id = MACRONIX_MX25U51245G,
10022 .total_size = 65536,
10023 .page_size = 256,
10024 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +010010025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
10026 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
10027 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010028 .tested = TEST_OK_PREW,
10029 .probe = probe_spi_rdid,
10030 .probe_timing = TIMING_ZERO,
10031 .block_erasers =
10032 {
10033 {
10034 .eraseblocks = { {4 * 1024, 16384} },
10035 .block_erase = spi_block_erase_21,
10036 }, {
10037 .eraseblocks = { {4 * 1024, 16384} },
10038 .block_erase = spi_block_erase_20,
10039 }, {
10040 .eraseblocks = { {32 * 1024, 2048} },
10041 .block_erase = spi_block_erase_5c,
10042 }, {
10043 .eraseblocks = { {32 * 1024, 2048} },
10044 .block_erase = spi_block_erase_52,
10045 }, {
10046 .eraseblocks = { {64 * 1024, 1024} },
10047 .block_erase = spi_block_erase_dc,
10048 }, {
10049 .eraseblocks = { {64 * 1024, 1024} },
10050 .block_erase = spi_block_erase_d8,
10051 }, {
10052 .eraseblocks = { {64 * 1024 * 1024, 1} },
10053 .block_erase = spi_block_erase_60,
10054 }, {
10055 .eraseblocks = { {64 * 1024 * 1024, 1} },
10056 .block_erase = spi_block_erase_c7,
10057 }
10058 },
10059 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +010010060 .reg_bits =
10061 {
10062 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
10063 },
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010064 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10065 .unlock = spi_disable_blockprotect_bp3_srwd,
10066 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +010010067 .read = spi_chip_read,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010068 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010010069 .prepare_access = spi_prepare_4ba,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010070 },
10071
10072 {
10073 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010074 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010075 .bustype = BUS_SPI,
10076 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010077 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010078 .total_size = 8192,
10079 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010080 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +100010081 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +010010082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
10083 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
10084 .dummy_cycles =
10085 {
10086 .qpi_fast_read = 4,
10087 .qpi_fast_read_qio = 6,
10088 },
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010089 .tested = TEST_OK_PREW,
10090 .probe = probe_spi_rdid,
10091 .probe_timing = TIMING_ZERO,
10092 .block_erasers =
10093 {
10094 {
10095 .eraseblocks = { {4 * 1024, 2048} },
10096 .block_erase = spi_block_erase_20,
10097 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010098 .eraseblocks = { {32 * 1024, 256} },
10099 .block_erase = spi_block_erase_52,
10100 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010101 .eraseblocks = { {64 * 1024, 128} },
10102 .block_erase = spi_block_erase_d8,
10103 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010104 .eraseblocks = { {8 * 1024 * 1024, 1} },
10105 .block_erase = spi_block_erase_60,
10106 }, {
10107 .eraseblocks = { {8 * 1024 * 1024, 1} },
10108 .block_erase = spi_block_erase_c7,
10109 }
10110 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010111 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010112 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10113 .unlock = spi_disable_blockprotect_bp3_srwd,
10114 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010115 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010116 .voltage = {1650, 2000},
10117 },
10118
10119 {
10120 .vendor = "Macronix",
10121 .name = "MX25U8032E",
10122 .bustype = BUS_SPI,
10123 .manufacture_id = MACRONIX_ID,
10124 .model_id = MACRONIX_MX25U8032E,
10125 .total_size = 1024,
10126 .page_size = 256,
10127 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10128 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10129 .tested = TEST_OK_PREW,
10130 .probe = probe_spi_rdid,
10131 .probe_timing = TIMING_ZERO,
10132 .block_erasers =
10133 {
10134 {
10135 .eraseblocks = { {4 * 1024, 256} },
10136 .block_erase = spi_block_erase_20,
10137 }, {
10138 .eraseblocks = { {32 * 1024, 32} },
10139 .block_erase = spi_block_erase_52,
10140 }, {
10141 .eraseblocks = { {64 * 1024, 16} },
10142 .block_erase = spi_block_erase_d8,
10143 }, {
10144 .eraseblocks = { {1024 * 1024, 1} },
10145 .block_erase = spi_block_erase_60,
10146 }, {
10147 .eraseblocks = { {1024 * 1024, 1} },
10148 .block_erase = spi_block_erase_c7,
10149 }
10150 },
10151 /* TODO: security register */
10152 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10153 .unlock = spi_disable_blockprotect_bp3_srwd,
10154 .write = spi_chip_write_256,
10155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10156 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010157 },
10158
10159 {
10160 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +000010161 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010162 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010163 .manufacture_id = MACRONIX_ID,
10164 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010165 .total_size = 128,
10166 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010167 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10168 .tested = TEST_UNTESTED,
10169 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010170 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010171 .block_erasers =
10172 {
10173 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010174 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010175 {8 * 1024, 1},
10176 {4 * 1024, 2},
10177 {8 * 1024, 2},
10178 {32 * 1024, 1},
10179 {64 * 1024, 1},
10180 },
Sean Nelson35727f72010-01-28 23:55:12 +000010181 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010182 }, {
10183 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010184 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010185 }
10186 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010187 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010189 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010190 .prepare_access = prepare_memory_access,
10191 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010192 },
10193
10194 {
10195 .vendor = "Macronix",
10196 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010197 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010198 .manufacture_id = MACRONIX_ID,
10199 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010200 .total_size = 128,
10201 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010202 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +000010203 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010204 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010205 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010206 .block_erasers =
10207 {
10208 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010209 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010210 {64 * 1024, 1},
10211 {32 * 1024, 1},
10212 {8 * 1024, 2},
10213 {4 * 1024, 2},
10214 {8 * 1024, 1},
10215 },
Sean Nelson35727f72010-01-28 23:55:12 +000010216 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010217 }, {
10218 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010219 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010220 }
10221 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010222 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010224 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010225 .prepare_access = prepare_memory_access,
10226 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010227 },
10228
10229 {
10230 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010231 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010232 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010233 .manufacture_id = MACRONIX_ID,
10234 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010235 .total_size = 256,
10236 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010237 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010238 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010239 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010240 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010241 .block_erasers =
10242 {
10243 {
10244 .eraseblocks = {
10245 {16 * 1024, 1},
10246 {8 * 1024, 2},
10247 {32 * 1024, 1},
10248 {64 * 1024, 3},
10249 },
Sean Nelson35727f72010-01-28 23:55:12 +000010250 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010251 }, {
10252 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010253 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010254 },
10255 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010256 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010258 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010259 .prepare_access = prepare_memory_access,
10260 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010261 },
10262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010263 {
10264 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010265 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010266 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010267 .manufacture_id = MACRONIX_ID,
10268 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010269 .total_size = 256,
10270 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010272 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010273 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010274 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010275 .block_erasers =
10276 {
10277 {
10278 .eraseblocks = {
10279 {64 * 1024, 3},
10280 {32 * 1024, 1},
10281 {8 * 1024, 2},
10282 {16 * 1024, 1},
10283 },
Sean Nelson35727f72010-01-28 23:55:12 +000010284 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010285 }, {
10286 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010287 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010288 },
10289 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010290 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010292 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010293 .prepare_access = prepare_memory_access,
10294 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010295 },
10296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010297 {
10298 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +000010299 .name = "MX29F022(N)B",
10300 .bustype = BUS_PARALLEL,
10301 .manufacture_id = MACRONIX_ID,
10302 .model_id = MACRONIX_MX29F022B,
10303 .total_size = 256,
10304 .page_size = 0, /* unused */
10305 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10306 .tested = TEST_UNTESTED,
10307 .probe = probe_jedec,
10308 .probe_timing = TIMING_ZERO,
10309 .block_erasers =
10310 {
10311 {
10312 .eraseblocks = {
10313 {16 * 1024, 1},
10314 {8 * 1024, 2},
10315 {32 * 1024, 1},
10316 {64 * 1024, 3},
10317 },
10318 .block_erase = erase_sector_jedec,
10319 }, {
10320 .eraseblocks = { {256 * 1024, 1} },
10321 .block_erase = erase_chip_block_jedec,
10322 }
10323 },
10324 .write = write_jedec_1,
10325 .read = read_memmapped,
10326 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010327 .prepare_access = prepare_memory_access,
10328 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010329 },
10330
10331 {
10332 .vendor = "Macronix",
10333 .name = "MX29F022(N)T",
10334 .bustype = BUS_PARALLEL,
10335 .manufacture_id = MACRONIX_ID,
10336 .model_id = MACRONIX_MX29F022T,
10337 .total_size = 256,
10338 .page_size = 0, /* unused */
10339 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10340 .tested = TEST_OK_PREW,
10341 .probe = probe_jedec,
10342 .probe_timing = TIMING_ZERO,
10343 .block_erasers =
10344 {
10345 {
10346 .eraseblocks = {
10347 {64 * 1024, 3},
10348 {32 * 1024, 1},
10349 {8 * 1024, 2},
10350 {16 * 1024, 1},
10351 },
10352 .block_erase = erase_sector_jedec,
10353 }, {
10354 .eraseblocks = { {256 * 1024, 1} },
10355 .block_erase = erase_chip_block_jedec,
10356 }
10357 },
10358 .write = write_jedec_1,
10359 .read = read_memmapped,
10360 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010361 .prepare_access = prepare_memory_access,
10362 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010363 },
10364
10365 {
10366 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +000010367 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010368 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +000010369 .manufacture_id = MACRONIX_ID,
10370 .model_id = MACRONIX_MX29F040,
10371 .total_size = 512,
10372 .page_size = 64 * 1024,
10373 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10374 .tested = TEST_UNTESTED,
10375 .probe = probe_jedec,
10376 .probe_timing = TIMING_ZERO,
10377 .block_erasers =
10378 {
10379 {
10380 .eraseblocks = { {64 * 1024, 8} },
10381 .block_erase = erase_sector_jedec,
10382 }, {
10383 .eraseblocks = { {512 * 1024, 1} },
10384 .block_erase = erase_chip_block_jedec,
10385 },
10386 },
10387 .write = write_jedec_1,
10388 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010389 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010390 .prepare_access = prepare_memory_access,
10391 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +000010392 },
10393
10394 {
10395 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010396 .name = "MX29GL128F",
10397 .bustype = BUS_PARALLEL,
10398 .manufacture_id = MACRONIX_ID,
10399 .model_id = MACRONIX_MX29GL128F,
10400 .total_size = 16384,
10401 .page_size = 128 * 1024, /* actual page size is 16 */
10402 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10403 .tested = TEST_UNTESTED,
10404 .probe = probe_jedec_29gl,
10405 .probe_timing = TIMING_ZERO,
10406 .block_erasers =
10407 {
10408 {
10409 .eraseblocks = { {128 * 1024, 128} },
10410 .block_erase = erase_sector_jedec,
10411 }, {
10412 .eraseblocks = { {16 * 1024 * 1024, 1} },
10413 .block_erase = erase_chip_block_jedec,
10414 },
10415 },
10416 .write = write_jedec_1,
10417 .read = read_memmapped,
10418 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010419 .prepare_access = prepare_memory_access,
10420 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010421 },
10422
10423 {
10424 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010425 .name = "MX29GL320EB",
10426 .bustype = BUS_PARALLEL,
10427 .manufacture_id = MACRONIX_ID,
10428 .model_id = MACRONIX_MX29GL320EB,
10429 .total_size = 4096,
10430 .page_size = 128 * 1024, /* actual page size is 16 */
10431 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10432 .tested = TEST_UNTESTED,
10433 .probe = probe_jedec_29gl,
10434 .probe_timing = TIMING_ZERO,
10435 .block_erasers =
10436 {
10437 {
10438 .eraseblocks = {
10439 {8 * 1024, 8},
10440 {64 * 1024, 63},
10441 },
10442 .block_erase = erase_sector_jedec,
10443 }, {
10444 .eraseblocks = { {4 * 1024 * 1024, 1} },
10445 .block_erase = erase_chip_block_jedec,
10446 },
10447 },
10448 .write = write_jedec_1,
10449 .read = read_memmapped,
10450 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010451 .prepare_access = prepare_memory_access,
10452 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010453 },
10454
10455 {
10456 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010457 .name = "MX29GL320EH/L",
10458 .bustype = BUS_PARALLEL,
10459 .manufacture_id = MACRONIX_ID,
10460 .model_id = MACRONIX_MX29GL320EHL,
10461 .total_size = 4096,
10462 .page_size = 128 * 1024, /* actual page size is 16 */
10463 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10464 .tested = TEST_UNTESTED,
10465 .probe = probe_jedec_29gl,
10466 .probe_timing = TIMING_ZERO,
10467 .block_erasers =
10468 {
10469 {
10470 .eraseblocks = { {64 * 1024, 64} },
10471 .block_erase = erase_sector_jedec,
10472 }, {
10473 .eraseblocks = { {4 * 1024 * 1024, 1} },
10474 .block_erase = erase_chip_block_jedec,
10475 },
10476 },
10477 .write = write_jedec_1,
10478 .read = read_memmapped,
10479 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010480 .prepare_access = prepare_memory_access,
10481 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010482 },
10483
10484 {
10485 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010486 .name = "MX29GL320ET",
10487 .bustype = BUS_PARALLEL,
10488 .manufacture_id = MACRONIX_ID,
10489 .model_id = MACRONIX_MX29GL320ET,
10490 .total_size = 4096,
10491 .page_size = 128 * 1024, /* actual page size is 16 */
10492 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10493 .tested = TEST_UNTESTED,
10494 .probe = probe_jedec_29gl,
10495 .probe_timing = TIMING_ZERO,
10496 .block_erasers =
10497 {
10498 {
10499 .eraseblocks = {
10500 {64 * 1024, 63},
10501 {8 * 1024, 8},
10502 },
10503 .block_erase = erase_sector_jedec,
10504 }, {
10505 .eraseblocks = { {4 * 1024 * 1024, 1} },
10506 .block_erase = erase_chip_block_jedec,
10507 },
10508 },
10509 .write = write_jedec_1,
10510 .read = read_memmapped,
10511 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010512 .prepare_access = prepare_memory_access,
10513 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010514 },
10515
10516 {
10517 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010518 .name = "MX29GL640EB",
10519 .bustype = BUS_PARALLEL,
10520 .manufacture_id = MACRONIX_ID,
10521 .model_id = MACRONIX_MX29GL640EB,
10522 .total_size = 8192,
10523 .page_size = 128 * 1024, /* actual page size is 16 */
10524 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10525 .tested = TEST_UNTESTED,
10526 .probe = probe_jedec_29gl,
10527 .probe_timing = TIMING_ZERO,
10528 .block_erasers =
10529 {
10530 {
10531 .eraseblocks = {
10532 {8 * 1024, 8},
10533 {64 * 1024, 127},
10534 },
10535 .block_erase = erase_sector_jedec,
10536 }, {
10537 .eraseblocks = { {8 * 1024 * 1024, 1} },
10538 .block_erase = erase_chip_block_jedec,
10539 },
10540 },
10541 .write = write_jedec_1,
10542 .read = read_memmapped,
10543 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010544 .prepare_access = prepare_memory_access,
10545 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010546 },
10547
10548 {
10549 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010550 .name = "MX29GL640EH/L",
10551 .bustype = BUS_PARALLEL,
10552 .manufacture_id = MACRONIX_ID,
10553 .model_id = MACRONIX_MX29GL640EHL,
10554 .total_size = 8192,
10555 .page_size = 128 * 1024, /* actual page size is 16 */
10556 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10557 .tested = TEST_UNTESTED,
10558 .probe = probe_jedec_29gl,
10559 .probe_timing = TIMING_ZERO,
10560 .block_erasers =
10561 {
10562 {
10563 .eraseblocks = { {64 * 1024, 128} },
10564 .block_erase = erase_sector_jedec,
10565 }, {
10566 .eraseblocks = { {8 * 1024 * 1024, 1} },
10567 .block_erase = erase_chip_block_jedec,
10568 },
10569 },
10570 .write = write_jedec_1,
10571 .read = read_memmapped,
10572 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010573 .prepare_access = prepare_memory_access,
10574 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010575 },
10576
10577 {
10578 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010579 .name = "MX29GL640ET",
10580 .bustype = BUS_PARALLEL,
10581 .manufacture_id = MACRONIX_ID,
10582 .model_id = MACRONIX_MX29GL640ET,
10583 .total_size = 8192,
10584 .page_size = 128 * 1024, /* actual page size is 16 */
10585 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10586 .tested = TEST_UNTESTED,
10587 .probe = probe_jedec_29gl,
10588 .probe_timing = TIMING_ZERO,
10589 .block_erasers =
10590 {
10591 {
10592 .eraseblocks = {
10593 {64 * 1024, 127},
10594 {8 * 1024, 8},
10595 },
10596 .block_erase = erase_sector_jedec,
10597 }, {
10598 .eraseblocks = { {8 * 1024 * 1024, 1} },
10599 .block_erase = erase_chip_block_jedec,
10600 },
10601 },
10602 .write = write_jedec_1,
10603 .read = read_memmapped,
10604 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010605 .prepare_access = prepare_memory_access,
10606 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010607 },
10608
10609 {
10610 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010611 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010612 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010613 .manufacture_id = MACRONIX_ID,
10614 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010615 .total_size = 512,
10616 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010617 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10618 .tested = TEST_UNTESTED,
10619 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010620 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010621 .block_erasers =
10622 {
10623 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010624 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010625 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010626 }, {
10627 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010628 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010629 },
10630 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010631 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010632 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010633 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010634 .prepare_access = prepare_memory_access,
10635 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010636 },
10637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010638 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010639 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010640 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010641 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010642 .manufacture_id = MACRONIX_ID,
10643 .model_id = MACRONIX_MX66L51235F,
10644 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010645 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010646 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010648 .tested = TEST_OK_PREW,
10649 .probe = probe_spi_rdid,
10650 .probe_timing = TIMING_ZERO,
10651 .block_erasers =
10652 {
10653 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010654 .eraseblocks = { {4 * 1024, 16384} },
10655 .block_erase = spi_block_erase_21,
10656 }, {
10657 .eraseblocks = { {4 * 1024, 16384} },
10658 .block_erase = spi_block_erase_20,
10659 }, {
10660 .eraseblocks = { {32 * 1024, 2048} },
10661 .block_erase = spi_block_erase_5c,
10662 }, {
10663 .eraseblocks = { {32 * 1024, 2048} },
10664 .block_erase = spi_block_erase_52,
10665 }, {
10666 .eraseblocks = { {64 * 1024, 1024} },
10667 .block_erase = spi_block_erase_dc,
10668 }, {
10669 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010670 .block_erase = spi_block_erase_d8,
10671 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010672 .eraseblocks = { {64 * 1024 * 1024, 1} },
10673 .block_erase = spi_block_erase_60,
10674 }, {
10675 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010676 .block_erase = spi_block_erase_c7,
10677 }
10678 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010679 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10680 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010681 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010682 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010683 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010684 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010685 .prepare_access = spi_prepare_4ba,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010686 },
10687
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010688 {
10689 .vendor = "Macronix",
10690 .name = "MX66L1G45G",
10691 .bustype = BUS_SPI,
10692 .manufacture_id = MACRONIX_ID,
10693 .model_id = MACRONIX_MX66L1G45G,
10694 .total_size = 131072,
10695 .page_size = 256,
10696 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10698 .tested = TEST_OK_PREW,
10699 .probe = probe_spi_rdid,
10700 .probe_timing = TIMING_ZERO,
10701 .block_erasers =
10702 {
10703 {
10704 .eraseblocks = { {4 * 1024, 32768} },
10705 .block_erase = spi_block_erase_21,
10706 }, {
10707 .eraseblocks = { {4 * 1024, 32768} },
10708 .block_erase = spi_block_erase_20,
10709 }, {
10710 .eraseblocks = { {32 * 1024, 4096} },
10711 .block_erase = spi_block_erase_5c,
10712 }, {
10713 .eraseblocks = { {32 * 1024, 4096} },
10714 .block_erase = spi_block_erase_52,
10715 }, {
10716 .eraseblocks = { {64 * 1024, 2048} },
10717 .block_erase = spi_block_erase_dc,
10718 }, {
10719 .eraseblocks = { {64 * 1024, 2048} },
10720 .block_erase = spi_block_erase_d8,
10721 }, {
10722 .eraseblocks = { {128 * 1024 * 1024, 1} },
10723 .block_erase = spi_block_erase_60,
10724 }, {
10725 .eraseblocks = { {128 * 1024 * 1024, 1} },
10726 .block_erase = spi_block_erase_c7,
10727 }
10728 },
10729 /* TODO: security register and SBLK/SBULK, configuration register */
10730 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10731 .unlock = spi_disable_blockprotect_bp3_srwd,
10732 .write = spi_chip_write_256,
10733 .read = spi_chip_read, /* Fast read (0x0B) supported */
10734 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010735 .prepare_access = spi_prepare_4ba,
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010736 },
10737
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010738 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10739 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10740 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10741 * only is successful if RDID does not work.
10742 */
10743 {
10744 .vendor = "Micron/Numonyx/ST",
10745 .name = "M25P05",
10746 .bustype = BUS_SPI,
10747 .manufacture_id = 0, /* Not used. */
10748 .model_id = ST_M25P05_RES,
10749 .total_size = 64,
10750 .page_size = 256,
10751 .feature_bits = FEATURE_WRSR_WREN,
10752 .tested = TEST_UNTESTED,
10753 .probe = probe_spi_res1,
10754 .probe_timing = TIMING_ZERO,
10755 .block_erasers =
10756 {
10757 {
10758 .eraseblocks = { {32 * 1024, 2} },
10759 .block_erase = spi_block_erase_d8,
10760 }, {
10761 .eraseblocks = { {64 * 1024, 1} },
10762 .block_erase = spi_block_erase_c7,
10763 }
10764 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010765 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010766 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010767 .write = spi_chip_write_1, /* 128 */
10768 .read = spi_chip_read,
10769 .voltage = {2700, 3600},
10770 },
10771
10772 {
10773 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010774 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010775 .bustype = BUS_SPI,
10776 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010777 .model_id = ST_M25P05A,
10778 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010779 .page_size = 256,
10780 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010781 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010782 .probe = probe_spi_rdid,
10783 .probe_timing = TIMING_ZERO,
10784 .block_erasers =
10785 {
10786 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010787 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010788 .block_erase = spi_block_erase_d8,
10789 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010790 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010791 .block_erase = spi_block_erase_c7,
10792 }
10793 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010794 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010795 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010796 .write = spi_chip_write_256,
10797 .read = spi_chip_read,
10798 .voltage = {2700, 3600},
10799 },
10800
10801 /* The ST M25P10 has the same problem as the M25P05. */
10802 {
10803 .vendor = "Micron/Numonyx/ST",
10804 .name = "M25P10",
10805 .bustype = BUS_SPI,
10806 .manufacture_id = 0, /* Not used. */
10807 .model_id = ST_M25P10_RES,
10808 .total_size = 128,
10809 .page_size = 256,
10810 .feature_bits = FEATURE_WRSR_WREN,
10811 .tested = TEST_UNTESTED,
10812 .probe = probe_spi_res1,
10813 .probe_timing = TIMING_ZERO,
10814 .block_erasers =
10815 {
10816 {
10817 .eraseblocks = { {32 * 1024, 4} },
10818 .block_erase = spi_block_erase_d8,
10819 }, {
10820 .eraseblocks = { {128 * 1024, 1} },
10821 .block_erase = spi_block_erase_c7,
10822 }
10823 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010824 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010825 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010826 .write = spi_chip_write_1, /* 128 */
10827 .read = spi_chip_read,
10828 .voltage = {2700, 3600},
10829 },
10830
10831 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010832 .vendor = "Micron/Numonyx/ST",
10833 .name = "M25P10-A",
10834 .bustype = BUS_SPI,
10835 .manufacture_id = ST_ID,
10836 .model_id = ST_M25P10A,
10837 .total_size = 128,
10838 .page_size = 256,
10839 .feature_bits = FEATURE_WRSR_WREN,
10840 .tested = TEST_OK_PREW,
10841 .probe = probe_spi_rdid,
10842 .probe_timing = TIMING_ZERO,
10843 .block_erasers =
10844 {
10845 {
10846 .eraseblocks = { {32 * 1024, 4} },
10847 .block_erase = spi_block_erase_d8,
10848 }, {
10849 .eraseblocks = { {128 * 1024, 1} },
10850 .block_erase = spi_block_erase_c7,
10851 }
10852 },
10853 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10854 .unlock = spi_disable_blockprotect_bp3_srwd,
10855 .write = spi_chip_write_256,
10856 .read = spi_chip_read,
10857 .voltage = {2700, 3600},
10858 },
10859
10860 {
10861 .vendor = "Micron/Numonyx/ST",
10862 .name = "M25P128",
10863 .bustype = BUS_SPI,
10864 .manufacture_id = ST_ID,
10865 .model_id = ST_M25P128,
10866 .total_size = 16384,
10867 .page_size = 256,
10868 .feature_bits = FEATURE_WRSR_WREN,
10869 .tested = TEST_OK_PREW,
10870 .probe = probe_spi_rdid,
10871 .probe_timing = TIMING_ZERO,
10872 .block_erasers =
10873 {
10874 {
10875 .eraseblocks = { {256 * 1024, 64} },
10876 .block_erase = spi_block_erase_d8,
10877 }, {
10878 .eraseblocks = { {16 * 1024 * 1024, 1} },
10879 .block_erase = spi_block_erase_c7,
10880 }
10881 },
10882 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10883 .unlock = spi_disable_blockprotect_bp3_srwd,
10884 .write = spi_chip_write_256,
10885 .read = spi_chip_read,
10886 .voltage = {2700, 3600},
10887 },
10888
10889 {
10890 .vendor = "Micron/Numonyx/ST",
10891 .name = "M25P16",
10892 .bustype = BUS_SPI,
10893 .manufacture_id = ST_ID,
10894 .model_id = ST_M25P16,
10895 .total_size = 2048,
10896 .page_size = 256,
10897 .feature_bits = FEATURE_WRSR_WREN,
10898 .tested = TEST_OK_PREW,
10899 .probe = probe_spi_rdid,
10900 .probe_timing = TIMING_ZERO,
10901 .block_erasers =
10902 {
10903 {
10904 .eraseblocks = { {64 * 1024, 32} },
10905 .block_erase = spi_block_erase_d8,
10906 }, {
10907 .eraseblocks = { {2 * 1024 * 1024, 1} },
10908 .block_erase = spi_block_erase_c7,
10909 }
10910 },
10911 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10912 .unlock = spi_disable_blockprotect_bp3_srwd,
10913 .write = spi_chip_write_256,
10914 .read = spi_chip_read,
10915 .voltage = {2700, 3600},
10916 },
10917
10918 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010919 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10920 .name = "M25P20",
10921 .bustype = BUS_SPI,
10922 .manufacture_id = ST_ID,
10923 .model_id = ST_M25P20,
10924 .total_size = 256,
10925 .page_size = 256,
10926 .feature_bits = FEATURE_WRSR_WREN,
10927 .tested = TEST_UNTESTED,
10928 .probe = probe_spi_rdid,
10929 .probe_timing = TIMING_ZERO,
10930 .block_erasers =
10931 {
10932 {
10933 .eraseblocks = { {64 * 1024, 4} },
10934 .block_erase = spi_block_erase_d8,
10935 }, {
10936 .eraseblocks = { {256 * 1024, 1} },
10937 .block_erase = spi_block_erase_c7,
10938 }
10939 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010940 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010941 .unlock = spi_disable_blockprotect,
10942 .write = spi_chip_write_256,
10943 .read = spi_chip_read, /* Fast read (0x0B) supported */
10944 .voltage = {2700, 3600},
10945 },
10946
10947 {
10948 .vendor = "Micron/Numonyx/ST",
10949 .name = "M25P20-old",
10950 .bustype = BUS_SPI,
10951 .manufacture_id = 0, /* Not used. */
10952 .model_id = ST_M25P20_RES,
10953 .total_size = 256,
10954 .page_size = 256,
10955 .feature_bits = FEATURE_WRSR_WREN,
10956 .tested = TEST_OK_PREW,
10957 .probe = probe_spi_res1,
10958 .probe_timing = TIMING_ZERO,
10959 .block_erasers =
10960 {
10961 {
10962 .eraseblocks = { {64 * 1024, 4} },
10963 .block_erase = spi_block_erase_d8,
10964 }, {
10965 .eraseblocks = { {256 * 1024, 1} },
10966 .block_erase = spi_block_erase_c7,
10967 }
10968 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010969 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010970 .unlock = spi_disable_blockprotect,
10971 .write = spi_chip_write_256,
10972 .read = spi_chip_read, /* Fast read (0x0B) supported */
10973 .voltage = {2700, 3600},
10974 },
10975
10976 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010977 .vendor = "Micron/Numonyx/ST",
10978 .name = "M25P32",
10979 .bustype = BUS_SPI,
10980 .manufacture_id = ST_ID,
10981 .model_id = ST_M25P32,
10982 .total_size = 4096,
10983 .page_size = 256,
10984 .feature_bits = FEATURE_WRSR_WREN,
10985 .tested = TEST_OK_PREW,
10986 .probe = probe_spi_rdid,
10987 .probe_timing = TIMING_ZERO,
10988 .block_erasers =
10989 {
10990 {
10991 .eraseblocks = { {64 * 1024, 64} },
10992 .block_erase = spi_block_erase_d8,
10993 }, {
10994 .eraseblocks = { {4 * 1024 * 1024, 1} },
10995 .block_erase = spi_block_erase_c7,
10996 }
10997 },
10998 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10999 .unlock = spi_disable_blockprotect_bp3_srwd,
11000 .write = spi_chip_write_256,
11001 .read = spi_chip_read,
11002 .voltage = {2700, 3600},
11003 },
11004
11005 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011006 .vendor = "Micron/Numonyx/ST", /* Numonyx */
11007 .name = "M25P40",
11008 .bustype = BUS_SPI,
11009 .manufacture_id = ST_ID,
11010 .model_id = ST_M25P40,
11011 .total_size = 512,
11012 .page_size = 256,
11013 .feature_bits = FEATURE_WRSR_WREN,
11014 .tested = TEST_OK_PREW,
11015 .probe = probe_spi_rdid,
11016 .probe_timing = TIMING_ZERO,
11017 .block_erasers =
11018 {
11019 {
11020 .eraseblocks = { {64 * 1024, 8} },
11021 .block_erase = spi_block_erase_d8,
11022 }, {
11023 .eraseblocks = { {512 * 1024, 1} },
11024 .block_erase = spi_block_erase_c7,
11025 }
11026 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011027 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011028 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011029 .write = spi_chip_write_256,
11030 .read = spi_chip_read,
11031 .voltage = {2700, 3600},
11032 },
11033
11034 {
11035 .vendor = "Micron/Numonyx/ST",
11036 .name = "M25P40-old",
11037 .bustype = BUS_SPI,
11038 .manufacture_id = 0, /* Not used. */
11039 .model_id = ST_M25P40_RES,
11040 .total_size = 512,
11041 .page_size = 256,
11042 .feature_bits = FEATURE_WRSR_WREN,
11043 .tested = TEST_UNTESTED,
11044 .probe = probe_spi_res1,
11045 .probe_timing = TIMING_ZERO,
11046 .block_erasers =
11047 {
11048 {
11049 .eraseblocks = { {64 * 1024, 8} },
11050 .block_erase = spi_block_erase_d8,
11051 }, {
11052 .eraseblocks = { {512 * 1024, 1} },
11053 .block_erase = spi_block_erase_c7,
11054 }
11055 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011056 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011057 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011058 .write = spi_chip_write_256,
11059 .read = spi_chip_read,
11060 },
11061
11062 {
11063 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011064 .name = "M25P64",
11065 .bustype = BUS_SPI,
11066 .manufacture_id = ST_ID,
11067 .model_id = ST_M25P64,
11068 .total_size = 8192,
11069 .page_size = 256,
11070 .feature_bits = FEATURE_WRSR_WREN,
11071 .tested = TEST_OK_PREW,
11072 .probe = probe_spi_rdid,
11073 .probe_timing = TIMING_ZERO,
11074 .block_erasers =
11075 {
11076 {
11077 .eraseblocks = { {64 * 1024, 128} },
11078 .block_erase = spi_block_erase_d8,
11079 }, {
11080 .eraseblocks = { {8 * 1024 * 1024, 1} },
11081 .block_erase = spi_block_erase_c7,
11082 }
11083 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011084 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011085 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011086 .write = spi_chip_write_256,
11087 .read = spi_chip_read,
11088 .voltage = {2700, 3600},
11089 },
11090
11091 {
11092 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011093 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011094 .bustype = BUS_SPI,
11095 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011096 .model_id = ST_M25P80,
11097 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011098 .page_size = 256,
11099 .feature_bits = FEATURE_WRSR_WREN,
11100 .tested = TEST_OK_PREW,
11101 .probe = probe_spi_rdid,
11102 .probe_timing = TIMING_ZERO,
11103 .block_erasers =
11104 {
11105 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011106 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011107 .block_erase = spi_block_erase_d8,
11108 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011109 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011110 .block_erase = spi_block_erase_c7,
11111 }
11112 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011113 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011114 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011115 .write = spi_chip_write_256,
11116 .read = spi_chip_read,
11117 .voltage = {2700, 3600},
11118 },
11119
11120 {
11121 .vendor = "Micron/Numonyx/ST",
11122 .name = "M25PE10",
11123 .bustype = BUS_SPI,
11124 .manufacture_id = ST_ID,
11125 .model_id = ST_M25PE10,
11126 .total_size = 128,
11127 .page_size = 256,
11128 .feature_bits = FEATURE_WRSR_WREN,
11129 .tested = TEST_UNTESTED,
11130 .probe = probe_spi_rdid,
11131 .probe_timing = TIMING_ZERO,
11132 .block_erasers =
11133 {
11134 {
11135 .eraseblocks = { {4 * 1024, 32} },
11136 .block_erase = spi_block_erase_20,
11137 }, {
11138 .eraseblocks = { {64 * 1024, 2} },
11139 .block_erase = spi_block_erase_d8,
11140 }, {
11141 .eraseblocks = { {128 * 1024, 1} },
11142 .block_erase = spi_block_erase_c7,
11143 }
11144 },
11145 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11146 .unlock = spi_disable_blockprotect,
11147 .write = spi_chip_write_256,
11148 .read = spi_chip_read,
11149 .voltage = {2700, 3600},
11150 },
11151
11152 {
11153 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011154 .name = "M25PE16",
11155 .bustype = BUS_SPI,
11156 .manufacture_id = ST_ID,
11157 .model_id = ST_M25PE16,
11158 .total_size = 2048,
11159 .page_size = 256,
11160 .feature_bits = FEATURE_WRSR_WREN,
11161 .tested = TEST_UNTESTED,
11162 .probe = probe_spi_rdid,
11163 .probe_timing = TIMING_ZERO,
11164 .block_erasers =
11165 {
11166 {
11167 .eraseblocks = { {4 * 1024, 512} },
11168 .block_erase = spi_block_erase_20,
11169 }, {
11170 .eraseblocks = { {64 * 1024, 32} },
11171 .block_erase = spi_block_erase_d8,
11172 }, {
11173 .eraseblocks = { {2 * 1024 * 1024, 1} },
11174 .block_erase = spi_block_erase_c7,
11175 }
11176 },
11177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11178 .unlock = spi_disable_blockprotect,
11179 .write = spi_chip_write_256,
11180 .read = spi_chip_read,
11181 .voltage = {2700, 3600},
11182 },
11183
11184 {
11185 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011186 .name = "M25PE20",
11187 .bustype = BUS_SPI,
11188 .manufacture_id = ST_ID,
11189 .model_id = ST_M25PE20,
11190 .total_size = 256,
11191 .page_size = 256,
11192 .feature_bits = FEATURE_WRSR_WREN,
11193 .tested = TEST_UNTESTED,
11194 .probe = probe_spi_rdid,
11195 .probe_timing = TIMING_ZERO,
11196 .block_erasers =
11197 {
11198 {
11199 .eraseblocks = { {4 * 1024, 64} },
11200 .block_erase = spi_block_erase_20,
11201 }, {
11202 .eraseblocks = { {64 * 1024, 4} },
11203 .block_erase = spi_block_erase_d8,
11204 }, {
11205 .eraseblocks = { {256 * 1024, 1} },
11206 .block_erase = spi_block_erase_c7,
11207 }
11208 },
11209 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11210 .unlock = spi_disable_blockprotect,
11211 .write = spi_chip_write_256,
11212 .read = spi_chip_read,
11213 .voltage = {2700, 3600},
11214 },
11215
11216 {
11217 .vendor = "Micron/Numonyx/ST",
11218 .name = "M25PE40",
11219 .bustype = BUS_SPI,
11220 .manufacture_id = ST_ID,
11221 .model_id = ST_M25PE40,
11222 .total_size = 512,
11223 .page_size = 256,
11224 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011225 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011226 .probe = probe_spi_rdid,
11227 .probe_timing = TIMING_ZERO,
11228 .block_erasers =
11229 {
11230 {
11231 .eraseblocks = { {4 * 1024, 128} },
11232 .block_erase = spi_block_erase_20,
11233 }, {
11234 .eraseblocks = { {64 * 1024, 8} },
11235 .block_erase = spi_block_erase_d8,
11236 }, {
11237 .eraseblocks = { {512 * 1024, 1} },
11238 .block_erase = spi_block_erase_c7,
11239 }
11240 },
11241 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11242 .unlock = spi_disable_blockprotect,
11243 .write = spi_chip_write_256,
11244 .read = spi_chip_read,
11245 .voltage = {2700, 3600},
11246 },
11247
11248 {
11249 .vendor = "Micron/Numonyx/ST",
11250 .name = "M25PE80",
11251 .bustype = BUS_SPI,
11252 .manufacture_id = ST_ID,
11253 .model_id = ST_M25PE80,
11254 .total_size = 1024,
11255 .page_size = 256,
11256 .feature_bits = FEATURE_WRSR_WREN,
11257 .tested = TEST_OK_PREW,
11258 .probe = probe_spi_rdid,
11259 .probe_timing = TIMING_ZERO,
11260 .block_erasers =
11261 {
11262 {
11263 .eraseblocks = { {4 * 1024, 256} },
11264 .block_erase = spi_block_erase_20,
11265 }, {
11266 .eraseblocks = { {64 * 1024, 16} },
11267 .block_erase = spi_block_erase_d8,
11268 }, {
11269 .eraseblocks = { {1024 * 1024, 1} },
11270 .block_erase = spi_block_erase_c7,
11271 }
11272 },
11273 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11274 .unlock = spi_disable_blockprotect,
11275 .write = spi_chip_write_256,
11276 .read = spi_chip_read,
11277 .voltage = {2700, 3600},
11278 },
11279
11280 {
11281 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011282 .name = "M25PX16",
11283 .bustype = BUS_SPI,
11284 .manufacture_id = ST_ID,
11285 .model_id = ST_M25PX16,
11286 .total_size = 2048,
11287 .page_size = 256,
11288 /* OTP: 64B total; read 0x4B; write 0x42 */
11289 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11290 .tested = TEST_OK_PREW,
11291 .probe = probe_spi_rdid,
11292 .probe_timing = TIMING_ZERO,
11293 .block_erasers =
11294 {
11295 {
11296 .eraseblocks = { { 4 * 1024, 512 } },
11297 .block_erase = spi_block_erase_20,
11298 }, {
11299 .eraseblocks = { {64 * 1024, 32} },
11300 .block_erase = spi_block_erase_d8,
11301 }, {
11302 .eraseblocks = { {2 * 1024 * 1024, 1} },
11303 .block_erase = spi_block_erase_c7,
11304 }
11305 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011306 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011307 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11308 .write = spi_chip_write_256,
11309 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011310 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011311 },
11312
11313 {
11314 .vendor = "Micron/Numonyx/ST",
11315 .name = "M25PX32",
11316 .bustype = BUS_SPI,
11317 .manufacture_id = ST_ID,
11318 .model_id = ST_M25PX32,
11319 .total_size = 4096,
11320 .page_size = 256,
11321 /* OTP: 64B total; read 0x4B; write 0x42 */
11322 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11323 .tested = TEST_OK_PRE,
11324 .probe = probe_spi_rdid,
11325 .probe_timing = TIMING_ZERO,
11326 .block_erasers =
11327 {
11328 {
11329 .eraseblocks = { { 4 * 1024, 1024 } },
11330 .block_erase = spi_block_erase_20,
11331 }, {
11332 .eraseblocks = { {64 * 1024, 64} },
11333 .block_erase = spi_block_erase_d8,
11334 }, {
11335 .eraseblocks = { {4 * 1024 * 1024, 1} },
11336 .block_erase = spi_block_erase_c7,
11337 }
11338 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011339 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011340 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11341 .write = spi_chip_write_256,
11342 .read = spi_chip_read,
11343 .voltage = {2700, 3600},
11344 },
11345
11346 {
11347 .vendor = "Micron/Numonyx/ST",
11348 .name = "M25PX64",
11349 .bustype = BUS_SPI,
11350 .manufacture_id = ST_ID,
11351 .model_id = ST_M25PX64,
11352 .total_size = 8192,
11353 .page_size = 256,
11354 /* OTP: 64B total; read 0x4B; write 0x42 */
11355 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011356 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011357 .probe = probe_spi_rdid,
11358 .probe_timing = TIMING_ZERO,
11359 .block_erasers =
11360 {
11361 {
11362 .eraseblocks = { { 4 * 1024, 2048 } },
11363 .block_erase = spi_block_erase_20,
11364 }, {
11365 .eraseblocks = { {64 * 1024, 128} },
11366 .block_erase = spi_block_erase_d8,
11367 }, {
11368 .eraseblocks = { {8 * 1024 * 1024, 1} },
11369 .block_erase = spi_block_erase_c7,
11370 }
11371 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011372 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011373 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11374 .write = spi_chip_write_256,
11375 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011376 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011377 },
11378
11379 {
11380 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011381 .name = "M25PX80",
11382 .bustype = BUS_SPI,
11383 .manufacture_id = ST_ID,
11384 .model_id = ST_M25PX80,
11385 .total_size = 1024,
11386 .page_size = 256,
11387 /* OTP: 64B total; read 0x4B, write 0x42 */
11388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11389 .tested = TEST_OK_PREW,
11390 .probe = probe_spi_rdid,
11391 .probe_timing = TIMING_ZERO,
11392 .block_erasers =
11393 {
11394 {
11395 .eraseblocks = { { 4 * 1024, 256 } },
11396 .block_erase = spi_block_erase_20,
11397 }, {
11398 .eraseblocks = { {64 * 1024, 16} },
11399 .block_erase = spi_block_erase_d8,
11400 }, {
11401 .eraseblocks = { {1024 * 1024, 1} },
11402 .block_erase = spi_block_erase_c7,
11403 }
11404 },
11405 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
11406 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11407 .write = spi_chip_write_256,
11408 .read = spi_chip_read,
11409 .voltage = {2700, 3600},
11410 },
11411
11412 {
11413 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011414 .name = "M45PE10",
11415 .bustype = BUS_SPI,
11416 .manufacture_id = ST_ID,
11417 .model_id = ST_M45PE10,
11418 .total_size = 128,
11419 .page_size = 256,
11420 .tested = TEST_UNTESTED,
11421 .probe = probe_spi_rdid,
11422 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011423 .block_erasers =
11424 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011425 {
11426 .eraseblocks = { {256, 512} },
11427 .block_erase = spi_block_erase_db,
11428 }, {
11429 .eraseblocks = { {64 * 1024, 2} },
11430 .block_erase = spi_block_erase_d8,
11431 }
11432 },
11433 .printlock = spi_prettyprint_status_register_default_welwip,
11434 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11435 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11436 .read = spi_chip_read, /* Fast read (0x0B) supported */
11437 .voltage = {2700, 3600},
11438 },
11439
11440 {
11441 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011442 .name = "M45PE16",
11443 .bustype = BUS_SPI,
11444 .manufacture_id = ST_ID,
11445 .model_id = ST_M45PE16,
11446 .total_size = 2048,
11447 .page_size = 256,
11448 .tested = TEST_UNTESTED,
11449 .probe = probe_spi_rdid,
11450 .probe_timing = TIMING_ZERO,
11451 .block_erasers =
11452 {
11453 {
11454 .eraseblocks = { {256, 8192} },
11455 .block_erase = spi_block_erase_db,
11456 }, {
11457 .eraseblocks = { {64 * 1024, 32} },
11458 .block_erase = spi_block_erase_d8,
11459 }
11460 },
11461 .printlock = spi_prettyprint_status_register_default_welwip,
11462 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11463 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11464 .read = spi_chip_read, /* Fast read (0x0B) supported */
11465 .voltage = {2700, 3600},
11466 },
11467
11468 {
11469 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011470 .name = "M45PE20",
11471 .bustype = BUS_SPI,
11472 .manufacture_id = ST_ID,
11473 .model_id = ST_M45PE20,
11474 .total_size = 256,
11475 .page_size = 256,
11476 .tested = TEST_UNTESTED,
11477 .probe = probe_spi_rdid,
11478 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011479 .block_erasers =
11480 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011481 {
11482 .eraseblocks = { {256, 1024} },
11483 .block_erase = spi_block_erase_db,
11484 }, {
11485 .eraseblocks = { {64 * 1024, 4} },
11486 .block_erase = spi_block_erase_d8,
11487 }
11488 },
11489 .printlock = spi_prettyprint_status_register_default_welwip,
11490 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11491 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11492 .read = spi_chip_read, /* Fast read (0x0B) supported */
11493 .voltage = {2700, 3600},
11494 },
11495
11496 {
11497 .vendor = "Micron/Numonyx/ST",
11498 .name = "M45PE40",
11499 .bustype = BUS_SPI,
11500 .manufacture_id = ST_ID,
11501 .model_id = ST_M45PE40,
11502 .total_size = 512,
11503 .page_size = 256,
11504 .tested = TEST_UNTESTED,
11505 .probe = probe_spi_rdid,
11506 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011507 .block_erasers =
11508 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011509 {
11510 .eraseblocks = { {256, 2048} },
11511 .block_erase = spi_block_erase_db,
11512 }, {
11513 .eraseblocks = { {64 * 1024, 8} },
11514 .block_erase = spi_block_erase_d8,
11515 }
11516 },
11517 .printlock = spi_prettyprint_status_register_default_welwip,
11518 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011519 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011520 .read = spi_chip_read, /* Fast read (0x0B) supported */
11521 .voltage = {2700, 3600},
11522 },
11523
11524 {
11525 .vendor = "Micron/Numonyx/ST",
11526 .name = "M45PE80",
11527 .bustype = BUS_SPI,
11528 .manufacture_id = ST_ID,
11529 .model_id = ST_M45PE80,
11530 .total_size = 1024,
11531 .page_size = 256,
11532 .tested = TEST_UNTESTED,
11533 .probe = probe_spi_rdid,
11534 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011535 .block_erasers =
11536 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011537 {
11538 .eraseblocks = { {256, 4096} },
11539 .block_erase = spi_block_erase_db,
11540 }, {
11541 .eraseblocks = { {64 * 1024, 16} },
11542 .block_erase = spi_block_erase_d8,
11543 }
11544 },
11545 .printlock = spi_prettyprint_status_register_default_welwip,
11546 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11547 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11548 .read = spi_chip_read, /* Fast read (0x0B) supported */
11549 .voltage = {2700, 3600},
11550 },
11551
11552 {
11553 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011554 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11555 .bustype = BUS_SPI,
11556 .manufacture_id = ST_ID,
11557 .model_id = ST_N25Q00A__1G,
11558 .total_size = 131072,
11559 .page_size = 256,
11560 /* supports SFDP */
11561 /* OTP: 64B total; read 0x4B, write 0x42 */
11562 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11563 .tested = TEST_UNTESTED,
11564 .probe = probe_spi_rdid,
11565 .probe_timing = TIMING_ZERO,
11566 .block_erasers =
11567 {
11568 {
11569 .eraseblocks = { {4 * 1024, 32768} },
11570 .block_erase = spi_block_erase_21,
11571 }, {
11572 .eraseblocks = { {4 * 1024, 32768} },
11573 .block_erase = spi_block_erase_20,
11574 }, {
11575 .eraseblocks = { {64 * 1024, 2048} },
11576 .block_erase = spi_block_erase_dc,
11577 }, {
11578 .eraseblocks = { {64 * 1024, 2048} },
11579 .block_erase = spi_block_erase_d8,
11580 }, {
11581 .eraseblocks = { {32768 * 1024, 4} },
11582 .block_erase = spi_block_erase_c4,
11583 }
11584 },
11585 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11586 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11587 .write = spi_chip_write_256, /* Multi I/O supported */
11588 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11589 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011590 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011591 },
11592
11593 {
11594 .vendor = "Micron/Numonyx/ST",
11595 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11596 .bustype = BUS_SPI,
11597 .manufacture_id = ST_ID,
11598 .model_id = ST_N25Q00A__3G,
11599 .total_size = 131072,
11600 .page_size = 256,
11601 /* supports SFDP */
11602 /* OTP: 64B total; read 0x4B, write 0x42 */
11603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11604 .tested = TEST_UNTESTED,
11605 .probe = probe_spi_rdid,
11606 .probe_timing = TIMING_ZERO,
11607 .block_erasers =
11608 {
11609 {
11610 .eraseblocks = { {4 * 1024, 32768} },
11611 .block_erase = spi_block_erase_21,
11612 }, {
11613 .eraseblocks = { {4 * 1024, 32768} },
11614 .block_erase = spi_block_erase_20,
11615 }, {
11616 .eraseblocks = { {64 * 1024, 2048} },
11617 .block_erase = spi_block_erase_dc,
11618 }, {
11619 .eraseblocks = { {64 * 1024, 2048} },
11620 .block_erase = spi_block_erase_d8,
11621 }, {
11622 .eraseblocks = { {32768 * 1024, 4} },
11623 .block_erase = spi_block_erase_c4,
11624 }
11625 },
11626 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11627 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11628 .write = spi_chip_write_256, /* Multi I/O supported */
11629 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11630 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011631 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011632 },
11633
11634 {
11635 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011636 .name = "N25Q016",
11637 .bustype = BUS_SPI,
11638 .manufacture_id = ST_ID,
11639 .model_id = ST_N25Q016__1E,
11640 .total_size = 2048,
11641 .page_size = 256,
11642 /* supports SFDP */
11643 /* OTP: 64B total; read 0x4B, write 0x42 */
11644 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11645 .tested = TEST_UNTESTED,
11646 .probe = probe_spi_rdid,
11647 .probe_timing = TIMING_ZERO,
11648 .block_erasers =
11649 {
11650 {
11651 .eraseblocks = { {4 * 1024, 512} },
11652 .block_erase = spi_block_erase_20,
11653 }, {
11654 .eraseblocks = { {32 * 1024, 64} },
11655 .block_erase = spi_block_erase_52,
11656 }, {
11657 .eraseblocks = { {64 * 1024, 32} },
11658 .block_erase = spi_block_erase_d8,
11659 }, {
11660 .eraseblocks = { {2 * 1024 * 1024, 1} },
11661 .block_erase = spi_block_erase_c7,
11662 }
11663 },
11664 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11665 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11666 .write = spi_chip_write_256, /* Multi I/O supported */
11667 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11668 .voltage = {1700, 2000},
11669 },
11670
11671 {
11672 .vendor = "Micron/Numonyx/ST",
11673 .name = "N25Q032..1E",
11674 .bustype = BUS_SPI,
11675 .manufacture_id = ST_ID,
11676 .model_id = ST_N25Q032__1E,
11677 .total_size = 4096,
11678 .page_size = 256,
11679 /* supports SFDP */
11680 /* OTP: 64B total; read 0x4B, write 0x42 */
11681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11682 .tested = TEST_UNTESTED,
11683 .probe = probe_spi_rdid,
11684 .probe_timing = TIMING_ZERO,
11685 .block_erasers =
11686 {
11687 {
11688 .eraseblocks = { {4 * 1024, 1024} },
11689 .block_erase = spi_block_erase_20,
11690 }, {
11691 .eraseblocks = { {64 * 1024, 64} },
11692 .block_erase = spi_block_erase_d8,
11693 }, {
11694 .eraseblocks = { {4 * 1024 * 1024, 1} },
11695 .block_erase = spi_block_erase_c7,
11696 }
11697 },
11698 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11699 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11700 .write = spi_chip_write_256, /* Multi I/O supported */
11701 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11702 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011703 .reg_bits =
11704 {
11705 /*
11706 * There is also a volatile lock register per 64KiB sector, which is not
11707 * mutually exclusive with BP-based protection.
11708 */
11709 .srp = {STATUS1, 7, RW},
11710 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11711 .tb = {STATUS1, 5, RW},
11712 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011713 .wp_write_cfg = spi_wp_write_cfg,
11714 .wp_read_cfg = spi_wp_read_cfg,
11715 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011716 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011717 },
11718
11719 {
11720 .vendor = "Micron/Numonyx/ST",
11721 .name = "N25Q032..3E",
11722 .bustype = BUS_SPI,
11723 .manufacture_id = ST_ID,
11724 .model_id = ST_N25Q032__3E,
11725 .total_size = 4096,
11726 .page_size = 256,
11727 /* supports SFDP */
11728 /* OTP: 64B total; read 0x4B, write 0x42 */
11729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11730 .tested = TEST_OK_PREW,
11731 .probe = probe_spi_rdid,
11732 .probe_timing = TIMING_ZERO,
11733 .block_erasers =
11734 {
11735 {
11736 .eraseblocks = { {4 * 1024, 1024} },
11737 .block_erase = spi_block_erase_20,
11738 }, {
11739 .eraseblocks = { {64 * 1024, 64} },
11740 .block_erase = spi_block_erase_d8,
11741 }, {
11742 .eraseblocks = { {4 * 1024 * 1024, 1} },
11743 .block_erase = spi_block_erase_c7,
11744 }
11745 },
11746 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11747 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11748 .write = spi_chip_write_256, /* Multi I/O supported */
11749 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11750 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011751 .reg_bits =
11752 {
11753 /*
11754 * There is also a volatile lock register per 64KiB sector, which is not
11755 * mutually exclusive with BP-based protection.
11756 */
11757 .srp = {STATUS1, 7, RW},
11758 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11759 .tb = {STATUS1, 5, RW},
11760 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011761 .wp_write_cfg = spi_wp_write_cfg,
11762 .wp_read_cfg = spi_wp_read_cfg,
11763 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011764 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011765 },
11766
11767 {
11768 .vendor = "Micron/Numonyx/ST",
11769 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11770 .bustype = BUS_SPI,
11771 .manufacture_id = ST_ID,
11772 .model_id = ST_N25Q064__1E,
11773 .total_size = 8192,
11774 .page_size = 256,
11775 /* supports SFDP */
11776 /* OTP: 64B total; read 0x4B, write 0x42 */
11777 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011778 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011779 .probe = probe_spi_rdid,
11780 .probe_timing = TIMING_ZERO,
11781 .block_erasers =
11782 {
11783 {
11784 .eraseblocks = { {4 * 1024, 2048 } },
11785 .block_erase = spi_block_erase_20,
11786 }, {
11787 .eraseblocks = { {64 * 1024, 128} },
11788 .block_erase = spi_block_erase_d8,
11789 }, {
11790 .eraseblocks = { {8 * 1024 * 1024, 1} },
11791 .block_erase = spi_block_erase_c7,
11792 }
11793 },
11794 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11795 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11796 .write = spi_chip_write_256, /* Multi I/O supported */
11797 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11798 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011799 .reg_bits =
11800 {
11801 /*
11802 * There is also a volatile lock register per 64KiB sector, which is not
11803 * mutually exclusive with BP-based protection.
11804 */
11805 .srp = {STATUS1, 7, RW},
11806 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11807 .tb = {STATUS1, 5, RW},
11808 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011809 .wp_write_cfg = spi_wp_write_cfg,
11810 .wp_read_cfg = spi_wp_read_cfg,
11811 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011812 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011813 },
11814
11815 {
11816 .vendor = "Micron/Numonyx/ST",
11817 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11818 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011819 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011820 .model_id = ST_N25Q064__3E,
11821 .total_size = 8192,
11822 .page_size = 256,
11823 /* supports SFDP */
11824 /* OTP: 64B total; read 0x4B, write 0x42 */
11825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11826 .tested = TEST_OK_PREW,
11827 .probe = probe_spi_rdid,
11828 .probe_timing = TIMING_ZERO,
11829 .block_erasers =
11830 {
11831 {
11832 .eraseblocks = { {4 * 1024, 2048 } },
11833 .block_erase = spi_block_erase_20,
11834 }, {
11835 .eraseblocks = { {64 * 1024, 128} },
11836 .block_erase = spi_block_erase_d8,
11837 }, {
11838 .eraseblocks = { {8 * 1024 * 1024, 1} },
11839 .block_erase = spi_block_erase_c7,
11840 }
11841 },
11842 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11843 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11844 .write = spi_chip_write_256, /* Multi I/O supported */
11845 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11846 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011847 .reg_bits =
11848 {
11849 /*
11850 * There is also a volatile lock register per 64KiB sector, which is not
11851 * mutually exclusive with BP-based protection.
11852 */
11853 .srp = {STATUS1, 7, RW},
11854 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11855 .tb = {STATUS1, 5, RW},
11856 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011857 .wp_write_cfg = spi_wp_write_cfg,
11858 .wp_read_cfg = spi_wp_read_cfg,
11859 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011860 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011861 },
11862
11863 {
11864 .vendor = "Micron/Numonyx/ST",
11865 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11866 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011867 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011868 .model_id = ST_N25Q128__1E,
11869 .total_size = 16384,
11870 .page_size = 256,
11871 /* supports SFDP */
11872 /* OTP: 64B total; read 0x4B, write 0x42 */
11873 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011874 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011875 .probe = probe_spi_rdid,
11876 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011877 .block_erasers =
11878 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011879 {
11880 .eraseblocks = { {4 * 1024, 4096 } },
11881 .block_erase = spi_block_erase_20,
11882 }, {
11883 .eraseblocks = { {64 * 1024, 256} },
11884 .block_erase = spi_block_erase_d8,
11885 }, {
11886 .eraseblocks = { {16384 * 1024, 1} },
11887 .block_erase = spi_block_erase_c7,
11888 }
11889 },
11890 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11891 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11892 .write = spi_chip_write_256, /* Multi I/O supported */
11893 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11894 .voltage = {1700, 2000},
11895 },
11896
11897 {
11898 .vendor = "Micron/Numonyx/ST",
11899 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11900 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011901 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011902 .model_id = ST_N25Q128__3E,
11903 .total_size = 16384,
11904 .page_size = 256,
11905 /* supports SFDP */
11906 /* OTP: 64B total; read 0x4B, write 0x42 */
11907 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11908 .tested = TEST_OK_PREW,
11909 .probe = probe_spi_rdid,
11910 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011911 .block_erasers =
11912 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011913 {
11914 .eraseblocks = { {4 * 1024, 4096 } },
11915 .block_erase = spi_block_erase_20,
11916 }, {
11917 .eraseblocks = { {64 * 1024, 256} },
11918 .block_erase = spi_block_erase_d8,
11919 }, {
11920 .eraseblocks = { {16384 * 1024, 1} },
11921 .block_erase = spi_block_erase_c7,
11922 }
11923 },
11924 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11925 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11926 .write = spi_chip_write_256, /* Multi I/O supported */
11927 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11928 .voltage = {2700, 3600},
11929 },
11930
11931 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011932 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011933 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11934 .bustype = BUS_SPI,
11935 .manufacture_id = ST_ID,
11936 .model_id = ST_N25Q256__1E,
11937 .total_size = 32768,
11938 .page_size = 256,
11939 /* supports SFDP */
11940 /* OTP: 64B total; read 0x4B, write 0x42 */
11941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11942 .tested = TEST_UNTESTED,
11943 .probe = probe_spi_rdid,
11944 .probe_timing = TIMING_ZERO,
11945 .block_erasers =
11946 {
11947 {
11948 .eraseblocks = { {4 * 1024, 8192} },
11949 .block_erase = spi_block_erase_21,
11950 }, {
11951 .eraseblocks = { {4 * 1024, 8192} },
11952 .block_erase = spi_block_erase_20,
11953 }, {
11954 .eraseblocks = { {64 * 1024, 512} },
11955 .block_erase = spi_block_erase_dc,
11956 }, {
11957 .eraseblocks = { {64 * 1024, 512} },
11958 .block_erase = spi_block_erase_d8,
11959 }, {
11960 .eraseblocks = { {32768 * 1024, 1} },
11961 .block_erase = spi_block_erase_c7,
11962 }
11963 },
11964 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11965 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11966 .write = spi_chip_write_256, /* Multi I/O supported */
11967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11968 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011969 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011970 },
11971
11972 {
11973 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011974 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11975 .bustype = BUS_SPI,
11976 .manufacture_id = ST_ID,
11977 .model_id = ST_N25Q256__3E,
11978 .total_size = 32768,
11979 .page_size = 256,
11980 /* supports SFDP */
11981 /* OTP: 64B total; read 0x4B, write 0x42 */
11982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11983 .tested = TEST_UNTESTED,
11984 .probe = probe_spi_rdid,
11985 .probe_timing = TIMING_ZERO,
11986 .block_erasers =
11987 {
11988 {
11989 .eraseblocks = { {4 * 1024, 8192} },
11990 .block_erase = spi_block_erase_21,
11991 }, {
11992 .eraseblocks = { {4 * 1024, 8192} },
11993 .block_erase = spi_block_erase_20,
11994 }, {
11995 .eraseblocks = { {64 * 1024, 512} },
11996 .block_erase = spi_block_erase_dc,
11997 }, {
11998 .eraseblocks = { {64 * 1024, 512} },
11999 .block_erase = spi_block_erase_d8,
12000 }, {
12001 .eraseblocks = { {32768 * 1024, 1} },
12002 .block_erase = spi_block_erase_c7,
12003 }
12004 },
12005 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12006 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12007 .write = spi_chip_write_256, /* Multi I/O supported */
12008 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12009 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012010 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012011 },
12012
12013 {
12014 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012015 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012016 .bustype = BUS_SPI,
12017 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012018 .model_id = ST_N25Q512__1G,
12019 .total_size = 65536,
12020 .page_size = 256,
12021 /* supports SFDP */
12022 /* OTP: 64B total; read 0x4B, write 0x42 */
12023 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12024 .tested = TEST_UNTESTED,
12025 .probe = probe_spi_rdid,
12026 .probe_timing = TIMING_ZERO,
12027 .block_erasers =
12028 {
12029 {
12030 .eraseblocks = { {4 * 1024, 16384} },
12031 .block_erase = spi_block_erase_21,
12032 }, {
12033 .eraseblocks = { {4 * 1024, 16384} },
12034 .block_erase = spi_block_erase_20,
12035 }, {
12036 .eraseblocks = { {64 * 1024, 1024} },
12037 .block_erase = spi_block_erase_dc,
12038 }, {
12039 .eraseblocks = { {64 * 1024, 1024} },
12040 .block_erase = spi_block_erase_d8,
12041 }, {
12042 .eraseblocks = { {32768 * 1024, 2} },
12043 .block_erase = spi_block_erase_c4,
12044 }
12045 },
12046 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12047 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12048 .write = spi_chip_write_256, /* Multi I/O supported */
12049 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12050 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012051 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012052 },
12053
12054 {
12055 .vendor = "Micron/Numonyx/ST",
12056 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
12057 .bustype = BUS_SPI,
12058 .manufacture_id = ST_ID,
12059 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012060 .total_size = 65536,
12061 .page_size = 256,
12062 /* supports SFDP */
12063 /* OTP: 64B total; read 0x4B, write 0x42 */
12064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12065 .tested = TEST_OK_PREW,
12066 .probe = probe_spi_rdid,
12067 .probe_timing = TIMING_ZERO,
12068 .block_erasers =
12069 {
12070 {
12071 .eraseblocks = { {4 * 1024, 16384} },
12072 .block_erase = spi_block_erase_21,
12073 }, {
12074 .eraseblocks = { {4 * 1024, 16384} },
12075 .block_erase = spi_block_erase_20,
12076 }, {
12077 .eraseblocks = { {64 * 1024, 1024} },
12078 .block_erase = spi_block_erase_dc,
12079 }, {
12080 .eraseblocks = { {64 * 1024, 1024} },
12081 .block_erase = spi_block_erase_d8,
12082 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070012083 .eraseblocks = { {32768 * 1024, 2} },
12084 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012085 }
12086 },
12087 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12088 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12089 .write = spi_chip_write_256, /* Multi I/O supported */
12090 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12091 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012092 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012093 },
12094
12095 {
Ed Swierk199ab392017-07-03 13:33:44 -070012096 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012097 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12098 .bustype = BUS_SPI,
12099 .manufacture_id = ST_ID,
12100 .model_id = ST_N25Q00A__3G,
12101 .total_size = 131072,
12102 .page_size = 256,
12103 /* supports SFDP */
12104 /* OTP: 64B total; read 0x4B, write 0x42 */
12105 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12106 .tested = TEST_OK_PREW,
12107 .probe = probe_spi_rdid,
12108 .probe_timing = TIMING_ZERO,
12109 .block_erasers =
12110 {
12111 {
12112 .eraseblocks = { {4 * 1024, 32768} },
12113 .block_erase = spi_block_erase_21,
12114 }, {
12115 .eraseblocks = { {4 * 1024, 32768} },
12116 .block_erase = spi_block_erase_20,
12117 }, {
12118 .eraseblocks = { {32 * 1024, 4096} },
12119 .block_erase = spi_block_erase_5c,
12120 }, {
12121 .eraseblocks = { {32 * 1024, 4096} },
12122 .block_erase = spi_block_erase_52,
12123 }, {
12124 .eraseblocks = { {64 * 1024, 2048} },
12125 .block_erase = spi_block_erase_dc,
12126 }, {
12127 .eraseblocks = { {64 * 1024, 2048} },
12128 .block_erase = spi_block_erase_d8,
12129 }, {
12130 .eraseblocks = { {65536 * 1024, 2} },
12131 .block_erase = spi_block_erase_c4,
12132 }
12133 },
12134 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12135 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12136 .write = spi_chip_write_256, /* Multi I/O supported */
12137 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12138 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012139 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012140 },
12141
12142 {
12143 .vendor = "Micron",
12144 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12145 .bustype = BUS_SPI,
12146 .manufacture_id = ST_ID,
12147 .model_id = ST_N25Q00A__1G,
12148 .total_size = 131072,
12149 .page_size = 256,
12150 /* supports SFDP */
12151 /* OTP: 64B total; read 0x4B, write 0x42 */
12152 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12153 .tested = TEST_UNTESTED,
12154 .probe = probe_spi_rdid,
12155 .probe_timing = TIMING_ZERO,
12156 .block_erasers =
12157 {
12158 {
12159 .eraseblocks = { {4 * 1024, 32768} },
12160 .block_erase = spi_block_erase_21,
12161 }, {
12162 .eraseblocks = { {4 * 1024, 32768} },
12163 .block_erase = spi_block_erase_20,
12164 }, {
12165 .eraseblocks = { {32 * 1024, 4096} },
12166 .block_erase = spi_block_erase_5c,
12167 }, {
12168 .eraseblocks = { {32 * 1024, 4096} },
12169 .block_erase = spi_block_erase_52,
12170 }, {
12171 .eraseblocks = { {64 * 1024, 2048} },
12172 .block_erase = spi_block_erase_dc,
12173 }, {
12174 .eraseblocks = { {64 * 1024, 2048} },
12175 .block_erase = spi_block_erase_d8,
12176 }, {
12177 .eraseblocks = { {65536 * 1024, 2} },
12178 .block_erase = spi_block_erase_c4,
12179 }
12180 },
12181 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12182 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12183 .write = spi_chip_write_256, /* Multi I/O supported */
12184 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12185 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012186 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012187 },
12188
12189 {
12190 .vendor = "Micron",
12191 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12192 .bustype = BUS_SPI,
12193 .manufacture_id = ST_ID,
12194 .model_id = ST_MT25QL02G,
12195 .total_size = 262144,
12196 .page_size = 256,
12197 /* supports SFDP */
12198 /* OTP: 64B total; read 0x4B, write 0x42 */
12199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12200 .tested = TEST_UNTESTED,
12201 .probe = probe_spi_rdid,
12202 .probe_timing = TIMING_ZERO,
12203 .block_erasers =
12204 {
12205 {
12206 .eraseblocks = { {4 * 1024, 65536} },
12207 .block_erase = spi_block_erase_21,
12208 }, {
12209 .eraseblocks = { {4 * 1024, 65536} },
12210 .block_erase = spi_block_erase_20,
12211 }, {
12212 .eraseblocks = { {32 * 1024, 8192} },
12213 .block_erase = spi_block_erase_5c,
12214 }, {
12215 .eraseblocks = { {32 * 1024, 8192} },
12216 .block_erase = spi_block_erase_52,
12217 }, {
12218 .eraseblocks = { {64 * 1024, 4096} },
12219 .block_erase = spi_block_erase_dc,
12220 }, {
12221 .eraseblocks = { {64 * 1024, 4096} },
12222 .block_erase = spi_block_erase_d8,
12223 }, {
12224 .eraseblocks = { {65536 * 1024, 4} },
12225 .block_erase = spi_block_erase_c4,
12226 }
12227 },
12228 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12229 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12230 .write = spi_chip_write_256, /* Multi I/O supported */
12231 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12232 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012233 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012234 },
12235
12236 {
12237 .vendor = "Micron",
12238 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12239 .bustype = BUS_SPI,
12240 .manufacture_id = ST_ID,
12241 .model_id = ST_MT25QU02G,
12242 .total_size = 262144,
12243 .page_size = 256,
12244 /* supports SFDP */
12245 /* OTP: 64B total; read 0x4B, write 0x42 */
12246 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12247 .tested = TEST_UNTESTED,
12248 .probe = probe_spi_rdid,
12249 .probe_timing = TIMING_ZERO,
12250 .block_erasers =
12251 {
12252 {
12253 .eraseblocks = { {4 * 1024, 65536} },
12254 .block_erase = spi_block_erase_21,
12255 }, {
12256 .eraseblocks = { {4 * 1024, 65536} },
12257 .block_erase = spi_block_erase_20,
12258 }, {
12259 .eraseblocks = { {32 * 1024, 8192} },
12260 .block_erase = spi_block_erase_5c,
12261 }, {
12262 .eraseblocks = { {32 * 1024, 8192} },
12263 .block_erase = spi_block_erase_52,
12264 }, {
12265 .eraseblocks = { {64 * 1024, 4096} },
12266 .block_erase = spi_block_erase_dc,
12267 }, {
12268 .eraseblocks = { {64 * 1024, 4096} },
12269 .block_erase = spi_block_erase_d8,
12270 }, {
12271 .eraseblocks = { {65536 * 1024, 4} },
12272 .block_erase = spi_block_erase_c4,
12273 }
12274 },
12275 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12276 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12277 .write = spi_chip_write_256, /* Multi I/O supported */
12278 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12279 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012280 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012281 },
12282
12283 {
12284 .vendor = "Micron",
12285 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12286 .bustype = BUS_SPI,
12287 .manufacture_id = ST_ID,
12288 .model_id = ST_N25Q128__1E,
12289 .total_size = 16384,
12290 .page_size = 256,
12291 /* supports SFDP */
12292 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010012293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012294 .tested = TEST_UNTESTED,
12295 .probe = probe_spi_rdid,
12296 .probe_timing = TIMING_ZERO,
12297 .block_erasers =
12298 {
12299 {
12300 .eraseblocks = { {4 * 1024, 4096} },
12301 .block_erase = spi_block_erase_20,
12302 }, {
12303 .eraseblocks = { {32 * 1024, 512} },
12304 .block_erase = spi_block_erase_52,
12305 }, {
12306 .eraseblocks = { {64 * 1024, 256} },
12307 .block_erase = spi_block_erase_d8,
12308 }, {
12309 .eraseblocks = { {16384 * 1024, 1} },
12310 .block_erase = spi_block_erase_c7,
12311 }, {
12312 .eraseblocks = { {16384 * 1024, 1} },
12313 .block_erase = spi_block_erase_60,
12314 }
12315 },
12316 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12317 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12318 .write = spi_chip_write_256, /* Multi I/O supported */
12319 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12320 .voltage = {1700, 2000},
12321 },
12322
12323 {
12324 .vendor = "Micron",
12325 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12326 .bustype = BUS_SPI,
12327 .manufacture_id = ST_ID,
12328 .model_id = ST_N25Q128__3E,
12329 .total_size = 16384,
12330 .page_size = 256,
12331 /* supports SFDP */
12332 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080012333 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12334 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012335 .probe = probe_spi_rdid,
12336 .probe_timing = TIMING_ZERO,
12337 .block_erasers =
12338 {
12339 {
12340 .eraseblocks = { {4 * 1024, 4096} },
12341 .block_erase = spi_block_erase_20,
12342 }, {
12343 .eraseblocks = { {32 * 1024, 512} },
12344 .block_erase = spi_block_erase_52,
12345 }, {
12346 .eraseblocks = { {64 * 1024, 256} },
12347 .block_erase = spi_block_erase_d8,
12348 }, {
12349 .eraseblocks = { {16384 * 1024, 1} },
12350 .block_erase = spi_block_erase_c7,
12351 }, {
12352 .eraseblocks = { {16384 * 1024, 1} },
12353 .block_erase = spi_block_erase_60,
12354 }
12355 },
12356 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12357 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12358 .write = spi_chip_write_256, /* Multi I/O supported */
12359 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12360 .voltage = {2700, 3600},
12361 },
12362
12363 {
12364 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012365 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012366 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012367 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070012368 .model_id = ST_N25Q256__3E,
12369 .total_size = 32768,
12370 .page_size = 256,
12371 /* supports SFDP */
12372 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012373 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010012374 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012375 .probe = probe_spi_rdid,
12376 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012377 .block_erasers =
12378 {
Ed Swierk199ab392017-07-03 13:33:44 -070012379 {
12380 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012381 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012382 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012383 .eraseblocks = { {4 * 1024, 8192} },
12384 .block_erase = spi_block_erase_20,
12385 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012386 .eraseblocks = { {32 * 1024, 1024} },
12387 .block_erase = spi_block_erase_5c,
12388 }, {
12389 .eraseblocks = { {32 * 1024, 1024} },
12390 .block_erase = spi_block_erase_52,
12391 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012392 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012393 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012394 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012395 .eraseblocks = { {64 * 1024, 512} },
12396 .block_erase = spi_block_erase_d8,
12397 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012398 .eraseblocks = { {32768 * 1024, 1} },
12399 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012400 }, {
12401 .eraseblocks = { {32768 * 1024, 1} },
12402 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012403 }
12404 },
12405 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12406 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12407 .write = spi_chip_write_256, /* Multi I/O supported */
12408 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12409 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012410 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012411 },
12412
12413 {
12414 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012415 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12416 .bustype = BUS_SPI,
12417 .manufacture_id = ST_ID,
12418 .model_id = ST_N25Q256__1E,
12419 .total_size = 32768,
12420 .page_size = 256,
12421 /* supports SFDP */
12422 /* OTP: 64B total; read 0x4B, write 0x42 */
12423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010012424 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012425 .probe = probe_spi_rdid,
12426 .probe_timing = TIMING_ZERO,
12427 .block_erasers =
12428 {
12429 {
12430 .eraseblocks = { {4 * 1024, 8192} },
12431 .block_erase = spi_block_erase_21,
12432 }, {
12433 .eraseblocks = { {4 * 1024, 8192} },
12434 .block_erase = spi_block_erase_20,
12435 }, {
12436 .eraseblocks = { {32 * 1024, 1024} },
12437 .block_erase = spi_block_erase_5c,
12438 }, {
12439 .eraseblocks = { {32 * 1024, 1024} },
12440 .block_erase = spi_block_erase_52,
12441 }, {
12442 .eraseblocks = { {64 * 1024, 512} },
12443 .block_erase = spi_block_erase_dc,
12444 }, {
12445 .eraseblocks = { {64 * 1024, 512} },
12446 .block_erase = spi_block_erase_d8,
12447 }, {
12448 .eraseblocks = { {32768 * 1024, 1} },
12449 .block_erase = spi_block_erase_c7,
12450 }, {
12451 .eraseblocks = { {32768 * 1024, 1} },
12452 .block_erase = spi_block_erase_60,
12453 }
12454 },
12455 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12456 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12457 .write = spi_chip_write_256, /* Multi I/O supported */
12458 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12459 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012460 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012461 },
12462
12463 {
12464 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012465 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012466 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012467 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012468 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070012469 .total_size = 65536,
12470 .page_size = 256,
12471 /* supports SFDP */
12472 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012473 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020012474 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012475 .probe = probe_spi_rdid,
12476 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012477 .block_erasers =
12478 {
Ed Swierk199ab392017-07-03 13:33:44 -070012479 {
12480 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012481 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012482 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012483 .eraseblocks = { {4 * 1024, 16384} },
12484 .block_erase = spi_block_erase_20,
12485 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012486 .eraseblocks = { {32 * 1024, 2048} },
12487 .block_erase = spi_block_erase_5c,
12488 }, {
12489 .eraseblocks = { {32 * 1024, 2048} },
12490 .block_erase = spi_block_erase_52,
12491 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012492 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012493 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012494 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012495 .eraseblocks = { {64 * 1024, 1024} },
12496 .block_erase = spi_block_erase_d8,
12497 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012498 .eraseblocks = { {65536 * 1024, 1} },
12499 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012500 }, {
12501 .eraseblocks = { {65536 * 1024, 1} },
12502 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012503 }
12504 },
12505 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12506 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12507 .write = spi_chip_write_256, /* Multi I/O supported */
12508 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12509 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012510 .reg_bits =
12511 {
12512 .srp = {STATUS1, 7, RW},
12513 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12514 .tb = {STATUS1, 5, RW},
12515 },
Nico Huberaabb3e02023-01-13 00:22:30 +010012516 .wp_write_cfg = spi_wp_write_cfg,
12517 .wp_read_cfg = spi_wp_read_cfg,
12518 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012519 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010012520 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012521 },
12522
12523 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012524 .vendor = "Micron",
12525 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12526 .bustype = BUS_SPI,
12527 .manufacture_id = ST_ID,
12528 .model_id = ST_N25Q512__1G,
12529 .total_size = 65536,
12530 .page_size = 256,
12531 /* supports SFDP */
12532 /* OTP: 64B total; read 0x4B, write 0x42 */
12533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12534 .tested = TEST_OK_PREW,
12535 .probe = probe_spi_rdid,
12536 .probe_timing = TIMING_ZERO,
12537 .block_erasers =
12538 {
12539 {
12540 .eraseblocks = { {4 * 1024, 16384} },
12541 .block_erase = spi_block_erase_21,
12542 }, {
12543 .eraseblocks = { {4 * 1024, 16384} },
12544 .block_erase = spi_block_erase_20,
12545 }, {
12546 .eraseblocks = { {32 * 1024, 2048} },
12547 .block_erase = spi_block_erase_5c,
12548 }, {
12549 .eraseblocks = { {32 * 1024, 2048} },
12550 .block_erase = spi_block_erase_52,
12551 }, {
12552 .eraseblocks = { {64 * 1024, 1024} },
12553 .block_erase = spi_block_erase_dc,
12554 }, {
12555 .eraseblocks = { {64 * 1024, 1024} },
12556 .block_erase = spi_block_erase_d8,
12557 }, {
12558 .eraseblocks = { {65536 * 1024, 1} },
12559 .block_erase = spi_block_erase_c7,
12560 }, {
12561 .eraseblocks = { {65536 * 1024, 1} },
12562 .block_erase = spi_block_erase_60,
12563 }
12564 },
12565 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12566 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12567 .write = spi_chip_write_256, /* Multi I/O supported */
12568 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12569 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012570 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012571 },
12572
12573 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012574 .vendor = "MoselVitelic",
12575 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012576 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012577 .manufacture_id = SYNCMOS_MVC_ID,
12578 .model_id = MVC_V29C51000B,
12579 .total_size = 64,
12580 .page_size = 512,
12581 .feature_bits = FEATURE_EITHER_RESET,
12582 .tested = TEST_UNTESTED,
12583 .probe = probe_jedec,
12584 .probe_timing = TIMING_ZERO,
12585 .block_erasers =
12586 {
12587 {
12588 .eraseblocks = { {512, 128} },
12589 .block_erase = erase_sector_jedec,
12590 }, {
12591 .eraseblocks = { {64 * 1024, 1} },
12592 .block_erase = erase_chip_block_jedec,
12593 },
12594 },
12595 .write = write_jedec_1,
12596 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012597 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012598 .prepare_access = prepare_memory_access,
12599 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012600 },
12601
12602 {
12603 .vendor = "MoselVitelic",
12604 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012605 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012606 .manufacture_id = SYNCMOS_MVC_ID,
12607 .model_id = MVC_V29C51000T,
12608 .total_size = 64,
12609 .page_size = 512,
12610 .feature_bits = FEATURE_EITHER_RESET,
12611 .tested = TEST_UNTESTED,
12612 .probe = probe_jedec,
12613 .probe_timing = TIMING_ZERO,
12614 .block_erasers =
12615 {
12616 {
12617 .eraseblocks = { {512, 128} },
12618 .block_erase = erase_sector_jedec,
12619 }, {
12620 .eraseblocks = { {64 * 1024, 1} },
12621 .block_erase = erase_chip_block_jedec,
12622 },
12623 },
12624 .write = write_jedec_1,
12625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012626 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012627 .prepare_access = prepare_memory_access,
12628 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012629 },
12630
12631 {
12632 .vendor = "MoselVitelic",
12633 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012634 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012635 .manufacture_id = SYNCMOS_MVC_ID,
12636 .model_id = MVC_V29C51400B,
12637 .total_size = 512,
12638 .page_size = 1024,
12639 .feature_bits = FEATURE_EITHER_RESET,
12640 .tested = TEST_UNTESTED,
12641 .probe = probe_jedec,
12642 .probe_timing = TIMING_ZERO,
12643 .block_erasers =
12644 {
12645 {
12646 .eraseblocks = { {1024, 512} },
12647 .block_erase = erase_sector_jedec,
12648 }, {
12649 .eraseblocks = { {512 * 1024, 1} },
12650 .block_erase = erase_chip_block_jedec,
12651 },
12652 },
12653 .write = write_jedec_1,
12654 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012655 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012656 .prepare_access = prepare_memory_access,
12657 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012658 },
12659
12660 {
12661 .vendor = "MoselVitelic",
12662 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012663 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012664 .manufacture_id = SYNCMOS_MVC_ID,
12665 .model_id = MVC_V29C51400T,
12666 .total_size = 512,
12667 .page_size = 1024,
12668 .feature_bits = FEATURE_EITHER_RESET,
12669 .tested = TEST_UNTESTED,
12670 .probe = probe_jedec,
12671 .probe_timing = TIMING_ZERO,
12672 .block_erasers =
12673 {
12674 {
12675 .eraseblocks = { {1024, 512} },
12676 .block_erase = erase_sector_jedec,
12677 }, {
12678 .eraseblocks = { {512 * 1024, 1} },
12679 .block_erase = erase_chip_block_jedec,
12680 },
12681 },
12682 .write = write_jedec_1,
12683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012684 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012685 .prepare_access = prepare_memory_access,
12686 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012687 },
12688
12689 {
12690 .vendor = "MoselVitelic",
12691 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012692 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012693 .manufacture_id = SYNCMOS_MVC_ID,
12694 .model_id = MVC_V29LC51000,
12695 .total_size = 64,
12696 .page_size = 512,
12697 .feature_bits = FEATURE_EITHER_RESET,
12698 .tested = TEST_UNTESTED,
12699 .probe = probe_jedec,
12700 .probe_timing = TIMING_ZERO,
12701 .block_erasers =
12702 {
12703 {
12704 .eraseblocks = { {512, 128} },
12705 .block_erase = erase_sector_jedec,
12706 }, {
12707 .eraseblocks = { {64 * 1024, 1} },
12708 .block_erase = erase_chip_block_jedec,
12709 },
12710 },
12711 .write = write_jedec_1,
12712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012713 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012714 .prepare_access = prepare_memory_access,
12715 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012716 },
12717
12718 {
12719 .vendor = "MoselVitelic",
12720 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012721 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012722 .manufacture_id = SYNCMOS_MVC_ID,
12723 .model_id = MVC_V29LC51001,
12724 .total_size = 128,
12725 .page_size = 512,
12726 .feature_bits = FEATURE_EITHER_RESET,
12727 .tested = TEST_UNTESTED,
12728 .probe = probe_jedec,
12729 .probe_timing = TIMING_ZERO,
12730 .block_erasers =
12731 {
12732 {
12733 .eraseblocks = { {512, 256} },
12734 .block_erase = erase_sector_jedec,
12735 }, {
12736 .eraseblocks = { {128 * 1024, 1} },
12737 .block_erase = erase_chip_block_jedec,
12738 },
12739 },
12740 .write = write_jedec_1,
12741 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012742 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012743 .prepare_access = prepare_memory_access,
12744 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012745 },
12746
12747 {
12748 .vendor = "MoselVitelic",
12749 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012750 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012751 .manufacture_id = SYNCMOS_MVC_ID,
12752 .model_id = MVC_V29LC51002,
12753 .total_size = 256,
12754 .page_size = 512,
12755 .feature_bits = FEATURE_EITHER_RESET,
12756 .tested = TEST_UNTESTED,
12757 .probe = probe_jedec,
12758 .probe_timing = TIMING_ZERO,
12759 .block_erasers =
12760 {
12761 {
12762 .eraseblocks = { {512, 512} },
12763 .block_erase = erase_sector_jedec,
12764 }, {
12765 .eraseblocks = { {256 * 1024, 1} },
12766 .block_erase = erase_chip_block_jedec,
12767 },
12768 },
12769 .write = write_jedec_1,
12770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012771 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012772 .prepare_access = prepare_memory_access,
12773 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012774 },
12775
12776 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012777 .vendor = "Nantronics",
12778 .name = "N25S10",
12779 .bustype = BUS_SPI,
12780 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12781 .model_id = NANTRONICS_N25S10,
12782 .total_size = 128,
12783 .page_size = 256,
12784 .feature_bits = FEATURE_WRSR_WREN,
12785 .tested = TEST_UNTESTED,
12786 .probe = probe_spi_rdid,
12787 .probe_timing = TIMING_ZERO,
12788 .block_erasers =
12789 {
12790 {
12791 .eraseblocks = { {4 * 1024, 32} },
12792 .block_erase = spi_block_erase_20,
12793 }, {
12794 .eraseblocks = { {4 * 1024, 32} },
12795 .block_erase = spi_block_erase_d7,
12796 }, {
12797 .eraseblocks = { {32 * 1024, 4} },
12798 .block_erase = spi_block_erase_52,
12799 }, {
12800 .eraseblocks = { {64 * 1024, 2} },
12801 .block_erase = spi_block_erase_d8,
12802 }, {
12803 .eraseblocks = { {128 * 1024, 1} },
12804 .block_erase = spi_block_erase_60,
12805 }, {
12806 .eraseblocks = { {128 * 1024, 1} },
12807 .block_erase = spi_block_erase_c7,
12808 }
12809 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012810 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012811 .unlock = spi_disable_blockprotect_bp3_srwd,
12812 .write = spi_chip_write_256,
12813 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12814 .voltage = {2700, 3600},
12815 },
12816
12817 {
12818 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012819 .name = "N25S16",
12820 .bustype = BUS_SPI,
12821 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12822 .model_id = NANTRONICS_N25S16,
12823 .total_size = 2048,
12824 .page_size = 256,
12825 .feature_bits = FEATURE_WRSR_WREN,
12826 .tested = TEST_UNTESTED,
12827 .probe = probe_spi_rdid,
12828 .probe_timing = TIMING_ZERO,
12829 .block_erasers =
12830 {
12831 {
12832 .eraseblocks = { {4 * 1024, 512} },
12833 .block_erase = spi_block_erase_20,
12834 }, {
12835 .eraseblocks = { {64 * 1024, 32} },
12836 .block_erase = spi_block_erase_d8,
12837 }, {
12838 .eraseblocks = { {2048 * 1024, 1} },
12839 .block_erase = spi_block_erase_60,
12840 }, {
12841 .eraseblocks = { {2048 * 1024, 1} },
12842 .block_erase = spi_block_erase_c7,
12843 }
12844 },
12845 .printlock = spi_prettyprint_status_register_bp3_srwd,
12846 .unlock = spi_disable_blockprotect_bp3_srwd,
12847 .write = spi_chip_write_256,
12848 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12849 .voltage = {2700, 3600},
12850 },
12851
12852 {
12853 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012854 .name = "N25S20",
12855 .bustype = BUS_SPI,
12856 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12857 .model_id = NANTRONICS_N25S20,
12858 .total_size = 256,
12859 .page_size = 256,
12860 .feature_bits = FEATURE_WRSR_WREN,
12861 .tested = TEST_UNTESTED,
12862 .probe = probe_spi_rdid,
12863 .probe_timing = TIMING_ZERO,
12864 .block_erasers =
12865 {
12866 {
12867 .eraseblocks = { {4 * 1024, 64} },
12868 .block_erase = spi_block_erase_20,
12869 }, {
12870 .eraseblocks = { {4 * 1024, 64} },
12871 .block_erase = spi_block_erase_d7,
12872 }, {
12873 .eraseblocks = { {32 * 1024, 8} },
12874 .block_erase = spi_block_erase_52,
12875 }, {
12876 .eraseblocks = { {64 * 1024, 4} },
12877 .block_erase = spi_block_erase_d8,
12878 }, {
12879 .eraseblocks = { {256 * 1024, 1} },
12880 .block_erase = spi_block_erase_60,
12881 }, {
12882 .eraseblocks = { {256 * 1024, 1} },
12883 .block_erase = spi_block_erase_c7,
12884 }
12885 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012886 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012887 .unlock = spi_disable_blockprotect_bp3_srwd,
12888 .write = spi_chip_write_256,
12889 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12890 .voltage = {2700, 3600},
12891 },
12892
12893 {
12894 .vendor = "Nantronics",
12895 .name = "N25S40",
12896 .bustype = BUS_SPI,
12897 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12898 .model_id = NANTRONICS_N25S40,
12899 .total_size = 512,
12900 .page_size = 256,
12901 .feature_bits = FEATURE_WRSR_WREN,
12902 .tested = TEST_UNTESTED,
12903 .probe = probe_spi_rdid,
12904 .probe_timing = TIMING_ZERO,
12905 .block_erasers =
12906 {
12907 {
12908 .eraseblocks = { {4 * 1024, 128} },
12909 .block_erase = spi_block_erase_20,
12910 }, {
12911 .eraseblocks = { {4 * 1024, 128} },
12912 .block_erase = spi_block_erase_d7,
12913 }, {
12914 .eraseblocks = { {32 * 1024, 16} },
12915 .block_erase = spi_block_erase_52,
12916 }, {
12917 .eraseblocks = { {64 * 1024, 8} },
12918 .block_erase = spi_block_erase_d8,
12919 }, {
12920 .eraseblocks = { {512 * 1024, 1} },
12921 .block_erase = spi_block_erase_60,
12922 }, {
12923 .eraseblocks = { {512 * 1024, 1} },
12924 .block_erase = spi_block_erase_c7,
12925 }
12926 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012927 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012928 .unlock = spi_disable_blockprotect_bp3_srwd,
12929 .write = spi_chip_write_256,
12930 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12931 .voltage = {2700, 3600},
12932 },
12933
12934 {
12935 .vendor = "Nantronics",
12936 .name = "N25S80",
12937 .bustype = BUS_SPI,
12938 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12939 .model_id = NANTRONICS_N25S80,
12940 .total_size = 1024,
12941 .page_size = 256,
12942 .feature_bits = FEATURE_WRSR_WREN,
12943 .tested = TEST_UNTESTED,
12944 .probe = probe_spi_rdid,
12945 .probe_timing = TIMING_ZERO,
12946 .block_erasers =
12947 {
12948 {
12949 .eraseblocks = { {4 * 1024, 256} },
12950 .block_erase = spi_block_erase_20,
12951 }, {
12952 .eraseblocks = { {32 * 1024, 32} },
12953 .block_erase = spi_block_erase_52,
12954 }, {
12955 .eraseblocks = { {64 * 1024, 16} },
12956 .block_erase = spi_block_erase_d8,
12957 }, {
12958 .eraseblocks = { {1024 * 1024, 1} },
12959 .block_erase = spi_block_erase_60,
12960 }, {
12961 .eraseblocks = { {1024 * 1024, 1} },
12962 .block_erase = spi_block_erase_c7,
12963 }
12964 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012965 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012966 .unlock = spi_disable_blockprotect_bp3_srwd,
12967 .write = spi_chip_write_256,
12968 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12969 .voltage = {2700, 3600},
12970 },
12971
12972 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012973 .vendor = "PMC",
12974 .name = "Pm25LD010(C)",
12975 .bustype = BUS_SPI,
12976 .manufacture_id = PMC_ID,
12977 .model_id = PMC_PM25LD010,
12978 .total_size = 128,
12979 .page_size = 256,
12980 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012981 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012982 .probe = probe_spi_rdid,
12983 .probe_timing = TIMING_ZERO,
12984 .block_erasers =
12985 {
12986 {
12987 .eraseblocks = { {4 * 1024, 32} },
12988 .block_erase = spi_block_erase_20,
12989 }, {
12990 .eraseblocks = { {4 * 1024, 32} },
12991 .block_erase = spi_block_erase_d7,
12992 }, {
12993 .eraseblocks = { {32 * 1024, 4} },
12994 .block_erase = spi_block_erase_d8,
12995 }, {
12996 .eraseblocks = { {128 * 1024, 1} },
12997 .block_erase = spi_block_erase_60,
12998 }, {
12999 .eraseblocks = { {128 * 1024, 1} },
13000 .block_erase = spi_block_erase_c7,
13001 }
13002 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013003 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000013004 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13005 .write = spi_chip_write_256,
13006 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13007 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
13008 },
13009
13010 {
13011 .vendor = "PMC",
13012 .name = "Pm25LD020(C)",
13013 .bustype = BUS_SPI,
13014 .manufacture_id = PMC_ID,
13015 .model_id = PMC_PM25LD020,
13016 .total_size = 256,
13017 .page_size = 256,
13018 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020013019 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000013020 .probe = probe_spi_rdid,
13021 .probe_timing = TIMING_ZERO,
13022 .block_erasers =
13023 {
13024 {
13025 .eraseblocks = { {4 * 1024, 64} },
13026 .block_erase = spi_block_erase_20,
13027 }, {
13028 .eraseblocks = { {4 * 1024, 64} },
13029 .block_erase = spi_block_erase_d7,
13030 }, {
13031 .eraseblocks = { {64 * 1024, 4} },
13032 .block_erase = spi_block_erase_d8,
13033 }, {
13034 .eraseblocks = { {256 * 1024, 1} },
13035 .block_erase = spi_block_erase_60,
13036 }, {
13037 .eraseblocks = { {256 * 1024, 1} },
13038 .block_erase = spi_block_erase_c7,
13039 }
13040 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013041 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000013042 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13043 .write = spi_chip_write_256,
13044 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13045 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
13046 },
13047
13048 {
13049 .vendor = "PMC",
13050 .name = "Pm25LD040(C)",
13051 .bustype = BUS_SPI,
13052 .manufacture_id = PMC_ID,
13053 .model_id = PMC_PM25LV040,
13054 .total_size = 512,
13055 .page_size = 256,
13056 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020013057 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000013058 .probe = probe_spi_rdid,
13059 .probe_timing = TIMING_ZERO,
13060 .block_erasers =
13061 {
13062 {
13063 .eraseblocks = { {4 * 1024, 128} },
13064 .block_erase = spi_block_erase_20,
13065 }, {
13066 .eraseblocks = { {4 * 1024, 128} },
13067 .block_erase = spi_block_erase_d7,
13068 }, {
13069 .eraseblocks = { {64 * 1024, 8} },
13070 .block_erase = spi_block_erase_d8,
13071 }, {
13072 .eraseblocks = { {512 * 1024, 1} },
13073 .block_erase = spi_block_erase_60,
13074 }, {
13075 .eraseblocks = { {512 * 1024, 1} },
13076 .block_erase = spi_block_erase_c7,
13077 }
13078 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013079 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000013080 .unlock = spi_disable_blockprotect,
13081 .write = spi_chip_write_256,
13082 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13083 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
13084 },
13085
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013086 {
13087 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013088 .name = "Pm25LD256C",
13089 .bustype = BUS_SPI,
13090 .manufacture_id = PMC_ID,
13091 .model_id = PMC_PM25LD256C,
13092 .total_size = 32,
13093 .page_size = 256,
13094 .feature_bits = FEATURE_WRSR_WREN,
13095 .tested = TEST_UNTESTED,
13096 .probe = probe_spi_rdid,
13097 .probe_timing = TIMING_ZERO,
13098 .block_erasers =
13099 {
13100 {
13101 .eraseblocks = { {4 * 1024, 8} },
13102 .block_erase = spi_block_erase_20,
13103 }, {
13104 .eraseblocks = { {4 * 1024, 8} },
13105 .block_erase = spi_block_erase_d7,
13106 }, {
13107 .eraseblocks = { {32 * 1024, 1} },
13108 .block_erase = spi_block_erase_d8,
13109 }, {
13110 .eraseblocks = { {32 * 1024, 1} },
13111 .block_erase = spi_block_erase_60,
13112 }, {
13113 .eraseblocks = { {32 * 1024, 1} },
13114 .block_erase = spi_block_erase_c7,
13115 }
13116 },
13117 .printlock = spi_prettyprint_status_register_bp2_srwd,
13118 .unlock = spi_disable_blockprotect,
13119 .write = spi_chip_write_256,
13120 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13121 .voltage = {2700, 3600},
13122 },
13123
13124 {
13125 .vendor = "PMC",
13126 .name = "Pm25LD512(C)",
13127 .bustype = BUS_SPI,
13128 .manufacture_id = PMC_ID,
13129 .model_id = PMC_PM25LD512,
13130 .total_size = 64,
13131 .page_size = 256,
13132 .feature_bits = FEATURE_WRSR_WREN,
13133 .tested = TEST_OK_PREW,
13134 .probe = probe_spi_rdid,
13135 .probe_timing = TIMING_ZERO,
13136 .block_erasers =
13137 {
13138 {
13139 .eraseblocks = { {4 * 1024, 16} },
13140 .block_erase = spi_block_erase_20,
13141 }, {
13142 .eraseblocks = { {4 * 1024, 16} },
13143 .block_erase = spi_block_erase_d7,
13144 }, {
13145 .eraseblocks = { {32 * 1024, 2} },
13146 .block_erase = spi_block_erase_d8,
13147 }, {
13148 .eraseblocks = { {64 * 1024, 1} },
13149 .block_erase = spi_block_erase_60,
13150 }, {
13151 .eraseblocks = { {64 * 1024, 1} },
13152 .block_erase = spi_block_erase_c7,
13153 }
13154 },
13155 .printlock = spi_prettyprint_status_register_bp2_srwd,
13156 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13157 .write = spi_chip_write_256,
13158 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13159 .voltage = {2300, 3600},
13160 },
13161
13162 {
13163 .vendor = "PMC",
13164 .name = "Pm25LQ016",
13165 .bustype = BUS_SPI,
13166 .manufacture_id = PMC_ID,
13167 .model_id = PMC_PM25LQ016,
13168 .total_size = 2048,
13169 .page_size = 256,
13170 /* OTP: 256B total; read 0x4B, write 0xB1 */
13171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13172 .tested = TEST_UNTESTED,
13173 .probe = probe_spi_rdid,
13174 .probe_timing = TIMING_ZERO,
13175 .block_erasers =
13176 {
13177 {
13178 .eraseblocks = { {4 * 1024, 512} },
13179 .block_erase = spi_block_erase_20,
13180 }, {
13181 .eraseblocks = { {4 * 1024, 512} },
13182 .block_erase = spi_block_erase_d7,
13183 }, {
13184 .eraseblocks = { {64 * 1024, 32} },
13185 .block_erase = spi_block_erase_d8,
13186 }, {
13187 .eraseblocks = { {2048 * 1024, 1} },
13188 .block_erase = spi_block_erase_60,
13189 }, {
13190 .eraseblocks = { {2048 * 1024, 1} },
13191 .block_erase = spi_block_erase_c7,
13192 }
13193 },
13194 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13195 .unlock = spi_disable_blockprotect_bp3_srwd,
13196 .write = spi_chip_write_256,
13197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13198 .voltage = {2300, 3600},
13199 },
13200
13201 {
13202 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013203 .name = "Pm25LQ020",
13204 .bustype = BUS_SPI,
13205 .manufacture_id = PMC_ID,
13206 .model_id = PMC_PM25LQ020,
13207 .total_size = 256,
13208 .page_size = 256,
13209 /* OTP: 256B total; read 0x4B, write 0xB1 */
13210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13211 .tested = TEST_UNTESTED,
13212 .probe = probe_spi_rdid,
13213 .probe_timing = TIMING_ZERO,
13214 .block_erasers =
13215 {
13216 {
13217 .eraseblocks = { {4 * 1024, 64} },
13218 .block_erase = spi_block_erase_20,
13219 }, {
13220 .eraseblocks = { {4 * 1024, 64} },
13221 .block_erase = spi_block_erase_d7,
13222 }, {
13223 .eraseblocks = { {64 * 1024, 4} },
13224 .block_erase = spi_block_erase_d8,
13225 }, {
13226 .eraseblocks = { {256 * 1024, 1} },
13227 .block_erase = spi_block_erase_60,
13228 }, {
13229 .eraseblocks = { {256 * 1024, 1} },
13230 .block_erase = spi_block_erase_c7,
13231 }
13232 },
13233 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13234 .unlock = spi_disable_blockprotect_bp3_srwd,
13235 .write = spi_chip_write_256,
13236 .read = spi_chip_read,
13237 .voltage = {2300, 3600},
13238 },
13239
13240 {
13241 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013242 .name = "Pm25LQ032C",
13243 .bustype = BUS_SPI,
13244 .manufacture_id = PMC_ID,
13245 .model_id = PMC_PM25LQ032C,
13246 .total_size = 4096,
13247 .page_size = 256,
13248 /* OTP: 64B total; read 0x4B, write 0xB1 */
13249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13250 .tested = TEST_OK_PREW,
13251 .probe = probe_spi_rdid,
13252 .probe_timing = TIMING_ZERO,
13253 .block_erasers =
13254 {
13255 {
13256 .eraseblocks = { {4 * 1024, 1024} },
13257 .block_erase = spi_block_erase_20,
13258 }, {
13259 .eraseblocks = { {4 * 1024, 1024} },
13260 .block_erase = spi_block_erase_d7,
13261 }, {
13262 .eraseblocks = { {64 * 1024, 64} },
13263 .block_erase = spi_block_erase_d8,
13264 }, {
13265 .eraseblocks = { {4096 * 1024, 1} },
13266 .block_erase = spi_block_erase_60,
13267 }, {
13268 .eraseblocks = { {4096 * 1024, 1} },
13269 .block_erase = spi_block_erase_c7,
13270 }
13271 },
13272 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13273 .unlock = spi_disable_blockprotect_bp3_srwd,
13274 .write = spi_chip_write_256,
13275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13276 .voltage = {2700, 3600},
13277 },
13278
13279 {
13280 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013281 .name = "Pm25LQ040",
13282 .bustype = BUS_SPI,
13283 .manufacture_id = PMC_ID,
13284 .model_id = PMC_PM25LQ040,
13285 .total_size = 512,
13286 .page_size = 256,
13287 /* OTP: 256B total; read 0x4B, write 0xB1 */
13288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13289 .tested = TEST_UNTESTED,
13290 .probe = probe_spi_rdid,
13291 .probe_timing = TIMING_ZERO,
13292 .block_erasers =
13293 {
13294 {
13295 .eraseblocks = { {4 * 1024, 128} },
13296 .block_erase = spi_block_erase_20,
13297 }, {
13298 .eraseblocks = { {4 * 1024, 128} },
13299 .block_erase = spi_block_erase_d7,
13300 }, {
13301 .eraseblocks = { {64 * 1024, 8} },
13302 .block_erase = spi_block_erase_d8,
13303 }, {
13304 .eraseblocks = { {512 * 1024, 1} },
13305 .block_erase = spi_block_erase_60,
13306 }, {
13307 .eraseblocks = { {512 * 1024, 1} },
13308 .block_erase = spi_block_erase_c7,
13309 }
13310 },
13311 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13312 .unlock = spi_disable_blockprotect_bp3_srwd,
13313 .write = spi_chip_write_256,
13314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13315 .voltage = {2300, 3600},
13316 },
13317
13318 {
13319 .vendor = "PMC",
13320 .name = "Pm25LQ080",
13321 .bustype = BUS_SPI,
13322 .manufacture_id = PMC_ID,
13323 .model_id = PMC_PM25LQ080,
13324 .total_size = 1024,
13325 .page_size = 256,
13326 /* OTP: 64B total; read 0x4B, write 0xB1 */
13327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13328 .tested = TEST_UNTESTED,
13329 .probe = probe_spi_rdid,
13330 .probe_timing = TIMING_ZERO,
13331 .block_erasers =
13332 {
13333 {
13334 .eraseblocks = { {4 * 1024, 256} },
13335 .block_erase = spi_block_erase_20,
13336 }, {
13337 .eraseblocks = { {4 * 1024, 256} },
13338 .block_erase = spi_block_erase_d7,
13339 }, {
13340 .eraseblocks = { {64 * 1024, 16} },
13341 .block_erase = spi_block_erase_d8,
13342 }, {
13343 .eraseblocks = { {1024 * 1024, 1} },
13344 .block_erase = spi_block_erase_60,
13345 }, {
13346 .eraseblocks = { {1024 * 1024, 1} },
13347 .block_erase = spi_block_erase_c7,
13348 }
13349 },
13350 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13351 .unlock = spi_disable_blockprotect_bp3_srwd,
13352 .write = spi_chip_write_256,
13353 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13354 .voltage = {2300, 3600},
13355 },
13356
13357 {
13358 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013359 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013360 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000013361 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013362 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013363 .total_size = 128,
13364 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013365 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000013366 .tested = TEST_OK_PREW,
13367 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013368 .probe_timing = TIMING_ZERO,
13369 .block_erasers =
13370 {
13371 {
13372 .eraseblocks = { {4 * 1024, 32} },
13373 .block_erase = spi_block_erase_d7,
13374 }, {
13375 .eraseblocks = { {32 * 1024, 4} },
13376 .block_erase = spi_block_erase_d8,
13377 }, {
13378 .eraseblocks = { {128 * 1024, 1} },
13379 .block_erase = spi_block_erase_c7,
13380 }
13381 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013382 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013383 .unlock = spi_disable_blockprotect,
13384 .write = spi_chip_write_256,
13385 .read = spi_chip_read, /* Fast read (0x0B) supported */
13386 .voltage = {2700, 3600},
13387 },
13388
13389 {
13390 .vendor = "PMC",
13391 .name = "Pm25LV010A",
13392 .bustype = BUS_SPI,
13393 .manufacture_id = PMC_ID,
13394 .model_id = PMC_PM25LV010,
13395 .total_size = 128,
13396 .page_size = 256,
13397 .feature_bits = FEATURE_WRSR_WREN,
13398 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013400 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013401 .block_erasers =
13402 {
13403 {
13404 .eraseblocks = { {4 * 1024, 32} },
13405 .block_erase = spi_block_erase_d7,
13406 }, {
13407 .eraseblocks = { {32 * 1024, 4} },
13408 .block_erase = spi_block_erase_d8,
13409 }, {
13410 .eraseblocks = { {128 * 1024, 1} },
13411 .block_erase = spi_block_erase_c7,
13412 }
13413 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013414 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013416 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013417 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013418 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013419 },
13420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013421 {
13422 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013423 .name = "Pm25LV016B",
13424 .bustype = BUS_SPI,
13425 .manufacture_id = PMC_ID,
13426 .model_id = PMC_PM25LV016B,
13427 .total_size = 2048,
13428 .page_size = 256,
13429 .feature_bits = FEATURE_WRSR_WREN,
13430 .tested = TEST_UNTESTED,
13431 .probe = probe_spi_rdid,
13432 .probe_timing = TIMING_ZERO,
13433 .block_erasers =
13434 {
13435 {
13436 .eraseblocks = { {4 * 1024, 512} },
13437 .block_erase = spi_block_erase_d7,
13438 }, {
13439 .eraseblocks = { {4 * 1024, 512} },
13440 .block_erase = spi_block_erase_20,
13441 }, {
13442 .eraseblocks = { {64 * 1024, 32} },
13443 .block_erase = spi_block_erase_d8,
13444 }, {
13445 .eraseblocks = { {2 * 1024 * 1024, 1} },
13446 .block_erase = spi_block_erase_60,
13447 }, {
13448 .eraseblocks = { {2 * 1024 * 1024, 1} },
13449 .block_erase = spi_block_erase_c7,
13450 }
13451 },
13452 .printlock = spi_prettyprint_status_register_bp2_srwd,
13453 .unlock = spi_disable_blockprotect,
13454 .write = spi_chip_write_256,
13455 .read = spi_chip_read, /* Fast read (0x0B) supported */
13456 .voltage = {2700, 3600},
13457 },
13458
13459 {
13460 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013461 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013462 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013463 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013464 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013465 .total_size = 256,
13466 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013467 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013468 .tested = TEST_UNTESTED,
13469 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013470 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013471 .block_erasers =
13472 {
13473 {
13474 .eraseblocks = { {4 * 1024, 64} },
13475 .block_erase = spi_block_erase_d7,
13476 }, {
13477 .eraseblocks = { {64 * 1024, 4} },
13478 .block_erase = spi_block_erase_d8,
13479 }, {
13480 .eraseblocks = { {256 * 1024, 1} },
13481 .block_erase = spi_block_erase_c7,
13482 }
13483 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013484 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013485 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013486 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013487 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013488 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013489 },
13490
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013491 {
13492 .vendor = "PMC",
13493 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013494 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013495 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013496 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013497 .total_size = 512,
13498 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013499 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000013500 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013501 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013502 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013503 .block_erasers =
13504 {
13505 {
13506 .eraseblocks = { {4 * 1024, 128} },
13507 .block_erase = spi_block_erase_d7,
13508 }, {
13509 .eraseblocks = { {64 * 1024, 8} },
13510 .block_erase = spi_block_erase_d8,
13511 }, {
13512 .eraseblocks = { {512 * 1024, 1} },
13513 .block_erase = spi_block_erase_c7,
13514 }
13515 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013516 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013517 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013518 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013519 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013520 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013521 },
13522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013523 {
13524 .vendor = "PMC",
13525 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013526 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013527 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013528 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013529 .total_size = 1024,
13530 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013531 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013532 .tested = TEST_UNTESTED,
13533 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013534 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013535 .block_erasers =
13536 {
13537 {
13538 .eraseblocks = { {4 * 1024, 256} },
13539 .block_erase = spi_block_erase_d7,
13540 }, {
13541 .eraseblocks = { {4 * 1024, 256} },
13542 .block_erase = spi_block_erase_20,
13543 }, {
13544 .eraseblocks = { {64 * 1024, 16} },
13545 .block_erase = spi_block_erase_d8,
13546 }, {
13547 .eraseblocks = { {1024 * 1024, 1} },
13548 .block_erase = spi_block_erase_60,
13549 }, {
13550 .eraseblocks = { {1024 * 1024, 1} },
13551 .block_erase = spi_block_erase_c7,
13552 }
13553 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013554 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013555 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013556 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013557 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013558 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013559 },
13560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013561 {
13562 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013563 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013564 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013565 .manufacture_id = PMC_ID_NOPREFIX,
13566 .model_id = PMC_PM25LV512,
13567 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013568 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013569 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013570 .tested = TEST_OK_PREW,
13571 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013572 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013573 .block_erasers =
13574 {
13575 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013576 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013577 .block_erase = spi_block_erase_d7,
13578 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013579 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013580 .block_erase = spi_block_erase_d8,
13581 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013582 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013583 .block_erase = spi_block_erase_c7,
13584 }
13585 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013586 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013587 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013588 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013589 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013590 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013591 },
13592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013593 {
13594 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013595 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013596 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013597 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013598 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013599 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013600 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013603 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013604 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013605 .block_erasers =
13606 {
13607 {
13608 .eraseblocks = {
13609 {16 * 1024, 1},
13610 {8 * 1024, 2},
13611 {96 * 1024, 1},
13612 {128 * 1024, 1},
13613 },
Sean Nelson35727f72010-01-28 23:55:12 +000013614 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013615 }, {
13616 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013617 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013618 },
13619 },
Sean Nelson35727f72010-01-28 23:55:12 +000013620 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013621 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013622 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013623 .prepare_access = prepare_memory_access,
13624 .finish_access = finish_memory_access,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013625 },
13626
13627 {
13628 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013629 .name = "Pm29F002T",
13630 .bustype = BUS_PARALLEL,
13631 .manufacture_id = PMC_ID_NOPREFIX,
13632 .model_id = PMC_PM29F002T,
13633 .total_size = 256,
13634 .page_size = 8 * 1024,
13635 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13636 .tested = TEST_OK_PREW,
13637 .probe = probe_jedec,
13638 .probe_timing = TIMING_FIXME,
13639 .block_erasers =
13640 {
13641 {
13642 .eraseblocks = {
13643 {128 * 1024, 1},
13644 {96 * 1024, 1},
13645 {8 * 1024, 2},
13646 {16 * 1024, 1},
13647 },
13648 .block_erase = erase_sector_jedec,
13649 }, {
13650 .eraseblocks = { {256 * 1024, 1} },
13651 .block_erase = erase_chip_block_jedec,
13652 },
13653 },
13654 .write = write_jedec_1,
13655 .read = read_memmapped,
13656 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013657 .prepare_access = prepare_memory_access,
13658 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013659 },
13660
13661 {
13662 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013663 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013664 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013665 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013666 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013667 .total_size = 128,
13668 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013669 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013670 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013671 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013672 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013673 .block_erasers =
13674 {
13675 {
13676 .eraseblocks = { {4 * 1024, 32} },
13677 .block_erase = erase_sector_jedec,
13678 }, {
13679 .eraseblocks = { {64 * 1024, 2} },
13680 .block_erase = erase_block_jedec,
13681 }, {
13682 .eraseblocks = { {128 * 1024, 1} },
13683 .block_erase = erase_chip_block_jedec,
13684 }
13685 },
Sean Nelson35727f72010-01-28 23:55:12 +000013686 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013687 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013688 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013689 .prepare_access = prepare_memory_access,
13690 .finish_access = finish_memory_access,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013691 },
13692
13693 {
13694 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013695 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013696 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013697 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013698 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013699 .total_size = 256,
13700 .page_size = 4096,
13701 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13702 .tested = TEST_UNTESTED,
13703 .probe = probe_jedec,
13704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013705 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013706 {
13707 {
13708 .eraseblocks = { {4 * 1024, 64} },
13709 .block_erase = erase_sector_jedec,
13710 }, {
13711 .eraseblocks = { {64 * 1024, 4} },
13712 .block_erase = erase_block_jedec,
13713 }, {
13714 .eraseblocks = { {256 * 1024, 1} },
13715 .block_erase = erase_chip_block_jedec,
13716 }
13717 },
13718 .write = write_jedec_1,
13719 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013720 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013721 .prepare_access = prepare_memory_access,
13722 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013723 },
13724
13725 {
13726 .vendor = "PMC",
13727 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013728 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013729 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013730 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013731 .total_size = 512,
13732 .page_size = 4096,
13733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013734 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013735 .probe = probe_jedec,
13736 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013737 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013738 {
13739 {
13740 .eraseblocks = { {4 * 1024, 128} },
13741 .block_erase = erase_sector_jedec,
13742 }, {
13743 .eraseblocks = { {64 * 1024, 8} },
13744 .block_erase = erase_block_jedec,
13745 }, {
13746 .eraseblocks = { {512 * 1024, 1} },
13747 .block_erase = erase_chip_block_jedec,
13748 }
13749 },
13750 .write = write_jedec_1,
13751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013752 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013753 .prepare_access = prepare_memory_access,
13754 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013755 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013756
13757 {
13758 .vendor = "PMC",
13759 .name = "Pm39LV512",
13760 .bustype = BUS_PARALLEL,
13761 .manufacture_id = PMC_ID_NOPREFIX,
13762 .model_id = PMC_PM39LV512,
13763 .total_size = 64,
13764 .page_size = 4096,
13765 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13766 .tested = TEST_OK_PREW,
13767 .probe = probe_jedec,
13768 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13769 .block_erasers =
13770 {
13771 {
13772 .eraseblocks = { {4 * 1024, 16} },
13773 .block_erase = erase_sector_jedec,
13774 }, {
13775 .eraseblocks = { {64 * 1024, 1} },
13776 .block_erase = erase_block_jedec,
13777 }, {
13778 .eraseblocks = { {64 * 1024, 1} },
13779 .block_erase = erase_chip_block_jedec,
13780 }
13781 },
13782 .write = write_jedec_1,
13783 .read = read_memmapped,
13784 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013785 .prepare_access = prepare_memory_access,
13786 .finish_access = finish_memory_access,
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013787 },
13788
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013789 {
13790 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013791 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013792 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013793 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013794 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013795 .total_size = 256,
13796 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013797 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013798 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013799 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013800 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013801 .block_erasers =
13802 {
13803 {
13804 .eraseblocks = { {4 * 1024, 64} },
13805 .block_erase = erase_sector_jedec,
13806 }, {
13807 .eraseblocks = { {16 * 1024, 16} },
13808 .block_erase = erase_block_jedec,
13809 }, {
13810 .eraseblocks = { {256 * 1024, 1} },
13811 .block_erase = erase_chip_block_jedec,
13812 }
13813 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013814 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013817 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013818 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013819 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013820 },
13821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013822 {
13823 .vendor = "PMC",
13824 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013825 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013826 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013827 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013828 .total_size = 512,
13829 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013830 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013831 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013832 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013833 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013834 .block_erasers =
13835 {
13836 {
13837 .eraseblocks = { {4 * 1024, 128} },
13838 .block_erase = erase_sector_jedec,
13839 }, {
13840 .eraseblocks = { {64 * 1024, 8} },
13841 .block_erase = erase_block_jedec,
13842 }, {
13843 .eraseblocks = { {512 * 1024, 1} },
13844 .block_erase = erase_chip_block_jedec,
13845 }
13846 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013847 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013848 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013850 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013851 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013852 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013853 },
13854
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013855 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013856 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013857 .name = "SST25LF020A",
13858 .bustype = BUS_SPI,
13859 .manufacture_id = SST_ID,
13860 .model_id = SST_SST25VF020_REMS,
13861 .total_size = 256,
13862 .page_size = 256,
13863 .feature_bits = FEATURE_WRSR_EWSR,
13864 .tested = TEST_OK_PREW,
13865 .probe = probe_spi_rems,
13866 .probe_timing = TIMING_ZERO,
13867 .block_erasers =
13868 {
13869 {
13870 .eraseblocks = { {4 * 1024, 64} },
13871 .block_erase = spi_block_erase_20,
13872 }, {
13873 .eraseblocks = { {32 * 1024, 8} },
13874 .block_erase = spi_block_erase_52,
13875 }, {
13876 .eraseblocks = { {256 * 1024, 1} },
13877 .block_erase = spi_block_erase_60,
13878 },
13879 },
13880 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13881 .unlock = spi_disable_blockprotect,
13882 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13883 .read = spi_chip_read, /* Fast read (0x0B) supported */
13884 .voltage = {2700, 3600},
13885 },
13886
13887 {
13888 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013889 .name = "SST25LF040A",
13890 .bustype = BUS_SPI,
13891 .manufacture_id = SST_ID,
13892 .model_id = SST_SST25VF040_REMS,
13893 .total_size = 512,
13894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013895 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013896 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013897 .probe = probe_spi_res2,
13898 .probe_timing = TIMING_ZERO,
13899 .block_erasers =
13900 {
13901 {
13902 .eraseblocks = { {4 * 1024, 128} },
13903 .block_erase = spi_block_erase_20,
13904 }, {
13905 .eraseblocks = { {32 * 1024, 16} },
13906 .block_erase = spi_block_erase_52,
13907 }, {
13908 .eraseblocks = { {512 * 1024, 1} },
13909 .block_erase = spi_block_erase_60,
13910 },
13911 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013912 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013913 .unlock = spi_disable_blockprotect,
13914 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13915 .read = spi_chip_read,
13916 .voltage = {3000, 3600},
13917 },
13918
13919 {
13920 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013921 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013922 .bustype = BUS_SPI,
13923 .manufacture_id = SST_ID,
13924 .model_id = SST_SST25VF080_REMS,
13925 .total_size = 1024,
13926 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013927 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013928 .tested = TEST_UNTESTED,
13929 .probe = probe_spi_res2,
13930 .probe_timing = TIMING_ZERO,
13931 .block_erasers =
13932 {
13933 {
13934 .eraseblocks = { {4 * 1024, 256} },
13935 .block_erase = spi_block_erase_20,
13936 }, {
13937 .eraseblocks = { {32 * 1024, 32} },
13938 .block_erase = spi_block_erase_52,
13939 }, {
13940 .eraseblocks = { {1024 * 1024, 1} },
13941 .block_erase = spi_block_erase_60,
13942 },
13943 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013944 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013945 .unlock = spi_disable_blockprotect,
13946 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13947 .read = spi_chip_read,
13948 .voltage = {3000, 3600},
13949 },
13950
13951 {
13952 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013953 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013954 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013955 .manufacture_id = SST_ID,
13956 .model_id = SST_SST25VF010_REMS,
13957 .total_size = 128,
13958 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013959 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013960 .tested = TEST_OK_PREW,
13961 .probe = probe_spi_rems,
13962 .probe_timing = TIMING_ZERO,
13963 .block_erasers =
13964 {
13965 {
13966 .eraseblocks = { {4 * 1024, 32} },
13967 .block_erase = spi_block_erase_20,
13968 }, {
13969 .eraseblocks = { {32 * 1024, 4} },
13970 .block_erase = spi_block_erase_52,
13971 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013972 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013973 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013974 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013975 .eraseblocks = { {128 * 1024, 1} },
13976 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013977 }, {
13978 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013979 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013980 },
13981 },
13982 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13983 .unlock = spi_disable_blockprotect,
13984 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013985 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013986 .voltage = {2700, 3600},
13987 },
13988
13989 {
13990 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013991 .name = "SST25VF016B",
13992 .bustype = BUS_SPI,
13993 .manufacture_id = SST_ID,
13994 .model_id = SST_SST25VF016B,
13995 .total_size = 2048,
13996 .page_size = 256,
13997 .feature_bits = FEATURE_WRSR_EITHER,
13998 .tested = TEST_OK_PREW,
13999 .probe = probe_spi_rdid,
14000 .probe_timing = TIMING_ZERO,
14001 .block_erasers =
14002 {
14003 {
14004 .eraseblocks = { {4 * 1024, 512} },
14005 .block_erase = spi_block_erase_20,
14006 }, {
14007 .eraseblocks = { {32 * 1024, 64} },
14008 .block_erase = spi_block_erase_52,
14009 }, {
14010 .eraseblocks = { {64 * 1024, 32} },
14011 .block_erase = spi_block_erase_d8,
14012 }, {
14013 .eraseblocks = { {2 * 1024 * 1024, 1} },
14014 .block_erase = spi_block_erase_60,
14015 }, {
14016 .eraseblocks = { {2 * 1024 * 1024, 1} },
14017 .block_erase = spi_block_erase_c7,
14018 },
14019 },
14020 .printlock = spi_prettyprint_status_register_sst25vf016,
14021 .unlock = spi_disable_blockprotect,
14022 .write = spi_aai_write,
14023 .read = spi_chip_read,
14024 .voltage = {2700, 3600},
14025 },
14026
14027 {
14028 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014029 .name = "SST25VF020",
14030 .bustype = BUS_SPI,
14031 .manufacture_id = SST_ID,
14032 .model_id = SST_SST25VF020_REMS,
14033 .total_size = 256,
14034 .page_size = 256,
14035 .feature_bits = FEATURE_WRSR_EWSR,
14036 .tested = TEST_UNTESTED,
14037 .probe = probe_spi_rems,
14038 .probe_timing = TIMING_ZERO,
14039 .block_erasers =
14040 {
14041 {
14042 .eraseblocks = { {4 * 1024, 64} },
14043 .block_erase = spi_block_erase_20,
14044 }, {
14045 .eraseblocks = { {32 * 1024, 8} },
14046 .block_erase = spi_block_erase_52,
14047 }, {
14048 .eraseblocks = { {256 * 1024, 1} },
14049 .block_erase = spi_block_erase_60,
14050 },
14051 },
14052 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14053 .unlock = spi_disable_blockprotect,
14054 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14055 .read = spi_chip_read, /* only */
14056 .voltage = {2700, 3600},
14057 },
14058
14059 {
14060 .vendor = "SST",
14061 .name = "SST25VF020B",
14062 .bustype = BUS_SPI,
14063 .manufacture_id = SST_ID,
14064 .model_id = SST_SST25VF020B,
14065 .total_size = 256,
14066 .page_size = 256,
14067 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014068 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000014069 .probe = probe_spi_rdid,
14070 .probe_timing = TIMING_ZERO,
14071 .block_erasers =
14072 {
14073 {
14074 .eraseblocks = { {4 * 1024, 64} },
14075 .block_erase = spi_block_erase_20,
14076 }, {
14077 .eraseblocks = { {32 * 1024, 8} },
14078 .block_erase = spi_block_erase_52,
14079 }, {
14080 .eraseblocks = { {64 * 1024, 4} },
14081 .block_erase = spi_block_erase_d8,
14082 }, {
14083 .eraseblocks = { {256 * 1024, 1} },
14084 .block_erase = spi_block_erase_60,
14085 }, {
14086 .eraseblocks = { {256 * 1024, 1} },
14087 .block_erase = spi_block_erase_c7,
14088 },
14089 },
14090 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
14091 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
14092 .write = spi_aai_write, /* AAI supported (0xAD) */
14093 .read = spi_chip_read, /* Fast read (0x0B) supported */
14094 .voltage = {2700, 3600},
14095 },
14096
14097 {
14098 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014099 .name = "SST25VF032B",
14100 .bustype = BUS_SPI,
14101 .manufacture_id = SST_ID,
14102 .model_id = SST_SST25VF032B,
14103 .total_size = 4096,
14104 .page_size = 256,
14105 .feature_bits = FEATURE_WRSR_EWSR,
14106 .tested = TEST_OK_PREW,
14107 .probe = probe_spi_rdid,
14108 .probe_timing = TIMING_ZERO,
14109 .block_erasers =
14110 {
14111 {
14112 .eraseblocks = { {4 * 1024, 1024} },
14113 .block_erase = spi_block_erase_20,
14114 }, {
14115 .eraseblocks = { {32 * 1024, 128} },
14116 .block_erase = spi_block_erase_52,
14117 }, {
14118 .eraseblocks = { {64 * 1024, 64} },
14119 .block_erase = spi_block_erase_d8,
14120 }, {
14121 .eraseblocks = { {4 * 1024 * 1024, 1} },
14122 .block_erase = spi_block_erase_60,
14123 }, {
14124 .eraseblocks = { {4 * 1024 * 1024, 1} },
14125 .block_erase = spi_block_erase_c7,
14126 },
14127 },
14128 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14129 .unlock = spi_disable_blockprotect,
14130 .write = spi_aai_write,
14131 .read = spi_chip_read,
14132 .voltage = {2700, 3600},
14133 },
14134
14135 {
14136 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014137 .name = "SST25VF040",
14138 .bustype = BUS_SPI,
14139 .manufacture_id = SST_ID,
14140 .model_id = SST_SST25VF040_REMS,
14141 .total_size = 512,
14142 .page_size = 256,
14143 .feature_bits = FEATURE_WRSR_EWSR,
14144 .tested = TEST_OK_PR,
14145 .probe = probe_spi_rems,
14146 .probe_timing = TIMING_ZERO,
14147 .block_erasers =
14148 {
14149 {
14150 .eraseblocks = { {4 * 1024, 128} },
14151 .block_erase = spi_block_erase_20,
14152 }, {
14153 .eraseblocks = { {32 * 1024, 16} },
14154 .block_erase = spi_block_erase_52,
14155 }, {
14156 .eraseblocks = { {512 * 1024, 1} },
14157 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000014158 },
14159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014160 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000014161 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000014162 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14163 .read = spi_chip_read,
14164 .voltage = {2700, 3600},
14165 },
14166
14167 {
14168 .vendor = "SST",
14169 .name = "SST25VF040B",
14170 .bustype = BUS_SPI,
14171 .manufacture_id = SST_ID,
14172 .model_id = SST_SST25VF040B,
14173 .total_size = 512,
14174 .page_size = 256,
14175 .feature_bits = FEATURE_WRSR_EWSR,
14176 .tested = TEST_OK_PREW,
14177 .probe = probe_spi_rdid,
14178 .probe_timing = TIMING_ZERO,
14179 .block_erasers =
14180 {
14181 {
14182 .eraseblocks = { {4 * 1024, 128} },
14183 .block_erase = spi_block_erase_20,
14184 }, {
14185 .eraseblocks = { {32 * 1024, 16} },
14186 .block_erase = spi_block_erase_52,
14187 }, {
14188 .eraseblocks = { {64 * 1024, 8} },
14189 .block_erase = spi_block_erase_d8,
14190 }, {
14191 .eraseblocks = { {512 * 1024, 1} },
14192 .block_erase = spi_block_erase_60,
14193 }, {
14194 .eraseblocks = { {512 * 1024, 1} },
14195 .block_erase = spi_block_erase_c7,
14196 },
14197 },
14198 .printlock = spi_prettyprint_status_register_sst25vf040b,
14199 .unlock = spi_disable_blockprotect,
14200 .write = spi_aai_write, /* AAI supported (0xAD) */
14201 .read = spi_chip_read, /* Fast read (0x0B) supported */
14202 .voltage = {2700, 3600},
14203 },
14204
14205 {
14206 .vendor = "SST",
14207 .name = "SST25VF040B.REMS",
14208 .bustype = BUS_SPI,
14209 .manufacture_id = SST_ID,
14210 .model_id = SST_SST25VF040B_REMS,
14211 .total_size = 512,
14212 .page_size = 256,
14213 .feature_bits = FEATURE_WRSR_EWSR,
14214 .tested = TEST_OK_PREW,
14215 .probe = probe_spi_rems,
14216 .probe_timing = TIMING_ZERO,
14217 .block_erasers =
14218 {
14219 {
14220 .eraseblocks = { {4 * 1024, 128} },
14221 .block_erase = spi_block_erase_20,
14222 }, {
14223 .eraseblocks = { {32 * 1024, 16} },
14224 .block_erase = spi_block_erase_52,
14225 }, {
14226 .eraseblocks = { {64 * 1024, 8} },
14227 .block_erase = spi_block_erase_d8,
14228 }, {
14229 .eraseblocks = { {512 * 1024, 1} },
14230 .block_erase = spi_block_erase_60,
14231 }, {
14232 .eraseblocks = { {512 * 1024, 1} },
14233 .block_erase = spi_block_erase_c7,
14234 },
14235 },
14236 .printlock = spi_prettyprint_status_register_sst25vf040b,
14237 .unlock = spi_disable_blockprotect,
14238 .write = spi_aai_write,
14239 .read = spi_chip_read,
14240 .voltage = {2700, 3600},
14241 },
14242
14243 {
14244 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014245 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000014246 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014247 .manufacture_id = SST_ID,
14248 .model_id = SST_SST25VF064C,
14249 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014250 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014251 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014252 .tested = TEST_OK_PREW,
14253 .probe = probe_spi_rdid,
14254 .probe_timing = TIMING_ZERO,
14255 .block_erasers =
14256 {
14257 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014258 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014259 .block_erase = spi_block_erase_20,
14260 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014261 .eraseblocks = { {32 * 1024, 256} },
14262 .block_erase = spi_block_erase_52,
14263 }, {
14264 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014265 .block_erase = spi_block_erase_d8,
14266 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014267 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014268 .block_erase = spi_block_erase_60,
14269 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014270 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014271 .block_erase = spi_block_erase_c7,
14272 },
14273 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014274 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14275 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014276 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014277 .read = spi_chip_read,
14278 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000014279 },
14280
14281 {
14282 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014283 .name = "SST25VF080B",
14284 .bustype = BUS_SPI,
14285 .manufacture_id = SST_ID,
14286 .model_id = SST_SST25VF080B,
14287 .total_size = 1024,
14288 .page_size = 256,
14289 .feature_bits = FEATURE_WRSR_EWSR,
14290 .tested = TEST_OK_PREW,
14291 .probe = probe_spi_rdid,
14292 .probe_timing = TIMING_ZERO,
14293 .block_erasers =
14294 {
14295 {
14296 .eraseblocks = { {4 * 1024, 256} },
14297 .block_erase = spi_block_erase_20,
14298 }, {
14299 .eraseblocks = { {32 * 1024, 32} },
14300 .block_erase = spi_block_erase_52,
14301 }, {
14302 .eraseblocks = { {64 * 1024, 16} },
14303 .block_erase = spi_block_erase_d8,
14304 }, {
14305 .eraseblocks = { {1024 * 1024, 1} },
14306 .block_erase = spi_block_erase_60,
14307 }, {
14308 .eraseblocks = { {1024 * 1024, 1} },
14309 .block_erase = spi_block_erase_c7,
14310 },
14311 },
14312 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14313 .unlock = spi_disable_blockprotect,
14314 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000014315 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014316 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000014317 },
14318
14319 {
14320 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014321 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014322 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014324 .model_id = SST_SST25VF512_REMS,
14325 .total_size = 64,
14326 .page_size = 256,
14327 .feature_bits = FEATURE_WRSR_EWSR,
14328 .tested = TEST_OK_PREW,
14329 .probe = probe_spi_rems,
14330 .probe_timing = TIMING_ZERO,
14331 .block_erasers =
14332 {
14333 {
14334 .eraseblocks = { {4 * 1024, 16} },
14335 .block_erase = spi_block_erase_20,
14336 }, {
14337 .eraseblocks = { {32 * 1024, 2} },
14338 .block_erase = spi_block_erase_52,
14339 }, {
14340 .eraseblocks = { {32 * 1024, 2} },
14341 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
14342 }, {
14343 .eraseblocks = { {64 * 1024, 1} },
14344 .block_erase = spi_block_erase_60,
14345 }, {
14346 .eraseblocks = { {64 * 1024, 1} },
14347 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
14348 },
14349 },
14350 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14351 .unlock = spi_disable_blockprotect,
14352 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14353 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
14354 .voltage = {2700, 3600},
14355 },
14356
14357 {
14358 .vendor = "SST",
14359 .name = "SST25WF010",
14360 .bustype = BUS_SPI,
14361 .manufacture_id = SST_ID,
14362 .model_id = SST_SST25WF010,
14363 .total_size = 128,
14364 .page_size = 256,
14365 .feature_bits = FEATURE_WRSR_EITHER,
14366 .tested = TEST_UNTESTED,
14367 .probe = probe_spi_rdid,
14368 .probe_timing = TIMING_ZERO,
14369 .block_erasers =
14370 {
14371 {
14372 .eraseblocks = { {4 * 1024, 32} },
14373 .block_erase = spi_block_erase_20,
14374 }, {
14375 .eraseblocks = { {32 * 1024, 4} },
14376 .block_erase = spi_block_erase_52,
14377 }, {
14378 .eraseblocks = { {1024 * 128, 1} },
14379 .block_erase = spi_block_erase_60,
14380 }, {
14381 .eraseblocks = { {1024 * 128, 1} },
14382 .block_erase = spi_block_erase_c7,
14383 },
14384 },
14385 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14386 .unlock = spi_disable_blockprotect_bp2_srwd,
14387 .write = spi_aai_write,
14388 .read = spi_chip_read, /* Fast read (0x0B) supported */
14389 .voltage = {1650, 1950},
14390 },
14391
14392 {
14393 .vendor = "SST",
14394 .name = "SST25WF020",
14395 .bustype = BUS_SPI,
14396 .manufacture_id = SST_ID,
14397 .model_id = SST_SST25WF020,
14398 .total_size = 256,
14399 .page_size = 256,
14400 .feature_bits = FEATURE_WRSR_EITHER,
14401 .tested = TEST_UNTESTED,
14402 .probe = probe_spi_rdid,
14403 .probe_timing = TIMING_ZERO,
14404 .block_erasers =
14405 {
14406 {
14407 .eraseblocks = { {4 * 1024, 64} },
14408 .block_erase = spi_block_erase_20,
14409 }, {
14410 .eraseblocks = { {32 * 1024, 8} },
14411 .block_erase = spi_block_erase_52,
14412 }, {
14413 .eraseblocks = { {64 * 1024, 4} },
14414 .block_erase = spi_block_erase_d8,
14415 }, {
14416 .eraseblocks = { {1024 * 256, 1} },
14417 .block_erase = spi_block_erase_60,
14418 }, {
14419 .eraseblocks = { {1024 * 256, 1} },
14420 .block_erase = spi_block_erase_c7,
14421 },
14422 },
14423 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14424 .unlock = spi_disable_blockprotect_bp2_srwd,
14425 .write = spi_aai_write,
14426 .read = spi_chip_read, /* Fast read (0x0B) supported */
14427 .voltage = {1650, 1950},
14428 },
14429
14430 {
14431 .vendor = "SST",
14432 .name = "SST25WF020A",
14433 .bustype = BUS_SPI,
14434 .manufacture_id = SANYO_ID, /* See flashchips.h */
14435 .model_id = SST_SST25WF020A,
14436 .total_size = 256,
14437 .page_size = 256,
14438 .feature_bits = FEATURE_WRSR_WREN,
14439 .tested = TEST_UNTESTED,
14440 .probe = probe_spi_rdid,
14441 .probe_timing = TIMING_ZERO,
14442 .block_erasers =
14443 {
14444 {
14445 .eraseblocks = { {4 * 1024, 64} },
14446 .block_erase = spi_block_erase_20,
14447 }, {
14448 .eraseblocks = { {64 * 1024, 4} },
14449 .block_erase = spi_block_erase_d8,
14450 }, {
14451 .eraseblocks = { {256 * 1024, 1} },
14452 .block_erase = spi_block_erase_60,
14453 }, {
14454 .eraseblocks = { {256 * 1024, 1} },
14455 .block_erase = spi_block_erase_c7,
14456 },
14457 },
14458 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14459 .unlock = spi_disable_blockprotect_bp2_srwd,
14460 .write = spi_chip_write_256,
14461 .read = spi_chip_read, /* Fast read (0x0B) supported */
14462 .voltage = {1650, 1950},
14463 },
14464
14465 {
14466 .vendor = "SST",
14467 .name = "SST25WF040",
14468 .bustype = BUS_SPI,
14469 .manufacture_id = SST_ID,
14470 .model_id = SST_SST25WF040,
14471 .total_size = 512,
14472 .page_size = 256,
14473 .feature_bits = FEATURE_WRSR_EITHER,
14474 .tested = TEST_UNTESTED,
14475 .probe = probe_spi_rdid,
14476 .probe_timing = TIMING_ZERO,
14477 .block_erasers =
14478 {
14479 {
14480 .eraseblocks = { {4 * 1024, 128} },
14481 .block_erase = spi_block_erase_20,
14482 }, {
14483 .eraseblocks = { {32 * 1024, 16} },
14484 .block_erase = spi_block_erase_52,
14485 }, {
14486 .eraseblocks = { {64 * 1024, 8} },
14487 .block_erase = spi_block_erase_d8,
14488 }, {
14489 .eraseblocks = { {1024 * 512, 1} },
14490 .block_erase = spi_block_erase_60,
14491 }, {
14492 .eraseblocks = { {1024 * 512, 1} },
14493 .block_erase = spi_block_erase_c7,
14494 },
14495 },
14496 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14497 .unlock = spi_disable_blockprotect_bp2_srwd,
14498 .write = spi_aai_write,
14499 .read = spi_chip_read, /* Fast read (0x0B) supported */
14500 .voltage = {1650, 1950},
14501 },
14502
14503 {
14504 .vendor = "SST",
14505 .name = "SST25WF040B",
14506 .bustype = BUS_SPI,
14507 .manufacture_id = SANYO_ID, /* See flashchips.h */
14508 .model_id = SST_SST25WF040B,
14509 .total_size = 512,
14510 .page_size = 256,
14511 .feature_bits = FEATURE_WRSR_WREN,
14512 .tested = TEST_UNTESTED,
14513 .probe = probe_spi_rdid,
14514 .probe_timing = TIMING_ZERO,
14515 .block_erasers =
14516 {
14517 {
14518 .eraseblocks = { {4 * 1024, 128} },
14519 .block_erase = spi_block_erase_20,
14520 }, {
14521 .eraseblocks = { {64 * 1024, 8} },
14522 .block_erase = spi_block_erase_d8,
14523 }, {
14524 .eraseblocks = { {512 * 1024, 1} },
14525 .block_erase = spi_block_erase_60,
14526 }, {
14527 .eraseblocks = { {512 * 1024, 1} },
14528 .block_erase = spi_block_erase_c7,
14529 },
14530 },
14531 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14532 .unlock = spi_disable_blockprotect_bp2_srwd,
14533 .write = spi_chip_write_256,
14534 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14535 .voltage = {1650, 1950},
14536 },
14537
14538 {
14539 .vendor = "SST",
14540 .name = "SST25WF080",
14541 .bustype = BUS_SPI,
14542 .manufacture_id = SST_ID,
14543 .model_id = SST_SST25WF080,
14544 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014545 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014546 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014549 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014550 .block_erasers =
14551 {
14552 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014553 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014554 .block_erase = spi_block_erase_20,
14555 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014556 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014557 .block_erase = spi_block_erase_52,
14558 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014559 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014560 .block_erase = spi_block_erase_d8,
14561 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014562 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014563 .block_erase = spi_block_erase_60,
14564 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014565 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014566 .block_erase = spi_block_erase_c7,
14567 },
14568 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014569 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14570 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014571 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014572 .read = spi_chip_read, /* Fast read (0x0B) supported */
14573 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014574 },
14575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014576 {
14577 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014578 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014579 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014580 .manufacture_id = SANYO_ID, /* See flashchips.h */
14581 .model_id = SST_SST25WF080B,
14582 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014583 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014584 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014585 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014586 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014587 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014588 .block_erasers =
14589 {
14590 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014591 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014592 .block_erase = spi_block_erase_20,
14593 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014594 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014595 .block_erase = spi_block_erase_d8,
14596 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014597 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014598 .block_erase = spi_block_erase_60,
14599 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014600 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014601 .block_erase = spi_block_erase_c7,
14602 },
14603 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014604 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14605 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014606 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014607 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14608 .voltage = {1650, 1950},
14609 },
14610
14611 {
14612 .vendor = "SST",
14613 .name = "SST25WF512",
14614 .bustype = BUS_SPI,
14615 .manufacture_id = SST_ID,
14616 .model_id = SST_SST25WF512,
14617 .total_size = 64,
14618 .page_size = 256,
14619 .feature_bits = FEATURE_WRSR_EITHER,
14620 .tested = TEST_UNTESTED,
14621 .probe = probe_spi_rdid,
14622 .probe_timing = TIMING_ZERO,
14623 .block_erasers =
14624 {
14625 {
14626 .eraseblocks = { {4 * 1024, 16} },
14627 .block_erase = spi_block_erase_20,
14628 }, {
14629 .eraseblocks = { {32 * 1024, 2} },
14630 .block_erase = spi_block_erase_52,
14631 }, {
14632 .eraseblocks = { {1024 * 64, 1} },
14633 .block_erase = spi_block_erase_60,
14634 }, {
14635 .eraseblocks = { {1024 * 64, 1} },
14636 .block_erase = spi_block_erase_c7,
14637 },
14638 },
14639 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14640 .unlock = spi_disable_blockprotect_bp2_srwd,
14641 .write = spi_aai_write,
14642 .read = spi_chip_read, /* Fast read (0x0B) supported */
14643 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014644 },
14645
14646 {
14647 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014648 .name = "SST26VF016",
14649 .bustype = BUS_SPI,
14650 .manufacture_id = SST_ID,
14651 .model_id = SST_SST26VF016,
14652 .total_size = 2048,
14653 .page_size = 256,
14654 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14655 .tested = TEST_UNTESTED,
14656 .probe = probe_spi_rdid,
14657 .probe_timing = TIMING_ZERO,
14658 .block_erasers =
14659 {
14660 {
14661 .eraseblocks = { {4 * 1024, 512} },
14662 .block_erase = spi_block_erase_20,
14663 }, {
14664 .eraseblocks = {
14665 {8 * 1024, 4},
14666 {32 * 1024, 1},
14667 {64 * 1024, 30},
14668 {32 * 1024, 1},
14669 {8 * 1024, 4},
14670 },
14671 .block_erase = spi_block_erase_d8,
14672 }, {
14673 .eraseblocks = { {2 * 1024 * 1024, 1} },
14674 .block_erase = spi_block_erase_c7,
14675 },
14676 },
14677 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14678 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14679 .write = spi_chip_write_256, /* Multi I/O supported */
14680 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14681 .voltage = {2700, 3600},
14682 },
14683
14684 {
14685 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014686 .name = "SST26VF016B(A)",
14687 .bustype = BUS_SPI,
14688 .manufacture_id = SST_ID,
14689 .model_id = SST_SST26VF016B,
14690 .total_size = 2048,
14691 .page_size = 256,
14692 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14693 .tested = TEST_OK_PREW,
14694 .probe = probe_spi_rdid,
14695 .probe_timing = TIMING_ZERO,
14696 .block_erasers =
14697 {
14698 {
14699 .eraseblocks = { {4 * 1024, 512} },
14700 .block_erase = spi_block_erase_20,
14701 }, {
14702 .eraseblocks = {
14703 {8 * 1024, 4},
14704 {32 * 1024, 1},
14705 {64 * 1024, 30},
14706 {32 * 1024, 1},
14707 {8 * 1024, 4},
14708 },
14709 .block_erase = spi_block_erase_d8,
14710 }, {
14711 .eraseblocks = { {2 * 1024 * 1024, 1} },
14712 .block_erase = spi_block_erase_c7,
14713 },
14714 },
14715 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14716 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14717 .write = spi_chip_write_256, /* Multi I/O supported */
14718 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14719 .voltage = {2700, 3600},
14720 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014721
Wei Hu25584de2018-04-30 14:02:08 -070014722 {
14723 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014724 .name = "SST26VF032",
14725 .bustype = BUS_SPI,
14726 .manufacture_id = SST_ID,
14727 .model_id = SST_SST26VF032,
14728 .total_size = 4096,
14729 .page_size = 256,
14730 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14731 .tested = TEST_UNTESTED,
14732 .probe = probe_spi_rdid,
14733 .probe_timing = TIMING_ZERO,
14734 .block_erasers =
14735 {
14736 {
14737 .eraseblocks = { {4 * 1024, 1024} },
14738 .block_erase = spi_block_erase_20,
14739 }, {
14740 .eraseblocks = {
14741 {8 * 1024, 4},
14742 {32 * 1024, 1},
14743 {64 * 1024, 62},
14744 {32 * 1024, 1},
14745 {8 * 1024, 4},
14746 },
14747 .block_erase = spi_block_erase_d8,
14748 }, {
14749 .eraseblocks = { {4 * 1024 * 1024, 1} },
14750 .block_erase = spi_block_erase_c7,
14751 },
14752 },
14753 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14754 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14755 .write = spi_chip_write_256, /* Multi I/O supported */
14756 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14757 .voltage = {2700, 3600},
14758 },
14759
14760 {
14761 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014762 .name = "SST26VF032B(A)",
14763 .bustype = BUS_SPI,
14764 .manufacture_id = SST_ID,
14765 .model_id = SST_SST26VF032B,
14766 .total_size = 4096,
14767 .page_size = 256,
14768 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14769 .tested = TEST_UNTESTED,
14770 .probe = probe_spi_rdid,
14771 .probe_timing = TIMING_ZERO,
14772 .block_erasers =
14773 {
14774 {
14775 .eraseblocks = { {4 * 1024, 1024} },
14776 .block_erase = spi_block_erase_20,
14777 }, {
14778 .eraseblocks = {
14779 {8 * 1024, 4},
14780 {32 * 1024, 1},
14781 {64 * 1024, 62},
14782 {32 * 1024, 1},
14783 {8 * 1024, 4},
14784 },
14785 .block_erase = spi_block_erase_d8,
14786 }, {
14787 .eraseblocks = { {4 * 1024 * 1024, 1} },
14788 .block_erase = spi_block_erase_c7,
14789 },
14790 },
14791 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14792 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14793 .write = spi_chip_write_256, /* Multi I/O supported */
14794 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14795 .voltage = {2700, 3600},
14796 },
14797
Wei Hu25584de2018-04-30 14:02:08 -070014798 {
14799 .vendor = "SST",
14800 .name = "SST26VF064B(A)",
14801 .bustype = BUS_SPI,
14802 .manufacture_id = SST_ID,
14803 .model_id = SST_SST26VF064B,
14804 .total_size = 8192,
14805 .page_size = 256,
14806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14807 .tested = TEST_OK_PREW,
14808 .probe = probe_spi_rdid,
14809 .probe_timing = TIMING_ZERO,
14810 .block_erasers =
14811 {
14812 {
14813 .eraseblocks = { {4 * 1024, 2048} },
14814 .block_erase = spi_block_erase_20,
14815 }, {
14816 .eraseblocks = {
14817 {8 * 1024, 4},
14818 {32 * 1024, 1},
14819 {64 * 1024, 126},
14820 {32 * 1024, 1},
14821 {8 * 1024, 4},
14822 },
14823 .block_erase = spi_block_erase_d8,
14824 }, {
14825 .eraseblocks = { {8 * 1024 * 1024, 1} },
14826 .block_erase = spi_block_erase_c7,
14827 },
14828 },
14829 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14830 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14831 .write = spi_chip_write_256, /* Multi I/O supported */
14832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14833 .voltage = {2700, 3600},
14834 },
14835
14836 {
14837 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014838 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014839 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014840 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014841 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014842 .total_size = 512,
14843 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014844 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014845 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014846 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014847 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014848 .block_erasers =
14849 {
14850 {
14851 .eraseblocks = { {128, 4096} },
14852 .block_erase = erase_sector_28sf040,
14853 }, {
14854 .eraseblocks = { {512 * 1024, 1} },
14855 .block_erase = erase_chip_28sf040,
14856 }
14857 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014858 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014859 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014861 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014862 .prepare_access = prepare_memory_access,
14863 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014864 },
14865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014866 {
14867 .vendor = "SST",
14868 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014869 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014870 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014871 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014872 .total_size = 128,
14873 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014874 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014875 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014876 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014877 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014878 .block_erasers =
14879 {
14880 {
14881 .eraseblocks = { {128 * 1024, 1} },
14882 .block_erase = erase_chip_block_jedec,
14883 }
14884 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014885 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014886 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014887 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014888 .prepare_access = prepare_memory_access,
14889 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014890 },
14891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014892 {
14893 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014894 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014895 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014896 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014897 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014898 .total_size = 256,
14899 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014900 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014901 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014902 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014903 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014904 .block_erasers =
14905 {
14906 {
14907 .eraseblocks = { {256 * 1024, 1} },
14908 .block_erase = erase_chip_block_jedec,
14909 }
14910 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014911 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014913 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014914 .prepare_access = prepare_memory_access,
14915 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014916 },
14917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014918 {
14919 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014920 .name = "SST29LE010",
14921 .bustype = BUS_PARALLEL,
14922 .manufacture_id = SST_ID,
14923 .model_id = SST_SST29LE010,
14924 .total_size = 128,
14925 .page_size = 128,
14926 .feature_bits = FEATURE_LONG_RESET,
14927 .tested = TEST_UNTESTED,
14928 .probe = probe_jedec,
14929 .probe_timing = 10,
14930 .block_erasers =
14931 {
14932 {
14933 .eraseblocks = { {128 * 1024, 1} },
14934 .block_erase = erase_chip_block_jedec,
14935 }
14936 },
14937 .write = write_jedec,
14938 .read = read_memmapped,
14939 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014940 .prepare_access = prepare_memory_access,
14941 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014942 },
14943
14944 {
14945 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014946 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014947 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014948 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014949 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014950 .total_size = 256,
14951 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014952 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014953 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014954 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014955 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014956 .block_erasers =
14957 {
14958 {
14959 .eraseblocks = { {256 * 1024, 1} },
14960 .block_erase = erase_chip_block_jedec,
14961 }
14962 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014963 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014964 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014965 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014966 .prepare_access = prepare_memory_access,
14967 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014968 },
14969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014970 {
14971 .vendor = "SST",
14972 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014973 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014974 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014975 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014976 .total_size = 128,
14977 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014978 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014980 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014981 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014982 .block_erasers =
14983 {
14984 {
14985 .eraseblocks = { {4 * 1024, 32} },
14986 .block_erase = erase_sector_jedec,
14987 }, {
14988 .eraseblocks = { {128 * 1024, 1} },
14989 .block_erase = erase_chip_block_jedec,
14990 }
14991 },
Sean Nelson35727f72010-01-28 23:55:12 +000014992 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014993 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014994 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014995 .prepare_access = prepare_memory_access,
14996 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014997 },
14998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014999 {
15000 .vendor = "SST",
15001 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015002 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015003 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015004 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015005 .total_size = 256,
15006 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015007 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000015008 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015009 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015010 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015011 .block_erasers =
15012 {
15013 {
15014 .eraseblocks = { {4 * 1024, 64} },
15015 .block_erase = erase_sector_jedec,
15016 }, {
15017 .eraseblocks = { {256 * 1024, 1} },
15018 .block_erase = erase_chip_block_jedec,
15019 }
15020 },
Sean Nelson35727f72010-01-28 23:55:12 +000015021 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015023 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015024 .prepare_access = prepare_memory_access,
15025 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015026 },
15027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015028 {
15029 .vendor = "SST",
15030 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015031 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015032 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015033 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015034 .total_size = 512,
15035 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015036 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000015037 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015038 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015039 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015040 .block_erasers =
15041 {
15042 {
15043 .eraseblocks = { {4 * 1024, 128} },
15044 .block_erase = erase_sector_jedec,
15045 }, {
15046 .eraseblocks = { {512 * 1024, 1} },
15047 .block_erase = erase_chip_block_jedec,
15048 }
15049 },
Sean Nelson35727f72010-01-28 23:55:12 +000015050 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015051 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015052 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015053 .prepare_access = prepare_memory_access,
15054 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015055 },
15056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015057 {
15058 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015059 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015060 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015061 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015062 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015063 .total_size = 64,
15064 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015065 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000015066 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015067 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015068 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015069 .block_erasers =
15070 {
15071 {
15072 .eraseblocks = { {4 * 1024, 16} },
15073 .block_erase = erase_sector_jedec,
15074 }, {
15075 .eraseblocks = { {64 * 1024, 1} },
15076 .block_erase = erase_chip_block_jedec,
15077 }
15078 },
Sean Nelson35727f72010-01-28 23:55:12 +000015079 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015080 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015081 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015082 .prepare_access = prepare_memory_access,
15083 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015084 },
15085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015086 {
15087 .vendor = "SST",
15088 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015089 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015090 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015091 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015092 .total_size = 128,
15093 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015094 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000015095 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015096 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015097 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015098 .block_erasers =
15099 {
15100 {
15101 .eraseblocks = { {4 * 1024, 32} },
15102 .block_erase = erase_sector_jedec,
15103 }, {
15104 .eraseblocks = { {128 * 1024, 1} },
15105 .block_erase = erase_chip_block_jedec,
15106 }
15107 },
Sean Nelson35727f72010-01-28 23:55:12 +000015108 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015109 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015110 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015111 .prepare_access = prepare_memory_access,
15112 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015113 },
15114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015115 {
15116 .vendor = "SST",
15117 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015118 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015119 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015120 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015121 .total_size = 256,
15122 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015123 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000015124 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015125 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015126 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015127 .block_erasers =
15128 {
15129 {
15130 .eraseblocks = { {4 * 1024, 64} },
15131 .block_erase = erase_sector_jedec,
15132 }, {
15133 .eraseblocks = { {256 * 1024, 1} },
15134 .block_erase = erase_chip_block_jedec,
15135 }
15136 },
Sean Nelson35727f72010-01-28 23:55:12 +000015137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015139 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015140 .prepare_access = prepare_memory_access,
15141 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015142 },
15143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015144 {
15145 .vendor = "SST",
15146 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015147 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015148 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015149 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015150 .total_size = 512,
15151 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015152 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015153 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015154 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015155 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015156 .block_erasers =
15157 {
15158 {
15159 .eraseblocks = { {4 * 1024, 128} },
15160 .block_erase = erase_sector_jedec,
15161 }, {
15162 .eraseblocks = { {512 * 1024, 1} },
15163 .block_erase = erase_chip_block_jedec,
15164 }
15165 },
Sean Nelson35727f72010-01-28 23:55:12 +000015166 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015168 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015169 .prepare_access = prepare_memory_access,
15170 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000015171 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015173 {
15174 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000015175 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015176 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000015177 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015178 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000015179 .total_size = 1024,
15180 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015181 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000015182 .tested = TEST_UNTESTED,
15183 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015184 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015185 .block_erasers =
15186 {
15187 {
15188 .eraseblocks = { {4 * 1024, 256} },
15189 .block_erase = erase_sector_jedec,
15190 }, {
15191 .eraseblocks = { {64 * 1024, 16} },
15192 .block_erase = erase_block_jedec,
15193 }, {
15194 .eraseblocks = { {1024 * 1024, 1} },
15195 .block_erase = erase_chip_block_jedec,
15196 }
15197 },
Sean Nelson35727f72010-01-28 23:55:12 +000015198 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015199 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015200 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015201 .prepare_access = prepare_memory_access,
15202 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +000015203 },
15204
15205 {
15206 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015207 .name = "SST39VF512",
15208 .bustype = BUS_PARALLEL,
15209 .manufacture_id = SST_ID,
15210 .model_id = SST_SST39VF512,
15211 .total_size = 64,
15212 .page_size = 4096,
15213 .feature_bits = FEATURE_EITHER_RESET,
15214 .tested = TEST_OK_PREW,
15215 .probe = probe_jedec,
15216 .probe_timing = 1, /* 150 ns */
15217 .block_erasers =
15218 {
15219 {
15220 .eraseblocks = { {4 * 1024, 16} },
15221 .block_erase = erase_sector_jedec,
15222 }, {
15223 .eraseblocks = { {64 * 1024, 1} },
15224 .block_erase = erase_chip_block_jedec,
15225 }
15226 },
15227 .write = write_jedec_1,
15228 .read = read_memmapped,
15229 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015230 .prepare_access = prepare_memory_access,
15231 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015232 },
15233
15234 {
15235 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015236 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015237 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015238 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015239 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015240 .total_size = 256,
15241 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015242 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015243 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015244 .probe = probe_jedec,
15245 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015246 .block_erasers =
15247 {
15248 {
15249 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015250 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015251 }, {
15252 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015253 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015254 }, {
15255 .eraseblocks = { {256 * 1024, 1} },
15256 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15257 }
15258 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015259 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015260 .unlock = unlock_sst_fwhub,
15261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015263 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015264 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015265 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015266 },
15267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015268 {
15269 .vendor = "SST",
15270 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015271 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015272 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015273 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015274 .total_size = 384,
15275 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015276 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015277 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015278 .probe = probe_jedec,
15279 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015280 .block_erasers =
15281 {
15282 {
15283 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015284 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015285 }, {
15286 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015287 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015288 }, {
15289 .eraseblocks = { {384 * 1024, 1} },
15290 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15291 }
15292 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015293 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015294 .unlock = unlock_sst_fwhub,
15295 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015296 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015297 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015298 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015299 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015300 },
15301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015302 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015303 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
15304 * and is only honored for 64k block erase, but not 4k sector erase.
15305 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015306 .vendor = "SST",
15307 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015308 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015309 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015310 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015311 .total_size = 512,
15312 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015313 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015314 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015315 .probe = probe_jedec,
15316 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015317 .block_erasers =
15318 {
15319 {
15320 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015321 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015322 }, {
15323 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015324 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015325 }, {
15326 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000015327 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015328 },
15329 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015330 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015331 .unlock = unlock_sst_fwhub,
15332 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015334 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015335 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015336 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015337 },
15338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015339 {
15340 .vendor = "SST",
15341 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015342 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015343 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015344 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015345 .total_size = 512,
15346 .page_size = 4 * 1024,
15347 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015348 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015349 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015350 .block_erasers =
15351 {
15352 {
15353 .eraseblocks = { {4 * 1024, 128} },
15354 .block_erase = erase_sector_49lfxxxc,
15355 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015356 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015357 {64 * 1024, 7},
15358 {32 * 1024, 1},
15359 {8 * 1024, 2},
15360 {16 * 1024, 1},
15361 },
Sean Nelson69e58112010-03-23 17:10:28 +000015362 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015363 }
15364 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015365 .printlock = printlock_regspace2_block_eraser_1,
15366 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015367 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015369 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015370 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015371 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015372 },
15373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015374 {
15375 .vendor = "SST",
15376 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015377 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015378 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015379 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015380 .total_size = 1024,
15381 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015382 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015383 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015384 .probe = probe_jedec,
15385 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015386 .block_erasers =
15387 {
15388 {
15389 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015390 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015391 }, {
15392 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015393 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015394 }, {
15395 .eraseblocks = { {1024 * 1024, 1} },
15396 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15397 }
15398 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015399 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015400 .unlock = unlock_sst_fwhub,
15401 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015403 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015404 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015405 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015406 },
15407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015408 {
15409 .vendor = "SST",
15410 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015411 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015412 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015413 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015414 .total_size = 1024,
15415 .page_size = 4 * 1024,
15416 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015417 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015418 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015419 .block_erasers =
15420 {
15421 {
15422 .eraseblocks = { {4 * 1024, 256} },
15423 .block_erase = erase_sector_49lfxxxc,
15424 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015425 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015426 {64 * 1024, 15},
15427 {32 * 1024, 1},
15428 {8 * 1024, 2},
15429 {16 * 1024, 1},
15430 },
Sean Nelson69e58112010-03-23 17:10:28 +000015431 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015432 }
15433 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015434 .printlock = printlock_regspace2_block_eraser_1,
15435 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015436 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015438 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015439 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015440 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015441 },
15442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015443 {
15444 .vendor = "SST",
15445 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015446 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015447 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015448 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015449 .total_size = 2048,
15450 .page_size = 4 * 1024,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015451 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015452 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015453 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015454 .block_erasers =
15455 {
15456 {
15457 .eraseblocks = { {4 * 1024, 512} },
15458 .block_erase = erase_sector_49lfxxxc,
15459 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015460 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015461 {64 * 1024, 31},
15462 {32 * 1024, 1},
15463 {8 * 1024, 2},
15464 {16 * 1024, 1},
15465 },
Sean Nelson69e58112010-03-23 17:10:28 +000015466 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015467 }
15468 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015469 .printlock = printlock_regspace2_block_eraser_1,
15470 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015471 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015473 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015474 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015475 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015476 },
15477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015478 {
15479 .vendor = "SST",
15480 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015481 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015482 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015483 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015484 .total_size = 256,
15485 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015486 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000015487 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015488 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015489 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015490 .block_erasers =
15491 {
15492 {
15493 .eraseblocks = { {4 * 1024, 64} },
15494 .block_erase = erase_sector_jedec,
15495 }, {
15496 .eraseblocks = { {16 * 1024, 16} },
15497 .block_erase = erase_block_jedec,
15498 }, {
15499 .eraseblocks = { {256 * 1024, 1} },
15500 .block_erase = NULL,
15501 }
15502 },
Sean Nelson35727f72010-01-28 23:55:12 +000015503 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015505 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015506 .prepare_access = prepare_memory_access,
15507 .finish_access = finish_memory_access,
Sven Schnellec208dfb2009-01-07 12:35:09 +000015508 },
15509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015510 {
15511 .vendor = "SST",
15512 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015513 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015514 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015515 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015516 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000015517 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015518 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000015519 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015520 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015521 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015522 .block_erasers =
15523 {
15524 {
15525 .eraseblocks = { {4 * 1024, 64} },
15526 .block_erase = erase_sector_jedec,
15527 }, {
15528 .eraseblocks = { {16 * 1024, 16} },
15529 .block_erase = erase_block_jedec,
15530 }, {
15531 .eraseblocks = { {256 * 1024, 1} },
15532 .block_erase = NULL,
15533 }
15534 },
Sean Nelson35727f72010-01-28 23:55:12 +000015535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015537 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015538 .prepare_access = prepare_memory_access,
15539 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015540 },
15541
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015542 {
15543 .vendor = "SST",
15544 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015545 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015546 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015547 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015548 .total_size = 512,
15549 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015550 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015551 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015552 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015553 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015554 .block_erasers =
15555 {
15556 {
15557 .eraseblocks = { {4 * 1024, 128} },
15558 .block_erase = erase_sector_jedec,
15559 }, {
15560 .eraseblocks = { {64 * 1024, 8} },
15561 .block_erase = erase_block_jedec,
15562 }, {
15563 .eraseblocks = { {512 * 1024, 1} },
15564 .block_erase = NULL,
15565 }
15566 },
Sean Nelson35727f72010-01-28 23:55:12 +000015567 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015568 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015569 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015570 .prepare_access = prepare_memory_access,
15571 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015572 },
15573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015574 {
15575 .vendor = "SST",
15576 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015577 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015578 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015579 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015580 .total_size = 512,
15581 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015582 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015583 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015584 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015585 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015586 .block_erasers =
15587 {
15588 {
15589 .eraseblocks = { {4 * 1024, 128} },
15590 .block_erase = erase_sector_jedec,
15591 }, {
15592 .eraseblocks = { {64 * 1024, 8} },
15593 .block_erase = erase_block_jedec,
15594 }, {
15595 .eraseblocks = { {512 * 1024, 1} },
15596 .block_erase = NULL,
15597 }
15598 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015599 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015600 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015602 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015603 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015604 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015605 },
15606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015607 {
15608 .vendor = "SST",
15609 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015610 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015611 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015612 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015613 .total_size = 1024,
15614 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015615 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015616 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015617 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015618 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015619 .block_erasers =
15620 {
15621 {
15622 .eraseblocks = { {4 * 1024, 256} },
15623 .block_erase = erase_sector_jedec,
15624 }, {
15625 .eraseblocks = { {64 * 1024, 16} },
15626 .block_erase = erase_block_jedec,
15627 }, {
15628 .eraseblocks = { {1024 * 1024, 1} },
15629 .block_erase = NULL,
15630 }
15631 },
Sean Nelson35727f72010-01-28 23:55:12 +000015632 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015633 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015634 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015635 .prepare_access = prepare_memory_access,
15636 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015637 },
15638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015639 {
15640 .vendor = "SST",
15641 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015642 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015644 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015645 .total_size = 2048,
15646 .page_size = 4 * 1024,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015647 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015648 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015649 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015650 .block_erasers =
15651 {
15652 {
15653 .eraseblocks = { {4 * 1024, 512} },
15654 .block_erase = erase_sector_49lfxxxc,
15655 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015656 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015657 {64 * 1024, 31},
15658 {32 * 1024, 1},
15659 {8 * 1024, 2},
15660 {16 * 1024, 1},
15661 },
Sean Nelson69e58112010-03-23 17:10:28 +000015662 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015663 }
15664 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015665 .printlock = printlock_regspace2_block_eraser_1,
15666 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015667 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015669 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015670 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015671 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015672 },
15673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015674 {
15675 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015676 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015677 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015678 .manufacture_id = ST_ID,
15679 .model_id = ST_M29F002B,
15680 .total_size = 256,
15681 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015682 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015683 .tested = TEST_UNTESTED,
15684 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015685 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015686 .block_erasers =
15687 {
15688 {
15689 .eraseblocks = {
15690 {16 * 1024, 1},
15691 {8 * 1024, 2},
15692 {32 * 1024, 1},
15693 {64 * 1024, 3},
15694 },
15695 .block_erase = erase_sector_jedec,
15696 }, {
15697 .eraseblocks = { {256 * 1024, 1} },
15698 .block_erase = erase_chip_block_jedec,
15699 }
15700 },
Sean Nelson35727f72010-01-28 23:55:12 +000015701 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015702 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015703 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015704 .prepare_access = prepare_memory_access,
15705 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015706 },
15707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015708 {
15709 .vendor = "ST",
15710 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015711 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015712 .manufacture_id = ST_ID,
15713 .model_id = ST_M29F002T,
15714 .total_size = 256,
15715 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015716 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015717 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015718 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015719 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015720 .block_erasers =
15721 {
15722 {
15723 .eraseblocks = {
15724 {64 * 1024, 3},
15725 {32 * 1024, 1},
15726 {8 * 1024, 2},
15727 {16 * 1024, 1},
15728 },
15729 .block_erase = erase_sector_jedec,
15730 }, {
15731 .eraseblocks = { {256 * 1024, 1} },
15732 .block_erase = erase_chip_block_jedec,
15733 }
15734 },
Sean Nelson35727f72010-01-28 23:55:12 +000015735 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015736 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015737 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015738 .prepare_access = prepare_memory_access,
15739 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015740 },
15741
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015742 {
15743 .vendor = "ST",
15744 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015745 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015746 .manufacture_id = ST_ID,
15747 .model_id = ST_M29F040B,
15748 .total_size = 512,
15749 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015750 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15751 .tested = TEST_UNTESTED,
15752 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015753 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015754 .block_erasers =
15755 {
15756 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015757 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015758 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015759 }, {
15760 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015761 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015762 }
15763 },
Sean Nelson35727f72010-01-28 23:55:12 +000015764 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015765 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015766 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015767 .prepare_access = prepare_memory_access,
15768 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015769 },
15770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015771 {
Sean Nelson35727f72010-01-28 23:55:12 +000015772 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015773 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015774 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015775 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015776 .manufacture_id = ST_ID,
15777 .model_id = ST_M29F400BB,
15778 .total_size = 512,
15779 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015780 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015781 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015782 .probe = probe_jedec,
15783 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015784 .block_erasers =
15785 {
15786 {
15787 .eraseblocks = {
15788 {16 * 1024, 1},
15789 {8 * 1024, 2},
15790 {32 * 1024, 1},
15791 {64 * 1024, 7},
15792 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015793 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015794 }, {
15795 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015796 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015797 }
15798 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015799 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015801 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015802 .prepare_access = prepare_memory_access,
15803 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015804 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015805
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015806 {
15807 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15808 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015809 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015810 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015811 .manufacture_id = ST_ID,
15812 .model_id = ST_M29F400BT,
15813 .total_size = 512,
15814 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015815 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015816 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015817 .probe = probe_jedec,
15818 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015819 .block_erasers =
15820 {
15821 {
15822 .eraseblocks = {
15823 {64 * 1024, 7},
15824 {32 * 1024, 1},
15825 {8 * 1024, 2},
15826 {16 * 1024, 1},
15827 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015828 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015829 }, {
15830 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015831 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015832 }
15833 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015834 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015835 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015836 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015837 .prepare_access = prepare_memory_access,
15838 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015839 },
15840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015841 {
15842 .vendor = "ST",
15843 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015844 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015845 .manufacture_id = ST_ID,
15846 .model_id = ST_M29W010B,
15847 .total_size = 128,
15848 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015849 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015850 .tested = TEST_UNTESTED,
15851 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015853 .block_erasers =
15854 {
15855 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015856 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015857 .block_erase = erase_sector_jedec,
15858 }, {
15859 .eraseblocks = { {128 * 1024, 1} },
15860 .block_erase = erase_chip_block_jedec,
15861 }
15862 },
Sean Nelson35727f72010-01-28 23:55:12 +000015863 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015865 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015866 .prepare_access = prepare_memory_access,
15867 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015868 },
15869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015870 {
15871 .vendor = "ST",
15872 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015873 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015874 .manufacture_id = ST_ID,
15875 .model_id = ST_M29W040B,
15876 .total_size = 512,
15877 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015878 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015879 .tested = TEST_UNTESTED,
15880 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015881 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015882 .block_erasers =
15883 {
15884 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015885 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015886 .block_erase = erase_sector_jedec,
15887 }, {
15888 .eraseblocks = { {512 * 1024, 1} },
15889 .block_erase = erase_chip_block_jedec,
15890 }
15891 },
Sean Nelson35727f72010-01-28 23:55:12 +000015892 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015894 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015895 .prepare_access = prepare_memory_access,
15896 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015897 },
15898
Stefan Taunereb582572012-09-21 12:52:50 +000015899 {
15900 .vendor = "ST",
15901 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015902 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015903 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015904 .model_id = ST_M29W512B,
15905 .total_size = 64,
15906 .page_size = 64 * 1024,
15907 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015908 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015909 .probe = probe_jedec,
15910 .probe_timing = TIMING_ZERO,
15911 .block_erasers =
15912 {
15913 {
15914 .eraseblocks = { {64 * 1024, 1} },
15915 .block_erase = erase_chip_block_jedec,
15916 }
15917 },
15918 .write = write_jedec_1,
15919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015920 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015921 .prepare_access = prepare_memory_access,
15922 .finish_access = finish_memory_access,
Stefan Taunereb582572012-09-21 12:52:50 +000015923 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015925 {
15926 .vendor = "ST",
15927 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015928 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015929 .manufacture_id = ST_ID,
15930 .model_id = ST_M50FLW040A,
15931 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015932 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015933 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015934 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015935 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015936 .block_erasers =
15937 {
15938 {
Sean Nelson329bde72010-01-19 16:39:19 +000015939 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015940 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015941 {64 * 1024, 5}, /* block */
15942 {4 * 1024, 16}, /* sector */
15943 {4 * 1024, 16}, /* sector */
15944 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015945 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015946 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015947 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015948 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015949 }
15950 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015951 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015952 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015953 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015954 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015955 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015956 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015957 },
15958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015959 {
15960 .vendor = "ST",
15961 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015962 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015963 .manufacture_id = ST_ID,
15964 .model_id = ST_M50FLW040B,
15965 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015966 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015967 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015968 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015969 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015970 .block_erasers =
15971 {
15972 {
Sean Nelson329bde72010-01-19 16:39:19 +000015973 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015974 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015975 {4 * 1024, 16}, /* sector */
15976 {64 * 1024, 5}, /* block */
15977 {4 * 1024, 16}, /* sector */
15978 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015979 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015980 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015981 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015982 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015983 }
15984 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015985 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015986 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015988 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015989 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015990 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015991 },
15992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015993 {
15994 .vendor = "ST",
15995 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015996 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015997 .manufacture_id = ST_ID,
15998 .model_id = ST_M50FLW080A,
15999 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016000 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016001 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000016002 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000016003 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000016004 .block_erasers =
16005 {
16006 {
Sean Nelson329bde72010-01-19 16:39:19 +000016007 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000016008 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000016009 {64 * 1024, 13}, /* block */
16010 {4 * 1024, 16}, /* sector */
16011 {4 * 1024, 16}, /* sector */
16012 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000016013 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000016014 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000016015 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016016 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016017 }
16018 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016019 .printlock = printlock_regspace2_block_eraser_0,
16020 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016021 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016023 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016024 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016025 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016026 },
16027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016028 {
16029 .vendor = "ST",
16030 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016031 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016032 .manufacture_id = ST_ID,
16033 .model_id = ST_M50FLW080B,
16034 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016035 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016036 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000016037 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000016038 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000016039 .block_erasers =
16040 {
16041 {
Sean Nelson329bde72010-01-19 16:39:19 +000016042 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000016043 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000016044 {4 * 1024, 16}, /* sector */
16045 {64 * 1024, 13}, /* block */
16046 {4 * 1024, 16}, /* sector */
16047 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000016048 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000016049 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000016050 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016051 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016052 }
16053 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016054 .printlock = printlock_regspace2_block_eraser_0,
16055 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016056 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016057 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016058 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016059 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016060 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016061 },
16062
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016063 {
16064 .vendor = "ST",
16065 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016066 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016067 .manufacture_id = ST_ID,
16068 .model_id = ST_M50FW002,
16069 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000016070 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016071 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000016072 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016073 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016074 .block_erasers =
16075 {
16076 {
16077 .eraseblocks = {
16078 {64 * 1024, 3},
16079 {32 * 1024, 1},
16080 {8 * 1024, 2},
16081 {16 * 1024, 1},
16082 },
Sean Nelson28accc22010-03-19 18:47:06 +000016083 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016084 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000016085 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016086 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000016087 }
16088 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016089 .printlock = printlock_regspace2_block_eraser_0,
16090 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016091 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016093 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016094 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016095 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016096 },
16097
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016098 {
16099 .vendor = "ST",
16100 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016101 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016102 .manufacture_id = ST_ID,
16103 .model_id = ST_M50FW016,
16104 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016105 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016106 .tested = TEST_UNTESTED,
16107 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016108 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016109 .block_erasers =
16110 {
16111 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016112 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000016113 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016114 }
16115 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016116 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016117 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016118 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016119 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016120 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016121 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016122 },
16123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016124 {
16125 .vendor = "ST",
16126 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016127 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016128 .manufacture_id = ST_ID,
16129 .model_id = ST_M50FW040,
16130 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000016131 .page_size = 0,
Sean Nelson28accc22010-03-19 18:47:06 +000016132 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016133 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016134 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016135 .block_erasers =
16136 {
16137 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016138 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000016139 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016140 }
16141 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016142 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016143 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016145 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016146 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016147 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016148 },
16149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016150 {
16151 .vendor = "ST",
16152 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016153 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016154 .manufacture_id = ST_ID,
16155 .model_id = ST_M50FW080,
16156 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016157 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016158 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016159 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016160 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016161 .block_erasers =
16162 {
16163 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016164 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016165 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016166 }
16167 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016168 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016169 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016171 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016172 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016173 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016174 },
16175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016176 {
16177 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016178 .name = "M50LPW080",
16179 .bustype = BUS_LPC, /* A/A Mux */
16180 .manufacture_id = ST_ID,
16181 .model_id = ST_M50LPW080,
16182 .total_size = 1024,
16183 .page_size = 0,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016184 .tested = TEST_UNTESTED,
16185 .probe = probe_82802ab,
16186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16187 .block_erasers =
16188 {
16189 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016190 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016191 .block_erase = erase_block_82802ab,
16192 }
16193 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016194 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016195 .write = write_82802ab,
16196 .read = read_memmapped,
16197 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016198 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016199 .finish_access = finish_memory_access,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016200 },
16201
16202 {
16203 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016204 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016205 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016206 .manufacture_id = ST_ID,
16207 .model_id = ST_M50LPW116,
16208 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016209 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016210 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000016211 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000016212 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016213 .block_erasers =
16214 {
16215 {
16216 .eraseblocks = {
16217 {4 * 1024, 16},
16218 {64 * 1024, 30},
16219 {32 * 1024, 1},
16220 {8 * 1024, 2},
16221 {16 * 1024, 1},
16222 },
Sean Nelson28accc22010-03-19 18:47:06 +000016223 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016224 }
16225 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016226 .printlock = printlock_regspace2_block_eraser_0,
16227 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016228 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016230 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016231 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016232 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016233 },
16234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016235 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016236 .vendor = "ST",
16237 .name = "M95M02",
16238 .bustype = BUS_SPI,
16239 .manufacture_id = ST_ID,
16240 .model_id = ST_M95M02,
16241 .total_size = 256,
16242 .page_size = 256,
16243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
16244 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020016245 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016246 .probe = probe_spi_st95,
16247 .probe_timing = TIMING_ZERO,
16248 .block_erasers =
16249 {
16250 {
16251 .eraseblocks = { {256 * 1024, 1} },
16252 .block_erase = spi_block_erase_emulation,
16253 }
16254 },
16255
16256 .printlock = spi_prettyprint_status_register_bp1_srwd,
16257 .unlock = spi_disable_blockprotect_bp1_srwd,
16258 .write = spi_chip_write_256,
16259 .read = spi_chip_read,
16260 .voltage = {2500, 5500},
16261 },
16262
16263 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016264 .vendor = "Sanyo",
16265 .name = "LE25FU106B",
16266 .bustype = BUS_SPI,
16267 .manufacture_id = SANYO_ID,
16268 .model_id = SANYO_LE25FU106B,
16269 .total_size = 128,
16270 .page_size = 256,
16271 .feature_bits = FEATURE_WRSR_WREN,
16272 .tested = TEST_UNTESTED,
16273 .probe = probe_spi_res2,
16274 .probe_timing = TIMING_ZERO,
16275 .block_erasers =
16276 {
16277 /* FIXME: Is this correct?
16278 {
16279 .eraseblocks = { {2 * 1024, 64} },
16280 .block_erase = spi_block_erase_d7,
16281 },*/
16282 {
16283 .eraseblocks = { {32 * 1024, 4} },
16284 .block_erase = spi_block_erase_d8,
16285 }, {
16286 .eraseblocks = { {128 * 1024, 1} },
16287 .block_erase = spi_block_erase_c7,
16288 }
16289 },
16290 .printlock = spi_prettyprint_status_register_bp1_srwd,
16291 .unlock = spi_disable_blockprotect_bp1_srwd,
16292 .write = spi_chip_write_256,
16293 .read = spi_chip_read,
16294 .voltage = {2300, 3600},
16295 },
16296
16297 {
16298 .vendor = "Sanyo",
16299 .name = "LE25FU206",
16300 .bustype = BUS_SPI,
16301 .manufacture_id = SANYO_ID,
16302 .model_id = SANYO_LE25FU206,
16303 .total_size = 256,
16304 .page_size = 256,
16305 .feature_bits = FEATURE_WRSR_WREN,
16306 .tested = TEST_UNTESTED,
16307 .probe = probe_spi_res2,
16308 .probe_timing = TIMING_ZERO,
16309 .block_erasers =
16310 {
16311 {
16312 .eraseblocks = { {4 * 1024, 64} },
16313 .block_erase = spi_block_erase_d7,
16314 }, {
16315 .eraseblocks = { {64 * 1024, 4} },
16316 .block_erase = spi_block_erase_d8,
16317 }, {
16318 .eraseblocks = { {256 * 1024, 1} },
16319 .block_erase = spi_block_erase_c7,
16320 }
16321 },
16322 .printlock = spi_prettyprint_status_register_bp1_srwd,
16323 .unlock = spi_disable_blockprotect_bp1_srwd,
16324 .write = spi_chip_write_256,
16325 .read = spi_chip_read,
16326 .voltage = {2300, 3600},
16327 },
16328
16329 {
16330 .vendor = "Sanyo",
16331 .name = "LE25FU206A",
16332 .bustype = BUS_SPI,
16333 .manufacture_id = SANYO_ID,
16334 .model_id = SANYO_LE25FU206A,
16335 .total_size = 256,
16336 .page_size = 256,
16337 .tested = TEST_UNTESTED,
16338 .probe = probe_spi_rdid,
16339 .probe_timing = TIMING_ZERO,
16340 .block_erasers =
16341 {
16342 {
16343 .eraseblocks = { {4 * 1024, 64} },
16344 .block_erase = spi_block_erase_20,
16345 }, {
16346 .eraseblocks = { {4 * 1024, 64} },
16347 .block_erase = spi_block_erase_d7,
16348 }, {
16349 .eraseblocks = { {64 * 1024, 4} },
16350 .block_erase = spi_block_erase_d8,
16351 }, {
16352 .eraseblocks = { {256 * 1024, 1} },
16353 .block_erase = spi_block_erase_60,
16354 }, {
16355 .eraseblocks = { {256 * 1024, 1} },
16356 .block_erase = spi_block_erase_c7,
16357 }
16358 },
16359 .printlock = spi_prettyprint_status_register_bp2_srwd,
16360 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16361 .write = spi_chip_write_256,
16362 .read = spi_chip_read,
16363 .voltage = {2300, 3600},
16364 },
16365
16366 {
16367 .vendor = "Sanyo",
16368 .name = "LE25FU406B",
16369 .bustype = BUS_SPI,
16370 .manufacture_id = SANYO_ID,
16371 .model_id = SANYO_LE25FU406B,
16372 .total_size = 512,
16373 .page_size = 256,
16374 .feature_bits = FEATURE_WRSR_WREN,
16375 .tested = TEST_OK_PREW,
16376 .probe = probe_spi_res2,
16377 .probe_timing = TIMING_ZERO,
16378 .block_erasers =
16379 {
16380 {
16381 .eraseblocks = { {4 * 1024, 128} },
16382 .block_erase = spi_block_erase_d7,
16383 }, {
16384 .eraseblocks = { {64 * 1024, 8} },
16385 .block_erase = spi_block_erase_d8,
16386 }, {
16387 .eraseblocks = { {512 * 1024, 1} },
16388 .block_erase = spi_block_erase_c7,
16389 }
16390 },
16391 .printlock = spi_prettyprint_status_register_bp2_srwd,
16392 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16393 .write = spi_chip_write_256,
16394 .read = spi_chip_read,
16395 .voltage = {2300, 3600},
16396 },
16397
16398 {
16399 .vendor = "Sanyo",
16400 .name = "LE25FU406C/LE25U40CMC",
16401 .bustype = BUS_SPI,
16402 .manufacture_id = SANYO_ID,
16403 .model_id = SANYO_LE25FU406C,
16404 .total_size = 512,
16405 .page_size = 256,
16406 .feature_bits = FEATURE_WRSR_WREN,
16407 .tested = TEST_OK_PREW,
16408 .probe = probe_spi_rdid,
16409 .probe_timing = TIMING_ZERO,
16410 .block_erasers =
16411 {
16412 {
16413 .eraseblocks = { {4 * 1024, 128} },
16414 .block_erase = spi_block_erase_20,
16415 }, {
16416 .eraseblocks = { {4 * 1024, 128} },
16417 .block_erase = spi_block_erase_d7,
16418 }, {
16419 .eraseblocks = { {64 * 1024, 8} },
16420 .block_erase = spi_block_erase_d8,
16421 }, {
16422 .eraseblocks = { {512 * 1024, 1} },
16423 .block_erase = spi_block_erase_60,
16424 }, {
16425 .eraseblocks = { {512 * 1024, 1} },
16426 .block_erase = spi_block_erase_c7,
16427 }
16428 },
16429 .printlock = spi_prettyprint_status_register_bp2_srwd,
16430 .unlock = spi_disable_blockprotect_bp2_srwd,
16431 .write = spi_chip_write_256,
16432 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
16433 .voltage = {2300, 3600},
16434 },
16435
16436 {
16437 .vendor = "Sanyo",
16438 .name = "LE25FW106",
16439 .bustype = BUS_SPI,
16440 .manufacture_id = SANYO_ID,
16441 .model_id = SANYO_LE25FW106,
16442 .total_size = 128,
16443 .page_size = 256,
16444 .feature_bits = FEATURE_WRSR_WREN,
16445 .tested = TEST_OK_PREW,
16446 .probe = probe_spi_res2,
16447 .probe_timing = TIMING_ZERO,
16448 .block_erasers =
16449 {
16450 {
16451 .eraseblocks = { {2 * 1024, 64} },
16452 .block_erase = spi_block_erase_d7,
16453 }, {
16454 .eraseblocks = { {32 * 1024, 4} },
16455 .block_erase = spi_block_erase_d8,
16456 }, {
16457 .eraseblocks = { {128 * 1024, 1} },
16458 .block_erase = spi_block_erase_c7,
16459 }
16460 },
16461 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
16462 .unlock = spi_disable_blockprotect_bp1_srwd,
16463 .write = spi_chip_write_256,
16464 .read = spi_chip_read,
16465 .voltage = {2700, 3600},
16466 },
16467
16468 {
16469 .vendor = "Sanyo",
16470 .name = "LE25FW203A",
16471 .bustype = BUS_SPI,
16472 .manufacture_id = SANYO_ID,
16473 .model_id = SANYO_LE25FW203A,
16474 .total_size = 256,
16475 .page_size = 256,
16476 .tested = TEST_UNTESTED,
16477 .probe = probe_spi_rdid,
16478 .probe_timing = TIMING_ZERO,
16479 .block_erasers =
16480 {
16481 {
16482 .eraseblocks = { {256, 1024} },
16483 .block_erase = spi_block_erase_db,
16484 }, {
16485 .eraseblocks = { {64 * 1024, 4} },
16486 .block_erase = spi_block_erase_d8,
16487 }, {
16488 .eraseblocks = { {256 * 1024, 1} },
16489 .block_erase = spi_block_erase_c7,
16490 }
16491 },
16492 .printlock = spi_prettyprint_status_register_default_welwip,
16493 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16494 .write = spi_chip_write_256,
16495 .read = spi_chip_read,
16496 .voltage = {2700, 3600},
16497 },
16498
16499 {
16500 .vendor = "Sanyo",
16501 .name = "LE25FW403A",
16502 .bustype = BUS_SPI,
16503 .manufacture_id = SANYO_ID,
16504 .model_id = SANYO_LE25FW403A,
16505 .total_size = 512,
16506 .page_size = 256,
16507 .tested = TEST_UNTESTED,
16508 .probe = probe_spi_rdid,
16509 .probe_timing = TIMING_ZERO,
16510 .block_erasers =
16511 {
16512 {
16513 .eraseblocks = { {256, 2 * 1024} },
16514 .block_erase = spi_block_erase_db,
16515 }, {
16516 .eraseblocks = { {64 * 1024, 8} },
16517 .block_erase = spi_block_erase_d8,
16518 }, {
16519 .eraseblocks = { {512 * 1024, 1} },
16520 .block_erase = spi_block_erase_c7,
16521 }
16522 },
16523 .printlock = spi_prettyprint_status_register_default_welwip,
16524 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16525 .write = spi_chip_write_256,
16526 .read = spi_chip_read,
16527 .voltage = {2700, 3600},
16528 },
16529
16530 {
16531 .vendor = "Sanyo",
16532 .name = "LE25FW406A",
16533 .bustype = BUS_SPI,
16534 .manufacture_id = SANYO_ID,
16535 .model_id = SANYO_LE25FW406A,
16536 .total_size = 512,
16537 .page_size = 256,
16538 .feature_bits = FEATURE_WRSR_WREN,
16539 .tested = TEST_OK_PREW,
16540 .probe = probe_spi_res2,
16541 .probe_timing = TIMING_ZERO,
16542 .block_erasers =
16543 {
16544 {
16545 .eraseblocks = { {4 * 1024, 128} },
16546 .block_erase = spi_block_erase_d7,
16547 }, {
16548 .eraseblocks = { {64 * 1024, 8} },
16549 .block_erase = spi_block_erase_d8,
16550 }, {
16551 .eraseblocks = { {512 * 1024, 1} },
16552 .block_erase = spi_block_erase_c7,
16553 }
16554 },
16555 .printlock = spi_prettyprint_status_register_plain,
16556 .unlock = spi_disable_blockprotect,
16557 .write = spi_chip_write_256,
16558 .read = spi_chip_read,
16559 .voltage = {2700, 3600},
16560 },
16561
16562 {
16563 .vendor = "Sanyo",
16564 .name = "LE25FW418A",
16565 .bustype = BUS_SPI,
16566 .manufacture_id = SANYO_ID,
16567 .model_id = SANYO_LE25FW418A,
16568 .total_size = 512,
16569 .page_size = 256,
16570 .feature_bits = FEATURE_WRSR_WREN,
16571 .tested = TEST_UNTESTED,
16572 .probe = probe_spi_res2,
16573 .probe_timing = TIMING_ZERO,
16574 .block_erasers =
16575 {
16576 {
16577 .eraseblocks = { {4 * 1024, 128} },
16578 .block_erase = spi_block_erase_d7,
16579 }, {
16580 .eraseblocks = { {64 * 1024, 8} },
16581 .block_erase = spi_block_erase_d8,
16582 }, {
16583 .eraseblocks = { {512 * 1024, 1} },
16584 .block_erase = spi_block_erase_c7,
16585 }
16586 },
16587 .printlock = spi_prettyprint_status_register_bp2_srwd,
16588 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16589 .write = spi_chip_write_256,
16590 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16591 .voltage = {2700, 3600},
16592 },
16593
16594 {
16595 .vendor = "Sanyo",
16596 .name = "LE25FW806",
16597 .bustype = BUS_SPI,
16598 .manufacture_id = SANYO_ID,
16599 .model_id = SANYO_LE25FW806,
16600 .total_size = 1024,
16601 .page_size = 256,
16602 .feature_bits = FEATURE_WRSR_WREN,
16603 .tested = TEST_UNTESTED,
16604 .probe = probe_spi_res2,
16605 .probe_timing = TIMING_ZERO,
16606 .block_erasers =
16607 {
16608 {
16609 .eraseblocks = { {4 * 1024, 256} },
16610 .block_erase = spi_block_erase_20,
16611 }, {
16612 .eraseblocks = { {4 * 1024, 256} },
16613 .block_erase = spi_block_erase_d7,
16614 }, {
16615 .eraseblocks = { {64 * 1024, 16} },
16616 .block_erase = spi_block_erase_d8,
16617 }, {
16618 .eraseblocks = { {1024 * 1024, 1} },
16619 .block_erase = spi_block_erase_c7,
16620 }
16621 },
16622 .printlock = spi_prettyprint_status_register_bp2_srwd,
16623 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16624 .write = spi_chip_write_256,
16625 .read = spi_chip_read,
16626 .voltage = {2700, 3600},
16627 },
16628
16629 {
16630 .vendor = "Sanyo",
16631 .name = "LE25FW808",
16632 .bustype = BUS_SPI,
16633 .manufacture_id = SANYO_ID,
16634 .model_id = SANYO_LE25FW808,
16635 .total_size = 1024,
16636 .page_size = 256,
16637 .feature_bits = FEATURE_WRSR_WREN,
16638 .tested = TEST_UNTESTED,
16639 .probe = probe_spi_res2,
16640 .probe_timing = TIMING_ZERO,
16641 .block_erasers =
16642 {
16643 {
16644 .eraseblocks = { {8 * 1024, 128} },
16645 .block_erase = spi_block_erase_d7,
16646 }, {
16647 .eraseblocks = { {64 * 1024, 16} },
16648 .block_erase = spi_block_erase_d8,
16649 }, {
16650 .eraseblocks = { {1024 * 1024, 1} },
16651 .block_erase = spi_block_erase_c7,
16652 }
16653 },
16654 .printlock = spi_prettyprint_status_register_bp2_srwd,
16655 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16656 .write = spi_chip_write_256,
16657 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16658 .voltage = {2700, 3600},
16659 },
16660
16661 {
16662 .vendor = "Sharp",
16663 .name = "LH28F008BJT-BTLZ1",
16664 .bustype = BUS_PARALLEL,
16665 .manufacture_id = SHARP_ID,
16666 .model_id = SHARP_LH28F008BJ__PB,
16667 .total_size = 1024,
16668 .page_size = 64 * 1024,
16669 .tested = TEST_OK_PREW,
16670 .probe = probe_82802ab,
16671 .probe_timing = TIMING_ZERO,
16672 .block_erasers =
16673 {
16674 {
16675 .eraseblocks = {
16676 {8 * 1024, 8},
16677 {64 * 1024, 15}
16678 },
16679 .block_erase = erase_block_82802ab,
16680 }, {
16681 .eraseblocks = { {1024 * 1024, 1} },
16682 .block_erase = erase_sector_49lfxxxc,
16683 }
16684 },
16685 .unlock = unlock_lh28f008bjt,
16686 .write = write_82802ab,
16687 .read = read_memmapped,
16688 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010016689 .prepare_access = prepare_memory_access,
16690 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016691 },
16692
16693 {
16694 .vendor = "Sharp",
16695 .name = "LHF00L04",
16696 .bustype = BUS_FWH, /* A/A Mux */
16697 .manufacture_id = SHARP_ID,
16698 .model_id = SHARP_LHF00L04,
16699 .total_size = 1024,
16700 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010016701 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016702 .tested = TEST_UNTESTED,
16703 .probe = probe_82802ab,
16704 .probe_timing = TIMING_ZERO,
16705 .block_erasers =
16706 {
16707 {
16708 .eraseblocks = {
16709 {64 * 1024, 15},
16710 {8 * 1024, 8}
16711 },
16712 .block_erase = erase_block_82802ab,
16713 }, {
16714 .eraseblocks = {
16715 {1024 * 1024, 1}
16716 },
16717 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16718 },
16719 },
16720 .unlock = unlock_regspace2_uniform_64k,
16721 .write = write_82802ab,
16722 .read = read_memmapped,
16723 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010016724 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016725 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016726 },
16727
16728 {
16729 .vendor = "Spansion",
16730 .name = "S25FL004A",
16731 .bustype = BUS_SPI,
16732 .manufacture_id = SPANSION_ID,
16733 .model_id = SPANSION_S25FL004A,
16734 .total_size = 512,
16735 .page_size = 256,
16736 .feature_bits = FEATURE_WRSR_WREN,
16737 .tested = TEST_UNTESTED,
16738 .probe = probe_spi_rdid,
16739 .probe_timing = TIMING_ZERO,
16740 .block_erasers =
16741 {
16742 {
16743 .eraseblocks = { {64 * 1024, 8} },
16744 .block_erase = spi_block_erase_d8,
16745 }, {
16746 .eraseblocks = { {512 * 1024, 1} },
16747 .block_erase = spi_block_erase_c7,
16748 }
16749 },
16750 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16751 .unlock = spi_disable_blockprotect,
16752 .write = spi_chip_write_256,
16753 .read = spi_chip_read,
16754 .voltage = {2700, 3600},
16755 },
16756
16757 {
16758 .vendor = "Spansion",
16759 .name = "S25FL008A",
16760 .bustype = BUS_SPI,
16761 .manufacture_id = SPANSION_ID,
16762 .model_id = SPANSION_S25FL008A,
16763 .total_size = 1024,
16764 .page_size = 256,
16765 .feature_bits = FEATURE_WRSR_WREN,
16766 .tested = TEST_OK_PRE,
16767 .probe = probe_spi_rdid,
16768 .probe_timing = TIMING_ZERO,
16769 .block_erasers =
16770 {
16771 {
16772 .eraseblocks = { {64 * 1024, 16} },
16773 .block_erase = spi_block_erase_d8,
16774 }, {
16775 .eraseblocks = { {1024 * 1024, 1} },
16776 .block_erase = spi_block_erase_c7,
16777 }
16778 },
16779 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16780 .unlock = spi_disable_blockprotect,
16781 .write = spi_chip_write_256,
16782 .read = spi_chip_read,
16783 .voltage = {2700, 3600},
16784 },
16785
16786 {
16787 .vendor = "Spansion",
16788 .name = "S25FL016A",
16789 .bustype = BUS_SPI,
16790 .manufacture_id = SPANSION_ID,
16791 .model_id = SPANSION_S25FL016A,
16792 .total_size = 2048,
16793 .page_size = 256,
16794 .feature_bits = FEATURE_WRSR_WREN,
16795 .tested = TEST_OK_PREW,
16796 .probe = probe_spi_rdid,
16797 .probe_timing = TIMING_ZERO,
16798 .block_erasers =
16799 {
16800 {
16801 .eraseblocks = { {64 * 1024, 32} },
16802 .block_erase = spi_block_erase_d8,
16803 }, {
16804 .eraseblocks = { {2 * 1024 * 1024, 1} },
16805 .block_erase = spi_block_erase_c7,
16806 }
16807 },
16808 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16809 .unlock = spi_disable_blockprotect,
16810 .write = spi_chip_write_256,
16811 .read = spi_chip_read,
16812 .voltage = {2700, 3600},
16813 },
16814
16815 {
16816 .vendor = "Spansion",
16817 .name = "S25FL032A/P",
16818 .bustype = BUS_SPI,
16819 .manufacture_id = SPANSION_ID,
16820 .model_id = SPANSION_S25FL032A,
16821 .total_size = 4096,
16822 .page_size = 256,
16823 .feature_bits = FEATURE_WRSR_WREN,
16824 .tested = TEST_OK_PREW,
16825 .probe = probe_spi_rdid,
16826 .probe_timing = TIMING_ZERO,
16827 .block_erasers =
16828 {
16829 {
16830 .eraseblocks = { {64 * 1024, 64} },
16831 .block_erase = spi_block_erase_d8,
16832 }, {
16833 .eraseblocks = { {4 * 1024 * 1024, 1} },
16834 .block_erase = spi_block_erase_c7,
16835 }
16836 },
16837 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16838 .unlock = spi_disable_blockprotect,
16839 .write = spi_chip_write_256,
16840 .read = spi_chip_read,
16841 .voltage = {2700, 3600},
16842 },
16843
16844 {
16845 .vendor = "Spansion",
16846 .name = "S25FL064A/P",
16847 .bustype = BUS_SPI,
16848 .manufacture_id = SPANSION_ID,
16849 .model_id = SPANSION_S25FL064A,
16850 .total_size = 8192,
16851 .page_size = 256,
16852 .feature_bits = FEATURE_WRSR_WREN,
16853 .tested = TEST_OK_PREW,
16854 .probe = probe_spi_rdid,
16855 .probe_timing = TIMING_ZERO,
16856 .block_erasers =
16857 {
16858 {
16859 .eraseblocks = { {64 * 1024, 128} },
16860 .block_erase = spi_block_erase_d8,
16861 }, {
16862 .eraseblocks = { {8 * 1024 * 1024, 1} },
16863 .block_erase = spi_block_erase_c7,
16864 }
16865 },
16866 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16867 .unlock = spi_disable_blockprotect,
16868 .write = spi_chip_write_256,
16869 .read = spi_chip_read,
16870 .voltage = {2700, 3600},
16871 },
16872
16873 {
16874 .vendor = "Spansion",
16875 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16876 .bustype = BUS_SPI,
16877 .manufacture_id = SPANSION_ID,
16878 .model_id = SPANSION_S25FL216,
16879 .total_size = 2048,
16880 .page_size = 256,
16881 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16883 .tested = TEST_UNTESTED,
16884 .probe = probe_spi_rdid,
16885 .probe_timing = TIMING_ZERO,
16886 .block_erasers =
16887 {
16888 {
16889 .eraseblocks = { {4 * 1024, 512} },
16890 .block_erase = spi_block_erase_20,
16891 }, {
16892 .eraseblocks = { {64 * 1024, 32} },
16893 .block_erase = spi_block_erase_d8,
16894 }, {
16895 .eraseblocks = { { 2048 * 1024, 1} },
16896 .block_erase = spi_block_erase_60,
16897 }, {
16898 .eraseblocks = { { 2048 * 1024, 1} },
16899 .block_erase = spi_block_erase_c7,
16900 }
16901 },
16902 .printlock = spi_prettyprint_status_register_bp3_srwd,
16903 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16904 .write = spi_chip_write_256,
16905 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16906 .voltage = {2700, 3600},
16907 },
16908
16909 {
16910 .vendor = "Spansion",
16911 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16912 .bustype = BUS_SPI,
16913 .manufacture_id = SPANSION_ID,
16914 .model_id = SPANSION_S25FL128,
16915 .total_size = 16384,
16916 .page_size = 512,
16917 /* supports 4B addressing */
16918 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16920 .tested = TEST_UNTESTED,
16921 .probe = probe_spi_rdid,
16922 .probe_timing = TIMING_ZERO,
16923 .block_erasers =
16924 {
16925 {
16926 .eraseblocks = { {256 * 1024, 64} },
16927 .block_erase = spi_block_erase_d8,
16928 }, {
16929 .eraseblocks = { { 16384 * 1024, 1} },
16930 .block_erase = spi_block_erase_60,
16931 }, {
16932 .eraseblocks = { { 16384 * 1024, 1} },
16933 .block_erase = spi_block_erase_c7,
16934 }
16935 },
16936 .printlock = spi_prettyprint_status_register_bp2_srwd,
16937 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16938 .write = spi_chip_write_256, /* Multi I/O supported */
16939 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16940 .voltage = {2700, 3600},
16941 },
16942
16943 {
16944 .vendor = "Spansion",
16945 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16946 .bustype = BUS_SPI,
16947 .manufacture_id = SPANSION_ID,
16948 .model_id = SPANSION_S25FL128,
16949 .total_size = 16384,
16950 .page_size = 256,
16951 /* supports 4B addressing */
16952 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16953 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16954 .tested = TEST_OK_PREW,
16955 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16956 .probe = probe_spi_rdid,
16957 .probe_timing = TIMING_ZERO,
16958 .block_erasers =
16959 {
16960 {
16961 /* This chip supports erasing of 32 so-called "parameter sectors" with
16962 * opcode 0x20 which may be configured to be on top or bottom of the address
16963 * space. Trying to access an address outside these 4kB blocks does have no
16964 * effect on the memory contents, e.g.
16965 .eraseblocks = {
16966 {4 * 1024, 32},
16967 {64 * 1024, 254} // inaccessible
16968 },
16969 .block_erase = spi_block_erase_20,
16970 }, { */
16971 .eraseblocks = { { 64 * 1024, 256} },
16972 .block_erase = spi_block_erase_d8,
16973 }, {
16974 .eraseblocks = { { 16384 * 1024, 1} },
16975 .block_erase = spi_block_erase_60,
16976 }, {
16977 .eraseblocks = { { 16384 * 1024, 1} },
16978 .block_erase = spi_block_erase_c7,
16979 }
16980 },
16981 .printlock = spi_prettyprint_status_register_bp2_srwd,
16982 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16983 .write = spi_chip_write_256, /* Multi I/O supported */
16984 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16985 .voltage = {2700, 3600},
16986 },
16987
16988 {
16989 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016990 .name = "S25FL128L",
16991 .bustype = BUS_SPI,
16992 .manufacture_id = SPANSION_ID,
16993 .model_id = SPANSION_S25FL128L,
16994 .total_size = 16384,
16995 .page_size = 256,
16996 /* 4 x 256B Security Region (OTP) */
16997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16998 .tested = TEST_UNTESTED,
16999 .probe = probe_spi_rdid,
17000 .probe_timing = TIMING_ZERO,
17001 .block_erasers =
17002 {
17003 {
17004 .eraseblocks = { {4 * 1024, 4096} },
17005 .block_erase = spi_block_erase_20,
17006 }, {
17007 .eraseblocks = { {32 * 1024, 512} },
17008 .block_erase = spi_block_erase_52,
17009 }, {
17010 .eraseblocks = { {64 * 1024, 256} },
17011 .block_erase = spi_block_erase_d8,
17012 }, {
17013 .eraseblocks = { {16384 * 1024, 1} },
17014 .block_erase = spi_block_erase_60,
17015 }, {
17016 .eraseblocks = { {16384 * 1024, 1} },
17017 .block_erase = spi_block_erase_c7,
17018 }
17019 },
17020 .printlock = spi_prettyprint_status_register_bp2_srwd,
17021 .unlock = spi_disable_blockprotect_bp2_srwd,
17022 .write = spi_chip_write_256,
17023 .read = spi_chip_read, /* Fast read (0x0B) supported */
17024 .voltage = {2700, 3600},
17025 .reg_bits =
17026 {
17027 /*
17028 * Note: This chip has a read-only Status Register 2 that is not
17029 * counted here. Registers are mapped as follows:
17030 * STATUS1 ... Status Register 1
17031 * STATUS2 ... Configuration Register 1
17032 * STATUS3 ... Configuration Register 2
17033 */
17034 .srp = {STATUS1, 7, RW},
17035 .srl = {STATUS2, 0, RW},
17036 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17037 .tb = {STATUS1, 5, RW},
17038 .sec = {STATUS1, 6, RW},
17039 .cmp = {STATUS2, 6, RW},
17040 .wps = {STATUS3, 2, RW},
17041 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017042 .wp_write_cfg = spi_wp_write_cfg,
17043 .wp_read_cfg = spi_wp_read_cfg,
17044 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020017045 .decode_range = decode_range_spi25,
17046 },
17047
17048 {
17049 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017050 .name = "S25FL128P......0", /* uniform 64 kB sectors */
17051 .bustype = BUS_SPI,
17052 .manufacture_id = SPANSION_ID,
17053 .model_id = SPANSION_S25FL128,
17054 .total_size = 16384,
17055 .page_size = 256,
17056 .feature_bits = FEATURE_WRSR_WREN,
17057 .tested = TEST_OK_PREW,
17058 .probe = probe_spi_rdid,
17059 .probe_timing = TIMING_ZERO,
17060 .block_erasers =
17061 {
17062 {
17063 .eraseblocks = { {64 * 1024, 256} },
17064 .block_erase = spi_block_erase_20,
17065 }, {
17066 .eraseblocks = { {64 * 1024, 256} },
17067 .block_erase = spi_block_erase_d8,
17068 }, {
17069 .eraseblocks = { { 16384 * 1024, 1} },
17070 .block_erase = spi_block_erase_60,
17071 }, {
17072 .eraseblocks = { { 16384 * 1024, 1} },
17073 .block_erase = spi_block_erase_c7,
17074 }
17075 },
17076 .printlock = spi_prettyprint_status_register_bp3_srwd,
17077 .unlock = spi_disable_blockprotect_bp3_srwd,
17078 .write = spi_chip_write_256,
17079 .read = spi_chip_read, /* Fast read (0x0B) supported */
17080 .voltage = {2700, 3600},
17081 },
17082
17083 {
17084 .vendor = "Spansion",
17085 .name = "S25FL128P......1", /* uniform 256kB sectors */
17086 .bustype = BUS_SPI,
17087 .manufacture_id = SPANSION_ID,
17088 .model_id = SPANSION_S25FL128,
17089 .total_size = 16384,
17090 .page_size = 256,
17091 .feature_bits = FEATURE_WRSR_WREN,
17092 .tested = TEST_UNTESTED,
17093 .probe = probe_spi_rdid,
17094 .probe_timing = TIMING_ZERO,
17095 .block_erasers =
17096 {
17097 {
17098 .eraseblocks = { {256 * 1024, 64} },
17099 .block_erase = spi_block_erase_d8,
17100 }, {
17101 .eraseblocks = { { 16384 * 1024, 1} },
17102 .block_erase = spi_block_erase_c7,
17103 }
17104 },
17105 .printlock = spi_prettyprint_status_register_bp2_srwd,
17106 .unlock = spi_disable_blockprotect_bp2_srwd,
17107 .write = spi_chip_write_256,
17108 .read = spi_chip_read, /* Fast read (0x0B) supported */
17109 .voltage = {2700, 3600},
17110 },
17111
17112 {
17113 .vendor = "Spansion",
17114 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17115 .bustype = BUS_SPI,
17116 .manufacture_id = SPANSION_ID,
17117 .model_id = SPANSION_S25FL128,
17118 .total_size = 16384,
17119 .page_size = 256,
17120 /* supports 4B addressing */
17121 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17123 .tested = TEST_OK_PREW,
17124 .probe = probe_spi_rdid,
17125 .probe_timing = TIMING_ZERO,
17126 .block_erasers =
17127 {
17128 {
17129 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17130 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17131 * have no effect on the memory contents, but sets a flag in the SR.
17132 .eraseblocks = {
17133 {4 * 1024, 32},
17134 {64 * 1024, 254} // inaccessible
17135 },
17136 .block_erase = spi_block_erase_20,
17137 }, { */
17138 .eraseblocks = { { 64 * 1024, 256} },
17139 .block_erase = spi_block_erase_d8,
17140 }, {
17141 .eraseblocks = { { 16384 * 1024, 1} },
17142 .block_erase = spi_block_erase_60,
17143 }, {
17144 .eraseblocks = { { 16384 * 1024, 1} },
17145 .block_erase = spi_block_erase_c7,
17146 }
17147 },
17148 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17149 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17150 .write = spi_chip_write_256, /* Multi I/O supported */
17151 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17152 .voltage = {2700, 3600},
17153 },
17154
17155 {
17156 .vendor = "Spansion",
17157 .name = "S25FL128S......1", /* uniform 256 kB sectors */
17158 .bustype = BUS_SPI,
17159 .manufacture_id = SPANSION_ID,
17160 .model_id = SPANSION_S25FL128,
17161 .total_size = 16384,
17162 .page_size = 512,
17163 /* supports 4B addressing */
17164 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17165 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17166 .tested = TEST_UNTESTED,
17167 .probe = probe_spi_rdid,
17168 .probe_timing = TIMING_ZERO,
17169 .block_erasers =
17170 {
17171 {
17172 .eraseblocks = { {256 * 1024, 64} },
17173 .block_erase = spi_block_erase_d8,
17174 }, {
17175 .eraseblocks = { { 16384 * 1024, 1} },
17176 .block_erase = spi_block_erase_60,
17177 }, {
17178 .eraseblocks = { { 16384 * 1024, 1} },
17179 .block_erase = spi_block_erase_c7,
17180 }
17181 },
17182 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17183 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17184 .write = spi_chip_write_256, /* Multi I/O supported */
17185 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17186 .voltage = {2700, 3600},
17187 },
17188
17189 {
17190 .vendor = "Spansion",
17191 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17192 .bustype = BUS_SPI,
17193 .manufacture_id = SPANSION_ID,
17194 .model_id = SPANSION_S25FL128,
17195 .total_size = 16384,
17196 .page_size = 256,
17197 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17199 .tested = TEST_OK_PREW,
17200 .probe = probe_spi_rdid,
17201 .probe_timing = TIMING_ZERO,
17202 .block_erasers =
17203 {
17204 {
17205 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
17206 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
17207 * effect on the memory contents, but sets a flag in the SR.
17208 .eraseblocks = {
17209 {4 * 1024, 32},
17210 {64 * 1024, 254} // inaccessible
17211 },
17212 .block_erase = spi_block_erase_20,
17213 }, { */
17214 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
17215 .eraseblocks = {
17216 {8 * 1024, 16},
17217 {64 * 1024, 254} // inaccessible
17218 },
17219 .block_erase = spi_block_erase_40,
17220 }, { */
17221 .eraseblocks = { { 64 * 1024, 256} },
17222 .block_erase = spi_block_erase_d8,
17223 }, {
17224 .eraseblocks = { { 16384 * 1024, 1} },
17225 .block_erase = spi_block_erase_60,
17226 }, {
17227 .eraseblocks = { { 16384 * 1024, 1} },
17228 .block_erase = spi_block_erase_c7,
17229 }
17230 },
17231 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17232 .unlock = spi_disable_blockprotect_bp2_srwd,
17233 .write = spi_chip_write_256, /* Multi I/O supported */
17234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17235 .voltage = {2700, 3600},
17236 },
17237
17238 {
17239 .vendor = "Spansion",
17240 .name = "S25FL129P......1", /* uniform 256 kB sectors */
17241 .bustype = BUS_SPI,
17242 .manufacture_id = SPANSION_ID,
17243 .model_id = SPANSION_S25FL128,
17244 .total_size = 16384,
17245 .page_size = 256,
17246 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17248 .tested = TEST_UNTESTED,
17249 .probe = probe_spi_rdid,
17250 .probe_timing = TIMING_ZERO,
17251 .block_erasers =
17252 {
17253 {
17254 .eraseblocks = { {256 * 1024, 64} },
17255 .block_erase = spi_block_erase_d8,
17256 }, {
17257 .eraseblocks = { { 16384 * 1024, 1} },
17258 .block_erase = spi_block_erase_60,
17259 }, {
17260 .eraseblocks = { { 16384 * 1024, 1} },
17261 .block_erase = spi_block_erase_c7,
17262 }
17263 },
17264 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17265 .unlock = spi_disable_blockprotect_bp2_srwd,
17266 .write = spi_chip_write_256, /* Multi I/O supported */
17267 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17268 .voltage = {2700, 3600},
17269 },
17270
17271 {
17272 .vendor = "Spansion",
17273 .name = "S25FL132K",
17274 .bustype = BUS_SPI,
17275 .manufacture_id = SPANSION_ID,
17276 .model_id = SPANSION_S25FL132K,
17277 .total_size = 4096,
17278 .page_size = 256,
17279 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17281 .tested = TEST_UNTESTED,
17282 .probe = probe_spi_rdid,
17283 .probe_timing = TIMING_ZERO,
17284 .block_erasers =
17285 {
17286 {
17287 .eraseblocks = { {4 * 1024, 1024} },
17288 .block_erase = spi_block_erase_20,
17289 }, {
17290 .eraseblocks = { {64 * 1024, 64} },
17291 .block_erase = spi_block_erase_d8,
17292 }, {
17293 .eraseblocks = { { 4096 * 1024, 1} },
17294 .block_erase = spi_block_erase_60,
17295 }, {
17296 .eraseblocks = { { 4096 * 1024, 1} },
17297 .block_erase = spi_block_erase_c7,
17298 }
17299 },
17300 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17301 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17302 .write = spi_chip_write_256,
17303 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17304 .voltage = {2700, 3600},
17305 },
17306
17307 {
17308 .vendor = "Spansion",
17309 .name = "S25FL164K",
17310 .bustype = BUS_SPI,
17311 .manufacture_id = SPANSION_ID,
17312 .model_id = SPANSION_S25FL164K,
17313 .total_size = 8192,
17314 .page_size = 256,
17315 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17316 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17317 .tested = TEST_OK_PREW,
17318 .probe = probe_spi_rdid,
17319 .probe_timing = TIMING_ZERO,
17320 .block_erasers =
17321 {
17322 {
17323 .eraseblocks = { {4 * 1024, 2048} },
17324 .block_erase = spi_block_erase_20,
17325 }, {
17326 .eraseblocks = { {64 * 1024, 128} },
17327 .block_erase = spi_block_erase_d8,
17328 }, {
17329 .eraseblocks = { { 8192 * 1024, 1} },
17330 .block_erase = spi_block_erase_60,
17331 }, {
17332 .eraseblocks = { { 8192 * 1024, 1} },
17333 .block_erase = spi_block_erase_c7,
17334 }
17335 },
17336 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17337 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17338 .write = spi_chip_write_256,
17339 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17340 .voltage = {2700, 3600},
17341 },
17342
17343 {
17344 .vendor = "Spansion",
17345 .name = "S25FL204K",
17346 .bustype = BUS_SPI,
17347 .manufacture_id = SPANSION_ID,
17348 .model_id = SPANSION_S25FL204,
17349 .total_size = 512,
17350 .page_size = 256,
17351 .feature_bits = FEATURE_WRSR_WREN,
17352 .tested = TEST_OK_PR,
17353 .probe = probe_spi_rdid,
17354 .probe_timing = TIMING_ZERO,
17355 .block_erasers =
17356 {
17357 {
17358 .eraseblocks = { {4 * 1024, 128} },
17359 .block_erase = spi_block_erase_20,
17360 }, {
17361 .eraseblocks = { {64 * 1024, 8} },
17362 .block_erase = spi_block_erase_d8,
17363 }, {
17364 .eraseblocks = { { 512 * 1024, 1} },
17365 .block_erase = spi_block_erase_60,
17366 }, {
17367 .eraseblocks = { { 512 * 1024, 1} },
17368 .block_erase = spi_block_erase_c7,
17369 }
17370 },
17371 .printlock = spi_prettyprint_status_register_bp3_srwd,
17372 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17373 .write = spi_chip_write_256,
17374 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17375 .voltage = {2700, 3600},
17376 },
17377
17378 {
17379 .vendor = "Spansion",
17380 .name = "S25FL208K",
17381 .bustype = BUS_SPI,
17382 .manufacture_id = SPANSION_ID,
17383 .model_id = SPANSION_S25FL208,
17384 .total_size = 1024,
17385 .page_size = 256,
17386 .feature_bits = FEATURE_WRSR_WREN,
17387 .tested = TEST_OK_PREW,
17388 .probe = probe_spi_rdid,
17389 .probe_timing = TIMING_ZERO,
17390 .block_erasers =
17391 {
17392 {
17393 .eraseblocks = { {4 * 1024, 256} },
17394 .block_erase = spi_block_erase_20,
17395 }, {
17396 .eraseblocks = { {64 * 1024, 16} },
17397 .block_erase = spi_block_erase_d8,
17398 }, {
17399 .eraseblocks = { { 1024 * 1024, 1} },
17400 .block_erase = spi_block_erase_60,
17401 }, {
17402 .eraseblocks = { { 1024 * 1024, 1} },
17403 .block_erase = spi_block_erase_c7,
17404 }
17405 },
17406 .printlock = spi_prettyprint_status_register_bp3_srwd,
17407 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17408 .write = spi_chip_write_256,
17409 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17410 .voltage = {2700, 3600},
17411 },
17412
17413 {
17414 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020017415 .name = "S25FL256L",
17416 .bustype = BUS_SPI,
17417 .manufacture_id = SPANSION_ID,
17418 .model_id = SPANSION_S25FL256L,
17419 .total_size = 32768,
17420 .page_size = 256,
17421 /* 4 x 256B Security Region (OTP) */
17422 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
17423 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
17424 .tested = TEST_UNTESTED,
17425 .probe = probe_spi_rdid,
17426 .probe_timing = TIMING_ZERO,
17427 .block_erasers =
17428 {
17429 {
17430 .eraseblocks = { {4 * 1024, 8192} },
17431 .block_erase = spi_block_erase_21,
17432 }, {
17433 .eraseblocks = { {4 * 1024, 8192} },
17434 .block_erase = spi_block_erase_20,
17435 }, {
17436 .eraseblocks = { {32 * 1024, 1024} },
17437 .block_erase = spi_block_erase_53,
17438 }, {
17439 .eraseblocks = { {32 * 1024, 1024} },
17440 .block_erase = spi_block_erase_52,
17441 }, {
17442 .eraseblocks = { {64 * 1024, 512} },
17443 .block_erase = spi_block_erase_dc,
17444 }, {
17445 .eraseblocks = { {64 * 1024, 512} },
17446 .block_erase = spi_block_erase_d8,
17447 }, {
17448 .eraseblocks = { {32768 * 1024, 1} },
17449 .block_erase = spi_block_erase_60,
17450 }, {
17451 .eraseblocks = { {32768 * 1024, 1} },
17452 .block_erase = spi_block_erase_c7,
17453 }
17454 },
17455 .printlock = spi_prettyprint_status_register_bp3_srwd,
17456 .unlock = spi_disable_blockprotect_bp3_srwd,
17457 .write = spi_chip_write_256,
17458 .read = spi_chip_read, /* Fast read (0x0B) supported */
17459 .voltage = {2700, 3600},
17460 .reg_bits =
17461 {
17462 /*
17463 * Note: This chip has a read-only Status Register 2 that is not
17464 * counted here. Registers are mapped as follows:
17465 * STATUS1 ... Status Register 1
17466 * STATUS2 ... Configuration Register 1
17467 * STATUS3 ... Configuration Register 2
17468 */
17469 .srp = {STATUS1, 7, RW},
17470 .srl = {STATUS2, 0, RW},
17471 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17472 .tb = {STATUS1, 6, RW},
17473 .cmp = {STATUS2, 6, RW},
17474 .wps = {STATUS3, 2, RW},
17475 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017476 .wp_write_cfg = spi_wp_write_cfg,
17477 .wp_read_cfg = spi_wp_read_cfg,
17478 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020017479 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017480 .prepare_access = spi_prepare_4ba,
Nico Huberfffc48d2022-05-28 14:26:06 +020017481 },
17482
17483 {
17484 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017485 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17486 .bustype = BUS_SPI,
17487 .manufacture_id = SPANSION_ID,
17488 .model_id = SPANSION_S25FL256,
17489 .total_size = 32768,
17490 .page_size = 256,
17491 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020017492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17493 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017494 .tested = TEST_OK_PREW,
17495 .probe = probe_spi_rdid,
17496 .probe_timing = TIMING_ZERO,
17497 .block_erasers =
17498 {
17499 {
17500 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17501 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17502 * have no effect on the memory contents, but sets a flag in the SR.
17503 .eraseblocks = {
17504 {4 * 1024, 32},
17505 {64 * 1024, 254} // inaccessible
17506 },
17507 .block_erase = spi_block_erase_20,
17508 }, { */
17509 .eraseblocks = { { 64 * 1024, 512} },
17510 .block_erase = spi_block_erase_dc,
17511 }, {
17512 .eraseblocks = { { 64 * 1024, 512} },
17513 .block_erase = spi_block_erase_d8,
17514 }, {
17515 .eraseblocks = { { 32768 * 1024, 1} },
17516 .block_erase = spi_block_erase_60,
17517 }, {
17518 .eraseblocks = { { 32768 * 1024, 1} },
17519 .block_erase = spi_block_erase_c7,
17520 }
17521 },
17522 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17523 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17524 .write = spi_chip_write_256, /* Multi I/O supported */
17525 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17526 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017527 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017528 },
17529
17530 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017531 .vendor = "Spansion",
17532 .name = "S25FL512S",
17533 .bustype = BUS_SPI,
17534 .manufacture_id = SPANSION_ID,
17535 .model_id = SPANSION_S25FL512,
17536 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
17537 .page_size = 256,
17538 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020017539 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17540 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
17541 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017542 .probe = probe_spi_rdid,
17543 .probe_timing = TIMING_ZERO,
17544 .block_erasers =
17545 {
17546 {
17547 .eraseblocks = { { 256 * 1024, 256} },
17548 .block_erase = spi_block_erase_dc,
17549 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020017550 .eraseblocks = { { 256 * 1024, 256} },
17551 .block_erase = spi_block_erase_d8,
17552 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017553 .eraseblocks = { { 65536 * 1024, 1} },
17554 .block_erase = spi_block_erase_60,
17555 }, {
17556 .eraseblocks = { { 65536 * 1024, 1} },
17557 .block_erase = spi_block_erase_c7,
17558 }
17559 },
17560 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17561 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17562 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
17563 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17564 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017565 .prepare_access = spi_prepare_4ba,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017566 },
17567
17568 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017569 .vendor = "SyncMOS/MoselVitelic",
17570 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017571 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017572 .manufacture_id = SYNCMOS_MVC_ID,
17573 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017574 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017575 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017576 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017577 .tested = TEST_UNTESTED,
17578 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017579 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017580 .block_erasers =
17581 {
17582 {
17583 .eraseblocks = { {512, 256} },
17584 .block_erase = erase_sector_jedec,
17585 }, {
17586 .eraseblocks = { {128 * 1024, 1} },
17587 .block_erase = erase_chip_block_jedec,
17588 },
17589 },
Sean Nelson35727f72010-01-28 23:55:12 +000017590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017592 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017593 .prepare_access = prepare_memory_access,
17594 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017595 },
17596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017597 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017598 .vendor = "SyncMOS/MoselVitelic",
17599 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017600 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017601 .manufacture_id = SYNCMOS_MVC_ID,
17602 .model_id = SM_MVC_29C51001T,
17603 .total_size = 128,
17604 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017605 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017606 .tested = TEST_UNTESTED,
17607 .probe = probe_jedec,
17608 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17609 .block_erasers =
17610 {
17611 {
17612 .eraseblocks = { {512, 256} },
17613 .block_erase = erase_sector_jedec,
17614 }, {
17615 .eraseblocks = { {128 * 1024, 1} },
17616 .block_erase = erase_chip_block_jedec,
17617 },
17618 },
17619 .write = write_jedec_1,
17620 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017621 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017622 .prepare_access = prepare_memory_access,
17623 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017624 },
17625
17626 {
17627 .vendor = "SyncMOS/MoselVitelic",
17628 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017629 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017630 .manufacture_id = SYNCMOS_MVC_ID,
17631 .model_id = SM_MVC_29C51002B,
17632 .total_size = 256,
17633 .page_size = 512,
17634 .feature_bits = FEATURE_EITHER_RESET,
17635 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017636 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017637 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017638 .block_erasers =
17639 {
17640 {
17641 .eraseblocks = { {512, 512} },
17642 .block_erase = erase_sector_jedec,
17643 }, {
17644 .eraseblocks = { {256 * 1024, 1} },
17645 .block_erase = erase_chip_block_jedec,
17646 },
17647 },
Sean Nelson35727f72010-01-28 23:55:12 +000017648 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017649 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017650 .prepare_access = prepare_memory_access,
17651 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017652 },
17653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017654 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017655 .vendor = "SyncMOS/MoselVitelic",
17656 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017657 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017658 .manufacture_id = SYNCMOS_MVC_ID,
17659 .model_id = SM_MVC_29C51002T,
17660 .total_size = 256,
17661 .page_size = 512,
17662 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017663 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017664 .probe = probe_jedec,
17665 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17666 .block_erasers =
17667 {
17668 {
17669 .eraseblocks = { {512, 512} },
17670 .block_erase = erase_sector_jedec,
17671 }, {
17672 .eraseblocks = { {256 * 1024, 1} },
17673 .block_erase = erase_chip_block_jedec,
17674 },
17675 },
17676 .write = write_jedec_1,
17677 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017678 .prepare_access = prepare_memory_access,
17679 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017680 },
17681
17682 {
17683 .vendor = "SyncMOS/MoselVitelic",
17684 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017685 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017686 .manufacture_id = SYNCMOS_MVC_ID,
17687 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017688 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017689 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017690 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017691 .tested = TEST_UNTESTED,
17692 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017693 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017694 .block_erasers =
17695 {
17696 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017697 .eraseblocks = { {1024, 512} },
17698 .block_erase = erase_sector_jedec,
17699 }, {
17700 .eraseblocks = { {512 * 1024, 1} },
17701 .block_erase = erase_chip_block_jedec,
17702 },
17703 },
17704 .write = write_jedec_1,
17705 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017706 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017707 .prepare_access = prepare_memory_access,
17708 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017709 },
17710
17711 {
17712 .vendor = "SyncMOS/MoselVitelic",
17713 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017714 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017715 .manufacture_id = SYNCMOS_MVC_ID,
17716 .model_id = SM_MVC_29C51004T,
17717 .total_size = 512,
17718 .page_size = 1024,
17719 .feature_bits = FEATURE_EITHER_RESET,
17720 .tested = TEST_UNTESTED,
17721 .probe = probe_jedec,
17722 .probe_timing = TIMING_ZERO,
17723 .block_erasers =
17724 {
17725 {
17726 .eraseblocks = { {1024, 512} },
17727 .block_erase = erase_sector_jedec,
17728 }, {
17729 .eraseblocks = { {512 * 1024, 1} },
17730 .block_erase = erase_chip_block_jedec,
17731 },
17732 },
17733 .write = write_jedec_1,
17734 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017735 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017736 .prepare_access = prepare_memory_access,
17737 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017738 },
17739
17740 {
17741 .vendor = "SyncMOS/MoselVitelic",
17742 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017743 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017744 .manufacture_id = SYNCMOS_MVC_ID,
17745 .model_id = SM_MVC_29C31004B,
17746 .total_size = 512,
17747 .page_size = 1024,
17748 .feature_bits = FEATURE_EITHER_RESET,
17749 .tested = TEST_UNTESTED,
17750 .probe = probe_jedec,
17751 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17752 .block_erasers =
17753 {
17754 {
17755 .eraseblocks = { {1024, 512} },
17756 .block_erase = erase_sector_jedec,
17757 }, {
17758 .eraseblocks = { {512 * 1024, 1} },
17759 .block_erase = erase_chip_block_jedec,
17760 },
17761 },
17762 .write = write_jedec_1,
17763 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017764 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017765 .prepare_access = prepare_memory_access,
17766 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017767 },
17768
17769 {
17770 .vendor = "SyncMOS/MoselVitelic",
17771 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017772 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017773 .manufacture_id = SYNCMOS_MVC_ID,
17774 .model_id = SM_MVC_29C31004T,
17775 .total_size = 512,
17776 .page_size = 1024,
17777 .feature_bits = FEATURE_EITHER_RESET,
17778 .tested = TEST_UNTESTED,
17779 .probe = probe_jedec,
17780 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17781 .block_erasers =
17782 {
17783 {
17784 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017785 .block_erase = erase_sector_jedec,
17786 }, {
17787 .eraseblocks = { {512 * 1024, 1} },
17788 .block_erase = erase_chip_block_jedec,
17789 },
17790 },
Sean Nelson35727f72010-01-28 23:55:12 +000017791 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017793 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017794 .prepare_access = prepare_memory_access,
17795 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017796 },
17797
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017798 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017799 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017800 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017801 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017802 .manufacture_id = TI_OLD_ID,
17803 .model_id = TI_TMS29F002RB,
17804 .total_size = 256,
17805 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017807 .tested = TEST_UNTESTED,
17808 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017809 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017810 .block_erasers =
17811 {
17812 {
17813 .eraseblocks = {
17814 {16 * 1024, 1},
17815 {8 * 1024, 2},
17816 {32 * 1024, 1},
17817 {64 * 1024, 3},
17818 },
17819 .block_erase = erase_sector_jedec,
17820 }, {
17821 .eraseblocks = { {256 * 1024, 1} },
17822 .block_erase = erase_chip_block_jedec,
17823 },
17824 },
Sean Nelson35727f72010-01-28 23:55:12 +000017825 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017827 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017828 .prepare_access = prepare_memory_access,
17829 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017830 },
17831
17832 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017833 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017834 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017835 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017836 .manufacture_id = TI_OLD_ID,
17837 .model_id = TI_TMS29F002RT,
17838 .total_size = 256,
17839 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017840 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017841 .tested = TEST_UNTESTED,
17842 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017844 .block_erasers =
17845 {
17846 {
17847 .eraseblocks = {
17848 {64 * 1024, 3},
17849 {32 * 1024, 1},
17850 {8 * 1024, 2},
17851 {16 * 1024, 1},
17852 },
17853 .block_erase = erase_sector_jedec,
17854 }, {
17855 .eraseblocks = { {256 * 1024, 1} },
17856 .block_erase = erase_chip_block_jedec,
17857 },
17858 },
Sean Nelson35727f72010-01-28 23:55:12 +000017859 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017861 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017862 .prepare_access = prepare_memory_access,
17863 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017864 },
17865
17866 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017867 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017868 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017869 .bustype = BUS_SPI,
17870 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017871 .model_id = WINBOND_NEX_W25P16,
17872 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017873 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017874 .feature_bits = FEATURE_WRSR_WREN,
17875 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017876 .probe = probe_spi_rdid,
17877 .probe_timing = TIMING_ZERO,
17878 .block_erasers =
17879 {
17880 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017881 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017882 .block_erase = spi_block_erase_d8,
17883 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017884 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017885 .block_erase = spi_block_erase_c7,
17886 }
17887 },
17888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17889 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017890 .write = spi_chip_write_256,
17891 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017892 .voltage = {2700, 3600},
17893 },
17894
17895 {
17896 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017897 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017898 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017899 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017900 .model_id = WINBOND_NEX_W25P32,
17901 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017902 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017903 .feature_bits = FEATURE_WRSR_WREN,
17904 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017905 .probe = probe_spi_rdid,
17906 .probe_timing = TIMING_ZERO,
17907 .block_erasers =
17908 {
17909 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017910 .eraseblocks = { {64 * 1024, 64} },
17911 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017912 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017913 .eraseblocks = { {4096 * 1024, 1} },
17914 .block_erase = spi_block_erase_c7,
17915 }
17916 },
17917 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17918 .unlock = spi_disable_blockprotect,
17919 .write = spi_chip_write_256,
17920 .read = spi_chip_read, /* Fast read (0x0B) supported */
17921 .voltage = {2700, 3600},
17922 },
17923
17924 {
17925 .vendor = "Winbond",
17926 .name = "W25P80",
17927 .bustype = BUS_SPI,
17928 .manufacture_id = WINBOND_NEX_ID,
17929 .model_id = WINBOND_NEX_W25P80,
17930 .total_size = 1024,
17931 .page_size = 256,
17932 .feature_bits = FEATURE_WRSR_WREN,
17933 .tested = TEST_UNTESTED,
17934 .probe = probe_spi_rdid,
17935 .probe_timing = TIMING_ZERO,
17936 .block_erasers =
17937 {
17938 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017939 .eraseblocks = { {64 * 1024, 16} },
17940 .block_erase = spi_block_erase_d8,
17941 }, {
17942 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017943 .block_erase = spi_block_erase_c7,
17944 }
17945 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017947 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017948 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017949 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017950 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017951 },
17952
17953 {
17954 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017955 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017956 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017957 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017958 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017959 .total_size = 16384,
17960 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017961 /* supports SFDP */
17962 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010017963 /* QPI: only FV & JV..M versions */
17964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Nico Huber3f3c1f32022-05-28 16:48:26 +020017965 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017966 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017967 .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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017988 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017989 .unlock = spi_disable_blockprotect,
17990 .write = spi_chip_write_256,
17991 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017992 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017993 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17994 .reg_bits =
17995 {
Nico Huber2133f592024-01-06 18:30:01 +010017996 .qe = {STATUS2, 1, RW},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017997 .srp = {STATUS1, 7, RW},
17998 .srl = {STATUS2, 0, RW},
17999 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18000 .tb = {STATUS1, 5, RW},
18001 .sec = {STATUS1, 6, RW},
18002 .cmp = {STATUS2, 6, RW},
18003 .wps = {STATUS3, 2, RW},
18004 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018005 .wp_write_cfg = spi_wp_write_cfg,
18006 .wp_read_cfg = spi_wp_read_cfg,
18007 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018008 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018009 },
18010
18011 {
18012 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020018013 .name = "W25Q128.V..M",
18014 .bustype = BUS_SPI,
18015 .manufacture_id = WINBOND_NEX_ID,
18016 .model_id = WINBOND_NEX_W25Q128_V_M,
18017 .total_size = 16384,
18018 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010018019 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
18020 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018021 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020018022 .probe = probe_spi_rdid,
18023 .probe_timing = TIMING_ZERO,
18024 .block_erasers =
18025 {
18026 {
18027 .eraseblocks = { {4 * 1024, 4096} },
18028 .block_erase = spi_block_erase_20,
18029 }, {
18030 .eraseblocks = { {32 * 1024, 512} },
18031 .block_erase = spi_block_erase_52,
18032 }, {
18033 .eraseblocks = { {64 * 1024, 256} },
18034 .block_erase = spi_block_erase_d8,
18035 }, {
18036 .eraseblocks = { {16 * 1024 * 1024, 1} },
18037 .block_erase = spi_block_erase_60,
18038 }, {
18039 .eraseblocks = { {16 * 1024 * 1024, 1} },
18040 .block_erase = spi_block_erase_c7,
18041 }
18042 },
Alan Greena1fc01d2019-09-23 17:12:44 +100018043 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020018044 .unlock = spi_disable_blockprotect,
18045 .write = spi_chip_write_256,
18046 .read = spi_chip_read,
18047 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018048 .reg_bits =
18049 {
Nico Huber2133f592024-01-06 18:30:01 +010018050 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018051 .srp = {STATUS1, 7, RW},
18052 .srl = {STATUS2, 0, RW},
18053 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18054 .tb = {STATUS1, 5, RW},
18055 .sec = {STATUS1, 6, RW},
18056 .cmp = {STATUS2, 6, RW},
18057 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018058 .wp_write_cfg = spi_wp_write_cfg,
18059 .wp_read_cfg = spi_wp_read_cfg,
18060 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018061 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020018062 },
18063
18064 {
18065 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018066 .name = "W25Q128.W",
18067 .bustype = BUS_SPI,
18068 .manufacture_id = WINBOND_NEX_ID,
18069 .model_id = WINBOND_NEX_W25Q128_W,
18070 .total_size = 16384,
18071 .page_size = 256,
18072 /* supports SFDP */
18073 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018074 /* QPI: only FW & JW..M versions */
18075 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018076 .tested = TEST_OK_PREW,
18077 .probe = probe_spi_rdid,
18078 .probe_timing = TIMING_ZERO,
18079 .block_erasers =
18080 {
18081 {
18082 .eraseblocks = { {4 * 1024, 4096} },
18083 .block_erase = spi_block_erase_20,
18084 }, {
18085 .eraseblocks = { {32 * 1024, 512} },
18086 .block_erase = spi_block_erase_52,
18087 }, {
18088 .eraseblocks = { {64 * 1024, 256} },
18089 .block_erase = spi_block_erase_d8,
18090 }, {
18091 .eraseblocks = { {16 * 1024 * 1024, 1} },
18092 .block_erase = spi_block_erase_60,
18093 }, {
18094 .eraseblocks = { {16 * 1024 * 1024, 1} },
18095 .block_erase = spi_block_erase_c7,
18096 }
18097 },
18098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18099 .unlock = spi_disable_blockprotect,
18100 .write = spi_chip_write_256,
18101 .read = spi_chip_read,
18102 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018103 .reg_bits =
18104 {
Nico Huber2133f592024-01-06 18:30:01 +010018105 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018106 .srp = {STATUS1, 7, RW},
18107 .srl = {STATUS2, 0, RW},
18108 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18109 .tb = {STATUS1, 5, RW},
18110 .sec = {STATUS1, 6, RW},
18111 .cmp = {STATUS2, 6, RW},
18112 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018113 .wp_write_cfg = spi_wp_write_cfg,
18114 .wp_read_cfg = spi_wp_read_cfg,
18115 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018116 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018117 },
18118
18119 {
18120 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080018121 .name = "W25Q128.JW.DTR",
18122 .bustype = BUS_SPI,
18123 .manufacture_id = WINBOND_NEX_ID,
18124 .model_id = WINBOND_NEX_W25Q128_DTR,
18125 .total_size = 16384,
18126 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010018127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
18128 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Peichao Wang1a119492019-11-11 15:26:41 +080018129 .tested = TEST_OK_PREW,
18130 .probe = probe_spi_rdid,
18131 .probe_timing = TIMING_ZERO,
18132 .block_erasers =
18133 {
18134 {
18135 .eraseblocks = { {4 * 1024, 4096} },
18136 .block_erase = spi_block_erase_20,
18137 }, {
18138 .eraseblocks = { {32 * 1024, 512} },
18139 .block_erase = spi_block_erase_52,
18140 }, {
18141 .eraseblocks = { {64 * 1024, 256} },
18142 .block_erase = spi_block_erase_d8,
18143 }, {
18144 .eraseblocks = { {16 * 1024 * 1024, 1} },
18145 .block_erase = spi_block_erase_60,
18146 }, {
18147 .eraseblocks = { {16 * 1024 * 1024, 1} },
18148 .block_erase = spi_block_erase_c7,
18149 }
18150 },
18151 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18152 .unlock = spi_disable_blockprotect,
18153 .write = spi_chip_write_256,
18154 .read = spi_chip_read,
18155 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018156 .reg_bits =
18157 {
Nico Huber2133f592024-01-06 18:30:01 +010018158 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018159 .srp = {STATUS1, 7, RW},
18160 .srl = {STATUS2, 0, RW},
18161 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18162 .tb = {STATUS1, 5, RW},
18163 .sec = {STATUS1, 6, RW},
18164 .cmp = {STATUS2, 6, RW},
18165 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018166 .wp_write_cfg = spi_wp_write_cfg,
18167 .wp_read_cfg = spi_wp_read_cfg,
18168 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018169 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080018170 },
18171
18172 {
18173 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018174 .name = "W25Q16.V",
18175 .bustype = BUS_SPI,
18176 .manufacture_id = WINBOND_NEX_ID,
18177 .model_id = WINBOND_NEX_W25Q16_V,
18178 .total_size = 2048,
18179 .page_size = 256,
18180 /* supports SFDP */
18181 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018182 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018183 .tested = TEST_OK_PREW,
18184 .probe = probe_spi_rdid,
18185 .probe_timing = TIMING_ZERO,
18186 .block_erasers =
18187 {
18188 {
18189 .eraseblocks = { {4 * 1024, 512} },
18190 .block_erase = spi_block_erase_20,
18191 }, {
18192 .eraseblocks = { {32 * 1024, 64} },
18193 .block_erase = spi_block_erase_52,
18194 }, {
18195 .eraseblocks = { {64 * 1024, 32} },
18196 .block_erase = spi_block_erase_d8,
18197 }, {
18198 .eraseblocks = { {2 * 1024 * 1024, 1} },
18199 .block_erase = spi_block_erase_60,
18200 }, {
18201 .eraseblocks = { {2 * 1024 * 1024, 1} },
18202 .block_erase = spi_block_erase_c7,
18203 }
18204 },
Nico Huber2133f592024-01-06 18:30:01 +010018205 .reg_bits =
18206 {
18207 .qe = {STATUS2, 1, RW},
18208 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100018209 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18210 .unlock = spi_disable_blockprotect,
18211 .write = spi_chip_write_256,
18212 .read = spi_chip_read,
18213 .voltage = {2700, 3600},
18214 },
18215
18216 {
18217 .vendor = "Winbond",
18218 .name = "W25Q16.W",
18219 .bustype = BUS_SPI,
18220 .manufacture_id = WINBOND_NEX_ID,
18221 .model_id = WINBOND_NEX_W25Q16_W,
18222 .total_size = 2048,
18223 .page_size = 256,
18224 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018225 /* QPI: only FW & JW..M versions .qpi_read_params = { 2, 4, 6, 8 } */
18226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018227 .tested = TEST_UNTESTED,
18228 .probe = probe_spi_rdid,
18229 .probe_timing = TIMING_ZERO,
18230 .block_erasers =
18231 {
18232 {
18233 .eraseblocks = { {4 * 1024, 512} },
18234 .block_erase = spi_block_erase_20,
18235 }, {
18236 .eraseblocks = { {32 * 1024, 64} },
18237 .block_erase = spi_block_erase_52,
18238 }, {
18239 .eraseblocks = { {64 * 1024, 32} },
18240 .block_erase = spi_block_erase_d8,
18241 }, {
18242 .eraseblocks = { {2 * 1024 * 1024, 1} },
18243 .block_erase = spi_block_erase_60,
18244 }, {
18245 .eraseblocks = { {2 * 1024 * 1024, 1} },
18246 .block_erase = spi_block_erase_c7,
18247 }
18248 },
Nico Huber2133f592024-01-06 18:30:01 +010018249 .reg_bits =
18250 {
18251 .qe = {STATUS2, 1, RW},
18252 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100018253 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18254 .unlock = spi_disable_blockprotect,
18255 .write = spi_chip_write_256,
18256 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018257 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100018258 },
18259
18260 {
18261 .vendor = "Winbond",
18262 .name = "W25Q20.W",
18263 .bustype = BUS_SPI,
18264 .manufacture_id = WINBOND_NEX_ID,
18265 .model_id = WINBOND_NEX_W25Q20_W,
18266 .total_size = 256,
18267 .page_size = 256,
18268 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018269 /* W25Q20EW: FEATURE_WRSR2 */
18270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018271 .tested = TEST_UNTESTED,
18272 .probe = probe_spi_rdid,
18273 .probe_timing = TIMING_ZERO,
18274 .block_erasers =
18275 {
18276 {
18277 .eraseblocks = { {4 * 1024, 64} },
18278 .block_erase = spi_block_erase_20,
18279 }, {
18280 .eraseblocks = { {32 * 1024, 8} },
18281 .block_erase = spi_block_erase_52,
18282 }, {
18283 .eraseblocks = { {64 * 1024, 4} },
18284 .block_erase = spi_block_erase_d8,
18285 }, {
18286 .eraseblocks = { {256 * 1024, 1} },
18287 .block_erase = spi_block_erase_60,
18288 }, {
18289 .eraseblocks = { {256 * 1024, 1} },
18290 .block_erase = spi_block_erase_c7,
18291 }
18292 },
Nico Huber2133f592024-01-06 18:30:01 +010018293 .reg_bits =
18294 {
18295 .qe = {STATUS2, 1, RW},
18296 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100018297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18298 .unlock = spi_disable_blockprotect,
18299 .write = spi_chip_write_256,
18300 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010018301 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100018302 },
18303
18304 {
18305 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018306 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020018307 .bustype = BUS_SPI,
18308 .manufacture_id = WINBOND_NEX_ID,
18309 .model_id = WINBOND_NEX_W25Q256_V,
18310 .total_size = 32768,
18311 .page_size = 256,
18312 /* supports SFDP */
18313 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
18315 FEATURE_4BA_ENTER_WREN | FEATURE_4BA_EAR_C5C8 |
18316 FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
18317 FEATURE_QPI_SRP,
18318 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Angel Pons3130cbd2018-09-30 19:32:30 +020018319 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018320 .probe = probe_spi_rdid,
18321 .probe_timing = TIMING_ZERO,
18322 .block_erasers =
18323 {
18324 {
18325 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020018326 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018327 }, {
18328 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020018329 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018330 }, {
18331 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020018332 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018333 }, {
18334 .eraseblocks = { {32 * 1024 * 1024, 1} },
18335 .block_erase = spi_block_erase_60,
18336 }, {
18337 .eraseblocks = { {32 * 1024 * 1024, 1} },
18338 .block_erase = spi_block_erase_c7,
18339 }
18340 },
18341 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18342 .unlock = spi_disable_blockprotect,
18343 .write = spi_chip_write_256,
18344 .read = spi_chip_read,
18345 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018346 .reg_bits =
18347 {
Nico Huber2133f592024-01-06 18:30:01 +010018348 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018349 .srp = {STATUS1, 7, RW},
18350 .srl = {STATUS2, 0, RW},
18351 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18352 .tb = {STATUS1, 6, RW},
18353 .cmp = {STATUS2, 6, RW},
18354 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018355 .wp_write_cfg = spi_wp_write_cfg,
18356 .wp_read_cfg = spi_wp_read_cfg,
18357 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018358 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018359 .prepare_access = spi_prepare_4ba,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018360 },
18361
18362 {
18363 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018364 .name = "W25Q256JV_Q",
18365 .bustype = BUS_SPI,
18366 .manufacture_id = WINBOND_NEX_ID,
18367 .model_id = WINBOND_NEX_W25Q256_V,
18368 .total_size = 32768,
18369 .page_size = 256,
18370 /* supports SFDP */
18371 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018372 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_4BA | FEATURE_QIO,
Nico Huberddfbbe82023-12-21 16:31:27 +010018373 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020018374 .probe = probe_spi_rdid,
18375 .probe_timing = TIMING_ZERO,
18376 .block_erasers =
18377 {
18378 {
18379 .eraseblocks = { {4 * 1024, 8192} },
18380 .block_erase = spi_block_erase_21,
18381 }, {
18382 .eraseblocks = { {4 * 1024, 8192} },
18383 .block_erase = spi_block_erase_20,
18384 }, {
18385 .eraseblocks = { {32 * 1024, 1024} },
18386 .block_erase = spi_block_erase_52,
18387 }, {
18388 .eraseblocks = { {64 * 1024, 512} },
18389 .block_erase = spi_block_erase_dc,
18390 }, {
18391 .eraseblocks = { {64 * 1024, 512} },
18392 .block_erase = spi_block_erase_d8,
18393 }, {
18394 .eraseblocks = { {32 * 1024 * 1024, 1} },
18395 .block_erase = spi_block_erase_60,
18396 }, {
18397 .eraseblocks = { {32 * 1024 * 1024, 1} },
18398 .block_erase = spi_block_erase_c7,
18399 }
18400 },
18401 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18402 .unlock = spi_disable_blockprotect,
18403 .write = spi_chip_write_256,
18404 .read = spi_chip_read,
18405 .voltage = {2700, 3600},
18406 .reg_bits =
18407 {
Nico Huber2133f592024-01-06 18:30:01 +010018408 .qe = {STATUS2, 1, RW},
Nico Huber5215eab2022-05-23 15:13:07 +020018409 .srp = {STATUS1, 7, RW},
18410 .srl = {STATUS2, 0, RW},
18411 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18412 .tb = {STATUS1, 6, RW},
18413 .cmp = {STATUS2, 6, RW},
18414 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018415 .wp_write_cfg = spi_wp_write_cfg,
18416 .wp_read_cfg = spi_wp_read_cfg,
18417 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huber5215eab2022-05-23 15:13:07 +020018418 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018419 .prepare_access = spi_prepare_4ba,
Nico Huber5215eab2022-05-23 15:13:07 +020018420 },
18421
18422 {
18423 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000018424 .name = "W25Q256JV_M",
18425 .bustype = BUS_SPI,
18426 .manufacture_id = WINBOND_NEX_ID,
18427 .model_id = WINBOND_NEX_W25Q256JV_M,
18428 .total_size = 32768,
18429 .page_size = 256,
18430 /* supports SFDP */
18431 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018432 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
18433 FEATURE_4BA | FEATURE_QPI_SRP,
18434 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
David Hendricks49876792018-10-27 20:19:42 +000018435 .tested = TEST_OK_PREW,
18436 .probe = probe_spi_rdid,
18437 .probe_timing = TIMING_ZERO,
18438 .block_erasers =
18439 {
18440 {
18441 .eraseblocks = { {4 * 1024, 8192} },
18442 .block_erase = spi_block_erase_21,
18443 }, {
18444 .eraseblocks = { {4 * 1024, 8192} },
18445 .block_erase = spi_block_erase_20,
18446 }, {
18447 .eraseblocks = { {32 * 1024, 1024} },
18448 .block_erase = spi_block_erase_52,
18449 }, {
18450 .eraseblocks = { {64 * 1024, 512} },
18451 .block_erase = spi_block_erase_dc,
18452 }, {
18453 .eraseblocks = { {64 * 1024, 512} },
18454 .block_erase = spi_block_erase_d8,
18455 }, {
18456 .eraseblocks = { {32 * 1024 * 1024, 1} },
18457 .block_erase = spi_block_erase_60,
18458 }, {
18459 .eraseblocks = { {32 * 1024 * 1024, 1} },
18460 .block_erase = spi_block_erase_c7,
18461 }
18462 },
18463 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18464 .unlock = spi_disable_blockprotect,
18465 .write = spi_chip_write_256,
18466 .read = spi_chip_read,
18467 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018468 .reg_bits =
18469 {
Nico Huber2133f592024-01-06 18:30:01 +010018470 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018471 .srp = {STATUS1, 7, RW},
18472 .srl = {STATUS2, 0, RW},
18473 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18474 .tb = {STATUS1, 6, RW},
18475 .cmp = {STATUS2, 6, RW},
18476 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018477 .wp_write_cfg = spi_wp_write_cfg,
18478 .wp_read_cfg = spi_wp_read_cfg,
18479 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018480 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018481 .prepare_access = spi_prepare_4ba,
David Hendricks49876792018-10-27 20:19:42 +000018482 },
18483
18484 {
18485 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018486 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020018487 .bustype = BUS_SPI,
18488 .manufacture_id = WINBOND_NEX_ID,
18489 .model_id = WINBOND_NEX_W25Q256_W,
18490 .total_size = 32768,
18491 .page_size = 256,
18492 /* supports SFDP */
18493 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
18495 FEATURE_OTP | FEATURE_4BA | FEATURE_QIO,
el-coderon01209852020-04-29 12:12:53 +020018496 .tested = TEST_OK_PREW,
18497 .probe = probe_spi_rdid,
18498 .probe_timing = TIMING_ZERO,
18499 .block_erasers =
18500 {
18501 {
18502 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018503 .block_erase = spi_block_erase_21,
18504 }, {
18505 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020018506 .block_erase = spi_block_erase_20,
18507 }, {
18508 .eraseblocks = { {32 * 1024, 1024} },
18509 .block_erase = spi_block_erase_52,
18510 }, {
18511 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018512 .block_erase = spi_block_erase_dc,
18513 }, {
18514 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020018515 .block_erase = spi_block_erase_d8,
18516 }, {
18517 .eraseblocks = { {32 * 1024 * 1024, 1} },
18518 .block_erase = spi_block_erase_60,
18519 }, {
18520 .eraseblocks = { {32 * 1024 * 1024, 1} },
18521 .block_erase = spi_block_erase_c7,
18522 }
18523 },
Nico Huber2133f592024-01-06 18:30:01 +010018524 .reg_bits =
18525 {
18526 .qe = {STATUS2, 1, RW},
18527 },
el-coderon01209852020-04-29 12:12:53 +020018528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18529 .unlock = spi_disable_blockprotect,
18530 .write = spi_chip_write_256,
18531 .read = spi_chip_read,
18532 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010018533 .prepare_access = spi_prepare_4ba,
el-coderon01209852020-04-29 12:12:53 +020018534 },
18535
18536 {
18537 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070018538 .name = "W25Q256JW_DTR",
18539 .bustype = BUS_SPI,
18540 .manufacture_id = WINBOND_NEX_ID,
18541 .model_id = WINBOND_NEX_W25Q256_DTR,
18542 .total_size = 32768,
18543 .page_size = 256,
18544 /* supports SFDP */
18545 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018546 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
18547 FEATURE_OTP | FEATURE_4BA | FEATURE_QPI_SRP,
18548 .dummy_cycles =
18549 {
18550 .qpi_read_params = {
18551 2, /* Datasheet Rev.K says 4 is the default, though.
18552 Will assume that the text is wrong, if not,
18553 we'll know why it doesn't work. */
18554 4, 6, 8
18555 },
18556 },
Kapil Porwal111c3802022-12-09 19:41:27 +053018557 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070018558 .probe = probe_spi_rdid,
18559 .probe_timing = TIMING_ZERO,
18560 .block_erasers =
18561 {
18562 {
18563 .eraseblocks = { {4 * 1024, 8192} },
18564 .block_erase = spi_block_erase_21,
18565 }, {
18566 .eraseblocks = { {4 * 1024, 8192} },
18567 .block_erase = spi_block_erase_20,
18568 }, {
18569 .eraseblocks = { {32 * 1024, 1024} },
18570 .block_erase = spi_block_erase_52,
18571 }, {
18572 .eraseblocks = { {64 * 1024, 512} },
18573 .block_erase = spi_block_erase_dc,
18574 }, {
18575 .eraseblocks = { {64 * 1024, 512} },
18576 .block_erase = spi_block_erase_d8,
18577 }, {
18578 .eraseblocks = { {32 * 1024 * 1024, 1} },
18579 .block_erase = spi_block_erase_60,
18580 }, {
18581 .eraseblocks = { {32 * 1024 * 1024, 1} },
18582 .block_erase = spi_block_erase_c7,
18583 }
18584 },
18585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18586 .unlock = spi_disable_blockprotect,
18587 .write = spi_chip_write_256,
18588 .read = spi_chip_read,
18589 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053018590 .reg_bits =
18591 {
Nico Huber2133f592024-01-06 18:30:01 +010018592 .qe = {STATUS2, 1, RW},
Kapil Porwal111c3802022-12-09 19:41:27 +053018593 .srp = {STATUS1, 7, RW},
18594 .srl = {STATUS2, 0, RW},
18595 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18596 .tb = {STATUS1, 6, RW},
18597 .cmp = {STATUS2, 6, RW},
18598 .wps = {STATUS3, 2, RW},
18599 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018600 .wp_write_cfg = spi_wp_write_cfg,
18601 .wp_read_cfg = spi_wp_read_cfg,
18602 .wp_get_ranges = spi_wp_get_available_ranges,
Kapil Porwal111c3802022-12-09 19:41:27 +053018603 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018604 .prepare_access = spi_prepare_4ba,
David Hendricks31532602020-08-16 17:14:56 -070018605 },
18606
18607 {
18608 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018609 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018610 .bustype = BUS_SPI,
18611 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018612 .model_id = WINBOND_NEX_W25Q32_V,
18613 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018614 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018615 /* supports SFDP */
18616 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018617 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018618 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018619 .probe = probe_spi_rdid,
18620 .probe_timing = TIMING_ZERO,
18621 .block_erasers =
18622 {
18623 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018624 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018625 .block_erase = spi_block_erase_20,
18626 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018627 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018628 .block_erase = spi_block_erase_52,
18629 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018630 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018631 .block_erase = spi_block_erase_d8,
18632 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018633 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018634 .block_erase = spi_block_erase_60,
18635 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018636 .eraseblocks = { {4 * 1024 * 1024, 1} },
18637 .block_erase = spi_block_erase_c7,
18638 }
18639 },
18640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18641 .unlock = spi_disable_blockprotect,
18642 .write = spi_chip_write_256,
18643 .read = spi_chip_read,
18644 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018645 .reg_bits =
18646 {
Nico Huber2133f592024-01-06 18:30:01 +010018647 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018648 .srp = {STATUS1, 7, RW},
18649 .srl = {STATUS2, 0, RW},
18650 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18651 .tb = {STATUS1, 5, RW},
18652 .sec = {STATUS1, 6, RW},
18653 .cmp = {STATUS2, 6, RW},
18654 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018655 .wp_write_cfg = spi_wp_write_cfg,
18656 .wp_read_cfg = spi_wp_read_cfg,
18657 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018658 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018659 },
18660
18661 {
18662 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018663 .name = "W25Q32FV",
18664 .bustype = BUS_SPI,
18665 .manufacture_id = WINBOND_NEX_ID,
18666 .model_id = WINBOND_NEX_W25Q32_V,
18667 .total_size = 4096,
18668 .page_size = 256,
18669 /* supports SFDP */
18670 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018672 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018673 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018674 .tested = TEST_OK_PREW,
18675 .probe = probe_spi_rdid,
18676 .probe_timing = TIMING_ZERO,
18677 .block_erasers =
18678 {
18679 {
18680 .eraseblocks = { {4 * 1024, 1024} },
18681 .block_erase = spi_block_erase_20,
18682 }, {
18683 .eraseblocks = { {32 * 1024, 128} },
18684 .block_erase = spi_block_erase_52,
18685 }, {
18686 .eraseblocks = { {64 * 1024, 64} },
18687 .block_erase = spi_block_erase_d8,
18688 }, {
18689 .eraseblocks = { {4 * 1024 * 1024, 1} },
18690 .block_erase = spi_block_erase_60,
18691 }, {
18692 .eraseblocks = { {4 * 1024 * 1024, 1} },
18693 .block_erase = spi_block_erase_c7,
18694 }
18695 },
18696 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18697 .unlock = spi_disable_blockprotect,
18698 .write = spi_chip_write_256,
18699 .read = spi_chip_read,
18700 .voltage = {2700, 3600},
18701 .reg_bits =
18702 {
Nico Huber2133f592024-01-06 18:30:01 +010018703 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018704 .srp = {STATUS1, 7, RW},
18705 .srl = {STATUS2, 0, RW},
18706 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18707 .tb = {STATUS1, 5, RW},
18708 .sec = {STATUS1, 6, RW},
18709 .cmp = {STATUS2, 6, RW},
18710 .wps = {STATUS3, 2, RW},
18711 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018712 .wp_write_cfg = spi_wp_write_cfg,
18713 .wp_read_cfg = spi_wp_read_cfg,
18714 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018715 .decode_range = decode_range_spi25,
18716 },
18717
18718 {
18719 .vendor = "Winbond",
18720 .name = "W25Q32JV",
18721 .bustype = BUS_SPI,
18722 .manufacture_id = WINBOND_NEX_ID,
18723 .model_id = WINBOND_NEX_W25Q32_V,
18724 .total_size = 4096,
18725 .page_size = 256,
18726 /* supports SFDP */
18727 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018729 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18730 .tested = TEST_OK_PREW,
18731 .probe = probe_spi_rdid,
18732 .probe_timing = TIMING_ZERO,
18733 .block_erasers =
18734 {
18735 {
18736 .eraseblocks = { {4 * 1024, 1024} },
18737 .block_erase = spi_block_erase_20,
18738 }, {
18739 .eraseblocks = { {32 * 1024, 128} },
18740 .block_erase = spi_block_erase_52,
18741 }, {
18742 .eraseblocks = { {64 * 1024, 64} },
18743 .block_erase = spi_block_erase_d8,
18744 }, {
18745 .eraseblocks = { {4 * 1024 * 1024, 1} },
18746 .block_erase = spi_block_erase_60,
18747 }, {
18748 .eraseblocks = { {4 * 1024 * 1024, 1} },
18749 .block_erase = spi_block_erase_c7,
18750 }
18751 },
18752 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18753 .unlock = spi_disable_blockprotect,
18754 .write = spi_chip_write_256,
18755 .read = spi_chip_read,
18756 .voltage = {2700, 3600},
18757 .reg_bits =
18758 {
Nico Huber2133f592024-01-06 18:30:01 +010018759 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018760 .srp = {STATUS1, 7, RW},
18761 .srl = {STATUS2, 0, RW},
18762 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18763 .tb = {STATUS1, 5, RW},
18764 .sec = {STATUS1, 6, RW},
18765 .cmp = {STATUS2, 6, RW},
18766 .wps = {STATUS3, 2, RW},
18767 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018768 .wp_write_cfg = spi_wp_write_cfg,
18769 .wp_read_cfg = spi_wp_read_cfg,
18770 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018771 .decode_range = decode_range_spi25,
18772 },
18773
18774 {
18775 .vendor = "Winbond",
Angel Pons0d4354e2024-05-26 16:33:51 +020018776 .name = "W25Q32JV-.M",
18777 .bustype = BUS_SPI,
18778 .manufacture_id = WINBOND_NEX_ID,
18779 .model_id = WINBOND_NEX_W25Q32JV,
18780 .total_size = 4096,
18781 .page_size = 256,
18782 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010018783 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Angel Pons0d4354e2024-05-26 16:33:51 +020018784 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018785 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Angel Pons0d4354e2024-05-26 16:33:51 +020018786 .tested = TEST_OK_PREW,
18787 .probe = probe_spi_rdid,
18788 .probe_timing = TIMING_ZERO,
18789 .block_erasers =
18790 {
18791 {
18792 .eraseblocks = { {4 * 1024, 1024} },
18793 .block_erase = spi_block_erase_20,
18794 }, {
18795 .eraseblocks = { {32 * 1024, 128} },
18796 .block_erase = spi_block_erase_52,
18797 }, {
18798 .eraseblocks = { {64 * 1024, 64} },
18799 .block_erase = spi_block_erase_d8,
18800 }, {
18801 .eraseblocks = { {4 * 1024 * 1024, 1} },
18802 .block_erase = spi_block_erase_60,
18803 }, {
18804 .eraseblocks = { {4 * 1024 * 1024, 1} },
18805 .block_erase = spi_block_erase_c7,
18806 }
18807 },
18808 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18809 .unlock = spi_disable_blockprotect_bp2_srwd,
18810 .write = spi_chip_write_256,
18811 .read = spi_chip_read,
18812 .voltage = {2700, 3600},
18813 .reg_bits =
18814 {
Nico Huber2133f592024-01-06 18:30:01 +010018815 .qe = {STATUS2, 1, RW},
Angel Pons0d4354e2024-05-26 16:33:51 +020018816 .srp = {STATUS1, 7, RW},
18817 .srl = {STATUS2, 0, RW},
18818 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18819 .tb = {STATUS1, 5, RW},
18820 .sec = {STATUS1, 6, RW},
18821 .cmp = {STATUS2, 6, RW},
18822 .wps = {STATUS3, 2, RW},
18823 },
18824 .wp_write_cfg = spi_wp_write_cfg,
18825 .wp_read_cfg = spi_wp_read_cfg,
18826 .wp_get_ranges = spi_wp_get_available_ranges,
18827 .decode_range = decode_range_spi25,
18828 },
18829
18830 {
18831 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018832 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018833 .bustype = BUS_SPI,
18834 .manufacture_id = WINBOND_NEX_ID,
18835 .model_id = WINBOND_NEX_W25Q32_W,
18836 .total_size = 4096,
18837 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018838 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018839 /* QPI: only DW version */
18840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018841 .tested = TEST_OK_PREW,
18842 .probe = probe_spi_rdid,
18843 .probe_timing = TIMING_ZERO,
18844 .block_erasers =
18845 {
18846 {
18847 .eraseblocks = { {4 * 1024, 1024} },
18848 .block_erase = spi_block_erase_20,
18849 }, {
18850 .eraseblocks = { {32 * 1024, 128} },
18851 .block_erase = spi_block_erase_52,
18852 }, {
18853 .eraseblocks = { {64 * 1024, 64} },
18854 .block_erase = spi_block_erase_d8,
18855 }, {
18856 .eraseblocks = { {4 * 1024 * 1024, 1} },
18857 .block_erase = spi_block_erase_60,
18858 }, {
18859 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018860 .block_erase = spi_block_erase_c7,
18861 }
18862 },
18863 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18864 .unlock = spi_disable_blockprotect,
18865 .write = spi_chip_write_256,
18866 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018867 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018868 .reg_bits =
18869 {
Nico Huber2133f592024-01-06 18:30:01 +010018870 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018871 .srp = {STATUS1, 7, RW},
18872 .srl = {STATUS2, 0, RW},
18873 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18874 .tb = {STATUS1, 5, RW},
18875 .sec = {STATUS1, 6, RW},
18876 .cmp = {STATUS2, 6, RW},
18877 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018878 .wp_write_cfg = spi_wp_write_cfg,
18879 .wp_read_cfg = spi_wp_read_cfg,
18880 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018881 .decode_range = decode_range_spi25,
18882 },
18883
18884 {
18885 .vendor = "Winbond",
18886 .name = "W25Q32FW",
18887 .bustype = BUS_SPI,
18888 .manufacture_id = WINBOND_NEX_ID,
18889 .model_id = WINBOND_NEX_W25Q32_W,
18890 .total_size = 4096,
18891 .page_size = 256,
18892 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018894 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018895 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018896 .tested = TEST_OK_PREW,
18897 .probe = probe_spi_rdid,
18898 .probe_timing = TIMING_ZERO,
18899 .block_erasers =
18900 {
18901 {
18902 .eraseblocks = { {4 * 1024, 1024} },
18903 .block_erase = spi_block_erase_20,
18904 }, {
18905 .eraseblocks = { {32 * 1024, 128} },
18906 .block_erase = spi_block_erase_52,
18907 }, {
18908 .eraseblocks = { {64 * 1024, 64} },
18909 .block_erase = spi_block_erase_d8,
18910 }, {
18911 .eraseblocks = { {4 * 1024 * 1024, 1} },
18912 .block_erase = spi_block_erase_60,
18913 }, {
18914 .eraseblocks = { {4 * 1024 * 1024, 1} },
18915 .block_erase = spi_block_erase_c7,
18916 }
18917 },
18918 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18919 .unlock = spi_disable_blockprotect,
18920 .write = spi_chip_write_256,
18921 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018922 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018923 .reg_bits =
18924 {
Nico Huber2133f592024-01-06 18:30:01 +010018925 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018926 .srp = {STATUS1, 7, RW},
18927 .srl = {STATUS2, 0, RW},
18928 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18929 .tb = {STATUS1, 5, RW},
18930 .sec = {STATUS1, 6, RW},
18931 .cmp = {STATUS2, 6, RW},
18932 .wps = {STATUS3, 2, RW},
18933 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018934 .wp_write_cfg = spi_wp_write_cfg,
18935 .wp_read_cfg = spi_wp_read_cfg,
18936 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018937 .decode_range = decode_range_spi25,
18938 },
18939
18940 {
18941 .vendor = "Winbond",
18942 .name = "W25Q32JW...Q",
18943 .bustype = BUS_SPI,
18944 .manufacture_id = WINBOND_NEX_ID,
18945 .model_id = WINBOND_NEX_W25Q32_W,
18946 .total_size = 4096,
18947 .page_size = 256,
18948 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18949 /* QPI enable 0x38, disable 0xFF */
Nico Huber2133f592024-01-06 18:30:01 +010018950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018951 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18952 .tested = TEST_OK_PREW,
18953 .probe = probe_spi_rdid,
18954 .probe_timing = TIMING_ZERO,
18955 .block_erasers =
18956 {
18957 {
18958 .eraseblocks = { {4 * 1024, 1024} },
18959 .block_erase = spi_block_erase_20,
18960 }, {
18961 .eraseblocks = { {32 * 1024, 128} },
18962 .block_erase = spi_block_erase_52,
18963 }, {
18964 .eraseblocks = { {64 * 1024, 64} },
18965 .block_erase = spi_block_erase_d8,
18966 }, {
18967 .eraseblocks = { {4 * 1024 * 1024, 1} },
18968 .block_erase = spi_block_erase_60,
18969 }, {
18970 .eraseblocks = { {4 * 1024 * 1024, 1} },
18971 .block_erase = spi_block_erase_c7,
18972 }
18973 },
18974 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18975 .unlock = spi_disable_blockprotect,
18976 .write = spi_chip_write_256,
18977 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010018978 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018979 .reg_bits =
18980 {
18981 .srp = {STATUS1, 7, RW},
18982 .srl = {STATUS2, 0, RW},
18983 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18984 .tb = {STATUS1, 5, RW},
18985 .sec = {STATUS1, 6, RW},
18986 .cmp = {STATUS2, 6, RW},
18987 .wps = {STATUS3, 2, RW},
18988 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018989 .wp_write_cfg = spi_wp_write_cfg,
18990 .wp_read_cfg = spi_wp_read_cfg,
18991 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018992 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018993 },
18994
18995 {
18996 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018997 .name = "W25Q32JW...M",
18998 .bustype = BUS_SPI,
18999 .manufacture_id = WINBOND_NEX_ID,
19000 .model_id = WINBOND_NEX_W25Q32JW_M,
19001 .total_size = 4096,
19002 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019003 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19004 /* QPI enable 0x38, disable 0xFF */
Nico Huber2133f592024-01-06 18:30:01 +010019005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019006 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nico Huber2133f592024-01-06 18:30:01 +010019007 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100019008 .tested = TEST_OK_PREW,
19009 .probe = probe_spi_rdid,
19010 .probe_timing = TIMING_ZERO,
19011 .block_erasers =
19012 {
19013 {
19014 .eraseblocks = { {4 * 1024, 1024} },
19015 .block_erase = spi_block_erase_20,
19016 }, {
19017 .eraseblocks = { {32 * 1024, 128} },
19018 .block_erase = spi_block_erase_52,
19019 }, {
19020 .eraseblocks = { {64 * 1024, 64} },
19021 .block_erase = spi_block_erase_d8,
19022 }, {
19023 .eraseblocks = { {4 * 1024 * 1024, 1} },
19024 .block_erase = spi_block_erase_60,
19025 }, {
19026 .eraseblocks = { {4 * 1024 * 1024, 1} },
19027 .block_erase = spi_block_erase_c7,
19028 }
19029 },
19030 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
19031 .unlock = spi_disable_blockprotect_bp2_srwd,
19032 .write = spi_chip_write_256,
19033 .read = spi_chip_read,
19034 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019035 .reg_bits =
19036 {
Nico Huber2133f592024-01-06 18:30:01 +010019037 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019038 .srp = {STATUS1, 7, RW},
19039 .srl = {STATUS2, 0, RW},
19040 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19041 .tb = {STATUS1, 5, RW},
19042 .sec = {STATUS1, 6, RW},
19043 .cmp = {STATUS2, 6, RW},
19044 .wps = {STATUS3, 2, RW},
19045 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019046 .wp_write_cfg = spi_wp_write_cfg,
19047 .wp_read_cfg = spi_wp_read_cfg,
19048 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019049 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100019050 },
19051
19052 {
19053 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019054 .name = "W25Q40.V",
19055 .bustype = BUS_SPI,
19056 .manufacture_id = WINBOND_NEX_ID,
19057 .model_id = WINBOND_NEX_W25Q40_V,
19058 .total_size = 512,
19059 .page_size = 256,
19060 /* supports SFDP */
19061 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019063 .tested = TEST_OK_PREW,
19064 .probe = probe_spi_rdid,
19065 .probe_timing = TIMING_ZERO,
19066 .block_erasers =
19067 {
19068 {
19069 .eraseblocks = { {4 * 1024, 128} },
19070 .block_erase = spi_block_erase_20,
19071 }, {
19072 .eraseblocks = { {32 * 1024, 16} },
19073 .block_erase = spi_block_erase_52,
19074 }, {
19075 .eraseblocks = { {64 * 1024, 8} },
19076 .block_erase = spi_block_erase_d8,
19077 }, {
19078 .eraseblocks = { {512 * 1024, 1} },
19079 .block_erase = spi_block_erase_60,
19080 }, {
19081 .eraseblocks = { {512 * 1024, 1} },
19082 .block_erase = spi_block_erase_c7,
19083 }
19084 },
Nico Huber2133f592024-01-06 18:30:01 +010019085 .reg_bits =
19086 {
19087 .qe = {STATUS2, 1, RW},
19088 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19090 .unlock = spi_disable_blockprotect,
19091 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber2133f592024-01-06 18:30:01 +010019092 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019093 .voltage = {2700, 3600},
19094 },
19095
19096 {
19097 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020019098 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019099 .bustype = BUS_SPI,
19100 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020019101 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019102 .total_size = 512,
19103 .page_size = 256,
19104 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019105 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Angel Pons3164a0c2018-09-30 20:26:06 +020019106 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019107 .probe = probe_spi_rdid,
19108 .probe_timing = TIMING_ZERO,
19109 .block_erasers =
19110 {
19111 {
19112 .eraseblocks = { {4 * 1024, 128} },
19113 .block_erase = spi_block_erase_20,
19114 }, {
19115 .eraseblocks = { {32 * 1024, 16} },
19116 .block_erase = spi_block_erase_52,
19117 }, {
19118 .eraseblocks = { {64 * 1024, 8} },
19119 .block_erase = spi_block_erase_d8,
19120 }, {
19121 .eraseblocks = { {512 * 1024, 1} },
19122 .block_erase = spi_block_erase_60,
19123 }, {
19124 .eraseblocks = { {512 * 1024, 1} },
19125 .block_erase = spi_block_erase_c7,
19126 }
19127 },
Nico Huber2133f592024-01-06 18:30:01 +010019128 .reg_bits =
19129 {
19130 .qe = {STATUS2, 1, RW},
19131 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019132 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19133 .unlock = spi_disable_blockprotect,
19134 .write = spi_chip_write_256,
19135 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019136 .voltage = {1700, 1950},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019137 },
19138
19139 {
19140 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020019141 .name = "W25Q40EW",
19142 .bustype = BUS_SPI,
19143 .manufacture_id = WINBOND_NEX_ID,
19144 .model_id = WINBOND_NEX_W25Q40EW,
19145 .total_size = 512,
19146 .page_size = 256,
19147 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
19149 FEATURE_OTP | FEATURE_QPI_SRP,
19150 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Alan Green07b8a172019-09-23 16:47:05 +100019151 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020019152 .probe = probe_spi_rdid,
19153 .probe_timing = TIMING_ZERO,
19154 .block_erasers =
19155 {
19156 {
19157 .eraseblocks = { {4 * 1024, 128} },
19158 .block_erase = spi_block_erase_20,
19159 }, {
19160 .eraseblocks = { {32 * 1024, 16} },
19161 .block_erase = spi_block_erase_52,
19162 }, {
19163 .eraseblocks = { {64 * 1024, 8} },
19164 .block_erase = spi_block_erase_d8,
19165 }, {
19166 .eraseblocks = { {512 * 1024, 1} },
19167 .block_erase = spi_block_erase_60,
19168 }, {
19169 .eraseblocks = { {512 * 1024, 1} },
19170 .block_erase = spi_block_erase_c7,
19171 }
19172 },
Nico Huber2133f592024-01-06 18:30:01 +010019173 .reg_bits =
19174 {
19175 .qe = {STATUS2, 1, RW},
19176 },
Nico Huber25683572018-03-30 13:50:13 +020019177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19178 .unlock = spi_disable_blockprotect,
19179 .write = spi_chip_write_256,
19180 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019181 .voltage = {1650, 1950},
Nico Huber25683572018-03-30 13:50:13 +020019182 },
19183
Stanislav Sedovf5775442018-03-07 14:16:51 -080019184 {
19185 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093019186 .name = "W25Q512JV",
19187 .bustype = BUS_SPI,
19188 .manufacture_id = WINBOND_NEX_ID,
19189 .model_id = WINBOND_NEX_W25Q512JV,
19190 .total_size = 64 * 1024,
19191 .page_size = 256,
Nico Huber2133f592024-01-06 18:30:01 +010019192 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
19193 FEATURE_OTP | FEATURE_4BA | FEATURE_QIO,
Joel Stanley55439612019-07-27 19:25:35 +093019194 .tested = TEST_OK_PREW,
19195 .probe = probe_spi_rdid,
19196 .probe_timing = TIMING_ZERO,
19197 .block_erasers =
19198 {
19199 {
19200 .eraseblocks = { {4 * 1024, 16384} },
19201 .block_erase = spi_block_erase_21,
19202 }, {
19203 .eraseblocks = { {4 * 1024, 16384} },
19204 .block_erase = spi_block_erase_20,
19205 }, {
19206 .eraseblocks = { {32 * 1024, 2048} },
19207 .block_erase = spi_block_erase_52,
19208 }, {
19209 .eraseblocks = { {64 * 1024, 1024} },
19210 .block_erase = spi_block_erase_dc,
19211 }, {
19212 .eraseblocks = { {64 * 1024, 1024} },
19213 .block_erase = spi_block_erase_d8,
19214 }, {
19215 .eraseblocks = { {64 * 1024 * 1024, 1} },
19216 .block_erase = spi_block_erase_60,
19217 }, {
19218 .eraseblocks = { {64 * 1024 * 1024, 1} },
19219 .block_erase = spi_block_erase_c7,
19220 }
19221 },
Nico Huber2133f592024-01-06 18:30:01 +010019222 .reg_bits =
19223 {
19224 .qe = {STATUS2, 1, RW},
19225 },
Joel Stanley55439612019-07-27 19:25:35 +093019226 .printlock = spi_prettyprint_status_register_plain,
19227 .unlock = spi_disable_blockprotect,
19228 .write = spi_chip_write_256,
19229 .read = spi_chip_read,
19230 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010019231 .prepare_access = spi_prepare_4ba,
Joel Stanley55439612019-07-27 19:25:35 +093019232 },
19233
19234 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019235 .vendor = "Winbond",
19236 .name = "W25Q512NW-IM",
19237 .bustype = BUS_SPI,
19238 .manufacture_id = WINBOND_NEX_ID,
19239 .model_id = WINBOND_NEX_W25Q512NW_IM,
19240 .total_size = 64 * 1024,
19241 .page_size = 256,
Nico Huber2133f592024-01-06 18:30:01 +010019242 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
19243 FEATURE_OTP | FEATURE_4BA | FEATURE_QPI_SRP,
19244 .dummy_cycles =
19245 {
19246 /* Actually has 3 parameter bits, but higher values only help with DTR. */
19247 .qpi_read_params = { 2, 4, 6, 8 },
19248 },
Subrata Banikf5bffd92022-12-14 12:30:43 +053019249 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010019250 .probe = probe_spi_rdid,
19251 .probe_timing = TIMING_ZERO,
19252 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019253 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019254 {
19255 .eraseblocks = { {4 * 1024, 16384} },
19256 .block_erase = spi_block_erase_21,
19257 }, {
19258 .eraseblocks = { {4 * 1024, 16384} },
19259 .block_erase = spi_block_erase_20,
19260 }, {
19261 .eraseblocks = { {32 * 1024, 2048} },
19262 .block_erase = spi_block_erase_52,
19263 }, {
19264 .eraseblocks = { {64 * 1024, 1024} },
19265 .block_erase = spi_block_erase_dc,
19266 }, {
19267 .eraseblocks = { {64 * 1024, 1024} },
19268 .block_erase = spi_block_erase_d8,
19269 }, {
19270 .eraseblocks = { {64 * 1024 * 1024, 1} },
19271 .block_erase = spi_block_erase_60,
19272 }, {
19273 .eraseblocks = { {64 * 1024 * 1024, 1} },
19274 .block_erase = spi_block_erase_c7,
19275 }
19276 },
19277 .unlock = spi_disable_blockprotect,
19278 .write = spi_chip_write_256,
19279 .read = spi_chip_read,
19280 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053019281 .reg_bits =
19282 {
Nico Huber2133f592024-01-06 18:30:01 +010019283 .qe = {STATUS2, 1, RW},
Subrata Banikf5bffd92022-12-14 12:30:43 +053019284 .srp = {STATUS1, 7, RW},
19285 .srl = {STATUS2, 0, RW},
19286 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
19287 .tb = {STATUS1, 6, RW},
19288 .cmp = {STATUS2, 6, RW},
19289 .wps = {STATUS3, 2, RW},
19290 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019291 .wp_write_cfg = spi_wp_write_cfg,
19292 .wp_read_cfg = spi_wp_read_cfg,
19293 .wp_get_ranges = spi_wp_get_available_ranges,
Subrata Banikf5bffd92022-12-14 12:30:43 +053019294 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010019295 .prepare_access = spi_prepare_4ba,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019296 },
19297
19298 {
Joel Stanley55439612019-07-27 19:25:35 +093019299 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019300 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080019301 .bustype = BUS_SPI,
19302 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019303 .model_id = WINBOND_NEX_W25Q64_V,
19304 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019305 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019306 /* supports SFDP */
19307 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019308 /* QPI: only FV version */
19309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019310 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019311 .probe = probe_spi_rdid,
19312 .probe_timing = TIMING_ZERO,
19313 .block_erasers =
19314 {
19315 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019316 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019317 .block_erase = spi_block_erase_20,
19318 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019319 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019320 .block_erase = spi_block_erase_52,
19321 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019322 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019323 .block_erase = spi_block_erase_d8,
19324 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019325 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019326 .block_erase = spi_block_erase_60,
19327 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019328 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019329 .block_erase = spi_block_erase_c7,
19330 }
19331 },
19332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19333 .unlock = spi_disable_blockprotect,
19334 .write = spi_chip_write_256,
19335 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019336 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019337 .reg_bits =
19338 {
Nico Huber2133f592024-01-06 18:30:01 +010019339 .qe = {STATUS2, 1, RW},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019340 .srp = {STATUS1, 7, RW},
19341 .srl = {STATUS2, 0, RW},
19342 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19343 .tb = {STATUS1, 5, RW},
19344 .sec = {STATUS1, 6, RW},
19345 .cmp = {STATUS2, 6, RW},
19346 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019347 .wp_write_cfg = spi_wp_write_cfg,
19348 .wp_read_cfg = spi_wp_read_cfg,
19349 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019350 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019351 },
19352
19353 {
19354 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019355 .name = "W25Q64JV-.Q",
19356 .bustype = BUS_SPI,
19357 .manufacture_id = WINBOND_NEX_ID,
19358 .model_id = WINBOND_NEX_W25Q64_V,
19359 .total_size = 8192,
19360 .page_size = 256,
19361 /* supports SFDP */
19362 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Nico Huber3f3c1f32022-05-28 16:48:26 +020019364 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019365 .tested = TEST_OK_PREW,
19366 .probe = probe_spi_rdid,
19367 .probe_timing = TIMING_ZERO,
19368 .block_erasers =
19369 {
19370 {
19371 .eraseblocks = { {4 * 1024, 2048} },
19372 .block_erase = spi_block_erase_20,
19373 }, {
19374 .eraseblocks = { {32 * 1024, 256} },
19375 .block_erase = spi_block_erase_52,
19376 }, {
19377 .eraseblocks = { {64 * 1024, 128} },
19378 .block_erase = spi_block_erase_d8,
19379 }, {
19380 .eraseblocks = { {8 * 1024 * 1024, 1} },
19381 .block_erase = spi_block_erase_60,
19382 }, {
19383 .eraseblocks = { {8 * 1024 * 1024, 1} },
19384 .block_erase = spi_block_erase_c7,
19385 }
19386 },
19387 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19388 .unlock = spi_disable_blockprotect,
19389 .write = spi_chip_write_256,
19390 .read = spi_chip_read,
19391 .voltage = {2700, 3600},
19392 .reg_bits =
19393 {
Nico Huber2133f592024-01-06 18:30:01 +010019394 .qe = {STATUS2, 1, RW},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019395 .srp = {STATUS1, 7, RW},
19396 .srl = {STATUS2, 0, RW},
19397 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19398 .tb = {STATUS1, 5, RW},
19399 .sec = {STATUS1, 6, RW},
19400 .cmp = {STATUS2, 6, RW},
19401 .wps = {STATUS3, 2, RW},
19402 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019403 .wp_write_cfg = spi_wp_write_cfg,
19404 .wp_read_cfg = spi_wp_read_cfg,
19405 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019406 .decode_range = decode_range_spi25,
19407 },
19408
19409 {
19410 .vendor = "Winbond",
19411 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010019412 .bustype = BUS_SPI,
19413 .manufacture_id = WINBOND_NEX_ID,
19414 .model_id = WINBOND_NEX_W25Q64JV,
19415 .total_size = 8192,
19416 .page_size = 256,
19417 /* supports SFDP */
Nico Huber2133f592024-01-06 18:30:01 +010019418 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
19419 FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010019420 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Simon Buhrow236a38c2021-11-05 11:48:30 +010019421 .tested = TEST_OK_PREW,
19422 .probe = probe_spi_rdid,
19423 .probe_timing = TIMING_ZERO,
19424 .block_erasers =
19425 {
19426 {
19427 .eraseblocks = { {4 * 1024, 2048} },
19428 .block_erase = spi_block_erase_20,
19429 }, {
19430 .eraseblocks = { {32 * 1024, 256} },
19431 .block_erase = spi_block_erase_52,
19432 }, {
19433 .eraseblocks = { {64 * 1024, 128} },
19434 .block_erase = spi_block_erase_d8,
19435 }, {
19436 .eraseblocks = { {8 * 1024 * 1024, 1} },
19437 .block_erase = spi_block_erase_60,
19438 }, {
19439 .eraseblocks = { {8 * 1024 * 1024, 1} },
19440 .block_erase = spi_block_erase_c7,
19441 }
19442 },
Nico Huber2133f592024-01-06 18:30:01 +010019443 .reg_bits =
19444 {
19445 .qe = {STATUS2, 1, RW},
19446 },
Simon Buhrow236a38c2021-11-05 11:48:30 +010019447 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
19448 .unlock = spi_disable_blockprotect_bp2_srwd,
19449 .write = spi_chip_write_256,
19450 .read = spi_chip_read,
19451 .voltage = {2700, 3600},
19452 },
19453
19454 {
19455 .vendor = "Winbond",
Nico Hubera358b142024-04-14 18:29:06 +020019456 .name = "W25Q64DW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019457 .bustype = BUS_SPI,
19458 .manufacture_id = WINBOND_NEX_ID,
19459 .model_id = WINBOND_NEX_W25Q64_W,
19460 .total_size = 8192,
19461 .page_size = 256,
19462 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019463 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
19464 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Nico Hubera358b142024-04-14 18:29:06 +020019465 .tested = TEST_OK_PREW,
19466 .probe = probe_spi_rdid,
19467 .probe_timing = TIMING_ZERO,
19468 .block_erasers =
19469 {
19470 {
19471 .eraseblocks = { {4 * 1024, 2048} },
19472 .block_erase = spi_block_erase_20,
19473 }, {
19474 .eraseblocks = { {32 * 1024, 256} },
19475 .block_erase = spi_block_erase_52,
19476 }, {
19477 .eraseblocks = { {64 * 1024, 128} },
19478 .block_erase = spi_block_erase_d8,
19479 }, {
19480 .eraseblocks = { {8 * 1024 * 1024, 1} },
19481 .block_erase = spi_block_erase_60,
19482 }, {
19483 .eraseblocks = { {8 * 1024 * 1024, 1} },
19484 .block_erase = spi_block_erase_c7,
19485 }
19486 },
19487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19488 .unlock = spi_disable_blockprotect,
19489 .write = spi_chip_write_256,
19490 .read = spi_chip_read,
19491 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19492 .reg_bits =
19493 {
19494 .srp = {STATUS1, 7, RW},
19495 .srl = {STATUS2, 0, RW},
19496 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19497 .tb = {STATUS1, 5, RW},
19498 .sec = {STATUS1, 6, RW},
19499 .cmp = {STATUS2, 6, RW},
19500 },
19501 .wp_write_cfg = spi_wp_write_cfg,
19502 .wp_read_cfg = spi_wp_read_cfg,
19503 .wp_get_ranges = spi_wp_get_available_ranges,
19504 .decode_range = decode_range_spi25,
19505 },
19506
19507 {
19508 .vendor = "Winbond",
19509 .name = "W25Q64FW/W25Q64JW...Q",
19510 .bustype = BUS_SPI,
19511 .manufacture_id = WINBOND_NEX_ID,
19512 .model_id = WINBOND_NEX_W25Q64_W,
19513 .total_size = 8192,
19514 .page_size = 256,
19515 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019516 /* FEATURE_QPI_SRP (2, 4, 6, 8): only FW version */
Nico Hubera358b142024-04-14 18:29:06 +020019517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
Nico Huber1412d9f2024-01-06 18:25:49 +010019518 FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019519 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019520 .probe = probe_spi_rdid,
19521 .probe_timing = TIMING_ZERO,
19522 .block_erasers =
19523 {
19524 {
19525 .eraseblocks = { {4 * 1024, 2048} },
19526 .block_erase = spi_block_erase_20,
19527 }, {
19528 .eraseblocks = { {32 * 1024, 256} },
19529 .block_erase = spi_block_erase_52,
19530 }, {
19531 .eraseblocks = { {64 * 1024, 128} },
19532 .block_erase = spi_block_erase_d8,
19533 }, {
19534 .eraseblocks = { {8 * 1024 * 1024, 1} },
19535 .block_erase = spi_block_erase_60,
19536 }, {
19537 .eraseblocks = { {8 * 1024 * 1024, 1} },
19538 .block_erase = spi_block_erase_c7,
19539 }
19540 },
19541 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19542 .unlock = spi_disable_blockprotect,
19543 .write = spi_chip_write_256,
19544 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019545 .voltage = {1700, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019546 .reg_bits =
19547 {
Nico Huber2133f592024-01-06 18:30:01 +010019548 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019549 .srp = {STATUS1, 7, RW},
19550 .srl = {STATUS2, 0, RW},
19551 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19552 .tb = {STATUS1, 5, RW},
19553 .sec = {STATUS1, 6, RW},
19554 .cmp = {STATUS2, 6, RW},
19555 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019556 .wp_write_cfg = spi_wp_write_cfg,
19557 .wp_read_cfg = spi_wp_read_cfg,
19558 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019559 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019560 },
19561
19562 {
19563 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019564 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080019565 .bustype = BUS_SPI,
19566 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019567 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080019568 .total_size = 8192,
19569 .page_size = 256,
19570 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19571 /* QPI enable 0x38, disable 0xFF */
Nico Huber1412d9f2024-01-06 18:25:49 +010019572 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
19573 FEATURE_OTP | FEATURE_QPI_SRP,
19574 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Scott Chao1bbc5012020-04-08 22:10:50 +080019575 .tested = TEST_OK_PREW,
19576 .probe = probe_spi_rdid,
19577 .probe_timing = TIMING_ZERO,
19578 .block_erasers =
19579 {
19580 {
19581 .eraseblocks = { {4 * 1024, 2048} },
19582 .block_erase = spi_block_erase_20,
19583 }, {
19584 .eraseblocks = { {32 * 1024, 256} },
19585 .block_erase = spi_block_erase_52,
19586 }, {
19587 .eraseblocks = { {64 * 1024, 128} },
19588 .block_erase = spi_block_erase_d8,
19589 }, {
19590 .eraseblocks = { {8 * 1024 * 1024, 1} },
19591 .block_erase = spi_block_erase_60,
19592 }, {
19593 .eraseblocks = { {8 * 1024 * 1024, 1} },
19594 .block_erase = spi_block_erase_c7,
19595 }
19596 },
19597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19598 .unlock = spi_disable_blockprotect,
19599 .write = spi_chip_write_256,
19600 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019601 .voltage = {1700, 1950},
Evan Benn29c8b5d2022-09-13 16:01:10 +100019602 .reg_bits =
19603 {
Nico Huber2133f592024-01-06 18:30:01 +010019604 .qe = {STATUS2, 1, RW},
Evan Benn29c8b5d2022-09-13 16:01:10 +100019605 .srp = {STATUS1, 7, RW},
19606 .srl = {STATUS2, 0, RW},
19607 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19608 .tb = {STATUS1, 5, RW},
19609 .sec = {STATUS1, 6, RW},
19610 .cmp = {STATUS2, 6, RW},
19611 .wps = {STATUS3, 2, RW},
19612 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019613 .wp_write_cfg = spi_wp_write_cfg,
19614 .wp_read_cfg = spi_wp_read_cfg,
19615 .wp_get_ranges = spi_wp_get_available_ranges,
Evan Benn29c8b5d2022-09-13 16:01:10 +100019616 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080019617 },
19618
19619 {
19620 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019621 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020019622 .bustype = BUS_SPI,
19623 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019624 .model_id = WINBOND_NEX_W25Q80_V,
19625 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020019626 .page_size = 256,
19627 /* supports SFDP */
19628 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
David Hendricks48729d32017-12-08 14:44:07 -080019630 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020019631 .probe = probe_spi_rdid,
19632 .probe_timing = TIMING_ZERO,
19633 .block_erasers =
19634 {
19635 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019636 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019637 .block_erase = spi_block_erase_20,
19638 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019639 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019640 .block_erase = spi_block_erase_52,
19641 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019642 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019643 .block_erase = spi_block_erase_d8,
19644 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019645 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019646 .block_erase = spi_block_erase_60,
19647 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019648 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019649 .block_erase = spi_block_erase_c7,
19650 }
19651 },
Nico Huber2133f592024-01-06 18:30:01 +010019652 .reg_bits =
19653 {
19654 .qe = {STATUS2, 1, RW},
19655 },
Nico Huber70eed9f2017-04-24 22:19:27 +020019656 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19657 .unlock = spi_disable_blockprotect,
19658 .write = spi_chip_write_256,
19659 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019660 .voltage = {2700, 3600},
19661 },
19662
19663 {
19664 .vendor = "Winbond",
19665 .name = "W25Q80BW",
19666 .bustype = BUS_SPI,
19667 .manufacture_id = WINBOND_NEX_ID,
19668 .model_id = WINBOND_NEX_W25Q80BW,
19669 .total_size = 1024,
19670 .page_size = 256,
19671 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019673 .tested = TEST_OK_PREW,
19674 .probe = probe_spi_rdid,
19675 .probe_timing = TIMING_ZERO,
19676 .block_erasers =
19677 {
19678 {
19679 .eraseblocks = { {4 * 1024, 256} },
19680 .block_erase = spi_block_erase_20,
19681 }, {
19682 .eraseblocks = { {32 * 1024, 32} },
19683 .block_erase = spi_block_erase_52,
19684 }, {
19685 .eraseblocks = { {64 * 1024, 16} },
19686 .block_erase = spi_block_erase_d8,
19687 }, {
19688 .eraseblocks = { {1 * 1024 * 1024, 1} },
19689 .block_erase = spi_block_erase_60,
19690 }, {
19691 .eraseblocks = { {1 * 1024 * 1024, 1} },
19692 .block_erase = spi_block_erase_c7,
19693 }
19694 },
Nico Huber2133f592024-01-06 18:30:01 +010019695 .reg_bits =
19696 {
19697 .qe = {STATUS2, 1, RW},
19698 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019699 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19700 .unlock = spi_disable_blockprotect,
19701 .write = spi_chip_write_256,
19702 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019703 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100019704 },
19705
19706 {
19707 .vendor = "Winbond",
19708 .name = "W25Q80EW",
19709 .bustype = BUS_SPI,
19710 .manufacture_id = WINBOND_NEX_ID,
19711 .model_id = WINBOND_NEX_W25Q80EW,
19712 .total_size = 1024,
19713 .page_size = 256,
19714 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
19716 FEATURE_OTP | FEATURE_QPI_SRP,
19717 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019718 .tested = TEST_OK_PREW,
19719 .probe = probe_spi_rdid,
19720 .probe_timing = TIMING_ZERO,
19721 .block_erasers =
19722 {
19723 {
19724 .eraseblocks = { {4 * 1024, 256} },
19725 .block_erase = spi_block_erase_20,
19726 }, {
19727 .eraseblocks = { {32 * 1024, 32} },
19728 .block_erase = spi_block_erase_52,
19729 }, {
19730 .eraseblocks = { {64 * 1024, 16} },
19731 .block_erase = spi_block_erase_d8,
19732 }, {
19733 .eraseblocks = { {1 * 1024 * 1024, 1} },
19734 .block_erase = spi_block_erase_60,
19735 }, {
19736 .eraseblocks = { {1 * 1024 * 1024, 1} },
19737 .block_erase = spi_block_erase_c7,
19738 }
19739 },
Nico Huber2133f592024-01-06 18:30:01 +010019740 .reg_bits =
19741 {
19742 .qe = {STATUS2, 1, RW},
19743 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019744 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19745 .unlock = spi_disable_blockprotect,
19746 .write = spi_chip_write_256,
19747 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019748 .voltage = {1650, 1950},
Nico Huber70eed9f2017-04-24 22:19:27 +020019749 },
19750
19751 {
19752 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019753 .name = "W25X05",
19754 .bustype = BUS_SPI,
19755 .manufacture_id = WINBOND_NEX_ID,
19756 .model_id = WINBOND_NEX_W25X05,
19757 .total_size = 64,
19758 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019759 /* FEATURE_FAST_READ_DIO since W25X05B */
19760 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019761 .tested = TEST_OK_PREW,
19762 .probe = probe_spi_rdid,
19763 .probe_timing = TIMING_ZERO,
19764 .block_erasers =
19765 {
19766 {
19767 .eraseblocks = { {4 * 1024, 16} },
19768 .block_erase = spi_block_erase_20,
19769 }, {
19770 .eraseblocks = { {32 * 1024, 2} },
19771 .block_erase = spi_block_erase_52,
19772 }, {
19773 .eraseblocks = { {64 * 1024, 1} },
19774 .block_erase = spi_block_erase_d8,
19775 }
19776 },
19777 .printlock = spi_prettyprint_status_register_plain,
19778 .unlock = spi_disable_blockprotect,
19779 .write = spi_chip_write_256,
19780 .read = spi_chip_read,
19781 .voltage = {2300, 3600},
19782 },
19783
19784 {
19785 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019786 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019787 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019788 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019789 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019790 .total_size = 128,
19791 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019792 /* FEATURE_FAST_READ_DIO since W25X10B */
19793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Taunere34e3e82013-01-01 00:06:51 +000019794 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019795 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019796 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019797 .block_erasers =
19798 {
19799 {
19800 .eraseblocks = { {4 * 1024, 32} },
19801 .block_erase = spi_block_erase_20,
19802 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019803 .eraseblocks = { {64 * 1024, 2} },
19804 .block_erase = spi_block_erase_d8,
19805 }, {
19806 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019807 .block_erase = spi_block_erase_c7,
19808 }
19809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019811 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000019812 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019813 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019814 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019815 },
19816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019817 {
19818 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019819 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019820 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000019821 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019822 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000019823 .total_size = 2048,
19824 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Tauner8179be52011-06-04 13:13:34 +000019826 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000019827 .probe = probe_spi_rdid,
19828 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019829 .block_erasers =
19830 {
19831 {
19832 .eraseblocks = { {4 * 1024, 512} },
19833 .block_erase = spi_block_erase_20,
19834 }, {
19835 .eraseblocks = { {32 * 1024, 64} },
19836 .block_erase = spi_block_erase_52,
19837 }, {
19838 .eraseblocks = { {64 * 1024, 32} },
19839 .block_erase = spi_block_erase_d8,
19840 }, {
19841 .eraseblocks = { {2 * 1024 * 1024, 1} },
19842 .block_erase = spi_block_erase_60,
19843 }, {
19844 .eraseblocks = { {2 * 1024 * 1024, 1} },
19845 .block_erase = spi_block_erase_c7,
19846 }
19847 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019848 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019849 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000019850 .write = spi_chip_write_256,
19851 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019852 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000019853 },
19854
19855 {
19856 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019857 .name = "W25X20",
19858 .bustype = BUS_SPI,
19859 .manufacture_id = WINBOND_NEX_ID,
19860 .model_id = WINBOND_NEX_W25X20,
19861 .total_size = 256,
19862 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019863 /* FEATURE_FAST_READ_DIO since W25X20B */
19864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019865 .tested = TEST_OK_PREW,
19866 .probe = probe_spi_rdid,
19867 .probe_timing = TIMING_ZERO,
19868 .block_erasers =
19869 {
19870 {
19871 .eraseblocks = { {4 * 1024, 64} },
19872 .block_erase = spi_block_erase_20,
19873 }, {
19874 .eraseblocks = { {64 * 1024, 4} },
19875 .block_erase = spi_block_erase_d8,
19876 }, {
19877 .eraseblocks = { {256 * 1024, 1} },
19878 .block_erase = spi_block_erase_c7,
19879 }
19880 },
19881 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19882 .unlock = spi_disable_blockprotect,
19883 .write = spi_chip_write_256,
19884 .read = spi_chip_read,
19885 .voltage = {2700, 3600},
19886 },
19887
19888 {
19889 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019890 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019891 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019892 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019893 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000019894 .total_size = 4096,
19895 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000019897 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019898 .probe = probe_spi_rdid,
19899 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019900 .block_erasers =
19901 {
19902 {
19903 .eraseblocks = { {4 * 1024, 1024} },
19904 .block_erase = spi_block_erase_20,
19905 }, {
19906 .eraseblocks = { {32 * 1024, 128} },
19907 .block_erase = spi_block_erase_52,
19908 }, {
19909 .eraseblocks = { {64 * 1024, 64} },
19910 .block_erase = spi_block_erase_d8,
19911 }, {
19912 .eraseblocks = { {4 * 1024 * 1024, 1} },
19913 .block_erase = spi_block_erase_60,
19914 }, {
19915 .eraseblocks = { {4 * 1024 * 1024, 1} },
19916 .block_erase = spi_block_erase_c7,
19917 }
19918 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019919 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019920 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019921 .write = spi_chip_write_256,
19922 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019923 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019924 },
19925
19926 {
19927 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019928 .name = "W25X40",
19929 .bustype = BUS_SPI,
19930 .manufacture_id = WINBOND_NEX_ID,
19931 .model_id = WINBOND_NEX_W25X40,
19932 .total_size = 512,
19933 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019934 /* FEATURE_FAST_READ_DIO since W25X40B */
19935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019936 .tested = TEST_OK_PREW,
19937 .probe = probe_spi_rdid,
19938 .probe_timing = TIMING_ZERO,
19939 .block_erasers =
19940 {
19941 {
19942 .eraseblocks = { {4 * 1024, 128} },
19943 .block_erase = spi_block_erase_20,
19944 }, {
19945 .eraseblocks = { {64 * 1024, 8} },
19946 .block_erase = spi_block_erase_d8,
19947 }, {
19948 .eraseblocks = { {512 * 1024, 1} },
19949 .block_erase = spi_block_erase_c7,
19950 }
19951 },
19952 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19953 .unlock = spi_disable_blockprotect,
19954 .write = spi_chip_write_256,
19955 .read = spi_chip_read,
19956 .voltage = {2700, 3600},
19957 },
19958
19959 {
19960 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019961 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019962 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019963 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019964 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019965 .total_size = 8192,
19966 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019967 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019968 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019969 .probe = probe_spi_rdid,
19970 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019971 .block_erasers =
19972 {
19973 {
19974 .eraseblocks = { {4 * 1024, 2048} },
19975 .block_erase = spi_block_erase_20,
19976 }, {
19977 .eraseblocks = { {32 * 1024, 256} },
19978 .block_erase = spi_block_erase_52,
19979 }, {
19980 .eraseblocks = { {64 * 1024, 128} },
19981 .block_erase = spi_block_erase_d8,
19982 }, {
19983 .eraseblocks = { {8 * 1024 * 1024, 1} },
19984 .block_erase = spi_block_erase_60,
19985 }, {
19986 .eraseblocks = { {8 * 1024 * 1024, 1} },
19987 .block_erase = spi_block_erase_c7,
19988 }
19989 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019990 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019991 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019992 .write = spi_chip_write_256,
19993 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019994 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019995 },
19996
19997 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019998 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019999 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100020000 .bustype = BUS_SPI,
20001 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020002 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100020003 .total_size = 1024,
20004 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020020005 /* FEATURE_FAST_READ_DIO since W25X80B */
20006 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020007 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100020008 .probe = probe_spi_rdid,
20009 .probe_timing = TIMING_ZERO,
20010 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080020011 {
20012 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100020013 .eraseblocks = { {4 * 1024, 256} },
20014 .block_erase = spi_block_erase_20,
20015 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080020016 .eraseblocks = { {64 * 1024, 16} },
20017 .block_erase = spi_block_erase_d8,
20018 }, {
20019 .eraseblocks = { {1024 * 1024, 1} },
20020 .block_erase = spi_block_erase_c7,
20021 }
20022 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20024 .unlock = spi_disable_blockprotect,
20025 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020026 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100020027 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080020028 },
20029
Alan Greenf29ea362019-06-27 17:14:02 +100020030 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
20031 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000020032 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020033 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020034 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020035 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020036 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020037 .total_size = 128,
20038 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020039 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000020040 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020041 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020042 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020043 .block_erasers =
20044 {
20045 {
20046 .eraseblocks = { {128 * 1024, 1} },
20047 .block_erase = erase_chip_block_jedec,
20048 }
20049 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020050 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020051 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010020052 .prepare_access = prepare_memory_access,
20053 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020054 },
20055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020056 {
20057 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020058 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
20059 .bustype = BUS_PARALLEL,
20060 .manufacture_id = WINBOND_ID,
20061 .model_id = WINBOND_W29C010,
20062 .total_size = 128,
20063 .page_size = 128,
20064 .feature_bits = FEATURE_LONG_RESET,
20065 .tested = TEST_OK_PREW,
20066 .probe = probe_w29ee011,
20067 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
20068 .block_erasers =
20069 {
20070 {
20071 .eraseblocks = { {128 * 1024, 1} },
20072 .block_erase = erase_chip_block_jedec,
20073 }
20074 },
20075 .write = write_jedec,
20076 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010020077 .prepare_access = prepare_memory_access,
20078 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020079 },
20080
20081 {
20082 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020083 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020084 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020085 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020086 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020087 .total_size = 256,
20088 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020089 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020090 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020091 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020092 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020093 .block_erasers =
20094 {
20095 {
20096 .eraseblocks = { {256 * 1024, 1} },
20097 .block_erase = erase_chip_block_jedec,
20098 }
20099 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020100 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020102 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020103 .prepare_access = prepare_memory_access,
20104 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020105 },
20106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020107 {
20108 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020109 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020110 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020111 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020112 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020113 .total_size = 512,
20114 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000020115 .feature_bits = FEATURE_LONG_RESET,
20116 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020117 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020118 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020119 .block_erasers =
20120 {
20121 {
20122 .eraseblocks = { {512 * 1024, 1} },
20123 .block_erase = erase_chip_block_jedec,
20124 }
20125 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020126 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020127 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020128 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020129 .prepare_access = prepare_memory_access,
20130 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020131 },
20132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020133 {
20134 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020135 .name = "W29C512A/W29EE512",
20136 .bustype = BUS_PARALLEL,
20137 .manufacture_id = WINBOND_ID,
20138 .model_id = WINBOND_W29C512A,
20139 .total_size = 64,
20140 .page_size = 128,
20141 .feature_bits = FEATURE_LONG_RESET,
20142 .tested = TEST_OK_PREW,
20143 .probe = probe_jedec,
20144 .probe_timing = 10,
20145 .block_erasers =
20146 {
20147 {
20148 .eraseblocks = { {64 * 1024, 1} },
20149 .block_erase = erase_chip_block_jedec,
20150 }
20151 },
20152 .write = write_jedec,
20153 .read = read_memmapped,
20154 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020155 .prepare_access = prepare_memory_access,
20156 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020157 },
20158
20159 {
20160 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020161 .name = "W29GL032CB",
20162 .bustype = BUS_PARALLEL,
20163 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20164 .model_id = WINBOND_W29GL032CB,
20165 .total_size = 4096,
20166 .page_size = 128 * 1024, /* actual page size is 16 */
20167 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20168 .tested = TEST_UNTESTED,
20169 .probe = probe_jedec_29gl,
20170 .probe_timing = TIMING_ZERO,
20171 .block_erasers =
20172 {
20173 {
20174 .eraseblocks = {
20175 {8 * 1024, 8},
20176 {64 * 1024, 63},
20177 },
20178 .block_erase = erase_sector_jedec,
20179 }, {
20180 .eraseblocks = { {4 * 1024 * 1024, 1} },
20181 .block_erase = erase_chip_block_jedec,
20182 },
20183 },
20184 .write = write_jedec_1,
20185 .read = read_memmapped,
20186 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020187 .prepare_access = prepare_memory_access,
20188 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020189 },
20190
20191 {
20192 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020193 .name = "W29GL032CH/L",
20194 .bustype = BUS_PARALLEL,
20195 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20196 .model_id = WINBOND_W29GL032CHL,
20197 .total_size = 4096,
20198 .page_size = 128 * 1024, /* actual page size is 16 */
20199 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20200 .tested = TEST_UNTESTED,
20201 .probe = probe_jedec_29gl,
20202 .probe_timing = TIMING_ZERO,
20203 .block_erasers =
20204 {
20205 {
20206 .eraseblocks = { {64 * 1024, 64} },
20207 .block_erase = erase_sector_jedec,
20208 }, {
20209 .eraseblocks = { {4 * 1024 * 1024, 1} },
20210 .block_erase = erase_chip_block_jedec,
20211 },
20212 },
20213 .write = write_jedec_1,
20214 .read = read_memmapped,
20215 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020216 .prepare_access = prepare_memory_access,
20217 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020218 },
20219
20220 {
20221 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020222 .name = "W29GL032CT",
20223 .bustype = BUS_PARALLEL,
20224 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20225 .model_id = WINBOND_W29GL032CT,
20226 .total_size = 4096,
20227 .page_size = 128 * 1024, /* actual page size is 16 */
20228 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20229 .tested = TEST_UNTESTED,
20230 .probe = probe_jedec_29gl,
20231 .probe_timing = TIMING_ZERO,
20232 .block_erasers =
20233 {
20234 {
20235 .eraseblocks = {
20236 {64 * 1024, 63},
20237 {8 * 1024, 8},
20238 },
20239 .block_erase = erase_sector_jedec,
20240 }, {
20241 .eraseblocks = { {4 * 1024 * 1024, 1} },
20242 .block_erase = erase_chip_block_jedec,
20243 },
20244 },
20245 .write = write_jedec_1,
20246 .read = read_memmapped,
20247 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020248 .prepare_access = prepare_memory_access,
20249 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020250 },
20251
20252 {
20253 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020254 .name = "W29GL064CB",
20255 .bustype = BUS_PARALLEL,
20256 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20257 .model_id = WINBOND_W29GL064CB,
20258 .total_size = 8192,
20259 .page_size = 128 * 1024, /* actual page size is 16 */
20260 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20261 .tested = TEST_UNTESTED,
20262 .probe = probe_jedec_29gl,
20263 .probe_timing = TIMING_ZERO,
20264 .block_erasers =
20265 {
20266 {
20267 .eraseblocks = {
20268 {8 * 1024, 8},
20269 {64 * 1024, 127},
20270 },
20271 .block_erase = erase_sector_jedec,
20272 }, {
20273 .eraseblocks = { {8 * 1024 * 1024, 1} },
20274 .block_erase = erase_chip_block_jedec,
20275 },
20276 },
20277 .write = write_jedec_1,
20278 .read = read_memmapped,
20279 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020280 .prepare_access = prepare_memory_access,
20281 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020282 },
20283
20284 {
20285 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020286 .name = "W29GL064CH/L",
20287 .bustype = BUS_PARALLEL,
20288 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20289 .model_id = WINBOND_W29GL064CHL,
20290 .total_size = 8192,
20291 .page_size = 128 * 1024, /* actual page size is 16 */
20292 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20293 .tested = TEST_UNTESTED,
20294 .probe = probe_jedec_29gl,
20295 .probe_timing = TIMING_ZERO,
20296 .block_erasers =
20297 {
20298 {
20299 .eraseblocks = { {64 * 1024, 128} },
20300 .block_erase = erase_sector_jedec,
20301 }, {
20302 .eraseblocks = { {8 * 1024 * 1024, 1} },
20303 .block_erase = erase_chip_block_jedec,
20304 },
20305 },
20306 .write = write_jedec_1,
20307 .read = read_memmapped,
20308 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020309 .prepare_access = prepare_memory_access,
20310 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020311 },
20312
20313 {
20314 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020315 .name = "W29GL064CT",
20316 .bustype = BUS_PARALLEL,
20317 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20318 .model_id = WINBOND_W29GL064CT,
20319 .total_size = 8192,
20320 .page_size = 128 * 1024, /* actual page size is 16 */
20321 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20322 .tested = TEST_UNTESTED,
20323 .probe = probe_jedec_29gl,
20324 .probe_timing = TIMING_ZERO,
20325 .block_erasers =
20326 {
20327 {
20328 .eraseblocks = {
20329 {64 * 1024, 127},
20330 {8 * 1024, 8},
20331 },
20332 .block_erase = erase_sector_jedec,
20333 }, {
20334 .eraseblocks = { {8 * 1024 * 1024, 1} },
20335 .block_erase = erase_chip_block_jedec,
20336 },
20337 },
20338 .write = write_jedec_1,
20339 .read = read_memmapped,
20340 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020341 .prepare_access = prepare_memory_access,
20342 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020343 },
20344
20345 {
20346 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020347 .name = "W29GL128C",
20348 .bustype = BUS_PARALLEL,
20349 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20350 .model_id = WINBOND_W29GL128CHL,
20351 .total_size = 16384,
20352 .page_size = 128 * 1024, /* actual page size is 16 */
20353 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20354 .tested = TEST_UNTESTED,
20355 .probe = probe_jedec_29gl,
20356 .probe_timing = TIMING_ZERO,
20357 .block_erasers =
20358 {
20359 {
20360 .eraseblocks = { {128 * 1024, 128} },
20361 .block_erase = erase_sector_jedec,
20362 }, {
20363 .eraseblocks = { {16 * 1024 * 1024, 1} },
20364 .block_erase = erase_chip_block_jedec,
20365 },
20366 },
20367 .write = write_jedec_1,
20368 .read = read_memmapped,
20369 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020370 .prepare_access = prepare_memory_access,
20371 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020372 },
20373
20374 {
20375 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020376 .name = "W39F010",
20377 .bustype = BUS_PARALLEL,
20378 .manufacture_id = WINBOND_ID,
20379 .model_id = WINBOND_W39F010,
20380 .total_size = 128,
20381 .page_size = 4 * 1024,
20382 .feature_bits = FEATURE_EITHER_RESET,
20383 .tested = TEST_OK_PREW,
20384 .probe = probe_jedec,
20385 .probe_timing = 10,
20386 .block_erasers =
20387 {
20388 {
20389 .eraseblocks = { {4 * 1024, 32} },
20390 .block_erase = erase_block_jedec,
20391 }, {
20392 .eraseblocks = { {128 * 1024, 1} },
20393 .block_erase = erase_chip_block_jedec,
20394 }
20395 },
20396 .printlock = printlock_w39f010,
20397 .write = write_jedec_1,
20398 .read = read_memmapped,
20399 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020400 .prepare_access = prepare_memory_access,
20401 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020402 },
20403
20404 {
20405 .vendor = "Winbond",
20406 .name = "W39L010",
20407 .bustype = BUS_PARALLEL,
20408 .manufacture_id = WINBOND_ID,
20409 .model_id = WINBOND_W39L010,
20410 .total_size = 128,
20411 .page_size = 4 * 1024,
20412 .feature_bits = FEATURE_EITHER_RESET,
20413 .tested = TEST_UNTESTED,
20414 .probe = probe_jedec,
20415 .probe_timing = 10,
20416 .block_erasers =
20417 {
20418 {
20419 .eraseblocks = { {4 * 1024, 32} },
20420 .block_erase = erase_block_jedec,
20421 }, {
20422 .eraseblocks = { {128 * 1024, 1} },
20423 .block_erase = erase_chip_block_jedec,
20424 }
20425 },
20426 .printlock = printlock_w39l010,
20427 .write = write_jedec_1,
20428 .read = read_memmapped,
20429 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020430 .prepare_access = prepare_memory_access,
20431 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020432 },
20433
20434 {
20435 .vendor = "Winbond",
20436 .name = "W39L020",
20437 .bustype = BUS_PARALLEL,
20438 .manufacture_id = WINBOND_ID,
20439 .model_id = WINBOND_W39L020,
20440 .total_size = 256,
20441 .page_size = 4 * 1024,
20442 .feature_bits = FEATURE_EITHER_RESET,
20443 .tested = TEST_UNTESTED,
20444 .probe = probe_jedec,
20445 .probe_timing = 10,
20446 .block_erasers =
20447 {
20448 {
20449 .eraseblocks = { {4 * 1024, 64} },
20450 .block_erase = erase_block_jedec,
20451 }, {
20452 .eraseblocks = { {64 * 1024, 4} },
20453 .block_erase = erase_sector_jedec,
20454 }, {
20455 .eraseblocks = { {256 * 1024, 1} },
20456 .block_erase = erase_chip_block_jedec,
20457 }
20458 },
20459 .printlock = printlock_w39l020,
20460 .write = write_jedec_1,
20461 .read = read_memmapped,
20462 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020463 .prepare_access = prepare_memory_access,
20464 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020465 },
20466
20467 {
20468 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000020469 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020470 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020471 .manufacture_id = WINBOND_ID,
20472 .model_id = WINBOND_W39L040,
20473 .total_size = 512,
20474 .page_size = 64 * 1024,
20475 .feature_bits = FEATURE_EITHER_RESET,
20476 .tested = TEST_OK_PR,
20477 .probe = probe_jedec,
20478 .probe_timing = 10,
20479 .block_erasers =
20480 {
20481 {
20482 .eraseblocks = { {4 * 1024, 128} },
20483 .block_erase = erase_block_jedec,
20484 }, {
20485 .eraseblocks = { {64 * 1024, 8} },
20486 .block_erase = erase_sector_jedec,
20487 }, {
20488 .eraseblocks = { {512 * 1024, 1} },
20489 .block_erase = erase_chip_block_jedec,
20490 }
20491 },
20492 .printlock = printlock_w39l040,
20493 .write = write_jedec_1,
20494 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020495 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020496 .prepare_access = prepare_memory_access,
20497 .finish_access = finish_memory_access,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020498 },
20499
20500 {
20501 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020502 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020503 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020504 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020505 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020506 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020507 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020508 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020510 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000020511 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020512 .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 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020522 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000020523 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020524 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020525 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020526 .prepare_access = prepare_memory_access,
20527 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020528 },
20529
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020530 {
20531 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020532 .name = "W39V040B",
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_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020536 .total_size = 512,
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 Menzel018d4822011-10-21 12:33:07 +000020539 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020540 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000020541 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020542 .block_erasers =
20543 {
20544 {
20545 .eraseblocks = { {64 * 1024, 8} },
20546 .block_erase = erase_sector_jedec,
20547 }, {
20548 .eraseblocks = { {512 * 1024, 1} },
20549 .block_erase = erase_chip_block_jedec,
20550 }
20551 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020552 .printlock = printlock_w39v040b,
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",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020562 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020563 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020564 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020565 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020566 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020567 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020568 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020569 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000020570 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020571 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020572 .block_erasers =
20573 {
20574 {
20575 .eraseblocks = { {64 * 1024, 8} },
20576 .block_erase = erase_sector_jedec,
20577 }, {
20578 .eraseblocks = { {512 * 1024, 1} },
20579 .block_erase = erase_chip_block_jedec,
20580 }
20581 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000020582 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000020583 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020584 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020585 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020586 .prepare_access = prepare_memory_access,
20587 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020588 },
20589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020590 {
20591 .vendor = "Winbond",
20592 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020593 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020594 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020595 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020596 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020597 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020598 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000020599 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020600 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000020601 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020602 .block_erasers =
20603 {
20604 {
20605 .eraseblocks = { {4 * 1024, 128} },
20606 .block_erase = erase_block_jedec,
20607 }, {
20608 .eraseblocks = { {64 * 1024, 8} },
20609 .block_erase = erase_sector_jedec,
20610 }, {
20611 .eraseblocks = { {512 * 1024, 1} },
20612 .block_erase = erase_chip_block_jedec,
20613 }
20614 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020615 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020616 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000020617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020619 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010020620 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020621 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020622 },
20623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020624 {
20625 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020626 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020627 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020628 .manufacture_id = WINBOND_ID,
20629 .model_id = WINBOND_W39V040B,
20630 .total_size = 512,
20631 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020632 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000020633 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020634 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020635 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020636 .block_erasers =
20637 {
20638 {
20639 .eraseblocks = { {64 * 1024, 8} },
20640 .block_erase = erase_sector_jedec,
20641 }, {
20642 .eraseblocks = { {512 * 1024, 1} },
20643 .block_erase = erase_chip_block_jedec,
20644 }
20645 },
20646 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020647 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020648 .write = write_jedec_1,
20649 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020650 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020651 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020652 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020653 },
20654
20655 {
20656 .vendor = "Winbond",
20657 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020658 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020659 .manufacture_id = WINBOND_ID,
20660 .model_id = WINBOND_W39V040C,
20661 .total_size = 512,
20662 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020663 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000020664 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020665 .probe = probe_jedec,
20666 .probe_timing = 10,
20667 .block_erasers =
20668 {
20669 {
20670 .eraseblocks = { {64 * 1024, 8} },
20671 .block_erase = erase_sector_jedec,
20672 }, {
20673 .eraseblocks = { {512 * 1024, 1} },
20674 .block_erase = erase_chip_block_jedec,
20675 }
20676 },
20677 .printlock = printlock_w39v040fc,
20678 .write = write_jedec_1,
20679 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020680 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020681 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020682 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020683 },
20684
20685 {
20686 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020687 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020688 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020689 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020690 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020691 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000020692 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020693 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000020694 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020695 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000020696 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020697 .block_erasers =
20698 {
20699 {
20700 .eraseblocks = { {64 * 1024, 16} },
20701 .block_erase = erase_sector_jedec,
20702 }, {
20703 .eraseblocks = { {1024 * 1024, 1} },
20704 .block_erase = erase_chip_block_jedec,
20705 }
20706 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020707 .printlock = printlock_w39v080a,
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",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020717 .name = "W39V080FA",
20718 .bustype = BUS_FWH,
20719 .manufacture_id = WINBOND_ID,
20720 .model_id = WINBOND_W39V080FA,
20721 .total_size = 1024,
20722 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020723 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020724 .tested = TEST_OK_PREW,
20725 .probe = probe_jedec,
20726 .probe_timing = 10,
20727 .block_erasers =
20728 {
20729 {
20730 .eraseblocks = { {64 * 1024, 16} },
20731 .block_erase = erase_sector_jedec,
20732 }, {
20733 .eraseblocks = { {1024 * 1024, 1} },
20734 .block_erase = erase_chip_block_jedec,
20735 }
20736 },
20737 .printlock = printlock_w39v080fa,
20738 .unlock = unlock_regspace2_uniform_64k,
20739 .write = write_jedec_1,
20740 .read = read_memmapped,
20741 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020742 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020743 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020744 },
20745
20746 {
20747 .vendor = "Winbond",
20748 .name = "W39V080FA (dual mode)",
20749 .bustype = BUS_FWH,
20750 .manufacture_id = WINBOND_ID,
20751 .model_id = WINBOND_W39V080FA_DM,
20752 .total_size = 512,
20753 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020754 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020755 .tested = TEST_UNTESTED,
20756 .probe = probe_jedec,
20757 .probe_timing = 10,
20758 .block_erasers =
20759 {
20760 {
20761 .eraseblocks = { {64 * 1024, 8} },
20762 .block_erase = erase_sector_jedec,
20763 }, {
20764 .eraseblocks = { {512 * 1024, 1} },
20765 .block_erase = erase_chip_block_jedec,
20766 }
20767 },
20768 .printlock = printlock_w39v080fa_dual,
20769 .write = write_jedec_1,
20770 .read = read_memmapped,
20771 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020772 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020773 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020774 },
20775
20776 {
20777 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020778 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020779 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020780 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020781 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020782 .total_size = 256,
20783 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020784 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020785 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020786 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020787 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020788 .block_erasers =
20789 {
20790 {
20791 .eraseblocks = {
20792 {128 * 1024, 1},
20793 {96 * 1024, 1},
20794 {8 * 1024, 2},
20795 {16 * 1024, 1},
20796 },
20797 .block_erase = erase_sector_jedec,
20798 }, {
20799 .eraseblocks = { {256 * 1024, 1} },
20800 .block_erase = erase_chip_block_jedec,
20801 }
20802 },
Sean Nelson35727f72010-01-28 23:55:12 +000020803 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020805 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020806 .prepare_access = prepare_memory_access,
20807 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020808 },
20809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020810 {
20811 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020812 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020813 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020814 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020815 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020816 .total_size = 256,
20817 .page_size = 128,
20818 .feature_bits = FEATURE_EITHER_RESET,
20819 .tested = TEST_OK_PROBE,
20820 .probe = probe_jedec,
20821 .probe_timing = 10,
20822 .block_erasers =
20823 {
20824 {
20825 .eraseblocks = { {256 * 1024, 1} },
20826 .block_erase = erase_chip_block_jedec,
20827 }
20828 },
20829 .write = write_jedec_1,
20830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020831 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020832 .prepare_access = prepare_memory_access,
20833 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020834 },
20835
20836 {
20837 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020838 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020839 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020840 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020841 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020842 .total_size = 256,
20843 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020844 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020845 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020846 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020847 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020848 .block_erasers =
20849 {
20850 {
20851 .eraseblocks = {
20852 {64 * 1024, 3},
20853 {32 * 1024, 1},
20854 {8 * 1024, 2},
20855 {16 * 1024, 1},
20856 },
20857 .block_erase = erase_sector_jedec,
20858 }, {
20859 .eraseblocks = { {256 * 1024, 1} },
20860 .block_erase = erase_chip_block_jedec,
20861 }
20862 },
Sean Nelson35727f72010-01-28 23:55:12 +000020863 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020865 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020866 .prepare_access = prepare_memory_access,
20867 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020868 },
20869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020870 {
20871 .vendor = "Winbond",
20872 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020873 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020874 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020875 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020876 .total_size = 256,
20877 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020878 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000020879 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020880 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020881 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020882 .block_erasers =
20883 {
20884 {
20885 .eraseblocks = {
20886 {64 * 1024, 3},
20887 {32 * 1024, 1},
20888 {8 * 1024, 2},
20889 {16 * 1024, 1},
20890 },
20891 .block_erase = erase_sector_jedec,
20892 }, {
20893 .eraseblocks = { {256 * 1024, 1} },
20894 .block_erase = erase_chip_block_jedec,
20895 }
20896 },
Sean Nelson35727f72010-01-28 23:55:12 +000020897 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020899 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020900 .prepare_access = prepare_memory_access,
20901 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020902 },
20903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020904 {
luke heef884232020-12-28 18:22:21 +080020905 .vendor = "XMC",
20906 .name = "XM25QH128C",
20907 .bustype = BUS_SPI,
20908 .manufacture_id = ST_ID,
20909 .model_id = XMC_XM25QH128C,
20910 .total_size = 16384,
20911 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020912 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
20913 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020914 .tested = TEST_UNTESTED,
20915 .probe = probe_spi_rdid,
20916 .probe_timing = TIMING_ZERO,
20917 .block_erasers =
20918 {
20919 {
20920 .eraseblocks = { {4 * 1024, 4096} },
20921 .block_erase = spi_block_erase_20,
20922 }, {
20923 .eraseblocks = { {32 * 1024, 512} },
20924 .block_erase = spi_block_erase_52,
20925 }, {
20926 .eraseblocks = { {64 * 1024, 256} },
20927 .block_erase = spi_block_erase_d8,
20928 }, {
20929 .eraseblocks = { {16 * 1024 * 1024, 1} },
20930 .block_erase = spi_block_erase_60,
20931 }, {
20932 .eraseblocks = { {16 * 1024 * 1024, 1} },
20933 .block_erase = spi_block_erase_c7,
20934 }
20935 },
20936 .printlock = spi_prettyprint_status_register_plain,
20937 .unlock = spi_disable_blockprotect,
20938 .write = spi_chip_write_256,
20939 .read = spi_chip_read,
20940 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020941 .reg_bits =
20942 {
Nico Huber96786d02024-01-06 18:30:15 +010020943 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020944 .srp = {STATUS1, 7, RW},
20945 .srl = {STATUS2, 0, RW},
20946 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
20947 .tb = {STATUS1, 5, RW},
20948 .sec = {STATUS1, 6, RW},
20949 .cmp = {STATUS2, 6, RW},
20950 },
Nico Huberaabb3e02023-01-13 00:22:30 +010020951 .wp_write_cfg = spi_wp_write_cfg,
20952 .wp_read_cfg = spi_wp_read_cfg,
20953 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020954 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080020955 },
20956
20957 {
20958 .vendor = "XMC",
20959 .name = "XM25QH256C",
20960 .bustype = BUS_SPI,
20961 .manufacture_id = ST_ID,
20962 .model_id = XMC_XM25QH256C,
20963 .total_size = 32768,
20964 .page_size = 256,
20965 /* supports SFDP */
Nico Huber96786d02024-01-06 18:30:15 +010020966 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
20967 FEATURE_4BA_WREN | FEATURE_QPI_SRP,
20968 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020969 .tested = TEST_UNTESTED,
20970 .probe = probe_spi_rdid,
20971 .probe_timing = TIMING_ZERO,
20972 .block_erasers =
20973 {
20974 {
20975 .eraseblocks = { {4 * 1024, 8192} },
20976 .block_erase = spi_block_erase_21,
20977 }, {
20978 .eraseblocks = { {4 * 1024, 8192} },
20979 .block_erase = spi_block_erase_20,
20980 }, {
20981 .eraseblocks = { {32 * 1024, 1024} },
20982 .block_erase = spi_block_erase_52,
20983 }, {
20984 .eraseblocks = { {64 * 1024, 512} },
20985 .block_erase = spi_block_erase_dc,
20986 }, {
20987 .eraseblocks = { {64 * 1024, 512} },
20988 .block_erase = spi_block_erase_d8,
20989 }, {
20990 .eraseblocks = { {32 * 1024 * 1024, 1} },
20991 .block_erase = spi_block_erase_60,
20992 }, {
20993 .eraseblocks = { {32 * 1024 * 1024, 1} },
20994 .block_erase = spi_block_erase_c7,
20995 }
20996 },
20997 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20998 .unlock = spi_disable_blockprotect,
20999 .write = spi_chip_write_256,
21000 .read = spi_chip_read,
21001 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110021002 .reg_bits =
21003 {
Nico Huber96786d02024-01-06 18:30:15 +010021004 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110021005 .srp = {STATUS1, 7, RW},
21006 .srl = {STATUS2, 0, RW},
21007 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
21008 .tb = {STATUS1, 6, RW},
21009 },
Nico Huberaabb3e02023-01-13 00:22:30 +010021010 .wp_write_cfg = spi_wp_write_cfg,
21011 .wp_read_cfg = spi_wp_read_cfg,
21012 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110021013 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010021014 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080021015 },
21016
21017 {
21018 .vendor = "XMC",
21019 .name = "XM25QH64C",
21020 .bustype = BUS_SPI,
21021 .manufacture_id = ST_ID,
21022 .model_id = XMC_XM25QH64C,
21023 .total_size = 8192,
21024 .page_size = 256,
Nico Huber96786d02024-01-06 18:30:15 +010021025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010021026 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021027 .tested = TEST_UNTESTED,
21028 .probe = probe_spi_rdid,
21029 .probe_timing = TIMING_ZERO,
21030 .block_erasers =
21031 {
21032 {
21033 .eraseblocks = { {4 * 1024, 2048} },
21034 .block_erase = spi_block_erase_20,
21035 }, {
21036 .eraseblocks = { {32 * 1024, 256} },
21037 .block_erase = spi_block_erase_52,
21038 }, {
21039 .eraseblocks = { {64 * 1024, 128} },
21040 .block_erase = spi_block_erase_d8,
21041 }, {
21042 .eraseblocks = { {8 * 1024 * 1024, 1} },
21043 .block_erase = spi_block_erase_60,
21044 }, {
21045 .eraseblocks = { {8 * 1024 * 1024, 1} },
21046 .block_erase = spi_block_erase_c7,
21047 }
21048 },
Nico Huber96786d02024-01-06 18:30:15 +010021049 .reg_bits =
21050 {
21051 .qe = {STATUS2, 1, RW},
21052 },
luke heef884232020-12-28 18:22:21 +080021053 .printlock = spi_prettyprint_status_register_plain,
21054 .unlock = spi_disable_blockprotect,
21055 .write = spi_chip_write_256,
21056 .read = spi_chip_read,
21057 .voltage = {2700, 3600},
21058 },
21059
21060 {
21061 .vendor = "XMC",
21062 .name = "XM25QU128C",
21063 .bustype = BUS_SPI,
21064 .manufacture_id = ST_ID,
21065 .model_id = XMC_XM25QU128C,
21066 .total_size = 16384,
21067 .page_size = 256,
21068 /* supports SFDP */
Nico Huber96786d02024-01-06 18:30:15 +010021069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010021070 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021071 .tested = TEST_UNTESTED,
21072 .probe = probe_spi_rdid,
21073 .probe_timing = TIMING_ZERO,
21074 .block_erasers =
21075 {
21076 {
21077 .eraseblocks = { {4 * 1024, 4096} },
21078 .block_erase = spi_block_erase_20,
21079 }, {
21080 .eraseblocks = { {32 * 1024, 512} },
21081 .block_erase = spi_block_erase_52,
21082 }, {
21083 .eraseblocks = { {64 * 1024, 256} },
21084 .block_erase = spi_block_erase_d8,
21085 }, {
21086 .eraseblocks = { {16 * 1024 * 1024, 1} },
21087 .block_erase = spi_block_erase_60,
21088 }, {
21089 .eraseblocks = { {16 * 1024 * 1024, 1} },
21090 .block_erase = spi_block_erase_c7,
21091 }
21092 },
Nico Huber96786d02024-01-06 18:30:15 +010021093 .reg_bits =
21094 {
21095 .qe = {STATUS2, 1, RW},
21096 },
luke heef884232020-12-28 18:22:21 +080021097 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21098 .unlock = spi_disable_blockprotect,
21099 .write = spi_chip_write_256,
21100 .read = spi_chip_read,
21101 .voltage = {1650, 1950},
21102 },
21103
21104 {
21105 .vendor = "XMC",
21106 .name = "XM25QU256C",
21107 .bustype = BUS_SPI,
21108 .manufacture_id = ST_ID,
21109 .model_id = XMC_XM25QU256C,
21110 .total_size = 32768,
21111 .page_size = 256,
21112 /* supports SFDP */
Nico Huber96786d02024-01-06 18:30:15 +010021113 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
21114 FEATURE_4BA_WREN | FEATURE_QPI_SRP,
21115 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021116 .tested = TEST_UNTESTED,
21117 .probe = probe_spi_rdid,
21118 .probe_timing = TIMING_ZERO,
21119 .block_erasers =
21120 {
21121 {
21122 .eraseblocks = { {4 * 1024, 8192} },
21123 .block_erase = spi_block_erase_21,
21124 }, {
21125 .eraseblocks = { {4 * 1024, 8192} },
21126 .block_erase = spi_block_erase_20,
21127 }, {
21128 .eraseblocks = { {32 * 1024, 1024} },
21129 .block_erase = spi_block_erase_52,
21130 }, {
21131 .eraseblocks = { {64 * 1024, 512} },
21132 .block_erase = spi_block_erase_dc,
21133 }, {
21134 .eraseblocks = { {64 * 1024, 512} },
21135 .block_erase = spi_block_erase_d8,
21136 }, {
21137 .eraseblocks = { {32 * 1024 * 1024, 1} },
21138 .block_erase = spi_block_erase_60,
21139 }, {
21140 .eraseblocks = { {32 * 1024 * 1024, 1} },
21141 .block_erase = spi_block_erase_c7,
21142 }
21143 },
Nico Huber96786d02024-01-06 18:30:15 +010021144 .reg_bits =
21145 {
21146 .qe = {STATUS2, 1, RW},
21147 },
luke heef884232020-12-28 18:22:21 +080021148 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21149 .unlock = spi_disable_blockprotect,
21150 .write = spi_chip_write_256,
21151 .read = spi_chip_read,
21152 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010021153 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080021154 },
21155
21156 {
21157 .vendor = "XMC",
21158 .name = "XM25QU64C",
21159 .bustype = BUS_SPI,
21160 .manufacture_id = ST_ID,
21161 .model_id = XMC_XM25QU64C,
21162 .total_size = 8192,
21163 .page_size = 256,
Nico Huber96786d02024-01-06 18:30:15 +010021164 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010021165 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021166 .tested = TEST_UNTESTED,
21167 .probe = probe_spi_rdid,
21168 .probe_timing = TIMING_ZERO,
21169 .block_erasers =
21170 {
21171 {
21172 .eraseblocks = { {4 * 1024, 2048} },
21173 .block_erase = spi_block_erase_20,
21174 }, {
21175 .eraseblocks = { {32 * 1024, 256} },
21176 .block_erase = spi_block_erase_52,
21177 }, {
21178 .eraseblocks = { {64 * 1024, 128} },
21179 .block_erase = spi_block_erase_d8,
21180 }, {
21181 .eraseblocks = { {8 * 1024 * 1024, 1} },
21182 .block_erase = spi_block_erase_60,
21183 }, {
21184 .eraseblocks = { {8 * 1024 * 1024, 1} },
21185 .block_erase = spi_block_erase_c7,
21186 }
21187 },
Nico Huber96786d02024-01-06 18:30:15 +010021188 .reg_bits =
21189 {
21190 .qe = {STATUS2, 1, RW},
21191 },
luke heef884232020-12-28 18:22:21 +080021192 .printlock = spi_prettyprint_status_register_plain,
21193 .unlock = spi_disable_blockprotect,
21194 .write = spi_chip_write_256,
21195 .read = spi_chip_read,
21196 .voltage = {1650, 1950},
21197 },
21198
21199 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021200 .vendor = "Zetta Device",
21201 .name = "ZD25D20",
21202 .bustype = BUS_SPI,
21203 .manufacture_id = ZETTADEVICE_ID,
21204 .model_id = ZETTADEVICE_ZD25D20,
21205 .total_size = 256,
21206 .page_size = 256,
21207 .feature_bits = FEATURE_WRSR_WREN,
21208 .tested = TEST_UNTESTED,
21209 .probe = probe_spi_rdid,
21210 .probe_timing = TIMING_ZERO,
21211 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080021212 {
21213 {
21214 .eraseblocks = { {4 * 1024, 64} },
21215 .block_erase = spi_block_erase_20,
21216 }, {
21217 .eraseblocks = { {32 * 1024, 8} },
21218 .block_erase = spi_block_erase_52,
21219 }, {
21220 .eraseblocks = { {64 * 1024, 4} },
21221 .block_erase = spi_block_erase_d8,
21222 }, {
21223 .eraseblocks = { {256 * 1024, 1} },
21224 .block_erase = spi_block_erase_60,
21225 }, {
21226 .eraseblocks = { {256 * 1024, 1} },
21227 .block_erase = spi_block_erase_c7,
21228 }
21229 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021230 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21231 .unlock = spi_disable_blockprotect,
21232 .write = spi_chip_write_256,
21233 .read = spi_chip_read,
21234 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080021235 },
21236
21237 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021238 .vendor = "Zetta Device",
21239 .name = "ZD25D40",
21240 .bustype = BUS_SPI,
21241 .manufacture_id = ZETTADEVICE_ID,
21242 .model_id = ZETTADEVICE_ZD25D40,
21243 .total_size = 512,
21244 .page_size = 256,
21245 .feature_bits = FEATURE_WRSR_WREN,
21246 .tested = TEST_UNTESTED,
21247 .probe = probe_spi_rdid,
21248 .probe_timing = TIMING_ZERO,
21249 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080021250 {
21251 {
21252 .eraseblocks = { {4 * 1024, 128} },
21253 .block_erase = spi_block_erase_20,
21254 }, {
21255 .eraseblocks = { {32 * 1024, 16} },
21256 .block_erase = spi_block_erase_52,
21257 }, {
21258 .eraseblocks = { {64 * 1024, 8} },
21259 .block_erase = spi_block_erase_d8,
21260 }, {
21261 .eraseblocks = { {512 * 1024, 1} },
21262 .block_erase = spi_block_erase_60,
21263 }, {
21264 .eraseblocks = { {512 * 1024, 1} },
21265 .block_erase = spi_block_erase_c7,
21266 }
21267 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21269 .unlock = spi_disable_blockprotect,
21270 .write = spi_chip_write_256,
21271 .read = spi_chip_read,
21272 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080021273 },
21274
Stefan Taunerac1b4c82012-02-17 14:51:04 +000021275 {
Alan Greendd592202019-08-23 10:11:37 +100021276 .vendor = "Unknown",
21277 .name = "SFDP-capable chip",
21278 .bustype = BUS_SPI,
21279 .manufacture_id = GENERIC_MANUF_ID,
21280 .model_id = SFDP_DEVICE_ID,
21281 .total_size = 0, /* set by probing function */
21282 .page_size = 0, /* set by probing function */
21283 .feature_bits = 0, /* set by probing function */
21284 /* We present our own "report this" text hence we do not */
21285 /* want the default "This flash part has status UNTESTED..." */
21286 /* text to be printed. */
21287 .tested = TEST_OK_PREW,
21288 .probe = probe_spi_sfdp,
21289 .block_erasers = {}, /* set by probing function */
21290 .unlock = spi_disable_blockprotect, /* is this safe? */
21291 .write = NULL, /* set by probing function */
21292 .read = spi_chip_read,
21293 /* FIXME: some vendor extensions define this */
21294 .voltage = {0},
21295 },
21296
21297 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000021298 .vendor = "Programmer",
21299 .name = "Opaque flash chip",
21300 .bustype = BUS_PROG,
21301 .manufacture_id = PROGMANUF_ID,
21302 .model_id = PROGDEV_ID,
21303 .total_size = 0,
21304 .page_size = 256,
21305 /* probe is assumed to work, rest will be filled in by probe */
21306 .tested = TEST_OK_PROBE,
21307 .probe = probe_opaque,
21308 /* eraseblock sizes will be set by the probing function */
21309 .block_erasers =
21310 {
21311 {
21312 .block_erase = erase_opaque,
21313 }
21314 },
21315 .write = write_opaque,
21316 .read = read_opaque,
21317 },
21318
21319 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021320 .vendor = "AMIC",
21321 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021322 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021323 .manufacture_id = AMIC_ID,
21324 .model_id = GENERIC_DEVICE_ID,
21325 .total_size = 0,
21326 .page_size = 256,
21327 .tested = TEST_BAD_PREW,
21328 .probe = probe_spi_rdid4,
21329 .probe_timing = TIMING_ZERO,
21330 .write = NULL,
21331 .read = NULL,
21332 },
21333
21334 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021335 .vendor = "Atmel",
21336 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021337 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021338 .manufacture_id = ATMEL_ID,
21339 .model_id = GENERIC_DEVICE_ID,
21340 .total_size = 0,
21341 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021342 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021343 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021344 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021345 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021346 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021347 },
21348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021349 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000021350 .vendor = "Eon",
21351 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021352 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021353 .manufacture_id = EON_ID_NOPREFIX,
21354 .model_id = GENERIC_DEVICE_ID,
21355 .total_size = 0,
21356 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021357 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021358 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021359 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021360 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021361 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021362 },
21363
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021364 {
21365 .vendor = "Macronix",
21366 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021367 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000021368 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021369 .model_id = GENERIC_DEVICE_ID,
21370 .total_size = 0,
21371 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021372 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021373 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021374 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021375 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021376 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021377 },
21378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021379 {
21380 .vendor = "PMC",
21381 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021382 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021383 .manufacture_id = PMC_ID,
21384 .model_id = GENERIC_DEVICE_ID,
21385 .total_size = 0,
21386 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021387 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021388 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021389 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021390 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021391 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021392 },
21393
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021394 {
21395 .vendor = "SST",
21396 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021397 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021398 .manufacture_id = SST_ID,
21399 .model_id = GENERIC_DEVICE_ID,
21400 .total_size = 0,
21401 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021402 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021403 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021404 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021405 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021406 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021407 },
21408
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021409 {
21410 .vendor = "ST",
21411 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021413 .manufacture_id = ST_ID,
21414 .model_id = GENERIC_DEVICE_ID,
21415 .total_size = 0,
21416 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021417 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021418 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021419 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021420 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021421 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021422 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000021423
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021424 {
Sean Nelson118e1d62009-11-24 02:08:11 +000021425 .vendor = "Sanyo",
21426 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021427 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000021428 .manufacture_id = SANYO_ID,
21429 .model_id = GENERIC_DEVICE_ID,
21430 .total_size = 0,
21431 .page_size = 256,
21432 .tested = TEST_BAD_PREW,
21433 .probe = probe_spi_rdid,
21434 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000021435 .write = NULL,
21436 .read = NULL,
21437 },
21438
21439 {
Stefan Taunereb582572012-09-21 12:52:50 +000021440 .vendor = "Winbond",
21441 .name = "unknown Winbond (ex Nexcom) SPI chip",
21442 .bustype = BUS_SPI,
21443 .manufacture_id = WINBOND_NEX_ID,
21444 .model_id = GENERIC_DEVICE_ID,
21445 .total_size = 0,
21446 .page_size = 256,
21447 .tested = TEST_BAD_PREW,
21448 .probe = probe_spi_rdid,
21449 .probe_timing = TIMING_ZERO,
21450 .write = NULL,
21451 .read = NULL,
21452 },
21453
21454 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021455 .vendor = "Generic",
21456 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021457 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021458 .manufacture_id = GENERIC_MANUF_ID,
21459 .model_id = GENERIC_DEVICE_ID,
21460 .total_size = 0,
21461 .page_size = 256,
21462 .tested = TEST_BAD_PREW,
21463 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021464 .write = NULL,
21465 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000021466
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021467 {
21468 .vendor = "Generic",
21469 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021470 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021471 .manufacture_id = GENERIC_MANUF_ID,
21472 .model_id = GENERIC_DEVICE_ID,
21473 .total_size = 0,
21474 .page_size = 256,
21475 .tested = TEST_BAD_PREW,
21476 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021477 .write = NULL,
21478 },
21479
Stefan Tauner96658be2014-05-26 22:05:31 +000021480 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000021481};
Stefan Tauner96658be2014-05-26 22:05:31 +000021482
21483const unsigned int flashchips_size = ARRAY_SIZE(flashchips);