blob: ef3eda0ebfaf9ad6070d9516f72eccde9ec3732f [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",
Alan Green4f009122019-08-26 10:45:18 +10006885 .name = "GD25Q127C/GD25Q128C",
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 /* QPI: only 128C version, w/ SRP */
6893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006894 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006895 .probe = probe_spi_rdid,
6896 .probe_timing = TIMING_ZERO,
6897 .block_erasers =
6898 {
6899 {
6900 .eraseblocks = { {4 * 1024, 4096} },
6901 .block_erase = spi_block_erase_20,
6902 }, {
6903 .eraseblocks = { {32 * 1024, 512} },
6904 .block_erase = spi_block_erase_52,
6905 }, {
6906 .eraseblocks = { {64 * 1024, 256} },
6907 .block_erase = spi_block_erase_d8,
6908 }, {
6909 .eraseblocks = { {16 * 1024 * 1024, 1} },
6910 .block_erase = spi_block_erase_60,
6911 }, {
6912 .eraseblocks = { {16 * 1024 * 1024, 1} },
6913 .block_erase = spi_block_erase_c7,
6914 }
6915 },
6916 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6917 .printlock = spi_prettyprint_status_register_bp4_srwd,
6918 .unlock = spi_disable_blockprotect_bp4_srwd,
6919 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006920 .read = spi_chip_read,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006921 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006922 .reg_bits =
6923 {
Nico Huber4da971f2024-03-27 01:18:12 +01006924 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006925 .srp = {STATUS1, 7, RW},
6926 .srl = {STATUS2, 0, RW},
6927 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6928 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6929 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6930 .cmp = {STATUS2, 6, RW},
6931 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006932 .wp_write_cfg = spi_wp_write_cfg,
6933 .wp_read_cfg = spi_wp_read_cfg,
6934 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006935 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006936 },
6937
6938 {
6939 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006940 .name = "GD25Q16(B)",
6941 .bustype = BUS_SPI,
6942 .manufacture_id = GIGADEVICE_ID,
6943 .model_id = GIGADEVICE_GD25Q16,
6944 .total_size = 2048,
6945 .page_size = 256,
6946 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Nico Huber4da971f2024-03-27 01:18:12 +01006947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006948 .tested = TEST_OK_PREW,
6949 .probe = probe_spi_rdid,
6950 .probe_timing = TIMING_ZERO,
6951 .block_erasers =
6952 {
6953 {
6954 .eraseblocks = { {4 * 1024, 512} },
6955 .block_erase = spi_block_erase_20,
6956 }, {
6957 .eraseblocks = { {32 * 1024, 64} },
6958 .block_erase = spi_block_erase_52,
6959 }, {
6960 .eraseblocks = { {64 * 1024, 32} },
6961 .block_erase = spi_block_erase_d8,
6962 }, {
6963 .eraseblocks = { {2 * 1024 * 1024, 1} },
6964 .block_erase = spi_block_erase_60,
6965 }, {
6966 .eraseblocks = { {2 * 1024 * 1024, 1} },
6967 .block_erase = spi_block_erase_c7,
6968 }
6969 },
Nico Huber4da971f2024-03-27 01:18:12 +01006970 .reg_bits =
6971 {
6972 .qe = {STATUS2, 1, RW},
6973 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006974 .printlock = spi_prettyprint_status_register_bp4_srwd,
6975 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6976 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006977 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006978 .voltage = {2700, 3600},
6979 },
6980
6981 {
6982 .vendor = "GigaDevice",
6983 .name = "GD25Q20(B)",
6984 .bustype = BUS_SPI,
6985 .manufacture_id = GIGADEVICE_ID,
6986 .model_id = GIGADEVICE_GD25Q20,
6987 .total_size = 256,
6988 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01006989 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006990 .tested = TEST_OK_PREW,
6991 .probe = probe_spi_rdid,
6992 .probe_timing = TIMING_ZERO,
6993 .block_erasers =
6994 {
6995 {
6996 .eraseblocks = { {4 * 1024, 64} },
6997 .block_erase = spi_block_erase_20,
6998 }, {
6999 .eraseblocks = { {32 * 1024, 8} },
7000 .block_erase = spi_block_erase_52,
7001 }, {
7002 .eraseblocks = { {64 * 1024, 4} },
7003 .block_erase = spi_block_erase_d8,
7004 }, {
7005 .eraseblocks = { {256 * 1024, 1} },
7006 .block_erase = spi_block_erase_60,
7007 }, {
7008 .eraseblocks = { {256 * 1024, 1} },
7009 .block_erase = spi_block_erase_c7,
7010 }
7011 },
Nico Huber4da971f2024-03-27 01:18:12 +01007012 .reg_bits = {
7013 .qe = {STATUS2, 1, RW},
7014 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007015 .printlock = spi_prettyprint_status_register_bp4_srwd,
7016 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7017 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007018 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007019 .voltage = {2700, 3600},
7020 },
7021
7022 {
7023 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10007024 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10007025 .bustype = BUS_SPI,
7026 .manufacture_id = GIGADEVICE_ID,
7027 .model_id = GIGADEVICE_GD25Q256D,
7028 .total_size = 32768,
7029 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11007030 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber4da971f2024-03-27 01:18:12 +01007031 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
7032 FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007033 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10007034 .probe = probe_spi_rdid,
7035 .probe_timing = TIMING_ZERO,
7036 .block_erasers =
7037 {
7038 {
7039 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02007040 .block_erase = spi_block_erase_21,
7041 }, {
7042 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007043 .block_erase = spi_block_erase_20,
7044 }, {
7045 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02007046 .block_erase = spi_block_erase_5c,
7047 }, {
7048 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007049 .block_erase = spi_block_erase_52,
7050 }, {
7051 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02007052 .block_erase = spi_block_erase_dc,
7053 }, {
7054 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007055 .block_erase = spi_block_erase_d8,
7056 }, {
7057 .eraseblocks = { {32 * 1024 * 1024, 1} },
7058 .block_erase = spi_block_erase_60,
7059 }, {
7060 .eraseblocks = { {32 * 1024 * 1024, 1} },
7061 .block_erase = spi_block_erase_c7,
7062 }
7063 },
7064 .printlock = spi_prettyprint_status_register_bp3_srwd,
7065 .unlock = spi_disable_blockprotect,
7066 .write = spi_chip_write_256,
7067 .read = spi_chip_read,
7068 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007069 .reg_bits =
7070 {
Nico Huber4da971f2024-03-27 01:18:12 +01007071 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007072 .srp = {STATUS1, 7, RW},
7073 .srl = {STATUS2, 6, RW},
7074 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
7075 .tb = {STATUS1, 6, RW},
7076 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007077 .wp_write_cfg = spi_wp_write_cfg,
7078 .wp_read_cfg = spi_wp_read_cfg,
7079 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007080 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +01007081 .prepare_access = spi_prepare_4ba,
Alan Green86fc9cf2019-08-26 15:02:12 +10007082 },
7083
7084 {
7085 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007086 .name = "GD25Q32(B)",
7087 .bustype = BUS_SPI,
7088 .manufacture_id = GIGADEVICE_ID,
7089 .model_id = GIGADEVICE_GD25Q32,
7090 .total_size = 4096,
7091 .page_size = 256,
7092 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007093 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007094 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007095 .probe = probe_spi_rdid,
7096 .probe_timing = TIMING_ZERO,
7097 .block_erasers =
7098 {
7099 {
7100 .eraseblocks = { {4 * 1024, 1024} },
7101 .block_erase = spi_block_erase_20,
7102 }, {
7103 .eraseblocks = { {32 * 1024, 128} },
7104 .block_erase = spi_block_erase_52,
7105 }, {
7106 .eraseblocks = { {64 * 1024, 64} },
7107 .block_erase = spi_block_erase_d8,
7108 }, {
7109 .eraseblocks = { {4 * 1024 * 1024, 1} },
7110 .block_erase = spi_block_erase_60,
7111 }, {
7112 .eraseblocks = { {4 * 1024 * 1024, 1} },
7113 .block_erase = spi_block_erase_c7,
7114 }
7115 },
7116 .printlock = spi_prettyprint_status_register_bp4_srwd,
7117 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7118 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007119 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007120 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007121 .reg_bits =
7122 {
Nico Huber4da971f2024-03-27 01:18:12 +01007123 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007124 .srp = {STATUS1, 7, RW},
7125 .srl = {STATUS2, 0, RW},
7126 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7127 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7128 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7129 .cmp = {STATUS2, 6, RW},
7130 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007131 .wp_write_cfg = spi_wp_write_cfg,
7132 .wp_read_cfg = spi_wp_read_cfg,
7133 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007134 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007135 },
7136
7137 {
7138 .vendor = "GigaDevice",
7139 .name = "GD25Q40(B)",
7140 .bustype = BUS_SPI,
7141 .manufacture_id = GIGADEVICE_ID,
7142 .model_id = GIGADEVICE_GD25Q40,
7143 .total_size = 512,
7144 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Simon Buhrow551664c2022-03-09 16:09:08 +01007146 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007147 .probe = probe_spi_rdid,
7148 .probe_timing = TIMING_ZERO,
7149 .block_erasers =
7150 {
7151 {
7152 .eraseblocks = { {4 * 1024, 128} },
7153 .block_erase = spi_block_erase_20,
7154 }, {
7155 .eraseblocks = { {32 * 1024, 16} },
7156 .block_erase = spi_block_erase_52,
7157 }, {
7158 .eraseblocks = { {64 * 1024, 8} },
7159 .block_erase = spi_block_erase_d8,
7160 }, {
7161 .eraseblocks = { {512 * 1024, 1} },
7162 .block_erase = spi_block_erase_60,
7163 }, {
7164 .eraseblocks = { {512 * 1024, 1} },
7165 .block_erase = spi_block_erase_c7,
7166 }
7167 },
Nico Huber4da971f2024-03-27 01:18:12 +01007168 .reg_bits =
7169 {
7170 .qe = {STATUS2, 1, RW},
7171 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007172 .printlock = spi_prettyprint_status_register_bp4_srwd,
7173 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7174 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007175 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007176 .voltage = {2700, 3600},
7177 },
7178
7179 {
7180 .vendor = "GigaDevice",
7181 .name = "GD25Q512",
7182 .bustype = BUS_SPI,
7183 .manufacture_id = GIGADEVICE_ID,
7184 .model_id = GIGADEVICE_GD25Q512,
7185 .total_size = 64,
7186 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007188 .tested = TEST_OK_PREW,
7189 .probe = probe_spi_rdid,
7190 .probe_timing = TIMING_ZERO,
7191 .block_erasers =
7192 {
7193 {
7194 .eraseblocks = { {4 * 1024, 16} },
7195 .block_erase = spi_block_erase_20,
7196 }, {
7197 .eraseblocks = { {32 * 1024, 2} },
7198 .block_erase = spi_block_erase_52,
7199 }, {
7200 .eraseblocks = { {64 * 1024, 1} },
7201 .block_erase = spi_block_erase_60,
7202 }, {
7203 .eraseblocks = { {64 * 1024, 1} },
7204 .block_erase = spi_block_erase_c7,
7205 }
7206 },
Nico Huber4da971f2024-03-27 01:18:12 +01007207 .reg_bits =
7208 {
7209 .qe = {STATUS2, 1, RW},
7210 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007211 .printlock = spi_prettyprint_status_register_bp4_srwd,
7212 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7213 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007214 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007215 .voltage = {2700, 3600},
7216 },
7217
7218 {
7219 .vendor = "GigaDevice",
7220 .name = "GD25Q64(B)",
7221 .bustype = BUS_SPI,
7222 .manufacture_id = GIGADEVICE_ID,
7223 .model_id = GIGADEVICE_GD25Q64,
7224 .total_size = 8192,
7225 .page_size = 256,
7226 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007228 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007229 .probe = probe_spi_rdid,
7230 .probe_timing = TIMING_ZERO,
7231 .block_erasers =
7232 {
7233 {
7234 .eraseblocks = { {4 * 1024, 2048} },
7235 .block_erase = spi_block_erase_20,
7236 }, {
7237 .eraseblocks = { {32 * 1024, 256} },
7238 .block_erase = spi_block_erase_52,
7239 }, {
7240 .eraseblocks = { {64 * 1024, 128} },
7241 .block_erase = spi_block_erase_d8,
7242 }, {
7243 .eraseblocks = { {8 * 1024 * 1024, 1} },
7244 .block_erase = spi_block_erase_60,
7245 }, {
7246 .eraseblocks = { {8 * 1024 * 1024, 1} },
7247 .block_erase = spi_block_erase_c7,
7248 }
7249 },
7250 .printlock = spi_prettyprint_status_register_bp4_srwd,
7251 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7252 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007253 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007254 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007255 .reg_bits =
7256 {
Nico Huber4da971f2024-03-27 01:18:12 +01007257 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007258 .srp = {STATUS1, 7, RW},
7259 .srl = {STATUS2, 0, RW},
7260 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7261 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7262 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7263 .cmp = {STATUS2, 6, RW},
7264 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007265 .wp_write_cfg = spi_wp_write_cfg,
7266 .wp_read_cfg = spi_wp_read_cfg,
7267 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007268 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007269 },
7270
7271 {
7272 .vendor = "GigaDevice",
7273 .name = "GD25Q80(B)",
7274 .bustype = BUS_SPI,
7275 .manufacture_id = GIGADEVICE_ID,
7276 .model_id = GIGADEVICE_GD25Q80,
7277 .total_size = 1024,
7278 .page_size = 256,
7279 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Nico Huber4da971f2024-03-27 01:18:12 +01007280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007281 .tested = TEST_OK_PREW,
7282 .probe = probe_spi_rdid,
7283 .probe_timing = TIMING_ZERO,
7284 .block_erasers =
7285 {
7286 {
7287 .eraseblocks = { {4 * 1024, 256} },
7288 .block_erase = spi_block_erase_20,
7289 }, {
7290 .eraseblocks = { {32 * 1024, 32} },
7291 .block_erase = spi_block_erase_52,
7292 }, {
7293 .eraseblocks = { {64 * 1024, 16} },
7294 .block_erase = spi_block_erase_d8,
7295 }, {
7296 .eraseblocks = { {1024 * 1024, 1} },
7297 .block_erase = spi_block_erase_60,
7298 }, {
7299 .eraseblocks = { {1024 * 1024, 1} },
7300 .block_erase = spi_block_erase_c7,
7301 }
7302 },
Nico Huber4da971f2024-03-27 01:18:12 +01007303 .reg_bits =
7304 {
7305 .qe = {STATUS2, 1, RW},
7306 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007307 .printlock = spi_prettyprint_status_register_bp4_srwd,
7308 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7309 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007310 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007311 .voltage = {2700, 3600},
7312 },
7313
7314 {
7315 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007316 .name = "GD25T80",
7317 .bustype = BUS_SPI,
7318 .manufacture_id = GIGADEVICE_ID,
7319 .model_id = GIGADEVICE_GD25T80,
7320 .total_size = 1024,
7321 .page_size = 256,
7322 /* OTP: 256B total; enter 0x3A */
7323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7324 .tested = TEST_UNTESTED,
7325 .probe = probe_spi_rdid,
7326 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007327 .block_erasers =
7328 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007329 {
7330 .eraseblocks = { {4 * 1024, 256} },
7331 .block_erase = spi_block_erase_20,
7332 }, {
7333 .eraseblocks = { {64 * 1024, 16} },
7334 .block_erase = spi_block_erase_52,
7335 }, {
7336 .eraseblocks = { {64 * 1024, 16} },
7337 .block_erase = spi_block_erase_d8,
7338 }, {
7339 .eraseblocks = { {1024 * 1024, 1} },
7340 .block_erase = spi_block_erase_60,
7341 }, {
7342 .eraseblocks = { {1024 * 1024, 1} },
7343 .block_erase = spi_block_erase_c7,
7344 }
7345 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007346 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007347 .unlock = spi_disable_blockprotect,
7348 .write = spi_chip_write_256,
7349 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007350 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007351 },
7352
7353 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007354 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007355 .name = "GD25VQ16C",
7356 .bustype = BUS_SPI,
7357 .manufacture_id = GIGADEVICE_ID,
7358 .model_id = GIGADEVICE_GD25VQ16C,
7359 .total_size = 2 * 1024,
7360 .page_size = 256,
7361 /* Supports SFDP */
7362 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007364 .tested = TEST_UNTESTED,
7365 .probe = probe_spi_rdid,
7366 .probe_timing = TIMING_ZERO,
7367 .block_erasers =
7368 {
7369 {
7370 .eraseblocks = { { 4 * 1024, 512} },
7371 .block_erase = spi_block_erase_20,
7372 }, {
7373 .eraseblocks = { { 32 * 1024, 64} },
7374 .block_erase = spi_block_erase_52,
7375 }, {
7376 .eraseblocks = { { 64 * 1024, 32} },
7377 .block_erase = spi_block_erase_d8,
7378 }, {
7379 .eraseblocks = { {2 * 1024 * 1024, 1} },
7380 .block_erase = spi_block_erase_60,
7381 }, {
7382 .eraseblocks = { {2 * 1024 * 1024, 1} },
7383 .block_erase = spi_block_erase_c7,
7384 }
7385 },
Nico Huber4da971f2024-03-27 01:18:12 +01007386 .reg_bits =
7387 {
7388 .qe = {STATUS2, 1, RW},
7389 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007390 .printlock = spi_prettyprint_status_register_bp4_srwd,
7391 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7392 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007393 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007394 .voltage = {2300, 3600},
7395 },
7396
7397 {
7398 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007399 .name = "GD25VQ21B",
7400 .bustype = BUS_SPI,
7401 .manufacture_id = GIGADEVICE_ID,
7402 .model_id = GIGADEVICE_GD25VQ21B,
7403 .total_size = 256,
7404 .page_size = 256,
7405 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
7407 FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007408 .tested = TEST_UNTESTED,
7409 .probe = probe_spi_rdid,
7410 .probe_timing = TIMING_ZERO,
7411 .block_erasers =
7412 {
7413 {
7414 .eraseblocks = { { 4 * 1024, 64} },
7415 .block_erase = spi_block_erase_20,
7416 }, {
7417 .eraseblocks = { { 32 * 1024, 8} },
7418 .block_erase = spi_block_erase_52,
7419 }, {
7420 .eraseblocks = { { 64 * 1024, 4} },
7421 .block_erase = spi_block_erase_d8,
7422 }, {
7423 .eraseblocks = { {256 * 1024, 1} },
7424 .block_erase = spi_block_erase_60,
7425 }, {
7426 .eraseblocks = { {256 * 1024, 1} },
7427 .block_erase = spi_block_erase_c7,
7428 }
7429 },
Nico Huber4da971f2024-03-27 01:18:12 +01007430 .reg_bits =
7431 {
7432 .qe = {STATUS2, 1, RW},
7433 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007434 .printlock = spi_prettyprint_status_register_bp4_srwd,
7435 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7436 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007437 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007438 .voltage = {2300, 3600},
7439 },
7440
7441 {
7442 .vendor = "GigaDevice",
7443 .name = "GD25VQ40C",
7444 .bustype = BUS_SPI,
7445 .manufacture_id = GIGADEVICE_ID,
7446 .model_id = GIGADEVICE_GD25VQ41B,
7447 .total_size = 512,
7448 .page_size = 256,
7449 /* Supports SFDP */
7450 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007452 .tested = TEST_UNTESTED,
7453 .probe = probe_spi_rdid,
7454 .probe_timing = TIMING_ZERO,
7455 .block_erasers =
7456 {
7457 {
7458 .eraseblocks = { { 4 * 1024, 128} },
7459 .block_erase = spi_block_erase_20,
7460 }, {
7461 .eraseblocks = { { 32 * 1024, 16} },
7462 .block_erase = spi_block_erase_52,
7463 }, {
7464 .eraseblocks = { { 64 * 1024, 8} },
7465 .block_erase = spi_block_erase_d8,
7466 }, {
7467 .eraseblocks = { {512 * 1024, 1} },
7468 .block_erase = spi_block_erase_60,
7469 }, {
7470 .eraseblocks = { {512 * 1024, 1} },
7471 .block_erase = spi_block_erase_c7,
7472 }
7473 },
Nico Huber4da971f2024-03-27 01:18:12 +01007474 .reg_bits =
7475 {
7476 .qe = {STATUS2, 1, RW},
7477 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007478 .printlock = spi_prettyprint_status_register_bp4_srwd,
7479 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7480 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007481 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007482 .voltage = {2300, 3600},
7483 },
7484
7485 {
7486 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007487 .name = "GD25VQ41B",
7488 .bustype = BUS_SPI,
7489 .manufacture_id = GIGADEVICE_ID,
7490 .model_id = GIGADEVICE_GD25VQ41B,
7491 .total_size = 512,
7492 .page_size = 256,
7493 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
7495 FEATURE_OTP | FEATURE_QIO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007496 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007497 .probe = probe_spi_rdid,
7498 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007499 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007500 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007501 {
7502 .eraseblocks = { { 4 * 1024, 128} },
7503 .block_erase = spi_block_erase_20,
7504 }, {
7505 .eraseblocks = { { 32 * 1024, 16} },
7506 .block_erase = spi_block_erase_52,
7507 }, {
7508 .eraseblocks = { { 64 * 1024, 8} },
7509 .block_erase = spi_block_erase_d8,
7510 }, {
7511 .eraseblocks = { {512 * 1024, 1} },
7512 .block_erase = spi_block_erase_60,
7513 }, {
7514 .eraseblocks = { {512 * 1024, 1} },
7515 .block_erase = spi_block_erase_c7,
7516 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007517 },
Nico Huber4da971f2024-03-27 01:18:12 +01007518 .reg_bits =
7519 {
7520 .qe = {STATUS2, 1, RW},
7521 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007522 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007523 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7524 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007525 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007526 .voltage = {2300, 3600},
7527 },
7528
7529 {
7530 .vendor = "GigaDevice",
7531 .name = "GD25VQ80C",
7532 .bustype = BUS_SPI,
7533 .manufacture_id = GIGADEVICE_ID,
7534 .model_id = GIGADEVICE_GD25VQ80C,
7535 .total_size = 1024,
7536 .page_size = 256,
7537 /* Supports SFDP */
7538 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007539 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007540 .tested = TEST_UNTESTED,
7541 .probe = probe_spi_rdid,
7542 .probe_timing = TIMING_ZERO,
7543 .block_erasers =
7544 {
7545 {
7546 .eraseblocks = { { 4 * 1024, 256} },
7547 .block_erase = spi_block_erase_20,
7548 }, {
7549 .eraseblocks = { { 32 * 1024, 32} },
7550 .block_erase = spi_block_erase_52,
7551 }, {
7552 .eraseblocks = { { 64 * 1024, 16} },
7553 .block_erase = spi_block_erase_d8,
7554 }, {
7555 .eraseblocks = { {1024 * 1024, 1} },
7556 .block_erase = spi_block_erase_60,
7557 }, {
7558 .eraseblocks = { {1024 * 1024, 1} },
7559 .block_erase = spi_block_erase_c7,
7560 }
7561 },
Nico Huber4da971f2024-03-27 01:18:12 +01007562 .reg_bits =
7563 {
7564 .qe = {STATUS2, 1, RW},
7565 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007566 .printlock = spi_prettyprint_status_register_bp4_srwd,
7567 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7568 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007569 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007570 .voltage = {2300, 3600},
7571 },
7572
7573 {
Dino Li3214f582020-03-25 17:39:53 +08007574 .vendor = "GigaDevice",
7575 .name = "GD25WQ80E",
7576 .bustype = BUS_SPI,
7577 .manufacture_id = GIGADEVICE_ID,
7578 .model_id = GIGADEVICE_GD25WQ80E,
7579 .total_size = 1024,
7580 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Dino Li3214f582020-03-25 17:39:53 +08007582 .tested = TEST_OK_PREW,
7583 .probe = probe_spi_rdid,
7584 .probe_timing = TIMING_ZERO,
7585 .block_erasers =
7586 {
7587 {
7588 .eraseblocks = { {4 * 1024, 256} },
7589 .block_erase = spi_block_erase_20,
7590 }, {
7591 .eraseblocks = { {32 * 1024, 32} },
7592 .block_erase = spi_block_erase_52,
7593 }, {
7594 .eraseblocks = { {64 * 1024, 16} },
7595 .block_erase = spi_block_erase_d8,
7596 }, {
7597 .eraseblocks = { {1 * 1024 * 1024, 1} },
7598 .block_erase = spi_block_erase_60,
7599 }, {
7600 .eraseblocks = { {1 * 1024 * 1024, 1} },
7601 .block_erase = spi_block_erase_c7,
7602 }
7603 },
Nico Huber4da971f2024-03-27 01:18:12 +01007604 .reg_bits =
7605 {
7606 .qe = {STATUS2, 1, RW},
7607 },
Dino Li3214f582020-03-25 17:39:53 +08007608 .printlock = spi_prettyprint_status_register_bp4_srwd,
7609 .unlock = spi_disable_blockprotect_bp4_srwd,
7610 .write = spi_chip_write_256,
7611 .read = spi_chip_read,
7612 .voltage = {1650, 3600},
7613 },
7614
7615 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007616 .vendor = "Hyundai",
7617 .name = "HY29F002B",
7618 .bustype = BUS_PARALLEL,
7619 .manufacture_id = HYUNDAI_ID,
7620 .model_id = HYUNDAI_HY29F002B,
7621 .total_size = 256,
7622 .page_size = 256 * 1024,
7623 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007624 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007625 .probe = probe_jedec,
7626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007627 .block_erasers =
7628 {
7629 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007630 .eraseblocks = {
7631 {16 * 1024, 1},
7632 {8 * 1024, 2},
7633 {32 * 1024, 1},
7634 {64 * 1024, 3},
7635 },
7636 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007637 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007638 .eraseblocks = { {256 * 1024, 1} },
7639 .block_erase = erase_chip_block_jedec,
7640 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007641 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007642 .write = write_jedec_1,
7643 .read = read_memmapped,
7644 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007645 .prepare_access = prepare_memory_access,
7646 .finish_access = finish_memory_access,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007647 },
7648
7649 {
David Borgc96a8bd2010-06-21 16:12:22 +00007650 .vendor = "Hyundai",
7651 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007652 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007653 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007654 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007655 .total_size = 256,
7656 .page_size = 256 * 1024,
7657 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007658 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007659 .probe = probe_jedec,
7660 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7661 .block_erasers =
7662 {
7663 {
7664 .eraseblocks = {
7665 {64 * 1024, 3},
7666 {32 * 1024, 1},
7667 {8 * 1024, 2},
7668 {16 * 1024, 1},
7669 },
7670 .block_erase = erase_sector_jedec,
7671 }, {
7672 .eraseblocks = { {256 * 1024, 1} },
7673 .block_erase = erase_chip_block_jedec,
7674 },
7675 },
7676 .write = write_jedec_1,
7677 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007678 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007679 .prepare_access = prepare_memory_access,
7680 .finish_access = finish_memory_access,
David Borgc96a8bd2010-06-21 16:12:22 +00007681 },
7682
7683 {
7684 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007685 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007686 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007687 .manufacture_id = HYUNDAI_ID,
7688 .model_id = HYUNDAI_HY29F040A,
7689 .total_size = 512,
7690 .page_size = 64 * 1024,
7691 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7692 .tested = TEST_UNTESTED,
7693 .probe = probe_jedec,
7694 .probe_timing = TIMING_ZERO,
7695 .block_erasers =
7696 {
7697 {
7698 .eraseblocks = { {64 * 1024, 8} },
7699 .block_erase = erase_sector_jedec,
7700 }, {
7701 .eraseblocks = { {512 * 1024, 1} },
7702 .block_erase = erase_chip_block_jedec,
7703 },
7704 },
7705 .write = write_jedec_1,
7706 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007707 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01007708 .prepare_access = prepare_memory_access,
7709 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00007710 },
7711
7712 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007713 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007714 .name = "IS25LP064",
7715 .bustype = BUS_SPI,
7716 .manufacture_id = ISSI_ID_SPI,
7717 .model_id = ISSI_IS25LP064,
7718 .total_size = 8192,
7719 .page_size = 256,
7720 /* OTP: 1024B total; read 0x48; write 0x42 */
7721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007722 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007723 .probe = probe_spi_rdid,
7724 .probe_timing = TIMING_ZERO,
7725 .block_erasers =
7726 {
7727 {
7728 .eraseblocks = { {4 * 1024, 2048} },
7729 .block_erase = spi_block_erase_20,
7730 }, {
7731 .eraseblocks = { {4 * 1024, 2048} },
7732 .block_erase = spi_block_erase_d7,
7733 }, {
7734 .eraseblocks = { {32 * 1024, 256} },
7735 .block_erase = spi_block_erase_52,
7736 }, {
7737 .eraseblocks = { {64 * 1024, 128} },
7738 .block_erase = spi_block_erase_d8,
7739 }, {
7740 .eraseblocks = { {8 * 1024 * 1024, 1} },
7741 .block_erase = spi_block_erase_60,
7742 }, {
7743 .eraseblocks = { {8 * 1024 * 1024, 1} },
7744 .block_erase = spi_block_erase_c7,
7745 }
7746 },
7747 .unlock = spi_disable_blockprotect,
7748 .write = spi_chip_write_256,
7749 .read = spi_chip_read,
7750 .voltage = {2300, 3600},
7751 },
7752
7753 {
7754 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007755 .name = "IS25LP128",
7756 .bustype = BUS_SPI,
7757 .manufacture_id = ISSI_ID_SPI,
7758 .model_id = ISSI_IS25LP128,
7759 .total_size = 16384,
7760 .page_size = 256,
7761 /* OTP: 1024B total; read 0x48; write 0x42 */
7762 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7763 .tested = TEST_OK_PREW,
7764 .probe = probe_spi_rdid,
7765 .probe_timing = TIMING_ZERO,
7766 .block_erasers =
7767 {
7768 {
7769 .eraseblocks = { {4 * 1024, 4096} },
7770 .block_erase = spi_block_erase_20,
7771 }, {
7772 .eraseblocks = { {4 * 1024, 4096} },
7773 .block_erase = spi_block_erase_d7,
7774 }, {
7775 .eraseblocks = { {32 * 1024, 512} },
7776 .block_erase = spi_block_erase_52,
7777 }, {
7778 .eraseblocks = { {64 * 1024, 256} },
7779 .block_erase = spi_block_erase_d8,
7780 }, {
7781 .eraseblocks = { {16 * 1024 * 1024, 1} },
7782 .block_erase = spi_block_erase_60,
7783 }, {
7784 .eraseblocks = { {16 * 1024 * 1024, 1} },
7785 .block_erase = spi_block_erase_c7,
7786 }
7787 },
7788 .unlock = spi_disable_blockprotect,
7789 .write = spi_chip_write_256,
7790 .read = spi_chip_read,
7791 .voltage = {2300, 3600},
7792 },
7793
7794 {
7795 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007796 .name = "IS25LP256",
7797 .bustype = BUS_SPI,
7798 .manufacture_id = ISSI_ID_SPI,
7799 .model_id = ISSI_IS25LP256,
7800 .total_size = 32768,
7801 .page_size = 256,
7802 /* supports SFDP */
7803 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7805 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007806 .tested = TEST_OK_PREW,
7807 .probe = probe_spi_rdid,
7808 .probe_timing = TIMING_ZERO,
7809 .block_erasers =
7810 {
7811 {
7812 .eraseblocks = { {4 * 1024, 8192} },
7813 .block_erase = spi_block_erase_21,
7814 }, {
7815 .eraseblocks = { {4 * 1024, 8192} },
7816 .block_erase = spi_block_erase_20,
7817 /* could also use spi_block_erase_d7 */
7818 }, {
7819 .eraseblocks = { {32 * 1024, 1024} },
7820 .block_erase = spi_block_erase_5c,
7821 }, {
7822 .eraseblocks = { {32 * 1024, 1024} },
7823 .block_erase = spi_block_erase_52,
7824 }, {
7825 .eraseblocks = { {64 * 1024, 512} },
7826 .block_erase = spi_block_erase_dc,
7827 }, {
7828 .eraseblocks = { {64 * 1024, 512} },
7829 .block_erase = spi_block_erase_d8,
7830 }, {
7831 .eraseblocks = { {32 * 1024 * 1024, 1} },
7832 .block_erase = spi_block_erase_60,
7833 }, {
7834 .eraseblocks = { {32 * 1024 * 1024, 1} },
7835 .block_erase = spi_block_erase_c7,
7836 }
7837 },
7838 .unlock = spi_disable_blockprotect,
7839 .write = spi_chip_write_256,
7840 .read = spi_chip_read,
7841 .voltage = {2300, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01007842 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007843 },
7844
7845 {
7846 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007847 .name = "IS25WP032",
7848 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007849 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007850 .model_id = ISSI_IS25WP032,
7851 .total_size = 4096,
7852 .page_size = 256,
7853 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007854 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7855 dummy cycles; non-volatile read parameters, so disable for now */
7856 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Nico Huberb27b8d12018-10-02 20:46:21 +02007857 .tested = TEST_UNTESTED,
7858 .probe = probe_spi_rdid,
7859 .probe_timing = TIMING_ZERO,
7860 .block_erasers =
7861 {
7862 {
7863 .eraseblocks = { {4 * 1024, 1024} },
7864 .block_erase = spi_block_erase_20,
7865 }, {
7866 .eraseblocks = { {4 * 1024, 1024} },
7867 .block_erase = spi_block_erase_d7,
7868 }, {
7869 .eraseblocks = { {32 * 1024, 128} },
7870 .block_erase = spi_block_erase_52,
7871 }, {
7872 .eraseblocks = { {64 * 1024, 64} },
7873 .block_erase = spi_block_erase_d8,
7874 }, {
7875 .eraseblocks = { {4 * 1024 * 1024, 1} },
7876 .block_erase = spi_block_erase_60,
7877 }, {
7878 .eraseblocks = { {4 * 1024 * 1024, 1} },
7879 .block_erase = spi_block_erase_c7,
7880 }
7881 },
7882 .unlock = spi_disable_blockprotect,
7883 .write = spi_chip_write_256,
7884 .read = spi_chip_read,
7885 .voltage = {1650, 1950},
7886 },
7887
7888 {
7889 .vendor = "ISSI",
7890 .name = "IS25WP064",
7891 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007892 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007893 .model_id = ISSI_IS25WP064,
7894 .total_size = 8192,
7895 .page_size = 256,
7896 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007897 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7898 dummy cycles; non-volatile read parameters, so disable for now */
7899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Nico Huberb27b8d12018-10-02 20:46:21 +02007900 .tested = TEST_OK_PREW,
7901 .probe = probe_spi_rdid,
7902 .probe_timing = TIMING_ZERO,
7903 .block_erasers =
7904 {
7905 {
7906 .eraseblocks = { {4 * 1024, 2048} },
7907 .block_erase = spi_block_erase_20,
7908 }, {
7909 .eraseblocks = { {4 * 1024, 2048} },
7910 .block_erase = spi_block_erase_d7,
7911 }, {
7912 .eraseblocks = { {32 * 1024, 256} },
7913 .block_erase = spi_block_erase_52,
7914 }, {
7915 .eraseblocks = { {64 * 1024, 128} },
7916 .block_erase = spi_block_erase_d8,
7917 }, {
7918 .eraseblocks = { {8 * 1024 * 1024, 1} },
7919 .block_erase = spi_block_erase_60,
7920 }, {
7921 .eraseblocks = { {8 * 1024 * 1024, 1} },
7922 .block_erase = spi_block_erase_c7,
7923 }
7924 },
7925 .unlock = spi_disable_blockprotect,
7926 .write = spi_chip_write_256,
7927 .read = spi_chip_read,
7928 .voltage = {1650, 1950},
7929 },
7930
7931 {
7932 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007933 .name = "IS25WP128",
7934 .bustype = BUS_SPI,
7935 .manufacture_id = ISSI_ID_SPI,
7936 .model_id = ISSI_IS25WP128,
7937 .total_size = 16384,
7938 .page_size = 256,
7939 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007940 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7941 dummy cycles; non-volatile read parameters, so disable for now */
7942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks3083ed92017-05-02 13:25:56 -07007943 .tested = TEST_OK_PREW,
7944 .probe = probe_spi_rdid,
7945 .probe_timing = TIMING_ZERO,
7946 .block_erasers =
7947 {
7948 {
7949 .eraseblocks = { {4 * 1024, 4096} },
7950 .block_erase = spi_block_erase_20,
7951 }, {
7952 .eraseblocks = { {4 * 1024, 4096} },
7953 .block_erase = spi_block_erase_d7,
7954 }, {
7955 .eraseblocks = { {32 * 1024, 512} },
7956 .block_erase = spi_block_erase_52,
7957 }, {
7958 .eraseblocks = { {64 * 1024, 256} },
7959 .block_erase = spi_block_erase_d8,
7960 }, {
7961 .eraseblocks = { {16 * 1024 * 1024, 1} },
7962 .block_erase = spi_block_erase_60,
7963 }, {
7964 .eraseblocks = { {16 * 1024 * 1024, 1} },
7965 .block_erase = spi_block_erase_c7,
7966 }
7967 },
7968 .unlock = spi_disable_blockprotect,
7969 .write = spi_chip_write_256,
7970 .read = spi_chip_read,
7971 .voltage = {1650, 1950},
7972 },
7973
7974 {
7975 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007976 .name = "IS25WP256",
7977 .bustype = BUS_SPI,
7978 .manufacture_id = ISSI_ID_SPI,
7979 .model_id = ISSI_IS25WP256,
7980 .total_size = 32768,
7981 .page_size = 256,
7982 /* supports SFDP */
7983 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007984 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7985 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007986 .tested = TEST_OK_PREW,
7987 .probe = probe_spi_rdid,
7988 .probe_timing = TIMING_ZERO,
7989 .block_erasers =
7990 {
7991 {
7992 .eraseblocks = { {4 * 1024, 8192} },
7993 .block_erase = spi_block_erase_21,
7994 }, {
7995 .eraseblocks = { {4 * 1024, 8192} },
7996 .block_erase = spi_block_erase_20,
7997 /* could also use spi_block_erase_d7 */
7998 }, {
7999 .eraseblocks = { {32 * 1024, 1024} },
8000 .block_erase = spi_block_erase_5c,
8001 }, {
8002 .eraseblocks = { {32 * 1024, 1024} },
8003 .block_erase = spi_block_erase_52,
8004 }, {
8005 .eraseblocks = { {64 * 1024, 512} },
8006 .block_erase = spi_block_erase_dc,
8007 }, {
8008 .eraseblocks = { {64 * 1024, 512} },
8009 .block_erase = spi_block_erase_d8,
8010 }, {
8011 .eraseblocks = { {32 * 1024 * 1024, 1} },
8012 .block_erase = spi_block_erase_60,
8013 }, {
8014 .eraseblocks = { {32 * 1024 * 1024, 1} },
8015 .block_erase = spi_block_erase_c7,
8016 }
8017 },
8018 .unlock = spi_disable_blockprotect,
8019 .write = spi_chip_write_256,
8020 .read = spi_chip_read,
8021 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +01008022 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00008023 },
8024
8025 {
8026 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008027 .name = "IS29GL064B",
8028 .bustype = BUS_PARALLEL,
8029 .manufacture_id = ISSI_ID,
8030 .model_id = ISSI_PMC_IS29GL064B,
8031 .total_size = 8192,
8032 .page_size = 128 * 1024, /* actual page size is 16 */
8033 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8034 .tested = TEST_UNTESTED,
8035 .probe = probe_jedec_29gl,
8036 .probe_timing = TIMING_ZERO,
8037 .block_erasers =
8038 {
8039 {
8040 .eraseblocks = {
8041 {8 * 1024, 8},
8042 {64 * 1024, 127},
8043 },
8044 .block_erase = erase_sector_jedec,
8045 }, {
8046 .eraseblocks = { {8 * 1024 * 1024, 1} },
8047 .block_erase = erase_chip_block_jedec,
8048 },
8049 },
8050 .write = write_jedec_1,
8051 .read = read_memmapped,
8052 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008053 .prepare_access = prepare_memory_access,
8054 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008055 },
8056
8057 {
8058 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008059 .name = "IS29GL064H/L",
8060 .bustype = BUS_PARALLEL,
8061 .manufacture_id = ISSI_ID,
8062 .model_id = ISSI_PMC_IS29GL064HL,
8063 .total_size = 8192,
8064 .page_size = 128 * 1024, /* actual page size is 16 */
8065 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8066 .tested = TEST_UNTESTED,
8067 .probe = probe_jedec_29gl,
8068 .probe_timing = TIMING_ZERO,
8069 .block_erasers =
8070 {
8071 {
8072 .eraseblocks = { {64 * 1024, 128} },
8073 .block_erase = erase_sector_jedec,
8074 }, {
8075 .eraseblocks = { {8 * 1024 * 1024, 1} },
8076 .block_erase = erase_chip_block_jedec,
8077 },
8078 },
8079 .write = write_jedec_1,
8080 .read = read_memmapped,
8081 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008082 .prepare_access = prepare_memory_access,
8083 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008084 },
8085
8086 {
8087 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008088 .name = "IS29GL064T",
8089 .bustype = BUS_PARALLEL,
8090 .manufacture_id = ISSI_ID,
8091 .model_id = ISSI_PMC_IS29GL064T,
8092 .total_size = 8192,
8093 .page_size = 128 * 1024, /* actual page size is 16 */
8094 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8095 .tested = TEST_UNTESTED,
8096 .probe = probe_jedec_29gl,
8097 .probe_timing = TIMING_ZERO,
8098 .block_erasers =
8099 {
8100 {
8101 .eraseblocks = {
8102 {64 * 1024, 127},
8103 {8 * 1024, 8},
8104 },
8105 .block_erase = erase_sector_jedec,
8106 }, {
8107 .eraseblocks = { {8 * 1024 * 1024, 1} },
8108 .block_erase = erase_chip_block_jedec,
8109 },
8110 },
8111 .write = write_jedec_1,
8112 .read = read_memmapped,
8113 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008114 .prepare_access = prepare_memory_access,
8115 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008116 },
8117
8118 {
8119 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008120 .name = "IS29GL128H/L",
8121 .bustype = BUS_PARALLEL,
8122 .manufacture_id = ISSI_ID,
8123 .model_id = ISSI_PMC_IS29GL128HL,
8124 .total_size = 16384,
8125 .page_size = 128 * 1024, /* actual page size is 16 */
8126 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8127 .tested = TEST_UNTESTED,
8128 .probe = probe_jedec_29gl,
8129 .probe_timing = TIMING_ZERO,
8130 .block_erasers =
8131 {
8132 {
8133 .eraseblocks = { {128 * 1024, 128} },
8134 .block_erase = erase_sector_jedec,
8135 }, {
8136 .eraseblocks = { {16 * 1024 * 1024, 1} },
8137 .block_erase = erase_chip_block_jedec,
8138 },
8139 },
8140 .write = write_jedec_1,
8141 .read = read_memmapped,
8142 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008143 .prepare_access = prepare_memory_access,
8144 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008145 },
8146
8147 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008148 .vendor = "Intel",
8149 .name = "25F160S33B8",
8150 .bustype = BUS_SPI,
8151 .manufacture_id = INTEL_ID,
8152 .model_id = INTEL_25F160S33B8,
8153 .total_size = 2048,
8154 .page_size = 256,
8155 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8156 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8157 .tested = TEST_UNTESTED,
8158 .probe = probe_spi_rdid,
8159 .probe_timing = TIMING_ZERO,
8160 .block_erasers =
8161 {
8162 {
8163 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8164 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8165 * have no effect on the memory contents, but sets a flag in the SR.
8166 .eraseblocks = {
8167 {8 * 1024, 8},
8168 {64 * 1024, 31} // inaccessible
8169 },
8170 .block_erase = spi_block_erase_40,
8171 }, { */
8172 .eraseblocks = { {64 * 1024, 32} },
8173 .block_erase = spi_block_erase_d8,
8174 }, {
8175 .eraseblocks = { {2 * 1024 * 1024, 1} },
8176 .block_erase = spi_block_erase_c7,
8177 }
8178 },
8179 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8180 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8181 .write = spi_chip_write_256,
8182 .read = spi_chip_read, /* also fast read 0x0B */
8183 .voltage = {2700, 3600},
8184 },
8185
8186 {
8187 .vendor = "Intel",
8188 .name = "25F160S33T8",
8189 .bustype = BUS_SPI,
8190 .manufacture_id = INTEL_ID,
8191 .model_id = INTEL_25F160S33T8,
8192 .total_size = 2048,
8193 .page_size = 256,
8194 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8196 .tested = TEST_UNTESTED,
8197 .probe = probe_spi_rdid,
8198 .probe_timing = TIMING_ZERO,
8199 .block_erasers =
8200 {
8201 {
8202 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8203 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8204 * have no effect on the memory contents, but sets a flag in the SR.
8205 .eraseblocks = {
8206 {64 * 1024, 31}, // inaccessible
8207 {8 * 1024, 8}
8208 },
8209 .block_erase = spi_block_erase_40,
8210 }, { */
8211 .eraseblocks = { {64 * 1024, 32} },
8212 .block_erase = spi_block_erase_d8,
8213 }, {
8214 .eraseblocks = { {2 * 1024 * 1024, 1} },
8215 .block_erase = spi_block_erase_c7,
8216 }
8217 },
8218 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8219 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8220 .write = spi_chip_write_256,
8221 .read = spi_chip_read, /* also fast read 0x0B */
8222 .voltage = {2700, 3600},
8223 },
8224
8225 {
8226 .vendor = "Intel",
8227 .name = "25F320S33B8",
8228 .bustype = BUS_SPI,
8229 .manufacture_id = INTEL_ID,
8230 .model_id = INTEL_25F320S33B8,
8231 .total_size = 4096,
8232 .page_size = 256,
8233 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8235 .tested = TEST_UNTESTED,
8236 .probe = probe_spi_rdid,
8237 .probe_timing = TIMING_ZERO,
8238 .block_erasers =
8239 {
8240 {
8241 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8242 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8243 * have no effect on the memory contents, but sets a flag in the SR.
8244 .eraseblocks = {
8245 {8 * 1024, 8},
8246 {64 * 1024, 63} // inaccessible
8247 },
8248 .block_erase = spi_block_erase_40,
8249 }, { */
8250 .eraseblocks = { {64 * 1024, 64} },
8251 .block_erase = spi_block_erase_d8,
8252 }, {
8253 .eraseblocks = { {4 * 1024 * 1024, 1} },
8254 .block_erase = spi_block_erase_c7,
8255 }
8256 },
8257 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8258 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8259 .write = spi_chip_write_256,
8260 .read = spi_chip_read, /* also fast read 0x0B */
8261 .voltage = {2700, 3600},
8262 },
8263
8264 {
8265 .vendor = "Intel",
8266 .name = "25F320S33T8",
8267 .bustype = BUS_SPI,
8268 .manufacture_id = INTEL_ID,
8269 .model_id = INTEL_25F320S33T8,
8270 .total_size = 4096,
8271 .page_size = 256,
8272 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8274 .tested = TEST_UNTESTED,
8275 .probe = probe_spi_rdid,
8276 .probe_timing = TIMING_ZERO,
8277 .block_erasers =
8278 {
8279 {
8280 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8281 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8282 * have no effect on the memory contents, but sets a flag in the SR.
8283 .eraseblocks = {
8284 {64 * 1024, 63}, // inaccessible
8285 {8 * 1024, 8}
8286 },
8287 .block_erase = spi_block_erase_40,
8288 }, { */
8289 .eraseblocks = { {64 * 1024, 64} },
8290 .block_erase = spi_block_erase_d8,
8291 }, {
8292 .eraseblocks = { {4 * 1024 * 1024, 1} },
8293 .block_erase = spi_block_erase_c7,
8294 }
8295 },
8296 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8297 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8298 .write = spi_chip_write_256,
8299 .read = spi_chip_read, /* also fast read 0x0B */
8300 .voltage = {2700, 3600},
8301 },
8302
8303 {
8304 .vendor = "Intel",
8305 .name = "25F640S33B8",
8306 .bustype = BUS_SPI,
8307 .manufacture_id = INTEL_ID,
8308 .model_id = INTEL_25F640S33B8,
8309 .total_size = 8192,
8310 .page_size = 256,
8311 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8312 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008313 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008314 .probe = probe_spi_rdid,
8315 .probe_timing = TIMING_ZERO,
8316 .block_erasers =
8317 {
8318 {
8319 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8320 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8321 * have no effect on the memory contents, but sets a flag in the SR.
8322 .eraseblocks = {
8323 {8 * 1024, 8},
8324 {64 * 1024, 127} // inaccessible
8325 },
8326 .block_erase = spi_block_erase_40,
8327 }, { */
8328 .eraseblocks = { {64 * 1024, 128} },
8329 .block_erase = spi_block_erase_d8,
8330 }, {
8331 .eraseblocks = { {8 * 1024 * 1024, 1} },
8332 .block_erase = spi_block_erase_c7,
8333 }
8334 },
8335 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8336 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8337 .write = spi_chip_write_256,
8338 .read = spi_chip_read, /* also fast read 0x0B */
8339 .voltage = {2700, 3600},
8340 },
8341
8342 {
8343 .vendor = "Intel",
8344 .name = "25F640S33T8",
8345 .bustype = BUS_SPI,
8346 .manufacture_id = INTEL_ID,
8347 .model_id = INTEL_25F640S33T8,
8348 .total_size = 8192,
8349 .page_size = 256,
8350 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8351 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8352 .tested = TEST_UNTESTED,
8353 .probe = probe_spi_rdid,
8354 .probe_timing = TIMING_ZERO,
8355 .block_erasers =
8356 {
8357 {
8358 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8359 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8360 * have no effect on the memory contents, but sets a flag in the SR.
8361 .eraseblocks = {
8362 {64 * 1024, 127}, // inaccessible
8363 {8 * 1024, 8}
8364 },
8365 .block_erase = spi_block_erase_40,
8366 }, { */
8367 .eraseblocks = { {64 * 1024, 128} },
8368 .block_erase = spi_block_erase_d8,
8369 }, {
8370 .eraseblocks = { {8 * 1024 * 1024, 1} },
8371 .block_erase = spi_block_erase_c7,
8372 }
8373 },
8374 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8375 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8376 .write = spi_chip_write_256,
8377 .read = spi_chip_read, /* also fast read 0x0B */
8378 .voltage = {2700, 3600},
8379 },
8380
8381 {
8382 .vendor = "Intel",
8383 .name = "28F001BN/BX-B",
8384 .bustype = BUS_PARALLEL,
8385 .manufacture_id = INTEL_ID,
8386 .model_id = INTEL_28F001B,
8387 .total_size = 128,
8388 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8389 .tested = TEST_UNTESTED,
8390 .probe = probe_jedec,
8391 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8392 .block_erasers =
8393 {
8394 {
8395 .eraseblocks = {
8396 {8 * 1024, 1},
8397 {4 * 1024, 2},
8398 {112 * 1024, 1},
8399 },
8400 .block_erase = erase_block_82802ab,
8401 },
8402 },
8403 .write = write_82802ab,
8404 .read = read_memmapped,
8405 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008406 .prepare_access = prepare_memory_access,
8407 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008408 },
8409
8410 {
8411 .vendor = "Intel",
8412 .name = "28F001BN/BX-T",
8413 .bustype = BUS_PARALLEL,
8414 .manufacture_id = INTEL_ID,
8415 .model_id = INTEL_28F001T,
8416 .total_size = 128,
8417 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8418 .tested = TEST_OK_PREW,
8419 .probe = probe_jedec,
8420 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8421 .block_erasers =
8422 {
8423 {
8424 .eraseblocks = {
8425 {112 * 1024, 1},
8426 {4 * 1024, 2},
8427 {8 * 1024, 1},
8428 },
8429 .block_erase = erase_block_82802ab,
8430 },
8431 },
8432 .write = write_82802ab,
8433 .read = read_memmapped,
8434 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008435 .prepare_access = prepare_memory_access,
8436 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008437 },
8438
8439 {
8440 .vendor = "Intel",
8441 .name = "28F002BC/BL/BV/BX-T",
8442 .bustype = BUS_PARALLEL,
8443 .manufacture_id = INTEL_ID,
8444 .model_id = INTEL_28F002T,
8445 .total_size = 256,
8446 .page_size = 256 * 1024,
8447 .tested = TEST_OK_PRE,
8448 .probe = probe_82802ab,
8449 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8450 .block_erasers =
8451 {
8452 {
8453 .eraseblocks = {
8454 {128 * 1024, 1},
8455 {96 * 1024, 1},
8456 {8 * 1024, 2},
8457 {16 * 1024, 1},
8458 },
8459 .block_erase = erase_block_82802ab,
8460 },
8461 },
8462 .write = write_82802ab,
8463 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008464 .prepare_access = prepare_memory_access,
8465 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008466 },
8467
8468 {
8469 .vendor = "Intel",
8470 .name = "28F004B5/BE/BV/BX-B",
8471 .bustype = BUS_PARALLEL,
8472 .manufacture_id = INTEL_ID,
8473 .model_id = INTEL_28F004B,
8474 .total_size = 512,
8475 .page_size = 128 * 1024, /* maximal block size */
8476 .tested = TEST_UNTESTED,
8477 .probe = probe_82802ab,
8478 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8479 .block_erasers =
8480 {
8481 {
8482 .eraseblocks = {
8483 {16 * 1024, 1},
8484 {8 * 1024, 2},
8485 {96 * 1024, 1},
8486 {128 * 1024, 3},
8487 },
8488 .block_erase = erase_block_82802ab,
8489 },
8490 },
8491 .write = write_82802ab,
8492 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008493 .prepare_access = prepare_memory_access,
8494 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008495 },
8496
8497 {
8498 .vendor = "Intel",
8499 .name = "28F004B5/BE/BV/BX-T",
8500 .bustype = BUS_PARALLEL,
8501 .manufacture_id = INTEL_ID,
8502 .model_id = INTEL_28F004T,
8503 .total_size = 512,
8504 .page_size = 128 * 1024, /* maximal block size */
8505 .tested = TEST_UNTESTED,
8506 .probe = probe_82802ab,
8507 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8508 .block_erasers =
8509 {
8510 {
8511 .eraseblocks = {
8512 {128 * 1024, 3},
8513 {96 * 1024, 1},
8514 {8 * 1024, 2},
8515 {16 * 1024, 1},
8516 },
8517 .block_erase = erase_block_82802ab,
8518 },
8519 },
8520 .write = write_82802ab,
8521 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008522 .prepare_access = prepare_memory_access,
8523 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008524 },
8525
8526 {
8527 .vendor = "Intel",
8528 .name = "28F008S3/S5/SC",
8529 .bustype = BUS_PARALLEL,
8530 .manufacture_id = INTEL_ID,
8531 .model_id = INTEL_28F004S3,
8532 .total_size = 512,
8533 .page_size = 256,
8534 .tested = TEST_UNTESTED,
8535 .probe = probe_82802ab,
8536 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8537 .block_erasers =
8538 {
8539 {
8540 .eraseblocks = { {64 * 1024, 8} },
8541 .block_erase = erase_block_82802ab,
8542 },
8543 },
8544 .unlock = unlock_28f004s5,
8545 .write = write_82802ab,
8546 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008547 .prepare_access = prepare_memory_access,
8548 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008549 },
8550
8551 {
8552 .vendor = "Intel",
8553 .name = "28F400BV/BX/CE/CV-B",
8554 .bustype = BUS_PARALLEL,
8555 .manufacture_id = INTEL_ID,
8556 .model_id = INTEL_28F400B,
8557 .total_size = 512,
8558 .page_size = 128 * 1024, /* maximal block size */
8559 .feature_bits = FEATURE_ADDR_SHIFTED,
8560 .tested = TEST_UNTESTED,
8561 .probe = probe_82802ab,
8562 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8563 .block_erasers =
8564 {
8565 {
8566 .eraseblocks = {
8567 {16 * 1024, 1},
8568 {8 * 1024, 2},
8569 {96 * 1024, 1},
8570 {128 * 1024, 3},
8571 },
8572 .block_erase = erase_block_82802ab,
8573 },
8574 },
8575 .write = write_82802ab,
8576 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008577 .prepare_access = prepare_memory_access,
8578 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008579 },
8580
8581 {
8582 .vendor = "Intel",
8583 .name = "28F400BV/BX/CE/CV-T",
8584 .bustype = BUS_PARALLEL,
8585 .manufacture_id = INTEL_ID,
8586 .model_id = INTEL_28F400T,
8587 .total_size = 512,
8588 .page_size = 128 * 1024, /* maximal block size */
8589 .feature_bits = FEATURE_ADDR_SHIFTED,
8590 .tested = TEST_UNTESTED,
8591 .probe = probe_82802ab,
8592 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8593 .block_erasers =
8594 {
8595 {
8596 .eraseblocks = {
8597 {128 * 1024, 3},
8598 {96 * 1024, 1},
8599 {8 * 1024, 2},
8600 {16 * 1024, 1},
8601 },
8602 .block_erase = erase_block_82802ab,
8603 },
8604 },
8605 .write = write_82802ab,
8606 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008607 .prepare_access = prepare_memory_access,
8608 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008609 },
8610
8611 {
8612 .vendor = "Intel",
8613 .name = "82802AB",
8614 .bustype = BUS_FWH,
8615 .manufacture_id = INTEL_ID,
8616 .model_id = INTEL_82802AB,
8617 .total_size = 512,
8618 .page_size = 64 * 1024,
Alan Green88552572019-07-24 13:56:06 +10008619 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008620 .probe = probe_82802ab,
8621 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8622 .block_erasers =
8623 {
8624 {
8625 .eraseblocks = { {64 * 1024, 8} },
8626 .block_erase = erase_block_82802ab,
8627 },
8628 },
8629 .unlock = unlock_regspace2_uniform_64k,
8630 .write = write_82802ab,
8631 .read = read_memmapped,
8632 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008633 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008634 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008635 },
8636
8637 {
8638 .vendor = "Intel",
8639 .name = "82802AC",
8640 .bustype = BUS_FWH,
8641 .manufacture_id = INTEL_ID,
8642 .model_id = INTEL_82802AC,
8643 .total_size = 1024,
8644 .page_size = 64 * 1024,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008645 .tested = TEST_OK_PR,
8646 .probe = probe_82802ab,
8647 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8648 .block_erasers =
8649 {
8650 {
8651 .eraseblocks = { {64 * 1024, 16} },
8652 .block_erase = erase_block_82802ab,
8653 },
8654 },
8655 .unlock = unlock_regspace2_uniform_64k,
8656 .write = write_82802ab,
8657 .read = read_memmapped,
8658 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008659 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008660 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008661 },
8662
8663 {
8664 .vendor = "Macronix",
8665 .name = "MX23L12854",
8666 .bustype = BUS_SPI,
8667 .manufacture_id = MACRONIX_ID,
8668 .model_id = MACRONIX_MX23L12854,
8669 .total_size = 16384,
8670 .page_size = 256,
8671 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8672 .probe = probe_spi_rdid,
8673 .probe_timing = TIMING_ZERO,
8674 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8675 .read = spi_chip_read, /* Fast read (0x0B) supported */
8676 .voltage = {3000, 3600},
8677 },
8678
8679 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008680 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008681 .name = "MX23L1654",
8682 .bustype = BUS_SPI,
8683 .manufacture_id = MACRONIX_ID,
8684 .model_id = MACRONIX_MX23L1654,
8685 .total_size = 2048,
8686 .page_size = 256,
8687 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8688 .probe = probe_spi_rdid,
8689 .probe_timing = TIMING_ZERO,
8690 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8691 .read = spi_chip_read, /* Fast read (0x0B) supported */
8692 .voltage = {3000, 3600},
8693 },
8694
8695 {
8696 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008697 .name = "MX23L3254",
8698 .bustype = BUS_SPI,
8699 .manufacture_id = MACRONIX_ID,
8700 .model_id = MACRONIX_MX23L3254,
8701 .total_size = 4096,
8702 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008703 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008704 .probe = probe_spi_rdid,
8705 .probe_timing = TIMING_ZERO,
8706 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8707 .read = spi_chip_read, /* Fast read (0x0B) supported */
8708 .voltage = {3000, 3600},
8709 },
8710
8711 {
8712 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008713 .name = "MX23L6454",
8714 .bustype = BUS_SPI,
8715 .manufacture_id = MACRONIX_ID,
8716 .model_id = MACRONIX_MX23L6454,
8717 .total_size = 8192,
8718 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008719 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008720 .probe = probe_spi_rdid,
8721 .probe_timing = TIMING_ZERO,
8722 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8723 .read = spi_chip_read, /* Fast read (0x0B) supported */
8724 .voltage = {3000, 3600},
8725 },
8726
8727 {
8728 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008729 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008730 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008731 .manufacture_id = MACRONIX_ID,
8732 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008733 .total_size = 128,
8734 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008735 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008736 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008737 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008739 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008740 .block_erasers =
8741 {
8742 {
8743 .eraseblocks = { {4 * 1024, 32} },
8744 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008745 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008746 .eraseblocks = { {64 * 1024, 2} },
8747 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008748 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008749 .eraseblocks = { {128 * 1024, 1} },
8750 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008751 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008752 .eraseblocks = { {128 * 1024, 1} },
8753 .block_erase = spi_block_erase_c7,
8754 },
8755 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008756 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008757 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008758 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008759 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008760 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008761 },
8762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008763 {
8764 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008765 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008766 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008767 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008768 .model_id = MACRONIX_MX25L12805D,
8769 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008770 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008771 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8772 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008773 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008774 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008775 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008776 .block_erasers =
8777 {
8778 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008779 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008780 .block_erase = spi_block_erase_20,
8781 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008782 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008783 .block_erase = spi_block_erase_d8,
8784 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008785 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008786 .block_erase = spi_block_erase_60,
8787 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008788 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008789 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008790 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008791 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008792 .printlock = spi_prettyprint_status_register_bp3_srwd,
8793 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008794 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008795 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008796 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008797 },
8798
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008799 {
8800 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008801 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008802 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008803 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008804 .model_id = MACRONIX_MX25L12805D,
8805 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008807 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008809 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008811 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008812 .block_erasers =
8813 {
8814 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008815 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008816 .block_erase = spi_block_erase_20,
8817 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008818 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008819 .block_erase = spi_block_erase_52,
8820 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008821 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008822 .block_erase = spi_block_erase_d8,
8823 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008824 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008825 .block_erase = spi_block_erase_60,
8826 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008827 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008828 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008829 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008830 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008831 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8832 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8833 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008834 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008835 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008836 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008837 },
8838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008839 {
8840 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008841 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008842 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008843 .manufacture_id = MACRONIX_ID,
8844 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008845 .total_size = 2048,
8846 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008847 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008848 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008849 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008850 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008851 .block_erasers =
8852 {
8853 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008854 .eraseblocks = { {64 * 1024, 32} },
8855 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008856 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008857 .eraseblocks = { {64 * 1024, 32} },
8858 .block_erase = spi_block_erase_d8,
8859 }, {
8860 .eraseblocks = { {2 * 1024 * 1024, 1} },
8861 .block_erase = spi_block_erase_60,
8862 }, {
8863 .eraseblocks = { {2 * 1024 * 1024, 1} },
8864 .block_erase = spi_block_erase_c7,
8865 },
8866 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008867 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008868 .unlock = spi_disable_blockprotect,
8869 .write = spi_chip_write_256,
8870 .read = spi_chip_read, /* Fast read (0x0B) supported */
8871 .voltage = {2700, 3600},
8872 },
8873
8874 {
8875 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008876 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008877 .bustype = BUS_SPI,
8878 .manufacture_id = MACRONIX_ID,
8879 .model_id = MACRONIX_MX25L1605,
8880 .total_size = 2048,
8881 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008882 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8884 .tested = TEST_OK_PREW,
8885 .probe = probe_spi_rdid,
8886 .probe_timing = TIMING_ZERO,
8887 .block_erasers =
8888 {
8889 {
8890 .eraseblocks = { {4 * 1024, 512} },
8891 .block_erase = spi_block_erase_20,
8892 }, {
8893 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008894 .block_erase = spi_block_erase_52,
8895 }, {
8896 .eraseblocks = { {64 * 1024, 32} },
8897 .block_erase = spi_block_erase_d8,
8898 }, {
8899 .eraseblocks = { {2 * 1024 * 1024, 1} },
8900 .block_erase = spi_block_erase_60,
8901 }, {
8902 .eraseblocks = { {2 * 1024 * 1024, 1} },
8903 .block_erase = spi_block_erase_c7,
8904 },
8905 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008906 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008907 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008908 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008909 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008910 .voltage = {2700, 3600},
8911 },
8912
8913 {
8914 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008915 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008916 .bustype = BUS_SPI,
8917 .manufacture_id = MACRONIX_ID,
8918 .model_id = MACRONIX_MX25L1605,
8919 .total_size = 2048,
8920 .page_size = 256,
8921 .feature_bits = FEATURE_WRSR_WREN,
8922 .tested = TEST_OK_PREW,
8923 .probe = probe_spi_rdid,
8924 .probe_timing = TIMING_ZERO,
8925 .block_erasers =
8926 {
8927 {
8928 .eraseblocks = { {4 * 1024, 512} },
8929 .block_erase = spi_block_erase_20,
8930 }, {
8931 .eraseblocks = { {64 * 1024, 32} },
8932 .block_erase = spi_block_erase_d8,
8933 }, {
8934 .eraseblocks = { {2 * 1024 * 1024, 1} },
8935 .block_erase = spi_block_erase_60,
8936 }, {
8937 .eraseblocks = { {2 * 1024 * 1024, 1} },
8938 .block_erase = spi_block_erase_c7,
8939 },
8940 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008941 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008942 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008943 .write = spi_chip_write_256,
8944 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008946 },
8947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008948 {
8949 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008950 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008951 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008952 .manufacture_id = MACRONIX_ID,
8953 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008954 .total_size = 2048,
8955 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008956 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008958 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008959 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008960 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008961 .block_erasers =
8962 {
8963 {
8964 .eraseblocks = { {4 * 1024, 512} },
8965 .block_erase = spi_block_erase_20,
8966 }, {
8967 .eraseblocks = { {64 * 1024, 32} },
8968 .block_erase = spi_block_erase_d8,
8969 }, {
8970 .eraseblocks = { {2 * 1024 * 1024, 1} },
8971 .block_erase = spi_block_erase_60,
8972 }, {
8973 .eraseblocks = { {2 * 1024 * 1024, 1} },
8974 .block_erase = spi_block_erase_c7,
8975 }
8976 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008977 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008978 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008979 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008981 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008982 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008983
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008984 {
8985 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008986 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008987 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008988 .manufacture_id = MACRONIX_ID,
8989 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008990 .total_size = 2048,
8991 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008992 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008994 .tested = TEST_UNTESTED,
8995 .probe = probe_spi_rdid,
8996 .probe_timing = TIMING_ZERO,
8997 .block_erasers =
8998 {
8999 {
9000 .eraseblocks = { {4 * 1024, 512} },
9001 .block_erase = spi_block_erase_20,
9002 }, {
9003 .eraseblocks = { {64 * 1024, 32} },
9004 .block_erase = spi_block_erase_d8,
9005 }, {
9006 .eraseblocks = { {2 * 1024 * 1024, 1} },
9007 .block_erase = spi_block_erase_60,
9008 }, {
9009 .eraseblocks = { {2 * 1024 * 1024, 1} },
9010 .block_erase = spi_block_erase_c7,
9011 }
9012 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009013 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009014 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009015 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009016 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009017 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00009018 },
9019
9020 {
9021 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009022 .name = "MX25L2005(C)/MX25L2006E",
9023 .bustype = BUS_SPI,
9024 .manufacture_id = MACRONIX_ID,
9025 .model_id = MACRONIX_MX25L2005,
9026 .total_size = 256,
9027 .page_size = 256,
9028 .feature_bits = FEATURE_WRSR_WREN,
9029 .tested = TEST_OK_PREW,
9030 .probe = probe_spi_rdid,
9031 .probe_timing = TIMING_ZERO,
9032 .block_erasers =
9033 {
9034 {
9035 .eraseblocks = { {4 * 1024, 64} },
9036 .block_erase = spi_block_erase_20,
9037 }, {
9038 .eraseblocks = { {64 * 1024, 4} },
9039 .block_erase = spi_block_erase_52,
9040 }, {
9041 .eraseblocks = { {64 * 1024, 4} },
9042 .block_erase = spi_block_erase_d8,
9043 }, {
9044 .eraseblocks = { {256 * 1024, 1} },
9045 .block_erase = spi_block_erase_60,
9046 }, {
9047 .eraseblocks = { {256 * 1024, 1} },
9048 .block_erase = spi_block_erase_c7,
9049 },
9050 },
9051 .printlock = spi_prettyprint_status_register_bp1_srwd,
9052 .unlock = spi_disable_blockprotect,
9053 .write = spi_chip_write_256,
9054 .read = spi_chip_read, /* Fast read (0x0B) supported */
9055 .voltage = {2700, 3600},
9056 },
9057
9058 {
9059 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10009060 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009061 .bustype = BUS_SPI,
9062 .manufacture_id = MACRONIX_ID,
9063 .model_id = MACRONIX_MX25L25635F,
9064 .total_size = 32768,
9065 .page_size = 256,
9066 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
9068 .tested = TEST_OK_PREW,
9069 .probe = probe_spi_rdid,
9070 .probe_timing = TIMING_ZERO,
9071 .block_erasers =
9072 {
9073 {
9074 .eraseblocks = { {4 * 1024, 8192} },
9075 .block_erase = spi_block_erase_21,
9076 }, {
9077 .eraseblocks = { {4 * 1024, 8192} },
9078 .block_erase = spi_block_erase_20,
9079 }, {
9080 .eraseblocks = { {32 * 1024, 1024} },
9081 .block_erase = spi_block_erase_5c,
9082 }, {
9083 .eraseblocks = { {32 * 1024, 1024} },
9084 .block_erase = spi_block_erase_52,
9085 }, {
9086 .eraseblocks = { {64 * 1024, 512} },
9087 .block_erase = spi_block_erase_dc,
9088 }, {
9089 .eraseblocks = { {64 * 1024, 512} },
9090 .block_erase = spi_block_erase_d8,
9091 }, {
9092 .eraseblocks = { {32 * 1024 * 1024, 1} },
9093 .block_erase = spi_block_erase_60,
9094 }, {
9095 .eraseblocks = { {32 * 1024 * 1024, 1} },
9096 .block_erase = spi_block_erase_c7,
9097 }
9098 },
9099 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9100 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9101 .unlock = spi_disable_blockprotect_bp3_srwd,
9102 .write = spi_chip_write_256,
9103 .read = spi_chip_read, /* Fast read (0x0B) supported */
9104 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01009105 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009106 },
9107
9108 {
9109 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00009110 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009112 .manufacture_id = MACRONIX_ID,
9113 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009114 .total_size = 4096,
9115 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00009116 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00009117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009119 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009120 .block_erasers =
9121 {
9122 {
Stefan Tauner226037d2013-03-16 01:22:12 +00009123 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009124 .block_erase = spi_block_erase_20,
9125 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00009126 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009127 .block_erase = spi_block_erase_d8,
9128 }, {
9129 .eraseblocks = { {4 * 1024 * 1024, 1} },
9130 .block_erase = spi_block_erase_60,
9131 }, {
9132 .eraseblocks = { {4 * 1024 * 1024, 1} },
9133 .block_erase = spi_block_erase_c7,
9134 },
9135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009136 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009137 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009138 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009139 .read = spi_chip_read, /* Fast read (0x0B) supported */
9140 .voltage = {2700, 3600},
9141 },
9142
9143 {
9144 .vendor = "Macronix",
9145 .name = "MX25L3205D/MX25L3208D",
9146 .bustype = BUS_SPI,
9147 .manufacture_id = MACRONIX_ID,
9148 .model_id = MACRONIX_MX25L3205,
9149 .total_size = 4096,
9150 .page_size = 256,
9151 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9152 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9153 .tested = TEST_OK_PREW,
9154 .probe = probe_spi_rdid,
9155 .probe_timing = TIMING_ZERO,
9156 .block_erasers =
9157 {
9158 {
9159 .eraseblocks = { {4 * 1024, 1024} },
9160 .block_erase = spi_block_erase_20,
9161 }, {
9162 .eraseblocks = { {64 * 1024, 64} },
9163 .block_erase = spi_block_erase_d8,
9164 }, {
9165 .eraseblocks = { {4 * 1024 * 1024, 1} },
9166 .block_erase = spi_block_erase_60,
9167 }, {
9168 .eraseblocks = { {4 * 1024 * 1024, 1} },
9169 .block_erase = spi_block_erase_c7,
9170 },
9171 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009172 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009173 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009174 .write = spi_chip_write_256,
9175 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
9176 .voltage = {2700, 3600},
9177 },
9178
9179 {
9180 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009181 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00009182 .bustype = BUS_SPI,
9183 .manufacture_id = MACRONIX_ID,
9184 .model_id = MACRONIX_MX25L3205,
9185 .total_size = 4096,
9186 .page_size = 256,
9187 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9189 .tested = TEST_OK_PREW,
9190 .probe = probe_spi_rdid,
9191 .probe_timing = TIMING_ZERO,
9192 .block_erasers =
9193 {
9194 {
9195 .eraseblocks = { {4 * 1024, 1024} },
9196 .block_erase = spi_block_erase_20,
9197 }, {
9198 .eraseblocks = { {64 * 1024, 64} },
9199 .block_erase = spi_block_erase_d8,
9200 }, {
9201 .eraseblocks = { {64 * 1024, 64} },
9202 .block_erase = spi_block_erase_52,
9203 }, {
9204 .eraseblocks = { {4 * 1024 * 1024, 1} },
9205 .block_erase = spi_block_erase_60,
9206 }, {
9207 .eraseblocks = { {4 * 1024 * 1024, 1} },
9208 .block_erase = spi_block_erase_c7,
9209 },
9210 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009211 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009212 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009213 .write = spi_chip_write_256,
9214 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009216 },
9217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009218 {
9219 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009220 .name = "MX25L3235D",
9221 .bustype = BUS_SPI,
9222 .manufacture_id = MACRONIX_ID,
9223 .model_id = MACRONIX_MX25L3235D,
9224 .total_size = 4096,
9225 .page_size = 256,
9226 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
9227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9228 .tested = TEST_UNTESTED,
9229 .probe = probe_spi_rdid,
9230 .probe_timing = TIMING_ZERO,
9231 .block_erasers =
9232 {
9233 {
9234 .eraseblocks = { {4 * 1024, 1024} },
9235 .block_erase = spi_block_erase_20,
9236 }, {
9237 .eraseblocks = { {64 * 1024, 64} },
9238 .block_erase = spi_block_erase_d8,
9239 }, {
9240 .eraseblocks = { {4 * 1024 * 1024, 1} },
9241 .block_erase = spi_block_erase_60,
9242 }, {
9243 .eraseblocks = { {4 * 1024 * 1024, 1} },
9244 .block_erase = spi_block_erase_c7,
9245 }
9246 },
9247 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9248 .unlock = spi_disable_blockprotect_bp3_srwd,
9249 .write = spi_chip_write_256,
9250 .read = spi_chip_read,
9251 .voltage = {2700, 3600},
9252 },
9253
9254 {
9255 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02009256 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009257 .bustype = BUS_SPI,
9258 .manufacture_id = MACRONIX_ID,
9259 .model_id = MACRONIX_MX25L3205,
9260 .total_size = 4096,
9261 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02009262 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009264 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009265 .probe = probe_spi_rdid,
9266 .probe_timing = TIMING_ZERO,
9267 .block_erasers =
9268 {
9269 {
9270 .eraseblocks = { {4 * 1024, 1024} },
9271 .block_erase = spi_block_erase_20,
9272 }, {
9273 .eraseblocks = { {32 * 1024, 128} },
9274 .block_erase = spi_block_erase_52,
9275 }, {
9276 .eraseblocks = { {64 * 1024, 64} },
9277 .block_erase = spi_block_erase_d8,
9278 }, {
9279 .eraseblocks = { {4 * 1024 * 1024, 1} },
9280 .block_erase = spi_block_erase_60,
9281 }, {
9282 .eraseblocks = { {4 * 1024 * 1024, 1} },
9283 .block_erase = spi_block_erase_c7,
9284 },
9285 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009286 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009287 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009288 .write = spi_chip_write_256,
9289 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02009290 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009291 },
9292
9293 {
9294 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009295 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009296 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009297 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009298 .model_id = MACRONIX_MX25L4005,
9299 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009300 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009301 .feature_bits = FEATURE_WRSR_WREN,
9302 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009303 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009304 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009305 .block_erasers =
9306 {
9307 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009308 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009309 .block_erase = spi_block_erase_20,
9310 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009311 .eraseblocks = { {64 * 1024, 8} },
9312 .block_erase = spi_block_erase_52,
9313 }, {
9314 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009315 .block_erase = spi_block_erase_d8,
9316 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009317 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009318 .block_erase = spi_block_erase_60,
9319 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009320 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009321 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009322 },
Sean Nelson54596372010-01-09 05:30:14 +00009323 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009324 .printlock = spi_prettyprint_status_register_bp2_srwd,
9325 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009326 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009327 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009328 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009329 },
9330
9331 {
9332 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009333 .name = "MX25L512(E)/MX25V512(C)",
9334 .bustype = BUS_SPI,
9335 .manufacture_id = MACRONIX_ID,
9336 .model_id = MACRONIX_MX25L512,
9337 .total_size = 64,
9338 .page_size = 256,
9339 /* MX25L512E supports SFDP */
9340 .feature_bits = FEATURE_WRSR_WREN,
9341 .tested = TEST_OK_PREW,
9342 .probe = probe_spi_rdid,
9343 .probe_timing = TIMING_ZERO,
9344 .block_erasers =
9345 {
9346 {
9347 .eraseblocks = { {4 * 1024, 16} },
9348 .block_erase = spi_block_erase_20,
9349 }, {
9350 .eraseblocks = { {64 * 1024, 1} },
9351 .block_erase = spi_block_erase_52,
9352 }, {
9353 .eraseblocks = { {64 * 1024, 1} },
9354 .block_erase = spi_block_erase_d8,
9355 }, {
9356 .eraseblocks = { {64 * 1024, 1} },
9357 .block_erase = spi_block_erase_60,
9358 }, {
9359 .eraseblocks = { {64 * 1024, 1} },
9360 .block_erase = spi_block_erase_c7,
9361 },
9362 },
9363 .printlock = spi_prettyprint_status_register_bp1_srwd,
9364 .unlock = spi_disable_blockprotect,
9365 .write = spi_chip_write_256,
9366 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
9367 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9368 },
9369
9370 {
9371 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009372 .name = "MX25L5121E",
9373 .bustype = BUS_SPI,
9374 .manufacture_id = MACRONIX_ID,
9375 .model_id = MACRONIX_MX25L5121E,
9376 .total_size = 64,
9377 .page_size = 32,
9378 .feature_bits = FEATURE_WRSR_WREN,
9379 .tested = TEST_OK_PREW,
9380 .probe = probe_spi_rdid,
9381 .probe_timing = TIMING_ZERO,
9382 .block_erasers =
9383 {
9384 {
9385 .eraseblocks = { {4 * 1024, 16} },
9386 .block_erase = spi_block_erase_20,
9387 }, {
9388 .eraseblocks = { {64 * 1024, 1} },
9389 .block_erase = spi_block_erase_52,
9390 }, {
9391 .eraseblocks = { {64 * 1024, 1} },
9392 .block_erase = spi_block_erase_d8,
9393 }, {
9394 .eraseblocks = { {64 * 1024, 1} },
9395 .block_erase = spi_block_erase_60,
9396 }, {
9397 .eraseblocks = { {64 * 1024, 1} },
9398 .block_erase = spi_block_erase_c7,
9399 },
9400 },
9401 .printlock = spi_prettyprint_status_register_bp1_srwd,
9402 .unlock = spi_disable_blockprotect,
9403 .write = spi_chip_write_256,
9404 .read = spi_chip_read, /* Fast read (0x0B) supported */
9405 .voltage = {2700, 3600},
9406 },
9407
9408 {
9409 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009410 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009411 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009412 .manufacture_id = MACRONIX_ID,
9413 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009414 .total_size = 8192,
9415 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009416 /* Has an additional 512B EEPROM sector */
9417 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009420 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009421 .block_erasers =
9422 {
9423 {
9424 .eraseblocks = { {64 * 1024, 128} },
9425 .block_erase = spi_block_erase_20,
9426 }, {
9427 .eraseblocks = { {64 * 1024, 128} },
9428 .block_erase = spi_block_erase_d8,
9429 }, {
9430 .eraseblocks = { {8 * 1024 * 1024, 1} },
9431 .block_erase = spi_block_erase_60,
9432 }, {
9433 .eraseblocks = { {8 * 1024 * 1024, 1} },
9434 .block_erase = spi_block_erase_c7,
9435 }
9436 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009437 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009438 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009439 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009440 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009441 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009442 },
9443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009444 {
9445 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009446 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009447 .bustype = BUS_SPI,
9448 .manufacture_id = MACRONIX_ID,
9449 .model_id = MACRONIX_MX25L6405,
9450 .total_size = 8192,
9451 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009452 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9454 .tested = TEST_OK_PREW,
9455 .probe = probe_spi_rdid,
9456 .probe_timing = TIMING_ZERO,
9457 .block_erasers =
9458 {
9459 {
9460 .eraseblocks = { {4 * 1024, 2048} },
9461 .block_erase = spi_block_erase_20,
9462 }, {
9463 .eraseblocks = { {64 * 1024, 128} },
9464 .block_erase = spi_block_erase_d8,
9465 }, {
9466 .eraseblocks = { {8 * 1024 * 1024, 1} },
9467 .block_erase = spi_block_erase_60,
9468 }, {
9469 .eraseblocks = { {8 * 1024 * 1024, 1} },
9470 .block_erase = spi_block_erase_c7,
9471 }
9472 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009473 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009474 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009475 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009476 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009477 .voltage = {2700, 3600},
9478 },
9479
9480 {
9481 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009482 .name = "MX25L6406E/MX25L6408E",
9483 .bustype = BUS_SPI,
9484 .manufacture_id = MACRONIX_ID,
9485 .model_id = MACRONIX_MX25L6405,
9486 .total_size = 8192,
9487 .page_size = 256,
9488 /* MX25L6406E supports SFDP */
9489 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9491 .tested = TEST_OK_PREW,
9492 .probe = probe_spi_rdid,
9493 .probe_timing = TIMING_ZERO,
9494 .block_erasers =
9495 {
9496 {
9497 .eraseblocks = { {4 * 1024, 2048} },
9498 .block_erase = spi_block_erase_20,
9499 }, {
9500 .eraseblocks = { {64 * 1024, 128} },
9501 .block_erase = spi_block_erase_52,
9502 }, {
9503 .eraseblocks = { {64 * 1024, 128} },
9504 .block_erase = spi_block_erase_d8,
9505 }, {
9506 .eraseblocks = { {8 * 1024 * 1024, 1} },
9507 .block_erase = spi_block_erase_60,
9508 }, {
9509 .eraseblocks = { {8 * 1024 * 1024, 1} },
9510 .block_erase = spi_block_erase_c7,
9511 }
9512 },
9513 .printlock = spi_prettyprint_status_register_bp3_srwd,
9514 .unlock = spi_disable_blockprotect_bp3_srwd,
9515 .write = spi_chip_write_256,
9516 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9517 .voltage = {2700, 3600},
9518 },
9519
9520 {
9521 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009522 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009523 .bustype = BUS_SPI,
9524 .manufacture_id = MACRONIX_ID,
9525 .model_id = MACRONIX_MX25L6405,
9526 .total_size = 8192,
9527 .page_size = 256,
9528 /* supports SFDP */
9529 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9531 .tested = TEST_OK_PREW,
9532 .probe = probe_spi_rdid,
9533 .probe_timing = TIMING_ZERO,
9534 .block_erasers =
9535 {
9536 {
9537 .eraseblocks = { {4 * 1024, 2048} },
9538 .block_erase = spi_block_erase_20,
9539 }, {
9540 .eraseblocks = { {32 * 1024, 256} },
9541 .block_erase = spi_block_erase_52,
9542 }, {
9543 .eraseblocks = { {64 * 1024, 128} },
9544 .block_erase = spi_block_erase_d8,
9545 }, {
9546 .eraseblocks = { {8 * 1024 * 1024, 1} },
9547 .block_erase = spi_block_erase_60,
9548 }, {
9549 .eraseblocks = { {8 * 1024 * 1024, 1} },
9550 .block_erase = spi_block_erase_c7,
9551 }
9552 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009553 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009554 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009555 .write = spi_chip_write_256,
9556 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9557 .voltage = {2700, 3600},
9558 },
9559
9560 {
9561 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009562 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009563 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009564 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009565 .model_id = MACRONIX_MX25L6495F,
9566 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009567 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009568 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009569 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009570 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009572 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009573 .block_erasers =
9574 {
9575 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009576 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009577 .block_erase = spi_block_erase_20,
9578 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009579 .eraseblocks = { {32 * 1024, 256} },
9580 .block_erase = spi_block_erase_52,
9581 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309582 .eraseblocks = { {64 * 1024, 128} },
9583 .block_erase = spi_block_erase_d8,
9584 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009585 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009586 .block_erase = spi_block_erase_60,
9587 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009588 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009589 .block_erase = spi_block_erase_c7,
9590 }
9591 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009592 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009593 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009594 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009595 .voltage = {2700, 3600},
9596 },
9597
9598 {
9599 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009600 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009601 .bustype = BUS_SPI,
9602 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009603 .model_id = MACRONIX_MX25L8005,
9604 .total_size = 1024,
9605 .page_size = 256,
9606 /* MX25L8006E, MX25L8008E support SFDP */
9607 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9608 .feature_bits = FEATURE_WRSR_WREN,
9609 .tested = TEST_OK_PREW,
9610 .probe = probe_spi_rdid,
9611 .probe_timing = TIMING_ZERO,
9612 .block_erasers =
9613 {
9614 {
9615 .eraseblocks = { {4 * 1024, 256} },
9616 .block_erase = spi_block_erase_20,
9617 }, {
9618 .eraseblocks = { {64 * 1024, 16} },
9619 .block_erase = spi_block_erase_52,
9620 }, {
9621 .eraseblocks = { {64 * 1024, 16} },
9622 .block_erase = spi_block_erase_d8,
9623 }, {
9624 .eraseblocks = { {1024 * 1024, 1} },
9625 .block_erase = spi_block_erase_60,
9626 }, {
9627 .eraseblocks = { {1024 * 1024, 1} },
9628 .block_erase = spi_block_erase_c7,
9629 },
9630 },
9631 .printlock = spi_prettyprint_status_register_bp2_srwd,
9632 .unlock = spi_disable_blockprotect,
9633 .write = spi_chip_write_256,
9634 .read = spi_chip_read, /* Fast read (0x0B) supported */
9635 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9636 },
9637
9638 {
9639 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009640 .name = "MX25R3235F",
9641 .bustype = BUS_SPI,
9642 .manufacture_id = MACRONIX_ID,
9643 .model_id = MACRONIX_MX25R3235F,
9644 .total_size = 4096,
9645 .page_size = 256,
9646 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9648 .tested = TEST_OK_PREW,
9649 .probe = probe_spi_rdid,
9650 .probe_timing = TIMING_ZERO,
9651 .block_erasers =
9652 {
9653 {
9654 .eraseblocks = { {4 * 1024, 1024} },
9655 .block_erase = spi_block_erase_20,
9656 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009657 .eraseblocks = { {32 * 1024, 128} },
9658 .block_erase = spi_block_erase_52,
9659 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309660 .eraseblocks = { {64 * 1024, 64} },
9661 .block_erase = spi_block_erase_d8,
9662 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009663 .eraseblocks = { {4 * 1024 * 1024, 1} },
9664 .block_erase = spi_block_erase_60,
9665 }, {
9666 .eraseblocks = { {4 * 1024 * 1024, 1} },
9667 .block_erase = spi_block_erase_c7,
9668 }
9669 },
9670 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9671 .unlock = spi_disable_blockprotect_bp3_srwd,
9672 .write = spi_chip_write_256,
9673 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9674 .voltage = {1650, 3600},
9675 },
9676
9677 {
9678 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009679 .name = "MX25R6435F",
9680 .bustype = BUS_SPI,
9681 .manufacture_id = MACRONIX_ID,
9682 .model_id = MACRONIX_MX25R6435F,
9683 .total_size = 8192,
9684 .page_size = 256,
9685 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9686 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9687 .tested = TEST_OK_PREW,
9688 .probe = probe_spi_rdid,
9689 .probe_timing = TIMING_ZERO,
9690 .block_erasers =
9691 {
9692 {
9693 .eraseblocks = { {4 * 1024, 2048} },
9694 .block_erase = spi_block_erase_20,
9695 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009696 .eraseblocks = { {32 * 1024, 256} },
9697 .block_erase = spi_block_erase_52,
9698 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309699 .eraseblocks = { {64 * 1024, 128} },
9700 .block_erase = spi_block_erase_d8,
9701 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009702 .eraseblocks = { {8 * 1024 * 1024, 1} },
9703 .block_erase = spi_block_erase_60,
9704 }, {
9705 .eraseblocks = { {8 * 1024 * 1024, 1} },
9706 .block_erase = spi_block_erase_c7,
9707 }
9708 },
9709 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9710 .unlock = spi_disable_blockprotect_bp3_srwd,
9711 .write = spi_chip_write_256,
9712 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9713 .voltage = {1650, 3600},
9714 },
9715
9716 {
9717 .vendor = "Macronix",
9718 .name = "MX25U12835F",
9719 .bustype = BUS_SPI,
9720 .manufacture_id = MACRONIX_ID,
9721 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009722 .total_size = 16384,
9723 .page_size = 256,
9724 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_35,
9726 .dummy_cycles =
9727 {
9728 /* 133MHz version has configuration register
9729 bit to toggle 8 dummy cycles for QIO, defaults: */
9730 .qpi_fast_read = 4,
9731 .qpi_fast_read_qio = 6,
9732 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009733 .tested = TEST_OK_PREW,
9734 .probe = probe_spi_rdid,
9735 .probe_timing = TIMING_ZERO,
9736 .block_erasers =
9737 {
9738 {
9739 .eraseblocks = { {4 * 1024, 4096} },
9740 .block_erase = spi_block_erase_20,
9741 }, {
9742 .eraseblocks = { {32 * 1024, 512} },
9743 .block_erase = spi_block_erase_52,
9744 }, {
9745 .eraseblocks = { {64 * 1024, 256} },
9746 .block_erase = spi_block_erase_d8,
9747 }, {
9748 .eraseblocks = { {16 * 1024 * 1024, 1} },
9749 .block_erase = spi_block_erase_60,
9750 }, {
9751 .eraseblocks = { {16 * 1024 * 1024, 1} },
9752 .block_erase = spi_block_erase_c7,
9753 }
9754 },
Angel Ponsf112e242018-09-30 20:14:17 +02009755 /* TODO: security register */
9756 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9757 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009758 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009759 .read = spi_chip_read,
Angel Ponsf112e242018-09-30 20:14:17 +02009760 .voltage = {1650, 2000},
9761 },
9762
9763 {
9764 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009765 .name = "MX25U1635E",
9766 .bustype = BUS_SPI,
9767 .manufacture_id = MACRONIX_ID,
9768 .model_id = MACRONIX_MX25U1635E,
9769 .total_size = 2048,
9770 .page_size = 256,
9771 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009772 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9773 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9774 .dummy_cycles =
9775 {
9776 .qpi_fast_read = 4,
9777 .qpi_fast_read_qio = 6,
9778 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009779 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009780 .probe = probe_spi_rdid,
9781 .probe_timing = TIMING_ZERO,
9782 .block_erasers =
9783 {
9784 {
9785 .eraseblocks = { {4 * 1024, 512} },
9786 .block_erase = spi_block_erase_20,
9787 }, {
9788 .eraseblocks = { {32 * 1024, 64} },
9789 .block_erase = spi_block_erase_52,
9790 }, {
9791 .eraseblocks = { {64 * 1024, 32} },
9792 .block_erase = spi_block_erase_d8,
9793 }, {
9794 .eraseblocks = { {2 * 1024 * 1024, 1} },
9795 .block_erase = spi_block_erase_60,
9796 }, {
9797 .eraseblocks = { {2 * 1024 * 1024, 1} },
9798 .block_erase = spi_block_erase_c7,
9799 }
9800 },
9801 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009802 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009803 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009804 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009805 .read = spi_chip_read,
Vincent Palatinf800f552013-03-15 02:03:16 +00009806 .voltage = {1650, 2000},
9807 },
9808
9809 {
9810 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009811 .name = "MX25U25635F",
9812 .bustype = BUS_SPI,
9813 .manufacture_id = MACRONIX_ID,
9814 .model_id = MACRONIX_MX25U25635F,
9815 .total_size = 32768,
9816 .page_size = 256,
9817 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009818 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9819 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9820 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009821 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009822 .probe = probe_spi_rdid,
9823 .probe_timing = TIMING_ZERO,
9824 .block_erasers =
9825 {
9826 {
9827 .eraseblocks = { {4 * 1024, 8192} },
9828 .block_erase = spi_block_erase_21,
9829 }, {
9830 .eraseblocks = { {4 * 1024, 8192} },
9831 .block_erase = spi_block_erase_20,
9832 }, {
9833 .eraseblocks = { {32 * 1024, 1024} },
9834 .block_erase = spi_block_erase_5c,
9835 }, {
9836 .eraseblocks = { {32 * 1024, 1024} },
9837 .block_erase = spi_block_erase_52,
9838 }, {
9839 .eraseblocks = { {64 * 1024, 512} },
9840 .block_erase = spi_block_erase_dc,
9841 }, {
9842 .eraseblocks = { {64 * 1024, 512} },
9843 .block_erase = spi_block_erase_d8,
9844 }, {
9845 .eraseblocks = { {32 * 1024 * 1024, 1} },
9846 .block_erase = spi_block_erase_60,
9847 }, {
9848 .eraseblocks = { {32 * 1024 * 1024, 1} },
9849 .block_erase = spi_block_erase_c7,
9850 }
9851 },
9852 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +01009853 .reg_bits =
9854 {
9855 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9856 },
David Tomaschikf75d8c52019-06-20 09:49:01 -07009857 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9858 .unlock = spi_disable_blockprotect_bp3_srwd,
9859 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009860 .read = spi_chip_read,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009861 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009862 .prepare_access = spi_prepare_4ba,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009863 },
9864
9865 {
9866 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009867 .name = "MX25U3235E/F",
9868 .bustype = BUS_SPI,
9869 .manufacture_id = MACRONIX_ID,
9870 .model_id = MACRONIX_MX25U3235E,
9871 .total_size = 4096,
9872 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009873 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009874 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009875 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9876 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9877 .dummy_cycles =
9878 {
9879 .qpi_fast_read = 4,
9880 .qpi_fast_read_qio = 6,
9881 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009882 .tested = TEST_OK_PREW,
9883 .probe = probe_spi_rdid,
9884 .probe_timing = TIMING_ZERO,
9885 .block_erasers =
9886 {
9887 {
9888 .eraseblocks = { {4 * 1024, 1024} },
9889 .block_erase = spi_block_erase_20,
9890 }, {
9891 .eraseblocks = { {32 * 1024, 128} },
9892 .block_erase = spi_block_erase_52,
9893 }, {
9894 .eraseblocks = { {64 * 1024, 64} },
9895 .block_erase = spi_block_erase_d8,
9896 }, {
9897 .eraseblocks = { {4 * 1024 * 1024, 1} },
9898 .block_erase = spi_block_erase_60,
9899 }, {
9900 .eraseblocks = { {4 * 1024 * 1024, 1} },
9901 .block_erase = spi_block_erase_c7,
9902 }
9903 },
9904 /* TODO: security register */
9905 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9906 .unlock = spi_disable_blockprotect_bp3_srwd,
9907 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009908 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009909 .voltage = {1650, 2000},
9910 },
9911
9912 {
9913 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009914 .name = "MX25U51245G",
9915 .bustype = BUS_SPI,
9916 .manufacture_id = MACRONIX_ID,
9917 .model_id = MACRONIX_MX25U51245G,
9918 .total_size = 65536,
9919 .page_size = 256,
9920 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9922 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9923 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009924 .tested = TEST_OK_PREW,
9925 .probe = probe_spi_rdid,
9926 .probe_timing = TIMING_ZERO,
9927 .block_erasers =
9928 {
9929 {
9930 .eraseblocks = { {4 * 1024, 16384} },
9931 .block_erase = spi_block_erase_21,
9932 }, {
9933 .eraseblocks = { {4 * 1024, 16384} },
9934 .block_erase = spi_block_erase_20,
9935 }, {
9936 .eraseblocks = { {32 * 1024, 2048} },
9937 .block_erase = spi_block_erase_5c,
9938 }, {
9939 .eraseblocks = { {32 * 1024, 2048} },
9940 .block_erase = spi_block_erase_52,
9941 }, {
9942 .eraseblocks = { {64 * 1024, 1024} },
9943 .block_erase = spi_block_erase_dc,
9944 }, {
9945 .eraseblocks = { {64 * 1024, 1024} },
9946 .block_erase = spi_block_erase_d8,
9947 }, {
9948 .eraseblocks = { {64 * 1024 * 1024, 1} },
9949 .block_erase = spi_block_erase_60,
9950 }, {
9951 .eraseblocks = { {64 * 1024 * 1024, 1} },
9952 .block_erase = spi_block_erase_c7,
9953 }
9954 },
9955 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +01009956 .reg_bits =
9957 {
9958 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9959 },
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009960 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9961 .unlock = spi_disable_blockprotect_bp3_srwd,
9962 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009963 .read = spi_chip_read,
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009964 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009965 .prepare_access = spi_prepare_4ba,
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009966 },
9967
9968 {
9969 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009970 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009971 .bustype = BUS_SPI,
9972 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009973 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009974 .total_size = 8192,
9975 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009976 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009977 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9979 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9980 .dummy_cycles =
9981 {
9982 .qpi_fast_read = 4,
9983 .qpi_fast_read_qio = 6,
9984 },
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009985 .tested = TEST_OK_PREW,
9986 .probe = probe_spi_rdid,
9987 .probe_timing = TIMING_ZERO,
9988 .block_erasers =
9989 {
9990 {
9991 .eraseblocks = { {4 * 1024, 2048} },
9992 .block_erase = spi_block_erase_20,
9993 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009994 .eraseblocks = { {32 * 1024, 256} },
9995 .block_erase = spi_block_erase_52,
9996 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009997 .eraseblocks = { {64 * 1024, 128} },
9998 .block_erase = spi_block_erase_d8,
9999 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010000 .eraseblocks = { {8 * 1024 * 1024, 1} },
10001 .block_erase = spi_block_erase_60,
10002 }, {
10003 .eraseblocks = { {8 * 1024 * 1024, 1} },
10004 .block_erase = spi_block_erase_c7,
10005 }
10006 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010007 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010008 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10009 .unlock = spi_disable_blockprotect_bp3_srwd,
10010 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010011 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010012 .voltage = {1650, 2000},
10013 },
10014
10015 {
10016 .vendor = "Macronix",
10017 .name = "MX25U8032E",
10018 .bustype = BUS_SPI,
10019 .manufacture_id = MACRONIX_ID,
10020 .model_id = MACRONIX_MX25U8032E,
10021 .total_size = 1024,
10022 .page_size = 256,
10023 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10024 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10025 .tested = TEST_OK_PREW,
10026 .probe = probe_spi_rdid,
10027 .probe_timing = TIMING_ZERO,
10028 .block_erasers =
10029 {
10030 {
10031 .eraseblocks = { {4 * 1024, 256} },
10032 .block_erase = spi_block_erase_20,
10033 }, {
10034 .eraseblocks = { {32 * 1024, 32} },
10035 .block_erase = spi_block_erase_52,
10036 }, {
10037 .eraseblocks = { {64 * 1024, 16} },
10038 .block_erase = spi_block_erase_d8,
10039 }, {
10040 .eraseblocks = { {1024 * 1024, 1} },
10041 .block_erase = spi_block_erase_60,
10042 }, {
10043 .eraseblocks = { {1024 * 1024, 1} },
10044 .block_erase = spi_block_erase_c7,
10045 }
10046 },
10047 /* TODO: security register */
10048 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10049 .unlock = spi_disable_blockprotect_bp3_srwd,
10050 .write = spi_chip_write_256,
10051 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10052 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010053 },
10054
10055 {
10056 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +000010057 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010058 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010059 .manufacture_id = MACRONIX_ID,
10060 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010061 .total_size = 128,
10062 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010063 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10064 .tested = TEST_UNTESTED,
10065 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010066 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010067 .block_erasers =
10068 {
10069 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010070 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010071 {8 * 1024, 1},
10072 {4 * 1024, 2},
10073 {8 * 1024, 2},
10074 {32 * 1024, 1},
10075 {64 * 1024, 1},
10076 },
Sean Nelson35727f72010-01-28 23:55:12 +000010077 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010078 }, {
10079 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010080 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010081 }
10082 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010083 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010084 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010085 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010086 .prepare_access = prepare_memory_access,
10087 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010088 },
10089
10090 {
10091 .vendor = "Macronix",
10092 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010093 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010094 .manufacture_id = MACRONIX_ID,
10095 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010096 .total_size = 128,
10097 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010098 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +000010099 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010100 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010101 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010102 .block_erasers =
10103 {
10104 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010105 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010106 {64 * 1024, 1},
10107 {32 * 1024, 1},
10108 {8 * 1024, 2},
10109 {4 * 1024, 2},
10110 {8 * 1024, 1},
10111 },
Sean Nelson35727f72010-01-28 23:55:12 +000010112 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010113 }, {
10114 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010115 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010116 }
10117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010118 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010120 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010121 .prepare_access = prepare_memory_access,
10122 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010123 },
10124
10125 {
10126 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010127 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010128 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010129 .manufacture_id = MACRONIX_ID,
10130 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010131 .total_size = 256,
10132 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010133 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010134 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010135 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010136 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010137 .block_erasers =
10138 {
10139 {
10140 .eraseblocks = {
10141 {16 * 1024, 1},
10142 {8 * 1024, 2},
10143 {32 * 1024, 1},
10144 {64 * 1024, 3},
10145 },
Sean Nelson35727f72010-01-28 23:55:12 +000010146 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010147 }, {
10148 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010149 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010150 },
10151 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010152 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010154 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010155 .prepare_access = prepare_memory_access,
10156 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010157 },
10158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010159 {
10160 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010161 .name = "MX29F002(N)T",
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_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010165 .total_size = 256,
10166 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010167 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010168 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010169 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010170 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010171 .block_erasers =
10172 {
10173 {
10174 .eraseblocks = {
10175 {64 * 1024, 3},
10176 {32 * 1024, 1},
10177 {8 * 1024, 2},
10178 {16 * 1024, 1},
10179 },
Sean Nelson35727f72010-01-28 23:55:12 +000010180 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010181 }, {
10182 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010183 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010184 },
10185 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010186 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010188 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010189 .prepare_access = prepare_memory_access,
10190 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010191 },
10192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010193 {
10194 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +000010195 .name = "MX29F022(N)B",
10196 .bustype = BUS_PARALLEL,
10197 .manufacture_id = MACRONIX_ID,
10198 .model_id = MACRONIX_MX29F022B,
10199 .total_size = 256,
10200 .page_size = 0, /* unused */
10201 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10202 .tested = TEST_UNTESTED,
10203 .probe = probe_jedec,
10204 .probe_timing = TIMING_ZERO,
10205 .block_erasers =
10206 {
10207 {
10208 .eraseblocks = {
10209 {16 * 1024, 1},
10210 {8 * 1024, 2},
10211 {32 * 1024, 1},
10212 {64 * 1024, 3},
10213 },
10214 .block_erase = erase_sector_jedec,
10215 }, {
10216 .eraseblocks = { {256 * 1024, 1} },
10217 .block_erase = erase_chip_block_jedec,
10218 }
10219 },
10220 .write = write_jedec_1,
10221 .read = read_memmapped,
10222 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010223 .prepare_access = prepare_memory_access,
10224 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010225 },
10226
10227 {
10228 .vendor = "Macronix",
10229 .name = "MX29F022(N)T",
10230 .bustype = BUS_PARALLEL,
10231 .manufacture_id = MACRONIX_ID,
10232 .model_id = MACRONIX_MX29F022T,
10233 .total_size = 256,
10234 .page_size = 0, /* unused */
10235 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10236 .tested = TEST_OK_PREW,
10237 .probe = probe_jedec,
10238 .probe_timing = TIMING_ZERO,
10239 .block_erasers =
10240 {
10241 {
10242 .eraseblocks = {
10243 {64 * 1024, 3},
10244 {32 * 1024, 1},
10245 {8 * 1024, 2},
10246 {16 * 1024, 1},
10247 },
10248 .block_erase = erase_sector_jedec,
10249 }, {
10250 .eraseblocks = { {256 * 1024, 1} },
10251 .block_erase = erase_chip_block_jedec,
10252 }
10253 },
10254 .write = write_jedec_1,
10255 .read = read_memmapped,
10256 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010257 .prepare_access = prepare_memory_access,
10258 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010259 },
10260
10261 {
10262 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +000010263 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010264 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +000010265 .manufacture_id = MACRONIX_ID,
10266 .model_id = MACRONIX_MX29F040,
10267 .total_size = 512,
10268 .page_size = 64 * 1024,
10269 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10270 .tested = TEST_UNTESTED,
10271 .probe = probe_jedec,
10272 .probe_timing = TIMING_ZERO,
10273 .block_erasers =
10274 {
10275 {
10276 .eraseblocks = { {64 * 1024, 8} },
10277 .block_erase = erase_sector_jedec,
10278 }, {
10279 .eraseblocks = { {512 * 1024, 1} },
10280 .block_erase = erase_chip_block_jedec,
10281 },
10282 },
10283 .write = write_jedec_1,
10284 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010285 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010286 .prepare_access = prepare_memory_access,
10287 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +000010288 },
10289
10290 {
10291 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010292 .name = "MX29GL128F",
10293 .bustype = BUS_PARALLEL,
10294 .manufacture_id = MACRONIX_ID,
10295 .model_id = MACRONIX_MX29GL128F,
10296 .total_size = 16384,
10297 .page_size = 128 * 1024, /* actual page size is 16 */
10298 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10299 .tested = TEST_UNTESTED,
10300 .probe = probe_jedec_29gl,
10301 .probe_timing = TIMING_ZERO,
10302 .block_erasers =
10303 {
10304 {
10305 .eraseblocks = { {128 * 1024, 128} },
10306 .block_erase = erase_sector_jedec,
10307 }, {
10308 .eraseblocks = { {16 * 1024 * 1024, 1} },
10309 .block_erase = erase_chip_block_jedec,
10310 },
10311 },
10312 .write = write_jedec_1,
10313 .read = read_memmapped,
10314 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010315 .prepare_access = prepare_memory_access,
10316 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010317 },
10318
10319 {
10320 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010321 .name = "MX29GL320EB",
10322 .bustype = BUS_PARALLEL,
10323 .manufacture_id = MACRONIX_ID,
10324 .model_id = MACRONIX_MX29GL320EB,
10325 .total_size = 4096,
10326 .page_size = 128 * 1024, /* actual page size is 16 */
10327 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10328 .tested = TEST_UNTESTED,
10329 .probe = probe_jedec_29gl,
10330 .probe_timing = TIMING_ZERO,
10331 .block_erasers =
10332 {
10333 {
10334 .eraseblocks = {
10335 {8 * 1024, 8},
10336 {64 * 1024, 63},
10337 },
10338 .block_erase = erase_sector_jedec,
10339 }, {
10340 .eraseblocks = { {4 * 1024 * 1024, 1} },
10341 .block_erase = erase_chip_block_jedec,
10342 },
10343 },
10344 .write = write_jedec_1,
10345 .read = read_memmapped,
10346 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010347 .prepare_access = prepare_memory_access,
10348 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010349 },
10350
10351 {
10352 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010353 .name = "MX29GL320EH/L",
10354 .bustype = BUS_PARALLEL,
10355 .manufacture_id = MACRONIX_ID,
10356 .model_id = MACRONIX_MX29GL320EHL,
10357 .total_size = 4096,
10358 .page_size = 128 * 1024, /* actual page size is 16 */
10359 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10360 .tested = TEST_UNTESTED,
10361 .probe = probe_jedec_29gl,
10362 .probe_timing = TIMING_ZERO,
10363 .block_erasers =
10364 {
10365 {
10366 .eraseblocks = { {64 * 1024, 64} },
10367 .block_erase = erase_sector_jedec,
10368 }, {
10369 .eraseblocks = { {4 * 1024 * 1024, 1} },
10370 .block_erase = erase_chip_block_jedec,
10371 },
10372 },
10373 .write = write_jedec_1,
10374 .read = read_memmapped,
10375 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010376 .prepare_access = prepare_memory_access,
10377 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010378 },
10379
10380 {
10381 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010382 .name = "MX29GL320ET",
10383 .bustype = BUS_PARALLEL,
10384 .manufacture_id = MACRONIX_ID,
10385 .model_id = MACRONIX_MX29GL320ET,
10386 .total_size = 4096,
10387 .page_size = 128 * 1024, /* actual page size is 16 */
10388 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10389 .tested = TEST_UNTESTED,
10390 .probe = probe_jedec_29gl,
10391 .probe_timing = TIMING_ZERO,
10392 .block_erasers =
10393 {
10394 {
10395 .eraseblocks = {
10396 {64 * 1024, 63},
10397 {8 * 1024, 8},
10398 },
10399 .block_erase = erase_sector_jedec,
10400 }, {
10401 .eraseblocks = { {4 * 1024 * 1024, 1} },
10402 .block_erase = erase_chip_block_jedec,
10403 },
10404 },
10405 .write = write_jedec_1,
10406 .read = read_memmapped,
10407 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010408 .prepare_access = prepare_memory_access,
10409 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010410 },
10411
10412 {
10413 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010414 .name = "MX29GL640EB",
10415 .bustype = BUS_PARALLEL,
10416 .manufacture_id = MACRONIX_ID,
10417 .model_id = MACRONIX_MX29GL640EB,
10418 .total_size = 8192,
10419 .page_size = 128 * 1024, /* actual page size is 16 */
10420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10421 .tested = TEST_UNTESTED,
10422 .probe = probe_jedec_29gl,
10423 .probe_timing = TIMING_ZERO,
10424 .block_erasers =
10425 {
10426 {
10427 .eraseblocks = {
10428 {8 * 1024, 8},
10429 {64 * 1024, 127},
10430 },
10431 .block_erase = erase_sector_jedec,
10432 }, {
10433 .eraseblocks = { {8 * 1024 * 1024, 1} },
10434 .block_erase = erase_chip_block_jedec,
10435 },
10436 },
10437 .write = write_jedec_1,
10438 .read = read_memmapped,
10439 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010440 .prepare_access = prepare_memory_access,
10441 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010442 },
10443
10444 {
10445 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010446 .name = "MX29GL640EH/L",
10447 .bustype = BUS_PARALLEL,
10448 .manufacture_id = MACRONIX_ID,
10449 .model_id = MACRONIX_MX29GL640EHL,
10450 .total_size = 8192,
10451 .page_size = 128 * 1024, /* actual page size is 16 */
10452 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10453 .tested = TEST_UNTESTED,
10454 .probe = probe_jedec_29gl,
10455 .probe_timing = TIMING_ZERO,
10456 .block_erasers =
10457 {
10458 {
10459 .eraseblocks = { {64 * 1024, 128} },
10460 .block_erase = erase_sector_jedec,
10461 }, {
10462 .eraseblocks = { {8 * 1024 * 1024, 1} },
10463 .block_erase = erase_chip_block_jedec,
10464 },
10465 },
10466 .write = write_jedec_1,
10467 .read = read_memmapped,
10468 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010469 .prepare_access = prepare_memory_access,
10470 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010471 },
10472
10473 {
10474 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010475 .name = "MX29GL640ET",
10476 .bustype = BUS_PARALLEL,
10477 .manufacture_id = MACRONIX_ID,
10478 .model_id = MACRONIX_MX29GL640ET,
10479 .total_size = 8192,
10480 .page_size = 128 * 1024, /* actual page size is 16 */
10481 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10482 .tested = TEST_UNTESTED,
10483 .probe = probe_jedec_29gl,
10484 .probe_timing = TIMING_ZERO,
10485 .block_erasers =
10486 {
10487 {
10488 .eraseblocks = {
10489 {64 * 1024, 127},
10490 {8 * 1024, 8},
10491 },
10492 .block_erase = erase_sector_jedec,
10493 }, {
10494 .eraseblocks = { {8 * 1024 * 1024, 1} },
10495 .block_erase = erase_chip_block_jedec,
10496 },
10497 },
10498 .write = write_jedec_1,
10499 .read = read_memmapped,
10500 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010501 .prepare_access = prepare_memory_access,
10502 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010503 },
10504
10505 {
10506 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010507 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010508 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010509 .manufacture_id = MACRONIX_ID,
10510 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010511 .total_size = 512,
10512 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010513 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10514 .tested = TEST_UNTESTED,
10515 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010516 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010517 .block_erasers =
10518 {
10519 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010520 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010521 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010522 }, {
10523 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010524 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010525 },
10526 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010527 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010528 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010529 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010530 .prepare_access = prepare_memory_access,
10531 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010532 },
10533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010534 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010535 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010536 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010537 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010538 .manufacture_id = MACRONIX_ID,
10539 .model_id = MACRONIX_MX66L51235F,
10540 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010541 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010542 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10543 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010544 .tested = TEST_OK_PREW,
10545 .probe = probe_spi_rdid,
10546 .probe_timing = TIMING_ZERO,
10547 .block_erasers =
10548 {
10549 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010550 .eraseblocks = { {4 * 1024, 16384} },
10551 .block_erase = spi_block_erase_21,
10552 }, {
10553 .eraseblocks = { {4 * 1024, 16384} },
10554 .block_erase = spi_block_erase_20,
10555 }, {
10556 .eraseblocks = { {32 * 1024, 2048} },
10557 .block_erase = spi_block_erase_5c,
10558 }, {
10559 .eraseblocks = { {32 * 1024, 2048} },
10560 .block_erase = spi_block_erase_52,
10561 }, {
10562 .eraseblocks = { {64 * 1024, 1024} },
10563 .block_erase = spi_block_erase_dc,
10564 }, {
10565 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010566 .block_erase = spi_block_erase_d8,
10567 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010568 .eraseblocks = { {64 * 1024 * 1024, 1} },
10569 .block_erase = spi_block_erase_60,
10570 }, {
10571 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010572 .block_erase = spi_block_erase_c7,
10573 }
10574 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010575 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10576 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010577 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010578 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010579 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010580 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010581 .prepare_access = spi_prepare_4ba,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010582 },
10583
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010584 {
10585 .vendor = "Macronix",
10586 .name = "MX66L1G45G",
10587 .bustype = BUS_SPI,
10588 .manufacture_id = MACRONIX_ID,
10589 .model_id = MACRONIX_MX66L1G45G,
10590 .total_size = 131072,
10591 .page_size = 256,
10592 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10593 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10594 .tested = TEST_OK_PREW,
10595 .probe = probe_spi_rdid,
10596 .probe_timing = TIMING_ZERO,
10597 .block_erasers =
10598 {
10599 {
10600 .eraseblocks = { {4 * 1024, 32768} },
10601 .block_erase = spi_block_erase_21,
10602 }, {
10603 .eraseblocks = { {4 * 1024, 32768} },
10604 .block_erase = spi_block_erase_20,
10605 }, {
10606 .eraseblocks = { {32 * 1024, 4096} },
10607 .block_erase = spi_block_erase_5c,
10608 }, {
10609 .eraseblocks = { {32 * 1024, 4096} },
10610 .block_erase = spi_block_erase_52,
10611 }, {
10612 .eraseblocks = { {64 * 1024, 2048} },
10613 .block_erase = spi_block_erase_dc,
10614 }, {
10615 .eraseblocks = { {64 * 1024, 2048} },
10616 .block_erase = spi_block_erase_d8,
10617 }, {
10618 .eraseblocks = { {128 * 1024 * 1024, 1} },
10619 .block_erase = spi_block_erase_60,
10620 }, {
10621 .eraseblocks = { {128 * 1024 * 1024, 1} },
10622 .block_erase = spi_block_erase_c7,
10623 }
10624 },
10625 /* TODO: security register and SBLK/SBULK, configuration register */
10626 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10627 .unlock = spi_disable_blockprotect_bp3_srwd,
10628 .write = spi_chip_write_256,
10629 .read = spi_chip_read, /* Fast read (0x0B) supported */
10630 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010631 .prepare_access = spi_prepare_4ba,
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010632 },
10633
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010634 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10635 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10636 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10637 * only is successful if RDID does not work.
10638 */
10639 {
10640 .vendor = "Micron/Numonyx/ST",
10641 .name = "M25P05",
10642 .bustype = BUS_SPI,
10643 .manufacture_id = 0, /* Not used. */
10644 .model_id = ST_M25P05_RES,
10645 .total_size = 64,
10646 .page_size = 256,
10647 .feature_bits = FEATURE_WRSR_WREN,
10648 .tested = TEST_UNTESTED,
10649 .probe = probe_spi_res1,
10650 .probe_timing = TIMING_ZERO,
10651 .block_erasers =
10652 {
10653 {
10654 .eraseblocks = { {32 * 1024, 2} },
10655 .block_erase = spi_block_erase_d8,
10656 }, {
10657 .eraseblocks = { {64 * 1024, 1} },
10658 .block_erase = spi_block_erase_c7,
10659 }
10660 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010661 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010662 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010663 .write = spi_chip_write_1, /* 128 */
10664 .read = spi_chip_read,
10665 .voltage = {2700, 3600},
10666 },
10667
10668 {
10669 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010670 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010671 .bustype = BUS_SPI,
10672 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010673 .model_id = ST_M25P05A,
10674 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010675 .page_size = 256,
10676 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010677 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010678 .probe = probe_spi_rdid,
10679 .probe_timing = TIMING_ZERO,
10680 .block_erasers =
10681 {
10682 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010683 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010684 .block_erase = spi_block_erase_d8,
10685 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010686 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010687 .block_erase = spi_block_erase_c7,
10688 }
10689 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010690 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010691 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010692 .write = spi_chip_write_256,
10693 .read = spi_chip_read,
10694 .voltage = {2700, 3600},
10695 },
10696
10697 /* The ST M25P10 has the same problem as the M25P05. */
10698 {
10699 .vendor = "Micron/Numonyx/ST",
10700 .name = "M25P10",
10701 .bustype = BUS_SPI,
10702 .manufacture_id = 0, /* Not used. */
10703 .model_id = ST_M25P10_RES,
10704 .total_size = 128,
10705 .page_size = 256,
10706 .feature_bits = FEATURE_WRSR_WREN,
10707 .tested = TEST_UNTESTED,
10708 .probe = probe_spi_res1,
10709 .probe_timing = TIMING_ZERO,
10710 .block_erasers =
10711 {
10712 {
10713 .eraseblocks = { {32 * 1024, 4} },
10714 .block_erase = spi_block_erase_d8,
10715 }, {
10716 .eraseblocks = { {128 * 1024, 1} },
10717 .block_erase = spi_block_erase_c7,
10718 }
10719 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010720 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010721 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010722 .write = spi_chip_write_1, /* 128 */
10723 .read = spi_chip_read,
10724 .voltage = {2700, 3600},
10725 },
10726
10727 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010728 .vendor = "Micron/Numonyx/ST",
10729 .name = "M25P10-A",
10730 .bustype = BUS_SPI,
10731 .manufacture_id = ST_ID,
10732 .model_id = ST_M25P10A,
10733 .total_size = 128,
10734 .page_size = 256,
10735 .feature_bits = FEATURE_WRSR_WREN,
10736 .tested = TEST_OK_PREW,
10737 .probe = probe_spi_rdid,
10738 .probe_timing = TIMING_ZERO,
10739 .block_erasers =
10740 {
10741 {
10742 .eraseblocks = { {32 * 1024, 4} },
10743 .block_erase = spi_block_erase_d8,
10744 }, {
10745 .eraseblocks = { {128 * 1024, 1} },
10746 .block_erase = spi_block_erase_c7,
10747 }
10748 },
10749 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10750 .unlock = spi_disable_blockprotect_bp3_srwd,
10751 .write = spi_chip_write_256,
10752 .read = spi_chip_read,
10753 .voltage = {2700, 3600},
10754 },
10755
10756 {
10757 .vendor = "Micron/Numonyx/ST",
10758 .name = "M25P128",
10759 .bustype = BUS_SPI,
10760 .manufacture_id = ST_ID,
10761 .model_id = ST_M25P128,
10762 .total_size = 16384,
10763 .page_size = 256,
10764 .feature_bits = FEATURE_WRSR_WREN,
10765 .tested = TEST_OK_PREW,
10766 .probe = probe_spi_rdid,
10767 .probe_timing = TIMING_ZERO,
10768 .block_erasers =
10769 {
10770 {
10771 .eraseblocks = { {256 * 1024, 64} },
10772 .block_erase = spi_block_erase_d8,
10773 }, {
10774 .eraseblocks = { {16 * 1024 * 1024, 1} },
10775 .block_erase = spi_block_erase_c7,
10776 }
10777 },
10778 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10779 .unlock = spi_disable_blockprotect_bp3_srwd,
10780 .write = spi_chip_write_256,
10781 .read = spi_chip_read,
10782 .voltage = {2700, 3600},
10783 },
10784
10785 {
10786 .vendor = "Micron/Numonyx/ST",
10787 .name = "M25P16",
10788 .bustype = BUS_SPI,
10789 .manufacture_id = ST_ID,
10790 .model_id = ST_M25P16,
10791 .total_size = 2048,
10792 .page_size = 256,
10793 .feature_bits = FEATURE_WRSR_WREN,
10794 .tested = TEST_OK_PREW,
10795 .probe = probe_spi_rdid,
10796 .probe_timing = TIMING_ZERO,
10797 .block_erasers =
10798 {
10799 {
10800 .eraseblocks = { {64 * 1024, 32} },
10801 .block_erase = spi_block_erase_d8,
10802 }, {
10803 .eraseblocks = { {2 * 1024 * 1024, 1} },
10804 .block_erase = spi_block_erase_c7,
10805 }
10806 },
10807 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10808 .unlock = spi_disable_blockprotect_bp3_srwd,
10809 .write = spi_chip_write_256,
10810 .read = spi_chip_read,
10811 .voltage = {2700, 3600},
10812 },
10813
10814 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010815 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10816 .name = "M25P20",
10817 .bustype = BUS_SPI,
10818 .manufacture_id = ST_ID,
10819 .model_id = ST_M25P20,
10820 .total_size = 256,
10821 .page_size = 256,
10822 .feature_bits = FEATURE_WRSR_WREN,
10823 .tested = TEST_UNTESTED,
10824 .probe = probe_spi_rdid,
10825 .probe_timing = TIMING_ZERO,
10826 .block_erasers =
10827 {
10828 {
10829 .eraseblocks = { {64 * 1024, 4} },
10830 .block_erase = spi_block_erase_d8,
10831 }, {
10832 .eraseblocks = { {256 * 1024, 1} },
10833 .block_erase = spi_block_erase_c7,
10834 }
10835 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010836 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010837 .unlock = spi_disable_blockprotect,
10838 .write = spi_chip_write_256,
10839 .read = spi_chip_read, /* Fast read (0x0B) supported */
10840 .voltage = {2700, 3600},
10841 },
10842
10843 {
10844 .vendor = "Micron/Numonyx/ST",
10845 .name = "M25P20-old",
10846 .bustype = BUS_SPI,
10847 .manufacture_id = 0, /* Not used. */
10848 .model_id = ST_M25P20_RES,
10849 .total_size = 256,
10850 .page_size = 256,
10851 .feature_bits = FEATURE_WRSR_WREN,
10852 .tested = TEST_OK_PREW,
10853 .probe = probe_spi_res1,
10854 .probe_timing = TIMING_ZERO,
10855 .block_erasers =
10856 {
10857 {
10858 .eraseblocks = { {64 * 1024, 4} },
10859 .block_erase = spi_block_erase_d8,
10860 }, {
10861 .eraseblocks = { {256 * 1024, 1} },
10862 .block_erase = spi_block_erase_c7,
10863 }
10864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010865 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010866 .unlock = spi_disable_blockprotect,
10867 .write = spi_chip_write_256,
10868 .read = spi_chip_read, /* Fast read (0x0B) supported */
10869 .voltage = {2700, 3600},
10870 },
10871
10872 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010873 .vendor = "Micron/Numonyx/ST",
10874 .name = "M25P32",
10875 .bustype = BUS_SPI,
10876 .manufacture_id = ST_ID,
10877 .model_id = ST_M25P32,
10878 .total_size = 4096,
10879 .page_size = 256,
10880 .feature_bits = FEATURE_WRSR_WREN,
10881 .tested = TEST_OK_PREW,
10882 .probe = probe_spi_rdid,
10883 .probe_timing = TIMING_ZERO,
10884 .block_erasers =
10885 {
10886 {
10887 .eraseblocks = { {64 * 1024, 64} },
10888 .block_erase = spi_block_erase_d8,
10889 }, {
10890 .eraseblocks = { {4 * 1024 * 1024, 1} },
10891 .block_erase = spi_block_erase_c7,
10892 }
10893 },
10894 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10895 .unlock = spi_disable_blockprotect_bp3_srwd,
10896 .write = spi_chip_write_256,
10897 .read = spi_chip_read,
10898 .voltage = {2700, 3600},
10899 },
10900
10901 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010902 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10903 .name = "M25P40",
10904 .bustype = BUS_SPI,
10905 .manufacture_id = ST_ID,
10906 .model_id = ST_M25P40,
10907 .total_size = 512,
10908 .page_size = 256,
10909 .feature_bits = FEATURE_WRSR_WREN,
10910 .tested = TEST_OK_PREW,
10911 .probe = probe_spi_rdid,
10912 .probe_timing = TIMING_ZERO,
10913 .block_erasers =
10914 {
10915 {
10916 .eraseblocks = { {64 * 1024, 8} },
10917 .block_erase = spi_block_erase_d8,
10918 }, {
10919 .eraseblocks = { {512 * 1024, 1} },
10920 .block_erase = spi_block_erase_c7,
10921 }
10922 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010923 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010924 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010925 .write = spi_chip_write_256,
10926 .read = spi_chip_read,
10927 .voltage = {2700, 3600},
10928 },
10929
10930 {
10931 .vendor = "Micron/Numonyx/ST",
10932 .name = "M25P40-old",
10933 .bustype = BUS_SPI,
10934 .manufacture_id = 0, /* Not used. */
10935 .model_id = ST_M25P40_RES,
10936 .total_size = 512,
10937 .page_size = 256,
10938 .feature_bits = FEATURE_WRSR_WREN,
10939 .tested = TEST_UNTESTED,
10940 .probe = probe_spi_res1,
10941 .probe_timing = TIMING_ZERO,
10942 .block_erasers =
10943 {
10944 {
10945 .eraseblocks = { {64 * 1024, 8} },
10946 .block_erase = spi_block_erase_d8,
10947 }, {
10948 .eraseblocks = { {512 * 1024, 1} },
10949 .block_erase = spi_block_erase_c7,
10950 }
10951 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010952 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010953 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010954 .write = spi_chip_write_256,
10955 .read = spi_chip_read,
10956 },
10957
10958 {
10959 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010960 .name = "M25P64",
10961 .bustype = BUS_SPI,
10962 .manufacture_id = ST_ID,
10963 .model_id = ST_M25P64,
10964 .total_size = 8192,
10965 .page_size = 256,
10966 .feature_bits = FEATURE_WRSR_WREN,
10967 .tested = TEST_OK_PREW,
10968 .probe = probe_spi_rdid,
10969 .probe_timing = TIMING_ZERO,
10970 .block_erasers =
10971 {
10972 {
10973 .eraseblocks = { {64 * 1024, 128} },
10974 .block_erase = spi_block_erase_d8,
10975 }, {
10976 .eraseblocks = { {8 * 1024 * 1024, 1} },
10977 .block_erase = spi_block_erase_c7,
10978 }
10979 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010980 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010981 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010982 .write = spi_chip_write_256,
10983 .read = spi_chip_read,
10984 .voltage = {2700, 3600},
10985 },
10986
10987 {
10988 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010989 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010990 .bustype = BUS_SPI,
10991 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010992 .model_id = ST_M25P80,
10993 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010994 .page_size = 256,
10995 .feature_bits = FEATURE_WRSR_WREN,
10996 .tested = TEST_OK_PREW,
10997 .probe = probe_spi_rdid,
10998 .probe_timing = TIMING_ZERO,
10999 .block_erasers =
11000 {
11001 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011002 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011003 .block_erase = spi_block_erase_d8,
11004 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011005 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011006 .block_erase = spi_block_erase_c7,
11007 }
11008 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011009 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011010 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011011 .write = spi_chip_write_256,
11012 .read = spi_chip_read,
11013 .voltage = {2700, 3600},
11014 },
11015
11016 {
11017 .vendor = "Micron/Numonyx/ST",
11018 .name = "M25PE10",
11019 .bustype = BUS_SPI,
11020 .manufacture_id = ST_ID,
11021 .model_id = ST_M25PE10,
11022 .total_size = 128,
11023 .page_size = 256,
11024 .feature_bits = FEATURE_WRSR_WREN,
11025 .tested = TEST_UNTESTED,
11026 .probe = probe_spi_rdid,
11027 .probe_timing = TIMING_ZERO,
11028 .block_erasers =
11029 {
11030 {
11031 .eraseblocks = { {4 * 1024, 32} },
11032 .block_erase = spi_block_erase_20,
11033 }, {
11034 .eraseblocks = { {64 * 1024, 2} },
11035 .block_erase = spi_block_erase_d8,
11036 }, {
11037 .eraseblocks = { {128 * 1024, 1} },
11038 .block_erase = spi_block_erase_c7,
11039 }
11040 },
11041 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11042 .unlock = spi_disable_blockprotect,
11043 .write = spi_chip_write_256,
11044 .read = spi_chip_read,
11045 .voltage = {2700, 3600},
11046 },
11047
11048 {
11049 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011050 .name = "M25PE16",
11051 .bustype = BUS_SPI,
11052 .manufacture_id = ST_ID,
11053 .model_id = ST_M25PE16,
11054 .total_size = 2048,
11055 .page_size = 256,
11056 .feature_bits = FEATURE_WRSR_WREN,
11057 .tested = TEST_UNTESTED,
11058 .probe = probe_spi_rdid,
11059 .probe_timing = TIMING_ZERO,
11060 .block_erasers =
11061 {
11062 {
11063 .eraseblocks = { {4 * 1024, 512} },
11064 .block_erase = spi_block_erase_20,
11065 }, {
11066 .eraseblocks = { {64 * 1024, 32} },
11067 .block_erase = spi_block_erase_d8,
11068 }, {
11069 .eraseblocks = { {2 * 1024 * 1024, 1} },
11070 .block_erase = spi_block_erase_c7,
11071 }
11072 },
11073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11074 .unlock = spi_disable_blockprotect,
11075 .write = spi_chip_write_256,
11076 .read = spi_chip_read,
11077 .voltage = {2700, 3600},
11078 },
11079
11080 {
11081 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011082 .name = "M25PE20",
11083 .bustype = BUS_SPI,
11084 .manufacture_id = ST_ID,
11085 .model_id = ST_M25PE20,
11086 .total_size = 256,
11087 .page_size = 256,
11088 .feature_bits = FEATURE_WRSR_WREN,
11089 .tested = TEST_UNTESTED,
11090 .probe = probe_spi_rdid,
11091 .probe_timing = TIMING_ZERO,
11092 .block_erasers =
11093 {
11094 {
11095 .eraseblocks = { {4 * 1024, 64} },
11096 .block_erase = spi_block_erase_20,
11097 }, {
11098 .eraseblocks = { {64 * 1024, 4} },
11099 .block_erase = spi_block_erase_d8,
11100 }, {
11101 .eraseblocks = { {256 * 1024, 1} },
11102 .block_erase = spi_block_erase_c7,
11103 }
11104 },
11105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11106 .unlock = spi_disable_blockprotect,
11107 .write = spi_chip_write_256,
11108 .read = spi_chip_read,
11109 .voltage = {2700, 3600},
11110 },
11111
11112 {
11113 .vendor = "Micron/Numonyx/ST",
11114 .name = "M25PE40",
11115 .bustype = BUS_SPI,
11116 .manufacture_id = ST_ID,
11117 .model_id = ST_M25PE40,
11118 .total_size = 512,
11119 .page_size = 256,
11120 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011121 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011122 .probe = probe_spi_rdid,
11123 .probe_timing = TIMING_ZERO,
11124 .block_erasers =
11125 {
11126 {
11127 .eraseblocks = { {4 * 1024, 128} },
11128 .block_erase = spi_block_erase_20,
11129 }, {
11130 .eraseblocks = { {64 * 1024, 8} },
11131 .block_erase = spi_block_erase_d8,
11132 }, {
11133 .eraseblocks = { {512 * 1024, 1} },
11134 .block_erase = spi_block_erase_c7,
11135 }
11136 },
11137 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11138 .unlock = spi_disable_blockprotect,
11139 .write = spi_chip_write_256,
11140 .read = spi_chip_read,
11141 .voltage = {2700, 3600},
11142 },
11143
11144 {
11145 .vendor = "Micron/Numonyx/ST",
11146 .name = "M25PE80",
11147 .bustype = BUS_SPI,
11148 .manufacture_id = ST_ID,
11149 .model_id = ST_M25PE80,
11150 .total_size = 1024,
11151 .page_size = 256,
11152 .feature_bits = FEATURE_WRSR_WREN,
11153 .tested = TEST_OK_PREW,
11154 .probe = probe_spi_rdid,
11155 .probe_timing = TIMING_ZERO,
11156 .block_erasers =
11157 {
11158 {
11159 .eraseblocks = { {4 * 1024, 256} },
11160 .block_erase = spi_block_erase_20,
11161 }, {
11162 .eraseblocks = { {64 * 1024, 16} },
11163 .block_erase = spi_block_erase_d8,
11164 }, {
11165 .eraseblocks = { {1024 * 1024, 1} },
11166 .block_erase = spi_block_erase_c7,
11167 }
11168 },
11169 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11170 .unlock = spi_disable_blockprotect,
11171 .write = spi_chip_write_256,
11172 .read = spi_chip_read,
11173 .voltage = {2700, 3600},
11174 },
11175
11176 {
11177 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011178 .name = "M25PX16",
11179 .bustype = BUS_SPI,
11180 .manufacture_id = ST_ID,
11181 .model_id = ST_M25PX16,
11182 .total_size = 2048,
11183 .page_size = 256,
11184 /* OTP: 64B total; read 0x4B; write 0x42 */
11185 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11186 .tested = TEST_OK_PREW,
11187 .probe = probe_spi_rdid,
11188 .probe_timing = TIMING_ZERO,
11189 .block_erasers =
11190 {
11191 {
11192 .eraseblocks = { { 4 * 1024, 512 } },
11193 .block_erase = spi_block_erase_20,
11194 }, {
11195 .eraseblocks = { {64 * 1024, 32} },
11196 .block_erase = spi_block_erase_d8,
11197 }, {
11198 .eraseblocks = { {2 * 1024 * 1024, 1} },
11199 .block_erase = spi_block_erase_c7,
11200 }
11201 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011202 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011203 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11204 .write = spi_chip_write_256,
11205 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011206 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011207 },
11208
11209 {
11210 .vendor = "Micron/Numonyx/ST",
11211 .name = "M25PX32",
11212 .bustype = BUS_SPI,
11213 .manufacture_id = ST_ID,
11214 .model_id = ST_M25PX32,
11215 .total_size = 4096,
11216 .page_size = 256,
11217 /* OTP: 64B total; read 0x4B; write 0x42 */
11218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11219 .tested = TEST_OK_PRE,
11220 .probe = probe_spi_rdid,
11221 .probe_timing = TIMING_ZERO,
11222 .block_erasers =
11223 {
11224 {
11225 .eraseblocks = { { 4 * 1024, 1024 } },
11226 .block_erase = spi_block_erase_20,
11227 }, {
11228 .eraseblocks = { {64 * 1024, 64} },
11229 .block_erase = spi_block_erase_d8,
11230 }, {
11231 .eraseblocks = { {4 * 1024 * 1024, 1} },
11232 .block_erase = spi_block_erase_c7,
11233 }
11234 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011235 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011236 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11237 .write = spi_chip_write_256,
11238 .read = spi_chip_read,
11239 .voltage = {2700, 3600},
11240 },
11241
11242 {
11243 .vendor = "Micron/Numonyx/ST",
11244 .name = "M25PX64",
11245 .bustype = BUS_SPI,
11246 .manufacture_id = ST_ID,
11247 .model_id = ST_M25PX64,
11248 .total_size = 8192,
11249 .page_size = 256,
11250 /* OTP: 64B total; read 0x4B; write 0x42 */
11251 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011252 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011253 .probe = probe_spi_rdid,
11254 .probe_timing = TIMING_ZERO,
11255 .block_erasers =
11256 {
11257 {
11258 .eraseblocks = { { 4 * 1024, 2048 } },
11259 .block_erase = spi_block_erase_20,
11260 }, {
11261 .eraseblocks = { {64 * 1024, 128} },
11262 .block_erase = spi_block_erase_d8,
11263 }, {
11264 .eraseblocks = { {8 * 1024 * 1024, 1} },
11265 .block_erase = spi_block_erase_c7,
11266 }
11267 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011268 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011269 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11270 .write = spi_chip_write_256,
11271 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011272 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011273 },
11274
11275 {
11276 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011277 .name = "M25PX80",
11278 .bustype = BUS_SPI,
11279 .manufacture_id = ST_ID,
11280 .model_id = ST_M25PX80,
11281 .total_size = 1024,
11282 .page_size = 256,
11283 /* OTP: 64B total; read 0x4B, write 0x42 */
11284 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11285 .tested = TEST_OK_PREW,
11286 .probe = probe_spi_rdid,
11287 .probe_timing = TIMING_ZERO,
11288 .block_erasers =
11289 {
11290 {
11291 .eraseblocks = { { 4 * 1024, 256 } },
11292 .block_erase = spi_block_erase_20,
11293 }, {
11294 .eraseblocks = { {64 * 1024, 16} },
11295 .block_erase = spi_block_erase_d8,
11296 }, {
11297 .eraseblocks = { {1024 * 1024, 1} },
11298 .block_erase = spi_block_erase_c7,
11299 }
11300 },
11301 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
11302 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11303 .write = spi_chip_write_256,
11304 .read = spi_chip_read,
11305 .voltage = {2700, 3600},
11306 },
11307
11308 {
11309 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011310 .name = "M45PE10",
11311 .bustype = BUS_SPI,
11312 .manufacture_id = ST_ID,
11313 .model_id = ST_M45PE10,
11314 .total_size = 128,
11315 .page_size = 256,
11316 .tested = TEST_UNTESTED,
11317 .probe = probe_spi_rdid,
11318 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011319 .block_erasers =
11320 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011321 {
11322 .eraseblocks = { {256, 512} },
11323 .block_erase = spi_block_erase_db,
11324 }, {
11325 .eraseblocks = { {64 * 1024, 2} },
11326 .block_erase = spi_block_erase_d8,
11327 }
11328 },
11329 .printlock = spi_prettyprint_status_register_default_welwip,
11330 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11331 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11332 .read = spi_chip_read, /* Fast read (0x0B) supported */
11333 .voltage = {2700, 3600},
11334 },
11335
11336 {
11337 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011338 .name = "M45PE16",
11339 .bustype = BUS_SPI,
11340 .manufacture_id = ST_ID,
11341 .model_id = ST_M45PE16,
11342 .total_size = 2048,
11343 .page_size = 256,
11344 .tested = TEST_UNTESTED,
11345 .probe = probe_spi_rdid,
11346 .probe_timing = TIMING_ZERO,
11347 .block_erasers =
11348 {
11349 {
11350 .eraseblocks = { {256, 8192} },
11351 .block_erase = spi_block_erase_db,
11352 }, {
11353 .eraseblocks = { {64 * 1024, 32} },
11354 .block_erase = spi_block_erase_d8,
11355 }
11356 },
11357 .printlock = spi_prettyprint_status_register_default_welwip,
11358 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11359 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11360 .read = spi_chip_read, /* Fast read (0x0B) supported */
11361 .voltage = {2700, 3600},
11362 },
11363
11364 {
11365 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011366 .name = "M45PE20",
11367 .bustype = BUS_SPI,
11368 .manufacture_id = ST_ID,
11369 .model_id = ST_M45PE20,
11370 .total_size = 256,
11371 .page_size = 256,
11372 .tested = TEST_UNTESTED,
11373 .probe = probe_spi_rdid,
11374 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011375 .block_erasers =
11376 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011377 {
11378 .eraseblocks = { {256, 1024} },
11379 .block_erase = spi_block_erase_db,
11380 }, {
11381 .eraseblocks = { {64 * 1024, 4} },
11382 .block_erase = spi_block_erase_d8,
11383 }
11384 },
11385 .printlock = spi_prettyprint_status_register_default_welwip,
11386 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11387 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11388 .read = spi_chip_read, /* Fast read (0x0B) supported */
11389 .voltage = {2700, 3600},
11390 },
11391
11392 {
11393 .vendor = "Micron/Numonyx/ST",
11394 .name = "M45PE40",
11395 .bustype = BUS_SPI,
11396 .manufacture_id = ST_ID,
11397 .model_id = ST_M45PE40,
11398 .total_size = 512,
11399 .page_size = 256,
11400 .tested = TEST_UNTESTED,
11401 .probe = probe_spi_rdid,
11402 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011403 .block_erasers =
11404 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011405 {
11406 .eraseblocks = { {256, 2048} },
11407 .block_erase = spi_block_erase_db,
11408 }, {
11409 .eraseblocks = { {64 * 1024, 8} },
11410 .block_erase = spi_block_erase_d8,
11411 }
11412 },
11413 .printlock = spi_prettyprint_status_register_default_welwip,
11414 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011415 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011416 .read = spi_chip_read, /* Fast read (0x0B) supported */
11417 .voltage = {2700, 3600},
11418 },
11419
11420 {
11421 .vendor = "Micron/Numonyx/ST",
11422 .name = "M45PE80",
11423 .bustype = BUS_SPI,
11424 .manufacture_id = ST_ID,
11425 .model_id = ST_M45PE80,
11426 .total_size = 1024,
11427 .page_size = 256,
11428 .tested = TEST_UNTESTED,
11429 .probe = probe_spi_rdid,
11430 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011431 .block_erasers =
11432 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011433 {
11434 .eraseblocks = { {256, 4096} },
11435 .block_erase = spi_block_erase_db,
11436 }, {
11437 .eraseblocks = { {64 * 1024, 16} },
11438 .block_erase = spi_block_erase_d8,
11439 }
11440 },
11441 .printlock = spi_prettyprint_status_register_default_welwip,
11442 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11443 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11444 .read = spi_chip_read, /* Fast read (0x0B) supported */
11445 .voltage = {2700, 3600},
11446 },
11447
11448 {
11449 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011450 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11451 .bustype = BUS_SPI,
11452 .manufacture_id = ST_ID,
11453 .model_id = ST_N25Q00A__1G,
11454 .total_size = 131072,
11455 .page_size = 256,
11456 /* supports SFDP */
11457 /* OTP: 64B total; read 0x4B, write 0x42 */
11458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11459 .tested = TEST_UNTESTED,
11460 .probe = probe_spi_rdid,
11461 .probe_timing = TIMING_ZERO,
11462 .block_erasers =
11463 {
11464 {
11465 .eraseblocks = { {4 * 1024, 32768} },
11466 .block_erase = spi_block_erase_21,
11467 }, {
11468 .eraseblocks = { {4 * 1024, 32768} },
11469 .block_erase = spi_block_erase_20,
11470 }, {
11471 .eraseblocks = { {64 * 1024, 2048} },
11472 .block_erase = spi_block_erase_dc,
11473 }, {
11474 .eraseblocks = { {64 * 1024, 2048} },
11475 .block_erase = spi_block_erase_d8,
11476 }, {
11477 .eraseblocks = { {32768 * 1024, 4} },
11478 .block_erase = spi_block_erase_c4,
11479 }
11480 },
11481 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11482 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11483 .write = spi_chip_write_256, /* Multi I/O supported */
11484 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11485 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011486 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011487 },
11488
11489 {
11490 .vendor = "Micron/Numonyx/ST",
11491 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11492 .bustype = BUS_SPI,
11493 .manufacture_id = ST_ID,
11494 .model_id = ST_N25Q00A__3G,
11495 .total_size = 131072,
11496 .page_size = 256,
11497 /* supports SFDP */
11498 /* OTP: 64B total; read 0x4B, write 0x42 */
11499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11500 .tested = TEST_UNTESTED,
11501 .probe = probe_spi_rdid,
11502 .probe_timing = TIMING_ZERO,
11503 .block_erasers =
11504 {
11505 {
11506 .eraseblocks = { {4 * 1024, 32768} },
11507 .block_erase = spi_block_erase_21,
11508 }, {
11509 .eraseblocks = { {4 * 1024, 32768} },
11510 .block_erase = spi_block_erase_20,
11511 }, {
11512 .eraseblocks = { {64 * 1024, 2048} },
11513 .block_erase = spi_block_erase_dc,
11514 }, {
11515 .eraseblocks = { {64 * 1024, 2048} },
11516 .block_erase = spi_block_erase_d8,
11517 }, {
11518 .eraseblocks = { {32768 * 1024, 4} },
11519 .block_erase = spi_block_erase_c4,
11520 }
11521 },
11522 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11523 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11524 .write = spi_chip_write_256, /* Multi I/O supported */
11525 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11526 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011527 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011528 },
11529
11530 {
11531 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011532 .name = "N25Q016",
11533 .bustype = BUS_SPI,
11534 .manufacture_id = ST_ID,
11535 .model_id = ST_N25Q016__1E,
11536 .total_size = 2048,
11537 .page_size = 256,
11538 /* supports SFDP */
11539 /* OTP: 64B total; read 0x4B, write 0x42 */
11540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11541 .tested = TEST_UNTESTED,
11542 .probe = probe_spi_rdid,
11543 .probe_timing = TIMING_ZERO,
11544 .block_erasers =
11545 {
11546 {
11547 .eraseblocks = { {4 * 1024, 512} },
11548 .block_erase = spi_block_erase_20,
11549 }, {
11550 .eraseblocks = { {32 * 1024, 64} },
11551 .block_erase = spi_block_erase_52,
11552 }, {
11553 .eraseblocks = { {64 * 1024, 32} },
11554 .block_erase = spi_block_erase_d8,
11555 }, {
11556 .eraseblocks = { {2 * 1024 * 1024, 1} },
11557 .block_erase = spi_block_erase_c7,
11558 }
11559 },
11560 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11561 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11562 .write = spi_chip_write_256, /* Multi I/O supported */
11563 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11564 .voltage = {1700, 2000},
11565 },
11566
11567 {
11568 .vendor = "Micron/Numonyx/ST",
11569 .name = "N25Q032..1E",
11570 .bustype = BUS_SPI,
11571 .manufacture_id = ST_ID,
11572 .model_id = ST_N25Q032__1E,
11573 .total_size = 4096,
11574 .page_size = 256,
11575 /* supports SFDP */
11576 /* OTP: 64B total; read 0x4B, write 0x42 */
11577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11578 .tested = TEST_UNTESTED,
11579 .probe = probe_spi_rdid,
11580 .probe_timing = TIMING_ZERO,
11581 .block_erasers =
11582 {
11583 {
11584 .eraseblocks = { {4 * 1024, 1024} },
11585 .block_erase = spi_block_erase_20,
11586 }, {
11587 .eraseblocks = { {64 * 1024, 64} },
11588 .block_erase = spi_block_erase_d8,
11589 }, {
11590 .eraseblocks = { {4 * 1024 * 1024, 1} },
11591 .block_erase = spi_block_erase_c7,
11592 }
11593 },
11594 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11595 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11596 .write = spi_chip_write_256, /* Multi I/O supported */
11597 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11598 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011599 .reg_bits =
11600 {
11601 /*
11602 * There is also a volatile lock register per 64KiB sector, which is not
11603 * mutually exclusive with BP-based protection.
11604 */
11605 .srp = {STATUS1, 7, RW},
11606 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11607 .tb = {STATUS1, 5, RW},
11608 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011609 .wp_write_cfg = spi_wp_write_cfg,
11610 .wp_read_cfg = spi_wp_read_cfg,
11611 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011612 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011613 },
11614
11615 {
11616 .vendor = "Micron/Numonyx/ST",
11617 .name = "N25Q032..3E",
11618 .bustype = BUS_SPI,
11619 .manufacture_id = ST_ID,
11620 .model_id = ST_N25Q032__3E,
11621 .total_size = 4096,
11622 .page_size = 256,
11623 /* supports SFDP */
11624 /* OTP: 64B total; read 0x4B, write 0x42 */
11625 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11626 .tested = TEST_OK_PREW,
11627 .probe = probe_spi_rdid,
11628 .probe_timing = TIMING_ZERO,
11629 .block_erasers =
11630 {
11631 {
11632 .eraseblocks = { {4 * 1024, 1024} },
11633 .block_erase = spi_block_erase_20,
11634 }, {
11635 .eraseblocks = { {64 * 1024, 64} },
11636 .block_erase = spi_block_erase_d8,
11637 }, {
11638 .eraseblocks = { {4 * 1024 * 1024, 1} },
11639 .block_erase = spi_block_erase_c7,
11640 }
11641 },
11642 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11643 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11644 .write = spi_chip_write_256, /* Multi I/O supported */
11645 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11646 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011647 .reg_bits =
11648 {
11649 /*
11650 * There is also a volatile lock register per 64KiB sector, which is not
11651 * mutually exclusive with BP-based protection.
11652 */
11653 .srp = {STATUS1, 7, RW},
11654 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11655 .tb = {STATUS1, 5, RW},
11656 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011657 .wp_write_cfg = spi_wp_write_cfg,
11658 .wp_read_cfg = spi_wp_read_cfg,
11659 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011660 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011661 },
11662
11663 {
11664 .vendor = "Micron/Numonyx/ST",
11665 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11666 .bustype = BUS_SPI,
11667 .manufacture_id = ST_ID,
11668 .model_id = ST_N25Q064__1E,
11669 .total_size = 8192,
11670 .page_size = 256,
11671 /* supports SFDP */
11672 /* OTP: 64B total; read 0x4B, write 0x42 */
11673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011674 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011675 .probe = probe_spi_rdid,
11676 .probe_timing = TIMING_ZERO,
11677 .block_erasers =
11678 {
11679 {
11680 .eraseblocks = { {4 * 1024, 2048 } },
11681 .block_erase = spi_block_erase_20,
11682 }, {
11683 .eraseblocks = { {64 * 1024, 128} },
11684 .block_erase = spi_block_erase_d8,
11685 }, {
11686 .eraseblocks = { {8 * 1024 * 1024, 1} },
11687 .block_erase = spi_block_erase_c7,
11688 }
11689 },
11690 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11691 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11692 .write = spi_chip_write_256, /* Multi I/O supported */
11693 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11694 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011695 .reg_bits =
11696 {
11697 /*
11698 * There is also a volatile lock register per 64KiB sector, which is not
11699 * mutually exclusive with BP-based protection.
11700 */
11701 .srp = {STATUS1, 7, RW},
11702 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11703 .tb = {STATUS1, 5, RW},
11704 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011705 .wp_write_cfg = spi_wp_write_cfg,
11706 .wp_read_cfg = spi_wp_read_cfg,
11707 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011708 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011709 },
11710
11711 {
11712 .vendor = "Micron/Numonyx/ST",
11713 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11714 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011715 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011716 .model_id = ST_N25Q064__3E,
11717 .total_size = 8192,
11718 .page_size = 256,
11719 /* supports SFDP */
11720 /* OTP: 64B total; read 0x4B, write 0x42 */
11721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11722 .tested = TEST_OK_PREW,
11723 .probe = probe_spi_rdid,
11724 .probe_timing = TIMING_ZERO,
11725 .block_erasers =
11726 {
11727 {
11728 .eraseblocks = { {4 * 1024, 2048 } },
11729 .block_erase = spi_block_erase_20,
11730 }, {
11731 .eraseblocks = { {64 * 1024, 128} },
11732 .block_erase = spi_block_erase_d8,
11733 }, {
11734 .eraseblocks = { {8 * 1024 * 1024, 1} },
11735 .block_erase = spi_block_erase_c7,
11736 }
11737 },
11738 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11739 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11740 .write = spi_chip_write_256, /* Multi I/O supported */
11741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11742 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011743 .reg_bits =
11744 {
11745 /*
11746 * There is also a volatile lock register per 64KiB sector, which is not
11747 * mutually exclusive with BP-based protection.
11748 */
11749 .srp = {STATUS1, 7, RW},
11750 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11751 .tb = {STATUS1, 5, RW},
11752 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011753 .wp_write_cfg = spi_wp_write_cfg,
11754 .wp_read_cfg = spi_wp_read_cfg,
11755 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011756 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011757 },
11758
11759 {
11760 .vendor = "Micron/Numonyx/ST",
11761 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11762 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011763 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011764 .model_id = ST_N25Q128__1E,
11765 .total_size = 16384,
11766 .page_size = 256,
11767 /* supports SFDP */
11768 /* OTP: 64B total; read 0x4B, write 0x42 */
11769 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011770 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011771 .probe = probe_spi_rdid,
11772 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011773 .block_erasers =
11774 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011775 {
11776 .eraseblocks = { {4 * 1024, 4096 } },
11777 .block_erase = spi_block_erase_20,
11778 }, {
11779 .eraseblocks = { {64 * 1024, 256} },
11780 .block_erase = spi_block_erase_d8,
11781 }, {
11782 .eraseblocks = { {16384 * 1024, 1} },
11783 .block_erase = spi_block_erase_c7,
11784 }
11785 },
11786 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11787 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11788 .write = spi_chip_write_256, /* Multi I/O supported */
11789 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11790 .voltage = {1700, 2000},
11791 },
11792
11793 {
11794 .vendor = "Micron/Numonyx/ST",
11795 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11796 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011797 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011798 .model_id = ST_N25Q128__3E,
11799 .total_size = 16384,
11800 .page_size = 256,
11801 /* supports SFDP */
11802 /* OTP: 64B total; read 0x4B, write 0x42 */
11803 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11804 .tested = TEST_OK_PREW,
11805 .probe = probe_spi_rdid,
11806 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011807 .block_erasers =
11808 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011809 {
11810 .eraseblocks = { {4 * 1024, 4096 } },
11811 .block_erase = spi_block_erase_20,
11812 }, {
11813 .eraseblocks = { {64 * 1024, 256} },
11814 .block_erase = spi_block_erase_d8,
11815 }, {
11816 .eraseblocks = { {16384 * 1024, 1} },
11817 .block_erase = spi_block_erase_c7,
11818 }
11819 },
11820 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11821 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11822 .write = spi_chip_write_256, /* Multi I/O supported */
11823 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11824 .voltage = {2700, 3600},
11825 },
11826
11827 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011828 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011829 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11830 .bustype = BUS_SPI,
11831 .manufacture_id = ST_ID,
11832 .model_id = ST_N25Q256__1E,
11833 .total_size = 32768,
11834 .page_size = 256,
11835 /* supports SFDP */
11836 /* OTP: 64B total; read 0x4B, write 0x42 */
11837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11838 .tested = TEST_UNTESTED,
11839 .probe = probe_spi_rdid,
11840 .probe_timing = TIMING_ZERO,
11841 .block_erasers =
11842 {
11843 {
11844 .eraseblocks = { {4 * 1024, 8192} },
11845 .block_erase = spi_block_erase_21,
11846 }, {
11847 .eraseblocks = { {4 * 1024, 8192} },
11848 .block_erase = spi_block_erase_20,
11849 }, {
11850 .eraseblocks = { {64 * 1024, 512} },
11851 .block_erase = spi_block_erase_dc,
11852 }, {
11853 .eraseblocks = { {64 * 1024, 512} },
11854 .block_erase = spi_block_erase_d8,
11855 }, {
11856 .eraseblocks = { {32768 * 1024, 1} },
11857 .block_erase = spi_block_erase_c7,
11858 }
11859 },
11860 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11861 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11862 .write = spi_chip_write_256, /* Multi I/O supported */
11863 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11864 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011865 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011866 },
11867
11868 {
11869 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011870 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11871 .bustype = BUS_SPI,
11872 .manufacture_id = ST_ID,
11873 .model_id = ST_N25Q256__3E,
11874 .total_size = 32768,
11875 .page_size = 256,
11876 /* supports SFDP */
11877 /* OTP: 64B total; read 0x4B, write 0x42 */
11878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11879 .tested = TEST_UNTESTED,
11880 .probe = probe_spi_rdid,
11881 .probe_timing = TIMING_ZERO,
11882 .block_erasers =
11883 {
11884 {
11885 .eraseblocks = { {4 * 1024, 8192} },
11886 .block_erase = spi_block_erase_21,
11887 }, {
11888 .eraseblocks = { {4 * 1024, 8192} },
11889 .block_erase = spi_block_erase_20,
11890 }, {
11891 .eraseblocks = { {64 * 1024, 512} },
11892 .block_erase = spi_block_erase_dc,
11893 }, {
11894 .eraseblocks = { {64 * 1024, 512} },
11895 .block_erase = spi_block_erase_d8,
11896 }, {
11897 .eraseblocks = { {32768 * 1024, 1} },
11898 .block_erase = spi_block_erase_c7,
11899 }
11900 },
11901 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11902 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11903 .write = spi_chip_write_256, /* Multi I/O supported */
11904 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11905 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011906 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011907 },
11908
11909 {
11910 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011911 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011912 .bustype = BUS_SPI,
11913 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011914 .model_id = ST_N25Q512__1G,
11915 .total_size = 65536,
11916 .page_size = 256,
11917 /* supports SFDP */
11918 /* OTP: 64B total; read 0x4B, write 0x42 */
11919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11920 .tested = TEST_UNTESTED,
11921 .probe = probe_spi_rdid,
11922 .probe_timing = TIMING_ZERO,
11923 .block_erasers =
11924 {
11925 {
11926 .eraseblocks = { {4 * 1024, 16384} },
11927 .block_erase = spi_block_erase_21,
11928 }, {
11929 .eraseblocks = { {4 * 1024, 16384} },
11930 .block_erase = spi_block_erase_20,
11931 }, {
11932 .eraseblocks = { {64 * 1024, 1024} },
11933 .block_erase = spi_block_erase_dc,
11934 }, {
11935 .eraseblocks = { {64 * 1024, 1024} },
11936 .block_erase = spi_block_erase_d8,
11937 }, {
11938 .eraseblocks = { {32768 * 1024, 2} },
11939 .block_erase = spi_block_erase_c4,
11940 }
11941 },
11942 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11943 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11944 .write = spi_chip_write_256, /* Multi I/O supported */
11945 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11946 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011947 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011948 },
11949
11950 {
11951 .vendor = "Micron/Numonyx/ST",
11952 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11953 .bustype = BUS_SPI,
11954 .manufacture_id = ST_ID,
11955 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011956 .total_size = 65536,
11957 .page_size = 256,
11958 /* supports SFDP */
11959 /* OTP: 64B total; read 0x4B, write 0x42 */
11960 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11961 .tested = TEST_OK_PREW,
11962 .probe = probe_spi_rdid,
11963 .probe_timing = TIMING_ZERO,
11964 .block_erasers =
11965 {
11966 {
11967 .eraseblocks = { {4 * 1024, 16384} },
11968 .block_erase = spi_block_erase_21,
11969 }, {
11970 .eraseblocks = { {4 * 1024, 16384} },
11971 .block_erase = spi_block_erase_20,
11972 }, {
11973 .eraseblocks = { {64 * 1024, 1024} },
11974 .block_erase = spi_block_erase_dc,
11975 }, {
11976 .eraseblocks = { {64 * 1024, 1024} },
11977 .block_erase = spi_block_erase_d8,
11978 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011979 .eraseblocks = { {32768 * 1024, 2} },
11980 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011981 }
11982 },
11983 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11984 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11985 .write = spi_chip_write_256, /* Multi I/O supported */
11986 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11987 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011988 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011989 },
11990
11991 {
Ed Swierk199ab392017-07-03 13:33:44 -070011992 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011993 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11994 .bustype = BUS_SPI,
11995 .manufacture_id = ST_ID,
11996 .model_id = ST_N25Q00A__3G,
11997 .total_size = 131072,
11998 .page_size = 256,
11999 /* supports SFDP */
12000 /* OTP: 64B total; read 0x4B, write 0x42 */
12001 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12002 .tested = TEST_OK_PREW,
12003 .probe = probe_spi_rdid,
12004 .probe_timing = TIMING_ZERO,
12005 .block_erasers =
12006 {
12007 {
12008 .eraseblocks = { {4 * 1024, 32768} },
12009 .block_erase = spi_block_erase_21,
12010 }, {
12011 .eraseblocks = { {4 * 1024, 32768} },
12012 .block_erase = spi_block_erase_20,
12013 }, {
12014 .eraseblocks = { {32 * 1024, 4096} },
12015 .block_erase = spi_block_erase_5c,
12016 }, {
12017 .eraseblocks = { {32 * 1024, 4096} },
12018 .block_erase = spi_block_erase_52,
12019 }, {
12020 .eraseblocks = { {64 * 1024, 2048} },
12021 .block_erase = spi_block_erase_dc,
12022 }, {
12023 .eraseblocks = { {64 * 1024, 2048} },
12024 .block_erase = spi_block_erase_d8,
12025 }, {
12026 .eraseblocks = { {65536 * 1024, 2} },
12027 .block_erase = spi_block_erase_c4,
12028 }
12029 },
12030 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12031 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12032 .write = spi_chip_write_256, /* Multi I/O supported */
12033 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12034 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012035 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012036 },
12037
12038 {
12039 .vendor = "Micron",
12040 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12041 .bustype = BUS_SPI,
12042 .manufacture_id = ST_ID,
12043 .model_id = ST_N25Q00A__1G,
12044 .total_size = 131072,
12045 .page_size = 256,
12046 /* supports SFDP */
12047 /* OTP: 64B total; read 0x4B, write 0x42 */
12048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12049 .tested = TEST_UNTESTED,
12050 .probe = probe_spi_rdid,
12051 .probe_timing = TIMING_ZERO,
12052 .block_erasers =
12053 {
12054 {
12055 .eraseblocks = { {4 * 1024, 32768} },
12056 .block_erase = spi_block_erase_21,
12057 }, {
12058 .eraseblocks = { {4 * 1024, 32768} },
12059 .block_erase = spi_block_erase_20,
12060 }, {
12061 .eraseblocks = { {32 * 1024, 4096} },
12062 .block_erase = spi_block_erase_5c,
12063 }, {
12064 .eraseblocks = { {32 * 1024, 4096} },
12065 .block_erase = spi_block_erase_52,
12066 }, {
12067 .eraseblocks = { {64 * 1024, 2048} },
12068 .block_erase = spi_block_erase_dc,
12069 }, {
12070 .eraseblocks = { {64 * 1024, 2048} },
12071 .block_erase = spi_block_erase_d8,
12072 }, {
12073 .eraseblocks = { {65536 * 1024, 2} },
12074 .block_erase = spi_block_erase_c4,
12075 }
12076 },
12077 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12078 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12079 .write = spi_chip_write_256, /* Multi I/O supported */
12080 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12081 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012082 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012083 },
12084
12085 {
12086 .vendor = "Micron",
12087 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12088 .bustype = BUS_SPI,
12089 .manufacture_id = ST_ID,
12090 .model_id = ST_MT25QL02G,
12091 .total_size = 262144,
12092 .page_size = 256,
12093 /* supports SFDP */
12094 /* OTP: 64B total; read 0x4B, write 0x42 */
12095 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12096 .tested = TEST_UNTESTED,
12097 .probe = probe_spi_rdid,
12098 .probe_timing = TIMING_ZERO,
12099 .block_erasers =
12100 {
12101 {
12102 .eraseblocks = { {4 * 1024, 65536} },
12103 .block_erase = spi_block_erase_21,
12104 }, {
12105 .eraseblocks = { {4 * 1024, 65536} },
12106 .block_erase = spi_block_erase_20,
12107 }, {
12108 .eraseblocks = { {32 * 1024, 8192} },
12109 .block_erase = spi_block_erase_5c,
12110 }, {
12111 .eraseblocks = { {32 * 1024, 8192} },
12112 .block_erase = spi_block_erase_52,
12113 }, {
12114 .eraseblocks = { {64 * 1024, 4096} },
12115 .block_erase = spi_block_erase_dc,
12116 }, {
12117 .eraseblocks = { {64 * 1024, 4096} },
12118 .block_erase = spi_block_erase_d8,
12119 }, {
12120 .eraseblocks = { {65536 * 1024, 4} },
12121 .block_erase = spi_block_erase_c4,
12122 }
12123 },
12124 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12125 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12126 .write = spi_chip_write_256, /* Multi I/O supported */
12127 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12128 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012129 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012130 },
12131
12132 {
12133 .vendor = "Micron",
12134 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12135 .bustype = BUS_SPI,
12136 .manufacture_id = ST_ID,
12137 .model_id = ST_MT25QU02G,
12138 .total_size = 262144,
12139 .page_size = 256,
12140 /* supports SFDP */
12141 /* OTP: 64B total; read 0x4B, write 0x42 */
12142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12143 .tested = TEST_UNTESTED,
12144 .probe = probe_spi_rdid,
12145 .probe_timing = TIMING_ZERO,
12146 .block_erasers =
12147 {
12148 {
12149 .eraseblocks = { {4 * 1024, 65536} },
12150 .block_erase = spi_block_erase_21,
12151 }, {
12152 .eraseblocks = { {4 * 1024, 65536} },
12153 .block_erase = spi_block_erase_20,
12154 }, {
12155 .eraseblocks = { {32 * 1024, 8192} },
12156 .block_erase = spi_block_erase_5c,
12157 }, {
12158 .eraseblocks = { {32 * 1024, 8192} },
12159 .block_erase = spi_block_erase_52,
12160 }, {
12161 .eraseblocks = { {64 * 1024, 4096} },
12162 .block_erase = spi_block_erase_dc,
12163 }, {
12164 .eraseblocks = { {64 * 1024, 4096} },
12165 .block_erase = spi_block_erase_d8,
12166 }, {
12167 .eraseblocks = { {65536 * 1024, 4} },
12168 .block_erase = spi_block_erase_c4,
12169 }
12170 },
12171 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12172 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12173 .write = spi_chip_write_256, /* Multi I/O supported */
12174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12175 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012176 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012177 },
12178
12179 {
12180 .vendor = "Micron",
12181 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12182 .bustype = BUS_SPI,
12183 .manufacture_id = ST_ID,
12184 .model_id = ST_N25Q128__1E,
12185 .total_size = 16384,
12186 .page_size = 256,
12187 /* supports SFDP */
12188 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010012189 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012190 .tested = TEST_UNTESTED,
12191 .probe = probe_spi_rdid,
12192 .probe_timing = TIMING_ZERO,
12193 .block_erasers =
12194 {
12195 {
12196 .eraseblocks = { {4 * 1024, 4096} },
12197 .block_erase = spi_block_erase_20,
12198 }, {
12199 .eraseblocks = { {32 * 1024, 512} },
12200 .block_erase = spi_block_erase_52,
12201 }, {
12202 .eraseblocks = { {64 * 1024, 256} },
12203 .block_erase = spi_block_erase_d8,
12204 }, {
12205 .eraseblocks = { {16384 * 1024, 1} },
12206 .block_erase = spi_block_erase_c7,
12207 }, {
12208 .eraseblocks = { {16384 * 1024, 1} },
12209 .block_erase = spi_block_erase_60,
12210 }
12211 },
12212 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12213 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12214 .write = spi_chip_write_256, /* Multi I/O supported */
12215 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12216 .voltage = {1700, 2000},
12217 },
12218
12219 {
12220 .vendor = "Micron",
12221 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12222 .bustype = BUS_SPI,
12223 .manufacture_id = ST_ID,
12224 .model_id = ST_N25Q128__3E,
12225 .total_size = 16384,
12226 .page_size = 256,
12227 /* supports SFDP */
12228 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080012229 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12230 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012231 .probe = probe_spi_rdid,
12232 .probe_timing = TIMING_ZERO,
12233 .block_erasers =
12234 {
12235 {
12236 .eraseblocks = { {4 * 1024, 4096} },
12237 .block_erase = spi_block_erase_20,
12238 }, {
12239 .eraseblocks = { {32 * 1024, 512} },
12240 .block_erase = spi_block_erase_52,
12241 }, {
12242 .eraseblocks = { {64 * 1024, 256} },
12243 .block_erase = spi_block_erase_d8,
12244 }, {
12245 .eraseblocks = { {16384 * 1024, 1} },
12246 .block_erase = spi_block_erase_c7,
12247 }, {
12248 .eraseblocks = { {16384 * 1024, 1} },
12249 .block_erase = spi_block_erase_60,
12250 }
12251 },
12252 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12253 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12254 .write = spi_chip_write_256, /* Multi I/O supported */
12255 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12256 .voltage = {2700, 3600},
12257 },
12258
12259 {
12260 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012261 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012262 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012263 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070012264 .model_id = ST_N25Q256__3E,
12265 .total_size = 32768,
12266 .page_size = 256,
12267 /* supports SFDP */
12268 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010012270 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012271 .probe = probe_spi_rdid,
12272 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012273 .block_erasers =
12274 {
Ed Swierk199ab392017-07-03 13:33:44 -070012275 {
12276 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012277 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012278 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012279 .eraseblocks = { {4 * 1024, 8192} },
12280 .block_erase = spi_block_erase_20,
12281 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012282 .eraseblocks = { {32 * 1024, 1024} },
12283 .block_erase = spi_block_erase_5c,
12284 }, {
12285 .eraseblocks = { {32 * 1024, 1024} },
12286 .block_erase = spi_block_erase_52,
12287 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012288 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012289 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012290 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012291 .eraseblocks = { {64 * 1024, 512} },
12292 .block_erase = spi_block_erase_d8,
12293 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012294 .eraseblocks = { {32768 * 1024, 1} },
12295 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012296 }, {
12297 .eraseblocks = { {32768 * 1024, 1} },
12298 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012299 }
12300 },
12301 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12302 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12303 .write = spi_chip_write_256, /* Multi I/O supported */
12304 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12305 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012306 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012307 },
12308
12309 {
12310 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012311 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12312 .bustype = BUS_SPI,
12313 .manufacture_id = ST_ID,
12314 .model_id = ST_N25Q256__1E,
12315 .total_size = 32768,
12316 .page_size = 256,
12317 /* supports SFDP */
12318 /* OTP: 64B total; read 0x4B, write 0x42 */
12319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010012320 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012321 .probe = probe_spi_rdid,
12322 .probe_timing = TIMING_ZERO,
12323 .block_erasers =
12324 {
12325 {
12326 .eraseblocks = { {4 * 1024, 8192} },
12327 .block_erase = spi_block_erase_21,
12328 }, {
12329 .eraseblocks = { {4 * 1024, 8192} },
12330 .block_erase = spi_block_erase_20,
12331 }, {
12332 .eraseblocks = { {32 * 1024, 1024} },
12333 .block_erase = spi_block_erase_5c,
12334 }, {
12335 .eraseblocks = { {32 * 1024, 1024} },
12336 .block_erase = spi_block_erase_52,
12337 }, {
12338 .eraseblocks = { {64 * 1024, 512} },
12339 .block_erase = spi_block_erase_dc,
12340 }, {
12341 .eraseblocks = { {64 * 1024, 512} },
12342 .block_erase = spi_block_erase_d8,
12343 }, {
12344 .eraseblocks = { {32768 * 1024, 1} },
12345 .block_erase = spi_block_erase_c7,
12346 }, {
12347 .eraseblocks = { {32768 * 1024, 1} },
12348 .block_erase = spi_block_erase_60,
12349 }
12350 },
12351 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12352 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12353 .write = spi_chip_write_256, /* Multi I/O supported */
12354 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12355 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012356 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012357 },
12358
12359 {
12360 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012361 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012362 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012363 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012364 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070012365 .total_size = 65536,
12366 .page_size = 256,
12367 /* supports SFDP */
12368 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020012370 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012371 .probe = probe_spi_rdid,
12372 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012373 .block_erasers =
12374 {
Ed Swierk199ab392017-07-03 13:33:44 -070012375 {
12376 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012377 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012378 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012379 .eraseblocks = { {4 * 1024, 16384} },
12380 .block_erase = spi_block_erase_20,
12381 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012382 .eraseblocks = { {32 * 1024, 2048} },
12383 .block_erase = spi_block_erase_5c,
12384 }, {
12385 .eraseblocks = { {32 * 1024, 2048} },
12386 .block_erase = spi_block_erase_52,
12387 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012388 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012389 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012390 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012391 .eraseblocks = { {64 * 1024, 1024} },
12392 .block_erase = spi_block_erase_d8,
12393 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012394 .eraseblocks = { {65536 * 1024, 1} },
12395 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012396 }, {
12397 .eraseblocks = { {65536 * 1024, 1} },
12398 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012399 }
12400 },
12401 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12402 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12403 .write = spi_chip_write_256, /* Multi I/O supported */
12404 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12405 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012406 .reg_bits =
12407 {
12408 .srp = {STATUS1, 7, RW},
12409 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12410 .tb = {STATUS1, 5, RW},
12411 },
Nico Huberaabb3e02023-01-13 00:22:30 +010012412 .wp_write_cfg = spi_wp_write_cfg,
12413 .wp_read_cfg = spi_wp_read_cfg,
12414 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012415 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010012416 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012417 },
12418
12419 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012420 .vendor = "Micron",
12421 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12422 .bustype = BUS_SPI,
12423 .manufacture_id = ST_ID,
12424 .model_id = ST_N25Q512__1G,
12425 .total_size = 65536,
12426 .page_size = 256,
12427 /* supports SFDP */
12428 /* OTP: 64B total; read 0x4B, write 0x42 */
12429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12430 .tested = TEST_OK_PREW,
12431 .probe = probe_spi_rdid,
12432 .probe_timing = TIMING_ZERO,
12433 .block_erasers =
12434 {
12435 {
12436 .eraseblocks = { {4 * 1024, 16384} },
12437 .block_erase = spi_block_erase_21,
12438 }, {
12439 .eraseblocks = { {4 * 1024, 16384} },
12440 .block_erase = spi_block_erase_20,
12441 }, {
12442 .eraseblocks = { {32 * 1024, 2048} },
12443 .block_erase = spi_block_erase_5c,
12444 }, {
12445 .eraseblocks = { {32 * 1024, 2048} },
12446 .block_erase = spi_block_erase_52,
12447 }, {
12448 .eraseblocks = { {64 * 1024, 1024} },
12449 .block_erase = spi_block_erase_dc,
12450 }, {
12451 .eraseblocks = { {64 * 1024, 1024} },
12452 .block_erase = spi_block_erase_d8,
12453 }, {
12454 .eraseblocks = { {65536 * 1024, 1} },
12455 .block_erase = spi_block_erase_c7,
12456 }, {
12457 .eraseblocks = { {65536 * 1024, 1} },
12458 .block_erase = spi_block_erase_60,
12459 }
12460 },
12461 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12462 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12463 .write = spi_chip_write_256, /* Multi I/O supported */
12464 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12465 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012466 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012467 },
12468
12469 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012470 .vendor = "MoselVitelic",
12471 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012472 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012473 .manufacture_id = SYNCMOS_MVC_ID,
12474 .model_id = MVC_V29C51000B,
12475 .total_size = 64,
12476 .page_size = 512,
12477 .feature_bits = FEATURE_EITHER_RESET,
12478 .tested = TEST_UNTESTED,
12479 .probe = probe_jedec,
12480 .probe_timing = TIMING_ZERO,
12481 .block_erasers =
12482 {
12483 {
12484 .eraseblocks = { {512, 128} },
12485 .block_erase = erase_sector_jedec,
12486 }, {
12487 .eraseblocks = { {64 * 1024, 1} },
12488 .block_erase = erase_chip_block_jedec,
12489 },
12490 },
12491 .write = write_jedec_1,
12492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012493 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012494 .prepare_access = prepare_memory_access,
12495 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012496 },
12497
12498 {
12499 .vendor = "MoselVitelic",
12500 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012501 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012502 .manufacture_id = SYNCMOS_MVC_ID,
12503 .model_id = MVC_V29C51000T,
12504 .total_size = 64,
12505 .page_size = 512,
12506 .feature_bits = FEATURE_EITHER_RESET,
12507 .tested = TEST_UNTESTED,
12508 .probe = probe_jedec,
12509 .probe_timing = TIMING_ZERO,
12510 .block_erasers =
12511 {
12512 {
12513 .eraseblocks = { {512, 128} },
12514 .block_erase = erase_sector_jedec,
12515 }, {
12516 .eraseblocks = { {64 * 1024, 1} },
12517 .block_erase = erase_chip_block_jedec,
12518 },
12519 },
12520 .write = write_jedec_1,
12521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012522 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012523 .prepare_access = prepare_memory_access,
12524 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012525 },
12526
12527 {
12528 .vendor = "MoselVitelic",
12529 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012530 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012531 .manufacture_id = SYNCMOS_MVC_ID,
12532 .model_id = MVC_V29C51400B,
12533 .total_size = 512,
12534 .page_size = 1024,
12535 .feature_bits = FEATURE_EITHER_RESET,
12536 .tested = TEST_UNTESTED,
12537 .probe = probe_jedec,
12538 .probe_timing = TIMING_ZERO,
12539 .block_erasers =
12540 {
12541 {
12542 .eraseblocks = { {1024, 512} },
12543 .block_erase = erase_sector_jedec,
12544 }, {
12545 .eraseblocks = { {512 * 1024, 1} },
12546 .block_erase = erase_chip_block_jedec,
12547 },
12548 },
12549 .write = write_jedec_1,
12550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012551 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012552 .prepare_access = prepare_memory_access,
12553 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012554 },
12555
12556 {
12557 .vendor = "MoselVitelic",
12558 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012559 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012560 .manufacture_id = SYNCMOS_MVC_ID,
12561 .model_id = MVC_V29C51400T,
12562 .total_size = 512,
12563 .page_size = 1024,
12564 .feature_bits = FEATURE_EITHER_RESET,
12565 .tested = TEST_UNTESTED,
12566 .probe = probe_jedec,
12567 .probe_timing = TIMING_ZERO,
12568 .block_erasers =
12569 {
12570 {
12571 .eraseblocks = { {1024, 512} },
12572 .block_erase = erase_sector_jedec,
12573 }, {
12574 .eraseblocks = { {512 * 1024, 1} },
12575 .block_erase = erase_chip_block_jedec,
12576 },
12577 },
12578 .write = write_jedec_1,
12579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012580 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012581 .prepare_access = prepare_memory_access,
12582 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012583 },
12584
12585 {
12586 .vendor = "MoselVitelic",
12587 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012588 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012589 .manufacture_id = SYNCMOS_MVC_ID,
12590 .model_id = MVC_V29LC51000,
12591 .total_size = 64,
12592 .page_size = 512,
12593 .feature_bits = FEATURE_EITHER_RESET,
12594 .tested = TEST_UNTESTED,
12595 .probe = probe_jedec,
12596 .probe_timing = TIMING_ZERO,
12597 .block_erasers =
12598 {
12599 {
12600 .eraseblocks = { {512, 128} },
12601 .block_erase = erase_sector_jedec,
12602 }, {
12603 .eraseblocks = { {64 * 1024, 1} },
12604 .block_erase = erase_chip_block_jedec,
12605 },
12606 },
12607 .write = write_jedec_1,
12608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012609 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012610 .prepare_access = prepare_memory_access,
12611 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012612 },
12613
12614 {
12615 .vendor = "MoselVitelic",
12616 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012617 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012618 .manufacture_id = SYNCMOS_MVC_ID,
12619 .model_id = MVC_V29LC51001,
12620 .total_size = 128,
12621 .page_size = 512,
12622 .feature_bits = FEATURE_EITHER_RESET,
12623 .tested = TEST_UNTESTED,
12624 .probe = probe_jedec,
12625 .probe_timing = TIMING_ZERO,
12626 .block_erasers =
12627 {
12628 {
12629 .eraseblocks = { {512, 256} },
12630 .block_erase = erase_sector_jedec,
12631 }, {
12632 .eraseblocks = { {128 * 1024, 1} },
12633 .block_erase = erase_chip_block_jedec,
12634 },
12635 },
12636 .write = write_jedec_1,
12637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012638 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012639 .prepare_access = prepare_memory_access,
12640 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012641 },
12642
12643 {
12644 .vendor = "MoselVitelic",
12645 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012646 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012647 .manufacture_id = SYNCMOS_MVC_ID,
12648 .model_id = MVC_V29LC51002,
12649 .total_size = 256,
12650 .page_size = 512,
12651 .feature_bits = FEATURE_EITHER_RESET,
12652 .tested = TEST_UNTESTED,
12653 .probe = probe_jedec,
12654 .probe_timing = TIMING_ZERO,
12655 .block_erasers =
12656 {
12657 {
12658 .eraseblocks = { {512, 512} },
12659 .block_erase = erase_sector_jedec,
12660 }, {
12661 .eraseblocks = { {256 * 1024, 1} },
12662 .block_erase = erase_chip_block_jedec,
12663 },
12664 },
12665 .write = write_jedec_1,
12666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012667 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012668 .prepare_access = prepare_memory_access,
12669 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012670 },
12671
12672 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012673 .vendor = "Nantronics",
12674 .name = "N25S10",
12675 .bustype = BUS_SPI,
12676 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12677 .model_id = NANTRONICS_N25S10,
12678 .total_size = 128,
12679 .page_size = 256,
12680 .feature_bits = FEATURE_WRSR_WREN,
12681 .tested = TEST_UNTESTED,
12682 .probe = probe_spi_rdid,
12683 .probe_timing = TIMING_ZERO,
12684 .block_erasers =
12685 {
12686 {
12687 .eraseblocks = { {4 * 1024, 32} },
12688 .block_erase = spi_block_erase_20,
12689 }, {
12690 .eraseblocks = { {4 * 1024, 32} },
12691 .block_erase = spi_block_erase_d7,
12692 }, {
12693 .eraseblocks = { {32 * 1024, 4} },
12694 .block_erase = spi_block_erase_52,
12695 }, {
12696 .eraseblocks = { {64 * 1024, 2} },
12697 .block_erase = spi_block_erase_d8,
12698 }, {
12699 .eraseblocks = { {128 * 1024, 1} },
12700 .block_erase = spi_block_erase_60,
12701 }, {
12702 .eraseblocks = { {128 * 1024, 1} },
12703 .block_erase = spi_block_erase_c7,
12704 }
12705 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012706 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012707 .unlock = spi_disable_blockprotect_bp3_srwd,
12708 .write = spi_chip_write_256,
12709 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12710 .voltage = {2700, 3600},
12711 },
12712
12713 {
12714 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012715 .name = "N25S16",
12716 .bustype = BUS_SPI,
12717 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12718 .model_id = NANTRONICS_N25S16,
12719 .total_size = 2048,
12720 .page_size = 256,
12721 .feature_bits = FEATURE_WRSR_WREN,
12722 .tested = TEST_UNTESTED,
12723 .probe = probe_spi_rdid,
12724 .probe_timing = TIMING_ZERO,
12725 .block_erasers =
12726 {
12727 {
12728 .eraseblocks = { {4 * 1024, 512} },
12729 .block_erase = spi_block_erase_20,
12730 }, {
12731 .eraseblocks = { {64 * 1024, 32} },
12732 .block_erase = spi_block_erase_d8,
12733 }, {
12734 .eraseblocks = { {2048 * 1024, 1} },
12735 .block_erase = spi_block_erase_60,
12736 }, {
12737 .eraseblocks = { {2048 * 1024, 1} },
12738 .block_erase = spi_block_erase_c7,
12739 }
12740 },
12741 .printlock = spi_prettyprint_status_register_bp3_srwd,
12742 .unlock = spi_disable_blockprotect_bp3_srwd,
12743 .write = spi_chip_write_256,
12744 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12745 .voltage = {2700, 3600},
12746 },
12747
12748 {
12749 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012750 .name = "N25S20",
12751 .bustype = BUS_SPI,
12752 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12753 .model_id = NANTRONICS_N25S20,
12754 .total_size = 256,
12755 .page_size = 256,
12756 .feature_bits = FEATURE_WRSR_WREN,
12757 .tested = TEST_UNTESTED,
12758 .probe = probe_spi_rdid,
12759 .probe_timing = TIMING_ZERO,
12760 .block_erasers =
12761 {
12762 {
12763 .eraseblocks = { {4 * 1024, 64} },
12764 .block_erase = spi_block_erase_20,
12765 }, {
12766 .eraseblocks = { {4 * 1024, 64} },
12767 .block_erase = spi_block_erase_d7,
12768 }, {
12769 .eraseblocks = { {32 * 1024, 8} },
12770 .block_erase = spi_block_erase_52,
12771 }, {
12772 .eraseblocks = { {64 * 1024, 4} },
12773 .block_erase = spi_block_erase_d8,
12774 }, {
12775 .eraseblocks = { {256 * 1024, 1} },
12776 .block_erase = spi_block_erase_60,
12777 }, {
12778 .eraseblocks = { {256 * 1024, 1} },
12779 .block_erase = spi_block_erase_c7,
12780 }
12781 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012782 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012783 .unlock = spi_disable_blockprotect_bp3_srwd,
12784 .write = spi_chip_write_256,
12785 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12786 .voltage = {2700, 3600},
12787 },
12788
12789 {
12790 .vendor = "Nantronics",
12791 .name = "N25S40",
12792 .bustype = BUS_SPI,
12793 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12794 .model_id = NANTRONICS_N25S40,
12795 .total_size = 512,
12796 .page_size = 256,
12797 .feature_bits = FEATURE_WRSR_WREN,
12798 .tested = TEST_UNTESTED,
12799 .probe = probe_spi_rdid,
12800 .probe_timing = TIMING_ZERO,
12801 .block_erasers =
12802 {
12803 {
12804 .eraseblocks = { {4 * 1024, 128} },
12805 .block_erase = spi_block_erase_20,
12806 }, {
12807 .eraseblocks = { {4 * 1024, 128} },
12808 .block_erase = spi_block_erase_d7,
12809 }, {
12810 .eraseblocks = { {32 * 1024, 16} },
12811 .block_erase = spi_block_erase_52,
12812 }, {
12813 .eraseblocks = { {64 * 1024, 8} },
12814 .block_erase = spi_block_erase_d8,
12815 }, {
12816 .eraseblocks = { {512 * 1024, 1} },
12817 .block_erase = spi_block_erase_60,
12818 }, {
12819 .eraseblocks = { {512 * 1024, 1} },
12820 .block_erase = spi_block_erase_c7,
12821 }
12822 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012823 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012824 .unlock = spi_disable_blockprotect_bp3_srwd,
12825 .write = spi_chip_write_256,
12826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12827 .voltage = {2700, 3600},
12828 },
12829
12830 {
12831 .vendor = "Nantronics",
12832 .name = "N25S80",
12833 .bustype = BUS_SPI,
12834 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12835 .model_id = NANTRONICS_N25S80,
12836 .total_size = 1024,
12837 .page_size = 256,
12838 .feature_bits = FEATURE_WRSR_WREN,
12839 .tested = TEST_UNTESTED,
12840 .probe = probe_spi_rdid,
12841 .probe_timing = TIMING_ZERO,
12842 .block_erasers =
12843 {
12844 {
12845 .eraseblocks = { {4 * 1024, 256} },
12846 .block_erase = spi_block_erase_20,
12847 }, {
12848 .eraseblocks = { {32 * 1024, 32} },
12849 .block_erase = spi_block_erase_52,
12850 }, {
12851 .eraseblocks = { {64 * 1024, 16} },
12852 .block_erase = spi_block_erase_d8,
12853 }, {
12854 .eraseblocks = { {1024 * 1024, 1} },
12855 .block_erase = spi_block_erase_60,
12856 }, {
12857 .eraseblocks = { {1024 * 1024, 1} },
12858 .block_erase = spi_block_erase_c7,
12859 }
12860 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012861 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012862 .unlock = spi_disable_blockprotect_bp3_srwd,
12863 .write = spi_chip_write_256,
12864 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12865 .voltage = {2700, 3600},
12866 },
12867
12868 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012869 .vendor = "PMC",
12870 .name = "Pm25LD010(C)",
12871 .bustype = BUS_SPI,
12872 .manufacture_id = PMC_ID,
12873 .model_id = PMC_PM25LD010,
12874 .total_size = 128,
12875 .page_size = 256,
12876 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012877 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012878 .probe = probe_spi_rdid,
12879 .probe_timing = TIMING_ZERO,
12880 .block_erasers =
12881 {
12882 {
12883 .eraseblocks = { {4 * 1024, 32} },
12884 .block_erase = spi_block_erase_20,
12885 }, {
12886 .eraseblocks = { {4 * 1024, 32} },
12887 .block_erase = spi_block_erase_d7,
12888 }, {
12889 .eraseblocks = { {32 * 1024, 4} },
12890 .block_erase = spi_block_erase_d8,
12891 }, {
12892 .eraseblocks = { {128 * 1024, 1} },
12893 .block_erase = spi_block_erase_60,
12894 }, {
12895 .eraseblocks = { {128 * 1024, 1} },
12896 .block_erase = spi_block_erase_c7,
12897 }
12898 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012899 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012900 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12901 .write = spi_chip_write_256,
12902 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12903 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12904 },
12905
12906 {
12907 .vendor = "PMC",
12908 .name = "Pm25LD020(C)",
12909 .bustype = BUS_SPI,
12910 .manufacture_id = PMC_ID,
12911 .model_id = PMC_PM25LD020,
12912 .total_size = 256,
12913 .page_size = 256,
12914 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012915 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012916 .probe = probe_spi_rdid,
12917 .probe_timing = TIMING_ZERO,
12918 .block_erasers =
12919 {
12920 {
12921 .eraseblocks = { {4 * 1024, 64} },
12922 .block_erase = spi_block_erase_20,
12923 }, {
12924 .eraseblocks = { {4 * 1024, 64} },
12925 .block_erase = spi_block_erase_d7,
12926 }, {
12927 .eraseblocks = { {64 * 1024, 4} },
12928 .block_erase = spi_block_erase_d8,
12929 }, {
12930 .eraseblocks = { {256 * 1024, 1} },
12931 .block_erase = spi_block_erase_60,
12932 }, {
12933 .eraseblocks = { {256 * 1024, 1} },
12934 .block_erase = spi_block_erase_c7,
12935 }
12936 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012937 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012938 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12939 .write = spi_chip_write_256,
12940 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12941 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12942 },
12943
12944 {
12945 .vendor = "PMC",
12946 .name = "Pm25LD040(C)",
12947 .bustype = BUS_SPI,
12948 .manufacture_id = PMC_ID,
12949 .model_id = PMC_PM25LV040,
12950 .total_size = 512,
12951 .page_size = 256,
12952 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012953 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012954 .probe = probe_spi_rdid,
12955 .probe_timing = TIMING_ZERO,
12956 .block_erasers =
12957 {
12958 {
12959 .eraseblocks = { {4 * 1024, 128} },
12960 .block_erase = spi_block_erase_20,
12961 }, {
12962 .eraseblocks = { {4 * 1024, 128} },
12963 .block_erase = spi_block_erase_d7,
12964 }, {
12965 .eraseblocks = { {64 * 1024, 8} },
12966 .block_erase = spi_block_erase_d8,
12967 }, {
12968 .eraseblocks = { {512 * 1024, 1} },
12969 .block_erase = spi_block_erase_60,
12970 }, {
12971 .eraseblocks = { {512 * 1024, 1} },
12972 .block_erase = spi_block_erase_c7,
12973 }
12974 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012975 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012976 .unlock = spi_disable_blockprotect,
12977 .write = spi_chip_write_256,
12978 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12979 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12980 },
12981
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012982 {
12983 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012984 .name = "Pm25LD256C",
12985 .bustype = BUS_SPI,
12986 .manufacture_id = PMC_ID,
12987 .model_id = PMC_PM25LD256C,
12988 .total_size = 32,
12989 .page_size = 256,
12990 .feature_bits = FEATURE_WRSR_WREN,
12991 .tested = TEST_UNTESTED,
12992 .probe = probe_spi_rdid,
12993 .probe_timing = TIMING_ZERO,
12994 .block_erasers =
12995 {
12996 {
12997 .eraseblocks = { {4 * 1024, 8} },
12998 .block_erase = spi_block_erase_20,
12999 }, {
13000 .eraseblocks = { {4 * 1024, 8} },
13001 .block_erase = spi_block_erase_d7,
13002 }, {
13003 .eraseblocks = { {32 * 1024, 1} },
13004 .block_erase = spi_block_erase_d8,
13005 }, {
13006 .eraseblocks = { {32 * 1024, 1} },
13007 .block_erase = spi_block_erase_60,
13008 }, {
13009 .eraseblocks = { {32 * 1024, 1} },
13010 .block_erase = spi_block_erase_c7,
13011 }
13012 },
13013 .printlock = spi_prettyprint_status_register_bp2_srwd,
13014 .unlock = spi_disable_blockprotect,
13015 .write = spi_chip_write_256,
13016 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13017 .voltage = {2700, 3600},
13018 },
13019
13020 {
13021 .vendor = "PMC",
13022 .name = "Pm25LD512(C)",
13023 .bustype = BUS_SPI,
13024 .manufacture_id = PMC_ID,
13025 .model_id = PMC_PM25LD512,
13026 .total_size = 64,
13027 .page_size = 256,
13028 .feature_bits = FEATURE_WRSR_WREN,
13029 .tested = TEST_OK_PREW,
13030 .probe = probe_spi_rdid,
13031 .probe_timing = TIMING_ZERO,
13032 .block_erasers =
13033 {
13034 {
13035 .eraseblocks = { {4 * 1024, 16} },
13036 .block_erase = spi_block_erase_20,
13037 }, {
13038 .eraseblocks = { {4 * 1024, 16} },
13039 .block_erase = spi_block_erase_d7,
13040 }, {
13041 .eraseblocks = { {32 * 1024, 2} },
13042 .block_erase = spi_block_erase_d8,
13043 }, {
13044 .eraseblocks = { {64 * 1024, 1} },
13045 .block_erase = spi_block_erase_60,
13046 }, {
13047 .eraseblocks = { {64 * 1024, 1} },
13048 .block_erase = spi_block_erase_c7,
13049 }
13050 },
13051 .printlock = spi_prettyprint_status_register_bp2_srwd,
13052 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13053 .write = spi_chip_write_256,
13054 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13055 .voltage = {2300, 3600},
13056 },
13057
13058 {
13059 .vendor = "PMC",
13060 .name = "Pm25LQ016",
13061 .bustype = BUS_SPI,
13062 .manufacture_id = PMC_ID,
13063 .model_id = PMC_PM25LQ016,
13064 .total_size = 2048,
13065 .page_size = 256,
13066 /* OTP: 256B total; read 0x4B, write 0xB1 */
13067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13068 .tested = TEST_UNTESTED,
13069 .probe = probe_spi_rdid,
13070 .probe_timing = TIMING_ZERO,
13071 .block_erasers =
13072 {
13073 {
13074 .eraseblocks = { {4 * 1024, 512} },
13075 .block_erase = spi_block_erase_20,
13076 }, {
13077 .eraseblocks = { {4 * 1024, 512} },
13078 .block_erase = spi_block_erase_d7,
13079 }, {
13080 .eraseblocks = { {64 * 1024, 32} },
13081 .block_erase = spi_block_erase_d8,
13082 }, {
13083 .eraseblocks = { {2048 * 1024, 1} },
13084 .block_erase = spi_block_erase_60,
13085 }, {
13086 .eraseblocks = { {2048 * 1024, 1} },
13087 .block_erase = spi_block_erase_c7,
13088 }
13089 },
13090 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13091 .unlock = spi_disable_blockprotect_bp3_srwd,
13092 .write = spi_chip_write_256,
13093 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13094 .voltage = {2300, 3600},
13095 },
13096
13097 {
13098 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013099 .name = "Pm25LQ020",
13100 .bustype = BUS_SPI,
13101 .manufacture_id = PMC_ID,
13102 .model_id = PMC_PM25LQ020,
13103 .total_size = 256,
13104 .page_size = 256,
13105 /* OTP: 256B total; read 0x4B, write 0xB1 */
13106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13107 .tested = TEST_UNTESTED,
13108 .probe = probe_spi_rdid,
13109 .probe_timing = TIMING_ZERO,
13110 .block_erasers =
13111 {
13112 {
13113 .eraseblocks = { {4 * 1024, 64} },
13114 .block_erase = spi_block_erase_20,
13115 }, {
13116 .eraseblocks = { {4 * 1024, 64} },
13117 .block_erase = spi_block_erase_d7,
13118 }, {
13119 .eraseblocks = { {64 * 1024, 4} },
13120 .block_erase = spi_block_erase_d8,
13121 }, {
13122 .eraseblocks = { {256 * 1024, 1} },
13123 .block_erase = spi_block_erase_60,
13124 }, {
13125 .eraseblocks = { {256 * 1024, 1} },
13126 .block_erase = spi_block_erase_c7,
13127 }
13128 },
13129 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13130 .unlock = spi_disable_blockprotect_bp3_srwd,
13131 .write = spi_chip_write_256,
13132 .read = spi_chip_read,
13133 .voltage = {2300, 3600},
13134 },
13135
13136 {
13137 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013138 .name = "Pm25LQ032C",
13139 .bustype = BUS_SPI,
13140 .manufacture_id = PMC_ID,
13141 .model_id = PMC_PM25LQ032C,
13142 .total_size = 4096,
13143 .page_size = 256,
13144 /* OTP: 64B total; read 0x4B, write 0xB1 */
13145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13146 .tested = TEST_OK_PREW,
13147 .probe = probe_spi_rdid,
13148 .probe_timing = TIMING_ZERO,
13149 .block_erasers =
13150 {
13151 {
13152 .eraseblocks = { {4 * 1024, 1024} },
13153 .block_erase = spi_block_erase_20,
13154 }, {
13155 .eraseblocks = { {4 * 1024, 1024} },
13156 .block_erase = spi_block_erase_d7,
13157 }, {
13158 .eraseblocks = { {64 * 1024, 64} },
13159 .block_erase = spi_block_erase_d8,
13160 }, {
13161 .eraseblocks = { {4096 * 1024, 1} },
13162 .block_erase = spi_block_erase_60,
13163 }, {
13164 .eraseblocks = { {4096 * 1024, 1} },
13165 .block_erase = spi_block_erase_c7,
13166 }
13167 },
13168 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13169 .unlock = spi_disable_blockprotect_bp3_srwd,
13170 .write = spi_chip_write_256,
13171 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13172 .voltage = {2700, 3600},
13173 },
13174
13175 {
13176 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013177 .name = "Pm25LQ040",
13178 .bustype = BUS_SPI,
13179 .manufacture_id = PMC_ID,
13180 .model_id = PMC_PM25LQ040,
13181 .total_size = 512,
13182 .page_size = 256,
13183 /* OTP: 256B total; read 0x4B, write 0xB1 */
13184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13185 .tested = TEST_UNTESTED,
13186 .probe = probe_spi_rdid,
13187 .probe_timing = TIMING_ZERO,
13188 .block_erasers =
13189 {
13190 {
13191 .eraseblocks = { {4 * 1024, 128} },
13192 .block_erase = spi_block_erase_20,
13193 }, {
13194 .eraseblocks = { {4 * 1024, 128} },
13195 .block_erase = spi_block_erase_d7,
13196 }, {
13197 .eraseblocks = { {64 * 1024, 8} },
13198 .block_erase = spi_block_erase_d8,
13199 }, {
13200 .eraseblocks = { {512 * 1024, 1} },
13201 .block_erase = spi_block_erase_60,
13202 }, {
13203 .eraseblocks = { {512 * 1024, 1} },
13204 .block_erase = spi_block_erase_c7,
13205 }
13206 },
13207 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13208 .unlock = spi_disable_blockprotect_bp3_srwd,
13209 .write = spi_chip_write_256,
13210 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13211 .voltage = {2300, 3600},
13212 },
13213
13214 {
13215 .vendor = "PMC",
13216 .name = "Pm25LQ080",
13217 .bustype = BUS_SPI,
13218 .manufacture_id = PMC_ID,
13219 .model_id = PMC_PM25LQ080,
13220 .total_size = 1024,
13221 .page_size = 256,
13222 /* OTP: 64B total; read 0x4B, write 0xB1 */
13223 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13224 .tested = TEST_UNTESTED,
13225 .probe = probe_spi_rdid,
13226 .probe_timing = TIMING_ZERO,
13227 .block_erasers =
13228 {
13229 {
13230 .eraseblocks = { {4 * 1024, 256} },
13231 .block_erase = spi_block_erase_20,
13232 }, {
13233 .eraseblocks = { {4 * 1024, 256} },
13234 .block_erase = spi_block_erase_d7,
13235 }, {
13236 .eraseblocks = { {64 * 1024, 16} },
13237 .block_erase = spi_block_erase_d8,
13238 }, {
13239 .eraseblocks = { {1024 * 1024, 1} },
13240 .block_erase = spi_block_erase_60,
13241 }, {
13242 .eraseblocks = { {1024 * 1024, 1} },
13243 .block_erase = spi_block_erase_c7,
13244 }
13245 },
13246 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13247 .unlock = spi_disable_blockprotect_bp3_srwd,
13248 .write = spi_chip_write_256,
13249 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13250 .voltage = {2300, 3600},
13251 },
13252
13253 {
13254 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013255 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013256 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000013257 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013258 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013259 .total_size = 128,
13260 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013261 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000013262 .tested = TEST_OK_PREW,
13263 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013264 .probe_timing = TIMING_ZERO,
13265 .block_erasers =
13266 {
13267 {
13268 .eraseblocks = { {4 * 1024, 32} },
13269 .block_erase = spi_block_erase_d7,
13270 }, {
13271 .eraseblocks = { {32 * 1024, 4} },
13272 .block_erase = spi_block_erase_d8,
13273 }, {
13274 .eraseblocks = { {128 * 1024, 1} },
13275 .block_erase = spi_block_erase_c7,
13276 }
13277 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013278 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013279 .unlock = spi_disable_blockprotect,
13280 .write = spi_chip_write_256,
13281 .read = spi_chip_read, /* Fast read (0x0B) supported */
13282 .voltage = {2700, 3600},
13283 },
13284
13285 {
13286 .vendor = "PMC",
13287 .name = "Pm25LV010A",
13288 .bustype = BUS_SPI,
13289 .manufacture_id = PMC_ID,
13290 .model_id = PMC_PM25LV010,
13291 .total_size = 128,
13292 .page_size = 256,
13293 .feature_bits = FEATURE_WRSR_WREN,
13294 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013295 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013296 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013297 .block_erasers =
13298 {
13299 {
13300 .eraseblocks = { {4 * 1024, 32} },
13301 .block_erase = spi_block_erase_d7,
13302 }, {
13303 .eraseblocks = { {32 * 1024, 4} },
13304 .block_erase = spi_block_erase_d8,
13305 }, {
13306 .eraseblocks = { {128 * 1024, 1} },
13307 .block_erase = spi_block_erase_c7,
13308 }
13309 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013310 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013311 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013312 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013313 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013314 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013315 },
13316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013317 {
13318 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013319 .name = "Pm25LV016B",
13320 .bustype = BUS_SPI,
13321 .manufacture_id = PMC_ID,
13322 .model_id = PMC_PM25LV016B,
13323 .total_size = 2048,
13324 .page_size = 256,
13325 .feature_bits = FEATURE_WRSR_WREN,
13326 .tested = TEST_UNTESTED,
13327 .probe = probe_spi_rdid,
13328 .probe_timing = TIMING_ZERO,
13329 .block_erasers =
13330 {
13331 {
13332 .eraseblocks = { {4 * 1024, 512} },
13333 .block_erase = spi_block_erase_d7,
13334 }, {
13335 .eraseblocks = { {4 * 1024, 512} },
13336 .block_erase = spi_block_erase_20,
13337 }, {
13338 .eraseblocks = { {64 * 1024, 32} },
13339 .block_erase = spi_block_erase_d8,
13340 }, {
13341 .eraseblocks = { {2 * 1024 * 1024, 1} },
13342 .block_erase = spi_block_erase_60,
13343 }, {
13344 .eraseblocks = { {2 * 1024 * 1024, 1} },
13345 .block_erase = spi_block_erase_c7,
13346 }
13347 },
13348 .printlock = spi_prettyprint_status_register_bp2_srwd,
13349 .unlock = spi_disable_blockprotect,
13350 .write = spi_chip_write_256,
13351 .read = spi_chip_read, /* Fast read (0x0B) supported */
13352 .voltage = {2700, 3600},
13353 },
13354
13355 {
13356 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013357 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013358 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013359 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013360 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013361 .total_size = 256,
13362 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013363 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013364 .tested = TEST_UNTESTED,
13365 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013366 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013367 .block_erasers =
13368 {
13369 {
13370 .eraseblocks = { {4 * 1024, 64} },
13371 .block_erase = spi_block_erase_d7,
13372 }, {
13373 .eraseblocks = { {64 * 1024, 4} },
13374 .block_erase = spi_block_erase_d8,
13375 }, {
13376 .eraseblocks = { {256 * 1024, 1} },
13377 .block_erase = spi_block_erase_c7,
13378 }
13379 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013380 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013381 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013382 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013383 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013384 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013385 },
13386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013387 {
13388 .vendor = "PMC",
13389 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013390 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013391 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013392 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013393 .total_size = 512,
13394 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013395 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000013396 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013397 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013398 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013399 .block_erasers =
13400 {
13401 {
13402 .eraseblocks = { {4 * 1024, 128} },
13403 .block_erase = spi_block_erase_d7,
13404 }, {
13405 .eraseblocks = { {64 * 1024, 8} },
13406 .block_erase = spi_block_erase_d8,
13407 }, {
13408 .eraseblocks = { {512 * 1024, 1} },
13409 .block_erase = spi_block_erase_c7,
13410 }
13411 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013412 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013413 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013414 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013415 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013416 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013417 },
13418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013419 {
13420 .vendor = "PMC",
13421 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013423 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013424 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013425 .total_size = 1024,
13426 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013427 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013428 .tested = TEST_UNTESTED,
13429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013430 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013431 .block_erasers =
13432 {
13433 {
13434 .eraseblocks = { {4 * 1024, 256} },
13435 .block_erase = spi_block_erase_d7,
13436 }, {
13437 .eraseblocks = { {4 * 1024, 256} },
13438 .block_erase = spi_block_erase_20,
13439 }, {
13440 .eraseblocks = { {64 * 1024, 16} },
13441 .block_erase = spi_block_erase_d8,
13442 }, {
13443 .eraseblocks = { {1024 * 1024, 1} },
13444 .block_erase = spi_block_erase_60,
13445 }, {
13446 .eraseblocks = { {1024 * 1024, 1} },
13447 .block_erase = spi_block_erase_c7,
13448 }
13449 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013450 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013451 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013452 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013453 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013454 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013455 },
13456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013457 {
13458 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013459 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013460 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013461 .manufacture_id = PMC_ID_NOPREFIX,
13462 .model_id = PMC_PM25LV512,
13463 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013464 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013465 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013466 .tested = TEST_OK_PREW,
13467 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013468 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013469 .block_erasers =
13470 {
13471 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013472 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013473 .block_erase = spi_block_erase_d7,
13474 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013475 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013476 .block_erase = spi_block_erase_d8,
13477 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013478 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013479 .block_erase = spi_block_erase_c7,
13480 }
13481 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013482 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013483 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013484 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013485 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013487 },
13488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013489 {
13490 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013491 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013492 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013493 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013494 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013495 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013496 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013497 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013498 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013499 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013500 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013501 .block_erasers =
13502 {
13503 {
13504 .eraseblocks = {
13505 {16 * 1024, 1},
13506 {8 * 1024, 2},
13507 {96 * 1024, 1},
13508 {128 * 1024, 1},
13509 },
Sean Nelson35727f72010-01-28 23:55:12 +000013510 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013511 }, {
13512 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013513 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013514 },
13515 },
Sean Nelson35727f72010-01-28 23:55:12 +000013516 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013518 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013519 .prepare_access = prepare_memory_access,
13520 .finish_access = finish_memory_access,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013521 },
13522
13523 {
13524 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013525 .name = "Pm29F002T",
13526 .bustype = BUS_PARALLEL,
13527 .manufacture_id = PMC_ID_NOPREFIX,
13528 .model_id = PMC_PM29F002T,
13529 .total_size = 256,
13530 .page_size = 8 * 1024,
13531 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13532 .tested = TEST_OK_PREW,
13533 .probe = probe_jedec,
13534 .probe_timing = TIMING_FIXME,
13535 .block_erasers =
13536 {
13537 {
13538 .eraseblocks = {
13539 {128 * 1024, 1},
13540 {96 * 1024, 1},
13541 {8 * 1024, 2},
13542 {16 * 1024, 1},
13543 },
13544 .block_erase = erase_sector_jedec,
13545 }, {
13546 .eraseblocks = { {256 * 1024, 1} },
13547 .block_erase = erase_chip_block_jedec,
13548 },
13549 },
13550 .write = write_jedec_1,
13551 .read = read_memmapped,
13552 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013553 .prepare_access = prepare_memory_access,
13554 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013555 },
13556
13557 {
13558 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013559 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013560 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013561 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013562 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013563 .total_size = 128,
13564 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013565 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013566 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013567 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013568 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013569 .block_erasers =
13570 {
13571 {
13572 .eraseblocks = { {4 * 1024, 32} },
13573 .block_erase = erase_sector_jedec,
13574 }, {
13575 .eraseblocks = { {64 * 1024, 2} },
13576 .block_erase = erase_block_jedec,
13577 }, {
13578 .eraseblocks = { {128 * 1024, 1} },
13579 .block_erase = erase_chip_block_jedec,
13580 }
13581 },
Sean Nelson35727f72010-01-28 23:55:12 +000013582 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013584 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013585 .prepare_access = prepare_memory_access,
13586 .finish_access = finish_memory_access,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013587 },
13588
13589 {
13590 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013591 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013592 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013593 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013594 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013595 .total_size = 256,
13596 .page_size = 4096,
13597 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13598 .tested = TEST_UNTESTED,
13599 .probe = probe_jedec,
13600 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013601 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013602 {
13603 {
13604 .eraseblocks = { {4 * 1024, 64} },
13605 .block_erase = erase_sector_jedec,
13606 }, {
13607 .eraseblocks = { {64 * 1024, 4} },
13608 .block_erase = erase_block_jedec,
13609 }, {
13610 .eraseblocks = { {256 * 1024, 1} },
13611 .block_erase = erase_chip_block_jedec,
13612 }
13613 },
13614 .write = write_jedec_1,
13615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013616 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013617 .prepare_access = prepare_memory_access,
13618 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013619 },
13620
13621 {
13622 .vendor = "PMC",
13623 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013624 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013625 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013626 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013627 .total_size = 512,
13628 .page_size = 4096,
13629 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013630 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013631 .probe = probe_jedec,
13632 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013633 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013634 {
13635 {
13636 .eraseblocks = { {4 * 1024, 128} },
13637 .block_erase = erase_sector_jedec,
13638 }, {
13639 .eraseblocks = { {64 * 1024, 8} },
13640 .block_erase = erase_block_jedec,
13641 }, {
13642 .eraseblocks = { {512 * 1024, 1} },
13643 .block_erase = erase_chip_block_jedec,
13644 }
13645 },
13646 .write = write_jedec_1,
13647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013648 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013649 .prepare_access = prepare_memory_access,
13650 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013651 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013652
13653 {
13654 .vendor = "PMC",
13655 .name = "Pm39LV512",
13656 .bustype = BUS_PARALLEL,
13657 .manufacture_id = PMC_ID_NOPREFIX,
13658 .model_id = PMC_PM39LV512,
13659 .total_size = 64,
13660 .page_size = 4096,
13661 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13662 .tested = TEST_OK_PREW,
13663 .probe = probe_jedec,
13664 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13665 .block_erasers =
13666 {
13667 {
13668 .eraseblocks = { {4 * 1024, 16} },
13669 .block_erase = erase_sector_jedec,
13670 }, {
13671 .eraseblocks = { {64 * 1024, 1} },
13672 .block_erase = erase_block_jedec,
13673 }, {
13674 .eraseblocks = { {64 * 1024, 1} },
13675 .block_erase = erase_chip_block_jedec,
13676 }
13677 },
13678 .write = write_jedec_1,
13679 .read = read_memmapped,
13680 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013681 .prepare_access = prepare_memory_access,
13682 .finish_access = finish_memory_access,
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013683 },
13684
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013685 {
13686 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013687 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013688 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013689 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013690 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013691 .total_size = 256,
13692 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013693 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013694 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013695 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013696 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013697 .block_erasers =
13698 {
13699 {
13700 .eraseblocks = { {4 * 1024, 64} },
13701 .block_erase = erase_sector_jedec,
13702 }, {
13703 .eraseblocks = { {16 * 1024, 16} },
13704 .block_erase = erase_block_jedec,
13705 }, {
13706 .eraseblocks = { {256 * 1024, 1} },
13707 .block_erase = erase_chip_block_jedec,
13708 }
13709 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013710 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013711 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013713 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013714 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013715 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013716 },
13717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013718 {
13719 .vendor = "PMC",
13720 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013721 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013722 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013723 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013724 .total_size = 512,
13725 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013726 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013727 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013728 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013729 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013730 .block_erasers =
13731 {
13732 {
13733 .eraseblocks = { {4 * 1024, 128} },
13734 .block_erase = erase_sector_jedec,
13735 }, {
13736 .eraseblocks = { {64 * 1024, 8} },
13737 .block_erase = erase_block_jedec,
13738 }, {
13739 .eraseblocks = { {512 * 1024, 1} },
13740 .block_erase = erase_chip_block_jedec,
13741 }
13742 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013743 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013744 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013745 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013746 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013747 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013748 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013749 },
13750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013751 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013752 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013753 .name = "SST25LF020A",
13754 .bustype = BUS_SPI,
13755 .manufacture_id = SST_ID,
13756 .model_id = SST_SST25VF020_REMS,
13757 .total_size = 256,
13758 .page_size = 256,
13759 .feature_bits = FEATURE_WRSR_EWSR,
13760 .tested = TEST_OK_PREW,
13761 .probe = probe_spi_rems,
13762 .probe_timing = TIMING_ZERO,
13763 .block_erasers =
13764 {
13765 {
13766 .eraseblocks = { {4 * 1024, 64} },
13767 .block_erase = spi_block_erase_20,
13768 }, {
13769 .eraseblocks = { {32 * 1024, 8} },
13770 .block_erase = spi_block_erase_52,
13771 }, {
13772 .eraseblocks = { {256 * 1024, 1} },
13773 .block_erase = spi_block_erase_60,
13774 },
13775 },
13776 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13777 .unlock = spi_disable_blockprotect,
13778 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13779 .read = spi_chip_read, /* Fast read (0x0B) supported */
13780 .voltage = {2700, 3600},
13781 },
13782
13783 {
13784 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013785 .name = "SST25LF040A",
13786 .bustype = BUS_SPI,
13787 .manufacture_id = SST_ID,
13788 .model_id = SST_SST25VF040_REMS,
13789 .total_size = 512,
13790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013791 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013792 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013793 .probe = probe_spi_res2,
13794 .probe_timing = TIMING_ZERO,
13795 .block_erasers =
13796 {
13797 {
13798 .eraseblocks = { {4 * 1024, 128} },
13799 .block_erase = spi_block_erase_20,
13800 }, {
13801 .eraseblocks = { {32 * 1024, 16} },
13802 .block_erase = spi_block_erase_52,
13803 }, {
13804 .eraseblocks = { {512 * 1024, 1} },
13805 .block_erase = spi_block_erase_60,
13806 },
13807 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013808 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013809 .unlock = spi_disable_blockprotect,
13810 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13811 .read = spi_chip_read,
13812 .voltage = {3000, 3600},
13813 },
13814
13815 {
13816 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013817 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013818 .bustype = BUS_SPI,
13819 .manufacture_id = SST_ID,
13820 .model_id = SST_SST25VF080_REMS,
13821 .total_size = 1024,
13822 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013823 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013824 .tested = TEST_UNTESTED,
13825 .probe = probe_spi_res2,
13826 .probe_timing = TIMING_ZERO,
13827 .block_erasers =
13828 {
13829 {
13830 .eraseblocks = { {4 * 1024, 256} },
13831 .block_erase = spi_block_erase_20,
13832 }, {
13833 .eraseblocks = { {32 * 1024, 32} },
13834 .block_erase = spi_block_erase_52,
13835 }, {
13836 .eraseblocks = { {1024 * 1024, 1} },
13837 .block_erase = spi_block_erase_60,
13838 },
13839 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013840 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013841 .unlock = spi_disable_blockprotect,
13842 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13843 .read = spi_chip_read,
13844 .voltage = {3000, 3600},
13845 },
13846
13847 {
13848 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013849 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013850 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013851 .manufacture_id = SST_ID,
13852 .model_id = SST_SST25VF010_REMS,
13853 .total_size = 128,
13854 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013855 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013856 .tested = TEST_OK_PREW,
13857 .probe = probe_spi_rems,
13858 .probe_timing = TIMING_ZERO,
13859 .block_erasers =
13860 {
13861 {
13862 .eraseblocks = { {4 * 1024, 32} },
13863 .block_erase = spi_block_erase_20,
13864 }, {
13865 .eraseblocks = { {32 * 1024, 4} },
13866 .block_erase = spi_block_erase_52,
13867 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013868 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013869 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013870 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013871 .eraseblocks = { {128 * 1024, 1} },
13872 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013873 }, {
13874 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013875 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013876 },
13877 },
13878 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13879 .unlock = spi_disable_blockprotect,
13880 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013881 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013882 .voltage = {2700, 3600},
13883 },
13884
13885 {
13886 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013887 .name = "SST25VF016B",
13888 .bustype = BUS_SPI,
13889 .manufacture_id = SST_ID,
13890 .model_id = SST_SST25VF016B,
13891 .total_size = 2048,
13892 .page_size = 256,
13893 .feature_bits = FEATURE_WRSR_EITHER,
13894 .tested = TEST_OK_PREW,
13895 .probe = probe_spi_rdid,
13896 .probe_timing = TIMING_ZERO,
13897 .block_erasers =
13898 {
13899 {
13900 .eraseblocks = { {4 * 1024, 512} },
13901 .block_erase = spi_block_erase_20,
13902 }, {
13903 .eraseblocks = { {32 * 1024, 64} },
13904 .block_erase = spi_block_erase_52,
13905 }, {
13906 .eraseblocks = { {64 * 1024, 32} },
13907 .block_erase = spi_block_erase_d8,
13908 }, {
13909 .eraseblocks = { {2 * 1024 * 1024, 1} },
13910 .block_erase = spi_block_erase_60,
13911 }, {
13912 .eraseblocks = { {2 * 1024 * 1024, 1} },
13913 .block_erase = spi_block_erase_c7,
13914 },
13915 },
13916 .printlock = spi_prettyprint_status_register_sst25vf016,
13917 .unlock = spi_disable_blockprotect,
13918 .write = spi_aai_write,
13919 .read = spi_chip_read,
13920 .voltage = {2700, 3600},
13921 },
13922
13923 {
13924 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013925 .name = "SST25VF020",
13926 .bustype = BUS_SPI,
13927 .manufacture_id = SST_ID,
13928 .model_id = SST_SST25VF020_REMS,
13929 .total_size = 256,
13930 .page_size = 256,
13931 .feature_bits = FEATURE_WRSR_EWSR,
13932 .tested = TEST_UNTESTED,
13933 .probe = probe_spi_rems,
13934 .probe_timing = TIMING_ZERO,
13935 .block_erasers =
13936 {
13937 {
13938 .eraseblocks = { {4 * 1024, 64} },
13939 .block_erase = spi_block_erase_20,
13940 }, {
13941 .eraseblocks = { {32 * 1024, 8} },
13942 .block_erase = spi_block_erase_52,
13943 }, {
13944 .eraseblocks = { {256 * 1024, 1} },
13945 .block_erase = spi_block_erase_60,
13946 },
13947 },
13948 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13949 .unlock = spi_disable_blockprotect,
13950 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13951 .read = spi_chip_read, /* only */
13952 .voltage = {2700, 3600},
13953 },
13954
13955 {
13956 .vendor = "SST",
13957 .name = "SST25VF020B",
13958 .bustype = BUS_SPI,
13959 .manufacture_id = SST_ID,
13960 .model_id = SST_SST25VF020B,
13961 .total_size = 256,
13962 .page_size = 256,
13963 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013964 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013965 .probe = probe_spi_rdid,
13966 .probe_timing = TIMING_ZERO,
13967 .block_erasers =
13968 {
13969 {
13970 .eraseblocks = { {4 * 1024, 64} },
13971 .block_erase = spi_block_erase_20,
13972 }, {
13973 .eraseblocks = { {32 * 1024, 8} },
13974 .block_erase = spi_block_erase_52,
13975 }, {
13976 .eraseblocks = { {64 * 1024, 4} },
13977 .block_erase = spi_block_erase_d8,
13978 }, {
13979 .eraseblocks = { {256 * 1024, 1} },
13980 .block_erase = spi_block_erase_60,
13981 }, {
13982 .eraseblocks = { {256 * 1024, 1} },
13983 .block_erase = spi_block_erase_c7,
13984 },
13985 },
13986 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13987 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13988 .write = spi_aai_write, /* AAI supported (0xAD) */
13989 .read = spi_chip_read, /* Fast read (0x0B) supported */
13990 .voltage = {2700, 3600},
13991 },
13992
13993 {
13994 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013995 .name = "SST25VF032B",
13996 .bustype = BUS_SPI,
13997 .manufacture_id = SST_ID,
13998 .model_id = SST_SST25VF032B,
13999 .total_size = 4096,
14000 .page_size = 256,
14001 .feature_bits = FEATURE_WRSR_EWSR,
14002 .tested = TEST_OK_PREW,
14003 .probe = probe_spi_rdid,
14004 .probe_timing = TIMING_ZERO,
14005 .block_erasers =
14006 {
14007 {
14008 .eraseblocks = { {4 * 1024, 1024} },
14009 .block_erase = spi_block_erase_20,
14010 }, {
14011 .eraseblocks = { {32 * 1024, 128} },
14012 .block_erase = spi_block_erase_52,
14013 }, {
14014 .eraseblocks = { {64 * 1024, 64} },
14015 .block_erase = spi_block_erase_d8,
14016 }, {
14017 .eraseblocks = { {4 * 1024 * 1024, 1} },
14018 .block_erase = spi_block_erase_60,
14019 }, {
14020 .eraseblocks = { {4 * 1024 * 1024, 1} },
14021 .block_erase = spi_block_erase_c7,
14022 },
14023 },
14024 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14025 .unlock = spi_disable_blockprotect,
14026 .write = spi_aai_write,
14027 .read = spi_chip_read,
14028 .voltage = {2700, 3600},
14029 },
14030
14031 {
14032 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014033 .name = "SST25VF040",
14034 .bustype = BUS_SPI,
14035 .manufacture_id = SST_ID,
14036 .model_id = SST_SST25VF040_REMS,
14037 .total_size = 512,
14038 .page_size = 256,
14039 .feature_bits = FEATURE_WRSR_EWSR,
14040 .tested = TEST_OK_PR,
14041 .probe = probe_spi_rems,
14042 .probe_timing = TIMING_ZERO,
14043 .block_erasers =
14044 {
14045 {
14046 .eraseblocks = { {4 * 1024, 128} },
14047 .block_erase = spi_block_erase_20,
14048 }, {
14049 .eraseblocks = { {32 * 1024, 16} },
14050 .block_erase = spi_block_erase_52,
14051 }, {
14052 .eraseblocks = { {512 * 1024, 1} },
14053 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000014054 },
14055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014056 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000014057 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000014058 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14059 .read = spi_chip_read,
14060 .voltage = {2700, 3600},
14061 },
14062
14063 {
14064 .vendor = "SST",
14065 .name = "SST25VF040B",
14066 .bustype = BUS_SPI,
14067 .manufacture_id = SST_ID,
14068 .model_id = SST_SST25VF040B,
14069 .total_size = 512,
14070 .page_size = 256,
14071 .feature_bits = FEATURE_WRSR_EWSR,
14072 .tested = TEST_OK_PREW,
14073 .probe = probe_spi_rdid,
14074 .probe_timing = TIMING_ZERO,
14075 .block_erasers =
14076 {
14077 {
14078 .eraseblocks = { {4 * 1024, 128} },
14079 .block_erase = spi_block_erase_20,
14080 }, {
14081 .eraseblocks = { {32 * 1024, 16} },
14082 .block_erase = spi_block_erase_52,
14083 }, {
14084 .eraseblocks = { {64 * 1024, 8} },
14085 .block_erase = spi_block_erase_d8,
14086 }, {
14087 .eraseblocks = { {512 * 1024, 1} },
14088 .block_erase = spi_block_erase_60,
14089 }, {
14090 .eraseblocks = { {512 * 1024, 1} },
14091 .block_erase = spi_block_erase_c7,
14092 },
14093 },
14094 .printlock = spi_prettyprint_status_register_sst25vf040b,
14095 .unlock = spi_disable_blockprotect,
14096 .write = spi_aai_write, /* AAI supported (0xAD) */
14097 .read = spi_chip_read, /* Fast read (0x0B) supported */
14098 .voltage = {2700, 3600},
14099 },
14100
14101 {
14102 .vendor = "SST",
14103 .name = "SST25VF040B.REMS",
14104 .bustype = BUS_SPI,
14105 .manufacture_id = SST_ID,
14106 .model_id = SST_SST25VF040B_REMS,
14107 .total_size = 512,
14108 .page_size = 256,
14109 .feature_bits = FEATURE_WRSR_EWSR,
14110 .tested = TEST_OK_PREW,
14111 .probe = probe_spi_rems,
14112 .probe_timing = TIMING_ZERO,
14113 .block_erasers =
14114 {
14115 {
14116 .eraseblocks = { {4 * 1024, 128} },
14117 .block_erase = spi_block_erase_20,
14118 }, {
14119 .eraseblocks = { {32 * 1024, 16} },
14120 .block_erase = spi_block_erase_52,
14121 }, {
14122 .eraseblocks = { {64 * 1024, 8} },
14123 .block_erase = spi_block_erase_d8,
14124 }, {
14125 .eraseblocks = { {512 * 1024, 1} },
14126 .block_erase = spi_block_erase_60,
14127 }, {
14128 .eraseblocks = { {512 * 1024, 1} },
14129 .block_erase = spi_block_erase_c7,
14130 },
14131 },
14132 .printlock = spi_prettyprint_status_register_sst25vf040b,
14133 .unlock = spi_disable_blockprotect,
14134 .write = spi_aai_write,
14135 .read = spi_chip_read,
14136 .voltage = {2700, 3600},
14137 },
14138
14139 {
14140 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014141 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000014142 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014143 .manufacture_id = SST_ID,
14144 .model_id = SST_SST25VF064C,
14145 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014146 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014147 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014148 .tested = TEST_OK_PREW,
14149 .probe = probe_spi_rdid,
14150 .probe_timing = TIMING_ZERO,
14151 .block_erasers =
14152 {
14153 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014154 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014155 .block_erase = spi_block_erase_20,
14156 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014157 .eraseblocks = { {32 * 1024, 256} },
14158 .block_erase = spi_block_erase_52,
14159 }, {
14160 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014161 .block_erase = spi_block_erase_d8,
14162 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014163 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014164 .block_erase = spi_block_erase_60,
14165 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014166 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014167 .block_erase = spi_block_erase_c7,
14168 },
14169 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014170 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14171 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014172 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014173 .read = spi_chip_read,
14174 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000014175 },
14176
14177 {
14178 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014179 .name = "SST25VF080B",
14180 .bustype = BUS_SPI,
14181 .manufacture_id = SST_ID,
14182 .model_id = SST_SST25VF080B,
14183 .total_size = 1024,
14184 .page_size = 256,
14185 .feature_bits = FEATURE_WRSR_EWSR,
14186 .tested = TEST_OK_PREW,
14187 .probe = probe_spi_rdid,
14188 .probe_timing = TIMING_ZERO,
14189 .block_erasers =
14190 {
14191 {
14192 .eraseblocks = { {4 * 1024, 256} },
14193 .block_erase = spi_block_erase_20,
14194 }, {
14195 .eraseblocks = { {32 * 1024, 32} },
14196 .block_erase = spi_block_erase_52,
14197 }, {
14198 .eraseblocks = { {64 * 1024, 16} },
14199 .block_erase = spi_block_erase_d8,
14200 }, {
14201 .eraseblocks = { {1024 * 1024, 1} },
14202 .block_erase = spi_block_erase_60,
14203 }, {
14204 .eraseblocks = { {1024 * 1024, 1} },
14205 .block_erase = spi_block_erase_c7,
14206 },
14207 },
14208 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14209 .unlock = spi_disable_blockprotect,
14210 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000014211 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014212 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000014213 },
14214
14215 {
14216 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014217 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014218 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014219 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014220 .model_id = SST_SST25VF512_REMS,
14221 .total_size = 64,
14222 .page_size = 256,
14223 .feature_bits = FEATURE_WRSR_EWSR,
14224 .tested = TEST_OK_PREW,
14225 .probe = probe_spi_rems,
14226 .probe_timing = TIMING_ZERO,
14227 .block_erasers =
14228 {
14229 {
14230 .eraseblocks = { {4 * 1024, 16} },
14231 .block_erase = spi_block_erase_20,
14232 }, {
14233 .eraseblocks = { {32 * 1024, 2} },
14234 .block_erase = spi_block_erase_52,
14235 }, {
14236 .eraseblocks = { {32 * 1024, 2} },
14237 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
14238 }, {
14239 .eraseblocks = { {64 * 1024, 1} },
14240 .block_erase = spi_block_erase_60,
14241 }, {
14242 .eraseblocks = { {64 * 1024, 1} },
14243 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
14244 },
14245 },
14246 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14247 .unlock = spi_disable_blockprotect,
14248 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14249 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
14250 .voltage = {2700, 3600},
14251 },
14252
14253 {
14254 .vendor = "SST",
14255 .name = "SST25WF010",
14256 .bustype = BUS_SPI,
14257 .manufacture_id = SST_ID,
14258 .model_id = SST_SST25WF010,
14259 .total_size = 128,
14260 .page_size = 256,
14261 .feature_bits = FEATURE_WRSR_EITHER,
14262 .tested = TEST_UNTESTED,
14263 .probe = probe_spi_rdid,
14264 .probe_timing = TIMING_ZERO,
14265 .block_erasers =
14266 {
14267 {
14268 .eraseblocks = { {4 * 1024, 32} },
14269 .block_erase = spi_block_erase_20,
14270 }, {
14271 .eraseblocks = { {32 * 1024, 4} },
14272 .block_erase = spi_block_erase_52,
14273 }, {
14274 .eraseblocks = { {1024 * 128, 1} },
14275 .block_erase = spi_block_erase_60,
14276 }, {
14277 .eraseblocks = { {1024 * 128, 1} },
14278 .block_erase = spi_block_erase_c7,
14279 },
14280 },
14281 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14282 .unlock = spi_disable_blockprotect_bp2_srwd,
14283 .write = spi_aai_write,
14284 .read = spi_chip_read, /* Fast read (0x0B) supported */
14285 .voltage = {1650, 1950},
14286 },
14287
14288 {
14289 .vendor = "SST",
14290 .name = "SST25WF020",
14291 .bustype = BUS_SPI,
14292 .manufacture_id = SST_ID,
14293 .model_id = SST_SST25WF020,
14294 .total_size = 256,
14295 .page_size = 256,
14296 .feature_bits = FEATURE_WRSR_EITHER,
14297 .tested = TEST_UNTESTED,
14298 .probe = probe_spi_rdid,
14299 .probe_timing = TIMING_ZERO,
14300 .block_erasers =
14301 {
14302 {
14303 .eraseblocks = { {4 * 1024, 64} },
14304 .block_erase = spi_block_erase_20,
14305 }, {
14306 .eraseblocks = { {32 * 1024, 8} },
14307 .block_erase = spi_block_erase_52,
14308 }, {
14309 .eraseblocks = { {64 * 1024, 4} },
14310 .block_erase = spi_block_erase_d8,
14311 }, {
14312 .eraseblocks = { {1024 * 256, 1} },
14313 .block_erase = spi_block_erase_60,
14314 }, {
14315 .eraseblocks = { {1024 * 256, 1} },
14316 .block_erase = spi_block_erase_c7,
14317 },
14318 },
14319 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14320 .unlock = spi_disable_blockprotect_bp2_srwd,
14321 .write = spi_aai_write,
14322 .read = spi_chip_read, /* Fast read (0x0B) supported */
14323 .voltage = {1650, 1950},
14324 },
14325
14326 {
14327 .vendor = "SST",
14328 .name = "SST25WF020A",
14329 .bustype = BUS_SPI,
14330 .manufacture_id = SANYO_ID, /* See flashchips.h */
14331 .model_id = SST_SST25WF020A,
14332 .total_size = 256,
14333 .page_size = 256,
14334 .feature_bits = FEATURE_WRSR_WREN,
14335 .tested = TEST_UNTESTED,
14336 .probe = probe_spi_rdid,
14337 .probe_timing = TIMING_ZERO,
14338 .block_erasers =
14339 {
14340 {
14341 .eraseblocks = { {4 * 1024, 64} },
14342 .block_erase = spi_block_erase_20,
14343 }, {
14344 .eraseblocks = { {64 * 1024, 4} },
14345 .block_erase = spi_block_erase_d8,
14346 }, {
14347 .eraseblocks = { {256 * 1024, 1} },
14348 .block_erase = spi_block_erase_60,
14349 }, {
14350 .eraseblocks = { {256 * 1024, 1} },
14351 .block_erase = spi_block_erase_c7,
14352 },
14353 },
14354 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14355 .unlock = spi_disable_blockprotect_bp2_srwd,
14356 .write = spi_chip_write_256,
14357 .read = spi_chip_read, /* Fast read (0x0B) supported */
14358 .voltage = {1650, 1950},
14359 },
14360
14361 {
14362 .vendor = "SST",
14363 .name = "SST25WF040",
14364 .bustype = BUS_SPI,
14365 .manufacture_id = SST_ID,
14366 .model_id = SST_SST25WF040,
14367 .total_size = 512,
14368 .page_size = 256,
14369 .feature_bits = FEATURE_WRSR_EITHER,
14370 .tested = TEST_UNTESTED,
14371 .probe = probe_spi_rdid,
14372 .probe_timing = TIMING_ZERO,
14373 .block_erasers =
14374 {
14375 {
14376 .eraseblocks = { {4 * 1024, 128} },
14377 .block_erase = spi_block_erase_20,
14378 }, {
14379 .eraseblocks = { {32 * 1024, 16} },
14380 .block_erase = spi_block_erase_52,
14381 }, {
14382 .eraseblocks = { {64 * 1024, 8} },
14383 .block_erase = spi_block_erase_d8,
14384 }, {
14385 .eraseblocks = { {1024 * 512, 1} },
14386 .block_erase = spi_block_erase_60,
14387 }, {
14388 .eraseblocks = { {1024 * 512, 1} },
14389 .block_erase = spi_block_erase_c7,
14390 },
14391 },
14392 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14393 .unlock = spi_disable_blockprotect_bp2_srwd,
14394 .write = spi_aai_write,
14395 .read = spi_chip_read, /* Fast read (0x0B) supported */
14396 .voltage = {1650, 1950},
14397 },
14398
14399 {
14400 .vendor = "SST",
14401 .name = "SST25WF040B",
14402 .bustype = BUS_SPI,
14403 .manufacture_id = SANYO_ID, /* See flashchips.h */
14404 .model_id = SST_SST25WF040B,
14405 .total_size = 512,
14406 .page_size = 256,
14407 .feature_bits = FEATURE_WRSR_WREN,
14408 .tested = TEST_UNTESTED,
14409 .probe = probe_spi_rdid,
14410 .probe_timing = TIMING_ZERO,
14411 .block_erasers =
14412 {
14413 {
14414 .eraseblocks = { {4 * 1024, 128} },
14415 .block_erase = spi_block_erase_20,
14416 }, {
14417 .eraseblocks = { {64 * 1024, 8} },
14418 .block_erase = spi_block_erase_d8,
14419 }, {
14420 .eraseblocks = { {512 * 1024, 1} },
14421 .block_erase = spi_block_erase_60,
14422 }, {
14423 .eraseblocks = { {512 * 1024, 1} },
14424 .block_erase = spi_block_erase_c7,
14425 },
14426 },
14427 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14428 .unlock = spi_disable_blockprotect_bp2_srwd,
14429 .write = spi_chip_write_256,
14430 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14431 .voltage = {1650, 1950},
14432 },
14433
14434 {
14435 .vendor = "SST",
14436 .name = "SST25WF080",
14437 .bustype = BUS_SPI,
14438 .manufacture_id = SST_ID,
14439 .model_id = SST_SST25WF080,
14440 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014441 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014442 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014443 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014444 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014445 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014446 .block_erasers =
14447 {
14448 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014449 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014450 .block_erase = spi_block_erase_20,
14451 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014452 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014453 .block_erase = spi_block_erase_52,
14454 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014455 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014456 .block_erase = spi_block_erase_d8,
14457 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014458 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014459 .block_erase = spi_block_erase_60,
14460 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014461 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014462 .block_erase = spi_block_erase_c7,
14463 },
14464 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014465 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14466 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014467 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014468 .read = spi_chip_read, /* Fast read (0x0B) supported */
14469 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014470 },
14471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014472 {
14473 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014474 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014475 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014476 .manufacture_id = SANYO_ID, /* See flashchips.h */
14477 .model_id = SST_SST25WF080B,
14478 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014479 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014480 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014481 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014483 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014484 .block_erasers =
14485 {
14486 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014487 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014488 .block_erase = spi_block_erase_20,
14489 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014490 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014491 .block_erase = spi_block_erase_d8,
14492 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014493 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014494 .block_erase = spi_block_erase_60,
14495 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014496 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014497 .block_erase = spi_block_erase_c7,
14498 },
14499 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014500 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14501 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014502 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014503 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14504 .voltage = {1650, 1950},
14505 },
14506
14507 {
14508 .vendor = "SST",
14509 .name = "SST25WF512",
14510 .bustype = BUS_SPI,
14511 .manufacture_id = SST_ID,
14512 .model_id = SST_SST25WF512,
14513 .total_size = 64,
14514 .page_size = 256,
14515 .feature_bits = FEATURE_WRSR_EITHER,
14516 .tested = TEST_UNTESTED,
14517 .probe = probe_spi_rdid,
14518 .probe_timing = TIMING_ZERO,
14519 .block_erasers =
14520 {
14521 {
14522 .eraseblocks = { {4 * 1024, 16} },
14523 .block_erase = spi_block_erase_20,
14524 }, {
14525 .eraseblocks = { {32 * 1024, 2} },
14526 .block_erase = spi_block_erase_52,
14527 }, {
14528 .eraseblocks = { {1024 * 64, 1} },
14529 .block_erase = spi_block_erase_60,
14530 }, {
14531 .eraseblocks = { {1024 * 64, 1} },
14532 .block_erase = spi_block_erase_c7,
14533 },
14534 },
14535 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14536 .unlock = spi_disable_blockprotect_bp2_srwd,
14537 .write = spi_aai_write,
14538 .read = spi_chip_read, /* Fast read (0x0B) supported */
14539 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014540 },
14541
14542 {
14543 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014544 .name = "SST26VF016",
14545 .bustype = BUS_SPI,
14546 .manufacture_id = SST_ID,
14547 .model_id = SST_SST26VF016,
14548 .total_size = 2048,
14549 .page_size = 256,
14550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14551 .tested = TEST_UNTESTED,
14552 .probe = probe_spi_rdid,
14553 .probe_timing = TIMING_ZERO,
14554 .block_erasers =
14555 {
14556 {
14557 .eraseblocks = { {4 * 1024, 512} },
14558 .block_erase = spi_block_erase_20,
14559 }, {
14560 .eraseblocks = {
14561 {8 * 1024, 4},
14562 {32 * 1024, 1},
14563 {64 * 1024, 30},
14564 {32 * 1024, 1},
14565 {8 * 1024, 4},
14566 },
14567 .block_erase = spi_block_erase_d8,
14568 }, {
14569 .eraseblocks = { {2 * 1024 * 1024, 1} },
14570 .block_erase = spi_block_erase_c7,
14571 },
14572 },
14573 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14574 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14575 .write = spi_chip_write_256, /* Multi I/O supported */
14576 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14577 .voltage = {2700, 3600},
14578 },
14579
14580 {
14581 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014582 .name = "SST26VF016B(A)",
14583 .bustype = BUS_SPI,
14584 .manufacture_id = SST_ID,
14585 .model_id = SST_SST26VF016B,
14586 .total_size = 2048,
14587 .page_size = 256,
14588 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14589 .tested = TEST_OK_PREW,
14590 .probe = probe_spi_rdid,
14591 .probe_timing = TIMING_ZERO,
14592 .block_erasers =
14593 {
14594 {
14595 .eraseblocks = { {4 * 1024, 512} },
14596 .block_erase = spi_block_erase_20,
14597 }, {
14598 .eraseblocks = {
14599 {8 * 1024, 4},
14600 {32 * 1024, 1},
14601 {64 * 1024, 30},
14602 {32 * 1024, 1},
14603 {8 * 1024, 4},
14604 },
14605 .block_erase = spi_block_erase_d8,
14606 }, {
14607 .eraseblocks = { {2 * 1024 * 1024, 1} },
14608 .block_erase = spi_block_erase_c7,
14609 },
14610 },
14611 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14612 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14613 .write = spi_chip_write_256, /* Multi I/O supported */
14614 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14615 .voltage = {2700, 3600},
14616 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014617
Wei Hu25584de2018-04-30 14:02:08 -070014618 {
14619 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014620 .name = "SST26VF032",
14621 .bustype = BUS_SPI,
14622 .manufacture_id = SST_ID,
14623 .model_id = SST_SST26VF032,
14624 .total_size = 4096,
14625 .page_size = 256,
14626 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14627 .tested = TEST_UNTESTED,
14628 .probe = probe_spi_rdid,
14629 .probe_timing = TIMING_ZERO,
14630 .block_erasers =
14631 {
14632 {
14633 .eraseblocks = { {4 * 1024, 1024} },
14634 .block_erase = spi_block_erase_20,
14635 }, {
14636 .eraseblocks = {
14637 {8 * 1024, 4},
14638 {32 * 1024, 1},
14639 {64 * 1024, 62},
14640 {32 * 1024, 1},
14641 {8 * 1024, 4},
14642 },
14643 .block_erase = spi_block_erase_d8,
14644 }, {
14645 .eraseblocks = { {4 * 1024 * 1024, 1} },
14646 .block_erase = spi_block_erase_c7,
14647 },
14648 },
14649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14650 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14651 .write = spi_chip_write_256, /* Multi I/O supported */
14652 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14653 .voltage = {2700, 3600},
14654 },
14655
14656 {
14657 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014658 .name = "SST26VF032B(A)",
14659 .bustype = BUS_SPI,
14660 .manufacture_id = SST_ID,
14661 .model_id = SST_SST26VF032B,
14662 .total_size = 4096,
14663 .page_size = 256,
14664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14665 .tested = TEST_UNTESTED,
14666 .probe = probe_spi_rdid,
14667 .probe_timing = TIMING_ZERO,
14668 .block_erasers =
14669 {
14670 {
14671 .eraseblocks = { {4 * 1024, 1024} },
14672 .block_erase = spi_block_erase_20,
14673 }, {
14674 .eraseblocks = {
14675 {8 * 1024, 4},
14676 {32 * 1024, 1},
14677 {64 * 1024, 62},
14678 {32 * 1024, 1},
14679 {8 * 1024, 4},
14680 },
14681 .block_erase = spi_block_erase_d8,
14682 }, {
14683 .eraseblocks = { {4 * 1024 * 1024, 1} },
14684 .block_erase = spi_block_erase_c7,
14685 },
14686 },
14687 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14688 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14689 .write = spi_chip_write_256, /* Multi I/O supported */
14690 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14691 .voltage = {2700, 3600},
14692 },
14693
Wei Hu25584de2018-04-30 14:02:08 -070014694 {
14695 .vendor = "SST",
14696 .name = "SST26VF064B(A)",
14697 .bustype = BUS_SPI,
14698 .manufacture_id = SST_ID,
14699 .model_id = SST_SST26VF064B,
14700 .total_size = 8192,
14701 .page_size = 256,
14702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14703 .tested = TEST_OK_PREW,
14704 .probe = probe_spi_rdid,
14705 .probe_timing = TIMING_ZERO,
14706 .block_erasers =
14707 {
14708 {
14709 .eraseblocks = { {4 * 1024, 2048} },
14710 .block_erase = spi_block_erase_20,
14711 }, {
14712 .eraseblocks = {
14713 {8 * 1024, 4},
14714 {32 * 1024, 1},
14715 {64 * 1024, 126},
14716 {32 * 1024, 1},
14717 {8 * 1024, 4},
14718 },
14719 .block_erase = spi_block_erase_d8,
14720 }, {
14721 .eraseblocks = { {8 * 1024 * 1024, 1} },
14722 .block_erase = spi_block_erase_c7,
14723 },
14724 },
14725 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14726 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14727 .write = spi_chip_write_256, /* Multi I/O supported */
14728 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14729 .voltage = {2700, 3600},
14730 },
14731
14732 {
14733 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014734 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014735 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014736 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014737 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014738 .total_size = 512,
14739 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014740 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014741 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014742 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014743 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014744 .block_erasers =
14745 {
14746 {
14747 .eraseblocks = { {128, 4096} },
14748 .block_erase = erase_sector_28sf040,
14749 }, {
14750 .eraseblocks = { {512 * 1024, 1} },
14751 .block_erase = erase_chip_28sf040,
14752 }
14753 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014754 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014755 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014757 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014758 .prepare_access = prepare_memory_access,
14759 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014760 },
14761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014762 {
14763 .vendor = "SST",
14764 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014765 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014766 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014767 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014768 .total_size = 128,
14769 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014770 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014771 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014772 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014773 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014774 .block_erasers =
14775 {
14776 {
14777 .eraseblocks = { {128 * 1024, 1} },
14778 .block_erase = erase_chip_block_jedec,
14779 }
14780 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014781 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014783 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014784 .prepare_access = prepare_memory_access,
14785 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014786 },
14787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014788 {
14789 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014790 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014791 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014793 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014794 .total_size = 256,
14795 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014796 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014797 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014798 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014799 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014800 .block_erasers =
14801 {
14802 {
14803 .eraseblocks = { {256 * 1024, 1} },
14804 .block_erase = erase_chip_block_jedec,
14805 }
14806 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014807 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014808 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014809 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014810 .prepare_access = prepare_memory_access,
14811 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014812 },
14813
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014814 {
14815 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014816 .name = "SST29LE010",
14817 .bustype = BUS_PARALLEL,
14818 .manufacture_id = SST_ID,
14819 .model_id = SST_SST29LE010,
14820 .total_size = 128,
14821 .page_size = 128,
14822 .feature_bits = FEATURE_LONG_RESET,
14823 .tested = TEST_UNTESTED,
14824 .probe = probe_jedec,
14825 .probe_timing = 10,
14826 .block_erasers =
14827 {
14828 {
14829 .eraseblocks = { {128 * 1024, 1} },
14830 .block_erase = erase_chip_block_jedec,
14831 }
14832 },
14833 .write = write_jedec,
14834 .read = read_memmapped,
14835 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014836 .prepare_access = prepare_memory_access,
14837 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014838 },
14839
14840 {
14841 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014842 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014843 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014844 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014845 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014846 .total_size = 256,
14847 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014848 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014849 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014850 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014851 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014852 .block_erasers =
14853 {
14854 {
14855 .eraseblocks = { {256 * 1024, 1} },
14856 .block_erase = erase_chip_block_jedec,
14857 }
14858 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014859 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014861 .voltage = {3000, 3600},
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 = "SST39SF010A",
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_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014872 .total_size = 128,
14873 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014874 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014875 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014876 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014877 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014878 .block_erasers =
14879 {
14880 {
14881 .eraseblocks = { {4 * 1024, 32} },
14882 .block_erase = erase_sector_jedec,
14883 }, {
14884 .eraseblocks = { {128 * 1024, 1} },
14885 .block_erase = erase_chip_block_jedec,
14886 }
14887 },
Sean Nelson35727f72010-01-28 23:55:12 +000014888 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014889 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014890 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014891 .prepare_access = prepare_memory_access,
14892 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014893 },
14894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014895 {
14896 .vendor = "SST",
14897 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014898 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014899 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014900 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014901 .total_size = 256,
14902 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014903 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014904 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014905 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014906 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014907 .block_erasers =
14908 {
14909 {
14910 .eraseblocks = { {4 * 1024, 64} },
14911 .block_erase = erase_sector_jedec,
14912 }, {
14913 .eraseblocks = { {256 * 1024, 1} },
14914 .block_erase = erase_chip_block_jedec,
14915 }
14916 },
Sean Nelson35727f72010-01-28 23:55:12 +000014917 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014919 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014920 .prepare_access = prepare_memory_access,
14921 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014922 },
14923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014924 {
14925 .vendor = "SST",
14926 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014927 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014928 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014929 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014930 .total_size = 512,
14931 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014932 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014933 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014934 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014935 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014936 .block_erasers =
14937 {
14938 {
14939 .eraseblocks = { {4 * 1024, 128} },
14940 .block_erase = erase_sector_jedec,
14941 }, {
14942 .eraseblocks = { {512 * 1024, 1} },
14943 .block_erase = erase_chip_block_jedec,
14944 }
14945 },
Sean Nelson35727f72010-01-28 23:55:12 +000014946 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014948 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014949 .prepare_access = prepare_memory_access,
14950 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014951 },
14952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014953 {
14954 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014955 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014956 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014957 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014958 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014959 .total_size = 64,
14960 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014961 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014962 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014963 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014964 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014965 .block_erasers =
14966 {
14967 {
14968 .eraseblocks = { {4 * 1024, 16} },
14969 .block_erase = erase_sector_jedec,
14970 }, {
14971 .eraseblocks = { {64 * 1024, 1} },
14972 .block_erase = erase_chip_block_jedec,
14973 }
14974 },
Sean Nelson35727f72010-01-28 23:55:12 +000014975 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014976 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014977 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014978 .prepare_access = prepare_memory_access,
14979 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014980 },
14981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014982 {
14983 .vendor = "SST",
14984 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014986 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014987 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014988 .total_size = 128,
14989 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014990 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014992 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014993 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014994 .block_erasers =
14995 {
14996 {
14997 .eraseblocks = { {4 * 1024, 32} },
14998 .block_erase = erase_sector_jedec,
14999 }, {
15000 .eraseblocks = { {128 * 1024, 1} },
15001 .block_erase = erase_chip_block_jedec,
15002 }
15003 },
Sean Nelson35727f72010-01-28 23:55:12 +000015004 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015006 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015007 .prepare_access = prepare_memory_access,
15008 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015009 },
15010
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015011 {
15012 .vendor = "SST",
15013 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015014 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015015 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015016 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015017 .total_size = 256,
15018 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015019 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000015020 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015021 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015022 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015023 .block_erasers =
15024 {
15025 {
15026 .eraseblocks = { {4 * 1024, 64} },
15027 .block_erase = erase_sector_jedec,
15028 }, {
15029 .eraseblocks = { {256 * 1024, 1} },
15030 .block_erase = erase_chip_block_jedec,
15031 }
15032 },
Sean Nelson35727f72010-01-28 23:55:12 +000015033 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015034 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015035 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015036 .prepare_access = prepare_memory_access,
15037 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015038 },
15039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015040 {
15041 .vendor = "SST",
15042 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015043 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015044 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015045 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015046 .total_size = 512,
15047 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015048 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015049 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015050 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015051 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015052 .block_erasers =
15053 {
15054 {
15055 .eraseblocks = { {4 * 1024, 128} },
15056 .block_erase = erase_sector_jedec,
15057 }, {
15058 .eraseblocks = { {512 * 1024, 1} },
15059 .block_erase = erase_chip_block_jedec,
15060 }
15061 },
Sean Nelson35727f72010-01-28 23:55:12 +000015062 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015064 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015065 .prepare_access = prepare_memory_access,
15066 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000015067 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015069 {
15070 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000015071 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015072 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000015073 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015074 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000015075 .total_size = 1024,
15076 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015077 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000015078 .tested = TEST_UNTESTED,
15079 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015080 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015081 .block_erasers =
15082 {
15083 {
15084 .eraseblocks = { {4 * 1024, 256} },
15085 .block_erase = erase_sector_jedec,
15086 }, {
15087 .eraseblocks = { {64 * 1024, 16} },
15088 .block_erase = erase_block_jedec,
15089 }, {
15090 .eraseblocks = { {1024 * 1024, 1} },
15091 .block_erase = erase_chip_block_jedec,
15092 }
15093 },
Sean Nelson35727f72010-01-28 23:55:12 +000015094 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015096 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015097 .prepare_access = prepare_memory_access,
15098 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +000015099 },
15100
15101 {
15102 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015103 .name = "SST39VF512",
15104 .bustype = BUS_PARALLEL,
15105 .manufacture_id = SST_ID,
15106 .model_id = SST_SST39VF512,
15107 .total_size = 64,
15108 .page_size = 4096,
15109 .feature_bits = FEATURE_EITHER_RESET,
15110 .tested = TEST_OK_PREW,
15111 .probe = probe_jedec,
15112 .probe_timing = 1, /* 150 ns */
15113 .block_erasers =
15114 {
15115 {
15116 .eraseblocks = { {4 * 1024, 16} },
15117 .block_erase = erase_sector_jedec,
15118 }, {
15119 .eraseblocks = { {64 * 1024, 1} },
15120 .block_erase = erase_chip_block_jedec,
15121 }
15122 },
15123 .write = write_jedec_1,
15124 .read = read_memmapped,
15125 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015126 .prepare_access = prepare_memory_access,
15127 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015128 },
15129
15130 {
15131 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015132 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015133 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015134 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015135 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015136 .total_size = 256,
15137 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015138 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015139 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015140 .probe = probe_jedec,
15141 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015142 .block_erasers =
15143 {
15144 {
15145 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015146 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015147 }, {
15148 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015149 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015150 }, {
15151 .eraseblocks = { {256 * 1024, 1} },
15152 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15153 }
15154 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015155 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015156 .unlock = unlock_sst_fwhub,
15157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015159 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015160 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015161 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015162 },
15163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015164 {
15165 .vendor = "SST",
15166 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015167 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015168 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015169 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015170 .total_size = 384,
15171 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015172 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015173 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015174 .probe = probe_jedec,
15175 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015176 .block_erasers =
15177 {
15178 {
15179 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015180 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015181 }, {
15182 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015183 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015184 }, {
15185 .eraseblocks = { {384 * 1024, 1} },
15186 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15187 }
15188 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015189 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015190 .unlock = unlock_sst_fwhub,
15191 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015193 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015194 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015195 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015196 },
15197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015198 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015199 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
15200 * and is only honored for 64k block erase, but not 4k sector erase.
15201 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015202 .vendor = "SST",
15203 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015204 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015205 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015206 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015207 .total_size = 512,
15208 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015209 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015210 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015211 .probe = probe_jedec,
15212 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015213 .block_erasers =
15214 {
15215 {
15216 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015217 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015218 }, {
15219 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015220 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015221 }, {
15222 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000015223 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015224 },
15225 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015226 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015227 .unlock = unlock_sst_fwhub,
15228 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015230 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015231 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015232 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015233 },
15234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015235 {
15236 .vendor = "SST",
15237 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015238 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015239 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015240 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015241 .total_size = 512,
15242 .page_size = 4 * 1024,
15243 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015244 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015245 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015246 .block_erasers =
15247 {
15248 {
15249 .eraseblocks = { {4 * 1024, 128} },
15250 .block_erase = erase_sector_49lfxxxc,
15251 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015252 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015253 {64 * 1024, 7},
15254 {32 * 1024, 1},
15255 {8 * 1024, 2},
15256 {16 * 1024, 1},
15257 },
Sean Nelson69e58112010-03-23 17:10:28 +000015258 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015259 }
15260 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015261 .printlock = printlock_regspace2_block_eraser_1,
15262 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015263 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015265 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015266 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015267 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015268 },
15269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015270 {
15271 .vendor = "SST",
15272 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015273 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015274 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015275 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015276 .total_size = 1024,
15277 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015278 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015279 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015280 .probe = probe_jedec,
15281 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015282 .block_erasers =
15283 {
15284 {
15285 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015286 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015287 }, {
15288 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015289 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015290 }, {
15291 .eraseblocks = { {1024 * 1024, 1} },
15292 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15293 }
15294 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015295 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015296 .unlock = unlock_sst_fwhub,
15297 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015298 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015299 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015300 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015301 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015302 },
15303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015304 {
15305 .vendor = "SST",
15306 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015307 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015308 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015309 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015310 .total_size = 1024,
15311 .page_size = 4 * 1024,
15312 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015313 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015314 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015315 .block_erasers =
15316 {
15317 {
15318 .eraseblocks = { {4 * 1024, 256} },
15319 .block_erase = erase_sector_49lfxxxc,
15320 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015321 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015322 {64 * 1024, 15},
15323 {32 * 1024, 1},
15324 {8 * 1024, 2},
15325 {16 * 1024, 1},
15326 },
Sean Nelson69e58112010-03-23 17:10:28 +000015327 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015328 }
15329 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015330 .printlock = printlock_regspace2_block_eraser_1,
15331 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015332 .write = write_82802ab,
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 = "SST49LF016C",
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_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015345 .total_size = 2048,
15346 .page_size = 4 * 1024,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015347 .tested = TEST_OK_PREW,
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, 512} },
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, 31},
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 = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015377 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015378 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015379 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015380 .total_size = 256,
15381 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015382 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000015383 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015384 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015385 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015386 .block_erasers =
15387 {
15388 {
15389 .eraseblocks = { {4 * 1024, 64} },
15390 .block_erase = erase_sector_jedec,
15391 }, {
15392 .eraseblocks = { {16 * 1024, 16} },
15393 .block_erase = erase_block_jedec,
15394 }, {
15395 .eraseblocks = { {256 * 1024, 1} },
15396 .block_erase = NULL,
15397 }
15398 },
Sean Nelson35727f72010-01-28 23:55:12 +000015399 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015401 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015402 .prepare_access = prepare_memory_access,
15403 .finish_access = finish_memory_access,
Sven Schnellec208dfb2009-01-07 12:35:09 +000015404 },
15405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015406 {
15407 .vendor = "SST",
15408 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015409 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015410 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015411 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015412 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000015413 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015414 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000015415 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015416 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015417 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015418 .block_erasers =
15419 {
15420 {
15421 .eraseblocks = { {4 * 1024, 64} },
15422 .block_erase = erase_sector_jedec,
15423 }, {
15424 .eraseblocks = { {16 * 1024, 16} },
15425 .block_erase = erase_block_jedec,
15426 }, {
15427 .eraseblocks = { {256 * 1024, 1} },
15428 .block_erase = NULL,
15429 }
15430 },
Sean Nelson35727f72010-01-28 23:55:12 +000015431 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015432 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015433 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015434 .prepare_access = prepare_memory_access,
15435 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015436 },
15437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015438 {
15439 .vendor = "SST",
15440 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015441 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015442 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015443 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015444 .total_size = 512,
15445 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015446 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015447 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015448 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015449 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015450 .block_erasers =
15451 {
15452 {
15453 .eraseblocks = { {4 * 1024, 128} },
15454 .block_erase = erase_sector_jedec,
15455 }, {
15456 .eraseblocks = { {64 * 1024, 8} },
15457 .block_erase = erase_block_jedec,
15458 }, {
15459 .eraseblocks = { {512 * 1024, 1} },
15460 .block_erase = NULL,
15461 }
15462 },
Sean Nelson35727f72010-01-28 23:55:12 +000015463 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015464 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015465 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015466 .prepare_access = prepare_memory_access,
15467 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015468 },
15469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015470 {
15471 .vendor = "SST",
15472 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015473 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015474 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015475 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015476 .total_size = 512,
15477 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015478 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015479 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015480 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015481 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015482 .block_erasers =
15483 {
15484 {
15485 .eraseblocks = { {4 * 1024, 128} },
15486 .block_erase = erase_sector_jedec,
15487 }, {
15488 .eraseblocks = { {64 * 1024, 8} },
15489 .block_erase = erase_block_jedec,
15490 }, {
15491 .eraseblocks = { {512 * 1024, 1} },
15492 .block_erase = NULL,
15493 }
15494 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015495 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015496 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015497 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015498 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015499 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015500 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015501 },
15502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015503 {
15504 .vendor = "SST",
15505 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015506 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015507 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015508 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015509 .total_size = 1024,
15510 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015511 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015513 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015514 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015515 .block_erasers =
15516 {
15517 {
15518 .eraseblocks = { {4 * 1024, 256} },
15519 .block_erase = erase_sector_jedec,
15520 }, {
15521 .eraseblocks = { {64 * 1024, 16} },
15522 .block_erase = erase_block_jedec,
15523 }, {
15524 .eraseblocks = { {1024 * 1024, 1} },
15525 .block_erase = NULL,
15526 }
15527 },
Sean Nelson35727f72010-01-28 23:55:12 +000015528 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015530 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015531 .prepare_access = prepare_memory_access,
15532 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015533 },
15534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015535 {
15536 .vendor = "SST",
15537 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015538 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015539 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015540 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015541 .total_size = 2048,
15542 .page_size = 4 * 1024,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015543 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015544 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015545 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015546 .block_erasers =
15547 {
15548 {
15549 .eraseblocks = { {4 * 1024, 512} },
15550 .block_erase = erase_sector_49lfxxxc,
15551 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015552 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015553 {64 * 1024, 31},
15554 {32 * 1024, 1},
15555 {8 * 1024, 2},
15556 {16 * 1024, 1},
15557 },
Sean Nelson69e58112010-03-23 17:10:28 +000015558 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015559 }
15560 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015561 .printlock = printlock_regspace2_block_eraser_1,
15562 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015563 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015565 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015566 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015567 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015568 },
15569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015570 {
15571 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015572 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015573 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015574 .manufacture_id = ST_ID,
15575 .model_id = ST_M29F002B,
15576 .total_size = 256,
15577 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015578 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015579 .tested = TEST_UNTESTED,
15580 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015582 .block_erasers =
15583 {
15584 {
15585 .eraseblocks = {
15586 {16 * 1024, 1},
15587 {8 * 1024, 2},
15588 {32 * 1024, 1},
15589 {64 * 1024, 3},
15590 },
15591 .block_erase = erase_sector_jedec,
15592 }, {
15593 .eraseblocks = { {256 * 1024, 1} },
15594 .block_erase = erase_chip_block_jedec,
15595 }
15596 },
Sean Nelson35727f72010-01-28 23:55:12 +000015597 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015598 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015599 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015600 .prepare_access = prepare_memory_access,
15601 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015602 },
15603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015604 {
15605 .vendor = "ST",
15606 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015607 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015608 .manufacture_id = ST_ID,
15609 .model_id = ST_M29F002T,
15610 .total_size = 256,
15611 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015612 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015613 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015614 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015615 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015616 .block_erasers =
15617 {
15618 {
15619 .eraseblocks = {
15620 {64 * 1024, 3},
15621 {32 * 1024, 1},
15622 {8 * 1024, 2},
15623 {16 * 1024, 1},
15624 },
15625 .block_erase = erase_sector_jedec,
15626 }, {
15627 .eraseblocks = { {256 * 1024, 1} },
15628 .block_erase = erase_chip_block_jedec,
15629 }
15630 },
Sean Nelson35727f72010-01-28 23:55:12 +000015631 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015632 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015633 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015634 .prepare_access = prepare_memory_access,
15635 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015636 },
15637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015638 {
15639 .vendor = "ST",
15640 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015641 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015642 .manufacture_id = ST_ID,
15643 .model_id = ST_M29F040B,
15644 .total_size = 512,
15645 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015646 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15647 .tested = TEST_UNTESTED,
15648 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015649 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015650 .block_erasers =
15651 {
15652 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015653 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015654 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015655 }, {
15656 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015657 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015658 }
15659 },
Sean Nelson35727f72010-01-28 23:55:12 +000015660 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015661 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015662 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015663 .prepare_access = prepare_memory_access,
15664 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015665 },
15666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015667 {
Sean Nelson35727f72010-01-28 23:55:12 +000015668 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015669 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015670 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015671 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015672 .manufacture_id = ST_ID,
15673 .model_id = ST_M29F400BB,
15674 .total_size = 512,
15675 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015676 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015677 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015678 .probe = probe_jedec,
15679 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015680 .block_erasers =
15681 {
15682 {
15683 .eraseblocks = {
15684 {16 * 1024, 1},
15685 {8 * 1024, 2},
15686 {32 * 1024, 1},
15687 {64 * 1024, 7},
15688 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015689 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015690 }, {
15691 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015692 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015693 }
15694 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015695 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015697 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015698 .prepare_access = prepare_memory_access,
15699 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015700 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015701
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015702 {
15703 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15704 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015705 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015706 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015707 .manufacture_id = ST_ID,
15708 .model_id = ST_M29F400BT,
15709 .total_size = 512,
15710 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015711 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015712 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015713 .probe = probe_jedec,
15714 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015715 .block_erasers =
15716 {
15717 {
15718 .eraseblocks = {
15719 {64 * 1024, 7},
15720 {32 * 1024, 1},
15721 {8 * 1024, 2},
15722 {16 * 1024, 1},
15723 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015724 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015725 }, {
15726 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015727 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015728 }
15729 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015730 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015732 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015733 .prepare_access = prepare_memory_access,
15734 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015735 },
15736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015737 {
15738 .vendor = "ST",
15739 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015740 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015741 .manufacture_id = ST_ID,
15742 .model_id = ST_M29W010B,
15743 .total_size = 128,
15744 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015745 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015746 .tested = TEST_UNTESTED,
15747 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015748 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015749 .block_erasers =
15750 {
15751 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015752 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015753 .block_erase = erase_sector_jedec,
15754 }, {
15755 .eraseblocks = { {128 * 1024, 1} },
15756 .block_erase = erase_chip_block_jedec,
15757 }
15758 },
Sean Nelson35727f72010-01-28 23:55:12 +000015759 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015760 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015761 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015762 .prepare_access = prepare_memory_access,
15763 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015764 },
15765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015766 {
15767 .vendor = "ST",
15768 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015769 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015770 .manufacture_id = ST_ID,
15771 .model_id = ST_M29W040B,
15772 .total_size = 512,
15773 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015774 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015775 .tested = TEST_UNTESTED,
15776 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015777 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015778 .block_erasers =
15779 {
15780 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015781 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015782 .block_erase = erase_sector_jedec,
15783 }, {
15784 .eraseblocks = { {512 * 1024, 1} },
15785 .block_erase = erase_chip_block_jedec,
15786 }
15787 },
Sean Nelson35727f72010-01-28 23:55:12 +000015788 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015790 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015791 .prepare_access = prepare_memory_access,
15792 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015793 },
15794
Stefan Taunereb582572012-09-21 12:52:50 +000015795 {
15796 .vendor = "ST",
15797 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015798 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015799 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015800 .model_id = ST_M29W512B,
15801 .total_size = 64,
15802 .page_size = 64 * 1024,
15803 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015804 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015805 .probe = probe_jedec,
15806 .probe_timing = TIMING_ZERO,
15807 .block_erasers =
15808 {
15809 {
15810 .eraseblocks = { {64 * 1024, 1} },
15811 .block_erase = erase_chip_block_jedec,
15812 }
15813 },
15814 .write = write_jedec_1,
15815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015816 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015817 .prepare_access = prepare_memory_access,
15818 .finish_access = finish_memory_access,
Stefan Taunereb582572012-09-21 12:52:50 +000015819 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015821 {
15822 .vendor = "ST",
15823 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015824 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015825 .manufacture_id = ST_ID,
15826 .model_id = ST_M50FLW040A,
15827 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015828 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015829 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015830 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015831 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015832 .block_erasers =
15833 {
15834 {
Sean Nelson329bde72010-01-19 16:39:19 +000015835 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015836 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015837 {64 * 1024, 5}, /* block */
15838 {4 * 1024, 16}, /* sector */
15839 {4 * 1024, 16}, /* sector */
15840 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015841 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015842 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015843 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015844 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015845 }
15846 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015847 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015848 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015850 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015851 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015852 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015853 },
15854
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015855 {
15856 .vendor = "ST",
15857 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015858 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015859 .manufacture_id = ST_ID,
15860 .model_id = ST_M50FLW040B,
15861 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015862 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015863 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015864 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015865 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015866 .block_erasers =
15867 {
15868 {
Sean Nelson329bde72010-01-19 16:39:19 +000015869 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015870 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015871 {4 * 1024, 16}, /* sector */
15872 {64 * 1024, 5}, /* block */
15873 {4 * 1024, 16}, /* sector */
15874 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015875 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015876 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015877 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015878 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015879 }
15880 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015881 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015882 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015883 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015884 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015885 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015886 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015887 },
15888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015889 {
15890 .vendor = "ST",
15891 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015892 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015893 .manufacture_id = ST_ID,
15894 .model_id = ST_M50FLW080A,
15895 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015896 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015897 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015898 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015899 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015900 .block_erasers =
15901 {
15902 {
Sean Nelson329bde72010-01-19 16:39:19 +000015903 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015904 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015905 {64 * 1024, 13}, /* block */
15906 {4 * 1024, 16}, /* sector */
15907 {4 * 1024, 16}, /* sector */
15908 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015909 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015910 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015911 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015912 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015913 }
15914 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015915 .printlock = printlock_regspace2_block_eraser_0,
15916 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015917 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015919 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015920 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015921 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015922 },
15923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015924 {
15925 .vendor = "ST",
15926 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015927 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015928 .manufacture_id = ST_ID,
15929 .model_id = ST_M50FLW080B,
15930 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015931 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015932 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015933 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015934 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015935 .block_erasers =
15936 {
15937 {
Sean Nelson329bde72010-01-19 16:39:19 +000015938 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015939 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015940 {4 * 1024, 16}, /* sector */
15941 {64 * 1024, 13}, /* block */
15942 {4 * 1024, 16}, /* sector */
15943 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015944 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015945 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015946 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015947 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015948 }
15949 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015950 .printlock = printlock_regspace2_block_eraser_0,
15951 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015952 .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 = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015962 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015963 .manufacture_id = ST_ID,
15964 .model_id = ST_M50FW002,
15965 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015966 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015967 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015968 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015969 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015970 .block_erasers =
15971 {
15972 {
15973 .eraseblocks = {
15974 {64 * 1024, 3},
15975 {32 * 1024, 1},
15976 {8 * 1024, 2},
15977 {16 * 1024, 1},
15978 },
Sean Nelson28accc22010-03-19 18:47:06 +000015979 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015980 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015981 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015982 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015983 }
15984 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015985 .printlock = printlock_regspace2_block_eraser_0,
15986 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015987 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015989 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015990 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015991 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015992 },
15993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015994 {
15995 .vendor = "ST",
15996 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015997 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015998 .manufacture_id = ST_ID,
15999 .model_id = ST_M50FW016,
16000 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016001 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016002 .tested = TEST_UNTESTED,
16003 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016004 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016005 .block_erasers =
16006 {
16007 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016008 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000016009 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016010 }
16011 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016012 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016013 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016014 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016015 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016016 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016017 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016018 },
16019
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016020 {
16021 .vendor = "ST",
16022 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016023 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016024 .manufacture_id = ST_ID,
16025 .model_id = ST_M50FW040,
16026 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000016027 .page_size = 0,
Sean Nelson28accc22010-03-19 18:47:06 +000016028 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016029 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016030 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016031 .block_erasers =
16032 {
16033 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016034 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000016035 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016036 }
16037 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016038 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016039 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016041 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016042 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016043 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016044 },
16045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016046 {
16047 .vendor = "ST",
16048 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016049 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016050 .manufacture_id = ST_ID,
16051 .model_id = ST_M50FW080,
16052 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016053 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016054 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016055 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016056 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016057 .block_erasers =
16058 {
16059 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016060 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016061 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016062 }
16063 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016064 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016065 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016067 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016068 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016069 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016070 },
16071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016072 {
16073 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016074 .name = "M50LPW080",
16075 .bustype = BUS_LPC, /* A/A Mux */
16076 .manufacture_id = ST_ID,
16077 .model_id = ST_M50LPW080,
16078 .total_size = 1024,
16079 .page_size = 0,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016080 .tested = TEST_UNTESTED,
16081 .probe = probe_82802ab,
16082 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16083 .block_erasers =
16084 {
16085 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016086 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016087 .block_erase = erase_block_82802ab,
16088 }
16089 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016090 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016091 .write = write_82802ab,
16092 .read = read_memmapped,
16093 .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,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016096 },
16097
16098 {
16099 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016100 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016101 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016102 .manufacture_id = ST_ID,
16103 .model_id = ST_M50LPW116,
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,
Sean Nelson35727f72010-01-28 23:55:12 +000016107 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000016108 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016109 .block_erasers =
16110 {
16111 {
16112 .eraseblocks = {
16113 {4 * 1024, 16},
16114 {64 * 1024, 30},
16115 {32 * 1024, 1},
16116 {8 * 1024, 2},
16117 {16 * 1024, 1},
16118 },
Sean Nelson28accc22010-03-19 18:47:06 +000016119 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016120 }
16121 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016122 .printlock = printlock_regspace2_block_eraser_0,
16123 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016124 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016126 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016127 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016128 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016129 },
16130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016131 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016132 .vendor = "ST",
16133 .name = "M95M02",
16134 .bustype = BUS_SPI,
16135 .manufacture_id = ST_ID,
16136 .model_id = ST_M95M02,
16137 .total_size = 256,
16138 .page_size = 256,
16139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
16140 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020016141 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016142 .probe = probe_spi_st95,
16143 .probe_timing = TIMING_ZERO,
16144 .block_erasers =
16145 {
16146 {
16147 .eraseblocks = { {256 * 1024, 1} },
16148 .block_erase = spi_block_erase_emulation,
16149 }
16150 },
16151
16152 .printlock = spi_prettyprint_status_register_bp1_srwd,
16153 .unlock = spi_disable_blockprotect_bp1_srwd,
16154 .write = spi_chip_write_256,
16155 .read = spi_chip_read,
16156 .voltage = {2500, 5500},
16157 },
16158
16159 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016160 .vendor = "Sanyo",
16161 .name = "LE25FU106B",
16162 .bustype = BUS_SPI,
16163 .manufacture_id = SANYO_ID,
16164 .model_id = SANYO_LE25FU106B,
16165 .total_size = 128,
16166 .page_size = 256,
16167 .feature_bits = FEATURE_WRSR_WREN,
16168 .tested = TEST_UNTESTED,
16169 .probe = probe_spi_res2,
16170 .probe_timing = TIMING_ZERO,
16171 .block_erasers =
16172 {
16173 /* FIXME: Is this correct?
16174 {
16175 .eraseblocks = { {2 * 1024, 64} },
16176 .block_erase = spi_block_erase_d7,
16177 },*/
16178 {
16179 .eraseblocks = { {32 * 1024, 4} },
16180 .block_erase = spi_block_erase_d8,
16181 }, {
16182 .eraseblocks = { {128 * 1024, 1} },
16183 .block_erase = spi_block_erase_c7,
16184 }
16185 },
16186 .printlock = spi_prettyprint_status_register_bp1_srwd,
16187 .unlock = spi_disable_blockprotect_bp1_srwd,
16188 .write = spi_chip_write_256,
16189 .read = spi_chip_read,
16190 .voltage = {2300, 3600},
16191 },
16192
16193 {
16194 .vendor = "Sanyo",
16195 .name = "LE25FU206",
16196 .bustype = BUS_SPI,
16197 .manufacture_id = SANYO_ID,
16198 .model_id = SANYO_LE25FU206,
16199 .total_size = 256,
16200 .page_size = 256,
16201 .feature_bits = FEATURE_WRSR_WREN,
16202 .tested = TEST_UNTESTED,
16203 .probe = probe_spi_res2,
16204 .probe_timing = TIMING_ZERO,
16205 .block_erasers =
16206 {
16207 {
16208 .eraseblocks = { {4 * 1024, 64} },
16209 .block_erase = spi_block_erase_d7,
16210 }, {
16211 .eraseblocks = { {64 * 1024, 4} },
16212 .block_erase = spi_block_erase_d8,
16213 }, {
16214 .eraseblocks = { {256 * 1024, 1} },
16215 .block_erase = spi_block_erase_c7,
16216 }
16217 },
16218 .printlock = spi_prettyprint_status_register_bp1_srwd,
16219 .unlock = spi_disable_blockprotect_bp1_srwd,
16220 .write = spi_chip_write_256,
16221 .read = spi_chip_read,
16222 .voltage = {2300, 3600},
16223 },
16224
16225 {
16226 .vendor = "Sanyo",
16227 .name = "LE25FU206A",
16228 .bustype = BUS_SPI,
16229 .manufacture_id = SANYO_ID,
16230 .model_id = SANYO_LE25FU206A,
16231 .total_size = 256,
16232 .page_size = 256,
16233 .tested = TEST_UNTESTED,
16234 .probe = probe_spi_rdid,
16235 .probe_timing = TIMING_ZERO,
16236 .block_erasers =
16237 {
16238 {
16239 .eraseblocks = { {4 * 1024, 64} },
16240 .block_erase = spi_block_erase_20,
16241 }, {
16242 .eraseblocks = { {4 * 1024, 64} },
16243 .block_erase = spi_block_erase_d7,
16244 }, {
16245 .eraseblocks = { {64 * 1024, 4} },
16246 .block_erase = spi_block_erase_d8,
16247 }, {
16248 .eraseblocks = { {256 * 1024, 1} },
16249 .block_erase = spi_block_erase_60,
16250 }, {
16251 .eraseblocks = { {256 * 1024, 1} },
16252 .block_erase = spi_block_erase_c7,
16253 }
16254 },
16255 .printlock = spi_prettyprint_status_register_bp2_srwd,
16256 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16257 .write = spi_chip_write_256,
16258 .read = spi_chip_read,
16259 .voltage = {2300, 3600},
16260 },
16261
16262 {
16263 .vendor = "Sanyo",
16264 .name = "LE25FU406B",
16265 .bustype = BUS_SPI,
16266 .manufacture_id = SANYO_ID,
16267 .model_id = SANYO_LE25FU406B,
16268 .total_size = 512,
16269 .page_size = 256,
16270 .feature_bits = FEATURE_WRSR_WREN,
16271 .tested = TEST_OK_PREW,
16272 .probe = probe_spi_res2,
16273 .probe_timing = TIMING_ZERO,
16274 .block_erasers =
16275 {
16276 {
16277 .eraseblocks = { {4 * 1024, 128} },
16278 .block_erase = spi_block_erase_d7,
16279 }, {
16280 .eraseblocks = { {64 * 1024, 8} },
16281 .block_erase = spi_block_erase_d8,
16282 }, {
16283 .eraseblocks = { {512 * 1024, 1} },
16284 .block_erase = spi_block_erase_c7,
16285 }
16286 },
16287 .printlock = spi_prettyprint_status_register_bp2_srwd,
16288 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16289 .write = spi_chip_write_256,
16290 .read = spi_chip_read,
16291 .voltage = {2300, 3600},
16292 },
16293
16294 {
16295 .vendor = "Sanyo",
16296 .name = "LE25FU406C/LE25U40CMC",
16297 .bustype = BUS_SPI,
16298 .manufacture_id = SANYO_ID,
16299 .model_id = SANYO_LE25FU406C,
16300 .total_size = 512,
16301 .page_size = 256,
16302 .feature_bits = FEATURE_WRSR_WREN,
16303 .tested = TEST_OK_PREW,
16304 .probe = probe_spi_rdid,
16305 .probe_timing = TIMING_ZERO,
16306 .block_erasers =
16307 {
16308 {
16309 .eraseblocks = { {4 * 1024, 128} },
16310 .block_erase = spi_block_erase_20,
16311 }, {
16312 .eraseblocks = { {4 * 1024, 128} },
16313 .block_erase = spi_block_erase_d7,
16314 }, {
16315 .eraseblocks = { {64 * 1024, 8} },
16316 .block_erase = spi_block_erase_d8,
16317 }, {
16318 .eraseblocks = { {512 * 1024, 1} },
16319 .block_erase = spi_block_erase_60,
16320 }, {
16321 .eraseblocks = { {512 * 1024, 1} },
16322 .block_erase = spi_block_erase_c7,
16323 }
16324 },
16325 .printlock = spi_prettyprint_status_register_bp2_srwd,
16326 .unlock = spi_disable_blockprotect_bp2_srwd,
16327 .write = spi_chip_write_256,
16328 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
16329 .voltage = {2300, 3600},
16330 },
16331
16332 {
16333 .vendor = "Sanyo",
16334 .name = "LE25FW106",
16335 .bustype = BUS_SPI,
16336 .manufacture_id = SANYO_ID,
16337 .model_id = SANYO_LE25FW106,
16338 .total_size = 128,
16339 .page_size = 256,
16340 .feature_bits = FEATURE_WRSR_WREN,
16341 .tested = TEST_OK_PREW,
16342 .probe = probe_spi_res2,
16343 .probe_timing = TIMING_ZERO,
16344 .block_erasers =
16345 {
16346 {
16347 .eraseblocks = { {2 * 1024, 64} },
16348 .block_erase = spi_block_erase_d7,
16349 }, {
16350 .eraseblocks = { {32 * 1024, 4} },
16351 .block_erase = spi_block_erase_d8,
16352 }, {
16353 .eraseblocks = { {128 * 1024, 1} },
16354 .block_erase = spi_block_erase_c7,
16355 }
16356 },
16357 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
16358 .unlock = spi_disable_blockprotect_bp1_srwd,
16359 .write = spi_chip_write_256,
16360 .read = spi_chip_read,
16361 .voltage = {2700, 3600},
16362 },
16363
16364 {
16365 .vendor = "Sanyo",
16366 .name = "LE25FW203A",
16367 .bustype = BUS_SPI,
16368 .manufacture_id = SANYO_ID,
16369 .model_id = SANYO_LE25FW203A,
16370 .total_size = 256,
16371 .page_size = 256,
16372 .tested = TEST_UNTESTED,
16373 .probe = probe_spi_rdid,
16374 .probe_timing = TIMING_ZERO,
16375 .block_erasers =
16376 {
16377 {
16378 .eraseblocks = { {256, 1024} },
16379 .block_erase = spi_block_erase_db,
16380 }, {
16381 .eraseblocks = { {64 * 1024, 4} },
16382 .block_erase = spi_block_erase_d8,
16383 }, {
16384 .eraseblocks = { {256 * 1024, 1} },
16385 .block_erase = spi_block_erase_c7,
16386 }
16387 },
16388 .printlock = spi_prettyprint_status_register_default_welwip,
16389 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16390 .write = spi_chip_write_256,
16391 .read = spi_chip_read,
16392 .voltage = {2700, 3600},
16393 },
16394
16395 {
16396 .vendor = "Sanyo",
16397 .name = "LE25FW403A",
16398 .bustype = BUS_SPI,
16399 .manufacture_id = SANYO_ID,
16400 .model_id = SANYO_LE25FW403A,
16401 .total_size = 512,
16402 .page_size = 256,
16403 .tested = TEST_UNTESTED,
16404 .probe = probe_spi_rdid,
16405 .probe_timing = TIMING_ZERO,
16406 .block_erasers =
16407 {
16408 {
16409 .eraseblocks = { {256, 2 * 1024} },
16410 .block_erase = spi_block_erase_db,
16411 }, {
16412 .eraseblocks = { {64 * 1024, 8} },
16413 .block_erase = spi_block_erase_d8,
16414 }, {
16415 .eraseblocks = { {512 * 1024, 1} },
16416 .block_erase = spi_block_erase_c7,
16417 }
16418 },
16419 .printlock = spi_prettyprint_status_register_default_welwip,
16420 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16421 .write = spi_chip_write_256,
16422 .read = spi_chip_read,
16423 .voltage = {2700, 3600},
16424 },
16425
16426 {
16427 .vendor = "Sanyo",
16428 .name = "LE25FW406A",
16429 .bustype = BUS_SPI,
16430 .manufacture_id = SANYO_ID,
16431 .model_id = SANYO_LE25FW406A,
16432 .total_size = 512,
16433 .page_size = 256,
16434 .feature_bits = FEATURE_WRSR_WREN,
16435 .tested = TEST_OK_PREW,
16436 .probe = probe_spi_res2,
16437 .probe_timing = TIMING_ZERO,
16438 .block_erasers =
16439 {
16440 {
16441 .eraseblocks = { {4 * 1024, 128} },
16442 .block_erase = spi_block_erase_d7,
16443 }, {
16444 .eraseblocks = { {64 * 1024, 8} },
16445 .block_erase = spi_block_erase_d8,
16446 }, {
16447 .eraseblocks = { {512 * 1024, 1} },
16448 .block_erase = spi_block_erase_c7,
16449 }
16450 },
16451 .printlock = spi_prettyprint_status_register_plain,
16452 .unlock = spi_disable_blockprotect,
16453 .write = spi_chip_write_256,
16454 .read = spi_chip_read,
16455 .voltage = {2700, 3600},
16456 },
16457
16458 {
16459 .vendor = "Sanyo",
16460 .name = "LE25FW418A",
16461 .bustype = BUS_SPI,
16462 .manufacture_id = SANYO_ID,
16463 .model_id = SANYO_LE25FW418A,
16464 .total_size = 512,
16465 .page_size = 256,
16466 .feature_bits = FEATURE_WRSR_WREN,
16467 .tested = TEST_UNTESTED,
16468 .probe = probe_spi_res2,
16469 .probe_timing = TIMING_ZERO,
16470 .block_erasers =
16471 {
16472 {
16473 .eraseblocks = { {4 * 1024, 128} },
16474 .block_erase = spi_block_erase_d7,
16475 }, {
16476 .eraseblocks = { {64 * 1024, 8} },
16477 .block_erase = spi_block_erase_d8,
16478 }, {
16479 .eraseblocks = { {512 * 1024, 1} },
16480 .block_erase = spi_block_erase_c7,
16481 }
16482 },
16483 .printlock = spi_prettyprint_status_register_bp2_srwd,
16484 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16485 .write = spi_chip_write_256,
16486 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16487 .voltage = {2700, 3600},
16488 },
16489
16490 {
16491 .vendor = "Sanyo",
16492 .name = "LE25FW806",
16493 .bustype = BUS_SPI,
16494 .manufacture_id = SANYO_ID,
16495 .model_id = SANYO_LE25FW806,
16496 .total_size = 1024,
16497 .page_size = 256,
16498 .feature_bits = FEATURE_WRSR_WREN,
16499 .tested = TEST_UNTESTED,
16500 .probe = probe_spi_res2,
16501 .probe_timing = TIMING_ZERO,
16502 .block_erasers =
16503 {
16504 {
16505 .eraseblocks = { {4 * 1024, 256} },
16506 .block_erase = spi_block_erase_20,
16507 }, {
16508 .eraseblocks = { {4 * 1024, 256} },
16509 .block_erase = spi_block_erase_d7,
16510 }, {
16511 .eraseblocks = { {64 * 1024, 16} },
16512 .block_erase = spi_block_erase_d8,
16513 }, {
16514 .eraseblocks = { {1024 * 1024, 1} },
16515 .block_erase = spi_block_erase_c7,
16516 }
16517 },
16518 .printlock = spi_prettyprint_status_register_bp2_srwd,
16519 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16520 .write = spi_chip_write_256,
16521 .read = spi_chip_read,
16522 .voltage = {2700, 3600},
16523 },
16524
16525 {
16526 .vendor = "Sanyo",
16527 .name = "LE25FW808",
16528 .bustype = BUS_SPI,
16529 .manufacture_id = SANYO_ID,
16530 .model_id = SANYO_LE25FW808,
16531 .total_size = 1024,
16532 .page_size = 256,
16533 .feature_bits = FEATURE_WRSR_WREN,
16534 .tested = TEST_UNTESTED,
16535 .probe = probe_spi_res2,
16536 .probe_timing = TIMING_ZERO,
16537 .block_erasers =
16538 {
16539 {
16540 .eraseblocks = { {8 * 1024, 128} },
16541 .block_erase = spi_block_erase_d7,
16542 }, {
16543 .eraseblocks = { {64 * 1024, 16} },
16544 .block_erase = spi_block_erase_d8,
16545 }, {
16546 .eraseblocks = { {1024 * 1024, 1} },
16547 .block_erase = spi_block_erase_c7,
16548 }
16549 },
16550 .printlock = spi_prettyprint_status_register_bp2_srwd,
16551 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16552 .write = spi_chip_write_256,
16553 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16554 .voltage = {2700, 3600},
16555 },
16556
16557 {
16558 .vendor = "Sharp",
16559 .name = "LH28F008BJT-BTLZ1",
16560 .bustype = BUS_PARALLEL,
16561 .manufacture_id = SHARP_ID,
16562 .model_id = SHARP_LH28F008BJ__PB,
16563 .total_size = 1024,
16564 .page_size = 64 * 1024,
16565 .tested = TEST_OK_PREW,
16566 .probe = probe_82802ab,
16567 .probe_timing = TIMING_ZERO,
16568 .block_erasers =
16569 {
16570 {
16571 .eraseblocks = {
16572 {8 * 1024, 8},
16573 {64 * 1024, 15}
16574 },
16575 .block_erase = erase_block_82802ab,
16576 }, {
16577 .eraseblocks = { {1024 * 1024, 1} },
16578 .block_erase = erase_sector_49lfxxxc,
16579 }
16580 },
16581 .unlock = unlock_lh28f008bjt,
16582 .write = write_82802ab,
16583 .read = read_memmapped,
16584 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010016585 .prepare_access = prepare_memory_access,
16586 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016587 },
16588
16589 {
16590 .vendor = "Sharp",
16591 .name = "LHF00L04",
16592 .bustype = BUS_FWH, /* A/A Mux */
16593 .manufacture_id = SHARP_ID,
16594 .model_id = SHARP_LHF00L04,
16595 .total_size = 1024,
16596 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010016597 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016598 .tested = TEST_UNTESTED,
16599 .probe = probe_82802ab,
16600 .probe_timing = TIMING_ZERO,
16601 .block_erasers =
16602 {
16603 {
16604 .eraseblocks = {
16605 {64 * 1024, 15},
16606 {8 * 1024, 8}
16607 },
16608 .block_erase = erase_block_82802ab,
16609 }, {
16610 .eraseblocks = {
16611 {1024 * 1024, 1}
16612 },
16613 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16614 },
16615 },
16616 .unlock = unlock_regspace2_uniform_64k,
16617 .write = write_82802ab,
16618 .read = read_memmapped,
16619 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010016620 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016621 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016622 },
16623
16624 {
16625 .vendor = "Spansion",
16626 .name = "S25FL004A",
16627 .bustype = BUS_SPI,
16628 .manufacture_id = SPANSION_ID,
16629 .model_id = SPANSION_S25FL004A,
16630 .total_size = 512,
16631 .page_size = 256,
16632 .feature_bits = FEATURE_WRSR_WREN,
16633 .tested = TEST_UNTESTED,
16634 .probe = probe_spi_rdid,
16635 .probe_timing = TIMING_ZERO,
16636 .block_erasers =
16637 {
16638 {
16639 .eraseblocks = { {64 * 1024, 8} },
16640 .block_erase = spi_block_erase_d8,
16641 }, {
16642 .eraseblocks = { {512 * 1024, 1} },
16643 .block_erase = spi_block_erase_c7,
16644 }
16645 },
16646 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16647 .unlock = spi_disable_blockprotect,
16648 .write = spi_chip_write_256,
16649 .read = spi_chip_read,
16650 .voltage = {2700, 3600},
16651 },
16652
16653 {
16654 .vendor = "Spansion",
16655 .name = "S25FL008A",
16656 .bustype = BUS_SPI,
16657 .manufacture_id = SPANSION_ID,
16658 .model_id = SPANSION_S25FL008A,
16659 .total_size = 1024,
16660 .page_size = 256,
16661 .feature_bits = FEATURE_WRSR_WREN,
16662 .tested = TEST_OK_PRE,
16663 .probe = probe_spi_rdid,
16664 .probe_timing = TIMING_ZERO,
16665 .block_erasers =
16666 {
16667 {
16668 .eraseblocks = { {64 * 1024, 16} },
16669 .block_erase = spi_block_erase_d8,
16670 }, {
16671 .eraseblocks = { {1024 * 1024, 1} },
16672 .block_erase = spi_block_erase_c7,
16673 }
16674 },
16675 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16676 .unlock = spi_disable_blockprotect,
16677 .write = spi_chip_write_256,
16678 .read = spi_chip_read,
16679 .voltage = {2700, 3600},
16680 },
16681
16682 {
16683 .vendor = "Spansion",
16684 .name = "S25FL016A",
16685 .bustype = BUS_SPI,
16686 .manufacture_id = SPANSION_ID,
16687 .model_id = SPANSION_S25FL016A,
16688 .total_size = 2048,
16689 .page_size = 256,
16690 .feature_bits = FEATURE_WRSR_WREN,
16691 .tested = TEST_OK_PREW,
16692 .probe = probe_spi_rdid,
16693 .probe_timing = TIMING_ZERO,
16694 .block_erasers =
16695 {
16696 {
16697 .eraseblocks = { {64 * 1024, 32} },
16698 .block_erase = spi_block_erase_d8,
16699 }, {
16700 .eraseblocks = { {2 * 1024 * 1024, 1} },
16701 .block_erase = spi_block_erase_c7,
16702 }
16703 },
16704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16705 .unlock = spi_disable_blockprotect,
16706 .write = spi_chip_write_256,
16707 .read = spi_chip_read,
16708 .voltage = {2700, 3600},
16709 },
16710
16711 {
16712 .vendor = "Spansion",
16713 .name = "S25FL032A/P",
16714 .bustype = BUS_SPI,
16715 .manufacture_id = SPANSION_ID,
16716 .model_id = SPANSION_S25FL032A,
16717 .total_size = 4096,
16718 .page_size = 256,
16719 .feature_bits = FEATURE_WRSR_WREN,
16720 .tested = TEST_OK_PREW,
16721 .probe = probe_spi_rdid,
16722 .probe_timing = TIMING_ZERO,
16723 .block_erasers =
16724 {
16725 {
16726 .eraseblocks = { {64 * 1024, 64} },
16727 .block_erase = spi_block_erase_d8,
16728 }, {
16729 .eraseblocks = { {4 * 1024 * 1024, 1} },
16730 .block_erase = spi_block_erase_c7,
16731 }
16732 },
16733 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16734 .unlock = spi_disable_blockprotect,
16735 .write = spi_chip_write_256,
16736 .read = spi_chip_read,
16737 .voltage = {2700, 3600},
16738 },
16739
16740 {
16741 .vendor = "Spansion",
16742 .name = "S25FL064A/P",
16743 .bustype = BUS_SPI,
16744 .manufacture_id = SPANSION_ID,
16745 .model_id = SPANSION_S25FL064A,
16746 .total_size = 8192,
16747 .page_size = 256,
16748 .feature_bits = FEATURE_WRSR_WREN,
16749 .tested = TEST_OK_PREW,
16750 .probe = probe_spi_rdid,
16751 .probe_timing = TIMING_ZERO,
16752 .block_erasers =
16753 {
16754 {
16755 .eraseblocks = { {64 * 1024, 128} },
16756 .block_erase = spi_block_erase_d8,
16757 }, {
16758 .eraseblocks = { {8 * 1024 * 1024, 1} },
16759 .block_erase = spi_block_erase_c7,
16760 }
16761 },
16762 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16763 .unlock = spi_disable_blockprotect,
16764 .write = spi_chip_write_256,
16765 .read = spi_chip_read,
16766 .voltage = {2700, 3600},
16767 },
16768
16769 {
16770 .vendor = "Spansion",
16771 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16772 .bustype = BUS_SPI,
16773 .manufacture_id = SPANSION_ID,
16774 .model_id = SPANSION_S25FL216,
16775 .total_size = 2048,
16776 .page_size = 256,
16777 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16779 .tested = TEST_UNTESTED,
16780 .probe = probe_spi_rdid,
16781 .probe_timing = TIMING_ZERO,
16782 .block_erasers =
16783 {
16784 {
16785 .eraseblocks = { {4 * 1024, 512} },
16786 .block_erase = spi_block_erase_20,
16787 }, {
16788 .eraseblocks = { {64 * 1024, 32} },
16789 .block_erase = spi_block_erase_d8,
16790 }, {
16791 .eraseblocks = { { 2048 * 1024, 1} },
16792 .block_erase = spi_block_erase_60,
16793 }, {
16794 .eraseblocks = { { 2048 * 1024, 1} },
16795 .block_erase = spi_block_erase_c7,
16796 }
16797 },
16798 .printlock = spi_prettyprint_status_register_bp3_srwd,
16799 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16800 .write = spi_chip_write_256,
16801 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16802 .voltage = {2700, 3600},
16803 },
16804
16805 {
16806 .vendor = "Spansion",
16807 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16808 .bustype = BUS_SPI,
16809 .manufacture_id = SPANSION_ID,
16810 .model_id = SPANSION_S25FL128,
16811 .total_size = 16384,
16812 .page_size = 512,
16813 /* supports 4B addressing */
16814 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16816 .tested = TEST_UNTESTED,
16817 .probe = probe_spi_rdid,
16818 .probe_timing = TIMING_ZERO,
16819 .block_erasers =
16820 {
16821 {
16822 .eraseblocks = { {256 * 1024, 64} },
16823 .block_erase = spi_block_erase_d8,
16824 }, {
16825 .eraseblocks = { { 16384 * 1024, 1} },
16826 .block_erase = spi_block_erase_60,
16827 }, {
16828 .eraseblocks = { { 16384 * 1024, 1} },
16829 .block_erase = spi_block_erase_c7,
16830 }
16831 },
16832 .printlock = spi_prettyprint_status_register_bp2_srwd,
16833 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16834 .write = spi_chip_write_256, /* Multi I/O supported */
16835 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16836 .voltage = {2700, 3600},
16837 },
16838
16839 {
16840 .vendor = "Spansion",
16841 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16842 .bustype = BUS_SPI,
16843 .manufacture_id = SPANSION_ID,
16844 .model_id = SPANSION_S25FL128,
16845 .total_size = 16384,
16846 .page_size = 256,
16847 /* supports 4B addressing */
16848 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16849 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16850 .tested = TEST_OK_PREW,
16851 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16852 .probe = probe_spi_rdid,
16853 .probe_timing = TIMING_ZERO,
16854 .block_erasers =
16855 {
16856 {
16857 /* This chip supports erasing of 32 so-called "parameter sectors" with
16858 * opcode 0x20 which may be configured to be on top or bottom of the address
16859 * space. Trying to access an address outside these 4kB blocks does have no
16860 * effect on the memory contents, e.g.
16861 .eraseblocks = {
16862 {4 * 1024, 32},
16863 {64 * 1024, 254} // inaccessible
16864 },
16865 .block_erase = spi_block_erase_20,
16866 }, { */
16867 .eraseblocks = { { 64 * 1024, 256} },
16868 .block_erase = spi_block_erase_d8,
16869 }, {
16870 .eraseblocks = { { 16384 * 1024, 1} },
16871 .block_erase = spi_block_erase_60,
16872 }, {
16873 .eraseblocks = { { 16384 * 1024, 1} },
16874 .block_erase = spi_block_erase_c7,
16875 }
16876 },
16877 .printlock = spi_prettyprint_status_register_bp2_srwd,
16878 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16879 .write = spi_chip_write_256, /* Multi I/O supported */
16880 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16881 .voltage = {2700, 3600},
16882 },
16883
16884 {
16885 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016886 .name = "S25FL128L",
16887 .bustype = BUS_SPI,
16888 .manufacture_id = SPANSION_ID,
16889 .model_id = SPANSION_S25FL128L,
16890 .total_size = 16384,
16891 .page_size = 256,
16892 /* 4 x 256B Security Region (OTP) */
16893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16894 .tested = TEST_UNTESTED,
16895 .probe = probe_spi_rdid,
16896 .probe_timing = TIMING_ZERO,
16897 .block_erasers =
16898 {
16899 {
16900 .eraseblocks = { {4 * 1024, 4096} },
16901 .block_erase = spi_block_erase_20,
16902 }, {
16903 .eraseblocks = { {32 * 1024, 512} },
16904 .block_erase = spi_block_erase_52,
16905 }, {
16906 .eraseblocks = { {64 * 1024, 256} },
16907 .block_erase = spi_block_erase_d8,
16908 }, {
16909 .eraseblocks = { {16384 * 1024, 1} },
16910 .block_erase = spi_block_erase_60,
16911 }, {
16912 .eraseblocks = { {16384 * 1024, 1} },
16913 .block_erase = spi_block_erase_c7,
16914 }
16915 },
16916 .printlock = spi_prettyprint_status_register_bp2_srwd,
16917 .unlock = spi_disable_blockprotect_bp2_srwd,
16918 .write = spi_chip_write_256,
16919 .read = spi_chip_read, /* Fast read (0x0B) supported */
16920 .voltage = {2700, 3600},
16921 .reg_bits =
16922 {
16923 /*
16924 * Note: This chip has a read-only Status Register 2 that is not
16925 * counted here. Registers are mapped as follows:
16926 * STATUS1 ... Status Register 1
16927 * STATUS2 ... Configuration Register 1
16928 * STATUS3 ... Configuration Register 2
16929 */
16930 .srp = {STATUS1, 7, RW},
16931 .srl = {STATUS2, 0, RW},
16932 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16933 .tb = {STATUS1, 5, RW},
16934 .sec = {STATUS1, 6, RW},
16935 .cmp = {STATUS2, 6, RW},
16936 .wps = {STATUS3, 2, RW},
16937 },
Nico Huberaabb3e02023-01-13 00:22:30 +010016938 .wp_write_cfg = spi_wp_write_cfg,
16939 .wp_read_cfg = spi_wp_read_cfg,
16940 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020016941 .decode_range = decode_range_spi25,
16942 },
16943
16944 {
16945 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016946 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16947 .bustype = BUS_SPI,
16948 .manufacture_id = SPANSION_ID,
16949 .model_id = SPANSION_S25FL128,
16950 .total_size = 16384,
16951 .page_size = 256,
16952 .feature_bits = FEATURE_WRSR_WREN,
16953 .tested = TEST_OK_PREW,
16954 .probe = probe_spi_rdid,
16955 .probe_timing = TIMING_ZERO,
16956 .block_erasers =
16957 {
16958 {
16959 .eraseblocks = { {64 * 1024, 256} },
16960 .block_erase = spi_block_erase_20,
16961 }, {
16962 .eraseblocks = { {64 * 1024, 256} },
16963 .block_erase = spi_block_erase_d8,
16964 }, {
16965 .eraseblocks = { { 16384 * 1024, 1} },
16966 .block_erase = spi_block_erase_60,
16967 }, {
16968 .eraseblocks = { { 16384 * 1024, 1} },
16969 .block_erase = spi_block_erase_c7,
16970 }
16971 },
16972 .printlock = spi_prettyprint_status_register_bp3_srwd,
16973 .unlock = spi_disable_blockprotect_bp3_srwd,
16974 .write = spi_chip_write_256,
16975 .read = spi_chip_read, /* Fast read (0x0B) supported */
16976 .voltage = {2700, 3600},
16977 },
16978
16979 {
16980 .vendor = "Spansion",
16981 .name = "S25FL128P......1", /* uniform 256kB sectors */
16982 .bustype = BUS_SPI,
16983 .manufacture_id = SPANSION_ID,
16984 .model_id = SPANSION_S25FL128,
16985 .total_size = 16384,
16986 .page_size = 256,
16987 .feature_bits = FEATURE_WRSR_WREN,
16988 .tested = TEST_UNTESTED,
16989 .probe = probe_spi_rdid,
16990 .probe_timing = TIMING_ZERO,
16991 .block_erasers =
16992 {
16993 {
16994 .eraseblocks = { {256 * 1024, 64} },
16995 .block_erase = spi_block_erase_d8,
16996 }, {
16997 .eraseblocks = { { 16384 * 1024, 1} },
16998 .block_erase = spi_block_erase_c7,
16999 }
17000 },
17001 .printlock = spi_prettyprint_status_register_bp2_srwd,
17002 .unlock = spi_disable_blockprotect_bp2_srwd,
17003 .write = spi_chip_write_256,
17004 .read = spi_chip_read, /* Fast read (0x0B) supported */
17005 .voltage = {2700, 3600},
17006 },
17007
17008 {
17009 .vendor = "Spansion",
17010 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17011 .bustype = BUS_SPI,
17012 .manufacture_id = SPANSION_ID,
17013 .model_id = SPANSION_S25FL128,
17014 .total_size = 16384,
17015 .page_size = 256,
17016 /* supports 4B addressing */
17017 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17018 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17019 .tested = TEST_OK_PREW,
17020 .probe = probe_spi_rdid,
17021 .probe_timing = TIMING_ZERO,
17022 .block_erasers =
17023 {
17024 {
17025 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17026 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17027 * have no effect on the memory contents, but sets a flag in the SR.
17028 .eraseblocks = {
17029 {4 * 1024, 32},
17030 {64 * 1024, 254} // inaccessible
17031 },
17032 .block_erase = spi_block_erase_20,
17033 }, { */
17034 .eraseblocks = { { 64 * 1024, 256} },
17035 .block_erase = spi_block_erase_d8,
17036 }, {
17037 .eraseblocks = { { 16384 * 1024, 1} },
17038 .block_erase = spi_block_erase_60,
17039 }, {
17040 .eraseblocks = { { 16384 * 1024, 1} },
17041 .block_erase = spi_block_erase_c7,
17042 }
17043 },
17044 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17045 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17046 .write = spi_chip_write_256, /* Multi I/O supported */
17047 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17048 .voltage = {2700, 3600},
17049 },
17050
17051 {
17052 .vendor = "Spansion",
17053 .name = "S25FL128S......1", /* uniform 256 kB sectors */
17054 .bustype = BUS_SPI,
17055 .manufacture_id = SPANSION_ID,
17056 .model_id = SPANSION_S25FL128,
17057 .total_size = 16384,
17058 .page_size = 512,
17059 /* supports 4B addressing */
17060 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17061 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17062 .tested = TEST_UNTESTED,
17063 .probe = probe_spi_rdid,
17064 .probe_timing = TIMING_ZERO,
17065 .block_erasers =
17066 {
17067 {
17068 .eraseblocks = { {256 * 1024, 64} },
17069 .block_erase = spi_block_erase_d8,
17070 }, {
17071 .eraseblocks = { { 16384 * 1024, 1} },
17072 .block_erase = spi_block_erase_60,
17073 }, {
17074 .eraseblocks = { { 16384 * 1024, 1} },
17075 .block_erase = spi_block_erase_c7,
17076 }
17077 },
17078 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17079 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17080 .write = spi_chip_write_256, /* Multi I/O supported */
17081 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17082 .voltage = {2700, 3600},
17083 },
17084
17085 {
17086 .vendor = "Spansion",
17087 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17088 .bustype = BUS_SPI,
17089 .manufacture_id = SPANSION_ID,
17090 .model_id = SPANSION_S25FL128,
17091 .total_size = 16384,
17092 .page_size = 256,
17093 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17095 .tested = TEST_OK_PREW,
17096 .probe = probe_spi_rdid,
17097 .probe_timing = TIMING_ZERO,
17098 .block_erasers =
17099 {
17100 {
17101 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
17102 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
17103 * effect on the memory contents, but sets a flag in the SR.
17104 .eraseblocks = {
17105 {4 * 1024, 32},
17106 {64 * 1024, 254} // inaccessible
17107 },
17108 .block_erase = spi_block_erase_20,
17109 }, { */
17110 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
17111 .eraseblocks = {
17112 {8 * 1024, 16},
17113 {64 * 1024, 254} // inaccessible
17114 },
17115 .block_erase = spi_block_erase_40,
17116 }, { */
17117 .eraseblocks = { { 64 * 1024, 256} },
17118 .block_erase = spi_block_erase_d8,
17119 }, {
17120 .eraseblocks = { { 16384 * 1024, 1} },
17121 .block_erase = spi_block_erase_60,
17122 }, {
17123 .eraseblocks = { { 16384 * 1024, 1} },
17124 .block_erase = spi_block_erase_c7,
17125 }
17126 },
17127 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17128 .unlock = spi_disable_blockprotect_bp2_srwd,
17129 .write = spi_chip_write_256, /* Multi I/O supported */
17130 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17131 .voltage = {2700, 3600},
17132 },
17133
17134 {
17135 .vendor = "Spansion",
17136 .name = "S25FL129P......1", /* uniform 256 kB sectors */
17137 .bustype = BUS_SPI,
17138 .manufacture_id = SPANSION_ID,
17139 .model_id = SPANSION_S25FL128,
17140 .total_size = 16384,
17141 .page_size = 256,
17142 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17143 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17144 .tested = TEST_UNTESTED,
17145 .probe = probe_spi_rdid,
17146 .probe_timing = TIMING_ZERO,
17147 .block_erasers =
17148 {
17149 {
17150 .eraseblocks = { {256 * 1024, 64} },
17151 .block_erase = spi_block_erase_d8,
17152 }, {
17153 .eraseblocks = { { 16384 * 1024, 1} },
17154 .block_erase = spi_block_erase_60,
17155 }, {
17156 .eraseblocks = { { 16384 * 1024, 1} },
17157 .block_erase = spi_block_erase_c7,
17158 }
17159 },
17160 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17161 .unlock = spi_disable_blockprotect_bp2_srwd,
17162 .write = spi_chip_write_256, /* Multi I/O supported */
17163 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17164 .voltage = {2700, 3600},
17165 },
17166
17167 {
17168 .vendor = "Spansion",
17169 .name = "S25FL132K",
17170 .bustype = BUS_SPI,
17171 .manufacture_id = SPANSION_ID,
17172 .model_id = SPANSION_S25FL132K,
17173 .total_size = 4096,
17174 .page_size = 256,
17175 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17176 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17177 .tested = TEST_UNTESTED,
17178 .probe = probe_spi_rdid,
17179 .probe_timing = TIMING_ZERO,
17180 .block_erasers =
17181 {
17182 {
17183 .eraseblocks = { {4 * 1024, 1024} },
17184 .block_erase = spi_block_erase_20,
17185 }, {
17186 .eraseblocks = { {64 * 1024, 64} },
17187 .block_erase = spi_block_erase_d8,
17188 }, {
17189 .eraseblocks = { { 4096 * 1024, 1} },
17190 .block_erase = spi_block_erase_60,
17191 }, {
17192 .eraseblocks = { { 4096 * 1024, 1} },
17193 .block_erase = spi_block_erase_c7,
17194 }
17195 },
17196 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17197 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17198 .write = spi_chip_write_256,
17199 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17200 .voltage = {2700, 3600},
17201 },
17202
17203 {
17204 .vendor = "Spansion",
17205 .name = "S25FL164K",
17206 .bustype = BUS_SPI,
17207 .manufacture_id = SPANSION_ID,
17208 .model_id = SPANSION_S25FL164K,
17209 .total_size = 8192,
17210 .page_size = 256,
17211 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17213 .tested = TEST_OK_PREW,
17214 .probe = probe_spi_rdid,
17215 .probe_timing = TIMING_ZERO,
17216 .block_erasers =
17217 {
17218 {
17219 .eraseblocks = { {4 * 1024, 2048} },
17220 .block_erase = spi_block_erase_20,
17221 }, {
17222 .eraseblocks = { {64 * 1024, 128} },
17223 .block_erase = spi_block_erase_d8,
17224 }, {
17225 .eraseblocks = { { 8192 * 1024, 1} },
17226 .block_erase = spi_block_erase_60,
17227 }, {
17228 .eraseblocks = { { 8192 * 1024, 1} },
17229 .block_erase = spi_block_erase_c7,
17230 }
17231 },
17232 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17233 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17234 .write = spi_chip_write_256,
17235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17236 .voltage = {2700, 3600},
17237 },
17238
17239 {
17240 .vendor = "Spansion",
17241 .name = "S25FL204K",
17242 .bustype = BUS_SPI,
17243 .manufacture_id = SPANSION_ID,
17244 .model_id = SPANSION_S25FL204,
17245 .total_size = 512,
17246 .page_size = 256,
17247 .feature_bits = FEATURE_WRSR_WREN,
17248 .tested = TEST_OK_PR,
17249 .probe = probe_spi_rdid,
17250 .probe_timing = TIMING_ZERO,
17251 .block_erasers =
17252 {
17253 {
17254 .eraseblocks = { {4 * 1024, 128} },
17255 .block_erase = spi_block_erase_20,
17256 }, {
17257 .eraseblocks = { {64 * 1024, 8} },
17258 .block_erase = spi_block_erase_d8,
17259 }, {
17260 .eraseblocks = { { 512 * 1024, 1} },
17261 .block_erase = spi_block_erase_60,
17262 }, {
17263 .eraseblocks = { { 512 * 1024, 1} },
17264 .block_erase = spi_block_erase_c7,
17265 }
17266 },
17267 .printlock = spi_prettyprint_status_register_bp3_srwd,
17268 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17269 .write = spi_chip_write_256,
17270 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17271 .voltage = {2700, 3600},
17272 },
17273
17274 {
17275 .vendor = "Spansion",
17276 .name = "S25FL208K",
17277 .bustype = BUS_SPI,
17278 .manufacture_id = SPANSION_ID,
17279 .model_id = SPANSION_S25FL208,
17280 .total_size = 1024,
17281 .page_size = 256,
17282 .feature_bits = FEATURE_WRSR_WREN,
17283 .tested = TEST_OK_PREW,
17284 .probe = probe_spi_rdid,
17285 .probe_timing = TIMING_ZERO,
17286 .block_erasers =
17287 {
17288 {
17289 .eraseblocks = { {4 * 1024, 256} },
17290 .block_erase = spi_block_erase_20,
17291 }, {
17292 .eraseblocks = { {64 * 1024, 16} },
17293 .block_erase = spi_block_erase_d8,
17294 }, {
17295 .eraseblocks = { { 1024 * 1024, 1} },
17296 .block_erase = spi_block_erase_60,
17297 }, {
17298 .eraseblocks = { { 1024 * 1024, 1} },
17299 .block_erase = spi_block_erase_c7,
17300 }
17301 },
17302 .printlock = spi_prettyprint_status_register_bp3_srwd,
17303 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17304 .write = spi_chip_write_256,
17305 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17306 .voltage = {2700, 3600},
17307 },
17308
17309 {
17310 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020017311 .name = "S25FL256L",
17312 .bustype = BUS_SPI,
17313 .manufacture_id = SPANSION_ID,
17314 .model_id = SPANSION_S25FL256L,
17315 .total_size = 32768,
17316 .page_size = 256,
17317 /* 4 x 256B Security Region (OTP) */
17318 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
17319 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
17320 .tested = TEST_UNTESTED,
17321 .probe = probe_spi_rdid,
17322 .probe_timing = TIMING_ZERO,
17323 .block_erasers =
17324 {
17325 {
17326 .eraseblocks = { {4 * 1024, 8192} },
17327 .block_erase = spi_block_erase_21,
17328 }, {
17329 .eraseblocks = { {4 * 1024, 8192} },
17330 .block_erase = spi_block_erase_20,
17331 }, {
17332 .eraseblocks = { {32 * 1024, 1024} },
17333 .block_erase = spi_block_erase_53,
17334 }, {
17335 .eraseblocks = { {32 * 1024, 1024} },
17336 .block_erase = spi_block_erase_52,
17337 }, {
17338 .eraseblocks = { {64 * 1024, 512} },
17339 .block_erase = spi_block_erase_dc,
17340 }, {
17341 .eraseblocks = { {64 * 1024, 512} },
17342 .block_erase = spi_block_erase_d8,
17343 }, {
17344 .eraseblocks = { {32768 * 1024, 1} },
17345 .block_erase = spi_block_erase_60,
17346 }, {
17347 .eraseblocks = { {32768 * 1024, 1} },
17348 .block_erase = spi_block_erase_c7,
17349 }
17350 },
17351 .printlock = spi_prettyprint_status_register_bp3_srwd,
17352 .unlock = spi_disable_blockprotect_bp3_srwd,
17353 .write = spi_chip_write_256,
17354 .read = spi_chip_read, /* Fast read (0x0B) supported */
17355 .voltage = {2700, 3600},
17356 .reg_bits =
17357 {
17358 /*
17359 * Note: This chip has a read-only Status Register 2 that is not
17360 * counted here. Registers are mapped as follows:
17361 * STATUS1 ... Status Register 1
17362 * STATUS2 ... Configuration Register 1
17363 * STATUS3 ... Configuration Register 2
17364 */
17365 .srp = {STATUS1, 7, RW},
17366 .srl = {STATUS2, 0, RW},
17367 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17368 .tb = {STATUS1, 6, RW},
17369 .cmp = {STATUS2, 6, RW},
17370 .wps = {STATUS3, 2, RW},
17371 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017372 .wp_write_cfg = spi_wp_write_cfg,
17373 .wp_read_cfg = spi_wp_read_cfg,
17374 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020017375 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017376 .prepare_access = spi_prepare_4ba,
Nico Huberfffc48d2022-05-28 14:26:06 +020017377 },
17378
17379 {
17380 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017381 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17382 .bustype = BUS_SPI,
17383 .manufacture_id = SPANSION_ID,
17384 .model_id = SPANSION_S25FL256,
17385 .total_size = 32768,
17386 .page_size = 256,
17387 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020017388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17389 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017390 .tested = TEST_OK_PREW,
17391 .probe = probe_spi_rdid,
17392 .probe_timing = TIMING_ZERO,
17393 .block_erasers =
17394 {
17395 {
17396 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17397 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17398 * have no effect on the memory contents, but sets a flag in the SR.
17399 .eraseblocks = {
17400 {4 * 1024, 32},
17401 {64 * 1024, 254} // inaccessible
17402 },
17403 .block_erase = spi_block_erase_20,
17404 }, { */
17405 .eraseblocks = { { 64 * 1024, 512} },
17406 .block_erase = spi_block_erase_dc,
17407 }, {
17408 .eraseblocks = { { 64 * 1024, 512} },
17409 .block_erase = spi_block_erase_d8,
17410 }, {
17411 .eraseblocks = { { 32768 * 1024, 1} },
17412 .block_erase = spi_block_erase_60,
17413 }, {
17414 .eraseblocks = { { 32768 * 1024, 1} },
17415 .block_erase = spi_block_erase_c7,
17416 }
17417 },
17418 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17419 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17420 .write = spi_chip_write_256, /* Multi I/O supported */
17421 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17422 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017423 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017424 },
17425
17426 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017427 .vendor = "Spansion",
17428 .name = "S25FL512S",
17429 .bustype = BUS_SPI,
17430 .manufacture_id = SPANSION_ID,
17431 .model_id = SPANSION_S25FL512,
17432 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
17433 .page_size = 256,
17434 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020017435 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17436 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
17437 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017438 .probe = probe_spi_rdid,
17439 .probe_timing = TIMING_ZERO,
17440 .block_erasers =
17441 {
17442 {
17443 .eraseblocks = { { 256 * 1024, 256} },
17444 .block_erase = spi_block_erase_dc,
17445 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020017446 .eraseblocks = { { 256 * 1024, 256} },
17447 .block_erase = spi_block_erase_d8,
17448 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017449 .eraseblocks = { { 65536 * 1024, 1} },
17450 .block_erase = spi_block_erase_60,
17451 }, {
17452 .eraseblocks = { { 65536 * 1024, 1} },
17453 .block_erase = spi_block_erase_c7,
17454 }
17455 },
17456 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17457 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17458 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
17459 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17460 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017461 .prepare_access = spi_prepare_4ba,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017462 },
17463
17464 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017465 .vendor = "SyncMOS/MoselVitelic",
17466 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017467 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017468 .manufacture_id = SYNCMOS_MVC_ID,
17469 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017470 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017471 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017472 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017473 .tested = TEST_UNTESTED,
17474 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017475 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017476 .block_erasers =
17477 {
17478 {
17479 .eraseblocks = { {512, 256} },
17480 .block_erase = erase_sector_jedec,
17481 }, {
17482 .eraseblocks = { {128 * 1024, 1} },
17483 .block_erase = erase_chip_block_jedec,
17484 },
17485 },
Sean Nelson35727f72010-01-28 23:55:12 +000017486 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017487 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017488 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017489 .prepare_access = prepare_memory_access,
17490 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017491 },
17492
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017493 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017494 .vendor = "SyncMOS/MoselVitelic",
17495 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017496 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017497 .manufacture_id = SYNCMOS_MVC_ID,
17498 .model_id = SM_MVC_29C51001T,
17499 .total_size = 128,
17500 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017501 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017502 .tested = TEST_UNTESTED,
17503 .probe = probe_jedec,
17504 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17505 .block_erasers =
17506 {
17507 {
17508 .eraseblocks = { {512, 256} },
17509 .block_erase = erase_sector_jedec,
17510 }, {
17511 .eraseblocks = { {128 * 1024, 1} },
17512 .block_erase = erase_chip_block_jedec,
17513 },
17514 },
17515 .write = write_jedec_1,
17516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017517 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017518 .prepare_access = prepare_memory_access,
17519 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017520 },
17521
17522 {
17523 .vendor = "SyncMOS/MoselVitelic",
17524 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017525 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017526 .manufacture_id = SYNCMOS_MVC_ID,
17527 .model_id = SM_MVC_29C51002B,
17528 .total_size = 256,
17529 .page_size = 512,
17530 .feature_bits = FEATURE_EITHER_RESET,
17531 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017532 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017533 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017534 .block_erasers =
17535 {
17536 {
17537 .eraseblocks = { {512, 512} },
17538 .block_erase = erase_sector_jedec,
17539 }, {
17540 .eraseblocks = { {256 * 1024, 1} },
17541 .block_erase = erase_chip_block_jedec,
17542 },
17543 },
Sean Nelson35727f72010-01-28 23:55:12 +000017544 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017545 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017546 .prepare_access = prepare_memory_access,
17547 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017548 },
17549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017550 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017551 .vendor = "SyncMOS/MoselVitelic",
17552 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017553 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017554 .manufacture_id = SYNCMOS_MVC_ID,
17555 .model_id = SM_MVC_29C51002T,
17556 .total_size = 256,
17557 .page_size = 512,
17558 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017559 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017560 .probe = probe_jedec,
17561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17562 .block_erasers =
17563 {
17564 {
17565 .eraseblocks = { {512, 512} },
17566 .block_erase = erase_sector_jedec,
17567 }, {
17568 .eraseblocks = { {256 * 1024, 1} },
17569 .block_erase = erase_chip_block_jedec,
17570 },
17571 },
17572 .write = write_jedec_1,
17573 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017574 .prepare_access = prepare_memory_access,
17575 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017576 },
17577
17578 {
17579 .vendor = "SyncMOS/MoselVitelic",
17580 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017581 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017582 .manufacture_id = SYNCMOS_MVC_ID,
17583 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017584 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017585 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017586 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017587 .tested = TEST_UNTESTED,
17588 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017589 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017590 .block_erasers =
17591 {
17592 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017593 .eraseblocks = { {1024, 512} },
17594 .block_erase = erase_sector_jedec,
17595 }, {
17596 .eraseblocks = { {512 * 1024, 1} },
17597 .block_erase = erase_chip_block_jedec,
17598 },
17599 },
17600 .write = write_jedec_1,
17601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017602 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017603 .prepare_access = prepare_memory_access,
17604 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017605 },
17606
17607 {
17608 .vendor = "SyncMOS/MoselVitelic",
17609 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017610 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017611 .manufacture_id = SYNCMOS_MVC_ID,
17612 .model_id = SM_MVC_29C51004T,
17613 .total_size = 512,
17614 .page_size = 1024,
17615 .feature_bits = FEATURE_EITHER_RESET,
17616 .tested = TEST_UNTESTED,
17617 .probe = probe_jedec,
17618 .probe_timing = TIMING_ZERO,
17619 .block_erasers =
17620 {
17621 {
17622 .eraseblocks = { {1024, 512} },
17623 .block_erase = erase_sector_jedec,
17624 }, {
17625 .eraseblocks = { {512 * 1024, 1} },
17626 .block_erase = erase_chip_block_jedec,
17627 },
17628 },
17629 .write = write_jedec_1,
17630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017631 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017632 .prepare_access = prepare_memory_access,
17633 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017634 },
17635
17636 {
17637 .vendor = "SyncMOS/MoselVitelic",
17638 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017639 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017640 .manufacture_id = SYNCMOS_MVC_ID,
17641 .model_id = SM_MVC_29C31004B,
17642 .total_size = 512,
17643 .page_size = 1024,
17644 .feature_bits = FEATURE_EITHER_RESET,
17645 .tested = TEST_UNTESTED,
17646 .probe = probe_jedec,
17647 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17648 .block_erasers =
17649 {
17650 {
17651 .eraseblocks = { {1024, 512} },
17652 .block_erase = erase_sector_jedec,
17653 }, {
17654 .eraseblocks = { {512 * 1024, 1} },
17655 .block_erase = erase_chip_block_jedec,
17656 },
17657 },
17658 .write = write_jedec_1,
17659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017660 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017661 .prepare_access = prepare_memory_access,
17662 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017663 },
17664
17665 {
17666 .vendor = "SyncMOS/MoselVitelic",
17667 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017668 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017669 .manufacture_id = SYNCMOS_MVC_ID,
17670 .model_id = SM_MVC_29C31004T,
17671 .total_size = 512,
17672 .page_size = 1024,
17673 .feature_bits = FEATURE_EITHER_RESET,
17674 .tested = TEST_UNTESTED,
17675 .probe = probe_jedec,
17676 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17677 .block_erasers =
17678 {
17679 {
17680 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017681 .block_erase = erase_sector_jedec,
17682 }, {
17683 .eraseblocks = { {512 * 1024, 1} },
17684 .block_erase = erase_chip_block_jedec,
17685 },
17686 },
Sean Nelson35727f72010-01-28 23:55:12 +000017687 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017689 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017690 .prepare_access = prepare_memory_access,
17691 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017692 },
17693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017694 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017695 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017696 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017697 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017698 .manufacture_id = TI_OLD_ID,
17699 .model_id = TI_TMS29F002RB,
17700 .total_size = 256,
17701 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017702 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017703 .tested = TEST_UNTESTED,
17704 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017705 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017706 .block_erasers =
17707 {
17708 {
17709 .eraseblocks = {
17710 {16 * 1024, 1},
17711 {8 * 1024, 2},
17712 {32 * 1024, 1},
17713 {64 * 1024, 3},
17714 },
17715 .block_erase = erase_sector_jedec,
17716 }, {
17717 .eraseblocks = { {256 * 1024, 1} },
17718 .block_erase = erase_chip_block_jedec,
17719 },
17720 },
Sean Nelson35727f72010-01-28 23:55:12 +000017721 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017723 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017724 .prepare_access = prepare_memory_access,
17725 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017726 },
17727
17728 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017729 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017730 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017731 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017732 .manufacture_id = TI_OLD_ID,
17733 .model_id = TI_TMS29F002RT,
17734 .total_size = 256,
17735 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017736 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017737 .tested = TEST_UNTESTED,
17738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017740 .block_erasers =
17741 {
17742 {
17743 .eraseblocks = {
17744 {64 * 1024, 3},
17745 {32 * 1024, 1},
17746 {8 * 1024, 2},
17747 {16 * 1024, 1},
17748 },
17749 .block_erase = erase_sector_jedec,
17750 }, {
17751 .eraseblocks = { {256 * 1024, 1} },
17752 .block_erase = erase_chip_block_jedec,
17753 },
17754 },
Sean Nelson35727f72010-01-28 23:55:12 +000017755 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017757 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017758 .prepare_access = prepare_memory_access,
17759 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017760 },
17761
17762 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017763 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017764 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017765 .bustype = BUS_SPI,
17766 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017767 .model_id = WINBOND_NEX_W25P16,
17768 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017769 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017770 .feature_bits = FEATURE_WRSR_WREN,
17771 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017772 .probe = probe_spi_rdid,
17773 .probe_timing = TIMING_ZERO,
17774 .block_erasers =
17775 {
17776 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017777 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017778 .block_erase = spi_block_erase_d8,
17779 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017780 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017781 .block_erase = spi_block_erase_c7,
17782 }
17783 },
17784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17785 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017786 .write = spi_chip_write_256,
17787 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017788 .voltage = {2700, 3600},
17789 },
17790
17791 {
17792 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017793 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017794 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017795 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017796 .model_id = WINBOND_NEX_W25P32,
17797 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017798 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017799 .feature_bits = FEATURE_WRSR_WREN,
17800 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017801 .probe = probe_spi_rdid,
17802 .probe_timing = TIMING_ZERO,
17803 .block_erasers =
17804 {
17805 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017806 .eraseblocks = { {64 * 1024, 64} },
17807 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017808 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017809 .eraseblocks = { {4096 * 1024, 1} },
17810 .block_erase = spi_block_erase_c7,
17811 }
17812 },
17813 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17814 .unlock = spi_disable_blockprotect,
17815 .write = spi_chip_write_256,
17816 .read = spi_chip_read, /* Fast read (0x0B) supported */
17817 .voltage = {2700, 3600},
17818 },
17819
17820 {
17821 .vendor = "Winbond",
17822 .name = "W25P80",
17823 .bustype = BUS_SPI,
17824 .manufacture_id = WINBOND_NEX_ID,
17825 .model_id = WINBOND_NEX_W25P80,
17826 .total_size = 1024,
17827 .page_size = 256,
17828 .feature_bits = FEATURE_WRSR_WREN,
17829 .tested = TEST_UNTESTED,
17830 .probe = probe_spi_rdid,
17831 .probe_timing = TIMING_ZERO,
17832 .block_erasers =
17833 {
17834 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017835 .eraseblocks = { {64 * 1024, 16} },
17836 .block_erase = spi_block_erase_d8,
17837 }, {
17838 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017839 .block_erase = spi_block_erase_c7,
17840 }
17841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017843 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017844 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017845 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017846 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017847 },
17848
17849 {
17850 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017851 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017852 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017853 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017854 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017855 .total_size = 16384,
17856 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017857 /* supports SFDP */
17858 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017859 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17860 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017861 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017862 .probe = probe_spi_rdid,
17863 .probe_timing = TIMING_ZERO,
17864 .block_erasers =
17865 {
17866 {
17867 .eraseblocks = { {4 * 1024, 4096} },
17868 .block_erase = spi_block_erase_20,
17869 }, {
17870 .eraseblocks = { {32 * 1024, 512} },
17871 .block_erase = spi_block_erase_52,
17872 }, {
17873 .eraseblocks = { {64 * 1024, 256} },
17874 .block_erase = spi_block_erase_d8,
17875 }, {
17876 .eraseblocks = { {16 * 1024 * 1024, 1} },
17877 .block_erase = spi_block_erase_60,
17878 }, {
17879 .eraseblocks = { {16 * 1024 * 1024, 1} },
17880 .block_erase = spi_block_erase_c7,
17881 }
17882 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017883 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017884 .unlock = spi_disable_blockprotect,
17885 .write = spi_chip_write_256,
17886 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017887 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017888 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17889 .reg_bits =
17890 {
17891 .srp = {STATUS1, 7, RW},
17892 .srl = {STATUS2, 0, RW},
17893 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17894 .tb = {STATUS1, 5, RW},
17895 .sec = {STATUS1, 6, RW},
17896 .cmp = {STATUS2, 6, RW},
17897 .wps = {STATUS3, 2, RW},
17898 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017899 .wp_write_cfg = spi_wp_write_cfg,
17900 .wp_read_cfg = spi_wp_read_cfg,
17901 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017902 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017903 },
17904
17905 {
17906 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017907 .name = "W25Q128.V..M",
17908 .bustype = BUS_SPI,
17909 .manufacture_id = WINBOND_NEX_ID,
17910 .model_id = WINBOND_NEX_W25Q128_V_M,
17911 .total_size = 16384,
17912 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010017913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
17914 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017915 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017916 .probe = probe_spi_rdid,
17917 .probe_timing = TIMING_ZERO,
17918 .block_erasers =
17919 {
17920 {
17921 .eraseblocks = { {4 * 1024, 4096} },
17922 .block_erase = spi_block_erase_20,
17923 }, {
17924 .eraseblocks = { {32 * 1024, 512} },
17925 .block_erase = spi_block_erase_52,
17926 }, {
17927 .eraseblocks = { {64 * 1024, 256} },
17928 .block_erase = spi_block_erase_d8,
17929 }, {
17930 .eraseblocks = { {16 * 1024 * 1024, 1} },
17931 .block_erase = spi_block_erase_60,
17932 }, {
17933 .eraseblocks = { {16 * 1024 * 1024, 1} },
17934 .block_erase = spi_block_erase_c7,
17935 }
17936 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017937 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017938 .unlock = spi_disable_blockprotect,
17939 .write = spi_chip_write_256,
17940 .read = spi_chip_read,
17941 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017942 .reg_bits =
17943 {
17944 .srp = {STATUS1, 7, RW},
17945 .srl = {STATUS2, 0, RW},
17946 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17947 .tb = {STATUS1, 5, RW},
17948 .sec = {STATUS1, 6, RW},
17949 .cmp = {STATUS2, 6, RW},
17950 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017951 .wp_write_cfg = spi_wp_write_cfg,
17952 .wp_read_cfg = spi_wp_read_cfg,
17953 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017954 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020017955 },
17956
17957 {
17958 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017959 .name = "W25Q128.W",
17960 .bustype = BUS_SPI,
17961 .manufacture_id = WINBOND_NEX_ID,
17962 .model_id = WINBOND_NEX_W25Q128_W,
17963 .total_size = 16384,
17964 .page_size = 256,
17965 /* supports SFDP */
17966 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010017967 /* QPI: only FW & JW..M versions */
17968 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017969 .tested = TEST_OK_PREW,
17970 .probe = probe_spi_rdid,
17971 .probe_timing = TIMING_ZERO,
17972 .block_erasers =
17973 {
17974 {
17975 .eraseblocks = { {4 * 1024, 4096} },
17976 .block_erase = spi_block_erase_20,
17977 }, {
17978 .eraseblocks = { {32 * 1024, 512} },
17979 .block_erase = spi_block_erase_52,
17980 }, {
17981 .eraseblocks = { {64 * 1024, 256} },
17982 .block_erase = spi_block_erase_d8,
17983 }, {
17984 .eraseblocks = { {16 * 1024 * 1024, 1} },
17985 .block_erase = spi_block_erase_60,
17986 }, {
17987 .eraseblocks = { {16 * 1024 * 1024, 1} },
17988 .block_erase = spi_block_erase_c7,
17989 }
17990 },
17991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17992 .unlock = spi_disable_blockprotect,
17993 .write = spi_chip_write_256,
17994 .read = spi_chip_read,
17995 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017996 .reg_bits =
17997 {
17998 .srp = {STATUS1, 7, RW},
17999 .srl = {STATUS2, 0, RW},
18000 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18001 .tb = {STATUS1, 5, RW},
18002 .sec = {STATUS1, 6, RW},
18003 .cmp = {STATUS2, 6, 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,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018008 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018009 },
18010
18011 {
18012 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080018013 .name = "W25Q128.JW.DTR",
18014 .bustype = BUS_SPI,
18015 .manufacture_id = WINBOND_NEX_ID,
18016 .model_id = WINBOND_NEX_W25Q128_DTR,
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 } },
Peichao Wang1a119492019-11-11 15:26:41 +080018021 .tested = TEST_OK_PREW,
18022 .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 },
18043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18044 .unlock = spi_disable_blockprotect,
18045 .write = spi_chip_write_256,
18046 .read = spi_chip_read,
18047 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018048 .reg_bits =
18049 {
18050 .srp = {STATUS1, 7, RW},
18051 .srl = {STATUS2, 0, RW},
18052 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18053 .tb = {STATUS1, 5, RW},
18054 .sec = {STATUS1, 6, RW},
18055 .cmp = {STATUS2, 6, RW},
18056 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018057 .wp_write_cfg = spi_wp_write_cfg,
18058 .wp_read_cfg = spi_wp_read_cfg,
18059 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018060 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080018061 },
18062
18063 {
18064 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018065 .name = "W25Q16.V",
18066 .bustype = BUS_SPI,
18067 .manufacture_id = WINBOND_NEX_ID,
18068 .model_id = WINBOND_NEX_W25Q16_V,
18069 .total_size = 2048,
18070 .page_size = 256,
18071 /* supports SFDP */
18072 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18073 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18074 .tested = TEST_OK_PREW,
18075 .probe = probe_spi_rdid,
18076 .probe_timing = TIMING_ZERO,
18077 .block_erasers =
18078 {
18079 {
18080 .eraseblocks = { {4 * 1024, 512} },
18081 .block_erase = spi_block_erase_20,
18082 }, {
18083 .eraseblocks = { {32 * 1024, 64} },
18084 .block_erase = spi_block_erase_52,
18085 }, {
18086 .eraseblocks = { {64 * 1024, 32} },
18087 .block_erase = spi_block_erase_d8,
18088 }, {
18089 .eraseblocks = { {2 * 1024 * 1024, 1} },
18090 .block_erase = spi_block_erase_60,
18091 }, {
18092 .eraseblocks = { {2 * 1024 * 1024, 1} },
18093 .block_erase = spi_block_erase_c7,
18094 }
18095 },
18096 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18097 .unlock = spi_disable_blockprotect,
18098 .write = spi_chip_write_256,
18099 .read = spi_chip_read,
18100 .voltage = {2700, 3600},
18101 },
18102
18103 {
18104 .vendor = "Winbond",
18105 .name = "W25Q16.W",
18106 .bustype = BUS_SPI,
18107 .manufacture_id = WINBOND_NEX_ID,
18108 .model_id = WINBOND_NEX_W25Q16_W,
18109 .total_size = 2048,
18110 .page_size = 256,
18111 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018112 /* QPI: only FW & JW..M versions .qpi_read_params = { 2, 4, 6, 8 } */
18113 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018114 .tested = TEST_UNTESTED,
18115 .probe = probe_spi_rdid,
18116 .probe_timing = TIMING_ZERO,
18117 .block_erasers =
18118 {
18119 {
18120 .eraseblocks = { {4 * 1024, 512} },
18121 .block_erase = spi_block_erase_20,
18122 }, {
18123 .eraseblocks = { {32 * 1024, 64} },
18124 .block_erase = spi_block_erase_52,
18125 }, {
18126 .eraseblocks = { {64 * 1024, 32} },
18127 .block_erase = spi_block_erase_d8,
18128 }, {
18129 .eraseblocks = { {2 * 1024 * 1024, 1} },
18130 .block_erase = spi_block_erase_60,
18131 }, {
18132 .eraseblocks = { {2 * 1024 * 1024, 1} },
18133 .block_erase = spi_block_erase_c7,
18134 }
18135 },
18136 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18137 .unlock = spi_disable_blockprotect,
18138 .write = spi_chip_write_256,
18139 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018140 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100018141 },
18142
18143 {
18144 .vendor = "Winbond",
18145 .name = "W25Q20.W",
18146 .bustype = BUS_SPI,
18147 .manufacture_id = WINBOND_NEX_ID,
18148 .model_id = WINBOND_NEX_W25Q20_W,
18149 .total_size = 256,
18150 .page_size = 256,
18151 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18152 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18153 .tested = TEST_UNTESTED,
18154 .probe = probe_spi_rdid,
18155 .probe_timing = TIMING_ZERO,
18156 .block_erasers =
18157 {
18158 {
18159 .eraseblocks = { {4 * 1024, 64} },
18160 .block_erase = spi_block_erase_20,
18161 }, {
18162 .eraseblocks = { {32 * 1024, 8} },
18163 .block_erase = spi_block_erase_52,
18164 }, {
18165 .eraseblocks = { {64 * 1024, 4} },
18166 .block_erase = spi_block_erase_d8,
18167 }, {
18168 .eraseblocks = { {256 * 1024, 1} },
18169 .block_erase = spi_block_erase_60,
18170 }, {
18171 .eraseblocks = { {256 * 1024, 1} },
18172 .block_erase = spi_block_erase_c7,
18173 }
18174 },
18175 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18176 .unlock = spi_disable_blockprotect,
18177 .write = spi_chip_write_256,
18178 .read = spi_chip_read,
18179 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18180 },
18181
18182 {
18183 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018184 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020018185 .bustype = BUS_SPI,
18186 .manufacture_id = WINBOND_NEX_ID,
18187 .model_id = WINBOND_NEX_W25Q256_V,
18188 .total_size = 32768,
18189 .page_size = 256,
18190 /* supports SFDP */
18191 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018192 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020018193 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018194 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020018195 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018196 .probe = probe_spi_rdid,
18197 .probe_timing = TIMING_ZERO,
18198 .block_erasers =
18199 {
18200 {
18201 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020018202 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018203 }, {
18204 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020018205 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018206 }, {
18207 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020018208 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018209 }, {
18210 .eraseblocks = { {32 * 1024 * 1024, 1} },
18211 .block_erase = spi_block_erase_60,
18212 }, {
18213 .eraseblocks = { {32 * 1024 * 1024, 1} },
18214 .block_erase = spi_block_erase_c7,
18215 }
18216 },
18217 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18218 .unlock = spi_disable_blockprotect,
18219 .write = spi_chip_write_256,
18220 .read = spi_chip_read,
18221 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018222 .reg_bits =
18223 {
18224 .srp = {STATUS1, 7, RW},
18225 .srl = {STATUS2, 0, RW},
18226 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18227 .tb = {STATUS1, 6, RW},
18228 .cmp = {STATUS2, 6, RW},
18229 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018230 .wp_write_cfg = spi_wp_write_cfg,
18231 .wp_read_cfg = spi_wp_read_cfg,
18232 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018233 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018234 .prepare_access = spi_prepare_4ba,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018235 },
18236
18237 {
18238 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018239 .name = "W25Q256JV_Q",
18240 .bustype = BUS_SPI,
18241 .manufacture_id = WINBOND_NEX_ID,
18242 .model_id = WINBOND_NEX_W25Q256_V,
18243 .total_size = 32768,
18244 .page_size = 256,
18245 /* supports SFDP */
18246 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
Nico Huberddfbbe82023-12-21 16:31:27 +010018248 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020018249 .probe = probe_spi_rdid,
18250 .probe_timing = TIMING_ZERO,
18251 .block_erasers =
18252 {
18253 {
18254 .eraseblocks = { {4 * 1024, 8192} },
18255 .block_erase = spi_block_erase_21,
18256 }, {
18257 .eraseblocks = { {4 * 1024, 8192} },
18258 .block_erase = spi_block_erase_20,
18259 }, {
18260 .eraseblocks = { {32 * 1024, 1024} },
18261 .block_erase = spi_block_erase_52,
18262 }, {
18263 .eraseblocks = { {64 * 1024, 512} },
18264 .block_erase = spi_block_erase_dc,
18265 }, {
18266 .eraseblocks = { {64 * 1024, 512} },
18267 .block_erase = spi_block_erase_d8,
18268 }, {
18269 .eraseblocks = { {32 * 1024 * 1024, 1} },
18270 .block_erase = spi_block_erase_60,
18271 }, {
18272 .eraseblocks = { {32 * 1024 * 1024, 1} },
18273 .block_erase = spi_block_erase_c7,
18274 }
18275 },
18276 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18277 .unlock = spi_disable_blockprotect,
18278 .write = spi_chip_write_256,
18279 .read = spi_chip_read,
18280 .voltage = {2700, 3600},
18281 .reg_bits =
18282 {
18283 .srp = {STATUS1, 7, RW},
18284 .srl = {STATUS2, 0, RW},
18285 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18286 .tb = {STATUS1, 6, RW},
18287 .cmp = {STATUS2, 6, RW},
18288 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018289 .wp_write_cfg = spi_wp_write_cfg,
18290 .wp_read_cfg = spi_wp_read_cfg,
18291 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huber5215eab2022-05-23 15:13:07 +020018292 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018293 .prepare_access = spi_prepare_4ba,
Nico Huber5215eab2022-05-23 15:13:07 +020018294 },
18295
18296 {
18297 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000018298 .name = "W25Q256JV_M",
18299 .bustype = BUS_SPI,
18300 .manufacture_id = WINBOND_NEX_ID,
18301 .model_id = WINBOND_NEX_W25Q256JV_M,
18302 .total_size = 32768,
18303 .page_size = 256,
18304 /* supports SFDP */
18305 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018306 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000018307 .tested = TEST_OK_PREW,
18308 .probe = probe_spi_rdid,
18309 .probe_timing = TIMING_ZERO,
18310 .block_erasers =
18311 {
18312 {
18313 .eraseblocks = { {4 * 1024, 8192} },
18314 .block_erase = spi_block_erase_21,
18315 }, {
18316 .eraseblocks = { {4 * 1024, 8192} },
18317 .block_erase = spi_block_erase_20,
18318 }, {
18319 .eraseblocks = { {32 * 1024, 1024} },
18320 .block_erase = spi_block_erase_52,
18321 }, {
18322 .eraseblocks = { {64 * 1024, 512} },
18323 .block_erase = spi_block_erase_dc,
18324 }, {
18325 .eraseblocks = { {64 * 1024, 512} },
18326 .block_erase = spi_block_erase_d8,
18327 }, {
18328 .eraseblocks = { {32 * 1024 * 1024, 1} },
18329 .block_erase = spi_block_erase_60,
18330 }, {
18331 .eraseblocks = { {32 * 1024 * 1024, 1} },
18332 .block_erase = spi_block_erase_c7,
18333 }
18334 },
18335 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18336 .unlock = spi_disable_blockprotect,
18337 .write = spi_chip_write_256,
18338 .read = spi_chip_read,
18339 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018340 .reg_bits =
18341 {
18342 .srp = {STATUS1, 7, RW},
18343 .srl = {STATUS2, 0, RW},
18344 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18345 .tb = {STATUS1, 6, RW},
18346 .cmp = {STATUS2, 6, RW},
18347 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018348 .wp_write_cfg = spi_wp_write_cfg,
18349 .wp_read_cfg = spi_wp_read_cfg,
18350 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018351 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018352 .prepare_access = spi_prepare_4ba,
David Hendricks49876792018-10-27 20:19:42 +000018353 },
18354
18355 {
18356 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018357 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020018358 .bustype = BUS_SPI,
18359 .manufacture_id = WINBOND_NEX_ID,
18360 .model_id = WINBOND_NEX_W25Q256_W,
18361 .total_size = 32768,
18362 .page_size = 256,
18363 /* supports SFDP */
18364 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018365 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020018366 .tested = TEST_OK_PREW,
18367 .probe = probe_spi_rdid,
18368 .probe_timing = TIMING_ZERO,
18369 .block_erasers =
18370 {
18371 {
18372 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018373 .block_erase = spi_block_erase_21,
18374 }, {
18375 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020018376 .block_erase = spi_block_erase_20,
18377 }, {
18378 .eraseblocks = { {32 * 1024, 1024} },
18379 .block_erase = spi_block_erase_52,
18380 }, {
18381 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018382 .block_erase = spi_block_erase_dc,
18383 }, {
18384 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020018385 .block_erase = spi_block_erase_d8,
18386 }, {
18387 .eraseblocks = { {32 * 1024 * 1024, 1} },
18388 .block_erase = spi_block_erase_60,
18389 }, {
18390 .eraseblocks = { {32 * 1024 * 1024, 1} },
18391 .block_erase = spi_block_erase_c7,
18392 }
18393 },
18394 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18395 .unlock = spi_disable_blockprotect,
18396 .write = spi_chip_write_256,
18397 .read = spi_chip_read,
18398 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010018399 .prepare_access = spi_prepare_4ba,
el-coderon01209852020-04-29 12:12:53 +020018400 },
18401
18402 {
18403 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070018404 .name = "W25Q256JW_DTR",
18405 .bustype = BUS_SPI,
18406 .manufacture_id = WINBOND_NEX_ID,
18407 .model_id = WINBOND_NEX_W25Q256_DTR,
18408 .total_size = 32768,
18409 .page_size = 256,
18410 /* supports SFDP */
18411 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Kapil Porwal111c3802022-12-09 19:41:27 +053018412 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18413 | FEATURE_WRSR3,
18414 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070018415 .probe = probe_spi_rdid,
18416 .probe_timing = TIMING_ZERO,
18417 .block_erasers =
18418 {
18419 {
18420 .eraseblocks = { {4 * 1024, 8192} },
18421 .block_erase = spi_block_erase_21,
18422 }, {
18423 .eraseblocks = { {4 * 1024, 8192} },
18424 .block_erase = spi_block_erase_20,
18425 }, {
18426 .eraseblocks = { {32 * 1024, 1024} },
18427 .block_erase = spi_block_erase_52,
18428 }, {
18429 .eraseblocks = { {64 * 1024, 512} },
18430 .block_erase = spi_block_erase_dc,
18431 }, {
18432 .eraseblocks = { {64 * 1024, 512} },
18433 .block_erase = spi_block_erase_d8,
18434 }, {
18435 .eraseblocks = { {32 * 1024 * 1024, 1} },
18436 .block_erase = spi_block_erase_60,
18437 }, {
18438 .eraseblocks = { {32 * 1024 * 1024, 1} },
18439 .block_erase = spi_block_erase_c7,
18440 }
18441 },
18442 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18443 .unlock = spi_disable_blockprotect,
18444 .write = spi_chip_write_256,
18445 .read = spi_chip_read,
18446 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053018447 .reg_bits =
18448 {
18449 .srp = {STATUS1, 7, RW},
18450 .srl = {STATUS2, 0, RW},
18451 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18452 .tb = {STATUS1, 6, RW},
18453 .cmp = {STATUS2, 6, RW},
18454 .wps = {STATUS3, 2, RW},
18455 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018456 .wp_write_cfg = spi_wp_write_cfg,
18457 .wp_read_cfg = spi_wp_read_cfg,
18458 .wp_get_ranges = spi_wp_get_available_ranges,
Kapil Porwal111c3802022-12-09 19:41:27 +053018459 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018460 .prepare_access = spi_prepare_4ba,
David Hendricks31532602020-08-16 17:14:56 -070018461 },
18462
18463 {
18464 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018465 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018466 .bustype = BUS_SPI,
18467 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018468 .model_id = WINBOND_NEX_W25Q32_V,
18469 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018470 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018471 /* supports SFDP */
18472 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018473 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018474 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018475 .probe = probe_spi_rdid,
18476 .probe_timing = TIMING_ZERO,
18477 .block_erasers =
18478 {
18479 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018480 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018481 .block_erase = spi_block_erase_20,
18482 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018483 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018484 .block_erase = spi_block_erase_52,
18485 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018486 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018487 .block_erase = spi_block_erase_d8,
18488 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018489 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018490 .block_erase = spi_block_erase_60,
18491 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018492 .eraseblocks = { {4 * 1024 * 1024, 1} },
18493 .block_erase = spi_block_erase_c7,
18494 }
18495 },
18496 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18497 .unlock = spi_disable_blockprotect,
18498 .write = spi_chip_write_256,
18499 .read = spi_chip_read,
18500 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018501 .reg_bits =
18502 {
18503 .srp = {STATUS1, 7, RW},
18504 .srl = {STATUS2, 0, RW},
18505 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18506 .tb = {STATUS1, 5, RW},
18507 .sec = {STATUS1, 6, RW},
18508 .cmp = {STATUS2, 6, RW},
18509 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018510 .wp_write_cfg = spi_wp_write_cfg,
18511 .wp_read_cfg = spi_wp_read_cfg,
18512 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018513 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018514 },
18515
18516 {
18517 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018518 .name = "W25Q32FV",
18519 .bustype = BUS_SPI,
18520 .manufacture_id = WINBOND_NEX_ID,
18521 .model_id = WINBOND_NEX_W25Q32_V,
18522 .total_size = 4096,
18523 .page_size = 256,
18524 /* supports SFDP */
18525 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018526 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018527 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018528 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018529 .tested = TEST_OK_PREW,
18530 .probe = probe_spi_rdid,
18531 .probe_timing = TIMING_ZERO,
18532 .block_erasers =
18533 {
18534 {
18535 .eraseblocks = { {4 * 1024, 1024} },
18536 .block_erase = spi_block_erase_20,
18537 }, {
18538 .eraseblocks = { {32 * 1024, 128} },
18539 .block_erase = spi_block_erase_52,
18540 }, {
18541 .eraseblocks = { {64 * 1024, 64} },
18542 .block_erase = spi_block_erase_d8,
18543 }, {
18544 .eraseblocks = { {4 * 1024 * 1024, 1} },
18545 .block_erase = spi_block_erase_60,
18546 }, {
18547 .eraseblocks = { {4 * 1024 * 1024, 1} },
18548 .block_erase = spi_block_erase_c7,
18549 }
18550 },
18551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18552 .unlock = spi_disable_blockprotect,
18553 .write = spi_chip_write_256,
18554 .read = spi_chip_read,
18555 .voltage = {2700, 3600},
18556 .reg_bits =
18557 {
18558 .srp = {STATUS1, 7, RW},
18559 .srl = {STATUS2, 0, RW},
18560 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18561 .tb = {STATUS1, 5, RW},
18562 .sec = {STATUS1, 6, RW},
18563 .cmp = {STATUS2, 6, RW},
18564 .wps = {STATUS3, 2, RW},
18565 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018566 .wp_write_cfg = spi_wp_write_cfg,
18567 .wp_read_cfg = spi_wp_read_cfg,
18568 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018569 .decode_range = decode_range_spi25,
18570 },
18571
18572 {
18573 .vendor = "Winbond",
18574 .name = "W25Q32JV",
18575 .bustype = BUS_SPI,
18576 .manufacture_id = WINBOND_NEX_ID,
18577 .model_id = WINBOND_NEX_W25Q32_V,
18578 .total_size = 4096,
18579 .page_size = 256,
18580 /* supports SFDP */
18581 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18582 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18583 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18584 .tested = TEST_OK_PREW,
18585 .probe = probe_spi_rdid,
18586 .probe_timing = TIMING_ZERO,
18587 .block_erasers =
18588 {
18589 {
18590 .eraseblocks = { {4 * 1024, 1024} },
18591 .block_erase = spi_block_erase_20,
18592 }, {
18593 .eraseblocks = { {32 * 1024, 128} },
18594 .block_erase = spi_block_erase_52,
18595 }, {
18596 .eraseblocks = { {64 * 1024, 64} },
18597 .block_erase = spi_block_erase_d8,
18598 }, {
18599 .eraseblocks = { {4 * 1024 * 1024, 1} },
18600 .block_erase = spi_block_erase_60,
18601 }, {
18602 .eraseblocks = { {4 * 1024 * 1024, 1} },
18603 .block_erase = spi_block_erase_c7,
18604 }
18605 },
18606 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18607 .unlock = spi_disable_blockprotect,
18608 .write = spi_chip_write_256,
18609 .read = spi_chip_read,
18610 .voltage = {2700, 3600},
18611 .reg_bits =
18612 {
18613 .srp = {STATUS1, 7, RW},
18614 .srl = {STATUS2, 0, RW},
18615 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18616 .tb = {STATUS1, 5, RW},
18617 .sec = {STATUS1, 6, RW},
18618 .cmp = {STATUS2, 6, RW},
18619 .wps = {STATUS3, 2, RW},
18620 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018621 .wp_write_cfg = spi_wp_write_cfg,
18622 .wp_read_cfg = spi_wp_read_cfg,
18623 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018624 .decode_range = decode_range_spi25,
18625 },
18626
18627 {
18628 .vendor = "Winbond",
Angel Pons0d4354e2024-05-26 16:33:51 +020018629 .name = "W25Q32JV-.M",
18630 .bustype = BUS_SPI,
18631 .manufacture_id = WINBOND_NEX_ID,
18632 .model_id = WINBOND_NEX_W25Q32JV,
18633 .total_size = 4096,
18634 .page_size = 256,
18635 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010018636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Angel Pons0d4354e2024-05-26 16:33:51 +020018637 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018638 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Angel Pons0d4354e2024-05-26 16:33:51 +020018639 .tested = TEST_OK_PREW,
18640 .probe = probe_spi_rdid,
18641 .probe_timing = TIMING_ZERO,
18642 .block_erasers =
18643 {
18644 {
18645 .eraseblocks = { {4 * 1024, 1024} },
18646 .block_erase = spi_block_erase_20,
18647 }, {
18648 .eraseblocks = { {32 * 1024, 128} },
18649 .block_erase = spi_block_erase_52,
18650 }, {
18651 .eraseblocks = { {64 * 1024, 64} },
18652 .block_erase = spi_block_erase_d8,
18653 }, {
18654 .eraseblocks = { {4 * 1024 * 1024, 1} },
18655 .block_erase = spi_block_erase_60,
18656 }, {
18657 .eraseblocks = { {4 * 1024 * 1024, 1} },
18658 .block_erase = spi_block_erase_c7,
18659 }
18660 },
18661 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18662 .unlock = spi_disable_blockprotect_bp2_srwd,
18663 .write = spi_chip_write_256,
18664 .read = spi_chip_read,
18665 .voltage = {2700, 3600},
18666 .reg_bits =
18667 {
18668 .srp = {STATUS1, 7, RW},
18669 .srl = {STATUS2, 0, RW},
18670 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18671 .tb = {STATUS1, 5, RW},
18672 .sec = {STATUS1, 6, RW},
18673 .cmp = {STATUS2, 6, RW},
18674 .wps = {STATUS3, 2, RW},
18675 },
18676 .wp_write_cfg = spi_wp_write_cfg,
18677 .wp_read_cfg = spi_wp_read_cfg,
18678 .wp_get_ranges = spi_wp_get_available_ranges,
18679 .decode_range = decode_range_spi25,
18680 },
18681
18682 {
18683 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018684 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018685 .bustype = BUS_SPI,
18686 .manufacture_id = WINBOND_NEX_ID,
18687 .model_id = WINBOND_NEX_W25Q32_W,
18688 .total_size = 4096,
18689 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018690 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018691 /* QPI: only DW version */
18692 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018693 .tested = TEST_OK_PREW,
18694 .probe = probe_spi_rdid,
18695 .probe_timing = TIMING_ZERO,
18696 .block_erasers =
18697 {
18698 {
18699 .eraseblocks = { {4 * 1024, 1024} },
18700 .block_erase = spi_block_erase_20,
18701 }, {
18702 .eraseblocks = { {32 * 1024, 128} },
18703 .block_erase = spi_block_erase_52,
18704 }, {
18705 .eraseblocks = { {64 * 1024, 64} },
18706 .block_erase = spi_block_erase_d8,
18707 }, {
18708 .eraseblocks = { {4 * 1024 * 1024, 1} },
18709 .block_erase = spi_block_erase_60,
18710 }, {
18711 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018712 .block_erase = spi_block_erase_c7,
18713 }
18714 },
18715 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18716 .unlock = spi_disable_blockprotect,
18717 .write = spi_chip_write_256,
18718 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018719 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018720 .reg_bits =
18721 {
18722 .srp = {STATUS1, 7, RW},
18723 .srl = {STATUS2, 0, RW},
18724 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18725 .tb = {STATUS1, 5, RW},
18726 .sec = {STATUS1, 6, RW},
18727 .cmp = {STATUS2, 6, RW},
18728 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018729 .wp_write_cfg = spi_wp_write_cfg,
18730 .wp_read_cfg = spi_wp_read_cfg,
18731 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018732 .decode_range = decode_range_spi25,
18733 },
18734
18735 {
18736 .vendor = "Winbond",
18737 .name = "W25Q32FW",
18738 .bustype = BUS_SPI,
18739 .manufacture_id = WINBOND_NEX_ID,
18740 .model_id = WINBOND_NEX_W25Q32_W,
18741 .total_size = 4096,
18742 .page_size = 256,
18743 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018744 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018745 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018746 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018747 .tested = TEST_OK_PREW,
18748 .probe = probe_spi_rdid,
18749 .probe_timing = TIMING_ZERO,
18750 .block_erasers =
18751 {
18752 {
18753 .eraseblocks = { {4 * 1024, 1024} },
18754 .block_erase = spi_block_erase_20,
18755 }, {
18756 .eraseblocks = { {32 * 1024, 128} },
18757 .block_erase = spi_block_erase_52,
18758 }, {
18759 .eraseblocks = { {64 * 1024, 64} },
18760 .block_erase = spi_block_erase_d8,
18761 }, {
18762 .eraseblocks = { {4 * 1024 * 1024, 1} },
18763 .block_erase = spi_block_erase_60,
18764 }, {
18765 .eraseblocks = { {4 * 1024 * 1024, 1} },
18766 .block_erase = spi_block_erase_c7,
18767 }
18768 },
18769 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18770 .unlock = spi_disable_blockprotect,
18771 .write = spi_chip_write_256,
18772 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018773 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018774 .reg_bits =
18775 {
18776 .srp = {STATUS1, 7, RW},
18777 .srl = {STATUS2, 0, RW},
18778 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18779 .tb = {STATUS1, 5, RW},
18780 .sec = {STATUS1, 6, RW},
18781 .cmp = {STATUS2, 6, RW},
18782 .wps = {STATUS3, 2, RW},
18783 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018784 .wp_write_cfg = spi_wp_write_cfg,
18785 .wp_read_cfg = spi_wp_read_cfg,
18786 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018787 .decode_range = decode_range_spi25,
18788 },
18789
18790 {
18791 .vendor = "Winbond",
18792 .name = "W25Q32JW...Q",
18793 .bustype = BUS_SPI,
18794 .manufacture_id = WINBOND_NEX_ID,
18795 .model_id = WINBOND_NEX_W25Q32_W,
18796 .total_size = 4096,
18797 .page_size = 256,
18798 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18799 /* QPI enable 0x38, disable 0xFF */
18800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18801 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18802 .tested = TEST_OK_PREW,
18803 .probe = probe_spi_rdid,
18804 .probe_timing = TIMING_ZERO,
18805 .block_erasers =
18806 {
18807 {
18808 .eraseblocks = { {4 * 1024, 1024} },
18809 .block_erase = spi_block_erase_20,
18810 }, {
18811 .eraseblocks = { {32 * 1024, 128} },
18812 .block_erase = spi_block_erase_52,
18813 }, {
18814 .eraseblocks = { {64 * 1024, 64} },
18815 .block_erase = spi_block_erase_d8,
18816 }, {
18817 .eraseblocks = { {4 * 1024 * 1024, 1} },
18818 .block_erase = spi_block_erase_60,
18819 }, {
18820 .eraseblocks = { {4 * 1024 * 1024, 1} },
18821 .block_erase = spi_block_erase_c7,
18822 }
18823 },
18824 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18825 .unlock = spi_disable_blockprotect,
18826 .write = spi_chip_write_256,
18827 .read = spi_chip_read,
18828 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18829 .reg_bits =
18830 {
18831 .srp = {STATUS1, 7, RW},
18832 .srl = {STATUS2, 0, RW},
18833 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18834 .tb = {STATUS1, 5, RW},
18835 .sec = {STATUS1, 6, RW},
18836 .cmp = {STATUS2, 6, RW},
18837 .wps = {STATUS3, 2, RW},
18838 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018839 .wp_write_cfg = spi_wp_write_cfg,
18840 .wp_read_cfg = spi_wp_read_cfg,
18841 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018842 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018843 },
18844
18845 {
18846 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018847 .name = "W25Q32JW...M",
18848 .bustype = BUS_SPI,
18849 .manufacture_id = WINBOND_NEX_ID,
18850 .model_id = WINBOND_NEX_W25Q32JW_M,
18851 .total_size = 4096,
18852 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018853 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18854 /* QPI enable 0x38, disable 0xFF */
18855 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18856 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018857 .tested = TEST_OK_PREW,
18858 .probe = probe_spi_rdid,
18859 .probe_timing = TIMING_ZERO,
18860 .block_erasers =
18861 {
18862 {
18863 .eraseblocks = { {4 * 1024, 1024} },
18864 .block_erase = spi_block_erase_20,
18865 }, {
18866 .eraseblocks = { {32 * 1024, 128} },
18867 .block_erase = spi_block_erase_52,
18868 }, {
18869 .eraseblocks = { {64 * 1024, 64} },
18870 .block_erase = spi_block_erase_d8,
18871 }, {
18872 .eraseblocks = { {4 * 1024 * 1024, 1} },
18873 .block_erase = spi_block_erase_60,
18874 }, {
18875 .eraseblocks = { {4 * 1024 * 1024, 1} },
18876 .block_erase = spi_block_erase_c7,
18877 }
18878 },
18879 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18880 .unlock = spi_disable_blockprotect_bp2_srwd,
18881 .write = spi_chip_write_256,
18882 .read = spi_chip_read,
18883 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018884 .reg_bits =
18885 {
18886 .srp = {STATUS1, 7, RW},
18887 .srl = {STATUS2, 0, RW},
18888 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18889 .tb = {STATUS1, 5, RW},
18890 .sec = {STATUS1, 6, RW},
18891 .cmp = {STATUS2, 6, RW},
18892 .wps = {STATUS3, 2, RW},
18893 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018894 .wp_write_cfg = spi_wp_write_cfg,
18895 .wp_read_cfg = spi_wp_read_cfg,
18896 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018897 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018898 },
18899
18900 {
18901 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018902 .name = "W25Q40.V",
18903 .bustype = BUS_SPI,
18904 .manufacture_id = WINBOND_NEX_ID,
18905 .model_id = WINBOND_NEX_W25Q40_V,
18906 .total_size = 512,
18907 .page_size = 256,
18908 /* supports SFDP */
18909 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18910 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18911 .tested = TEST_OK_PREW,
18912 .probe = probe_spi_rdid,
18913 .probe_timing = TIMING_ZERO,
18914 .block_erasers =
18915 {
18916 {
18917 .eraseblocks = { {4 * 1024, 128} },
18918 .block_erase = spi_block_erase_20,
18919 }, {
18920 .eraseblocks = { {32 * 1024, 16} },
18921 .block_erase = spi_block_erase_52,
18922 }, {
18923 .eraseblocks = { {64 * 1024, 8} },
18924 .block_erase = spi_block_erase_d8,
18925 }, {
18926 .eraseblocks = { {512 * 1024, 1} },
18927 .block_erase = spi_block_erase_60,
18928 }, {
18929 .eraseblocks = { {512 * 1024, 1} },
18930 .block_erase = spi_block_erase_c7,
18931 }
18932 },
18933 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18934 .unlock = spi_disable_blockprotect,
18935 .write = spi_chip_write_256, /* Multi I/O supported */
18936 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
18937 .voltage = {2700, 3600},
18938 },
18939
18940 {
18941 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018942 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018943 .bustype = BUS_SPI,
18944 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020018945 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018946 .total_size = 512,
18947 .page_size = 256,
18948 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020018950 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018951 .probe = probe_spi_rdid,
18952 .probe_timing = TIMING_ZERO,
18953 .block_erasers =
18954 {
18955 {
18956 .eraseblocks = { {4 * 1024, 128} },
18957 .block_erase = spi_block_erase_20,
18958 }, {
18959 .eraseblocks = { {32 * 1024, 16} },
18960 .block_erase = spi_block_erase_52,
18961 }, {
18962 .eraseblocks = { {64 * 1024, 8} },
18963 .block_erase = spi_block_erase_d8,
18964 }, {
18965 .eraseblocks = { {512 * 1024, 1} },
18966 .block_erase = spi_block_erase_60,
18967 }, {
18968 .eraseblocks = { {512 * 1024, 1} },
18969 .block_erase = spi_block_erase_c7,
18970 }
18971 },
18972 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18973 .unlock = spi_disable_blockprotect,
18974 .write = spi_chip_write_256,
18975 .read = spi_chip_read,
18976 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18977 },
18978
18979 {
18980 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018981 .name = "W25Q40EW",
18982 .bustype = BUS_SPI,
18983 .manufacture_id = WINBOND_NEX_ID,
18984 .model_id = WINBOND_NEX_W25Q40EW,
18985 .total_size = 512,
18986 .page_size = 256,
18987 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100018989 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020018990 .probe = probe_spi_rdid,
18991 .probe_timing = TIMING_ZERO,
18992 .block_erasers =
18993 {
18994 {
18995 .eraseblocks = { {4 * 1024, 128} },
18996 .block_erase = spi_block_erase_20,
18997 }, {
18998 .eraseblocks = { {32 * 1024, 16} },
18999 .block_erase = spi_block_erase_52,
19000 }, {
19001 .eraseblocks = { {64 * 1024, 8} },
19002 .block_erase = spi_block_erase_d8,
19003 }, {
19004 .eraseblocks = { {512 * 1024, 1} },
19005 .block_erase = spi_block_erase_60,
19006 }, {
19007 .eraseblocks = { {512 * 1024, 1} },
19008 .block_erase = spi_block_erase_c7,
19009 }
19010 },
19011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19012 .unlock = spi_disable_blockprotect,
19013 .write = spi_chip_write_256,
19014 .read = spi_chip_read,
19015 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
19016 },
19017
Stanislav Sedovf5775442018-03-07 14:16:51 -080019018 {
19019 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093019020 .name = "W25Q512JV",
19021 .bustype = BUS_SPI,
19022 .manufacture_id = WINBOND_NEX_ID,
19023 .model_id = WINBOND_NEX_W25Q512JV,
19024 .total_size = 64 * 1024,
19025 .page_size = 256,
19026 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
19027 .tested = TEST_OK_PREW,
19028 .probe = probe_spi_rdid,
19029 .probe_timing = TIMING_ZERO,
19030 .block_erasers =
19031 {
19032 {
19033 .eraseblocks = { {4 * 1024, 16384} },
19034 .block_erase = spi_block_erase_21,
19035 }, {
19036 .eraseblocks = { {4 * 1024, 16384} },
19037 .block_erase = spi_block_erase_20,
19038 }, {
19039 .eraseblocks = { {32 * 1024, 2048} },
19040 .block_erase = spi_block_erase_52,
19041 }, {
19042 .eraseblocks = { {64 * 1024, 1024} },
19043 .block_erase = spi_block_erase_dc,
19044 }, {
19045 .eraseblocks = { {64 * 1024, 1024} },
19046 .block_erase = spi_block_erase_d8,
19047 }, {
19048 .eraseblocks = { {64 * 1024 * 1024, 1} },
19049 .block_erase = spi_block_erase_60,
19050 }, {
19051 .eraseblocks = { {64 * 1024 * 1024, 1} },
19052 .block_erase = spi_block_erase_c7,
19053 }
19054 },
19055 .printlock = spi_prettyprint_status_register_plain,
19056 .unlock = spi_disable_blockprotect,
19057 .write = spi_chip_write_256,
19058 .read = spi_chip_read,
19059 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010019060 .prepare_access = spi_prepare_4ba,
Joel Stanley55439612019-07-27 19:25:35 +093019061 },
19062
19063 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019064 .vendor = "Winbond",
19065 .name = "W25Q512NW-IM",
19066 .bustype = BUS_SPI,
19067 .manufacture_id = WINBOND_NEX_ID,
19068 .model_id = WINBOND_NEX_W25Q512NW_IM,
19069 .total_size = 64 * 1024,
19070 .page_size = 256,
Subrata Banikf5bffd92022-12-14 12:30:43 +053019071 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
19072 | FEATURE_WRSR3,
19073 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010019074 .probe = probe_spi_rdid,
19075 .probe_timing = TIMING_ZERO,
19076 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019077 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019078 {
19079 .eraseblocks = { {4 * 1024, 16384} },
19080 .block_erase = spi_block_erase_21,
19081 }, {
19082 .eraseblocks = { {4 * 1024, 16384} },
19083 .block_erase = spi_block_erase_20,
19084 }, {
19085 .eraseblocks = { {32 * 1024, 2048} },
19086 .block_erase = spi_block_erase_52,
19087 }, {
19088 .eraseblocks = { {64 * 1024, 1024} },
19089 .block_erase = spi_block_erase_dc,
19090 }, {
19091 .eraseblocks = { {64 * 1024, 1024} },
19092 .block_erase = spi_block_erase_d8,
19093 }, {
19094 .eraseblocks = { {64 * 1024 * 1024, 1} },
19095 .block_erase = spi_block_erase_60,
19096 }, {
19097 .eraseblocks = { {64 * 1024 * 1024, 1} },
19098 .block_erase = spi_block_erase_c7,
19099 }
19100 },
19101 .unlock = spi_disable_blockprotect,
19102 .write = spi_chip_write_256,
19103 .read = spi_chip_read,
19104 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053019105 .reg_bits =
19106 {
19107 .srp = {STATUS1, 7, RW},
19108 .srl = {STATUS2, 0, RW},
19109 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
19110 .tb = {STATUS1, 6, RW},
19111 .cmp = {STATUS2, 6, RW},
19112 .wps = {STATUS3, 2, RW},
19113 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019114 .wp_write_cfg = spi_wp_write_cfg,
19115 .wp_read_cfg = spi_wp_read_cfg,
19116 .wp_get_ranges = spi_wp_get_available_ranges,
Subrata Banikf5bffd92022-12-14 12:30:43 +053019117 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010019118 .prepare_access = spi_prepare_4ba,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019119 },
19120
19121 {
Joel Stanley55439612019-07-27 19:25:35 +093019122 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019123 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080019124 .bustype = BUS_SPI,
19125 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019126 .model_id = WINBOND_NEX_W25Q64_V,
19127 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019128 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019129 /* supports SFDP */
19130 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019131 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019132 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019133 .probe = probe_spi_rdid,
19134 .probe_timing = TIMING_ZERO,
19135 .block_erasers =
19136 {
19137 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019138 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019139 .block_erase = spi_block_erase_20,
19140 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019141 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019142 .block_erase = spi_block_erase_52,
19143 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019144 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019145 .block_erase = spi_block_erase_d8,
19146 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019147 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019148 .block_erase = spi_block_erase_60,
19149 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019150 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019151 .block_erase = spi_block_erase_c7,
19152 }
19153 },
19154 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19155 .unlock = spi_disable_blockprotect,
19156 .write = spi_chip_write_256,
19157 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019158 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019159 .reg_bits =
19160 {
19161 .srp = {STATUS1, 7, RW},
19162 .srl = {STATUS2, 0, RW},
19163 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19164 .tb = {STATUS1, 5, RW},
19165 .sec = {STATUS1, 6, RW},
19166 .cmp = {STATUS2, 6, RW},
19167 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019168 .wp_write_cfg = spi_wp_write_cfg,
19169 .wp_read_cfg = spi_wp_read_cfg,
19170 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019171 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019172 },
19173
19174 {
19175 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019176 .name = "W25Q64JV-.Q",
19177 .bustype = BUS_SPI,
19178 .manufacture_id = WINBOND_NEX_ID,
19179 .model_id = WINBOND_NEX_W25Q64_V,
19180 .total_size = 8192,
19181 .page_size = 256,
19182 /* supports SFDP */
19183 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020019184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
19185 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019186 .tested = TEST_OK_PREW,
19187 .probe = probe_spi_rdid,
19188 .probe_timing = TIMING_ZERO,
19189 .block_erasers =
19190 {
19191 {
19192 .eraseblocks = { {4 * 1024, 2048} },
19193 .block_erase = spi_block_erase_20,
19194 }, {
19195 .eraseblocks = { {32 * 1024, 256} },
19196 .block_erase = spi_block_erase_52,
19197 }, {
19198 .eraseblocks = { {64 * 1024, 128} },
19199 .block_erase = spi_block_erase_d8,
19200 }, {
19201 .eraseblocks = { {8 * 1024 * 1024, 1} },
19202 .block_erase = spi_block_erase_60,
19203 }, {
19204 .eraseblocks = { {8 * 1024 * 1024, 1} },
19205 .block_erase = spi_block_erase_c7,
19206 }
19207 },
19208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19209 .unlock = spi_disable_blockprotect,
19210 .write = spi_chip_write_256,
19211 .read = spi_chip_read,
19212 .voltage = {2700, 3600},
19213 .reg_bits =
19214 {
19215 .srp = {STATUS1, 7, RW},
19216 .srl = {STATUS2, 0, RW},
19217 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19218 .tb = {STATUS1, 5, RW},
19219 .sec = {STATUS1, 6, RW},
19220 .cmp = {STATUS2, 6, RW},
19221 .wps = {STATUS3, 2, RW},
19222 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019223 .wp_write_cfg = spi_wp_write_cfg,
19224 .wp_read_cfg = spi_wp_read_cfg,
19225 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019226 .decode_range = decode_range_spi25,
19227 },
19228
19229 {
19230 .vendor = "Winbond",
19231 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010019232 .bustype = BUS_SPI,
19233 .manufacture_id = WINBOND_NEX_ID,
19234 .model_id = WINBOND_NEX_W25Q64JV,
19235 .total_size = 8192,
19236 .page_size = 256,
19237 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010019238 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
19239 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Simon Buhrow236a38c2021-11-05 11:48:30 +010019240 .tested = TEST_OK_PREW,
19241 .probe = probe_spi_rdid,
19242 .probe_timing = TIMING_ZERO,
19243 .block_erasers =
19244 {
19245 {
19246 .eraseblocks = { {4 * 1024, 2048} },
19247 .block_erase = spi_block_erase_20,
19248 }, {
19249 .eraseblocks = { {32 * 1024, 256} },
19250 .block_erase = spi_block_erase_52,
19251 }, {
19252 .eraseblocks = { {64 * 1024, 128} },
19253 .block_erase = spi_block_erase_d8,
19254 }, {
19255 .eraseblocks = { {8 * 1024 * 1024, 1} },
19256 .block_erase = spi_block_erase_60,
19257 }, {
19258 .eraseblocks = { {8 * 1024 * 1024, 1} },
19259 .block_erase = spi_block_erase_c7,
19260 }
19261 },
19262 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
19263 .unlock = spi_disable_blockprotect_bp2_srwd,
19264 .write = spi_chip_write_256,
19265 .read = spi_chip_read,
19266 .voltage = {2700, 3600},
19267 },
19268
19269 {
19270 .vendor = "Winbond",
Nico Hubera358b142024-04-14 18:29:06 +020019271 .name = "W25Q64DW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019272 .bustype = BUS_SPI,
19273 .manufacture_id = WINBOND_NEX_ID,
19274 .model_id = WINBOND_NEX_W25Q64_W,
19275 .total_size = 8192,
19276 .page_size = 256,
19277 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
19279 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Nico Hubera358b142024-04-14 18:29:06 +020019280 .tested = TEST_OK_PREW,
19281 .probe = probe_spi_rdid,
19282 .probe_timing = TIMING_ZERO,
19283 .block_erasers =
19284 {
19285 {
19286 .eraseblocks = { {4 * 1024, 2048} },
19287 .block_erase = spi_block_erase_20,
19288 }, {
19289 .eraseblocks = { {32 * 1024, 256} },
19290 .block_erase = spi_block_erase_52,
19291 }, {
19292 .eraseblocks = { {64 * 1024, 128} },
19293 .block_erase = spi_block_erase_d8,
19294 }, {
19295 .eraseblocks = { {8 * 1024 * 1024, 1} },
19296 .block_erase = spi_block_erase_60,
19297 }, {
19298 .eraseblocks = { {8 * 1024 * 1024, 1} },
19299 .block_erase = spi_block_erase_c7,
19300 }
19301 },
19302 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19303 .unlock = spi_disable_blockprotect,
19304 .write = spi_chip_write_256,
19305 .read = spi_chip_read,
19306 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19307 .reg_bits =
19308 {
19309 .srp = {STATUS1, 7, RW},
19310 .srl = {STATUS2, 0, RW},
19311 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19312 .tb = {STATUS1, 5, RW},
19313 .sec = {STATUS1, 6, RW},
19314 .cmp = {STATUS2, 6, RW},
19315 },
19316 .wp_write_cfg = spi_wp_write_cfg,
19317 .wp_read_cfg = spi_wp_read_cfg,
19318 .wp_get_ranges = spi_wp_get_available_ranges,
19319 .decode_range = decode_range_spi25,
19320 },
19321
19322 {
19323 .vendor = "Winbond",
19324 .name = "W25Q64FW/W25Q64JW...Q",
19325 .bustype = BUS_SPI,
19326 .manufacture_id = WINBOND_NEX_ID,
19327 .model_id = WINBOND_NEX_W25Q64_W,
19328 .total_size = 8192,
19329 .page_size = 256,
19330 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019331 /* FEATURE_QPI_SRP (2, 4, 6, 8): only FW version */
Nico Hubera358b142024-04-14 18:29:06 +020019332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
Nico Huber1412d9f2024-01-06 18:25:49 +010019333 FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019334 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019335 .probe = probe_spi_rdid,
19336 .probe_timing = TIMING_ZERO,
19337 .block_erasers =
19338 {
19339 {
19340 .eraseblocks = { {4 * 1024, 2048} },
19341 .block_erase = spi_block_erase_20,
19342 }, {
19343 .eraseblocks = { {32 * 1024, 256} },
19344 .block_erase = spi_block_erase_52,
19345 }, {
19346 .eraseblocks = { {64 * 1024, 128} },
19347 .block_erase = spi_block_erase_d8,
19348 }, {
19349 .eraseblocks = { {8 * 1024 * 1024, 1} },
19350 .block_erase = spi_block_erase_60,
19351 }, {
19352 .eraseblocks = { {8 * 1024 * 1024, 1} },
19353 .block_erase = spi_block_erase_c7,
19354 }
19355 },
19356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19357 .unlock = spi_disable_blockprotect,
19358 .write = spi_chip_write_256,
19359 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019360 .voltage = {1700, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019361 .reg_bits =
19362 {
19363 .srp = {STATUS1, 7, RW},
19364 .srl = {STATUS2, 0, RW},
19365 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19366 .tb = {STATUS1, 5, RW},
19367 .sec = {STATUS1, 6, RW},
19368 .cmp = {STATUS2, 6, RW},
19369 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019370 .wp_write_cfg = spi_wp_write_cfg,
19371 .wp_read_cfg = spi_wp_read_cfg,
19372 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019373 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019374 },
19375
19376 {
19377 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019378 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080019379 .bustype = BUS_SPI,
19380 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019381 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080019382 .total_size = 8192,
19383 .page_size = 256,
19384 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19385 /* QPI enable 0x38, disable 0xFF */
Nico Huber1412d9f2024-01-06 18:25:49 +010019386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
19387 FEATURE_OTP | FEATURE_QPI_SRP,
19388 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Scott Chao1bbc5012020-04-08 22:10:50 +080019389 .tested = TEST_OK_PREW,
19390 .probe = probe_spi_rdid,
19391 .probe_timing = TIMING_ZERO,
19392 .block_erasers =
19393 {
19394 {
19395 .eraseblocks = { {4 * 1024, 2048} },
19396 .block_erase = spi_block_erase_20,
19397 }, {
19398 .eraseblocks = { {32 * 1024, 256} },
19399 .block_erase = spi_block_erase_52,
19400 }, {
19401 .eraseblocks = { {64 * 1024, 128} },
19402 .block_erase = spi_block_erase_d8,
19403 }, {
19404 .eraseblocks = { {8 * 1024 * 1024, 1} },
19405 .block_erase = spi_block_erase_60,
19406 }, {
19407 .eraseblocks = { {8 * 1024 * 1024, 1} },
19408 .block_erase = spi_block_erase_c7,
19409 }
19410 },
19411 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19412 .unlock = spi_disable_blockprotect,
19413 .write = spi_chip_write_256,
19414 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019415 .voltage = {1700, 1950},
Evan Benn29c8b5d2022-09-13 16:01:10 +100019416 .reg_bits =
19417 {
19418 .srp = {STATUS1, 7, RW},
19419 .srl = {STATUS2, 0, RW},
19420 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19421 .tb = {STATUS1, 5, RW},
19422 .sec = {STATUS1, 6, RW},
19423 .cmp = {STATUS2, 6, RW},
19424 .wps = {STATUS3, 2, RW},
19425 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019426 .wp_write_cfg = spi_wp_write_cfg,
19427 .wp_read_cfg = spi_wp_read_cfg,
19428 .wp_get_ranges = spi_wp_get_available_ranges,
Evan Benn29c8b5d2022-09-13 16:01:10 +100019429 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080019430 },
19431
19432 {
19433 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019434 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020019435 .bustype = BUS_SPI,
19436 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019437 .model_id = WINBOND_NEX_W25Q80_V,
19438 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020019439 .page_size = 256,
19440 /* supports SFDP */
19441 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100019442 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080019443 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020019444 .probe = probe_spi_rdid,
19445 .probe_timing = TIMING_ZERO,
19446 .block_erasers =
19447 {
19448 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019449 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019450 .block_erase = spi_block_erase_20,
19451 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019452 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019453 .block_erase = spi_block_erase_52,
19454 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019455 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019456 .block_erase = spi_block_erase_d8,
19457 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019458 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019459 .block_erase = spi_block_erase_60,
19460 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019461 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019462 .block_erase = spi_block_erase_c7,
19463 }
19464 },
19465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19466 .unlock = spi_disable_blockprotect,
19467 .write = spi_chip_write_256,
19468 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019469 .voltage = {2700, 3600},
19470 },
19471
19472 {
19473 .vendor = "Winbond",
19474 .name = "W25Q80BW",
19475 .bustype = BUS_SPI,
19476 .manufacture_id = WINBOND_NEX_ID,
19477 .model_id = WINBOND_NEX_W25Q80BW,
19478 .total_size = 1024,
19479 .page_size = 256,
19480 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19481 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
19482 .tested = TEST_OK_PREW,
19483 .probe = probe_spi_rdid,
19484 .probe_timing = TIMING_ZERO,
19485 .block_erasers =
19486 {
19487 {
19488 .eraseblocks = { {4 * 1024, 256} },
19489 .block_erase = spi_block_erase_20,
19490 }, {
19491 .eraseblocks = { {32 * 1024, 32} },
19492 .block_erase = spi_block_erase_52,
19493 }, {
19494 .eraseblocks = { {64 * 1024, 16} },
19495 .block_erase = spi_block_erase_d8,
19496 }, {
19497 .eraseblocks = { {1 * 1024 * 1024, 1} },
19498 .block_erase = spi_block_erase_60,
19499 }, {
19500 .eraseblocks = { {1 * 1024 * 1024, 1} },
19501 .block_erase = spi_block_erase_c7,
19502 }
19503 },
19504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19505 .unlock = spi_disable_blockprotect,
19506 .write = spi_chip_write_256,
19507 .read = spi_chip_read,
19508 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19509 },
19510
19511 {
19512 .vendor = "Winbond",
19513 .name = "W25Q80EW",
19514 .bustype = BUS_SPI,
19515 .manufacture_id = WINBOND_NEX_ID,
19516 .model_id = WINBOND_NEX_W25Q80EW,
19517 .total_size = 1024,
19518 .page_size = 256,
19519 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
19521 .tested = TEST_OK_PREW,
19522 .probe = probe_spi_rdid,
19523 .probe_timing = TIMING_ZERO,
19524 .block_erasers =
19525 {
19526 {
19527 .eraseblocks = { {4 * 1024, 256} },
19528 .block_erase = spi_block_erase_20,
19529 }, {
19530 .eraseblocks = { {32 * 1024, 32} },
19531 .block_erase = spi_block_erase_52,
19532 }, {
19533 .eraseblocks = { {64 * 1024, 16} },
19534 .block_erase = spi_block_erase_d8,
19535 }, {
19536 .eraseblocks = { {1 * 1024 * 1024, 1} },
19537 .block_erase = spi_block_erase_60,
19538 }, {
19539 .eraseblocks = { {1 * 1024 * 1024, 1} },
19540 .block_erase = spi_block_erase_c7,
19541 }
19542 },
19543 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19544 .unlock = spi_disable_blockprotect,
19545 .write = spi_chip_write_256,
19546 .read = spi_chip_read,
19547 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020019548 },
19549
19550 {
19551 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019552 .name = "W25X05",
19553 .bustype = BUS_SPI,
19554 .manufacture_id = WINBOND_NEX_ID,
19555 .model_id = WINBOND_NEX_W25X05,
19556 .total_size = 64,
19557 .page_size = 256,
19558 .feature_bits = FEATURE_WRSR_WREN,
19559 .tested = TEST_OK_PREW,
19560 .probe = probe_spi_rdid,
19561 .probe_timing = TIMING_ZERO,
19562 .block_erasers =
19563 {
19564 {
19565 .eraseblocks = { {4 * 1024, 16} },
19566 .block_erase = spi_block_erase_20,
19567 }, {
19568 .eraseblocks = { {32 * 1024, 2} },
19569 .block_erase = spi_block_erase_52,
19570 }, {
19571 .eraseblocks = { {64 * 1024, 1} },
19572 .block_erase = spi_block_erase_d8,
19573 }
19574 },
19575 .printlock = spi_prettyprint_status_register_plain,
19576 .unlock = spi_disable_blockprotect,
19577 .write = spi_chip_write_256,
19578 .read = spi_chip_read,
19579 .voltage = {2300, 3600},
19580 },
19581
19582 {
19583 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019584 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019585 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019586 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019587 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019588 .total_size = 128,
19589 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019590 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000019591 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019592 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019593 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019594 .block_erasers =
19595 {
19596 {
19597 .eraseblocks = { {4 * 1024, 32} },
19598 .block_erase = spi_block_erase_20,
19599 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019600 .eraseblocks = { {64 * 1024, 2} },
19601 .block_erase = spi_block_erase_d8,
19602 }, {
19603 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019604 .block_erase = spi_block_erase_c7,
19605 }
19606 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019608 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000019609 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019611 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019612 },
19613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019614 {
19615 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019616 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019617 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000019618 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019619 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000019620 .total_size = 2048,
19621 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019622 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000019623 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000019624 .probe = probe_spi_rdid,
19625 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019626 .block_erasers =
19627 {
19628 {
19629 .eraseblocks = { {4 * 1024, 512} },
19630 .block_erase = spi_block_erase_20,
19631 }, {
19632 .eraseblocks = { {32 * 1024, 64} },
19633 .block_erase = spi_block_erase_52,
19634 }, {
19635 .eraseblocks = { {64 * 1024, 32} },
19636 .block_erase = spi_block_erase_d8,
19637 }, {
19638 .eraseblocks = { {2 * 1024 * 1024, 1} },
19639 .block_erase = spi_block_erase_60,
19640 }, {
19641 .eraseblocks = { {2 * 1024 * 1024, 1} },
19642 .block_erase = spi_block_erase_c7,
19643 }
19644 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019646 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000019647 .write = spi_chip_write_256,
19648 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019649 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000019650 },
19651
19652 {
19653 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019654 .name = "W25X20",
19655 .bustype = BUS_SPI,
19656 .manufacture_id = WINBOND_NEX_ID,
19657 .model_id = WINBOND_NEX_W25X20,
19658 .total_size = 256,
19659 .page_size = 256,
19660 .feature_bits = FEATURE_WRSR_WREN,
19661 .tested = TEST_OK_PREW,
19662 .probe = probe_spi_rdid,
19663 .probe_timing = TIMING_ZERO,
19664 .block_erasers =
19665 {
19666 {
19667 .eraseblocks = { {4 * 1024, 64} },
19668 .block_erase = spi_block_erase_20,
19669 }, {
19670 .eraseblocks = { {64 * 1024, 4} },
19671 .block_erase = spi_block_erase_d8,
19672 }, {
19673 .eraseblocks = { {256 * 1024, 1} },
19674 .block_erase = spi_block_erase_c7,
19675 }
19676 },
19677 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19678 .unlock = spi_disable_blockprotect,
19679 .write = spi_chip_write_256,
19680 .read = spi_chip_read,
19681 .voltage = {2700, 3600},
19682 },
19683
19684 {
19685 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019686 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019687 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019688 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019689 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000019690 .total_size = 4096,
19691 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019692 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000019693 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019694 .probe = probe_spi_rdid,
19695 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019696 .block_erasers =
19697 {
19698 {
19699 .eraseblocks = { {4 * 1024, 1024} },
19700 .block_erase = spi_block_erase_20,
19701 }, {
19702 .eraseblocks = { {32 * 1024, 128} },
19703 .block_erase = spi_block_erase_52,
19704 }, {
19705 .eraseblocks = { {64 * 1024, 64} },
19706 .block_erase = spi_block_erase_d8,
19707 }, {
19708 .eraseblocks = { {4 * 1024 * 1024, 1} },
19709 .block_erase = spi_block_erase_60,
19710 }, {
19711 .eraseblocks = { {4 * 1024 * 1024, 1} },
19712 .block_erase = spi_block_erase_c7,
19713 }
19714 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019715 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019716 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019717 .write = spi_chip_write_256,
19718 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019719 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019720 },
19721
19722 {
19723 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019724 .name = "W25X40",
19725 .bustype = BUS_SPI,
19726 .manufacture_id = WINBOND_NEX_ID,
19727 .model_id = WINBOND_NEX_W25X40,
19728 .total_size = 512,
19729 .page_size = 256,
19730 .feature_bits = FEATURE_WRSR_WREN,
19731 .tested = TEST_OK_PREW,
19732 .probe = probe_spi_rdid,
19733 .probe_timing = TIMING_ZERO,
19734 .block_erasers =
19735 {
19736 {
19737 .eraseblocks = { {4 * 1024, 128} },
19738 .block_erase = spi_block_erase_20,
19739 }, {
19740 .eraseblocks = { {64 * 1024, 8} },
19741 .block_erase = spi_block_erase_d8,
19742 }, {
19743 .eraseblocks = { {512 * 1024, 1} },
19744 .block_erase = spi_block_erase_c7,
19745 }
19746 },
19747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19748 .unlock = spi_disable_blockprotect,
19749 .write = spi_chip_write_256,
19750 .read = spi_chip_read,
19751 .voltage = {2700, 3600},
19752 },
19753
19754 {
19755 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019756 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019757 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019758 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019759 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019760 .total_size = 8192,
19761 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019762 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019763 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019764 .probe = probe_spi_rdid,
19765 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019766 .block_erasers =
19767 {
19768 {
19769 .eraseblocks = { {4 * 1024, 2048} },
19770 .block_erase = spi_block_erase_20,
19771 }, {
19772 .eraseblocks = { {32 * 1024, 256} },
19773 .block_erase = spi_block_erase_52,
19774 }, {
19775 .eraseblocks = { {64 * 1024, 128} },
19776 .block_erase = spi_block_erase_d8,
19777 }, {
19778 .eraseblocks = { {8 * 1024 * 1024, 1} },
19779 .block_erase = spi_block_erase_60,
19780 }, {
19781 .eraseblocks = { {8 * 1024 * 1024, 1} },
19782 .block_erase = spi_block_erase_c7,
19783 }
19784 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019785 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019786 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019787 .write = spi_chip_write_256,
19788 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019789 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019790 },
19791
19792 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019793 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019794 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100019795 .bustype = BUS_SPI,
19796 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019797 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019798 .total_size = 1024,
19799 .page_size = 256,
19800 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019801 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019802 .probe = probe_spi_rdid,
19803 .probe_timing = TIMING_ZERO,
19804 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019805 {
19806 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019807 .eraseblocks = { {4 * 1024, 256} },
19808 .block_erase = spi_block_erase_20,
19809 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019810 .eraseblocks = { {64 * 1024, 16} },
19811 .block_erase = spi_block_erase_d8,
19812 }, {
19813 .eraseblocks = { {1024 * 1024, 1} },
19814 .block_erase = spi_block_erase_c7,
19815 }
19816 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019817 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19818 .unlock = spi_disable_blockprotect,
19819 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019820 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019821 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019822 },
19823
Alan Greenf29ea362019-06-27 17:14:02 +100019824 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
19825 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000019826 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019827 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019828 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019829 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019830 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019831 .total_size = 128,
19832 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019833 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000019834 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019835 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019836 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019837 .block_erasers =
19838 {
19839 {
19840 .eraseblocks = { {128 * 1024, 1} },
19841 .block_erase = erase_chip_block_jedec,
19842 }
19843 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019844 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019845 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010019846 .prepare_access = prepare_memory_access,
19847 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019848 },
19849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019850 {
19851 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019852 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
19853 .bustype = BUS_PARALLEL,
19854 .manufacture_id = WINBOND_ID,
19855 .model_id = WINBOND_W29C010,
19856 .total_size = 128,
19857 .page_size = 128,
19858 .feature_bits = FEATURE_LONG_RESET,
19859 .tested = TEST_OK_PREW,
19860 .probe = probe_w29ee011,
19861 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
19862 .block_erasers =
19863 {
19864 {
19865 .eraseblocks = { {128 * 1024, 1} },
19866 .block_erase = erase_chip_block_jedec,
19867 }
19868 },
19869 .write = write_jedec,
19870 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010019871 .prepare_access = prepare_memory_access,
19872 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019873 },
19874
19875 {
19876 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019877 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019878 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019879 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019880 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019881 .total_size = 256,
19882 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019883 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019884 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019885 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019886 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019887 .block_erasers =
19888 {
19889 {
19890 .eraseblocks = { {256 * 1024, 1} },
19891 .block_erase = erase_chip_block_jedec,
19892 }
19893 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019894 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019896 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019897 .prepare_access = prepare_memory_access,
19898 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019899 },
19900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019901 {
19902 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019903 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019904 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019905 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019906 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019907 .total_size = 512,
19908 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000019909 .feature_bits = FEATURE_LONG_RESET,
19910 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019911 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019912 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019913 .block_erasers =
19914 {
19915 {
19916 .eraseblocks = { {512 * 1024, 1} },
19917 .block_erase = erase_chip_block_jedec,
19918 }
19919 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019920 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019922 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019923 .prepare_access = prepare_memory_access,
19924 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019925 },
19926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019927 {
19928 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019929 .name = "W29C512A/W29EE512",
19930 .bustype = BUS_PARALLEL,
19931 .manufacture_id = WINBOND_ID,
19932 .model_id = WINBOND_W29C512A,
19933 .total_size = 64,
19934 .page_size = 128,
19935 .feature_bits = FEATURE_LONG_RESET,
19936 .tested = TEST_OK_PREW,
19937 .probe = probe_jedec,
19938 .probe_timing = 10,
19939 .block_erasers =
19940 {
19941 {
19942 .eraseblocks = { {64 * 1024, 1} },
19943 .block_erase = erase_chip_block_jedec,
19944 }
19945 },
19946 .write = write_jedec,
19947 .read = read_memmapped,
19948 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019949 .prepare_access = prepare_memory_access,
19950 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019951 },
19952
19953 {
19954 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019955 .name = "W29GL032CB",
19956 .bustype = BUS_PARALLEL,
19957 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19958 .model_id = WINBOND_W29GL032CB,
19959 .total_size = 4096,
19960 .page_size = 128 * 1024, /* actual page size is 16 */
19961 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19962 .tested = TEST_UNTESTED,
19963 .probe = probe_jedec_29gl,
19964 .probe_timing = TIMING_ZERO,
19965 .block_erasers =
19966 {
19967 {
19968 .eraseblocks = {
19969 {8 * 1024, 8},
19970 {64 * 1024, 63},
19971 },
19972 .block_erase = erase_sector_jedec,
19973 }, {
19974 .eraseblocks = { {4 * 1024 * 1024, 1} },
19975 .block_erase = erase_chip_block_jedec,
19976 },
19977 },
19978 .write = write_jedec_1,
19979 .read = read_memmapped,
19980 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019981 .prepare_access = prepare_memory_access,
19982 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019983 },
19984
19985 {
19986 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019987 .name = "W29GL032CH/L",
19988 .bustype = BUS_PARALLEL,
19989 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19990 .model_id = WINBOND_W29GL032CHL,
19991 .total_size = 4096,
19992 .page_size = 128 * 1024, /* actual page size is 16 */
19993 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19994 .tested = TEST_UNTESTED,
19995 .probe = probe_jedec_29gl,
19996 .probe_timing = TIMING_ZERO,
19997 .block_erasers =
19998 {
19999 {
20000 .eraseblocks = { {64 * 1024, 64} },
20001 .block_erase = erase_sector_jedec,
20002 }, {
20003 .eraseblocks = { {4 * 1024 * 1024, 1} },
20004 .block_erase = erase_chip_block_jedec,
20005 },
20006 },
20007 .write = write_jedec_1,
20008 .read = read_memmapped,
20009 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020010 .prepare_access = prepare_memory_access,
20011 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020012 },
20013
20014 {
20015 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020016 .name = "W29GL032CT",
20017 .bustype = BUS_PARALLEL,
20018 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20019 .model_id = WINBOND_W29GL032CT,
20020 .total_size = 4096,
20021 .page_size = 128 * 1024, /* actual page size is 16 */
20022 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20023 .tested = TEST_UNTESTED,
20024 .probe = probe_jedec_29gl,
20025 .probe_timing = TIMING_ZERO,
20026 .block_erasers =
20027 {
20028 {
20029 .eraseblocks = {
20030 {64 * 1024, 63},
20031 {8 * 1024, 8},
20032 },
20033 .block_erase = erase_sector_jedec,
20034 }, {
20035 .eraseblocks = { {4 * 1024 * 1024, 1} },
20036 .block_erase = erase_chip_block_jedec,
20037 },
20038 },
20039 .write = write_jedec_1,
20040 .read = read_memmapped,
20041 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020042 .prepare_access = prepare_memory_access,
20043 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020044 },
20045
20046 {
20047 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020048 .name = "W29GL064CB",
20049 .bustype = BUS_PARALLEL,
20050 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20051 .model_id = WINBOND_W29GL064CB,
20052 .total_size = 8192,
20053 .page_size = 128 * 1024, /* actual page size is 16 */
20054 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20055 .tested = TEST_UNTESTED,
20056 .probe = probe_jedec_29gl,
20057 .probe_timing = TIMING_ZERO,
20058 .block_erasers =
20059 {
20060 {
20061 .eraseblocks = {
20062 {8 * 1024, 8},
20063 {64 * 1024, 127},
20064 },
20065 .block_erase = erase_sector_jedec,
20066 }, {
20067 .eraseblocks = { {8 * 1024 * 1024, 1} },
20068 .block_erase = erase_chip_block_jedec,
20069 },
20070 },
20071 .write = write_jedec_1,
20072 .read = read_memmapped,
20073 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020074 .prepare_access = prepare_memory_access,
20075 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020076 },
20077
20078 {
20079 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020080 .name = "W29GL064CH/L",
20081 .bustype = BUS_PARALLEL,
20082 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20083 .model_id = WINBOND_W29GL064CHL,
20084 .total_size = 8192,
20085 .page_size = 128 * 1024, /* actual page size is 16 */
20086 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20087 .tested = TEST_UNTESTED,
20088 .probe = probe_jedec_29gl,
20089 .probe_timing = TIMING_ZERO,
20090 .block_erasers =
20091 {
20092 {
20093 .eraseblocks = { {64 * 1024, 128} },
20094 .block_erase = erase_sector_jedec,
20095 }, {
20096 .eraseblocks = { {8 * 1024 * 1024, 1} },
20097 .block_erase = erase_chip_block_jedec,
20098 },
20099 },
20100 .write = write_jedec_1,
20101 .read = read_memmapped,
20102 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020103 .prepare_access = prepare_memory_access,
20104 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020105 },
20106
20107 {
20108 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020109 .name = "W29GL064CT",
20110 .bustype = BUS_PARALLEL,
20111 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20112 .model_id = WINBOND_W29GL064CT,
20113 .total_size = 8192,
20114 .page_size = 128 * 1024, /* actual page size is 16 */
20115 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20116 .tested = TEST_UNTESTED,
20117 .probe = probe_jedec_29gl,
20118 .probe_timing = TIMING_ZERO,
20119 .block_erasers =
20120 {
20121 {
20122 .eraseblocks = {
20123 {64 * 1024, 127},
20124 {8 * 1024, 8},
20125 },
20126 .block_erase = erase_sector_jedec,
20127 }, {
20128 .eraseblocks = { {8 * 1024 * 1024, 1} },
20129 .block_erase = erase_chip_block_jedec,
20130 },
20131 },
20132 .write = write_jedec_1,
20133 .read = read_memmapped,
20134 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020135 .prepare_access = prepare_memory_access,
20136 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020137 },
20138
20139 {
20140 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020141 .name = "W29GL128C",
20142 .bustype = BUS_PARALLEL,
20143 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20144 .model_id = WINBOND_W29GL128CHL,
20145 .total_size = 16384,
20146 .page_size = 128 * 1024, /* actual page size is 16 */
20147 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20148 .tested = TEST_UNTESTED,
20149 .probe = probe_jedec_29gl,
20150 .probe_timing = TIMING_ZERO,
20151 .block_erasers =
20152 {
20153 {
20154 .eraseblocks = { {128 * 1024, 128} },
20155 .block_erase = erase_sector_jedec,
20156 }, {
20157 .eraseblocks = { {16 * 1024 * 1024, 1} },
20158 .block_erase = erase_chip_block_jedec,
20159 },
20160 },
20161 .write = write_jedec_1,
20162 .read = read_memmapped,
20163 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020164 .prepare_access = prepare_memory_access,
20165 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020166 },
20167
20168 {
20169 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020170 .name = "W39F010",
20171 .bustype = BUS_PARALLEL,
20172 .manufacture_id = WINBOND_ID,
20173 .model_id = WINBOND_W39F010,
20174 .total_size = 128,
20175 .page_size = 4 * 1024,
20176 .feature_bits = FEATURE_EITHER_RESET,
20177 .tested = TEST_OK_PREW,
20178 .probe = probe_jedec,
20179 .probe_timing = 10,
20180 .block_erasers =
20181 {
20182 {
20183 .eraseblocks = { {4 * 1024, 32} },
20184 .block_erase = erase_block_jedec,
20185 }, {
20186 .eraseblocks = { {128 * 1024, 1} },
20187 .block_erase = erase_chip_block_jedec,
20188 }
20189 },
20190 .printlock = printlock_w39f010,
20191 .write = write_jedec_1,
20192 .read = read_memmapped,
20193 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020194 .prepare_access = prepare_memory_access,
20195 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020196 },
20197
20198 {
20199 .vendor = "Winbond",
20200 .name = "W39L010",
20201 .bustype = BUS_PARALLEL,
20202 .manufacture_id = WINBOND_ID,
20203 .model_id = WINBOND_W39L010,
20204 .total_size = 128,
20205 .page_size = 4 * 1024,
20206 .feature_bits = FEATURE_EITHER_RESET,
20207 .tested = TEST_UNTESTED,
20208 .probe = probe_jedec,
20209 .probe_timing = 10,
20210 .block_erasers =
20211 {
20212 {
20213 .eraseblocks = { {4 * 1024, 32} },
20214 .block_erase = erase_block_jedec,
20215 }, {
20216 .eraseblocks = { {128 * 1024, 1} },
20217 .block_erase = erase_chip_block_jedec,
20218 }
20219 },
20220 .printlock = printlock_w39l010,
20221 .write = write_jedec_1,
20222 .read = read_memmapped,
20223 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020224 .prepare_access = prepare_memory_access,
20225 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020226 },
20227
20228 {
20229 .vendor = "Winbond",
20230 .name = "W39L020",
20231 .bustype = BUS_PARALLEL,
20232 .manufacture_id = WINBOND_ID,
20233 .model_id = WINBOND_W39L020,
20234 .total_size = 256,
20235 .page_size = 4 * 1024,
20236 .feature_bits = FEATURE_EITHER_RESET,
20237 .tested = TEST_UNTESTED,
20238 .probe = probe_jedec,
20239 .probe_timing = 10,
20240 .block_erasers =
20241 {
20242 {
20243 .eraseblocks = { {4 * 1024, 64} },
20244 .block_erase = erase_block_jedec,
20245 }, {
20246 .eraseblocks = { {64 * 1024, 4} },
20247 .block_erase = erase_sector_jedec,
20248 }, {
20249 .eraseblocks = { {256 * 1024, 1} },
20250 .block_erase = erase_chip_block_jedec,
20251 }
20252 },
20253 .printlock = printlock_w39l020,
20254 .write = write_jedec_1,
20255 .read = read_memmapped,
20256 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020257 .prepare_access = prepare_memory_access,
20258 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020259 },
20260
20261 {
20262 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000020263 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020264 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020265 .manufacture_id = WINBOND_ID,
20266 .model_id = WINBOND_W39L040,
20267 .total_size = 512,
20268 .page_size = 64 * 1024,
20269 .feature_bits = FEATURE_EITHER_RESET,
20270 .tested = TEST_OK_PR,
20271 .probe = probe_jedec,
20272 .probe_timing = 10,
20273 .block_erasers =
20274 {
20275 {
20276 .eraseblocks = { {4 * 1024, 128} },
20277 .block_erase = erase_block_jedec,
20278 }, {
20279 .eraseblocks = { {64 * 1024, 8} },
20280 .block_erase = erase_sector_jedec,
20281 }, {
20282 .eraseblocks = { {512 * 1024, 1} },
20283 .block_erase = erase_chip_block_jedec,
20284 }
20285 },
20286 .printlock = printlock_w39l040,
20287 .write = write_jedec_1,
20288 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020289 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020290 .prepare_access = prepare_memory_access,
20291 .finish_access = finish_memory_access,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020292 },
20293
20294 {
20295 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020296 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020297 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020298 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020299 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020300 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020301 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020302 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020303 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020304 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000020305 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020306 .block_erasers =
20307 {
20308 {
20309 .eraseblocks = { {64 * 1024, 8} },
20310 .block_erase = erase_sector_jedec,
20311 }, {
20312 .eraseblocks = { {512 * 1024, 1} },
20313 .block_erase = erase_chip_block_jedec,
20314 }
20315 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020316 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000020317 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020319 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020320 .prepare_access = prepare_memory_access,
20321 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020322 },
20323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020324 {
20325 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020326 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020327 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020328 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020329 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020330 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020331 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020332 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020333 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020334 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000020335 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020336 .block_erasers =
20337 {
20338 {
20339 .eraseblocks = { {64 * 1024, 8} },
20340 .block_erase = erase_sector_jedec,
20341 }, {
20342 .eraseblocks = { {512 * 1024, 1} },
20343 .block_erase = erase_chip_block_jedec,
20344 }
20345 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020346 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000020347 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020349 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020350 .prepare_access = prepare_memory_access,
20351 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020352 },
20353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020354 {
20355 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020356 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020357 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020358 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020359 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020360 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020361 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020362 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020363 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000020364 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020365 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020366 .block_erasers =
20367 {
20368 {
20369 .eraseblocks = { {64 * 1024, 8} },
20370 .block_erase = erase_sector_jedec,
20371 }, {
20372 .eraseblocks = { {512 * 1024, 1} },
20373 .block_erase = erase_chip_block_jedec,
20374 }
20375 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000020376 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000020377 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020378 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020379 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020380 .prepare_access = prepare_memory_access,
20381 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020382 },
20383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020384 {
20385 .vendor = "Winbond",
20386 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020387 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020388 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020389 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020390 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020391 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020392 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000020393 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020394 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000020395 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020396 .block_erasers =
20397 {
20398 {
20399 .eraseblocks = { {4 * 1024, 128} },
20400 .block_erase = erase_block_jedec,
20401 }, {
20402 .eraseblocks = { {64 * 1024, 8} },
20403 .block_erase = erase_sector_jedec,
20404 }, {
20405 .eraseblocks = { {512 * 1024, 1} },
20406 .block_erase = erase_chip_block_jedec,
20407 }
20408 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020409 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020410 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000020411 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020413 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010020414 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020415 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020416 },
20417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020418 {
20419 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020420 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020421 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020422 .manufacture_id = WINBOND_ID,
20423 .model_id = WINBOND_W39V040B,
20424 .total_size = 512,
20425 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020426 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000020427 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020428 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020429 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020430 .block_erasers =
20431 {
20432 {
20433 .eraseblocks = { {64 * 1024, 8} },
20434 .block_erase = erase_sector_jedec,
20435 }, {
20436 .eraseblocks = { {512 * 1024, 1} },
20437 .block_erase = erase_chip_block_jedec,
20438 }
20439 },
20440 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020441 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020442 .write = write_jedec_1,
20443 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020444 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020445 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020446 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020447 },
20448
20449 {
20450 .vendor = "Winbond",
20451 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020452 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020453 .manufacture_id = WINBOND_ID,
20454 .model_id = WINBOND_W39V040C,
20455 .total_size = 512,
20456 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020457 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000020458 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020459 .probe = probe_jedec,
20460 .probe_timing = 10,
20461 .block_erasers =
20462 {
20463 {
20464 .eraseblocks = { {64 * 1024, 8} },
20465 .block_erase = erase_sector_jedec,
20466 }, {
20467 .eraseblocks = { {512 * 1024, 1} },
20468 .block_erase = erase_chip_block_jedec,
20469 }
20470 },
20471 .printlock = printlock_w39v040fc,
20472 .write = write_jedec_1,
20473 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020474 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020475 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020476 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020477 },
20478
20479 {
20480 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020481 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020482 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020483 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020484 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020485 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000020486 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020487 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000020488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020489 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000020490 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020491 .block_erasers =
20492 {
20493 {
20494 .eraseblocks = { {64 * 1024, 16} },
20495 .block_erase = erase_sector_jedec,
20496 }, {
20497 .eraseblocks = { {1024 * 1024, 1} },
20498 .block_erase = erase_chip_block_jedec,
20499 }
20500 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020501 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000020502 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020503 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020504 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020505 .prepare_access = prepare_memory_access,
20506 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020507 },
20508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020509 {
20510 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020511 .name = "W39V080FA",
20512 .bustype = BUS_FWH,
20513 .manufacture_id = WINBOND_ID,
20514 .model_id = WINBOND_W39V080FA,
20515 .total_size = 1024,
20516 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020517 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020518 .tested = TEST_OK_PREW,
20519 .probe = probe_jedec,
20520 .probe_timing = 10,
20521 .block_erasers =
20522 {
20523 {
20524 .eraseblocks = { {64 * 1024, 16} },
20525 .block_erase = erase_sector_jedec,
20526 }, {
20527 .eraseblocks = { {1024 * 1024, 1} },
20528 .block_erase = erase_chip_block_jedec,
20529 }
20530 },
20531 .printlock = printlock_w39v080fa,
20532 .unlock = unlock_regspace2_uniform_64k,
20533 .write = write_jedec_1,
20534 .read = read_memmapped,
20535 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020536 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020537 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020538 },
20539
20540 {
20541 .vendor = "Winbond",
20542 .name = "W39V080FA (dual mode)",
20543 .bustype = BUS_FWH,
20544 .manufacture_id = WINBOND_ID,
20545 .model_id = WINBOND_W39V080FA_DM,
20546 .total_size = 512,
20547 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020548 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020549 .tested = TEST_UNTESTED,
20550 .probe = probe_jedec,
20551 .probe_timing = 10,
20552 .block_erasers =
20553 {
20554 {
20555 .eraseblocks = { {64 * 1024, 8} },
20556 .block_erase = erase_sector_jedec,
20557 }, {
20558 .eraseblocks = { {512 * 1024, 1} },
20559 .block_erase = erase_chip_block_jedec,
20560 }
20561 },
20562 .printlock = printlock_w39v080fa_dual,
20563 .write = write_jedec_1,
20564 .read = read_memmapped,
20565 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020566 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020567 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020568 },
20569
20570 {
20571 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020572 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020573 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020574 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020575 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020576 .total_size = 256,
20577 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020578 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020579 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020580 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020581 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020582 .block_erasers =
20583 {
20584 {
20585 .eraseblocks = {
20586 {128 * 1024, 1},
20587 {96 * 1024, 1},
20588 {8 * 1024, 2},
20589 {16 * 1024, 1},
20590 },
20591 .block_erase = erase_sector_jedec,
20592 }, {
20593 .eraseblocks = { {256 * 1024, 1} },
20594 .block_erase = erase_chip_block_jedec,
20595 }
20596 },
Sean Nelson35727f72010-01-28 23:55:12 +000020597 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020599 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020600 .prepare_access = prepare_memory_access,
20601 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020602 },
20603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020604 {
20605 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020606 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020607 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020608 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020609 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020610 .total_size = 256,
20611 .page_size = 128,
20612 .feature_bits = FEATURE_EITHER_RESET,
20613 .tested = TEST_OK_PROBE,
20614 .probe = probe_jedec,
20615 .probe_timing = 10,
20616 .block_erasers =
20617 {
20618 {
20619 .eraseblocks = { {256 * 1024, 1} },
20620 .block_erase = erase_chip_block_jedec,
20621 }
20622 },
20623 .write = write_jedec_1,
20624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020625 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020626 .prepare_access = prepare_memory_access,
20627 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020628 },
20629
20630 {
20631 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020632 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020633 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020634 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020635 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020636 .total_size = 256,
20637 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020638 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020640 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020641 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020642 .block_erasers =
20643 {
20644 {
20645 .eraseblocks = {
20646 {64 * 1024, 3},
20647 {32 * 1024, 1},
20648 {8 * 1024, 2},
20649 {16 * 1024, 1},
20650 },
20651 .block_erase = erase_sector_jedec,
20652 }, {
20653 .eraseblocks = { {256 * 1024, 1} },
20654 .block_erase = erase_chip_block_jedec,
20655 }
20656 },
Sean Nelson35727f72010-01-28 23:55:12 +000020657 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020658 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020659 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020660 .prepare_access = prepare_memory_access,
20661 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020662 },
20663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020664 {
20665 .vendor = "Winbond",
20666 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020667 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020668 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020669 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020670 .total_size = 256,
20671 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020672 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000020673 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020674 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020675 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020676 .block_erasers =
20677 {
20678 {
20679 .eraseblocks = {
20680 {64 * 1024, 3},
20681 {32 * 1024, 1},
20682 {8 * 1024, 2},
20683 {16 * 1024, 1},
20684 },
20685 .block_erase = erase_sector_jedec,
20686 }, {
20687 .eraseblocks = { {256 * 1024, 1} },
20688 .block_erase = erase_chip_block_jedec,
20689 }
20690 },
Sean Nelson35727f72010-01-28 23:55:12 +000020691 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020692 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020693 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020694 .prepare_access = prepare_memory_access,
20695 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020696 },
20697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020698 {
luke heef884232020-12-28 18:22:21 +080020699 .vendor = "XMC",
20700 .name = "XM25QH128C",
20701 .bustype = BUS_SPI,
20702 .manufacture_id = ST_ID,
20703 .model_id = XMC_XM25QH128C,
20704 .total_size = 16384,
20705 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
20707 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020708 .tested = TEST_UNTESTED,
20709 .probe = probe_spi_rdid,
20710 .probe_timing = TIMING_ZERO,
20711 .block_erasers =
20712 {
20713 {
20714 .eraseblocks = { {4 * 1024, 4096} },
20715 .block_erase = spi_block_erase_20,
20716 }, {
20717 .eraseblocks = { {32 * 1024, 512} },
20718 .block_erase = spi_block_erase_52,
20719 }, {
20720 .eraseblocks = { {64 * 1024, 256} },
20721 .block_erase = spi_block_erase_d8,
20722 }, {
20723 .eraseblocks = { {16 * 1024 * 1024, 1} },
20724 .block_erase = spi_block_erase_60,
20725 }, {
20726 .eraseblocks = { {16 * 1024 * 1024, 1} },
20727 .block_erase = spi_block_erase_c7,
20728 }
20729 },
20730 .printlock = spi_prettyprint_status_register_plain,
20731 .unlock = spi_disable_blockprotect,
20732 .write = spi_chip_write_256,
20733 .read = spi_chip_read,
20734 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020735 .reg_bits =
20736 {
20737 .srp = {STATUS1, 7, RW},
20738 .srl = {STATUS2, 0, RW},
20739 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
20740 .tb = {STATUS1, 5, RW},
20741 .sec = {STATUS1, 6, RW},
20742 .cmp = {STATUS2, 6, RW},
20743 },
Nico Huberaabb3e02023-01-13 00:22:30 +010020744 .wp_write_cfg = spi_wp_write_cfg,
20745 .wp_read_cfg = spi_wp_read_cfg,
20746 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020747 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080020748 },
20749
20750 {
20751 .vendor = "XMC",
20752 .name = "XM25QH256C",
20753 .bustype = BUS_SPI,
20754 .manufacture_id = ST_ID,
20755 .model_id = XMC_XM25QH256C,
20756 .total_size = 32768,
20757 .page_size = 256,
20758 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080020760 .tested = TEST_UNTESTED,
20761 .probe = probe_spi_rdid,
20762 .probe_timing = TIMING_ZERO,
20763 .block_erasers =
20764 {
20765 {
20766 .eraseblocks = { {4 * 1024, 8192} },
20767 .block_erase = spi_block_erase_21,
20768 }, {
20769 .eraseblocks = { {4 * 1024, 8192} },
20770 .block_erase = spi_block_erase_20,
20771 }, {
20772 .eraseblocks = { {32 * 1024, 1024} },
20773 .block_erase = spi_block_erase_52,
20774 }, {
20775 .eraseblocks = { {64 * 1024, 512} },
20776 .block_erase = spi_block_erase_dc,
20777 }, {
20778 .eraseblocks = { {64 * 1024, 512} },
20779 .block_erase = spi_block_erase_d8,
20780 }, {
20781 .eraseblocks = { {32 * 1024 * 1024, 1} },
20782 .block_erase = spi_block_erase_60,
20783 }, {
20784 .eraseblocks = { {32 * 1024 * 1024, 1} },
20785 .block_erase = spi_block_erase_c7,
20786 }
20787 },
20788 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20789 .unlock = spi_disable_blockprotect,
20790 .write = spi_chip_write_256,
20791 .read = spi_chip_read,
20792 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020793 .reg_bits =
20794 {
20795 .srp = {STATUS1, 7, RW},
20796 .srl = {STATUS2, 0, RW},
20797 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
20798 .tb = {STATUS1, 6, RW},
20799 },
Nico Huberaabb3e02023-01-13 00:22:30 +010020800 .wp_write_cfg = spi_wp_write_cfg,
20801 .wp_read_cfg = spi_wp_read_cfg,
20802 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020803 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010020804 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020805 },
20806
20807 {
20808 .vendor = "XMC",
20809 .name = "XM25QH64C",
20810 .bustype = BUS_SPI,
20811 .manufacture_id = ST_ID,
20812 .model_id = XMC_XM25QH64C,
20813 .total_size = 8192,
20814 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
20816 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020817 .tested = TEST_UNTESTED,
20818 .probe = probe_spi_rdid,
20819 .probe_timing = TIMING_ZERO,
20820 .block_erasers =
20821 {
20822 {
20823 .eraseblocks = { {4 * 1024, 2048} },
20824 .block_erase = spi_block_erase_20,
20825 }, {
20826 .eraseblocks = { {32 * 1024, 256} },
20827 .block_erase = spi_block_erase_52,
20828 }, {
20829 .eraseblocks = { {64 * 1024, 128} },
20830 .block_erase = spi_block_erase_d8,
20831 }, {
20832 .eraseblocks = { {8 * 1024 * 1024, 1} },
20833 .block_erase = spi_block_erase_60,
20834 }, {
20835 .eraseblocks = { {8 * 1024 * 1024, 1} },
20836 .block_erase = spi_block_erase_c7,
20837 }
20838 },
20839 .printlock = spi_prettyprint_status_register_plain,
20840 .unlock = spi_disable_blockprotect,
20841 .write = spi_chip_write_256,
20842 .read = spi_chip_read,
20843 .voltage = {2700, 3600},
20844 },
20845
20846 {
20847 .vendor = "XMC",
20848 .name = "XM25QU128C",
20849 .bustype = BUS_SPI,
20850 .manufacture_id = ST_ID,
20851 .model_id = XMC_XM25QU128C,
20852 .total_size = 16384,
20853 .page_size = 256,
20854 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010020855 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
20856 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020857 .tested = TEST_UNTESTED,
20858 .probe = probe_spi_rdid,
20859 .probe_timing = TIMING_ZERO,
20860 .block_erasers =
20861 {
20862 {
20863 .eraseblocks = { {4 * 1024, 4096} },
20864 .block_erase = spi_block_erase_20,
20865 }, {
20866 .eraseblocks = { {32 * 1024, 512} },
20867 .block_erase = spi_block_erase_52,
20868 }, {
20869 .eraseblocks = { {64 * 1024, 256} },
20870 .block_erase = spi_block_erase_d8,
20871 }, {
20872 .eraseblocks = { {16 * 1024 * 1024, 1} },
20873 .block_erase = spi_block_erase_60,
20874 }, {
20875 .eraseblocks = { {16 * 1024 * 1024, 1} },
20876 .block_erase = spi_block_erase_c7,
20877 }
20878 },
20879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20880 .unlock = spi_disable_blockprotect,
20881 .write = spi_chip_write_256,
20882 .read = spi_chip_read,
20883 .voltage = {1650, 1950},
20884 },
20885
20886 {
20887 .vendor = "XMC",
20888 .name = "XM25QU256C",
20889 .bustype = BUS_SPI,
20890 .manufacture_id = ST_ID,
20891 .model_id = XMC_XM25QU256C,
20892 .total_size = 32768,
20893 .page_size = 256,
20894 /* supports SFDP */
20895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
20896 .tested = TEST_UNTESTED,
20897 .probe = probe_spi_rdid,
20898 .probe_timing = TIMING_ZERO,
20899 .block_erasers =
20900 {
20901 {
20902 .eraseblocks = { {4 * 1024, 8192} },
20903 .block_erase = spi_block_erase_21,
20904 }, {
20905 .eraseblocks = { {4 * 1024, 8192} },
20906 .block_erase = spi_block_erase_20,
20907 }, {
20908 .eraseblocks = { {32 * 1024, 1024} },
20909 .block_erase = spi_block_erase_52,
20910 }, {
20911 .eraseblocks = { {64 * 1024, 512} },
20912 .block_erase = spi_block_erase_dc,
20913 }, {
20914 .eraseblocks = { {64 * 1024, 512} },
20915 .block_erase = spi_block_erase_d8,
20916 }, {
20917 .eraseblocks = { {32 * 1024 * 1024, 1} },
20918 .block_erase = spi_block_erase_60,
20919 }, {
20920 .eraseblocks = { {32 * 1024 * 1024, 1} },
20921 .block_erase = spi_block_erase_c7,
20922 }
20923 },
20924 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20925 .unlock = spi_disable_blockprotect,
20926 .write = spi_chip_write_256,
20927 .read = spi_chip_read,
20928 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010020929 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020930 },
20931
20932 {
20933 .vendor = "XMC",
20934 .name = "XM25QU64C",
20935 .bustype = BUS_SPI,
20936 .manufacture_id = ST_ID,
20937 .model_id = XMC_XM25QU64C,
20938 .total_size = 8192,
20939 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
20941 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020942 .tested = TEST_UNTESTED,
20943 .probe = probe_spi_rdid,
20944 .probe_timing = TIMING_ZERO,
20945 .block_erasers =
20946 {
20947 {
20948 .eraseblocks = { {4 * 1024, 2048} },
20949 .block_erase = spi_block_erase_20,
20950 }, {
20951 .eraseblocks = { {32 * 1024, 256} },
20952 .block_erase = spi_block_erase_52,
20953 }, {
20954 .eraseblocks = { {64 * 1024, 128} },
20955 .block_erase = spi_block_erase_d8,
20956 }, {
20957 .eraseblocks = { {8 * 1024 * 1024, 1} },
20958 .block_erase = spi_block_erase_60,
20959 }, {
20960 .eraseblocks = { {8 * 1024 * 1024, 1} },
20961 .block_erase = spi_block_erase_c7,
20962 }
20963 },
20964 .printlock = spi_prettyprint_status_register_plain,
20965 .unlock = spi_disable_blockprotect,
20966 .write = spi_chip_write_256,
20967 .read = spi_chip_read,
20968 .voltage = {1650, 1950},
20969 },
20970
20971 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020972 .vendor = "Zetta Device",
20973 .name = "ZD25D20",
20974 .bustype = BUS_SPI,
20975 .manufacture_id = ZETTADEVICE_ID,
20976 .model_id = ZETTADEVICE_ZD25D20,
20977 .total_size = 256,
20978 .page_size = 256,
20979 .feature_bits = FEATURE_WRSR_WREN,
20980 .tested = TEST_UNTESTED,
20981 .probe = probe_spi_rdid,
20982 .probe_timing = TIMING_ZERO,
20983 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080020984 {
20985 {
20986 .eraseblocks = { {4 * 1024, 64} },
20987 .block_erase = spi_block_erase_20,
20988 }, {
20989 .eraseblocks = { {32 * 1024, 8} },
20990 .block_erase = spi_block_erase_52,
20991 }, {
20992 .eraseblocks = { {64 * 1024, 4} },
20993 .block_erase = spi_block_erase_d8,
20994 }, {
20995 .eraseblocks = { {256 * 1024, 1} },
20996 .block_erase = spi_block_erase_60,
20997 }, {
20998 .eraseblocks = { {256 * 1024, 1} },
20999 .block_erase = spi_block_erase_c7,
21000 }
21001 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021002 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21003 .unlock = spi_disable_blockprotect,
21004 .write = spi_chip_write_256,
21005 .read = spi_chip_read,
21006 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080021007 },
21008
21009 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021010 .vendor = "Zetta Device",
21011 .name = "ZD25D40",
21012 .bustype = BUS_SPI,
21013 .manufacture_id = ZETTADEVICE_ID,
21014 .model_id = ZETTADEVICE_ZD25D40,
21015 .total_size = 512,
21016 .page_size = 256,
21017 .feature_bits = FEATURE_WRSR_WREN,
21018 .tested = TEST_UNTESTED,
21019 .probe = probe_spi_rdid,
21020 .probe_timing = TIMING_ZERO,
21021 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080021022 {
21023 {
21024 .eraseblocks = { {4 * 1024, 128} },
21025 .block_erase = spi_block_erase_20,
21026 }, {
21027 .eraseblocks = { {32 * 1024, 16} },
21028 .block_erase = spi_block_erase_52,
21029 }, {
21030 .eraseblocks = { {64 * 1024, 8} },
21031 .block_erase = spi_block_erase_d8,
21032 }, {
21033 .eraseblocks = { {512 * 1024, 1} },
21034 .block_erase = spi_block_erase_60,
21035 }, {
21036 .eraseblocks = { {512 * 1024, 1} },
21037 .block_erase = spi_block_erase_c7,
21038 }
21039 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021040 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21041 .unlock = spi_disable_blockprotect,
21042 .write = spi_chip_write_256,
21043 .read = spi_chip_read,
21044 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080021045 },
21046
Stefan Taunerac1b4c82012-02-17 14:51:04 +000021047 {
Alan Greendd592202019-08-23 10:11:37 +100021048 .vendor = "Unknown",
21049 .name = "SFDP-capable chip",
21050 .bustype = BUS_SPI,
21051 .manufacture_id = GENERIC_MANUF_ID,
21052 .model_id = SFDP_DEVICE_ID,
21053 .total_size = 0, /* set by probing function */
21054 .page_size = 0, /* set by probing function */
21055 .feature_bits = 0, /* set by probing function */
21056 /* We present our own "report this" text hence we do not */
21057 /* want the default "This flash part has status UNTESTED..." */
21058 /* text to be printed. */
21059 .tested = TEST_OK_PREW,
21060 .probe = probe_spi_sfdp,
21061 .block_erasers = {}, /* set by probing function */
21062 .unlock = spi_disable_blockprotect, /* is this safe? */
21063 .write = NULL, /* set by probing function */
21064 .read = spi_chip_read,
21065 /* FIXME: some vendor extensions define this */
21066 .voltage = {0},
21067 },
21068
21069 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000021070 .vendor = "Programmer",
21071 .name = "Opaque flash chip",
21072 .bustype = BUS_PROG,
21073 .manufacture_id = PROGMANUF_ID,
21074 .model_id = PROGDEV_ID,
21075 .total_size = 0,
21076 .page_size = 256,
21077 /* probe is assumed to work, rest will be filled in by probe */
21078 .tested = TEST_OK_PROBE,
21079 .probe = probe_opaque,
21080 /* eraseblock sizes will be set by the probing function */
21081 .block_erasers =
21082 {
21083 {
21084 .block_erase = erase_opaque,
21085 }
21086 },
21087 .write = write_opaque,
21088 .read = read_opaque,
21089 },
21090
21091 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021092 .vendor = "AMIC",
21093 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021094 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021095 .manufacture_id = AMIC_ID,
21096 .model_id = GENERIC_DEVICE_ID,
21097 .total_size = 0,
21098 .page_size = 256,
21099 .tested = TEST_BAD_PREW,
21100 .probe = probe_spi_rdid4,
21101 .probe_timing = TIMING_ZERO,
21102 .write = NULL,
21103 .read = NULL,
21104 },
21105
21106 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021107 .vendor = "Atmel",
21108 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021109 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021110 .manufacture_id = ATMEL_ID,
21111 .model_id = GENERIC_DEVICE_ID,
21112 .total_size = 0,
21113 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021114 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021115 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021116 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021117 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021118 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021119 },
21120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021121 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000021122 .vendor = "Eon",
21123 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021125 .manufacture_id = EON_ID_NOPREFIX,
21126 .model_id = GENERIC_DEVICE_ID,
21127 .total_size = 0,
21128 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021129 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021130 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021131 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021132 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021133 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021134 },
21135
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021136 {
21137 .vendor = "Macronix",
21138 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021139 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000021140 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021141 .model_id = GENERIC_DEVICE_ID,
21142 .total_size = 0,
21143 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021144 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021145 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021146 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021147 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021148 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021149 },
21150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021151 {
21152 .vendor = "PMC",
21153 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021154 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021155 .manufacture_id = PMC_ID,
21156 .model_id = GENERIC_DEVICE_ID,
21157 .total_size = 0,
21158 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021159 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021160 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021161 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021162 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021163 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021164 },
21165
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021166 {
21167 .vendor = "SST",
21168 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021170 .manufacture_id = SST_ID,
21171 .model_id = GENERIC_DEVICE_ID,
21172 .total_size = 0,
21173 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021174 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021175 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021176 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021177 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021178 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021179 },
21180
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021181 {
21182 .vendor = "ST",
21183 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021184 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021185 .manufacture_id = ST_ID,
21186 .model_id = GENERIC_DEVICE_ID,
21187 .total_size = 0,
21188 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021189 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021191 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021192 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021193 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021194 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000021195
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021196 {
Sean Nelson118e1d62009-11-24 02:08:11 +000021197 .vendor = "Sanyo",
21198 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021199 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000021200 .manufacture_id = SANYO_ID,
21201 .model_id = GENERIC_DEVICE_ID,
21202 .total_size = 0,
21203 .page_size = 256,
21204 .tested = TEST_BAD_PREW,
21205 .probe = probe_spi_rdid,
21206 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000021207 .write = NULL,
21208 .read = NULL,
21209 },
21210
21211 {
Stefan Taunereb582572012-09-21 12:52:50 +000021212 .vendor = "Winbond",
21213 .name = "unknown Winbond (ex Nexcom) SPI chip",
21214 .bustype = BUS_SPI,
21215 .manufacture_id = WINBOND_NEX_ID,
21216 .model_id = GENERIC_DEVICE_ID,
21217 .total_size = 0,
21218 .page_size = 256,
21219 .tested = TEST_BAD_PREW,
21220 .probe = probe_spi_rdid,
21221 .probe_timing = TIMING_ZERO,
21222 .write = NULL,
21223 .read = NULL,
21224 },
21225
21226 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021227 .vendor = "Generic",
21228 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021229 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021230 .manufacture_id = GENERIC_MANUF_ID,
21231 .model_id = GENERIC_DEVICE_ID,
21232 .total_size = 0,
21233 .page_size = 256,
21234 .tested = TEST_BAD_PREW,
21235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021236 .write = NULL,
21237 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000021238
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021239 {
21240 .vendor = "Generic",
21241 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021242 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021243 .manufacture_id = GENERIC_MANUF_ID,
21244 .model_id = GENERIC_DEVICE_ID,
21245 .total_size = 0,
21246 .page_size = 256,
21247 .tested = TEST_BAD_PREW,
21248 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021249 .write = NULL,
21250 },
21251
Stefan Tauner96658be2014-05-26 22:05:31 +000021252 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000021253};
Stefan Tauner96658be2014-05-26 22:05:31 +000021254
21255const unsigned int flashchips_size = ARRAY_SIZE(flashchips);