blob: 8bbf15b19ce024bc889c032be7cd95cfd92f29da [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000028 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
29 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000030 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000031const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000032
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000033 /*
34 * .vendor = Vendor name
35 * .name = Chip name
36 * .bustype = Supported flash bus types (Parallel, LPC...)
37 * .manufacture_id = Manufacturer chip ID
38 * .model_id = Model chip ID
39 * .total_size = Total size in (binary) kbytes
40 * .page_size = Page or eraseblock(?) size in bytes
41 * .tested = Test status
42 * .probe = Probe function
43 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000044 * .block_erasers[] = Array of erase layouts and erase functions
45 * {
46 * .eraseblocks[] = Array of { blocksize, blockcount }
47 * .block_erase = Block erase function
48 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000049 * .printlock = Chip lock status function
50 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000051 * .write = Chip write function
52 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000053 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000054 */
55
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000056 {
57 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000058 .name = "Am29F010",
59 .bustype = BUS_PARALLEL,
60 .manufacture_id = AMD_ID,
61 .model_id = AMD_AM29F010,
62 .total_size = 128,
63 .page_size = 16 * 1024,
64 .feature_bits = FEATURE_SHORT_RESET,
65 .tested = TEST_UNTESTED,
66 .probe = probe_jedec,
67 .probe_timing = TIMING_ZERO,
68 .block_erasers =
69 {
70 {
71 .eraseblocks = { {16 * 1024, 8} },
72 .block_erase = erase_sector_jedec,
73 }, {
74 .eraseblocks = { {128 * 1024, 1} },
75 .block_erase = erase_chip_block_jedec,
76 },
77 },
78 .write = write_jedec_1,
79 .read = read_memmapped,
80 .voltage = {4500, 5500},
81 },
82
83 {
84 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000086 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000087 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000088 .model_id = AMD_AM29F010,
Uwe Hermanna8b37272009-06-19 15:54:39 +000089 .total_size = 128,
90 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000091 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000092 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000093 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000094 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000095 .block_erasers =
96 {
97 {
98 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000099 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000100 }, {
101 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000102 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 },
104 },
Sean Nelson35727f72010-01-28 23:55:12 +0000105 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +0000106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000107 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +0000108 },
109
110 {
111 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000112 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000113 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000114 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000115 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 .total_size = 256,
117 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000118 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 .tested = TEST_UNTESTED,
120 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000121 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000122 .block_erasers =
123 {
124 {
125 .eraseblocks = {
126 {16 * 1024, 1},
127 {8 * 1024, 2},
128 {32 * 1024, 1},
129 {64 * 1024, 3},
130 },
131 .block_erase = erase_sector_jedec,
132 }, {
133 .eraseblocks = { {256 * 1024, 1} },
134 .block_erase = erase_chip_block_jedec,
135 },
136 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000138 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000139 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000140 },
141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000142 {
143 .vendor = "AMD",
144 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000145 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000146 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000147 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000148 .total_size = 256,
149 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000150 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
151 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000152 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000153 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000154 .block_erasers =
155 {
156 {
157 .eraseblocks = {
158 {64 * 1024, 3},
159 {32 * 1024, 1},
160 {8 * 1024, 2},
161 {16 * 1024, 1},
162 },
163 .block_erase = erase_sector_jedec,
164 }, {
165 .eraseblocks = { {256 * 1024, 1} },
166 .block_erase = erase_chip_block_jedec,
167 },
168 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000170 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000171 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000172 },
173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000174 {
175 .vendor = "AMD",
176 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000177 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000179 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000180 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000183 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000184 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000185 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000186 .block_erasers =
187 {
188 {
189 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000190 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000191 }, {
192 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 },
195 },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000197 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000198 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000199 },
200
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000201 {
202 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000203 .name = "Am29F040",
204 .bustype = BUS_PARALLEL,
205 .manufacture_id = AMD_ID,
206 .model_id = AMD_AM29F040,
207 .total_size = 512,
208 .page_size = 64 * 1024,
209 .feature_bits = FEATURE_EITHER_RESET,
210 .tested = TEST_UNTESTED,
211 .probe = probe_jedec,
212 .probe_timing = TIMING_ZERO,
213 .block_erasers =
214 {
215 {
216 .eraseblocks = { {64 * 1024, 8} },
217 .block_erase = erase_sector_jedec,
218 }, {
219 .eraseblocks = { {512 * 1024, 1} },
220 .block_erase = erase_chip_block_jedec,
221 },
222 },
223 .write = write_jedec_1,
224 .read = read_memmapped,
225 .voltage = {4500, 5500},
226 },
227
228 {
229 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000230 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000231 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000232 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000233 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .total_size = 512,
235 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000236 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
237 .tested = TEST_UNTESTED,
238 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000239 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000240 .block_erasers =
241 {
242 {
243 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000244 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000245 }, {
246 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 },
249 },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000252 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000253 },
254
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000255 {
256 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000257 .name = "Am29F080",
258 .bustype = BUS_PARALLEL,
259 .manufacture_id = AMD_ID,
260 .model_id = AMD_AM29F080,
261 .total_size = 1024,
262 .page_size = 64 * 1024,
263 .feature_bits = FEATURE_EITHER_RESET,
264 .tested = TEST_UNTESTED,
265 .probe = probe_jedec,
266 .probe_timing = TIMING_ZERO,
267 .block_erasers =
268 {
269 {
270 .eraseblocks = { {64 * 1024, 16} },
271 .block_erase = erase_sector_jedec,
272 }, {
273 .eraseblocks = { {1024 * 1024, 1} },
274 .block_erase = erase_chip_block_jedec,
275 },
276 },
277 .write = write_jedec_1,
278 .read = read_memmapped,
279 .voltage = {4500, 5500},
280 },
281
282 {
283 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000284 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000285 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000286 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000287 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000288 .total_size = 1024,
289 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000290 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .tested = TEST_UNTESTED,
292 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000293 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000294 .block_erasers =
295 {
296 {
297 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000298 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000299 }, {
300 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 },
303 },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000305 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000306 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000307 },
308
309 {
310 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000311 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000312 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000313 .manufacture_id = AMD_ID,
314 .model_id = AMD_AM29LV001BB,
315 .total_size = 128,
316 .page_size = 64 * 1024, /* unused */
317 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
318 .tested = TEST_OK_PREW,
319 .probe = probe_jedec,
320 .probe_timing = TIMING_ZERO,
321 .block_erasers =
322 {
323 {
324 .eraseblocks = {
325 {8 * 1024, 1},
326 {4 * 1024, 2},
327 {16 * 1024, 7},
328 },
329 .block_erase = erase_sector_jedec,
330 }, {
331 .eraseblocks = { {128 * 1024, 1} },
332 .block_erase = erase_chip_block_jedec,
333 },
334 },
335 .write = write_jedec_1,
336 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000337 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000338 },
339
340 {
341 .vendor = "AMD",
342 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000343 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000344 .manufacture_id = AMD_ID,
345 .model_id = AMD_AM29LV001BT,
346 .total_size = 128,
347 .page_size = 64 * 1024, /* unused */
348 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
349 .tested = TEST_UNTESTED,
350 .probe = probe_jedec,
351 .probe_timing = TIMING_ZERO,
352 .block_erasers =
353 {
354 {
355 .eraseblocks = {
356 {16 * 1024, 7},
357 {4 * 1024, 2},
358 {8 * 1024, 1},
359 },
360 .block_erase = erase_sector_jedec,
361 }, {
362 .eraseblocks = { {128 * 1024, 1} },
363 .block_erase = erase_chip_block_jedec,
364 },
365 },
366 .write = write_jedec_1,
367 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000368 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000369 },
370
371 {
372 .vendor = "AMD",
373 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000374 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000375 .manufacture_id = AMD_ID,
376 .model_id = AMD_AM29LV002BB,
377 .total_size = 256,
378 .page_size = 64 * 1024, /* unused */
379 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
380 .tested = TEST_UNTESTED,
381 .probe = probe_jedec,
382 .probe_timing = TIMING_ZERO,
383 .block_erasers =
384 {
385 {
386 .eraseblocks = {
387 {16 * 1024, 1},
388 {8 * 1024, 2},
389 {32 * 1024, 1},
390 {64 * 1024, 3},
391 },
392 .block_erase = erase_sector_jedec,
393 }, {
394 .eraseblocks = { {256 * 1024, 1} },
395 .block_erase = erase_chip_block_jedec,
396 },
397 },
398 .write = write_jedec_1,
399 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000400 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000401 },
402
403 {
404 .vendor = "AMD",
405 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000406 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000407 .manufacture_id = AMD_ID,
408 .model_id = AMD_AM29LV002BT,
409 .total_size = 256,
410 .page_size = 64 * 1024, /* unused */
411 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
412 .tested = TEST_UNTESTED,
413 .probe = probe_jedec,
414 .probe_timing = TIMING_ZERO,
415 .block_erasers =
416 {
417 {
418 .eraseblocks = {
419 {64 * 1024, 3},
420 {32 * 1024, 1},
421 {8 * 1024, 2},
422 {16 * 1024, 1},
423 },
424 .block_erase = erase_sector_jedec,
425 }, {
426 .eraseblocks = { {256 * 1024, 1} },
427 .block_erase = erase_chip_block_jedec,
428 },
429 },
430 .write = write_jedec_1,
431 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000432 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000433 },
434
435 {
436 .vendor = "AMD",
437 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000438 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000439 .manufacture_id = AMD_ID,
440 .model_id = AMD_AM29LV004BB,
441 .total_size = 512,
442 .page_size = 64 * 1024, /* unused */
443 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
444 .tested = TEST_UNTESTED,
445 .probe = probe_jedec,
446 .probe_timing = TIMING_ZERO,
447 .block_erasers =
448 {
449 {
450 .eraseblocks = {
451 {16 * 1024, 1},
452 {8 * 1024, 2},
453 {32 * 1024, 1},
454 {64 * 1024, 7},
455 },
456 .block_erase = erase_sector_jedec,
457 }, {
458 .eraseblocks = { {512 * 1024, 1} },
459 .block_erase = erase_chip_block_jedec,
460 },
461 },
462 .write = write_jedec_1,
463 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000464 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000465 },
466
467 {
468 .vendor = "AMD",
469 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000470 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000471 .manufacture_id = AMD_ID,
472 .model_id = AMD_AM29LV004BT,
473 .total_size = 512,
474 .page_size = 64 * 1024, /* unused */
475 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
476 .tested = TEST_UNTESTED,
477 .probe = probe_jedec,
478 .probe_timing = TIMING_ZERO,
479 .block_erasers =
480 {
481 {
482 .eraseblocks = {
483 {64 * 1024, 7},
484 {32 * 1024, 1},
485 {8 * 1024, 2},
486 {16 * 1024, 1},
487 },
488 .block_erase = erase_sector_jedec,
489 }, {
490 .eraseblocks = { {512 * 1024, 1} },
491 .block_erase = erase_chip_block_jedec,
492 },
493 },
494 .write = write_jedec_1,
495 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000496 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000497 },
498
499 {
500 .vendor = "AMD",
501 .name = "Am29LV008BB",
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_AM29LV008BB,
505 .total_size = 1024,
506 .page_size = 64 * 1024, /* unused */
507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000508 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000509 .probe = probe_jedec,
510 .probe_timing = TIMING_ZERO,
511 .block_erasers =
512 {
513 {
514 .eraseblocks = {
515 {16 * 1024, 1},
516 {8 * 1024, 2},
517 {32 * 1024, 1},
518 {64 * 1024, 15},
519 },
520 .block_erase = erase_sector_jedec,
521 }, {
522 .eraseblocks = { {1024 * 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 = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000529 },
530
531 {
532 .vendor = "AMD",
533 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000534 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000535 .manufacture_id = AMD_ID,
536 .model_id = AMD_AM29LV008BT,
537 .total_size = 1024,
538 .page_size = 64 * 1024, /* unused */
539 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
540 .tested = TEST_UNTESTED,
541 .probe = probe_jedec,
542 .probe_timing = TIMING_ZERO,
543 .block_erasers =
544 {
545 {
546 .eraseblocks = {
547 {64 * 1024, 15},
548 {32 * 1024, 1},
549 {8 * 1024, 2},
550 {16 * 1024, 1},
551 },
552 .block_erase = erase_sector_jedec,
553 }, {
554 .eraseblocks = { {1024 * 1024, 1} },
555 .block_erase = erase_chip_block_jedec,
556 },
557 },
558 .write = write_jedec_1,
559 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000560 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000561 },
562
563 {
564 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000565 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000566 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000567 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000568 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000569 .total_size = 512,
570 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000571 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000572 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000573 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000574 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000575 .block_erasers =
576 {
577 {
578 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000579 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000580 }, {
581 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 },
584 },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000586 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000587 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000588 },
589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000590 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000591 .vendor = "AMD",
592 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000593 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000594 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000595 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000596 .total_size = 1024,
597 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000598 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000600 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000601 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000602 .block_erasers =
603 {
604 {
605 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000606 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000607 }, {
608 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 },
611 },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000613 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000614 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000615 },
616
617 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000618 .vendor = "AMIC",
619 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000620 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .manufacture_id = AMIC_ID,
622 .model_id = AMIC_A25L05PT,
623 .total_size = 64,
624 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000625 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000626 .tested = TEST_UNTESTED,
627 .probe = probe_spi_rdid4,
628 .probe_timing = TIMING_ZERO,
629 .block_erasers =
630 {
631 {
632 .eraseblocks = {
633 {32 * 1024, 1},
634 {16 * 1024, 1},
635 {8 * 1024, 1},
636 {4 * 1024, 2},
637 },
638 .block_erase = spi_block_erase_d8,
639 }, {
640 .eraseblocks = { {64 * 1024, 1} },
641 .block_erase = spi_block_erase_c7,
642 }
643 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000644 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000645 .unlock = spi_disable_blockprotect,
646 .write = spi_chip_write_256,
647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000648 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000649 },
650
651 {
652 .vendor = "AMIC",
653 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000654 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000655 .manufacture_id = AMIC_ID,
656 .model_id = AMIC_A25L05PU,
657 .total_size = 64,
658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000659 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000660 .tested = TEST_UNTESTED,
661 .probe = probe_spi_rdid4,
662 .probe_timing = TIMING_ZERO,
663 .block_erasers =
664 {
665 {
666 .eraseblocks = {
667 {4 * 1024, 2},
668 {8 * 1024, 1},
669 {16 * 1024, 1},
670 {32 * 1024, 1},
671 },
672 .block_erase = spi_block_erase_d8,
673 }, {
674 .eraseblocks = { {64 * 1024, 1} },
675 .block_erase = spi_block_erase_c7,
676 }
677 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000678 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000679 .unlock = spi_disable_blockprotect,
680 .write = spi_chip_write_256,
681 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000682 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000683 },
684
685 {
686 .vendor = "AMIC",
687 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000688 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000689 .manufacture_id = AMIC_ID,
690 .model_id = AMIC_A25L10PT,
691 .total_size = 128,
692 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000693 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000694 .tested = TEST_UNTESTED,
695 .probe = probe_spi_rdid4,
696 .probe_timing = TIMING_ZERO,
697 .block_erasers =
698 {
699 {
700 .eraseblocks = {
701 {64 * 1024, 1},
702 {32 * 1024, 1},
703 {16 * 1024, 1},
704 {8 * 1024, 1},
705 {4 * 1024, 2},
706 },
707 .block_erase = spi_block_erase_d8,
708 }, {
709 .eraseblocks = { {128 * 1024, 1} },
710 .block_erase = spi_block_erase_c7,
711 }
712 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000713 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000714 .unlock = spi_disable_blockprotect,
715 .write = spi_chip_write_256,
716 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000717 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000718 },
719
720 {
721 .vendor = "AMIC",
722 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000723 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000724 .manufacture_id = AMIC_ID,
725 .model_id = AMIC_A25L10PU,
726 .total_size = 128,
727 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000728 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000729 .tested = TEST_UNTESTED,
730 .probe = probe_spi_rdid4,
731 .probe_timing = TIMING_ZERO,
732 .block_erasers =
733 {
734 {
735 .eraseblocks = {
736 {4 * 1024, 2},
737 {8 * 1024, 1},
738 {16 * 1024, 1},
739 {32 * 1024, 1},
740 {64 * 1024, 1},
741 },
742 .block_erase = spi_block_erase_d8,
743 }, {
744 .eraseblocks = { {128 * 1024, 1} },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000748 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000749 .unlock = spi_disable_blockprotect,
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000752 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000758 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000759 .manufacture_id = AMIC_ID,
760 .model_id = AMIC_A25L20PT,
761 .total_size = 256,
762 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000763 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid4,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = {
771 {64 * 1024, 3},
772 {32 * 1024, 1},
773 {16 * 1024, 1},
774 {8 * 1024, 1},
775 {4 * 1024, 2},
776 },
777 .block_erase = spi_block_erase_d8,
778 }, {
779 .eraseblocks = { {256 * 1024, 1} },
780 .block_erase = spi_block_erase_c7,
781 }
782 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000783 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000784 .unlock = spi_disable_blockprotect,
785 .write = spi_chip_write_256,
786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000787 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000788 },
789
790 {
791 .vendor = "AMIC",
792 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000793 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000794 .manufacture_id = AMIC_ID,
795 .model_id = AMIC_A25L20PU,
796 .total_size = 256,
797 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000798 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000799 .tested = TEST_UNTESTED,
800 .probe = probe_spi_rdid4,
801 .probe_timing = TIMING_ZERO,
802 .block_erasers =
803 {
804 {
805 .eraseblocks = {
806 {4 * 1024, 2},
807 {8 * 1024, 1},
808 {16 * 1024, 1},
809 {32 * 1024, 1},
810 {64 * 1024, 3},
811 },
812 .block_erase = spi_block_erase_d8,
813 }, {
814 .eraseblocks = { {256 * 1024, 1} },
815 .block_erase = spi_block_erase_c7,
816 }
817 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000818 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 .unlock = spi_disable_blockprotect,
820 .write = spi_chip_write_256,
821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000822 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000823 },
824
825 /* The A25L40P{T,U} chips are distinguished by their
826 * erase block layouts, but without any distinction in RDID.
827 * This inexplicable quirk was verified by Rudolf Marek
828 * and discussed on the flashrom mailing list on 2010-07-12.
829 */
830 {
831 .vendor = "AMIC",
832 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000833 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000834 .manufacture_id = AMIC_ID,
835 .model_id = AMIC_A25L40PT,
836 .total_size = 512,
837 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000838 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000839 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000840 .probe = probe_spi_rdid4,
841 .probe_timing = TIMING_ZERO,
842 .block_erasers =
843 {
844 {
845 .eraseblocks = {
846 {64 * 1024, 7},
847 {32 * 1024, 1},
848 {16 * 1024, 1},
849 {8 * 1024, 1},
850 {4 * 1024, 2},
851 },
852 .block_erase = spi_block_erase_d8,
853 }, {
854 .eraseblocks = { {512 * 1024, 1} },
855 .block_erase = spi_block_erase_c7,
856 }
857 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000858 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000859 .unlock = spi_disable_blockprotect,
860 .write = spi_chip_write_256,
861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000862 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000863 },
864
865 {
866 .vendor = "AMIC",
867 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000868 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000869 .manufacture_id = AMIC_ID,
870 .model_id = AMIC_A25L40PU,
871 .total_size = 512,
872 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000873 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +0200874 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000875 .probe = probe_spi_rdid4,
876 .probe_timing = TIMING_ZERO,
877 .block_erasers =
878 {
879 {
880 .eraseblocks = {
881 {4 * 1024, 2},
882 {8 * 1024, 1},
883 {16 * 1024, 1},
884 {32 * 1024, 1},
885 {64 * 1024, 7},
886 },
887 .block_erase = spi_block_erase_d8,
888 }, {
889 .eraseblocks = { {512 * 1024, 1} },
890 .block_erase = spi_block_erase_c7,
891 }
892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000893 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 .unlock = spi_disable_blockprotect,
895 .write = spi_chip_write_256,
896 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000897 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000898 },
899
900 {
901 .vendor = "AMIC",
902 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000903 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000904 .manufacture_id = AMIC_ID,
905 .model_id = AMIC_A25L80P,
906 .total_size = 1024,
907 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000908 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000909 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000910 .probe = probe_spi_rdid4,
911 .probe_timing = TIMING_ZERO,
912 .block_erasers =
913 {
914 {
915 .eraseblocks = {
916 {4 * 1024, 2},
917 {8 * 1024, 1},
918 {16 * 1024, 1},
919 {32 * 1024, 1},
920 {64 * 1024, 15},
921 },
922 .block_erase = spi_block_erase_d8,
923 }, {
924 .eraseblocks = { {1024 * 1024, 1} },
925 .block_erase = spi_block_erase_c7,
926 }
927 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000928 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000929 .unlock = spi_disable_blockprotect,
930 .write = spi_chip_write_256,
931 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000932 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000933 },
934
935 {
936 .vendor = "AMIC",
937 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000938 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000939 .manufacture_id = AMIC_ID,
940 .model_id = AMIC_A25L16PT,
941 .total_size = 2048,
942 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000943 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000944 .tested = TEST_UNTESTED,
945 .probe = probe_spi_rdid4,
946 .probe_timing = TIMING_ZERO,
947 .block_erasers =
948 {
949 {
950 .eraseblocks = {
951 {64 * 1024, 31},
952 {32 * 1024, 1},
953 {16 * 1024, 1},
954 {8 * 1024, 1},
955 {4 * 1024, 2},
956 },
957 .block_erase = spi_block_erase_d8,
958 }, {
959 .eraseblocks = { {2048 * 1024, 1} },
960 .block_erase = spi_block_erase_60,
961 }, {
962 .eraseblocks = { {2048 * 1024, 1} },
963 .block_erase = spi_block_erase_c7,
964 }
965 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000966 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000967 .unlock = spi_disable_blockprotect,
968 .write = spi_chip_write_256,
969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000970 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000971 },
972
973 {
974 .vendor = "AMIC",
975 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000976 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000977 .manufacture_id = AMIC_ID,
978 .model_id = AMIC_A25L16PU,
979 .total_size = 2048,
980 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000981 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000982 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000983 .probe = probe_spi_rdid4,
984 .probe_timing = TIMING_ZERO,
985 .block_erasers =
986 {
987 {
988 .eraseblocks = {
989 {4 * 1024, 2},
990 {8 * 1024, 1},
991 {16 * 1024, 1},
992 {32 * 1024, 1},
993 {64 * 1024, 31},
994 },
995 .block_erase = spi_block_erase_d8,
996 }, {
997 .eraseblocks = { {2048 * 1024, 1} },
998 .block_erase = spi_block_erase_60,
999 }, {
1000 .eraseblocks = { {2048 * 1024, 1} },
1001 .block_erase = spi_block_erase_c7,
1002 }
1003 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001004 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001005 .unlock = spi_disable_blockprotect,
1006 .write = spi_chip_write_256,
1007 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001008 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001009 },
1010
1011 {
1012 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +00001013 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001014 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001015 .manufacture_id = AMIC_ID_NOPREFIX,
1016 .model_id = AMIC_A25L512,
1017 .total_size = 64,
1018 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001019 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001020 .tested = TEST_UNTESTED,
1021 .probe = probe_spi_rdid,
1022 .probe_timing = TIMING_ZERO,
1023 .block_erasers =
1024 {
1025 {
1026 .eraseblocks = { { 4 * 1024, 16 } },
1027 .block_erase = spi_block_erase_20,
1028 }, {
1029 .eraseblocks = { { 64 * 1024, 1 } },
1030 .block_erase = spi_block_erase_d8,
1031 }, {
1032 .eraseblocks = { { 64 * 1024, 1 } },
1033 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001034 }
Dan Lenski11617122010-07-29 15:00:40 +00001035 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001036 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001037 .unlock = spi_disable_blockprotect,
1038 .write = spi_chip_write_256,
1039 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001040 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001041 },
1042
1043 {
1044 .vendor = "AMIC",
1045 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001046 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001047 .manufacture_id = AMIC_ID_NOPREFIX,
1048 .model_id = AMIC_A25L010,
1049 .total_size = 128,
1050 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001051 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001052 .tested = TEST_UNTESTED,
1053 .probe = probe_spi_rdid,
1054 .probe_timing = TIMING_ZERO,
1055 .block_erasers =
1056 {
1057 {
1058 .eraseblocks = { { 4 * 1024, 32 } },
1059 .block_erase = spi_block_erase_20,
1060 }, {
1061 .eraseblocks = { { 64 * 1024, 2 } },
1062 .block_erase = spi_block_erase_d8,
1063 }, {
1064 .eraseblocks = { { 128 * 1024, 1 } },
1065 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001066 }
Dan Lenski11617122010-07-29 15:00:40 +00001067 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001068 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001069 .unlock = spi_disable_blockprotect,
1070 .write = spi_chip_write_256,
1071 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001072 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001073 },
1074
1075 {
1076 .vendor = "AMIC",
1077 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001078 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001079 .manufacture_id = AMIC_ID_NOPREFIX,
1080 .model_id = AMIC_A25L020,
1081 .total_size = 256,
1082 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001083 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001084 .tested = TEST_UNTESTED,
1085 .probe = probe_spi_rdid,
1086 .probe_timing = TIMING_ZERO,
1087 .block_erasers =
1088 {
1089 {
1090 .eraseblocks = { { 4 * 1024, 64 } },
1091 .block_erase = spi_block_erase_20,
1092 }, {
1093 .eraseblocks = { { 64 * 1024, 4 } },
1094 .block_erase = spi_block_erase_d8,
1095 }, {
1096 .eraseblocks = { { 256 * 1024, 1 } },
1097 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001098 }
Dan Lenski11617122010-07-29 15:00:40 +00001099 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001100 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +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},
Dan Lenski11617122010-07-29 15:00:40 +00001105 },
1106
1107 {
1108 .vendor = "AMIC",
1109 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001110 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001111 .manufacture_id = AMIC_ID_NOPREFIX,
1112 .model_id = AMIC_A25L040,
1113 .total_size = 512,
1114 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001115 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001116 .tested = TEST_UNTESTED,
1117 .probe = probe_spi_rdid,
1118 .probe_timing = TIMING_ZERO,
1119 .block_erasers =
1120 {
1121 {
1122 .eraseblocks = { { 4 * 1024, 128 } },
1123 .block_erase = spi_block_erase_20,
1124 }, {
1125 .eraseblocks = { { 64 * 1024, 8 } },
1126 .block_erase = spi_block_erase_d8,
1127 }, {
1128 .eraseblocks = { { 512 * 1024, 1 } },
1129 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001130 }
Dan Lenski11617122010-07-29 15:00:40 +00001131 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001132 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001133 .unlock = spi_disable_blockprotect,
1134 .write = spi_chip_write_256,
1135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001136 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001137 },
1138
1139 {
1140 .vendor = "AMIC",
1141 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001142 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001143 .manufacture_id = AMIC_ID_NOPREFIX,
1144 .model_id = AMIC_A25L080,
1145 .total_size = 1024,
1146 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001147 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001148 .tested = TEST_UNTESTED,
1149 .probe = probe_spi_rdid,
1150 .probe_timing = TIMING_ZERO,
1151 .block_erasers =
1152 {
1153 {
1154 .eraseblocks = { { 4 * 1024, 256 } },
1155 .block_erase = spi_block_erase_20,
1156 }, {
1157 .eraseblocks = { { 64 * 1024, 16 } },
1158 .block_erase = spi_block_erase_d8,
1159 }, {
1160 .eraseblocks = { { 1024 * 1024, 1 } },
1161 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001162 }
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001164 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001165 .unlock = spi_disable_blockprotect,
1166 .write = spi_chip_write_256,
1167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001168 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001169 },
1170
1171 {
1172 .vendor = "AMIC",
1173 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001174 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .manufacture_id = AMIC_ID_NOPREFIX,
1176 .model_id = AMIC_A25L016,
1177 .total_size = 2048,
1178 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001179 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001180 .tested = TEST_UNTESTED,
1181 .probe = probe_spi_rdid,
1182 .probe_timing = TIMING_ZERO,
1183 .block_erasers =
1184 {
1185 {
1186 .eraseblocks = { { 4 * 1024, 512 } },
1187 .block_erase = spi_block_erase_20,
1188 }, {
1189 .eraseblocks = { { 64 * 1024, 32 } },
1190 .block_erase = spi_block_erase_d8,
1191 }, {
1192 .eraseblocks = { { 2048 * 1024, 1 } },
1193 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001194 }
Dan Lenski11617122010-07-29 15:00:40 +00001195 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001196 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001197 .unlock = spi_disable_blockprotect,
1198 .write = spi_chip_write_256,
1199 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001200 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001201 },
1202
1203 {
1204 .vendor = "AMIC",
1205 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001206 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001207 .manufacture_id = AMIC_ID_NOPREFIX,
1208 .model_id = AMIC_A25L032,
1209 .total_size = 4096,
1210 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001211 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001213 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001214 .probe = probe_spi_rdid,
1215 .probe_timing = TIMING_ZERO,
1216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = { { 4 * 1024, 1024 } },
1220 .block_erase = spi_block_erase_20,
1221 }, {
1222 .eraseblocks = { { 64 * 1024, 64 } },
1223 .block_erase = spi_block_erase_52,
1224 }, {
1225 .eraseblocks = { { 64 * 1024, 64 } },
1226 .block_erase = spi_block_erase_d8,
1227 }, {
1228 .eraseblocks = { { 4096 * 1024, 1 } },
1229 .block_erase = spi_block_erase_60,
1230 }, {
1231 .eraseblocks = { { 4096 * 1024, 1 } },
1232 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001233 }
Dan Lenski11617122010-07-29 15:00:40 +00001234 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001235 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1236 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001237 .write = spi_chip_write_256,
1238 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001239 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001240 },
1241
1242 {
1243 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001244 .name = "A25LQ16",
1245 .bustype = BUS_SPI,
1246 .manufacture_id = AMIC_ID_NOPREFIX,
1247 .model_id = AMIC_A25LQ16,
1248 .total_size = 2048,
1249 .page_size = 256,
1250 /* supports SFDP */
1251 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1252 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1253 .tested = TEST_UNTESTED,
1254 .probe = probe_spi_rdid,
1255 .probe_timing = TIMING_ZERO,
1256 .block_erasers = {
1257 {
1258 .eraseblocks = { { 4 * 1024, 512 } },
1259 .block_erase = spi_block_erase_20,
1260 }, {
1261 .eraseblocks = { { 64 * 1024, 32 } },
1262 .block_erase = spi_block_erase_52,
1263 }, {
1264 .eraseblocks = { { 64 * 1024, 32 } },
1265 .block_erase = spi_block_erase_d8,
1266 }, {
1267 .eraseblocks = { { 2048 * 1024, 1 } },
1268 .block_erase = spi_block_erase_60,
1269 }, {
1270 .eraseblocks = { { 2048 * 1024, 1 } },
1271 .block_erase = spi_block_erase_c7,
1272 }
1273 },
1274 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1275 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1276 .write = spi_chip_write_256,
1277 .read = spi_chip_read,
1278 .voltage = {2700, 3600},
1279 },
1280
1281 {
1282 .vendor = "AMIC",
1283 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001284 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001285 .manufacture_id = AMIC_ID_NOPREFIX,
1286 .model_id = AMIC_A25LQ032,
1287 .total_size = 4096,
1288 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001289 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001290 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001292 .tested = TEST_UNTESTED,
1293 .probe = probe_spi_rdid,
1294 .probe_timing = TIMING_ZERO,
1295 .block_erasers =
1296 {
1297 {
1298 .eraseblocks = { { 4 * 1024, 1024 } },
1299 .block_erase = spi_block_erase_20,
1300 }, {
1301 .eraseblocks = { { 64 * 1024, 64 } },
1302 .block_erase = spi_block_erase_52,
1303 }, {
1304 .eraseblocks = { { 64 * 1024, 64 } },
1305 .block_erase = spi_block_erase_d8,
1306 }, {
1307 .eraseblocks = { { 4096 * 1024, 1 } },
1308 .block_erase = spi_block_erase_60,
1309 }, {
1310 .eraseblocks = { { 4096 * 1024, 1 } },
1311 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001312 }
Dan Lenski11617122010-07-29 15:00:40 +00001313 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001314 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1315 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1316 .write = spi_chip_write_256,
1317 .read = spi_chip_read,
1318 .voltage = {2700, 3600},
1319 },
1320
1321 {
1322 .vendor = "AMIC",
1323 .name = "A25LQ64",
1324 .bustype = BUS_SPI,
1325 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001326 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .total_size = 8192,
1328 .page_size = 256,
1329 /* supports SFDP */
1330 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1331 /* QPI enable 0x35, disable 0xF5 */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
1335 .probe_timing = TIMING_ZERO,
1336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { { 4 * 1024, 2048 } },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { { 32 * 1024, 256 } },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { { 64 * 1024, 128 } },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { { 8192 * 1024, 1 } },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { { 8192 * 1024, 1 } },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001355 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001356 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001357 .write = spi_chip_write_256,
1358 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001359 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001360 },
1361
1362 {
1363 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001364 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001366 .manufacture_id = AMIC_ID_NOPREFIX,
1367 .model_id = AMIC_A29002B,
1368 .total_size = 256,
1369 .page_size = 64 * 1024,
1370 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1371 .tested = TEST_UNTESTED,
1372 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001373 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 .block_erasers =
1375 {
1376 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001377 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 {16 * 1024, 1},
1379 {8 * 1024, 2},
1380 {32 * 1024, 1},
1381 {64 * 1024, 3},
1382 },
1383 .block_erase = erase_sector_jedec,
1384 }, {
1385 .eraseblocks = { {256 * 1024, 1} },
1386 .block_erase = erase_chip_block_jedec,
1387 },
1388 },
1389 .write = write_jedec_1,
1390 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001391 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001392 },
1393
1394 {
1395 .vendor = "AMIC",
1396 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001397 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001398 .manufacture_id = AMIC_ID_NOPREFIX,
1399 .model_id = AMIC_A29002T,
1400 .total_size = 256,
1401 .page_size = 64 * 1024,
1402 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001403 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001404 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001405 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001406 .block_erasers =
1407 {
1408 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001409 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 {64 * 1024, 3},
1411 {32 * 1024, 1},
1412 {8 * 1024, 2},
1413 {16 * 1024, 1},
1414 },
1415 .block_erase = erase_sector_jedec,
1416 }, {
1417 .eraseblocks = { {256 * 1024, 1} },
1418 .block_erase = erase_chip_block_jedec,
1419 },
1420 },
1421 .write = write_jedec_1,
1422 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001423 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001424 },
1425
1426 {
1427 .vendor = "AMIC",
1428 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001429 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001430 .manufacture_id = AMIC_ID_NOPREFIX,
1431 .model_id = AMIC_A29040B,
1432 .total_size = 512,
1433 .page_size = 64 * 1024,
1434 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001435 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001436 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001437 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001438 .block_erasers =
1439 {
1440 {
1441 .eraseblocks = { {64 * 1024, 8} },
1442 .block_erase = erase_sector_jedec,
1443 }, {
1444 .eraseblocks = { {512 * 1024, 1} },
1445 .block_erase = erase_chip_block_jedec,
1446 },
1447 },
1448 .write = write_jedec_1,
1449 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001450 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001451 },
1452
1453 {
1454 .vendor = "AMIC",
1455 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001456 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001457 .manufacture_id = AMIC_ID_NOPREFIX,
1458 .model_id = AMIC_A49LF040A,
1459 .total_size = 512,
1460 .page_size = 64 * 1024,
1461 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001462 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001463 .probe = probe_jedec,
1464 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1465 .block_erasers =
1466 {
1467 {
1468 .eraseblocks = { {64 * 1024, 8} },
1469 .block_erase = erase_block_jedec,
1470 }, {
1471 .eraseblocks = { {512 * 1024, 1} },
1472 .block_erase = erase_chip_block_jedec,
1473 }
1474 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001475 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001476 .write = write_jedec_1,
1477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001478 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001479 },
1480
1481 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .vendor = "Atmel",
1483 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 256,
1488 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001489 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .tested = TEST_UNTESTED,
1492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001493 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001494 .block_erasers =
1495 {
1496 {
1497 .eraseblocks = { {4 * 1024, 64} },
1498 .block_erase = spi_block_erase_20,
1499 }, {
1500 .eraseblocks = { {32 * 1024, 8} },
1501 .block_erase = spi_block_erase_52,
1502 }, {
1503 .eraseblocks = { {64 * 1024, 4} },
1504 .block_erase = spi_block_erase_d8,
1505 }, {
1506 .eraseblocks = { {256 * 1024, 1} },
1507 .block_erase = spi_block_erase_60,
1508 }, {
1509 .eraseblocks = { {256 * 1024, 1} },
1510 .block_erase = spi_block_erase_c7,
1511 }
1512 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001513 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001514 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001515 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001516 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001517 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001518 },
1519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 {
1521 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001522 .name = "AT25DF021A",
1523 .bustype = BUS_SPI,
1524 .manufacture_id = ATMEL_ID,
1525 .model_id = ATMEL_AT25DF021A,
1526 .total_size = 256,
1527 .page_size = 256,
1528 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1530 .tested = TEST_OK_PREW,
1531 .probe = probe_spi_rdid,
1532 .probe_timing = TIMING_ZERO,
1533 .block_erasers =
1534 {
1535 {
1536 .eraseblocks = { {4 * 1024, 64} },
1537 .block_erase = spi_block_erase_20,
1538 }, {
1539 .eraseblocks = { {32 * 1024, 8} },
1540 .block_erase = spi_block_erase_52,
1541 }, {
1542 .eraseblocks = { {64 * 1024, 4} },
1543 .block_erase = spi_block_erase_d8,
1544 }, {
1545 .eraseblocks = { {256 * 1024, 1} },
1546 .block_erase = spi_block_erase_60,
1547 }, {
1548 .eraseblocks = { {256 * 1024, 1} },
1549 .block_erase = spi_block_erase_c7,
1550 }
1551 },
1552 .printlock = spi_prettyprint_status_register_at25df,
1553 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1554 .write = spi_chip_write_256,
1555 .read = spi_chip_read,
1556 .voltage = {1650, 3600},
1557 },
1558
1559 {
1560 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001564 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .total_size = 512,
1566 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001567 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001568 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001570 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001571 .block_erasers =
1572 {
1573 {
1574 .eraseblocks = { {4 * 1024, 128} },
1575 .block_erase = spi_block_erase_20,
1576 }, {
1577 .eraseblocks = { {32 * 1024, 16} },
1578 .block_erase = spi_block_erase_52,
1579 }, {
1580 .eraseblocks = { {64 * 1024, 8} },
1581 .block_erase = spi_block_erase_d8,
1582 }, {
1583 .eraseblocks = { {512 * 1024, 1} },
1584 .block_erase = spi_block_erase_60,
1585 }, {
1586 .eraseblocks = { {512 * 1024, 1} },
1587 .block_erase = spi_block_erase_c7,
1588 }
1589 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001590 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001591 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001592 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001593 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001594 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001595 },
1596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 {
1598 .vendor = "Atmel",
1599 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001600 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001602 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001603 .total_size = 1024,
1604 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001605 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001606 .tested = TEST_UNTESTED,
1607 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001608 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001609 .block_erasers =
1610 {
1611 {
1612 .eraseblocks = { {4 * 1024, 256} },
1613 .block_erase = spi_block_erase_20,
1614 }, {
1615 .eraseblocks = { {32 * 1024, 32} },
1616 .block_erase = spi_block_erase_52,
1617 }, {
1618 .eraseblocks = { {64 * 1024, 16} },
1619 .block_erase = spi_block_erase_d8,
1620 }, {
1621 .eraseblocks = { {1024 * 1024, 1} },
1622 .block_erase = spi_block_erase_60,
1623 }, {
1624 .eraseblocks = { {1024 * 1024, 1} },
1625 .block_erase = spi_block_erase_c7,
1626 }
1627 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001628 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001629 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001630 .write = spi_chip_write_256,
1631 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001632 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 },
1634
1635 {
1636 .vendor = "Atmel",
1637 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001638 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001640 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001641 .total_size = 1024,
1642 .page_size = 256,
1643 .feature_bits = FEATURE_WRSR_WREN,
1644 .tested = TEST_UNTESTED,
1645 .probe = probe_spi_rdid,
1646 .probe_timing = TIMING_ZERO,
1647 .block_erasers =
1648 {
1649 {
1650 .eraseblocks = { {4 * 1024, 256} },
1651 .block_erase = spi_block_erase_20,
1652 }, {
1653 .eraseblocks = { {32 * 1024, 32} },
1654 .block_erase = spi_block_erase_52,
1655 }, {
1656 .eraseblocks = { {64 * 1024, 16} },
1657 .block_erase = spi_block_erase_d8,
1658 }, {
1659 .eraseblocks = { {1024 * 1024, 1} },
1660 .block_erase = spi_block_erase_60,
1661 }, {
1662 .eraseblocks = { {1024 * 1024, 1} },
1663 .block_erase = spi_block_erase_c7,
1664 }
1665 },
1666 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001667 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001668 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001669 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001670 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001671 },
1672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 {
1674 .vendor = "Atmel",
1675 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001676 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001678 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001679 .total_size = 2048,
1680 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001681 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001682 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001684 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001685 .block_erasers =
1686 {
1687 {
1688 .eraseblocks = { {4 * 1024, 512} },
1689 .block_erase = spi_block_erase_20,
1690 }, {
1691 .eraseblocks = { {32 * 1024, 64} },
1692 .block_erase = spi_block_erase_52,
1693 }, {
1694 .eraseblocks = { {64 * 1024, 32} },
1695 .block_erase = spi_block_erase_d8,
1696 }, {
1697 .eraseblocks = { {2 * 1024 * 1024, 1} },
1698 .block_erase = spi_block_erase_60,
1699 }, {
1700 .eraseblocks = { {2 * 1024 * 1024, 1} },
1701 .block_erase = spi_block_erase_c7,
1702 }
1703 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001704 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001705 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001706 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001707 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001708 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001709 },
1710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 {
1712 .vendor = "Atmel",
1713 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001714 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001715 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001716 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001717 .total_size = 4096,
1718 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001719 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001720 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001721 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001722 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 1024} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 128} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 64} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {4 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {4 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001742 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001752 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001753 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001754 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001755 .total_size = 4096,
1756 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001759 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001761 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 1024} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 128} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 64} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {4 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {4 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001781 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001783 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001785 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001786 },
1787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001788 {
1789 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001790 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001794 .total_size = 8192,
1795 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001796 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001797 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001798 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001799 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001800 .block_erasers =
1801 {
1802 {
1803 .eraseblocks = { {4 * 1024, 2048} },
1804 .block_erase = spi_block_erase_20,
1805 }, {
1806 .eraseblocks = { {32 * 1024, 256} },
1807 .block_erase = spi_block_erase_52,
1808 }, {
1809 .eraseblocks = { {64 * 1024, 128} },
1810 .block_erase = spi_block_erase_d8,
1811 }, {
1812 .eraseblocks = { {8 * 1024 * 1024, 1} },
1813 .block_erase = spi_block_erase_60,
1814 }, {
1815 .eraseblocks = { {8 * 1024 * 1024, 1} },
1816 .block_erase = spi_block_erase_c7,
1817 }
1818 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001819 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001820 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001821 .write = spi_chip_write_256,
1822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001823 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 },
1825
1826 {
1827 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001828 .name = "AT25DL081",
1829 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001830 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001831 .model_id = ATMEL_AT25DF081,
1832 .total_size = 1024,
1833 .page_size = 256,
1834 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1836 .tested = TEST_UNTESTED,
1837 .probe = probe_spi_rdid,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {4 * 1024, 256} },
1843 .block_erase = spi_block_erase_20,
1844 }, {
1845 .eraseblocks = { {32 * 1024, 32} },
1846 .block_erase = spi_block_erase_52,
1847 }, {
1848 .eraseblocks = { {64 * 1024, 16} },
1849 .block_erase = spi_block_erase_d8,
1850 }, {
1851 .eraseblocks = { {1 * 1024 * 1024, 1} },
1852 .block_erase = spi_block_erase_60,
1853 }, {
1854 .eraseblocks = { {1 * 1024 * 1024, 1} },
1855 .block_erase = spi_block_erase_c7,
1856 }
1857 },
1858 .printlock = spi_prettyprint_status_register_at25df_sec,
1859 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1860 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1861 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1862 .voltage = {1650, 1950},
1863 },
1864
1865 {
1866 .vendor = "Atmel",
1867 .name = "AT25DL161",
1868 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001869 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001870 .model_id = ATMEL_AT25DL161,
1871 .total_size = 2048,
1872 .page_size = 256,
1873 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1874 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1875 .tested = TEST_UNTESTED,
1876 .probe = probe_spi_rdid,
1877 .probe_timing = TIMING_ZERO,
1878 .block_erasers =
1879 {
1880 {
1881 .eraseblocks = { {4 * 1024, 512} },
1882 .block_erase = spi_block_erase_20,
1883 }, {
1884 .eraseblocks = { {32 * 1024, 64} },
1885 .block_erase = spi_block_erase_52,
1886 }, {
1887 .eraseblocks = { {64 * 1024, 32} },
1888 .block_erase = spi_block_erase_d8,
1889 }, {
1890 .eraseblocks = { {2 * 1024 * 1024, 1} },
1891 .block_erase = spi_block_erase_60,
1892 }, {
1893 .eraseblocks = { {2 * 1024 * 1024, 1} },
1894 .block_erase = spi_block_erase_c7,
1895 }
1896 },
1897 .printlock = spi_prettyprint_status_register_at25df_sec,
1898 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1899 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1900 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1901 .voltage = {1650, 1950},
1902 },
1903
1904 {
1905 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001906 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001907 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001908 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001909 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001910 .total_size = 2048,
1911 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001912 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001914 .tested = TEST_UNTESTED,
1915 .probe = probe_spi_rdid,
1916 .probe_timing = TIMING_ZERO,
1917 .block_erasers =
1918 {
1919 {
1920 .eraseblocks = { {4 * 1024, 512} },
1921 .block_erase = spi_block_erase_20,
1922 }, {
1923 .eraseblocks = { {32 * 1024, 64} },
1924 .block_erase = spi_block_erase_52,
1925 }, {
1926 .eraseblocks = { {64 * 1024, 32} },
1927 .block_erase = spi_block_erase_d8,
1928 }, {
1929 .eraseblocks = { {2 * 1024 * 1024, 1} },
1930 .block_erase = spi_block_erase_60,
1931 }, {
1932 .eraseblocks = { {2 * 1024 * 1024, 1} },
1933 .block_erase = spi_block_erase_c7,
1934 }
1935 },
1936 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001937 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001938 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001939 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001940 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001941 },
1942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 {
1944 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001945 .name = "AT25F512",
1946 .bustype = BUS_SPI,
1947 .manufacture_id = ATMEL_ID,
1948 .model_id = ATMEL_AT25F512,
1949 .total_size = 64,
1950 .page_size = 256,
1951 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001952 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001953 .probe = probe_spi_at25f,
1954 .probe_timing = TIMING_ZERO,
1955 .block_erasers =
1956 {
1957 {
1958 .eraseblocks = { {32 * 1024, 2} },
1959 .block_erase = spi_block_erase_52,
1960 }, {
1961 .eraseblocks = { {64 * 1024, 1} },
1962 .block_erase = spi_block_erase_62,
1963 }
1964 },
1965 .printlock = spi_prettyprint_status_register_at25f,
1966 .unlock = spi_disable_blockprotect_at25f,
1967 .write = spi_chip_write_256,
1968 .read = spi_chip_read,
1969 .voltage = {2700, 3600},
1970 },
1971
1972 {
1973 .vendor = "Atmel",
1974 .name = "AT25F512A",
1975 .bustype = BUS_SPI,
1976 .manufacture_id = ATMEL_ID,
1977 .model_id = ATMEL_AT25F512A,
1978 .total_size = 64,
1979 .page_size = 128,
1980 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001981 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001982 .probe = probe_spi_at25f,
1983 .probe_timing = TIMING_ZERO,
1984 .block_erasers =
1985 {
1986 {
1987 .eraseblocks = { {32 * 1024, 2} },
1988 .block_erase = spi_block_erase_52,
1989 }, {
1990 .eraseblocks = { {64 * 1024, 1} },
1991 .block_erase = spi_block_erase_62,
1992 }
1993 },
1994 .printlock = spi_prettyprint_status_register_at25f512a,
1995 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1996 .unlock = spi_disable_blockprotect_at25f512a,
1997 .write = spi_chip_write_256,
1998 .read = spi_chip_read,
1999 .voltage = {2700, 3600},
2000 },
2001
2002 {
2003 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002004 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002005 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002006 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002007 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002008 .total_size = 64,
2009 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002010 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2011 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002012 .tested = TEST_UNTESTED,
2013 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002014 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {4 * 1024, 16} },
2019 .block_erase = spi_block_erase_20,
2020 }, {
2021 .eraseblocks = { {32 * 1024, 2} },
2022 .block_erase = spi_block_erase_52,
2023 }, {
2024 .eraseblocks = { {32 * 1024, 2} },
2025 .block_erase = spi_block_erase_d8,
2026 }, {
2027 .eraseblocks = { {64 * 1024, 1} },
2028 .block_erase = spi_block_erase_60,
2029 }, {
2030 .eraseblocks = { {64 * 1024, 1} },
2031 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002032 }, {
2033 .eraseblocks = { {64 * 1024, 1} },
2034 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002035 }
2036 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002037 .printlock = spi_prettyprint_status_register_at25f512b,
2038 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002039 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002040 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002041 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002042 },
2043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002044 {
2045 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002046 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2047 * All other properties seem to be the same.*/
2048 .name = "AT25F1024(A)",
2049 .bustype = BUS_SPI,
2050 .manufacture_id = ATMEL_ID,
2051 .model_id = ATMEL_AT25F1024,
2052 .total_size = 128,
2053 .page_size = 256,
2054 .feature_bits = FEATURE_WRSR_WREN,
2055 .tested = TEST_OK_PREW,
2056 .probe = probe_spi_at25f,
2057 .probe_timing = TIMING_ZERO,
2058 .block_erasers =
2059 {
2060 {
2061 .eraseblocks = { {32 * 1024, 4} },
2062 .block_erase = spi_block_erase_52,
2063 }, {
2064 .eraseblocks = { {128 * 1024, 1} },
2065 .block_erase = spi_block_erase_62,
2066 }
2067 },
2068 .printlock = spi_prettyprint_status_register_at25f,
2069 .unlock = spi_disable_blockprotect_at25f,
2070 .write = spi_chip_write_256,
2071 .read = spi_chip_read,
2072 .voltage = {2700, 3600},
2073 },
2074
2075 {
2076 .vendor = "Atmel",
2077 .name = "AT25F2048",
2078 .bustype = BUS_SPI,
2079 .manufacture_id = ATMEL_ID,
2080 .model_id = ATMEL_AT25F2048,
2081 .total_size = 256,
2082 .page_size = 256,
2083 .feature_bits = FEATURE_WRSR_WREN,
2084 .tested = TEST_UNTESTED,
2085 .probe = probe_spi_at25f,
2086 .probe_timing = TIMING_ZERO,
2087 .block_erasers =
2088 {
2089 {
2090 .eraseblocks = { {64 * 1024, 4} },
2091 .block_erase = spi_block_erase_52,
2092 }, {
2093 .eraseblocks = { {256 * 1024, 1} },
2094 .block_erase = spi_block_erase_62,
2095 }
2096 },
2097 .printlock = spi_prettyprint_status_register_at25f,
2098 .unlock = spi_disable_blockprotect_at25f,
2099 .write = spi_chip_write_256,
2100 .read = spi_chip_read,
2101 .voltage = {2700, 3600},
2102 },
2103
2104 {
2105 .vendor = "Atmel",
2106 .name = "AT25F4096",
2107 .bustype = BUS_SPI,
2108 .manufacture_id = ATMEL_ID,
2109 .model_id = ATMEL_AT25F4096,
2110 .total_size = 512,
2111 .page_size = 256,
2112 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00002113 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002114 .probe = probe_spi_at25f,
2115 .probe_timing = TIMING_ZERO,
2116 .block_erasers =
2117 {
2118 {
2119 .eraseblocks = { {64 * 1024, 8} },
2120 .block_erase = spi_block_erase_52,
2121 }, {
2122 .eraseblocks = { {512 * 1024, 1} },
2123 .block_erase = spi_block_erase_62,
2124 }
2125 },
2126 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002127 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2128 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002129 .write = spi_chip_write_256,
2130 .read = spi_chip_read,
2131 .voltage = {2700, 3600},
2132 },
2133
2134 {
2135 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002136 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002137 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002139 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 .total_size = 128,
2141 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002142 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002143 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002144 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002145 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002146 .block_erasers =
2147 {
2148 {
2149 .eraseblocks = { {4 * 1024, 32} },
2150 .block_erase = spi_block_erase_20,
2151 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002152 .eraseblocks = { {4 * 1024, 32} },
2153 .block_erase = spi_block_erase_d7,
2154 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002155 .eraseblocks = { {32 * 1024, 4} },
2156 .block_erase = spi_block_erase_52,
2157 }, {
2158 .eraseblocks = { {32 * 1024, 4} },
2159 .block_erase = spi_block_erase_d8,
2160 }, {
2161 .eraseblocks = { {128 * 1024, 1} },
2162 .block_erase = spi_block_erase_60,
2163 }, {
2164 .eraseblocks = { {128 * 1024, 1} },
2165 .block_erase = spi_block_erase_c7,
2166 }
2167 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002168 .printlock = spi_prettyprint_status_register_at25fs010,
2169 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002170 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002172 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002173 },
2174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 {
2176 .vendor = "Atmel",
2177 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002178 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002180 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .total_size = 512,
2182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002183 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .tested = TEST_UNTESTED,
2185 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002186 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002187 .block_erasers =
2188 {
2189 {
2190 .eraseblocks = { {4 * 1024, 128} },
2191 .block_erase = spi_block_erase_20,
2192 }, {
2193 .eraseblocks = { {64 * 1024, 8} },
2194 .block_erase = spi_block_erase_52,
2195 }, {
2196 .eraseblocks = { {64 * 1024, 8} },
2197 .block_erase = spi_block_erase_d8,
2198 }, {
2199 .eraseblocks = { {512 * 1024, 1} },
2200 .block_erase = spi_block_erase_60,
2201 }, {
2202 .eraseblocks = { {512 * 1024, 1} },
2203 .block_erase = spi_block_erase_c7,
2204 }
2205 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002206 .printlock = spi_prettyprint_status_register_at25fs040,
2207 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002208 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002210 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002211 },
2212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002213 {
2214 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002215 .name = "AT25SF041",
2216 .bustype = BUS_SPI,
2217 .manufacture_id = ATMEL_ID,
2218 .model_id = ATMEL_AT25SF041,
2219 .total_size = 512,
2220 .page_size = 256,
2221 .feature_bits = FEATURE_WRSR_WREN,
2222 .tested = TEST_OK_PREW,
2223 .probe = probe_spi_rdid,
2224 .probe_timing = TIMING_ZERO,
2225 .block_erasers =
2226 {
2227 {
2228 .eraseblocks = { {4 * 1024, 128} },
2229 .block_erase = spi_block_erase_20,
2230 }, {
2231 .eraseblocks = { {32 * 1024, 16} },
2232 .block_erase = spi_block_erase_52,
2233 }, {
2234 .eraseblocks = { {64 * 1024, 8} },
2235 .block_erase = spi_block_erase_d8,
2236 }, {
2237 .eraseblocks = { {512 * 1024, 1} },
2238 .block_erase = spi_block_erase_60,
2239 }, {
2240 .eraseblocks = { {512 * 1024, 1} },
2241 .block_erase = spi_block_erase_c7,
2242 }
2243 },
2244 .printlock = spi_prettyprint_status_register_plain,
2245 .unlock = spi_disable_blockprotect,
2246 .write = spi_chip_write_256,
2247 .read = spi_chip_read,
2248 .voltage = {2500, 3600},
2249 },
2250
2251 {
2252 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002253 .name = "AT25SF081",
2254 .bustype = BUS_SPI,
2255 .manufacture_id = ATMEL_ID,
2256 .model_id = ATMEL_AT25SF081,
2257 .total_size = 1024,
2258 .page_size = 256,
2259 .feature_bits = FEATURE_WRSR_WREN,
2260 .tested = TEST_OK_PREW,
2261 .probe = probe_spi_rdid,
2262 .probe_timing = TIMING_ZERO,
2263 .block_erasers =
2264 {
2265 {
2266 .eraseblocks = { {4 * 1024, 256} },
2267 .block_erase = spi_block_erase_20,
2268 }, {
2269 .eraseblocks = { {32 * 1024, 32} },
2270 .block_erase = spi_block_erase_52,
2271 }, {
2272 .eraseblocks = { {64 * 1024, 16} },
2273 .block_erase = spi_block_erase_d8,
2274 }, {
2275 .eraseblocks = { {1024 * 1024, 1} },
2276 .block_erase = spi_block_erase_60,
2277 }, {
2278 .eraseblocks = { {1024 * 1024, 1} },
2279 .block_erase = spi_block_erase_c7,
2280 }
2281 },
2282 .printlock = spi_prettyprint_status_register_plain,
2283 .unlock = spi_disable_blockprotect,
2284 .write = spi_chip_write_256,
2285 .read = spi_chip_read,
2286 .voltage = {2300, 3600},
2287 },
2288
2289 {
2290 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002291 .name = "AT25SF161",
2292 .bustype = BUS_SPI,
2293 .manufacture_id = ATMEL_ID,
2294 .model_id = ATMEL_AT25SF161,
2295 .total_size = 2048,
2296 .page_size = 256,
2297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2298 .tested = TEST_OK_PREW,
2299 .probe = probe_spi_rdid,
2300 .probe_timing = TIMING_ZERO,
2301 .block_erasers =
2302 {
2303 {
2304 .eraseblocks = { {4 * 1024, 512} },
2305 .block_erase = spi_block_erase_20,
2306 }, {
2307 .eraseblocks = { {32 * 1024, 64} },
2308 .block_erase = spi_block_erase_52,
2309 }, {
2310 .eraseblocks = { {64 * 1024, 32} },
2311 .block_erase = spi_block_erase_d8,
2312 }, {
2313 .eraseblocks = { {2048 * 1024, 1} },
2314 .block_erase = spi_block_erase_60,
2315 }, {
2316 .eraseblocks = { {2048 * 1024, 1} },
2317 .block_erase = spi_block_erase_c7,
2318 }
2319 },
2320 .printlock = spi_prettyprint_status_register_plain,
2321 .unlock = spi_disable_blockprotect,
2322 .write = spi_chip_write_256,
2323 .read = spi_chip_read,
2324 .voltage = {2500, 3600},
2325 },
2326
2327 {
Alan Green57938f82019-06-27 15:06:43 +10002328 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002329 .name = "AT25SL128A",
2330 .bustype = BUS_SPI,
2331 .manufacture_id = ATMEL_ID,
2332 .model_id = ATMEL_AT25SL128A,
2333 .total_size = 16384,
2334 .page_size = 256,
2335 /* supports SFDP */
2336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2337 .tested = TEST_OK_PREW,
2338 .probe = probe_spi_rdid,
2339 .probe_timing = TIMING_ZERO,
2340 .block_erasers =
2341 {
2342 {
2343 .eraseblocks = { {4 * 1024, 4096} },
2344 .block_erase = spi_block_erase_20,
2345 }, {
2346 .eraseblocks = { {32 * 1024, 512} },
2347 .block_erase = spi_block_erase_52,
2348 }, {
2349 .eraseblocks = { {64 * 1024, 256} },
2350 .block_erase = spi_block_erase_d8,
2351 }, {
2352 .eraseblocks = { {16 * 1024 * 1024, 1} },
2353 .block_erase = spi_block_erase_60,
2354 }, {
2355 .eraseblocks = { {16 * 1024 * 1024, 1} },
2356 .block_erase = spi_block_erase_c7,
2357 }
2358 },
2359 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2360 .unlock = spi_disable_blockprotect,
2361 .write = spi_chip_write_256,
2362 .read = spi_chip_read,
2363 .voltage = {1700, 2000},
2364 },
2365
2366 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002367 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002369 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002370 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002371 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002372 .total_size = 512,
2373 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002374 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002375 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002376 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002377 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002378 .block_erasers =
2379 {
2380 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002381 .eraseblocks = { {256, 2048} },
2382 .block_erase = spi_block_erase_81,
2383 }, {
2384 .eraseblocks = { {2 * 1024, 256} },
2385 .block_erase = spi_block_erase_50,
2386 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002387 .eraseblocks = { {4 * 1024, 128} },
2388 .block_erase = spi_block_erase_20,
2389 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002390 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002391 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002392 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002393 .write = spi_chip_write_1,
2394 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002395 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002396 },
2397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002398 {
2399 .vendor = "Atmel",
2400 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002401 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002402 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002403 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002404 .total_size = 1024,
2405 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002406 .feature_bits = FEATURE_WRSR_WREN,
2407 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002409 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002410 .block_erasers =
2411 {
2412 {
2413 .eraseblocks = { {4 * 1024, 256} },
2414 .block_erase = spi_block_erase_20,
2415 }, {
2416 .eraseblocks = { {32 * 1024, 32} },
2417 .block_erase = spi_block_erase_52,
2418 }, {
2419 .eraseblocks = { {64 * 1024, 16} },
2420 .block_erase = spi_block_erase_d8,
2421 }, {
2422 .eraseblocks = { {1024 * 1024, 1} },
2423 .block_erase = spi_block_erase_60,
2424 }, {
2425 .eraseblocks = { {1024 * 1024, 1} },
2426 .block_erase = spi_block_erase_c7,
2427 }
2428 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002429 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002430 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002431 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002432 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002433 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002434 },
2435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002436 {
2437 .vendor = "Atmel",
2438 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002439 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002440 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002441 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002442 .total_size = 2048,
2443 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002444 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002445 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002446 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002447 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002448 .block_erasers =
2449 {
2450 {
2451 .eraseblocks = { {4 * 1024, 512} },
2452 .block_erase = spi_block_erase_20,
2453 }, {
2454 .eraseblocks = { {32 * 1024, 64} },
2455 .block_erase = spi_block_erase_52,
2456 }, {
2457 .eraseblocks = { {64 * 1024, 32} },
2458 .block_erase = spi_block_erase_d8,
2459 }, {
2460 .eraseblocks = { {2 * 1024 * 1024, 1} },
2461 .block_erase = spi_block_erase_60,
2462 }, {
2463 .eraseblocks = { {2 * 1024 * 1024, 1} },
2464 .block_erase = spi_block_erase_c7,
2465 }
2466 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002467 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002468 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002469 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002470 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002471 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002472 },
2473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002474 {
2475 .vendor = "Atmel",
2476 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002477 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002478 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002479 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002480 .total_size = 2048,
2481 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002482 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002483 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002484 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002485 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002486 .block_erasers =
2487 {
2488 {
2489 .eraseblocks = { {4 * 1024, 512} },
2490 .block_erase = spi_block_erase_20,
2491 }, {
2492 .eraseblocks = { {32 * 1024, 64} },
2493 .block_erase = spi_block_erase_52,
2494 }, {
2495 .eraseblocks = { {64 * 1024, 32} },
2496 .block_erase = spi_block_erase_d8,
2497 }, {
2498 .eraseblocks = { {2 * 1024 * 1024, 1} },
2499 .block_erase = spi_block_erase_60,
2500 }, {
2501 .eraseblocks = { {2 * 1024 * 1024, 1} },
2502 .block_erase = spi_block_erase_c7,
2503 }
2504 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002505 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002506 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002507 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002508 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002509 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002510 },
2511
2512 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 /*{
2514 .vendor = "Atmel",
2515 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002516 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002518 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002519 .total_size = 4096,
2520 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002521 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002522 .tested = TEST_UNTESTED,
2523 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002525 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002526 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002527 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002528 .read = spi_chip_read,
2529 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002530
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002531 {
2532 .vendor = "Atmel",
2533 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002534 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002535 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002536 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002537 .total_size = 512,
2538 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002539 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002540 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002541 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002542 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002543 .block_erasers =
2544 {
2545 {
2546 .eraseblocks = { {4 * 1024, 128} },
2547 .block_erase = spi_block_erase_20,
2548 }, {
2549 .eraseblocks = { {32 * 1024, 16} },
2550 .block_erase = spi_block_erase_52,
2551 }, {
2552 .eraseblocks = { {64 * 1024, 8} },
2553 .block_erase = spi_block_erase_d8,
2554 }, {
2555 .eraseblocks = { {512 * 1024, 1} },
2556 .block_erase = spi_block_erase_60,
2557 }, {
2558 .eraseblocks = { {512 * 1024, 1} },
2559 .block_erase = spi_block_erase_c7,
2560 }
2561 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002563 .write = NULL /* Incompatible Page write */,
2564 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002565 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002566 },
2567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002568 {
2569 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002570 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002571 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002572 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002573 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002574 .total_size = 64,
2575 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002576 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002577 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002578 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002579 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002580 .block_erasers =
2581 {
2582 {
2583 .eraseblocks = { {64 * 1024, 1} },
2584 .block_erase = erase_chip_block_jedec,
2585 }
2586 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002587 .write = write_jedec,
2588 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002590 },
2591
2592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
2666 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002667 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002668 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002669 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002670 .total_size = 16896 /* No power of two sizes */,
2671 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002672 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002673 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2674 .feature_bits = FEATURE_OTP,
2675 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002676 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002677 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002678 .block_erasers =
2679 {
2680 {
2681 .eraseblocks = {
2682 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2683 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2684 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2685 },
2686 .block_erase = spi_erase_at45cs_sector,
2687 }
2688 },
2689 .printlock = spi_prettyprint_status_register_plain,
2690 .gran = write_gran_1056bytes,
2691 .write = spi_write_at45db,
2692 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002693 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002694 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002696 {
2697 .vendor = "Atmel",
2698 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002699 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002701 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002702 .total_size = 128 /* or 132, determined from status register */,
2703 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002704 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002705 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2706 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002707 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002708 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002709 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002710 .block_erasers =
2711 {
2712 {
2713 .eraseblocks = { {256, 512} },
2714 .block_erase = spi_erase_at45db_page,
2715 }, {
2716 .eraseblocks = { {8 * 256, 512/8} },
2717 .block_erase = spi_erase_at45db_block,
2718 }, {
2719 .eraseblocks = {
2720 {8 * 256, 1},
2721 {120 * 256, 1},
2722 {128 * 256, 3},
2723 },
2724 .block_erase = spi_erase_at45db_sector
2725 }, {
2726 .eraseblocks = { {128 * 1024, 1} },
2727 .block_erase = spi_erase_at45db_chip,
2728 }
2729 },
2730 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2731 .printlock = spi_prettyprint_status_register_at45db,
2732 /* granularity will be set by the probing function. */
2733 .write = spi_write_at45db,
2734 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002735 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002736 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002738 {
2739 .vendor = "Atmel",
2740 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002741 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002742 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002743 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002744 .total_size = 256 /* or 264, determined from status register */,
2745 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002746 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002747 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2748 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002749 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002750 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002751 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002752 .block_erasers =
2753 {
2754 {
2755 .eraseblocks = { {256, 1024} },
2756 .block_erase = spi_erase_at45db_page,
2757 }, {
2758 .eraseblocks = { {8 * 256, 1024/8} },
2759 .block_erase = spi_erase_at45db_block,
2760 }, {
2761 .eraseblocks = {
2762 {8 * 256, 1},
2763 {120 * 256, 1},
2764 {128 * 256, 7},
2765 },
2766 .block_erase = spi_erase_at45db_sector
2767 }, {
2768 .eraseblocks = { {256 * 1024, 1} },
2769 .block_erase = spi_erase_at45db_chip,
2770 }
2771 },
2772 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2773 .printlock = spi_prettyprint_status_register_at45db,
2774 /* granularity will be set by the probing function. */
2775 .write = spi_write_at45db,
2776 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002777 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002778 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002779
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002780 {
2781 .vendor = "Atmel",
2782 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002783 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002784 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002785 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002786 .total_size = 512 /* or 528, determined from status register */,
2787 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002788 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002789 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2790 .feature_bits = FEATURE_OTP,
2791 .tested = TEST_OK_PREW,
2792 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002793 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002794 .block_erasers =
2795 {
2796 {
2797 .eraseblocks = { {256, 2048} },
2798 .block_erase = spi_erase_at45db_page,
2799 }, {
2800 .eraseblocks = { {8 * 256, 2048/8} },
2801 .block_erase = spi_erase_at45db_block,
2802 }, {
2803 .eraseblocks = {
2804 {8 * 256, 1},
2805 {248 * 256, 1},
2806 {256 * 256, 7},
2807 },
2808 .block_erase = spi_erase_at45db_sector
2809 }, {
2810 .eraseblocks = { {512 * 1024, 1} },
2811 .block_erase = spi_erase_at45db_chip,
2812 }
2813 },
2814 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2815 .printlock = spi_prettyprint_status_register_at45db,
2816 /* granularity will be set by the probing function. */
2817 .write = spi_write_at45db,
2818 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2819 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002820 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002822 {
2823 .vendor = "Atmel",
2824 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002825 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002826 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002827 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002828 .total_size = 1024 /* or 1056, determined from status register */,
2829 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002830 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002831 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2832 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002833 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002834 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002835 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002836 .block_erasers =
2837 {
2838 {
2839 .eraseblocks = { {256, 4096} },
2840 .block_erase = spi_erase_at45db_page,
2841 }, {
2842 .eraseblocks = { {8 * 256, 4096/8} },
2843 .block_erase = spi_erase_at45db_block,
2844 }, {
2845 .eraseblocks = {
2846 {8 * 256, 1},
2847 {248 * 256, 1},
2848 {256 * 256, 15},
2849 },
2850 .block_erase = spi_erase_at45db_sector
2851 }, {
2852 .eraseblocks = { {1024 * 1024, 1} },
2853 .block_erase = spi_erase_at45db_chip,
2854 }
2855 },
2856 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2857 .printlock = spi_prettyprint_status_register_at45db,
2858 /* granularity will be set by the probing function. */
2859 .write = spi_write_at45db,
2860 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002861 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002862 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002864 {
2865 .vendor = "Atmel",
2866 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002867 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002869 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002870 .total_size = 2048 /* or 2112, determined from status register */,
2871 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002872 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002873 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2874 .feature_bits = FEATURE_OTP,
2875 .tested = TEST_OK_PREW,
2876 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002877 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002878 .block_erasers =
2879 {
2880 {
2881 .eraseblocks = { {512, 4096} },
2882 .block_erase = spi_erase_at45db_page,
2883 }, {
2884 .eraseblocks = { {8 * 512, 4096/8} },
2885 .block_erase = spi_erase_at45db_block,
2886 }, {
2887 .eraseblocks = {
2888 {8 * 512, 1},
2889 {248 * 512, 1},
2890 {256 * 512, 15},
2891 },
2892 .block_erase = spi_erase_at45db_sector
2893 }, {
2894 .eraseblocks = { {2048 * 1024, 1} },
2895 .block_erase = spi_erase_at45db_chip,
2896 }
2897 },
2898 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2899 .printlock = spi_prettyprint_status_register_at45db,
2900 /* granularity will be set by the probing function. */
2901 .write = spi_write_at45db,
2902 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002903 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002904 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002905
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002906 {
2907 .vendor = "Atmel",
2908 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002909 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002910 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002911 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002912 .total_size = 4224 /* No power of two sizes */,
2913 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002914 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002915 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2916 .feature_bits = FEATURE_OTP,
2917 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002918 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002919 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002920 .block_erasers =
2921 {
2922 {
2923 .eraseblocks = { {528, 8192} },
2924 .block_erase = spi_erase_at45db_page,
2925 }, {
2926 .eraseblocks = { {8 * 528, 8192/8} },
2927 .block_erase = spi_erase_at45db_block,
2928 }, /* Although the datasheets describes sectors (which can be write protected)
2929 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002930 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002931 .eraseblocks = {
2932 {8 * 528, 1},
2933 {120 * 528, 1},
2934 {128 * 528, 63},
2935 },
2936 .block_erase = spi_erase_at45db_sector
2937 }, */ {
2938 .eraseblocks = { {4224 * 1024, 1} },
2939 .block_erase = spi_erase_at45db_chip,
2940 }
2941 },
2942 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2943 .gran = write_gran_528bytes,
2944 .write = spi_write_at45db,
2945 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002946 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002947 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002949 {
2950 .vendor = "Atmel",
2951 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002952 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002953 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002954 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002955 .total_size = 4096 /* or 4224, determined from status register */,
2956 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002957 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002958 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002959 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002960 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002961 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002962 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002963 .block_erasers =
2964 {
2965 {
2966 .eraseblocks = { {512, 8192} },
2967 .block_erase = spi_erase_at45db_page,
2968 }, {
2969 .eraseblocks = { {8 * 512, 8192/8} },
2970 .block_erase = spi_erase_at45db_block,
2971 }, {
2972 .eraseblocks = {
2973 {8 * 512, 1},
2974 {120 * 512, 1},
2975 {128 * 512, 63},
2976 },
2977 .block_erase = spi_erase_at45db_sector
2978 }, {
2979 .eraseblocks = { {4096 * 1024, 1} },
2980 .block_erase = spi_erase_at45db_chip,
2981 }
2982 },
2983 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2984 .printlock = spi_prettyprint_status_register_at45db,
2985 /* granularity will be set by the probing function. */
2986 .write = spi_write_at45db,
2987 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2988 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2989 },
2990
2991 {
2992 .vendor = "Atmel",
2993 .name = "AT45DB321E",
2994 .bustype = BUS_SPI,
2995 .manufacture_id = ATMEL_ID,
2996 .model_id = ATMEL_AT45DB321C,
2997 .total_size = 4096 /* or 4224, determined from status register */,
2998 .page_size = 512 /* or 528, determined from status register */,
2999 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3000 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3001 .feature_bits = FEATURE_OTP,
3002 .tested = TEST_UNTESTED,
3003 .probe = probe_spi_at45db,
3004 .probe_timing = TIMING_ZERO,
3005 .block_erasers =
3006 {
3007 {
3008 .eraseblocks = { {512, 8192} },
3009 .block_erase = spi_erase_at45db_page,
3010 }, {
3011 .eraseblocks = { {8 * 512, 8192/8} },
3012 .block_erase = spi_erase_at45db_block,
3013 }, {
3014 .eraseblocks = {
3015 {8 * 512, 1},
3016 {120 * 512, 1},
3017 {128 * 512, 63},
3018 },
3019 .block_erase = spi_erase_at45db_sector
3020 }, {
3021 .eraseblocks = { {4096 * 1024, 1} },
3022 .block_erase = spi_erase_at45db_chip,
3023 }
3024 },
3025 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
3026 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
3027 /* granularity will be set by the probing function. */
3028 .write = spi_write_at45db,
3029 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3030 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003031 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003033 {
3034 .vendor = "Atmel",
3035 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003036 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003037 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003038 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003039 .total_size = 8192 /* or 8448, determined from status register */,
3040 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00003041 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003042 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3043 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003044 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003045 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003046 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003047 .block_erasers =
3048 {
3049 {
3050 .eraseblocks = { {1024, 8192} },
3051 .block_erase = spi_erase_at45db_page,
3052 }, {
3053 .eraseblocks = { {8 * 1024, 8192/8} },
3054 .block_erase = spi_erase_at45db_block,
3055 }, {
3056 .eraseblocks = {
3057 {8 * 1024, 1},
3058 {248 * 1024, 1},
3059 {256 * 1024, 31},
3060 },
3061 .block_erase = spi_erase_at45db_sector
3062 }, {
3063 .eraseblocks = { {8192 * 1024, 1} },
3064 .block_erase = spi_erase_at45db_chip,
3065 }
3066 },
3067 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
3068 .printlock = spi_prettyprint_status_register_at45db,
3069 /* granularity will be set by the probing function. */
3070 .write = spi_write_at45db,
3071 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003072 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003073 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003075 {
3076 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003077 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003078 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003079 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003080 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003081 .total_size = 64,
3082 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003083 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003084 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003085 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003086 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003087 .block_erasers =
3088 {
3089 {
3090 .eraseblocks = { {64 * 1024, 1} },
3091 .block_erase = erase_chip_block_jedec,
3092 }
3093 },
Sean Nelson35727f72010-01-28 23:55:12 +00003094 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003097 },
3098
3099 {
3100 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003101 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003102 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003104 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003105 .total_size = 256,
3106 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003107 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003108 .tested = TEST_UNTESTED,
3109 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = {
3115 {16 * 1024, 1},
3116 {8 * 1024, 2},
3117 {96 * 1024, 1},
3118 {128 * 1024, 1},
3119 },
3120 .block_erase = erase_sector_jedec,
3121 }, {
3122 .eraseblocks = { {256 * 1024, 1} },
3123 .block_erase = erase_chip_block_jedec,
3124 }
3125 },
Sean Nelson35727f72010-01-28 23:55:12 +00003126 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003127 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003128 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003129 },
3130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003131 {
3132 .vendor = "Atmel",
3133 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003134 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003135 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003136 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003137 .total_size = 256,
3138 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003139 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003140 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003141 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003143 .block_erasers =
3144 {
3145 {
3146 .eraseblocks = {
3147 {128 * 1024, 1},
3148 {96 * 1024, 1},
3149 {8 * 1024, 2},
3150 {16 * 1024, 1},
3151 },
3152 .block_erase = erase_sector_jedec,
3153 }, {
3154 .eraseblocks = { {256 * 1024, 1} },
3155 .block_erase = erase_chip_block_jedec,
3156 }
3157 },
Sean Nelson35727f72010-01-28 23:55:12 +00003158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003161 },
3162
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003163 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003164 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003165 .name = "AT49(H)F010",
3166 .bustype = BUS_PARALLEL,
3167 .manufacture_id = ATMEL_ID,
3168 .model_id = ATMEL_AT49F010,
3169 .total_size = 128,
3170 .page_size = 0, /* unused */
3171 .feature_bits = FEATURE_EITHER_RESET,
3172 .tested = TEST_OK_PREW,
3173 .probe = probe_jedec,
3174 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = { {128 * 1024, 1} },
3179 .block_erase = erase_chip_block_jedec,
3180 }
3181 },
3182 .printlock = printlock_at49f,
Elyes HAOUAS124ef382018-03-27 12:15:09 +02003183 .write = write_jedec_1,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003184 .read = read_memmapped,
3185 .voltage = {4500, 5500},
3186 },
3187
3188 {
3189 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003190 .name = "AT49F020",
3191 .bustype = BUS_PARALLEL,
3192 .manufacture_id = ATMEL_ID,
3193 .model_id = ATMEL_AT49F020,
3194 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003195 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003196 .feature_bits = FEATURE_EITHER_RESET,
3197 .tested = TEST_OK_PRE,
3198 .probe = probe_jedec,
3199 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3200 .block_erasers =
3201 {
3202 {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 /* Chip features an optional permanent write protection
3207 * of the first 8 kB. The erase function is the same as
3208 * above, but 00000H to 01FFFH will not be erased.
3209 * FIXME: add another eraser when partial erasers are
3210 * supported.
3211 */
3212 },
3213 .printlock = printlock_at49f,
3214 .write = write_jedec_1,
3215 .read = read_memmapped,
3216 .voltage = {4500, 5500},
3217 },
3218
3219 {
3220 .vendor = "Atmel",
3221 .name = "AT49F040",
3222 .bustype = BUS_PARALLEL,
3223 .manufacture_id = ATMEL_ID,
3224 .model_id = ATMEL_AT49F040,
3225 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003226 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003227 .feature_bits = FEATURE_EITHER_RESET,
3228 .tested = TEST_UNTESTED,
3229 .probe = probe_jedec,
3230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3231 .block_erasers =
3232 {
3233 {
3234 .eraseblocks = { {512 * 1024, 1} },
3235 .block_erase = erase_chip_block_jedec,
3236 }
3237 /* Chip features an optional permanent write protection
3238 * of the first 16 kB. The erase function is the same as
3239 * above, but 00000H to 03FFFH will not be erased.
3240 * FIXME: add another eraser when partial erasers are
3241 * supported.
3242 */
3243 },
3244 .printlock = printlock_at49f,
3245 .write = write_jedec_1,
3246 .read = read_memmapped,
3247 .voltage = {4500, 5500},
3248 },
3249
3250 {
3251 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003252 .name = "AT49F080",
3253 .bustype = BUS_PARALLEL,
3254 .manufacture_id = ATMEL_ID,
3255 .model_id = ATMEL_AT49F080,
3256 .total_size = 1024,
3257 .page_size = 0, /* unused */
3258 .feature_bits = FEATURE_EITHER_RESET,
3259 .tested = TEST_UNTESTED,
3260 .probe = probe_jedec,
3261 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3262 .block_erasers =
3263 {
3264 {
3265 .eraseblocks = { {1024 * 1024, 1} },
3266 .block_erase = erase_chip_block_jedec,
3267 }
3268 /* Chip features an optional permanent write protection
3269 * of the first 16 kB. The erase function is the same as
3270 * above, but 00000H to 03FFFH will not be erased.
3271 * FIXME: add another eraser when partial erasers are
3272 * supported.
3273 */
3274 },
3275 .printlock = printlock_at49f,
3276 .write = write_jedec_1,
3277 .read = read_memmapped,
3278 .voltage = {4500, 5500},
3279 },
3280
3281 {
3282 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3283 .vendor = "Atmel",
3284 .name = "AT49F080T",
3285 .bustype = BUS_PARALLEL,
3286 .manufacture_id = ATMEL_ID,
3287 .model_id = ATMEL_AT49F080T,
3288 .total_size = 1024,
3289 .page_size = 0, /* unused */
3290 .feature_bits = FEATURE_EITHER_RESET,
3291 .tested = TEST_UNTESTED,
3292 .probe = probe_jedec,
3293 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3294 .block_erasers =
3295 {
3296 {
3297 .eraseblocks = { {1024 * 1024, 1} },
3298 .block_erase = erase_chip_block_jedec,
3299 }
3300 /* Chip features an optional permanent write protection
3301 * of the first 16 kB. The erase function is the same as
3302 * above, but FC000H to FFFFFH will not be erased.
3303 * FIXME: add another eraser when partial erasers are
3304 * supported.
3305 */
3306 },
3307 .printlock = printlock_at49f,
3308 .write = write_jedec_1,
3309 .read = read_memmapped,
3310 .voltage = {4500, 5500},
3311 },
3312
3313 {
3314 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003315 .name = "AT49LH002",
3316 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3317 .manufacture_id = ATMEL_ID,
3318 .model_id = ATMEL_AT49LH002,
3319 .total_size = 256,
3320 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003321 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003322 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003323 .probe = probe_82802ab,
3324 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003325 .block_erasers =
3326 {
3327 {
3328 .eraseblocks = {
3329 {64 * 1024, 3},
3330 {32 * 1024, 1},
3331 {8 * 1024, 2},
3332 {16 * 1024, 1},
3333 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003334 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003335 }, {
3336 .eraseblocks = {
3337 {64 * 1024, 4},
3338 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003339 .block_erase = erase_block_82802ab,
3340 },
3341 },
3342 .printlock = printlock_regspace2_block_eraser_0,
3343 .unlock = unlock_regspace2_block_eraser_0,
3344 .write = write_82802ab,
3345 .read = read_memmapped,
3346 .voltage = {3000, 3600},
3347 },
3348
3349 {
3350 .vendor = "Atmel",
3351 .name = "AT49LH00B4",
3352 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3353 .manufacture_id = ATMEL_ID,
3354 .model_id = ATMEL_AT49LH00B4,
3355 .total_size = 512,
3356 .page_size = 0, /* unused */
3357 .feature_bits = FEATURE_REGISTERMAP,
3358 .tested = TEST_UNTESTED,
3359 .probe = probe_82802ab,
3360 .probe_timing = TIMING_ZERO,
3361 .block_erasers =
3362 {
3363 {
3364 .eraseblocks = {
3365 {8 * 1024, 2},
3366 {16 * 1024, 1},
3367 {32 * 1024, 1},
3368 {64 * 1024, 7},
3369 },
3370 .block_erase = NULL, /* TODO: Implement. */
3371 }, {
3372 .eraseblocks = {
3373 {64 * 1024, 8},
3374 },
3375 .block_erase = erase_block_82802ab,
3376 },
3377 },
3378 .printlock = printlock_regspace2_block_eraser_0,
3379 .unlock = unlock_regspace2_block_eraser_0,
3380 .write = write_82802ab,
3381 .read = read_memmapped,
3382 .voltage = {3000, 3600},
3383 },
3384
3385 {
3386 .vendor = "Atmel",
3387 .name = "AT49LH004",
3388 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3389 .manufacture_id = ATMEL_ID,
3390 .model_id = ATMEL_AT49LH004,
3391 .total_size = 512,
3392 .page_size = 0, /* unused */
3393 .feature_bits = FEATURE_REGISTERMAP,
3394 .tested = TEST_UNTESTED,
3395 .probe = probe_82802ab,
3396 .probe_timing = TIMING_ZERO,
3397 .block_erasers =
3398 {
3399 {
3400 .eraseblocks = {
3401 {64 * 1024, 7},
3402 {32 * 1024, 1},
3403 {8 * 1024, 2},
3404 {16 * 1024, 1},
3405 },
3406 .block_erase = erase_block_82802ab,
3407 }, {
3408 .eraseblocks = {
3409 {64 * 1024, 8},
3410 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003411 .block_erase = NULL, /* TODO: Implement. */
3412 },
3413 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003414 .printlock = printlock_regspace2_block_eraser_0,
3415 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003416 .write = write_82802ab,
3417 .read = read_memmapped,
3418 .voltage = {3000, 3600},
3419 },
3420
3421 {
Andrew Morganca081462011-09-13 22:05:44 +00003422 .vendor = "Catalyst",
3423 .name = "CAT28F512",
3424 .bustype = BUS_PARALLEL,
3425 .manufacture_id = CATALYST_ID,
3426 .model_id = CATALYST_CAT28F512,
3427 .total_size = 64,
3428 .page_size = 0, /* unused */
3429 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003430 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003431 .probe = probe_jedec, /* FIXME! */
3432 .probe_timing = TIMING_ZERO,
3433 .block_erasers =
3434 {
3435 {
3436 .eraseblocks = { {64 * 1024, 1} },
3437 .block_erase = NULL, /* TODO */
3438 },
3439 },
3440 .write = NULL, /* TODO */
3441 .read = read_memmapped,
3442 .voltage = {4500, 5500},
3443 },
3444
3445 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003446 .vendor = "Bright",
3447 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003448 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003449 .manufacture_id = BRIGHT_ID,
3450 .model_id = BRIGHT_BM29F040,
3451 .total_size = 512,
3452 .page_size = 64 * 1024,
3453 .feature_bits = FEATURE_EITHER_RESET,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_jedec,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {64 * 1024, 8} },
3461 .block_erase = erase_sector_jedec,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = erase_chip_block_jedec,
3465 },
3466 },
3467 .write = write_jedec_1,
3468 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003469 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003470 },
3471
3472 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003473 .vendor = "ENE",
3474 .name = "KB9012 (EDI)",
3475 .bustype = BUS_SPI,
3476 .spi_cmd_set = SPI_EDI,
3477 .total_size = 128,
3478 .page_size = 128,
3479 .feature_bits = FEATURE_ERASED_ZERO,
3480 .tested = TEST_OK_PREW,
3481 .probe = edi_probe_kb9012,
3482 .probe_timing = TIMING_ZERO,
3483 .block_erasers =
3484 {
3485 {
3486 .eraseblocks = { {128, 1024} },
3487 .block_erase = edi_chip_block_erase,
3488 },
3489 },
3490 .gran = write_gran_128bytes,
3491 .write = edi_chip_write,
3492 .read = edi_chip_read,
3493 .voltage = {2700, 3600},
3494 },
3495
3496 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003497 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003498 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003499 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003500 .manufacture_id = ESMT_ID,
3501 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003502 .total_size = 256,
3503 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003504 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003505 .tested = TEST_UNTESTED,
3506 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003507 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003508 .block_erasers =
3509 {
3510 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003511 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003512 {128 * 1024, 1},
3513 {96 * 1024, 1},
3514 {8 * 1024, 2},
3515 {16 * 1024, 1},
3516 },
3517 .block_erase = erase_sector_jedec,
3518 }, {
3519 .eraseblocks = { {256 * 1024, 1} },
3520 .block_erase = erase_chip_block_jedec,
3521 }
3522 },
Sean Nelson35727f72010-01-28 23:55:12 +00003523 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003524 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003525 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003526 },
3527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003528 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003529 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003530 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003531 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003532 .manufacture_id = ESMT_ID,
3533 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003534 .total_size = 1024,
3535 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003536 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003537 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003538 .probe = probe_spi_rdid,
3539 .probe_timing = TIMING_ZERO,
3540 .block_erasers =
3541 {
3542 {
3543 .eraseblocks = { {4 * 1024, 256} },
3544 .block_erase = spi_block_erase_20,
3545 }, {
3546 .eraseblocks = { {64 * 1024, 16} },
3547 .block_erase = spi_block_erase_d8,
3548 }, {
3549 .eraseblocks = { {1024 * 1024, 1} },
3550 .block_erase = spi_block_erase_60,
3551 }, {
3552 .eraseblocks = { {1024 * 1024, 1} },
3553 .block_erase = spi_block_erase_c7,
3554 }
3555 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003557 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003558 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003560 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003561 },
3562
3563 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003564 .vendor = "ESMT",
3565 .name = "F25L32PA",
3566 .bustype = BUS_SPI,
3567 .manufacture_id = ESMT_ID,
3568 .model_id = ESMT_F25L32PA,
3569 .total_size = 4096,
3570 .page_size = 256,
3571 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3572 .tested = TEST_UNTESTED,
3573 .probe = probe_spi_rdid,
3574 .probe_timing = TIMING_ZERO,
3575 .block_erasers =
3576 {
3577 {
3578 .eraseblocks = { {4 * 1024, 1024} },
3579 .block_erase = spi_block_erase_20,
3580 }, {
3581 .eraseblocks = { {64 * 1024, 64} },
3582 .block_erase = spi_block_erase_d8,
3583 }, {
3584 .eraseblocks = { {4 * 1024 * 1024, 1} },
3585 .block_erase = spi_block_erase_60,
3586 }, {
3587 .eraseblocks = { {4 * 1024 * 1024, 1} },
3588 .block_erase = spi_block_erase_c7,
3589 }
3590 },
3591 .printlock = spi_prettyprint_status_register_bp2_bpl,
3592 .unlock = spi_disable_blockprotect,
3593 .write = spi_chip_write_256,
3594 .read = spi_chip_read,
3595 .voltage = {2700, 3600},
3596 },
3597
3598 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003599 .vendor = "Eon",
3600 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003601 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003602 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003603 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003604 .total_size = 64,
3605 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003606 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003607 .tested = TEST_UNTESTED,
3608 .probe = probe_spi_rdid,
3609 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003610 .block_erasers =
3611 {
3612 {
3613 .eraseblocks = {
3614 {4 * 1024, 2},
3615 {8 * 1024, 1},
3616 {16 * 1024, 1},
3617 {32 * 1024, 1},
3618 },
3619 .block_erase = spi_block_erase_d8,
3620 }, {
3621 .eraseblocks = { {64 * 1024, 1} },
3622 .block_erase = spi_block_erase_c7,
3623 }
3624 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003625 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003626 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003627 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003628 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003629 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003630 },
3631
3632 {
3633 .vendor = "Eon",
3634 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003635 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003636 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003637 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003638 .total_size = 64,
3639 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003640 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003641 .tested = TEST_UNTESTED,
3642 .probe = probe_spi_rdid,
3643 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003644 .block_erasers =
3645 {
3646 {
3647 .eraseblocks = {
3648 {32 * 1024, 1},
3649 {16 * 1024, 1},
3650 {8 * 1024, 1},
3651 {4 * 1024, 2},
3652 },
3653 .block_erase = spi_block_erase_d8,
3654 }, {
3655 .eraseblocks = { {64 * 1024, 1} },
3656 .block_erase = spi_block_erase_c7,
3657 }
3658 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003659 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003660 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003661 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003662 .read = spi_chip_read, /* Fast read (0x0B) supported */
3663 .voltage = {2700, 3600},
3664 },
3665
3666 {
3667 .vendor = "Eon",
3668 .name = "EN25P05",
3669 .bustype = BUS_SPI,
3670 .manufacture_id = EON_ID_NOPREFIX,
3671 .model_id = EON_EN25B05,
3672 .total_size = 64,
3673 .page_size = 256,
3674 .feature_bits = FEATURE_WRSR_WREN,
3675 .tested = TEST_UNTESTED,
3676 .probe = probe_spi_rdid,
3677 .probe_timing = TIMING_ZERO,
3678 .block_erasers =
3679 {
3680 {
3681 .eraseblocks = {
3682 {32 * 1024, 2} },
3683 .block_erase = spi_block_erase_d8,
3684 }, {
3685 .eraseblocks = { {64 * 1024, 1} },
3686 .block_erase = spi_block_erase_c7,
3687 }
3688 },
3689 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3690 .unlock = spi_disable_blockprotect,
3691 .write = spi_chip_write_256,
3692 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003693 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003694 },
3695
3696 {
3697 .vendor = "Eon",
3698 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003699 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003700 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003701 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003702 .total_size = 128,
3703 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003704 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003705 .tested = TEST_UNTESTED,
3706 .probe = probe_spi_rdid,
3707 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003708 .block_erasers =
3709 {
3710 {
3711 .eraseblocks = {
3712 {4 * 1024, 2},
3713 {8 * 1024, 1},
3714 {16 * 1024, 1},
3715 {32 * 1024, 3},
3716 },
3717 .block_erase = spi_block_erase_d8,
3718 }, {
3719 .eraseblocks = { {128 * 1024, 1} },
3720 .block_erase = spi_block_erase_c7,
3721 }
3722 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003723 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003724 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003725 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003726 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003727 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003728 },
3729
3730 {
3731 .vendor = "Eon",
3732 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003733 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003734 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003735 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003736 .total_size = 128,
3737 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003738 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003739 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003740 .probe = probe_spi_rdid,
3741 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003742 .block_erasers =
3743 {
3744 {
3745 .eraseblocks = {
3746 {32 * 1024, 3},
3747 {16 * 1024, 1},
3748 {8 * 1024, 1},
3749 {4 * 1024, 2},
3750 },
3751 .block_erase = spi_block_erase_d8,
3752 }, {
3753 .eraseblocks = { {128 * 1024, 1} },
3754 .block_erase = spi_block_erase_c7,
3755 }
3756 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003757 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003758 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003759 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003760 .read = spi_chip_read, /* Fast read (0x0B) supported */
3761 .voltage = {2700, 3600},
3762 },
3763
3764 {
3765 .vendor = "Eon",
3766 .name = "EN25P10",
3767 .bustype = BUS_SPI,
3768 .manufacture_id = EON_ID_NOPREFIX,
3769 .model_id = EON_EN25B10,
3770 .total_size = 128,
3771 .page_size = 256,
3772 .feature_bits = FEATURE_WRSR_WREN,
3773 .tested = TEST_UNTESTED,
3774 .probe = probe_spi_rdid,
3775 .probe_timing = TIMING_ZERO,
3776 .block_erasers =
3777 {
3778 {
3779 .eraseblocks = { {32 * 1024, 4} },
3780 .block_erase = spi_block_erase_d8,
3781 }, {
3782 .eraseblocks = { {128 * 1024, 1} },
3783 .block_erase = spi_block_erase_c7,
3784 }
3785 },
3786 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3787 .unlock = spi_disable_blockprotect,
3788 .write = spi_chip_write_256,
3789 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003790 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003791 },
3792
3793 {
3794 .vendor = "Eon",
3795 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003796 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003797 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003798 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003799 .total_size = 256,
3800 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003801 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003802 .tested = TEST_UNTESTED,
3803 .probe = probe_spi_rdid,
3804 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003805 .block_erasers =
3806 {
3807 {
3808 .eraseblocks = {
3809 {4 * 1024, 2},
3810 {8 * 1024, 1},
3811 {16 * 1024, 1},
3812 {32 * 1024, 1},
3813 {64 * 1024, 3}
3814 },
3815 .block_erase = spi_block_erase_d8,
3816 }, {
3817 .eraseblocks = { {256 * 1024, 1} },
3818 .block_erase = spi_block_erase_c7,
3819 }
3820 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003821 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003822 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003824 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003825 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003826 },
3827
3828 {
3829 .vendor = "Eon",
3830 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003831 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003832 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003833 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003834 .total_size = 256,
3835 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003836 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .tested = TEST_UNTESTED,
3838 .probe = probe_spi_rdid,
3839 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003840 .block_erasers =
3841 {
3842 {
3843 .eraseblocks = {
3844 {64 * 1024, 3},
3845 {32 * 1024, 1},
3846 {16 * 1024, 1},
3847 {8 * 1024, 1},
3848 {4 * 1024, 2},
3849 },
3850 .block_erase = spi_block_erase_d8,
3851 }, {
3852 .eraseblocks = { {256 * 1024, 1} },
3853 .block_erase = spi_block_erase_c7,
3854 }
3855 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003856 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003857 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003858 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003859 .read = spi_chip_read, /* Fast read (0x0B) supported */
3860 .voltage = {2700, 3600},
3861 },
3862
3863 {
3864 .vendor = "Eon",
3865 .name = "EN25P20",
3866 .bustype = BUS_SPI,
3867 .manufacture_id = EON_ID_NOPREFIX,
3868 .model_id = EON_EN25B20,
3869 .total_size = 256,
3870 .page_size = 256,
3871 .feature_bits = FEATURE_WRSR_WREN,
3872 .tested = TEST_UNTESTED,
3873 .probe = probe_spi_rdid,
3874 .probe_timing = TIMING_ZERO,
3875 .block_erasers =
3876 {
3877 {
3878 .eraseblocks = { {64 * 1024, 4} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {256 * 1024, 1} },
3882 .block_erase = spi_block_erase_c7,
3883 }
3884 },
3885 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3886 .unlock = spi_disable_blockprotect,
3887 .write = spi_chip_write_256,
3888 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003889 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003890 },
3891
3892 {
3893 .vendor = "Eon",
3894 .name = "EN25B40",
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_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003898 .total_size = 512,
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 {64 * 1024, 7}
3913 },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {512 * 1024, 1} },
3917 .block_erase = spi_block_erase_c7,
3918 }
3919 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003921 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003922 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003923 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003924 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003925 },
3926
3927 {
3928 .vendor = "Eon",
3929 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003930 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003931 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003932 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003933 .total_size = 512,
3934 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003935 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003936 .tested = TEST_UNTESTED,
3937 .probe = probe_spi_rdid,
3938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003939 .block_erasers =
3940 {
3941 {
3942 .eraseblocks = {
3943 {64 * 1024, 7},
3944 {32 * 1024, 1},
3945 {16 * 1024, 1},
3946 {8 * 1024, 1},
3947 {4 * 1024, 2},
3948 },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {512 * 1024, 1} },
3952 .block_erase = spi_block_erase_c7,
3953 }
3954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003956 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003957 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003958 .read = spi_chip_read, /* Fast read (0x0B) supported */
3959 .voltage = {2700, 3600},
3960 },
3961
3962 {
3963 .vendor = "Eon",
3964 .name = "EN25P40",
3965 .bustype = BUS_SPI,
3966 .manufacture_id = EON_ID_NOPREFIX,
3967 .model_id = EON_EN25B40,
3968 .total_size = 512,
3969 .page_size = 256,
3970 .feature_bits = FEATURE_WRSR_WREN,
3971 .tested = TEST_UNTESTED,
3972 .probe = probe_spi_rdid,
3973 .probe_timing = TIMING_ZERO,
3974 .block_erasers =
3975 {
3976 {
3977 .eraseblocks = { {64 * 1024, 8} },
3978 .block_erase = spi_block_erase_d8,
3979 }, {
3980 .eraseblocks = { {512 * 1024, 1} },
3981 .block_erase = spi_block_erase_c7,
3982 }
3983 },
3984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3985 .unlock = spi_disable_blockprotect,
3986 .write = spi_chip_write_256,
3987 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003988 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003989 },
3990
3991 {
3992 .vendor = "Eon",
3993 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003994 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003995 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003996 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003997 .total_size = 1024,
3998 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003999 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004000 .tested = TEST_UNTESTED,
4001 .probe = probe_spi_rdid,
4002 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004003 .block_erasers =
4004 {
4005 {
4006 .eraseblocks = {
4007 {4 * 1024, 2},
4008 {8 * 1024, 1},
4009 {16 * 1024, 1},
4010 {32 * 1024, 1},
4011 {64 * 1024, 15}
4012 },
4013 .block_erase = spi_block_erase_d8,
4014 }, {
4015 .eraseblocks = { {1024 * 1024, 1} },
4016 .block_erase = spi_block_erase_c7,
4017 }
4018 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004019 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004020 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004021 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004022 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004023 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004024 },
4025
4026 {
4027 .vendor = "Eon",
4028 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004029 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004030 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004031 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00004032 .total_size = 1024,
4033 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004034 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004035 .tested = TEST_UNTESTED,
4036 .probe = probe_spi_rdid,
4037 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004038 .block_erasers =
4039 {
4040 {
4041 .eraseblocks = {
4042 {64 * 1024, 15},
4043 {32 * 1024, 1},
4044 {16 * 1024, 1},
4045 {8 * 1024, 1},
4046 {4 * 1024, 2},
4047 },
4048 .block_erase = spi_block_erase_d8,
4049 }, {
4050 .eraseblocks = { {1024 * 1024, 1} },
4051 .block_erase = spi_block_erase_c7,
4052 }
4053 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004054 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004055 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004056 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004057 .read = spi_chip_read, /* Fast read (0x0B) supported */
4058 .voltage = {2700, 3600},
4059 },
4060
4061 {
4062 .vendor = "Eon",
4063 .name = "EN25P80",
4064 .bustype = BUS_SPI,
4065 .manufacture_id = EON_ID_NOPREFIX,
4066 .model_id = EON_EN25B80,
4067 .total_size = 1024,
4068 .page_size = 256,
4069 .feature_bits = FEATURE_WRSR_WREN,
4070 .tested = TEST_UNTESTED,
4071 .probe = probe_spi_rdid,
4072 .probe_timing = TIMING_ZERO,
4073 .block_erasers =
4074 {
4075 {
4076 .eraseblocks = { {64 * 1024, 16} },
4077 .block_erase = spi_block_erase_d8,
4078 }, {
4079 .eraseblocks = { {1024 * 1024, 1} },
4080 .block_erase = spi_block_erase_c7,
4081 }
4082 },
4083 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4084 .unlock = spi_disable_blockprotect,
4085 .write = spi_chip_write_256,
4086 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004087 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004088 },
4089
4090 {
4091 .vendor = "Eon",
4092 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004093 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004094 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004095 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004096 .total_size = 2048,
4097 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004098 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004099 .tested = TEST_UNTESTED,
4100 .probe = probe_spi_rdid,
4101 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004102 .block_erasers =
4103 {
4104 {
4105 .eraseblocks = {
4106 {4 * 1024, 2},
4107 {8 * 1024, 1},
4108 {16 * 1024, 1},
4109 {32 * 1024, 1},
4110 {64 * 1024, 31},
4111 },
4112 .block_erase = spi_block_erase_d8,
4113 }, {
4114 .eraseblocks = { {2 * 1024 * 1024, 1} },
4115 .block_erase = spi_block_erase_c7,
4116 }
4117 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004118 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004119 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004120 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004121 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004122 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004123 },
4124
4125 {
4126 .vendor = "Eon",
4127 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004128 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004129 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004130 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004131 .total_size = 2048,
4132 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004133 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004134 .tested = TEST_UNTESTED,
4135 .probe = probe_spi_rdid,
4136 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004137 .block_erasers =
4138 {
4139 {
4140 .eraseblocks = {
4141 {64 * 1024, 31},
4142 {32 * 1024, 1},
4143 {16 * 1024, 1},
4144 {8 * 1024, 1},
4145 {4 * 1024, 2},
4146 },
4147 .block_erase = spi_block_erase_d8,
4148 }, {
4149 .eraseblocks = { {2 * 1024 * 1024, 1} },
4150 .block_erase = spi_block_erase_c7,
4151 }
4152 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004153 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004154 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004155 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004156 .read = spi_chip_read, /* Fast read (0x0B) supported */
4157 .voltage = {2700, 3600},
4158 },
4159
4160 {
4161 .vendor = "Eon",
4162 .name = "EN25P16",
4163 .bustype = BUS_SPI,
4164 .manufacture_id = EON_ID_NOPREFIX,
4165 .model_id = EON_EN25B16,
4166 .total_size = 2048,
4167 .page_size = 256,
4168 .feature_bits = FEATURE_WRSR_WREN,
4169 .tested = TEST_UNTESTED,
4170 .probe = probe_spi_rdid,
4171 .probe_timing = TIMING_ZERO,
4172 .block_erasers =
4173 {
4174 {
4175 .eraseblocks = { {64 * 1024, 32} },
4176 .block_erase = spi_block_erase_d8,
4177 }, {
4178 .eraseblocks = { {2 * 1024 * 1024, 1} },
4179 .block_erase = spi_block_erase_c7,
4180 }
4181 },
4182 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4183 .unlock = spi_disable_blockprotect,
4184 .write = spi_chip_write_256,
4185 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004186 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004187 },
4188
4189 {
4190 .vendor = "Eon",
4191 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004192 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004193 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004194 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004195 .total_size = 4096,
4196 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004197 /* OTP: 512B total; enter 0x3A */
4198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004199 .tested = TEST_UNTESTED,
4200 .probe = probe_spi_rdid,
4201 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004202 .block_erasers =
4203 {
4204 {
4205 .eraseblocks = {
4206 {4 * 1024, 2},
4207 {8 * 1024, 1},
4208 {16 * 1024, 1},
4209 {32 * 1024, 1},
4210 {64 * 1024, 63},
4211 },
4212 .block_erase = spi_block_erase_d8,
4213 }, {
4214 .eraseblocks = { {4 * 1024 * 1024, 1} },
4215 .block_erase = spi_block_erase_c7,
4216 }
4217 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004218 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004219 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004220 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004221 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004222 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004223 },
4224
4225 {
4226 .vendor = "Eon",
4227 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004228 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004229 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004230 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004231 .total_size = 4096,
4232 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004233 /* OTP: 512B total; enter 0x3A */
4234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004235 .tested = TEST_UNTESTED,
4236 .probe = probe_spi_rdid,
4237 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004238 .block_erasers =
4239 {
4240 {
4241 .eraseblocks = {
4242 {64 * 1024, 63},
4243 {32 * 1024, 1},
4244 {16 * 1024, 1},
4245 {8 * 1024, 1},
4246 {4 * 1024, 2},
4247 },
4248 .block_erase = spi_block_erase_d8,
4249 }, {
4250 .eraseblocks = { {4 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_c7,
4252 }
4253 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004254 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004255 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004256 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004257 .read = spi_chip_read, /* Fast read (0x0B) supported */
4258 .voltage = {2700, 3600},
4259 },
4260
4261 {
4262 .vendor = "Eon",
4263 .name = "EN25P32", /* Uniform version of EN25B32 */
4264 .bustype = BUS_SPI,
4265 .manufacture_id = EON_ID_NOPREFIX,
4266 .model_id = EON_EN25B32,
4267 .total_size = 4096,
4268 .page_size = 256,
4269 /* OTP: 512B total; enter 0x3A */
4270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4271 .tested = TEST_UNTESTED,
4272 .probe = probe_spi_rdid,
4273 .probe_timing = TIMING_ZERO,
4274 .block_erasers =
4275 {
4276 {
4277 .eraseblocks = { {64 * 1024, 64} },
4278 .block_erase = spi_block_erase_d8,
4279 }, {
4280 .eraseblocks = { {4 * 1024 * 1024, 1} },
4281 .block_erase = spi_block_erase_c7,
4282 }
4283 },
4284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4285 .unlock = spi_disable_blockprotect,
4286 .write = spi_chip_write_256,
4287 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004288 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004289 },
4290
4291 {
4292 .vendor = "Eon",
4293 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004294 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004295 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004296 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004297 .total_size = 8192,
4298 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004299 /* OTP: 512B total; enter 0x3A */
4300 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004301 .tested = TEST_UNTESTED,
4302 .probe = probe_spi_rdid,
4303 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004304 .block_erasers =
4305 {
4306 {
4307 .eraseblocks = {
4308 {4 * 1024, 2},
4309 {8 * 1024, 1},
4310 {16 * 1024, 1},
4311 {32 * 1024, 1},
4312 {64 * 1024, 127},
4313 },
4314 .block_erase = spi_block_erase_d8,
4315 }, {
4316 .eraseblocks = { {8 * 1024 * 1024, 1} },
4317 .block_erase = spi_block_erase_c7,
4318 }
4319 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004320 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004321 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004322 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004323 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004324 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004325 },
4326
4327 {
4328 .vendor = "Eon",
4329 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004330 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004331 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004332 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004333 .total_size = 8192,
4334 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004335 /* OTP: 512B total; enter 0x3A */
4336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004337 .tested = TEST_UNTESTED,
4338 .probe = probe_spi_rdid,
4339 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004340 .block_erasers =
4341 {
4342 {
4343 .eraseblocks = {
4344 {64 * 1024, 127},
4345 {32 * 1024, 1},
4346 {16 * 1024, 1},
4347 {8 * 1024, 1},
4348 {4 * 1024, 2},
4349 },
4350 .block_erase = spi_block_erase_d8,
4351 }, {
4352 .eraseblocks = { {8 * 1024 * 1024, 1} },
4353 .block_erase = spi_block_erase_c7,
4354 }
4355 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004357 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004358 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004359 .read = spi_chip_read, /* Fast read (0x0B) supported */
4360 .voltage = {2700, 3600},
4361 },
4362
4363 {
4364 .vendor = "Eon",
4365 .name = "EN25P64",
4366 .bustype = BUS_SPI,
4367 .manufacture_id = EON_ID_NOPREFIX,
4368 .model_id = EON_EN25B64,
4369 .total_size = 8192,
4370 .page_size = 256,
4371 /* OTP: 512B total; enter 0x3A */
4372 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4373 .tested = TEST_UNTESTED,
4374 .probe = probe_spi_rdid,
4375 .probe_timing = TIMING_ZERO,
4376 .block_erasers =
4377 {
4378 {
4379 .eraseblocks = { {64 * 1024, 128} },
4380 .block_erase = spi_block_erase_d8,
4381 }, {
4382 .eraseblocks = { {8 * 1024 * 1024, 1} },
4383 .block_erase = spi_block_erase_c7,
4384 }
4385 },
4386 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4387 .unlock = spi_disable_blockprotect,
4388 .write = spi_chip_write_256,
4389 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004390 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004391 },
4392
4393 {
4394 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004396 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004397 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004398 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004399 .total_size = 64,
4400 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004401 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004402 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004403 .probe = probe_spi_rdid,
4404 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004405 .block_erasers =
4406 {
4407 {
4408 .eraseblocks = { {4 * 1024, 16} },
4409 .block_erase = spi_block_erase_20,
4410 }, {
4411 .eraseblocks = { {32 * 1024, 2} },
4412 .block_erase = spi_block_erase_d8,
4413 }, {
4414 .eraseblocks = { {32 * 1024, 2} },
4415 .block_erase = spi_block_erase_52,
4416 }, {
4417 .eraseblocks = { {64 * 1024, 1} },
4418 .block_erase = spi_block_erase_60,
4419 }, {
4420 .eraseblocks = { {64 * 1024, 1} },
4421 .block_erase = spi_block_erase_c7,
4422 }
4423 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004425 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004426 .write = spi_chip_write_256,
4427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004428 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004429 },
4430
4431 {
4432 .vendor = "Eon",
4433 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004434 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004436 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004437 .total_size = 128,
4438 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004439 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004440 .tested = TEST_UNTESTED,
4441 .probe = probe_spi_rdid,
4442 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004443 .block_erasers =
4444 {
4445 {
4446 .eraseblocks = { {4 * 1024, 32} },
4447 .block_erase = spi_block_erase_20,
4448 }, {
4449 .eraseblocks = { {32 * 1024, 4} },
4450 .block_erase = spi_block_erase_d8,
4451 }, {
4452 .eraseblocks = { {32 * 1024, 4} },
4453 .block_erase = spi_block_erase_52,
4454 }, {
4455 .eraseblocks = { {128 * 1024, 1} },
4456 .block_erase = spi_block_erase_60,
4457 }, {
4458 .eraseblocks = { {128 * 1024, 1} },
4459 .block_erase = spi_block_erase_c7,
4460 }
4461 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004462 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004463 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004464 .write = spi_chip_write_256,
4465 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004466 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004467 },
4468
4469 {
4470 .vendor = "Eon",
4471 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004472 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004473 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004474 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004475 .total_size = 256,
4476 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004477 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004478 .tested = TEST_UNTESTED,
4479 .probe = probe_spi_rdid,
4480 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004481 .block_erasers =
4482 {
4483 {
4484 .eraseblocks = { {4 * 1024, 64} },
4485 .block_erase = spi_block_erase_20,
4486 }, {
4487 .eraseblocks = { {64 * 1024, 4} },
4488 .block_erase = spi_block_erase_d8,
4489 }, {
4490 .eraseblocks = { {64 * 1024, 4} },
4491 .block_erase = spi_block_erase_52,
4492 }, {
4493 .eraseblocks = { {256 * 1024, 1} },
4494 .block_erase = spi_block_erase_60,
4495 }, {
4496 .eraseblocks = { {256 * 1024, 1} },
4497 .block_erase = spi_block_erase_c7,
4498 }
4499 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004500 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004501 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004502 .write = spi_chip_write_256,
4503 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004504 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004505 },
4506
4507 {
4508 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004509 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004510 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004511 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004512 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004513 .total_size = 512,
4514 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004515 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004516 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004517 .probe = probe_spi_rdid,
4518 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004519 .block_erasers =
4520 {
4521 {
Sean Nelson54596372010-01-09 05:30:14 +00004522 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004523 .block_erase = spi_block_erase_20,
4524 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004525 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004526 .block_erase = spi_block_erase_d8,
4527 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004528 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004529 .block_erase = spi_block_erase_60,
4530 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004531 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004532 .block_erase = spi_block_erase_c7,
4533 },
4534 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004535 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004536 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004537 .write = spi_chip_write_256,
4538 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004539 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004540 },
4541
4542 {
4543 .vendor = "Eon",
4544 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004545 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004546 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004547 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004548 .total_size = 1024,
4549 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004550 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004551 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004552 .probe = probe_spi_rdid,
4553 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004554 .block_erasers =
4555 {
4556 {
4557 .eraseblocks = { {4 * 1024, 256} },
4558 .block_erase = spi_block_erase_20,
4559 }, {
4560 .eraseblocks = { {64 * 1024, 16} },
4561 .block_erase = spi_block_erase_d8,
4562 }, {
4563 .eraseblocks = { {1024 * 1024, 1} },
4564 .block_erase = spi_block_erase_60,
4565 }, {
4566 .eraseblocks = { {1024 * 1024, 1} },
4567 .block_erase = spi_block_erase_c7,
4568 }
4569 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004570 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004571 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004572 .write = spi_chip_write_256,
4573 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004574 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004575 },
4576
4577 {
4578 .vendor = "Eon",
4579 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004580 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004581 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004582 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004583 .total_size = 2048,
4584 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004585 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004586 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004587 .probe = probe_spi_rdid,
4588 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004589 .block_erasers =
4590 {
4591 {
4592 .eraseblocks = { {4 * 1024, 512} },
4593 .block_erase = spi_block_erase_20,
4594 }, {
4595 .eraseblocks = { {64 * 1024, 32} },
4596 .block_erase = spi_block_erase_d8,
4597 }, {
4598 .eraseblocks = { {2 * 1024 * 1024, 1} },
4599 .block_erase = spi_block_erase_60,
4600 }, {
4601 .eraseblocks = { {2 * 1024 * 1024, 1} },
4602 .block_erase = spi_block_erase_c7,
4603 }
4604 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004605 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004606 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004607 .write = spi_chip_write_256,
4608 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004609 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004610 },
4611
4612 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004613 .vendor = "Eon",
4614 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004615 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004616 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004617 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004618 .total_size = 4096,
4619 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004620 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004621 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004622 .probe = probe_spi_rdid,
4623 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004624 .block_erasers =
4625 {
4626 {
4627 .eraseblocks = { {4 * 1024, 1024} },
4628 .block_erase = spi_block_erase_20,
4629 }, {
4630 .eraseblocks = { {64 * 1024, 64} },
4631 .block_erase = spi_block_erase_d8,
4632 }, {
4633 .eraseblocks = { {4 * 1024 * 1024, 1} },
4634 .block_erase = spi_block_erase_60,
4635 }, {
4636 .eraseblocks = { {4 * 1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_c7,
4638 }
4639 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004641 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004642 .write = spi_chip_write_256,
4643 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004644 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004645 },
4646
4647 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004648 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004649 .name = "EN25F64",
4650 .bustype = BUS_SPI,
4651 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004652 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004653 .total_size = 8192,
4654 .page_size = 256,
4655 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004656 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004657 .probe = probe_spi_rdid,
4658 .probe_timing = TIMING_ZERO,
4659 .block_erasers =
4660 {
4661 {
4662 .eraseblocks = { {4 * 1024, 2048} },
4663 .block_erase = spi_block_erase_20,
4664 }, {
4665 .eraseblocks = { {64 * 1024, 128} },
4666 .block_erase = spi_block_erase_d8,
4667 }, {
4668 .eraseblocks = { {8 * 1024 * 1024, 1} },
4669 .block_erase = spi_block_erase_60,
4670 }, {
4671 .eraseblocks = { {8 * 1024 * 1024, 1} },
4672 .block_erase = spi_block_erase_c7,
4673 }
4674 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004675 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004676 .unlock = spi_disable_blockprotect,
4677 .write = spi_chip_write_256,
4678 .read = spi_chip_read,
4679 .voltage = {2700, 3600},
4680 },
4681
4682 {
4683 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004684 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004685 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004686 .manufacture_id = EON_ID_NOPREFIX,
4687 .model_id = EON_EN25Q40,
4688 .total_size = 512,
4689 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004690 /* OTP: 256B total; enter 0x3A */
4691 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004692 .tested = TEST_UNTESTED,
4693 .probe = probe_spi_rdid,
4694 .probe_timing = TIMING_ZERO,
4695 .block_erasers =
4696 {
4697 {
4698 .eraseblocks = { {4 * 1024, 128} },
4699 .block_erase = spi_block_erase_20,
4700 }, {
4701 .eraseblocks = { {64 * 1024, 8} },
4702 .block_erase = spi_block_erase_d8,
4703 }, {
4704 .eraseblocks = { {512 * 1024, 1} },
4705 .block_erase = spi_block_erase_60,
4706 }, {
4707 .eraseblocks = { {512 * 1024, 1} },
4708 .block_erase = spi_block_erase_c7,
4709 }
4710 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004711 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004712 .unlock = spi_disable_blockprotect,
4713 .write = spi_chip_write_256,
4714 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004715 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004716 },
4717
4718 {
4719 .vendor = "Eon",
4720 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004721 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004722 .manufacture_id = EON_ID_NOPREFIX,
4723 .model_id = EON_EN25Q80,
4724 .total_size = 1024,
4725 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004726 /* OTP: 256B total; enter 0x3A */
4727 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004728 .tested = TEST_UNTESTED,
4729 .probe = probe_spi_rdid,
4730 .probe_timing = TIMING_ZERO,
4731 .block_erasers =
4732 {
4733 {
4734 .eraseblocks = { {4 * 1024, 256} },
4735 .block_erase = spi_block_erase_20,
4736 }, {
4737 .eraseblocks = { {64 * 1024, 16} },
4738 .block_erase = spi_block_erase_d8,
4739 }, {
4740 .eraseblocks = { {1024 * 1024, 1} },
4741 .block_erase = spi_block_erase_60,
4742 }, {
4743 .eraseblocks = { {1024 * 1024, 1} },
4744 .block_erase = spi_block_erase_c7,
4745 }
4746 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004748 .unlock = spi_disable_blockprotect,
4749 .write = spi_chip_write_256,
4750 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004751 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004752 },
4753
4754 {
4755 /* Note: EN25D16 is an evil twin which shares the model ID
4756 but has different write protection capabilities */
4757 .vendor = "Eon",
4758 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004759 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004760 .manufacture_id = EON_ID_NOPREFIX,
4761 .model_id = EON_EN25Q16,
4762 .total_size = 2048,
4763 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004764 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4765 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004766 .tested = TEST_UNTESTED,
4767 .probe = probe_spi_rdid,
4768 .probe_timing = TIMING_ZERO,
4769 .block_erasers =
4770 {
4771 {
4772 .eraseblocks = { {4 * 1024, 512} },
4773 .block_erase = spi_block_erase_20,
4774 }, {
4775 .eraseblocks = { {64 * 1024, 32} },
4776 .block_erase = spi_block_erase_d8,
4777 }, {
4778 /* not supported by Q16 version */
4779 .eraseblocks = { {64 * 1024, 32} },
4780 .block_erase = spi_block_erase_52,
4781 }, {
4782 .eraseblocks = { {2 * 1024 * 1024, 1} },
4783 .block_erase = spi_block_erase_60,
4784 }, {
4785 .eraseblocks = { {2 * 1024 * 1024, 1} },
4786 .block_erase = spi_block_erase_c7,
4787 }
4788 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004789 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004790 .unlock = spi_disable_blockprotect,
4791 .write = spi_chip_write_256,
4792 .read = spi_chip_read,
4793 .voltage = {2700, 3600},
4794 },
4795
4796 {
4797 .vendor = "Eon",
4798 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004799 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004800 .manufacture_id = EON_ID_NOPREFIX,
4801 .model_id = EON_EN25Q32,
4802 .total_size = 4096,
4803 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004804 /* OTP: 512B total; enter 0x3A */
4805 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004806 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004807 .probe = probe_spi_rdid,
4808 .probe_timing = TIMING_ZERO,
4809 .block_erasers =
4810 {
4811 {
4812 .eraseblocks = { {4 * 1024, 1024} },
4813 .block_erase = spi_block_erase_20,
4814 }, {
4815 .eraseblocks = { {64 * 1024, 64} },
4816 .block_erase = spi_block_erase_d8,
4817 }, {
4818 .eraseblocks = { {4 * 1024 * 1024, 1} },
4819 .block_erase = spi_block_erase_60,
4820 }, {
4821 .eraseblocks = { {4 * 1024 * 1024, 1} },
4822 .block_erase = spi_block_erase_c7,
4823 }
4824 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004825 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004826 .unlock = spi_disable_blockprotect,
4827 .write = spi_chip_write_256,
4828 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004829 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004830 },
4831
4832 {
4833 .vendor = "Eon",
4834 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004836 .manufacture_id = EON_ID_NOPREFIX,
4837 .model_id = EON_EN25Q64,
4838 .total_size = 8192,
4839 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004840 /* OTP: 512B total; enter 0x3A */
4841 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004842 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004843 .probe = probe_spi_rdid,
4844 .probe_timing = TIMING_ZERO,
4845 .block_erasers =
4846 {
4847 {
4848 .eraseblocks = { {4 * 1024, 2048} },
4849 .block_erase = spi_block_erase_20,
4850 }, {
4851 .eraseblocks = { {64 * 1024, 128} },
4852 .block_erase = spi_block_erase_d8,
4853 }, {
4854 .eraseblocks = { {8 * 1024 * 1024, 1} },
4855 .block_erase = spi_block_erase_60,
4856 }, {
4857 .eraseblocks = { {8 * 1024 * 1024, 1} },
4858 .block_erase = spi_block_erase_c7,
4859 }
4860 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004861 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004862 .unlock = spi_disable_blockprotect,
4863 .write = spi_chip_write_256,
4864 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004865 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004866 },
4867
4868 {
4869 .vendor = "Eon",
4870 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004871 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004872 .manufacture_id = EON_ID_NOPREFIX,
4873 .model_id = EON_EN25Q128,
4874 .total_size = 16384,
4875 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004876 /* OTP: 512B total; enter 0x3A */
4877 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004878 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004879 .probe = probe_spi_rdid,
4880 .probe_timing = TIMING_ZERO,
4881 .block_erasers =
4882 {
4883 {
4884 .eraseblocks = { {4 * 1024, 4096} },
4885 .block_erase = spi_block_erase_20,
4886 }, {
4887 .eraseblocks = { {64 * 1024, 256} },
4888 .block_erase = spi_block_erase_d8,
4889 }, {
4890 .eraseblocks = { {16 * 1024 * 1024, 1} },
4891 .block_erase = spi_block_erase_60,
4892 }, {
4893 .eraseblocks = { {16 * 1024 * 1024, 1} },
4894 .block_erase = spi_block_erase_c7,
4895 }
4896 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004897 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004898 .unlock = spi_disable_blockprotect,
4899 .write = spi_chip_write_256,
4900 .read = spi_chip_read,
4901 },
4902
4903 {
4904 .vendor = "Eon",
4905 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004906 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004907 .manufacture_id = EON_ID_NOPREFIX,
4908 .model_id = EON_EN25QH16,
4909 .total_size = 2048,
4910 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004911 /* supports SFDP */
4912 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004913 /* QPI enable 0x38, disable 0xFF */
4914 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004915 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004916 .probe = probe_spi_rdid,
4917 .probe_timing = TIMING_ZERO,
4918 .block_erasers =
4919 {
4920 {
4921 .eraseblocks = { {4 * 1024, 512} },
4922 .block_erase = spi_block_erase_20,
4923 }, {
4924 .eraseblocks = { {64 * 1024, 32} },
4925 .block_erase = spi_block_erase_d8,
4926 }, {
4927 .eraseblocks = { {1024 * 2048, 1} },
4928 .block_erase = spi_block_erase_60,
4929 }, {
4930 .eraseblocks = { {1024 * 2048, 1} },
4931 .block_erase = spi_block_erase_c7,
4932 }
4933 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004934 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004935 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004936 .write = spi_chip_write_256,
4937 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004938 .voltage = {2700, 3600},
4939 },
4940
4941 {
4942 .vendor = "Eon",
4943 .name = "EN25QH32",
4944 .bustype = BUS_SPI,
4945 .manufacture_id = EON_ID_NOPREFIX,
4946 .model_id = EON_EN25QH32,
4947 .total_size = 4096,
4948 .page_size = 256,
4949 /* supports SFDP */
4950 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004951 /* QPI enable 0x38, disable 0xFF */
4952 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004953 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004954 .probe = probe_spi_rdid,
4955 .probe_timing = TIMING_ZERO,
4956 .block_erasers =
4957 {
4958 {
4959 .eraseblocks = { {4 * 1024, 1024} },
4960 .block_erase = spi_block_erase_20,
4961 }, {
4962 .eraseblocks = { {64 * 1024, 64} },
4963 .block_erase = spi_block_erase_d8,
4964 }, {
4965 .eraseblocks = { {1024 * 4096, 1} },
4966 .block_erase = spi_block_erase_60,
4967 }, {
4968 .eraseblocks = { {1024 * 4096, 1} },
4969 .block_erase = spi_block_erase_c7,
4970 }
4971 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004972 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004973 .unlock = spi_disable_blockprotect_bp3_srwd,
4974 .write = spi_chip_write_256,
4975 .read = spi_chip_read,
4976 .voltage = {2700, 3600},
4977 },
4978
4979 {
4980 .vendor = "Eon",
4981 .name = "EN25QH64",
4982 .bustype = BUS_SPI,
4983 .manufacture_id = EON_ID_NOPREFIX,
4984 .model_id = EON_EN25QH64,
4985 .total_size = 8192,
4986 .page_size = 256,
4987 /* supports SFDP */
4988 /* OTP: 512B total; enter 0x3A */
4989 /* QPI enable 0x38, disable 0xFF */
4990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004991 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004992 .probe = probe_spi_rdid,
4993 .probe_timing = TIMING_ZERO,
4994 .block_erasers = {
4995 {
4996 .eraseblocks = { {4 * 1024, 2048} },
4997 .block_erase = spi_block_erase_20,
4998 }, {
4999 .eraseblocks = { {64 * 1024, 128} },
5000 .block_erase = spi_block_erase_d8,
5001 }, {
5002 .eraseblocks = { { 8192 * 1024, 1} },
5003 .block_erase = spi_block_erase_60,
5004 }, {
5005 .eraseblocks = { { 8192 * 1024, 1} },
5006 .block_erase = spi_block_erase_c7,
5007 }
5008 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005009 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005010 .unlock = spi_disable_blockprotect_bp3_srwd,
5011 .write = spi_chip_write_256,
5012 .read = spi_chip_read,
5013 .voltage = {2700, 3600},
5014 },
5015
5016 {
5017 .vendor = "Eon",
5018 .name = "EN25QH128",
5019 .bustype = BUS_SPI,
5020 .manufacture_id = EON_ID_NOPREFIX,
5021 .model_id = EON_EN25QH128,
5022 .total_size = 16384,
5023 .page_size = 256,
5024 /* supports SFDP */
5025 /* OTP: 512B total; enter 0x3A */
5026 /* QPI enable 0x38, disable 0xFF */
5027 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5028 .tested = TEST_UNTESTED,
5029 .probe = probe_spi_rdid,
5030 .probe_timing = TIMING_ZERO,
5031 .block_erasers = {
5032 {
5033 .eraseblocks = { {4 * 1024, 4096} },
5034 .block_erase = spi_block_erase_20,
5035 }, {
5036 .eraseblocks = { {64 * 1024, 256} },
5037 .block_erase = spi_block_erase_d8,
5038 }, {
5039 .eraseblocks = { { 16384 * 1024, 1} },
5040 .block_erase = spi_block_erase_60,
5041 }, {
5042 .eraseblocks = { { 16384 * 1024, 1} },
5043 .block_erase = spi_block_erase_c7,
5044 }
5045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005046 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005047 .unlock = spi_disable_blockprotect_bp3_srwd,
5048 .write = spi_chip_write_256,
5049 .read = spi_chip_read,
5050 .voltage = {2700, 3600},
5051 },
5052
5053 {
5054 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005055 .name = "EN25S10",
5056 .bustype = BUS_SPI,
5057 .manufacture_id = EON_ID_NOPREFIX,
5058 .model_id = EON_EN25S10,
5059 .total_size = 128,
5060 .page_size = 256,
5061 /* OTP: 256B total; enter 0x3A */
5062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5063 .tested = TEST_UNTESTED,
5064 .probe = probe_spi_rdid,
5065 .probe_timing = TIMING_ZERO,
5066 .block_erasers = {
5067 {
5068 .eraseblocks = { {4 * 1024, 32} },
5069 .block_erase = spi_block_erase_20,
5070 }, {
5071 .eraseblocks = { {32 * 1024, 4} },
5072 .block_erase = spi_block_erase_52,
5073 }, {
5074 .eraseblocks = { {128 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {128 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005081 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005082 .unlock = spi_disable_blockprotect,
5083 .write = spi_chip_write_256,
5084 .read = spi_chip_read,
5085 .voltage = {1650, 1950},
5086 },
5087
5088 {
5089 .vendor = "Eon",
5090 .name = "EN25S20",
5091 .bustype = BUS_SPI,
5092 .manufacture_id = EON_ID_NOPREFIX,
5093 .model_id = EON_EN25S20,
5094 .total_size = 256,
5095 .page_size = 256,
5096 /* OTP: 256B total; enter 0x3A */
5097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5098 .tested = TEST_UNTESTED,
5099 .probe = probe_spi_rdid,
5100 .probe_timing = TIMING_ZERO,
5101 .block_erasers = {
5102 {
5103 .eraseblocks = { {4 * 1024, 64} },
5104 .block_erase = spi_block_erase_20,
5105 }, {
5106 .eraseblocks = { {64 * 1024, 4} },
5107 .block_erase = spi_block_erase_d8,
5108 }, {
5109 .eraseblocks = { {256 * 1024, 1} },
5110 .block_erase = spi_block_erase_60,
5111 }, {
5112 .eraseblocks = { {256 * 1024, 1} },
5113 .block_erase = spi_block_erase_c7,
5114 }
5115 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005116 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005117 .unlock = spi_disable_blockprotect,
5118 .write = spi_chip_write_256,
5119 .read = spi_chip_read,
5120 .voltage = {1650, 1950},
5121 },
5122
5123 {
5124 .vendor = "Eon",
5125 .name = "EN25S40",
5126 .bustype = BUS_SPI,
5127 .manufacture_id = EON_ID_NOPREFIX,
5128 .model_id = EON_EN25S40,
5129 .total_size = 512,
5130 .page_size = 256,
5131 /* OTP: 256B total; enter 0x3A */
5132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc748be52018-09-30 17:23:03 +02005133 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005134 .probe = probe_spi_rdid,
5135 .probe_timing = TIMING_ZERO,
5136 .block_erasers = {
5137 {
5138 .eraseblocks = { {4 * 1024, 128} },
5139 .block_erase = spi_block_erase_20,
5140 }, {
5141 .eraseblocks = { {64 * 1024, 8} },
5142 .block_erase = spi_block_erase_d8,
5143 }, {
5144 .eraseblocks = { {512 * 1024, 1} },
5145 .block_erase = spi_block_erase_60,
5146 }, {
5147 .eraseblocks = { {512 * 1024, 1} },
5148 .block_erase = spi_block_erase_c7,
5149 }
5150 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005151 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005152 .unlock = spi_disable_blockprotect,
5153 .write = spi_chip_write_256,
5154 .read = spi_chip_read,
5155 .voltage = {1650, 1950},
5156 },
5157
5158 {
5159 .vendor = "Eon",
5160 .name = "EN25S80",
5161 .bustype = BUS_SPI,
5162 .manufacture_id = EON_ID_NOPREFIX,
5163 .model_id = EON_EN25S80,
5164 .total_size = 1024,
5165 .page_size = 256,
5166 /* OTP: 256B total; enter 0x3A */
5167 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5168 .tested = TEST_UNTESTED,
5169 .probe = probe_spi_rdid,
5170 .probe_timing = TIMING_ZERO,
5171 .block_erasers = {
5172 {
5173 .eraseblocks = { {4 * 1024, 256} },
5174 .block_erase = spi_block_erase_20,
5175 }, {
5176 .eraseblocks = { {64 * 1024, 16} },
5177 .block_erase = spi_block_erase_d8,
5178 }, {
5179 .eraseblocks = { {1024 * 1024, 1} },
5180 .block_erase = spi_block_erase_60,
5181 }, {
5182 .eraseblocks = { {1024 * 1024, 1} },
5183 .block_erase = spi_block_erase_c7,
5184 }
5185 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005186 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005187 .unlock = spi_disable_blockprotect,
5188 .write = spi_chip_write_256,
5189 .read = spi_chip_read,
5190 .voltage = {1650, 1950},
5191 },
5192
5193 {
5194 .vendor = "Eon",
5195 .name = "EN25S16",
5196 .bustype = BUS_SPI,
5197 .manufacture_id = EON_ID_NOPREFIX,
5198 .model_id = EON_EN25S16,
5199 .total_size = 2048,
5200 .page_size = 256,
5201 /* OTP: 512B total; enter 0x3A */
5202 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5203 .tested = TEST_UNTESTED,
5204 .probe = probe_spi_rdid,
5205 .probe_timing = TIMING_ZERO,
5206 .block_erasers = {
5207 {
5208 .eraseblocks = { {4 * 1024, 512} },
5209 .block_erase = spi_block_erase_20,
5210 }, {
5211 .eraseblocks = { {64 * 1024, 32} },
5212 .block_erase = spi_block_erase_52,
5213 }, {
5214 .eraseblocks = { {32 * 1024, 64} },
5215 .block_erase = spi_block_erase_d8,
5216 }, {
5217 .eraseblocks = { {2048 * 1024, 1} },
5218 .block_erase = spi_block_erase_60,
5219 }, {
5220 .eraseblocks = { {2048 * 1024, 1} },
5221 .block_erase = spi_block_erase_c7,
5222 }
5223 },
5224 .printlock = spi_prettyprint_status_register_en25s_wp,
5225 .unlock = spi_disable_blockprotect_bp3_srwd,
5226 .write = spi_chip_write_256,
5227 .read = spi_chip_read,
5228 .voltage = {1650, 1950},
5229 },
5230
5231 {
5232 .vendor = "Eon",
5233 .name = "EN25S32",
5234 .bustype = BUS_SPI,
5235 .manufacture_id = EON_ID_NOPREFIX,
5236 .model_id = EON_EN25S32,
5237 .total_size = 4096,
5238 .page_size = 256,
5239 /* OTP: 512B total; enter 0x3A */
5240 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5241 .tested = TEST_UNTESTED,
5242 .probe = probe_spi_rdid,
5243 .probe_timing = TIMING_ZERO,
5244 .block_erasers = {
5245 {
5246 .eraseblocks = { {4 * 1024, 1024} },
5247 .block_erase = spi_block_erase_20,
5248 }, {
5249 .eraseblocks = { {32 * 1024, 128} },
5250 .block_erase = spi_block_erase_52,
5251 }, {
5252 .eraseblocks = { {64 * 1024, 64} },
5253 .block_erase = spi_block_erase_d8,
5254 }, {
5255 .eraseblocks = { {4096 * 1024, 1} },
5256 .block_erase = spi_block_erase_60,
5257 }, {
5258 .eraseblocks = { {4096 * 1024, 1} },
5259 .block_erase = spi_block_erase_c7,
5260 }
5261 },
5262 .printlock = spi_prettyprint_status_register_en25s_wp,
5263 .unlock = spi_disable_blockprotect_bp3_srwd,
5264 .write = spi_chip_write_256,
5265 .read = spi_chip_read,
5266 .voltage = {1650, 1950},
5267 },
5268
5269 {
5270 .vendor = "Eon",
5271 .name = "EN25S64",
5272 .bustype = BUS_SPI,
5273 .manufacture_id = EON_ID_NOPREFIX,
5274 .model_id = EON_EN25S64,
5275 .total_size = 8192,
5276 .page_size = 256,
5277 /* OTP: 512B total; enter 0x3A */
5278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5279 .tested = TEST_UNTESTED,
5280 .probe = probe_spi_rdid,
5281 .probe_timing = TIMING_ZERO,
5282 .block_erasers = {
5283 {
5284 .eraseblocks = { {4 * 1024, 2048} },
5285 .block_erase = spi_block_erase_20,
5286 }, {
5287 .eraseblocks = { {64 * 1024, 128} },
5288 .block_erase = spi_block_erase_d8,
5289 }, {
5290 .eraseblocks = { {8192 * 1024, 1} },
5291 .block_erase = spi_block_erase_60,
5292 }, {
5293 .eraseblocks = { {8192 * 1024, 1} },
5294 .block_erase = spi_block_erase_c7,
5295 }
5296 },
5297 .printlock = spi_prettyprint_status_register_en25s_wp,
5298 .unlock = spi_disable_blockprotect_bp3_srwd,
5299 .write = spi_chip_write_256,
5300 .read = spi_chip_read,
5301 .voltage = {1650, 1950},
5302 },
5303
5304 {
5305 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005306 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005307 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005308 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005309 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005310 .total_size = 128,
5311 .page_size = 128,
5312 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005313 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005314 .probe = probe_jedec,
5315 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5316 .block_erasers =
5317 {
5318 {
5319 .eraseblocks = { {16 * 1024, 8} },
5320 .block_erase = erase_sector_jedec,
5321 },
5322 {
5323 .eraseblocks = { {128 * 1024, 1} },
5324 .block_erase = erase_chip_block_jedec,
5325 },
5326 },
5327 .write = write_jedec_1,
5328 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005329 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005330 },
5331
5332 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005333 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005334 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005335 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005336 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005337 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005338 .total_size = 256,
5339 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005340 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005341 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005342 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005343 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005344 .block_erasers =
5345 {
5346 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005347 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005348 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005349 {8 * 1024, 2},
5350 {32 * 1024, 1},
5351 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005352 },
5353 .block_erase = erase_sector_jedec,
5354 }, {
5355 .eraseblocks = { {256 * 1024, 1} },
5356 .block_erase = erase_chip_block_jedec,
5357 },
5358 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005359 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005361 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005362 },
5363
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005364 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005365 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005366 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005367 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005368 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005369 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005370 .total_size = 256,
5371 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005372 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005373 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005374 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005375 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005376 .block_erasers =
5377 {
5378 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005379 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005380 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005381 {32 * 1024, 1},
5382 {8 * 1024, 2},
5383 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005384 },
5385 .block_erase = erase_sector_jedec,
5386 }, {
5387 .eraseblocks = { {256 * 1024, 1} },
5388 .block_erase = erase_chip_block_jedec,
5389 },
5390 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005391 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005392 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005393 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005394 },
5395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005396 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005397 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005398 .name = "EN29LV040(A)",
5399 .bustype = BUS_PARALLEL,
5400 .manufacture_id = EON_ID,
5401 .model_id = EON_EN29LV040,
5402 .total_size = 512,
5403 .page_size = 4 * 1024,
5404 .tested = TEST_OK_PREW,
5405 .probe = probe_jedec,
5406 .probe_timing = TIMING_ZERO,
5407 .block_erasers =
5408 {
5409 {
5410 .eraseblocks = { {64 * 1024, 8} },
5411 .block_erase = erase_sector_jedec,
5412 },
5413 {
5414 .eraseblocks = { {512 * 1024, 1} },
5415 .block_erase = erase_chip_block_jedec,
5416 },
5417 },
5418 .write = write_jedec_1,
5419 .read = read_memmapped,
5420 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5421 },
5422
5423 {
5424 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005425 .name = "EN29LV640B",
5426 .bustype = BUS_PARALLEL,
5427 .manufacture_id = EON_ID,
5428 .model_id = EON_EN29LV640B,
5429 .total_size = 8192,
5430 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005431 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005432 .tested = TEST_OK_PREW,
5433 .probe = probe_en29lv640b,
5434 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5435 .block_erasers =
5436 {
5437 {
5438 .eraseblocks = {
5439 {8 * 1024, 8},
5440 {64 * 1024, 127},
5441 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005442 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005443 }, {
5444 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005445 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005446 },
5447 },
5448 .write = write_en29lv640b,
5449 .read = read_memmapped,
5450 .voltage = {2700, 3600},
5451 },
5452
5453 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005454 .vendor = "Eon",
5455 .name = "EN29GL064(A)B",
5456 .bustype = BUS_PARALLEL,
5457 .manufacture_id = EON_ID,
5458 .model_id = EON_EN29GL064B,
5459 .total_size = 8192,
5460 .page_size = 128 * 1024, /* actual page size is 16 */
5461 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5462 .tested = TEST_UNTESTED,
5463 .probe = probe_jedec_29gl,
5464 .probe_timing = TIMING_ZERO,
5465 .block_erasers =
5466 {
5467 {
5468 .eraseblocks = {
5469 {8 * 1024, 8},
5470 {64 * 1024, 127},
5471 },
5472 .block_erase = erase_sector_jedec,
5473 }, {
5474 .eraseblocks = { {8 * 1024 * 1024, 1} },
5475 .block_erase = erase_chip_block_jedec,
5476 },
5477 },
5478 .write = write_jedec_1,
5479 .read = read_memmapped,
5480 .voltage = {2700, 3600},
5481 },
5482
5483 {
5484 .vendor = "Eon",
5485 .name = "EN29GL064(A)T",
5486 .bustype = BUS_PARALLEL,
5487 .manufacture_id = EON_ID,
5488 .model_id = EON_EN29GL064T,
5489 .total_size = 8192,
5490 .page_size = 128 * 1024, /* actual page size is 16 */
5491 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5492 .tested = TEST_UNTESTED,
5493 .probe = probe_jedec_29gl,
5494 .probe_timing = TIMING_ZERO,
5495 .block_erasers =
5496 {
5497 {
5498 .eraseblocks = {
5499 {64 * 1024, 127},
5500 {8 * 1024, 8},
5501 },
5502 .block_erase = erase_sector_jedec,
5503 }, {
5504 .eraseblocks = { {8 * 1024 * 1024, 1} },
5505 .block_erase = erase_chip_block_jedec,
5506 },
5507 },
5508 .write = write_jedec_1,
5509 .read = read_memmapped,
5510 .voltage = {2700, 3600},
5511 },
5512
5513 {
5514 .vendor = "Eon",
5515 .name = "EN29GL064H/L",
5516 .bustype = BUS_PARALLEL,
5517 .manufacture_id = EON_ID,
5518 .model_id = EON_EN29GL064HL,
5519 .total_size = 8192,
5520 .page_size = 128 * 1024, /* actual page size is 16 */
5521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5522 .tested = TEST_UNTESTED,
5523 .probe = probe_jedec_29gl,
5524 .probe_timing = TIMING_ZERO,
5525 .block_erasers =
5526 {
5527 {
5528 .eraseblocks = { {64 * 1024, 128} },
5529 .block_erase = erase_sector_jedec,
5530 }, {
5531 .eraseblocks = { {8 * 1024 * 1024, 1} },
5532 .block_erase = erase_chip_block_jedec,
5533 },
5534 },
5535 .write = write_jedec_1,
5536 .read = read_memmapped,
5537 .voltage = {2700, 3600},
5538 },
5539
5540 {
5541 .vendor = "Eon",
5542 .name = "EN29GL128",
5543 .bustype = BUS_PARALLEL,
5544 .manufacture_id = EON_ID,
5545 .model_id = EON_EN29GL128HL,
5546 .total_size = 16384,
5547 .page_size = 128 * 1024, /* actual page size is 16 */
5548 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5549 .tested = TEST_UNTESTED,
5550 .probe = probe_jedec_29gl,
5551 .probe_timing = TIMING_ZERO,
5552 .block_erasers =
5553 {
5554 {
5555 .eraseblocks = { {128 * 1024, 128} },
5556 .block_erase = erase_sector_jedec,
5557 }, {
5558 .eraseblocks = { {16 * 1024 * 1024, 1} },
5559 .block_erase = erase_chip_block_jedec,
5560 },
5561 },
5562 .write = write_jedec_1,
5563 .read = read_memmapped,
5564 .voltage = {2700, 3600},
5565 },
5566
5567 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005568 .vendor = "ESI",
5569 .name = "ES25P40",
5570 .bustype = BUS_SPI,
5571 .manufacture_id = EXCEL_ID_NOPREFIX,
5572 .model_id = EXCEL_ES25P40,
5573 .total_size = 512,
5574 .page_size = 256,
Elyes HAOUASe2c90c42018-08-18 09:04:41 +02005575 /* 256-byte parameter page separate from memory array:
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005576 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5577 .feature_bits = FEATURE_WRSR_WREN,
5578 .tested = TEST_UNTESTED,
5579 .probe = probe_spi_rdid,
5580 .probe_timing = TIMING_ZERO,
5581 .block_erasers =
5582 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005583 {
5584 .eraseblocks = { {64 * 1024, 8} },
5585 .block_erase = spi_block_erase_d8,
5586 }, {
5587 .eraseblocks = { {512 * 1024, 1} },
5588 .block_erase = spi_block_erase_c7,
5589 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005590 },
5591 .printlock = spi_prettyprint_status_register_bp2_srwd,
5592 .unlock = spi_disable_blockprotect_bp2_srwd,
5593 .write = spi_chip_write_256,
5594 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5595 .voltage = {2700, 3600},
5596 },
5597
5598 {
5599 .vendor = "ESI",
5600 .name = "ES25P80",
5601 .bustype = BUS_SPI,
5602 .manufacture_id = EXCEL_ID_NOPREFIX,
5603 .model_id = EXCEL_ES25P80,
5604 .total_size = 1024,
5605 .page_size = 256,
Elyes HAOUASe2c90c42018-08-18 09:04:41 +02005606 /* 256-byte parameter page separate from memory array:
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005607 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5608 .feature_bits = FEATURE_WRSR_WREN,
5609 .tested = TEST_UNTESTED,
5610 .probe = probe_spi_rdid,
5611 .probe_timing = TIMING_ZERO,
5612 .block_erasers =
5613 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005614 {
5615 .eraseblocks = { {64 * 1024, 16} },
5616 .block_erase = spi_block_erase_d8,
5617 }, {
5618 .eraseblocks = { {1024 * 1024, 1} },
5619 .block_erase = spi_block_erase_c7,
5620 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005621 },
5622 .printlock = spi_prettyprint_status_register_bp2_srwd,
5623 .unlock = spi_disable_blockprotect_bp2_srwd,
5624 .write = spi_chip_write_256,
5625 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5626 .voltage = {2700, 3600},
5627 },
5628
5629 {
5630 .vendor = "ESI",
5631 .name = "ES25P16",
5632 .bustype = BUS_SPI,
5633 .manufacture_id = EXCEL_ID_NOPREFIX,
5634 .model_id = EXCEL_ES25P16,
5635 .total_size = 2 * 1024,
5636 .page_size = 256,
Elyes HAOUASe2c90c42018-08-18 09:04:41 +02005637 /* 256-byte parameter page separate from memory array:
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005638 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5639 .feature_bits = FEATURE_WRSR_WREN,
5640 .tested = TEST_UNTESTED,
5641 .probe = probe_spi_rdid,
5642 .probe_timing = TIMING_ZERO,
5643 .block_erasers =
5644 {
5645 {
5646 .eraseblocks = { {64 * 1024, 32} },
5647 .block_erase = spi_block_erase_d8,
5648 }, {
5649 .eraseblocks = { {2 * 1024 * 1024, 1} },
5650 .block_erase = spi_block_erase_c7,
5651 }
5652 },
5653 .printlock = spi_prettyprint_status_register_bp2_srwd,
5654 .unlock = spi_disable_blockprotect_bp2_srwd,
5655 .write = spi_chip_write_256,
5656 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5657 .voltage = {2700, 3600},
5658 },
5659
5660 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005661 .vendor = "Fujitsu",
5662 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005663 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005664 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005665 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005666 .total_size = 512,
5667 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005668 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005669 .tested = TEST_UNTESTED,
5670 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005671 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005672 .block_erasers =
5673 {
5674 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005675 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005676 {16 * 1024, 1},
5677 {8 * 1024, 2},
5678 {32 * 1024, 1},
5679 {64 * 1024, 7},
5680 },
Sean Nelson35727f72010-01-28 23:55:12 +00005681 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005682 }, {
5683 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005684 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005685 },
5686 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005687 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005689 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005690 },
5691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005692 {
5693 .vendor = "Fujitsu",
5694 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005695 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005696 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005697 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005698 .total_size = 512,
5699 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005700 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005701 .tested = TEST_UNTESTED,
5702 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005703 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005704 .block_erasers =
5705 {
5706 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005707 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005708 {64 * 1024, 7},
5709 {32 * 1024, 1},
5710 {8 * 1024, 2},
5711 {16 * 1024, 1},
5712 },
Sean Nelson35727f72010-01-28 23:55:12 +00005713 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005714 }, {
5715 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005716 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005717 },
5718 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005719 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005720 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005721 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005722 },
5723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005724 {
Sean Nelson35727f72010-01-28 23:55:12 +00005725 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005726 .vendor = "Fujitsu",
5727 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005729 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005730 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005731 .total_size = 512,
5732 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005733 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005734 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005735 .probe = probe_jedec,
5736 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005737 .block_erasers =
5738 {
5739 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005740 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005741 {16 * 1024, 1},
5742 {8 * 1024, 2},
5743 {32 * 1024, 1},
5744 {64 * 1024, 7},
5745 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005746 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005747 }, {
5748 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005749 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005750 },
5751 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005752 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005753 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005754 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005755 },
5756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005757 {
5758 .vendor = "Fujitsu",
5759 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005760 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005761 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005762 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005763 .total_size = 512,
5764 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005765 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005766 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005767 .probe = probe_jedec,
5768 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005769 .block_erasers =
5770 {
5771 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005772 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005773 {64 * 1024, 7},
5774 {32 * 1024, 1},
5775 {8 * 1024, 2},
5776 {16 * 1024, 1},
5777 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005778 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005779 }, {
5780 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005781 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005782 },
5783 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005784 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005785 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005786 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005787 },
5788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005789 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005790 .vendor = "Fujitsu",
5791 .name = "MBM29LV160BE",
5792 .bustype = BUS_PARALLEL,
5793 .manufacture_id = FUJITSU_ID,
5794 .model_id = FUJITSU_MBM29LV160BE,
5795 .total_size = 2 * 1024,
5796 .page_size = 0,
5797 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5798 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005799 .probe = probe_jedec,
5800 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005801 .block_erasers =
5802 {
5803 {
5804 .eraseblocks = {
5805 {16 * 1024, 1},
5806 {8 * 1024, 2},
5807 {32 * 1024, 1},
5808 {64 * 1024, 31},
5809 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005810 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005811 }, {
5812 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005813 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005814 },
5815 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005816 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005817 .read = read_memmapped,
5818 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5819 },
5820
5821 {
5822 .vendor = "Fujitsu",
5823 .name = "MBM29LV160TE",
5824 .bustype = BUS_PARALLEL,
5825 .manufacture_id = FUJITSU_ID,
5826 .model_id = FUJITSU_MBM29LV160TE,
5827 .total_size = 2 * 1024,
5828 .page_size = 0,
5829 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5830 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005831 .probe = probe_jedec,
5832 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005833 .block_erasers =
5834 {
5835 {
5836 .eraseblocks = {
5837 {64 * 1024, 31},
5838 {32 * 1024, 1},
5839 {8 * 1024, 2},
5840 {16 * 1024, 1},
5841 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005842 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005843 }, {
5844 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005845 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005846 },
5847 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005848 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005849 .read = read_memmapped,
5850 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5851 },
5852
5853 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005854 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005855 .name = "GD25LQ40",
5856 .bustype = BUS_SPI,
5857 .manufacture_id = GIGADEVICE_ID,
5858 .model_id = GIGADEVICE_GD25LQ40,
5859 .total_size = 512,
5860 .page_size = 256,
5861 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5862 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5863 .tested = TEST_UNTESTED,
5864 .probe = probe_spi_rdid,
5865 .probe_timing = TIMING_ZERO,
5866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = { {4 * 1024, 128} },
5870 .block_erase = spi_block_erase_20,
5871 }, {
5872 .eraseblocks = { {32 * 1024, 16} },
5873 .block_erase = spi_block_erase_52,
5874 }, {
5875 .eraseblocks = { {64 * 1024, 8} },
5876 .block_erase = spi_block_erase_d8,
5877 }, {
5878 .eraseblocks = { {512 * 1024, 1} },
5879 .block_erase = spi_block_erase_60,
5880 }, {
5881 .eraseblocks = { {512 * 1024, 1} },
5882 .block_erase = spi_block_erase_c7,
5883 }
5884 },
5885 .printlock = spi_prettyprint_status_register_bp4_srwd,
5886 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5887 .write = spi_chip_write_256,
5888 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5889 .voltage = {1695, 1950},
5890 },
5891
5892 {
5893 .vendor = "GigaDevice",
5894 .name = "GD25LQ80",
5895 .bustype = BUS_SPI,
5896 .manufacture_id = GIGADEVICE_ID,
5897 .model_id = GIGADEVICE_GD25LQ80,
5898 .total_size = 1024,
5899 .page_size = 256,
5900 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5901 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5902 .tested = TEST_UNTESTED,
5903 .probe = probe_spi_rdid,
5904 .probe_timing = TIMING_ZERO,
5905 .block_erasers =
5906 {
5907 {
5908 .eraseblocks = { {4 * 1024, 256} },
5909 .block_erase = spi_block_erase_20,
5910 }, {
5911 .eraseblocks = { {32 * 1024, 32} },
5912 .block_erase = spi_block_erase_52,
5913 }, {
5914 .eraseblocks = { {64 * 1024, 16} },
5915 .block_erase = spi_block_erase_d8,
5916 }, {
5917 .eraseblocks = { {1 * 1024 * 1024, 1} },
5918 .block_erase = spi_block_erase_60,
5919 }, {
5920 .eraseblocks = { {1 * 1024 * 1024, 1} },
5921 .block_erase = spi_block_erase_c7,
5922 }
5923 },
5924 .printlock = spi_prettyprint_status_register_bp4_srwd,
5925 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5926 .write = spi_chip_write_256,
5927 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5928 .voltage = {1695, 1950},
5929 },
5930
5931 {
5932 .vendor = "GigaDevice",
5933 .name = "GD25LQ16",
5934 .bustype = BUS_SPI,
5935 .manufacture_id = GIGADEVICE_ID,
5936 .model_id = GIGADEVICE_GD25LQ16,
5937 .total_size = 2048,
5938 .page_size = 256,
5939 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5941 .tested = TEST_UNTESTED,
5942 .probe = probe_spi_rdid,
5943 .probe_timing = TIMING_ZERO,
5944 .block_erasers =
5945 {
5946 {
5947 .eraseblocks = { {4 * 1024, 512} },
5948 .block_erase = spi_block_erase_20,
5949 }, {
5950 .eraseblocks = { {32 * 1024, 64} },
5951 .block_erase = spi_block_erase_52,
5952 }, {
5953 .eraseblocks = { {64 * 1024, 32} },
5954 .block_erase = spi_block_erase_d8,
5955 }, {
5956 .eraseblocks = { {2 * 1024 * 1024, 1} },
5957 .block_erase = spi_block_erase_60,
5958 }, {
5959 .eraseblocks = { {2 * 1024 * 1024, 1} },
5960 .block_erase = spi_block_erase_c7,
5961 }
5962 },
5963 .printlock = spi_prettyprint_status_register_bp4_srwd,
5964 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5965 .write = spi_chip_write_256,
5966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5967 .voltage = {1695, 1950},
5968 },
5969
5970 {
5971 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005972 .name = "GD25LQ32",
5973 .bustype = BUS_SPI,
5974 .manufacture_id = GIGADEVICE_ID,
5975 .model_id = GIGADEVICE_GD25LQ32,
5976 .total_size = 4096,
5977 .page_size = 256,
5978 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5980 .tested = TEST_OK_PREW,
5981 .probe = probe_spi_rdid,
5982 .probe_timing = TIMING_ZERO,
5983 .block_erasers =
5984 {
5985 {
5986 .eraseblocks = { {4 * 1024, 1024} },
5987 .block_erase = spi_block_erase_20,
5988 }, {
5989 .eraseblocks = { {32 * 1024, 128} },
5990 .block_erase = spi_block_erase_52,
5991 }, {
5992 .eraseblocks = { {64 * 1024, 64} },
5993 .block_erase = spi_block_erase_d8,
5994 }, {
5995 .eraseblocks = { {4 * 1024 * 1024, 1} },
5996 .block_erase = spi_block_erase_60,
5997 }, {
5998 .eraseblocks = { {4 * 1024 * 1024, 1} },
5999 .block_erase = spi_block_erase_c7,
6000 }
6001 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006002 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006003 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6004 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006005 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6006 .voltage = {1695, 1950},
6007 },
6008
6009 {
6010 .vendor = "GigaDevice",
6011 .name = "GD25LQ64(B)",
6012 .bustype = BUS_SPI,
6013 .manufacture_id = GIGADEVICE_ID,
6014 .model_id = GIGADEVICE_GD25LQ64,
6015 .total_size = 8192,
6016 .page_size = 256,
6017 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6018 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006019 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006020 .probe = probe_spi_rdid,
6021 .probe_timing = TIMING_ZERO,
6022 .block_erasers =
6023 {
6024 {
6025 .eraseblocks = { {4 * 1024, 2048} },
6026 .block_erase = spi_block_erase_20,
6027 }, {
6028 .eraseblocks = { {32 * 1024, 256} },
6029 .block_erase = spi_block_erase_52,
6030 }, {
6031 .eraseblocks = { {64 * 1024, 128} },
6032 .block_erase = spi_block_erase_d8,
6033 }, {
6034 .eraseblocks = { {8 * 1024 * 1024, 1} },
6035 .block_erase = spi_block_erase_60,
6036 }, {
6037 .eraseblocks = { {8 * 1024 * 1024, 1} },
6038 .block_erase = spi_block_erase_c7,
6039 }
6040 },
6041 .printlock = spi_prettyprint_status_register_bp4_srwd,
6042 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6043 .write = spi_chip_write_256,
6044 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6045 .voltage = {1695, 1950},
6046 },
6047
6048 {
6049 .vendor = "GigaDevice",
6050 .name = "GD25LQ128",
6051 .bustype = BUS_SPI,
6052 .manufacture_id = GIGADEVICE_ID,
6053 .model_id = GIGADEVICE_GD25LQ128,
6054 .total_size = 16384,
6055 .page_size = 256,
6056 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6057 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6058 .tested = TEST_UNTESTED,
6059 .probe = probe_spi_rdid,
6060 .probe_timing = TIMING_ZERO,
6061 .block_erasers =
6062 {
6063 {
6064 .eraseblocks = { {4 * 1024, 4096} },
6065 .block_erase = spi_block_erase_20,
6066 }, {
6067 .eraseblocks = { {32 * 1024, 512} },
6068 .block_erase = spi_block_erase_52,
6069 }, {
6070 .eraseblocks = { {64 * 1024, 256} },
6071 .block_erase = spi_block_erase_d8,
6072 }, {
6073 .eraseblocks = { {16 * 1024 * 1024, 1} },
6074 .block_erase = spi_block_erase_60,
6075 }, {
6076 .eraseblocks = { {16 * 1024 * 1024, 1} },
6077 .block_erase = spi_block_erase_c7,
6078 }
6079 },
6080 .printlock = spi_prettyprint_status_register_bp4_srwd,
6081 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6082 .write = spi_chip_write_256,
6083 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6084 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006085 },
6086
6087 {
6088 .vendor = "GigaDevice",
6089 .name = "GD25Q512",
6090 .bustype = BUS_SPI,
6091 .manufacture_id = GIGADEVICE_ID,
6092 .model_id = GIGADEVICE_GD25Q512,
6093 .total_size = 64,
6094 .page_size = 256,
6095 .feature_bits = FEATURE_WRSR_WREN,
Nico Huberc6fe5d82018-08-18 12:45:58 +02006096 .tested = TEST_OK_PREW,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006097 .probe = probe_spi_rdid,
6098 .probe_timing = TIMING_ZERO,
6099 .block_erasers = {
6100 {
6101 .eraseblocks = { {4 * 1024, 16} },
6102 .block_erase = spi_block_erase_20,
6103 }, {
6104 .eraseblocks = { {32 * 1024, 2} },
6105 .block_erase = spi_block_erase_52,
6106 }, {
6107 .eraseblocks = { {64 * 1024, 1} },
6108 .block_erase = spi_block_erase_60,
6109 }, {
6110 .eraseblocks = { {64 * 1024, 1} },
6111 .block_erase = spi_block_erase_c7,
6112 }
6113 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006114 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006115 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6116 .write = spi_chip_write_256,
6117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6118 .voltage = {2700, 3600},
6119 },
6120
6121 {
6122 .vendor = "GigaDevice",
6123 .name = "GD25Q10",
6124 .bustype = BUS_SPI,
6125 .manufacture_id = GIGADEVICE_ID,
6126 .model_id = GIGADEVICE_GD25Q10,
6127 .total_size = 128,
6128 .page_size = 256,
6129 .feature_bits = FEATURE_WRSR_WREN,
6130 .tested = TEST_UNTESTED,
6131 .probe = probe_spi_rdid,
6132 .probe_timing = TIMING_ZERO,
6133 .block_erasers = {
6134 {
6135 .eraseblocks = { {4 * 1024, 32} },
6136 .block_erase = spi_block_erase_20,
6137 }, {
6138 .eraseblocks = { {32 * 1024, 4} },
6139 .block_erase = spi_block_erase_52,
6140 }, {
6141 .eraseblocks = { {64 * 1024, 2} },
6142 .block_erase = spi_block_erase_d8,
6143 }, {
6144 .eraseblocks = { {128 * 1024, 1} },
6145 .block_erase = spi_block_erase_60,
6146 }, {
6147 .eraseblocks = { {128 * 1024, 1} },
6148 .block_erase = spi_block_erase_c7,
6149 }
6150 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006151 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006152 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6153 .write = spi_chip_write_256,
6154 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6155 .voltage = {2700, 3600},
6156 },
6157
6158 {
6159 .vendor = "GigaDevice",
6160 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006161 .bustype = BUS_SPI,
6162 .manufacture_id = GIGADEVICE_ID,
6163 .model_id = GIGADEVICE_GD25Q20,
6164 .total_size = 256,
6165 .page_size = 256,
6166 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00006167 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006168 .probe = probe_spi_rdid,
6169 .probe_timing = TIMING_ZERO,
6170 .block_erasers =
6171 {
6172 {
6173 .eraseblocks = { {4 * 1024, 64} },
6174 .block_erase = spi_block_erase_20,
6175 }, {
6176 .eraseblocks = { {32 * 1024, 8} },
6177 .block_erase = spi_block_erase_52,
6178 }, {
6179 .eraseblocks = { {64 * 1024, 4} },
6180 .block_erase = spi_block_erase_d8,
6181 }, {
6182 .eraseblocks = { {256 * 1024, 1} },
6183 .block_erase = spi_block_erase_60,
6184 }, {
6185 .eraseblocks = { {256 * 1024, 1} },
6186 .block_erase = spi_block_erase_c7,
6187 }
6188 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006189 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006190 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006191 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006192 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006193 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006194 },
6195
6196 {
6197 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006198 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006199 .bustype = BUS_SPI,
6200 .manufacture_id = GIGADEVICE_ID,
6201 .model_id = GIGADEVICE_GD25Q40,
6202 .total_size = 512,
6203 .page_size = 256,
6204 .feature_bits = FEATURE_WRSR_WREN,
6205 .tested = TEST_UNTESTED,
6206 .probe = probe_spi_rdid,
6207 .probe_timing = TIMING_ZERO,
6208 .block_erasers =
6209 {
6210 {
6211 .eraseblocks = { {4 * 1024, 128} },
6212 .block_erase = spi_block_erase_20,
6213 }, {
6214 .eraseblocks = { {32 * 1024, 16} },
6215 .block_erase = spi_block_erase_52,
6216 }, {
6217 .eraseblocks = { {64 * 1024, 8} },
6218 .block_erase = spi_block_erase_d8,
6219 }, {
6220 .eraseblocks = { {512 * 1024, 1} },
6221 .block_erase = spi_block_erase_60,
6222 }, {
6223 .eraseblocks = { {512 * 1024, 1} },
6224 .block_erase = spi_block_erase_c7,
6225 }
6226 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006227 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006228 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006229 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006230 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006231 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006232 },
6233
6234 {
6235 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006236 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
6239 .model_id = GIGADEVICE_GD25Q80,
6240 .total_size = 1024,
6241 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6244 .tested = TEST_OK_PREW,
6245 .probe = probe_spi_rdid,
6246 .probe_timing = TIMING_ZERO,
6247 .block_erasers =
6248 {
6249 {
6250 .eraseblocks = { {4 * 1024, 256} },
6251 .block_erase = spi_block_erase_20,
6252 }, {
6253 .eraseblocks = { {32 * 1024, 32} },
6254 .block_erase = spi_block_erase_52,
6255 }, {
6256 .eraseblocks = { {64 * 1024, 16} },
6257 .block_erase = spi_block_erase_d8,
6258 }, {
6259 .eraseblocks = { {1024 * 1024, 1} },
6260 .block_erase = spi_block_erase_60,
6261 }, {
6262 .eraseblocks = { {1024 * 1024, 1} },
6263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006266 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006267 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006268 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006269 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006270 .voltage = {2700, 3600},
6271 },
6272
6273 {
6274 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006275 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
6278 .model_id = GIGADEVICE_GD25Q16,
6279 .total_size = 2048,
6280 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006283 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006284 .probe = probe_spi_rdid,
6285 .probe_timing = TIMING_ZERO,
6286 .block_erasers =
6287 {
6288 {
6289 .eraseblocks = { {4 * 1024, 512} },
6290 .block_erase = spi_block_erase_20,
6291 }, {
6292 .eraseblocks = { {32 * 1024, 64} },
6293 .block_erase = spi_block_erase_52,
6294 }, {
6295 .eraseblocks = { {64 * 1024, 32} },
6296 .block_erase = spi_block_erase_d8,
6297 }, {
6298 .eraseblocks = { {2 * 1024 * 1024, 1} },
6299 .block_erase = spi_block_erase_60,
6300 }, {
6301 .eraseblocks = { {2 * 1024 * 1024, 1} },
6302 .block_erase = spi_block_erase_c7,
6303 }
6304 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006305 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006306 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006307 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006309 .voltage = {2700, 3600},
6310 },
6311
6312 {
6313 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006314 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006315 .bustype = BUS_SPI,
6316 .manufacture_id = GIGADEVICE_ID,
6317 .model_id = GIGADEVICE_GD25Q32,
6318 .total_size = 4096,
6319 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006320 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006322 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006323 .probe = probe_spi_rdid,
6324 .probe_timing = TIMING_ZERO,
6325 .block_erasers =
6326 {
6327 {
6328 .eraseblocks = { {4 * 1024, 1024} },
6329 .block_erase = spi_block_erase_20,
6330 }, {
6331 .eraseblocks = { {32 * 1024, 128} },
6332 .block_erase = spi_block_erase_52,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 64} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {4 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {4 * 1024 * 1024, 1} },
6341 .block_erase = spi_block_erase_c7,
6342 }
6343 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006344 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006345 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006346 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006347 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006348 .voltage = {2700, 3600},
6349 },
6350
6351 {
6352 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006353 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006354 .bustype = BUS_SPI,
6355 .manufacture_id = GIGADEVICE_ID,
6356 .model_id = GIGADEVICE_GD25Q64,
6357 .total_size = 8192,
6358 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006359 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006361 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006362 .probe = probe_spi_rdid,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 2048} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {32 * 1024, 256} },
6371 .block_erase = spi_block_erase_52,
6372 }, {
6373 .eraseblocks = { {64 * 1024, 128} },
6374 .block_erase = spi_block_erase_d8,
6375 }, {
6376 .eraseblocks = { {8 * 1024 * 1024, 1} },
6377 .block_erase = spi_block_erase_60,
6378 }, {
6379 .eraseblocks = { {8 * 1024 * 1024, 1} },
6380 .block_erase = spi_block_erase_c7,
6381 }
6382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006383 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006384 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006385 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006387 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006388 },
6389
6390 {
6391 .vendor = "GigaDevice",
Angel Pons20657ce2018-09-30 17:05:18 +02006392 .name = "GD25B128B/GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006393 .bustype = BUS_SPI,
6394 .manufacture_id = GIGADEVICE_ID,
6395 .model_id = GIGADEVICE_GD25Q128,
6396 .total_size = 16384,
6397 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006398 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons20657ce2018-09-30 17:05:18 +02006400 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006401 .probe = probe_spi_rdid,
6402 .probe_timing = TIMING_ZERO,
6403 .block_erasers =
6404 {
6405 {
6406 .eraseblocks = { {4 * 1024, 4096} },
6407 .block_erase = spi_block_erase_20,
6408 }, {
6409 .eraseblocks = { {32 * 1024, 512} },
6410 .block_erase = spi_block_erase_52,
6411 }, {
6412 .eraseblocks = { {64 * 1024, 256} },
6413 .block_erase = spi_block_erase_d8,
6414 }, {
6415 .eraseblocks = { {16 * 1024 * 1024, 1} },
6416 .block_erase = spi_block_erase_60,
6417 }, {
6418 .eraseblocks = { {16 * 1024 * 1024, 1} },
6419 .block_erase = spi_block_erase_c7,
6420 }
6421 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006422 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006423 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6424 .write = spi_chip_write_256,
6425 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6426 .voltage = {2700, 3600},
6427 },
6428
6429 {
6430 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006431 .name = "GD25Q128C",
6432 .bustype = BUS_SPI,
6433 .manufacture_id = GIGADEVICE_ID,
6434 .model_id = GIGADEVICE_GD25Q128,
6435 .total_size = 16384,
6436 .page_size = 256,
6437 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6438 /* QPI: enable 0x38, disable 0xFF */
6439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006440 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006441 .probe = probe_spi_rdid,
6442 .probe_timing = TIMING_ZERO,
6443 .block_erasers =
6444 {
6445 {
6446 .eraseblocks = { {4 * 1024, 4096} },
6447 .block_erase = spi_block_erase_20,
6448 }, {
6449 .eraseblocks = { {32 * 1024, 512} },
6450 .block_erase = spi_block_erase_52,
6451 }, {
6452 .eraseblocks = { {64 * 1024, 256} },
6453 .block_erase = spi_block_erase_d8,
6454 }, {
6455 .eraseblocks = { {16 * 1024 * 1024, 1} },
6456 .block_erase = spi_block_erase_60,
6457 }, {
6458 .eraseblocks = { {16 * 1024 * 1024, 1} },
6459 .block_erase = spi_block_erase_c7,
6460 }
6461 },
6462 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6463 .printlock = spi_prettyprint_status_register_bp4_srwd,
6464 .unlock = spi_disable_blockprotect_bp4_srwd,
6465 .write = spi_chip_write_256,
6466 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6467 .voltage = {2700, 3600},
6468 },
6469
6470 {
6471 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006472 .name = "GD25T80",
6473 .bustype = BUS_SPI,
6474 .manufacture_id = GIGADEVICE_ID,
6475 .model_id = GIGADEVICE_GD25T80,
6476 .total_size = 1024,
6477 .page_size = 256,
6478 /* OTP: 256B total; enter 0x3A */
6479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6480 .tested = TEST_UNTESTED,
6481 .probe = probe_spi_rdid,
6482 .probe_timing = TIMING_ZERO,
6483 .block_erasers = {
6484 {
6485 .eraseblocks = { {4 * 1024, 256} },
6486 .block_erase = spi_block_erase_20,
6487 }, {
6488 .eraseblocks = { {64 * 1024, 16} },
6489 .block_erase = spi_block_erase_52,
6490 }, {
6491 .eraseblocks = { {64 * 1024, 16} },
6492 .block_erase = spi_block_erase_d8,
6493 }, {
6494 .eraseblocks = { {1024 * 1024, 1} },
6495 .block_erase = spi_block_erase_60,
6496 }, {
6497 .eraseblocks = { {1024 * 1024, 1} },
6498 .block_erase = spi_block_erase_c7,
6499 }
6500 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006501 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006502 .unlock = spi_disable_blockprotect,
6503 .write = spi_chip_write_256,
6504 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006505 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006506 },
6507
6508 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006509 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006510 .name = "GD25VQ21B",
6511 .bustype = BUS_SPI,
6512 .manufacture_id = GIGADEVICE_ID,
6513 .model_id = GIGADEVICE_GD25VQ21B,
6514 .total_size = 256,
6515 .page_size = 256,
6516 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6518 .tested = TEST_UNTESTED,
6519 .probe = probe_spi_rdid,
6520 .probe_timing = TIMING_ZERO,
6521 .block_erasers =
6522 {
6523 {
6524 .eraseblocks = { { 4 * 1024, 64} },
6525 .block_erase = spi_block_erase_20,
6526 }, {
6527 .eraseblocks = { { 32 * 1024, 8} },
6528 .block_erase = spi_block_erase_52,
6529 }, {
6530 .eraseblocks = { { 64 * 1024, 4} },
6531 .block_erase = spi_block_erase_d8,
6532 }, {
6533 .eraseblocks = { {256 * 1024, 1} },
6534 .block_erase = spi_block_erase_60,
6535 }, {
6536 .eraseblocks = { {256 * 1024, 1} },
6537 .block_erase = spi_block_erase_c7,
6538 }
6539 },
6540 .printlock = spi_prettyprint_status_register_bp4_srwd,
6541 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6542 .write = spi_chip_write_256,
6543 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6544 .voltage = {2300, 3600},
6545 },
6546
6547 {
6548 .vendor = "GigaDevice",
6549 .name = "GD25VQ40C",
6550 .bustype = BUS_SPI,
6551 .manufacture_id = GIGADEVICE_ID,
6552 .model_id = GIGADEVICE_GD25VQ41B,
6553 .total_size = 512,
6554 .page_size = 256,
6555 /* Supports SFDP */
6556 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6558 .tested = TEST_UNTESTED,
6559 .probe = probe_spi_rdid,
6560 .probe_timing = TIMING_ZERO,
6561 .block_erasers =
6562 {
6563 {
6564 .eraseblocks = { { 4 * 1024, 128} },
6565 .block_erase = spi_block_erase_20,
6566 }, {
6567 .eraseblocks = { { 32 * 1024, 16} },
6568 .block_erase = spi_block_erase_52,
6569 }, {
6570 .eraseblocks = { { 64 * 1024, 8} },
6571 .block_erase = spi_block_erase_d8,
6572 }, {
6573 .eraseblocks = { {512 * 1024, 1} },
6574 .block_erase = spi_block_erase_60,
6575 }, {
6576 .eraseblocks = { {512 * 1024, 1} },
6577 .block_erase = spi_block_erase_c7,
6578 }
6579 },
6580 .printlock = spi_prettyprint_status_register_bp4_srwd,
6581 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6582 .write = spi_chip_write_256,
6583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6584 .voltage = {2300, 3600},
6585 },
6586
6587 {
6588 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006589 .name = "GD25VQ41B",
6590 .bustype = BUS_SPI,
6591 .manufacture_id = GIGADEVICE_ID,
6592 .model_id = GIGADEVICE_GD25VQ41B,
6593 .total_size = 512,
6594 .page_size = 256,
6595 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006597 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006598 .probe = probe_spi_rdid,
6599 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006600 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006601 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006602 {
6603 .eraseblocks = { { 4 * 1024, 128} },
6604 .block_erase = spi_block_erase_20,
6605 }, {
6606 .eraseblocks = { { 32 * 1024, 16} },
6607 .block_erase = spi_block_erase_52,
6608 }, {
6609 .eraseblocks = { { 64 * 1024, 8} },
6610 .block_erase = spi_block_erase_d8,
6611 }, {
6612 .eraseblocks = { {512 * 1024, 1} },
6613 .block_erase = spi_block_erase_60,
6614 }, {
6615 .eraseblocks = { {512 * 1024, 1} },
6616 .block_erase = spi_block_erase_c7,
6617 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006618 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006619 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006620 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6621 .write = spi_chip_write_256,
6622 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6623 .voltage = {2300, 3600},
6624 },
6625
6626 {
6627 .vendor = "GigaDevice",
6628 .name = "GD25VQ80C",
6629 .bustype = BUS_SPI,
6630 .manufacture_id = GIGADEVICE_ID,
6631 .model_id = GIGADEVICE_GD25VQ80C,
6632 .total_size = 1024,
6633 .page_size = 256,
6634 /* Supports SFDP */
6635 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6637 .tested = TEST_UNTESTED,
6638 .probe = probe_spi_rdid,
6639 .probe_timing = TIMING_ZERO,
6640 .block_erasers =
6641 {
6642 {
6643 .eraseblocks = { { 4 * 1024, 256} },
6644 .block_erase = spi_block_erase_20,
6645 }, {
6646 .eraseblocks = { { 32 * 1024, 32} },
6647 .block_erase = spi_block_erase_52,
6648 }, {
6649 .eraseblocks = { { 64 * 1024, 16} },
6650 .block_erase = spi_block_erase_d8,
6651 }, {
6652 .eraseblocks = { {1024 * 1024, 1} },
6653 .block_erase = spi_block_erase_60,
6654 }, {
6655 .eraseblocks = { {1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_c7,
6657 }
6658 },
6659 .printlock = spi_prettyprint_status_register_bp4_srwd,
6660 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6661 .write = spi_chip_write_256,
6662 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6663 .voltage = {2300, 3600},
6664 },
6665
6666 {
6667 .vendor = "GigaDevice",
6668 .name = "GD25VQ16C",
6669 .bustype = BUS_SPI,
6670 .manufacture_id = GIGADEVICE_ID,
6671 .model_id = GIGADEVICE_GD25VQ16C,
6672 .total_size = 2 * 1024,
6673 .page_size = 256,
6674 /* Supports SFDP */
6675 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6677 .tested = TEST_UNTESTED,
6678 .probe = probe_spi_rdid,
6679 .probe_timing = TIMING_ZERO,
6680 .block_erasers =
6681 {
6682 {
6683 .eraseblocks = { { 4 * 1024, 512} },
6684 .block_erase = spi_block_erase_20,
6685 }, {
6686 .eraseblocks = { { 32 * 1024, 64} },
6687 .block_erase = spi_block_erase_52,
6688 }, {
6689 .eraseblocks = { { 64 * 1024, 32} },
6690 .block_erase = spi_block_erase_d8,
6691 }, {
6692 .eraseblocks = { {2 * 1024 * 1024, 1} },
6693 .block_erase = spi_block_erase_60,
6694 }, {
6695 .eraseblocks = { {2 * 1024 * 1024, 1} },
6696 .block_erase = spi_block_erase_c7,
6697 }
6698 },
6699 .printlock = spi_prettyprint_status_register_bp4_srwd,
6700 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006701 .write = spi_chip_write_256,
6702 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6703 .voltage = {2300, 3600},
6704 },
6705
6706 {
David Borgc96a8bd2010-06-21 16:12:22 +00006707 .vendor = "Hyundai",
6708 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006709 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006710 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006711 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006712 .total_size = 256,
6713 .page_size = 256 * 1024,
6714 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006715 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006716 .probe = probe_jedec,
6717 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6718 .block_erasers =
6719 {
6720 {
6721 .eraseblocks = {
6722 {64 * 1024, 3},
6723 {32 * 1024, 1},
6724 {8 * 1024, 2},
6725 {16 * 1024, 1},
6726 },
6727 .block_erase = erase_sector_jedec,
6728 }, {
6729 .eraseblocks = { {256 * 1024, 1} },
6730 .block_erase = erase_chip_block_jedec,
6731 },
6732 },
6733 .write = write_jedec_1,
6734 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006735 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006736 },
6737
6738 {
6739 .vendor = "Hyundai",
6740 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006741 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006742 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006743 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006744 .total_size = 256,
6745 .page_size = 256 * 1024,
6746 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6747 .tested = TEST_UNTESTED,
6748 .probe = probe_jedec,
6749 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6750 .block_erasers =
6751 {
6752 {
6753 .eraseblocks = {
6754 {16 * 1024, 1},
6755 {8 * 1024, 2},
6756 {32 * 1024, 1},
6757 {64 * 1024, 3},
6758 },
6759 .block_erase = erase_sector_jedec,
6760 }, {
6761 .eraseblocks = { {256 * 1024, 1} },
6762 .block_erase = erase_chip_block_jedec,
6763 },
6764 },
6765 .write = write_jedec_1,
6766 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006767 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006768 },
6769
6770 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006771 .vendor = "Hyundai",
6772 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006773 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006774 .manufacture_id = HYUNDAI_ID,
6775 .model_id = HYUNDAI_HY29F040A,
6776 .total_size = 512,
6777 .page_size = 64 * 1024,
6778 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6779 .tested = TEST_UNTESTED,
6780 .probe = probe_jedec,
6781 .probe_timing = TIMING_ZERO,
6782 .block_erasers =
6783 {
6784 {
6785 .eraseblocks = { {64 * 1024, 8} },
6786 .block_erase = erase_sector_jedec,
6787 }, {
6788 .eraseblocks = { {512 * 1024, 1} },
6789 .block_erase = erase_chip_block_jedec,
6790 },
6791 },
6792 .write = write_jedec_1,
6793 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006794 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006795 },
6796
6797 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006798 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006799 .name = "25F160S33B8",
6800 .bustype = BUS_SPI,
6801 .manufacture_id = INTEL_ID,
6802 .model_id = INTEL_25F160S33B8,
6803 .total_size = 2048,
6804 .page_size = 256,
6805 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6807 .tested = TEST_UNTESTED,
6808 .probe = probe_spi_rdid,
6809 .probe_timing = TIMING_ZERO,
6810 .block_erasers =
6811 {
6812 {
6813 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6814 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6815 * have no effect on the memory contents, but sets a flag in the SR.
6816 .eraseblocks = {
6817 {8 * 1024, 8},
6818 {64 * 1024, 31} // inaccessible
6819 },
6820 .block_erase = spi_block_erase_40,
6821 }, { */
6822 .eraseblocks = { {64 * 1024, 32} },
6823 .block_erase = spi_block_erase_d8,
6824 }, {
6825 .eraseblocks = { {2 * 1024 * 1024, 1} },
6826 .block_erase = spi_block_erase_c7,
6827 }
6828 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006829 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6830 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006831 .write = spi_chip_write_256,
6832 .read = spi_chip_read, /* also fast read 0x0B */
6833 .voltage = {2700, 3600},
6834 },
6835
6836 {
6837 .vendor = "Intel",
6838 .name = "25F160S33T8",
6839 .bustype = BUS_SPI,
6840 .manufacture_id = INTEL_ID,
6841 .model_id = INTEL_25F160S33T8,
6842 .total_size = 2048,
6843 .page_size = 256,
6844 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6846 .tested = TEST_UNTESTED,
6847 .probe = probe_spi_rdid,
6848 .probe_timing = TIMING_ZERO,
6849 .block_erasers =
6850 {
6851 {
6852 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6853 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6854 * have no effect on the memory contents, but sets a flag in the SR.
6855 .eraseblocks = {
6856 {64 * 1024, 31}, // inaccessible
6857 {8 * 1024, 8}
6858 },
6859 .block_erase = spi_block_erase_40,
6860 }, { */
6861 .eraseblocks = { {64 * 1024, 32} },
6862 .block_erase = spi_block_erase_d8,
6863 }, {
6864 .eraseblocks = { {2 * 1024 * 1024, 1} },
6865 .block_erase = spi_block_erase_c7,
6866 }
6867 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006868 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6869 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006870 .write = spi_chip_write_256,
6871 .read = spi_chip_read, /* also fast read 0x0B */
6872 .voltage = {2700, 3600},
6873 },
6874
6875 {
6876 .vendor = "Intel",
6877 .name = "25F320S33B8",
6878 .bustype = BUS_SPI,
6879 .manufacture_id = INTEL_ID,
6880 .model_id = INTEL_25F320S33B8,
6881 .total_size = 4096,
6882 .page_size = 256,
6883 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6885 .tested = TEST_UNTESTED,
6886 .probe = probe_spi_rdid,
6887 .probe_timing = TIMING_ZERO,
6888 .block_erasers =
6889 {
6890 {
6891 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6892 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6893 * have no effect on the memory contents, but sets a flag in the SR.
6894 .eraseblocks = {
6895 {8 * 1024, 8},
6896 {64 * 1024, 63} // inaccessible
6897 },
6898 .block_erase = spi_block_erase_40,
6899 }, { */
6900 .eraseblocks = { {64 * 1024, 64} },
6901 .block_erase = spi_block_erase_d8,
6902 }, {
6903 .eraseblocks = { {4 * 1024 * 1024, 1} },
6904 .block_erase = spi_block_erase_c7,
6905 }
6906 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006907 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6908 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006909 .write = spi_chip_write_256,
6910 .read = spi_chip_read, /* also fast read 0x0B */
6911 .voltage = {2700, 3600},
6912 },
6913
6914 {
6915 .vendor = "Intel",
6916 .name = "25F320S33T8",
6917 .bustype = BUS_SPI,
6918 .manufacture_id = INTEL_ID,
6919 .model_id = INTEL_25F320S33T8,
6920 .total_size = 4096,
6921 .page_size = 256,
6922 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6923 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6924 .tested = TEST_UNTESTED,
6925 .probe = probe_spi_rdid,
6926 .probe_timing = TIMING_ZERO,
6927 .block_erasers =
6928 {
6929 {
6930 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6931 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6932 * have no effect on the memory contents, but sets a flag in the SR.
6933 .eraseblocks = {
6934 {64 * 1024, 63}, // inaccessible
6935 {8 * 1024, 8}
6936 },
6937 .block_erase = spi_block_erase_40,
6938 }, { */
6939 .eraseblocks = { {64 * 1024, 64} },
6940 .block_erase = spi_block_erase_d8,
6941 }, {
6942 .eraseblocks = { {4 * 1024 * 1024, 1} },
6943 .block_erase = spi_block_erase_c7,
6944 }
6945 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006946 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6947 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006948 .write = spi_chip_write_256,
6949 .read = spi_chip_read, /* also fast read 0x0B */
6950 .voltage = {2700, 3600},
6951 },
6952
6953 {
6954 .vendor = "Intel",
6955 .name = "25F640S33B8",
6956 .bustype = BUS_SPI,
6957 .manufacture_id = INTEL_ID,
6958 .model_id = INTEL_25F640S33B8,
6959 .total_size = 8192,
6960 .page_size = 256,
6961 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6963 .tested = TEST_UNTESTED,
6964 .probe = probe_spi_rdid,
6965 .probe_timing = TIMING_ZERO,
6966 .block_erasers =
6967 {
6968 {
6969 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6970 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6971 * have no effect on the memory contents, but sets a flag in the SR.
6972 .eraseblocks = {
6973 {8 * 1024, 8},
6974 {64 * 1024, 127} // inaccessible
6975 },
6976 .block_erase = spi_block_erase_40,
6977 }, { */
6978 .eraseblocks = { {64 * 1024, 128} },
6979 .block_erase = spi_block_erase_d8,
6980 }, {
6981 .eraseblocks = { {8 * 1024 * 1024, 1} },
6982 .block_erase = spi_block_erase_c7,
6983 }
6984 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006985 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6986 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006987 .write = spi_chip_write_256,
6988 .read = spi_chip_read, /* also fast read 0x0B */
6989 .voltage = {2700, 3600},
6990 },
6991
6992 {
6993 .vendor = "Intel",
6994 .name = "25F640S33T8",
6995 .bustype = BUS_SPI,
6996 .manufacture_id = INTEL_ID,
6997 .model_id = INTEL_25F640S33T8,
6998 .total_size = 8192,
6999 .page_size = 256,
7000 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7001 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7002 .tested = TEST_UNTESTED,
7003 .probe = probe_spi_rdid,
7004 .probe_timing = TIMING_ZERO,
7005 .block_erasers =
7006 {
7007 {
7008 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7009 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7010 * have no effect on the memory contents, but sets a flag in the SR.
7011 .eraseblocks = {
7012 {64 * 1024, 127}, // inaccessible
7013 {8 * 1024, 8}
7014 },
7015 .block_erase = spi_block_erase_40,
7016 }, { */
7017 .eraseblocks = { {64 * 1024, 128} },
7018 .block_erase = spi_block_erase_d8,
7019 }, {
7020 .eraseblocks = { {8 * 1024 * 1024, 1} },
7021 .block_erase = spi_block_erase_c7,
7022 }
7023 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00007024 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7025 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00007026 .write = spi_chip_write_256,
7027 .read = spi_chip_read, /* also fast read 0x0B */
7028 .voltage = {2700, 3600},
7029 },
7030
7031 {
7032 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007033 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007034 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007035 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007036 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007037 .total_size = 128,
7038 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00007039 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007040 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007041 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00007042 .block_erasers =
7043 {
7044 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007045 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007046 {8 * 1024, 1},
7047 {4 * 1024, 2},
7048 {112 * 1024, 1},
7049 },
Sean Nelson28accc22010-03-19 18:47:06 +00007050 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007051 },
7052 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007053 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007055 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007056 },
7057
7058 {
7059 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007060 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007061 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007062 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007063 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007064 .total_size = 128,
7065 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00007066 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007067 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007068 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00007069 .block_erasers =
7070 {
7071 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007072 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007073 {112 * 1024, 1},
7074 {4 * 1024, 2},
7075 {8 * 1024, 1},
7076 },
Sean Nelson28accc22010-03-19 18:47:06 +00007077 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007078 },
7079 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007080 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007082 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007083 },
7084
7085 {
7086 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007087 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007088 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007089 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007090 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007091 .total_size = 256,
7092 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007093 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007094 .probe = probe_82802ab,
7095 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7096 .block_erasers =
7097 {
7098 {
7099 .eraseblocks = {
7100 {128 * 1024, 1},
7101 {96 * 1024, 1},
7102 {8 * 1024, 2},
7103 {16 * 1024, 1},
7104 },
7105 .block_erase = erase_block_82802ab,
7106 },
7107 },
7108 .write = write_82802ab,
7109 .read = read_memmapped,
7110 },
7111
7112 {
7113 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007114 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007115 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007116 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007117 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007118 .total_size = 512,
7119 .page_size = 256,
7120 .tested = TEST_UNTESTED,
7121 .probe = probe_82802ab,
7122 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007123 .block_erasers =
7124 {
7125 {
7126 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007127 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007128 },
7129 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007130 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007131 .write = write_82802ab,
7132 .read = read_memmapped,
7133 },
7134
7135 {
7136 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007137 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007138 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007139 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007140 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007141 .total_size = 512,
7142 .page_size = 128 * 1024, /* maximal block size */
7143 .tested = TEST_UNTESTED,
7144 .probe = probe_82802ab,
7145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7146 .block_erasers =
7147 {
7148 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007149 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007150 {16 * 1024, 1},
7151 {8 * 1024, 2},
7152 {96 * 1024, 1},
7153 {128 * 1024, 3},
7154 },
7155 .block_erase = erase_block_82802ab,
7156 },
7157 },
7158 .write = write_82802ab,
7159 .read = read_memmapped,
7160 },
7161
7162 {
7163 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007164 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007165 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007166 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007167 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007168 .total_size = 512,
7169 .page_size = 128 * 1024, /* maximal block size */
7170 .tested = TEST_UNTESTED,
7171 .probe = probe_82802ab,
7172 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7173 .block_erasers =
7174 {
7175 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007176 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007177 {128 * 1024, 3},
7178 {96 * 1024, 1},
7179 {8 * 1024, 2},
7180 {16 * 1024, 1},
7181 },
7182 .block_erase = erase_block_82802ab,
7183 },
7184 },
7185 .write = write_82802ab,
7186 .read = read_memmapped,
7187 },
7188
7189 {
7190 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007191 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007192 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007193 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007194 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007195 .total_size = 512,
7196 .page_size = 128 * 1024, /* maximal block size */
7197 .feature_bits = FEATURE_ADDR_SHIFTED,
7198 .tested = TEST_UNTESTED,
7199 .probe = probe_82802ab,
7200 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7201 .block_erasers =
7202 {
7203 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007204 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007205 {16 * 1024, 1},
7206 {8 * 1024, 2},
7207 {96 * 1024, 1},
7208 {128 * 1024, 3},
7209 },
7210 .block_erase = erase_block_82802ab,
7211 },
7212 },
7213 .write = write_82802ab,
7214 .read = read_memmapped,
7215 },
7216
7217 {
7218 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007219 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007220 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007221 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007222 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007223 .total_size = 512,
7224 .page_size = 128 * 1024, /* maximal block size */
7225 .feature_bits = FEATURE_ADDR_SHIFTED,
7226 .tested = TEST_UNTESTED,
7227 .probe = probe_82802ab,
7228 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7229 .block_erasers =
7230 {
7231 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007232 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007233 {128 * 1024, 3},
7234 {96 * 1024, 1},
7235 {8 * 1024, 2},
7236 {16 * 1024, 1},
7237 },
7238 .block_erase = erase_block_82802ab,
7239 },
7240 },
7241 .write = write_82802ab,
7242 .read = read_memmapped,
7243 },
7244
7245 {
7246 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007247 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007248 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007249 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007250 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007251 .total_size = 512,
7252 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007253 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007254 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007255 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007256 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007257 .block_erasers =
7258 {
7259 {
7260 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007261 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007262 },
7263 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007264 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007265 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007267 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007268 },
7269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007270 {
7271 .vendor = "Intel",
7272 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007273 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007274 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007275 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007276 .total_size = 1024,
7277 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007278 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007279 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007280 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007281 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007282 .block_erasers =
7283 {
7284 {
7285 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007286 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007287 },
7288 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007289 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007290 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007292 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007293 },
7294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007295 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007296 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007297 .name = "IS25LP064",
7298 .bustype = BUS_SPI,
7299 .manufacture_id = ISSI_ID_SPI,
7300 .model_id = ISSI_IS25LP064,
7301 .total_size = 8192,
7302 .page_size = 256,
7303 /* OTP: 1024B total; read 0x48; write 0x42 */
7304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7305 .tested = TEST_UNTESTED,
7306 .probe = probe_spi_rdid,
7307 .probe_timing = TIMING_ZERO,
7308 .block_erasers =
7309 {
7310 {
7311 .eraseblocks = { {4 * 1024, 2048} },
7312 .block_erase = spi_block_erase_20,
7313 }, {
7314 .eraseblocks = { {4 * 1024, 2048} },
7315 .block_erase = spi_block_erase_d7,
7316 }, {
7317 .eraseblocks = { {32 * 1024, 256} },
7318 .block_erase = spi_block_erase_52,
7319 }, {
7320 .eraseblocks = { {64 * 1024, 128} },
7321 .block_erase = spi_block_erase_d8,
7322 }, {
7323 .eraseblocks = { {8 * 1024 * 1024, 1} },
7324 .block_erase = spi_block_erase_60,
7325 }, {
7326 .eraseblocks = { {8 * 1024 * 1024, 1} },
7327 .block_erase = spi_block_erase_c7,
7328 }
7329 },
7330 .unlock = spi_disable_blockprotect,
7331 .write = spi_chip_write_256,
7332 .read = spi_chip_read,
7333 .voltage = {2300, 3600},
7334 },
7335
7336 {
7337 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007338 .name = "IS25LP128",
7339 .bustype = BUS_SPI,
7340 .manufacture_id = ISSI_ID_SPI,
7341 .model_id = ISSI_IS25LP128,
7342 .total_size = 16384,
7343 .page_size = 256,
7344 /* OTP: 1024B total; read 0x48; write 0x42 */
7345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7346 .tested = TEST_OK_PREW,
7347 .probe = probe_spi_rdid,
7348 .probe_timing = TIMING_ZERO,
7349 .block_erasers =
7350 {
7351 {
7352 .eraseblocks = { {4 * 1024, 4096} },
7353 .block_erase = spi_block_erase_20,
7354 }, {
7355 .eraseblocks = { {4 * 1024, 4096} },
7356 .block_erase = spi_block_erase_d7,
7357 }, {
7358 .eraseblocks = { {32 * 1024, 512} },
7359 .block_erase = spi_block_erase_52,
7360 }, {
7361 .eraseblocks = { {64 * 1024, 256} },
7362 .block_erase = spi_block_erase_d8,
7363 }, {
7364 .eraseblocks = { {16 * 1024 * 1024, 1} },
7365 .block_erase = spi_block_erase_60,
7366 }, {
7367 .eraseblocks = { {16 * 1024 * 1024, 1} },
7368 .block_erase = spi_block_erase_c7,
7369 }
7370 },
7371 .unlock = spi_disable_blockprotect,
7372 .write = spi_chip_write_256,
7373 .read = spi_chip_read,
7374 .voltage = {2300, 3600},
7375 },
7376
7377 {
7378 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007379 .name = "IS25LP256",
7380 .bustype = BUS_SPI,
7381 .manufacture_id = ISSI_ID_SPI,
7382 .model_id = ISSI_IS25LP256,
7383 .total_size = 32768,
7384 .page_size = 256,
7385 /* supports SFDP */
7386 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7387 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7389 .tested = TEST_OK_PREW,
7390 .probe = probe_spi_rdid,
7391 .probe_timing = TIMING_ZERO,
7392 .block_erasers =
7393 {
7394 {
7395 .eraseblocks = { {4 * 1024, 8192} },
7396 .block_erase = spi_block_erase_21,
7397 }, {
7398 .eraseblocks = { {4 * 1024, 8192} },
7399 .block_erase = spi_block_erase_20,
7400 /* could also use spi_block_erase_d7 */
7401 }, {
7402 .eraseblocks = { {32 * 1024, 1024} },
7403 .block_erase = spi_block_erase_5c,
7404 }, {
7405 .eraseblocks = { {32 * 1024, 1024} },
7406 .block_erase = spi_block_erase_52,
7407 }, {
7408 .eraseblocks = { {64 * 1024, 512} },
7409 .block_erase = spi_block_erase_dc,
7410 }, {
7411 .eraseblocks = { {64 * 1024, 512} },
7412 .block_erase = spi_block_erase_d8,
7413 }, {
7414 .eraseblocks = { {32 * 1024 * 1024, 1} },
7415 .block_erase = spi_block_erase_60,
7416 }, {
7417 .eraseblocks = { {32 * 1024 * 1024, 1} },
7418 .block_erase = spi_block_erase_c7,
7419 }
7420 },
7421 .unlock = spi_disable_blockprotect,
7422 .write = spi_chip_write_256,
7423 .read = spi_chip_read,
7424 .voltage = {2300, 3600},
7425 },
7426
7427 {
7428 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007429 .name = "IS25WP032",
7430 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007431 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007432 .model_id = ISSI_IS25WP032,
7433 .total_size = 4096,
7434 .page_size = 256,
7435 /* OTP: 1024B total; read 0x48; write 0x42 */
7436 /* QPI enable 0x35, disable 0xF5 */
7437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7438 .tested = TEST_UNTESTED,
7439 .probe = probe_spi_rdid,
7440 .probe_timing = TIMING_ZERO,
7441 .block_erasers =
7442 {
7443 {
7444 .eraseblocks = { {4 * 1024, 1024} },
7445 .block_erase = spi_block_erase_20,
7446 }, {
7447 .eraseblocks = { {4 * 1024, 1024} },
7448 .block_erase = spi_block_erase_d7,
7449 }, {
7450 .eraseblocks = { {32 * 1024, 128} },
7451 .block_erase = spi_block_erase_52,
7452 }, {
7453 .eraseblocks = { {64 * 1024, 64} },
7454 .block_erase = spi_block_erase_d8,
7455 }, {
7456 .eraseblocks = { {4 * 1024 * 1024, 1} },
7457 .block_erase = spi_block_erase_60,
7458 }, {
7459 .eraseblocks = { {4 * 1024 * 1024, 1} },
7460 .block_erase = spi_block_erase_c7,
7461 }
7462 },
7463 .unlock = spi_disable_blockprotect,
7464 .write = spi_chip_write_256,
7465 .read = spi_chip_read,
7466 .voltage = {1650, 1950},
7467 },
7468
7469 {
7470 .vendor = "ISSI",
7471 .name = "IS25WP064",
7472 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007473 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007474 .model_id = ISSI_IS25WP064,
7475 .total_size = 8192,
7476 .page_size = 256,
7477 /* OTP: 1024B total; read 0x48; write 0x42 */
7478 /* QPI enable 0x35, disable 0xF5 */
7479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7480 .tested = TEST_OK_PREW,
7481 .probe = probe_spi_rdid,
7482 .probe_timing = TIMING_ZERO,
7483 .block_erasers =
7484 {
7485 {
7486 .eraseblocks = { {4 * 1024, 2048} },
7487 .block_erase = spi_block_erase_20,
7488 }, {
7489 .eraseblocks = { {4 * 1024, 2048} },
7490 .block_erase = spi_block_erase_d7,
7491 }, {
7492 .eraseblocks = { {32 * 1024, 256} },
7493 .block_erase = spi_block_erase_52,
7494 }, {
7495 .eraseblocks = { {64 * 1024, 128} },
7496 .block_erase = spi_block_erase_d8,
7497 }, {
7498 .eraseblocks = { {8 * 1024 * 1024, 1} },
7499 .block_erase = spi_block_erase_60,
7500 }, {
7501 .eraseblocks = { {8 * 1024 * 1024, 1} },
7502 .block_erase = spi_block_erase_c7,
7503 }
7504 },
7505 .unlock = spi_disable_blockprotect,
7506 .write = spi_chip_write_256,
7507 .read = spi_chip_read,
7508 .voltage = {1650, 1950},
7509 },
7510
7511 {
7512 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007513 .name = "IS25WP128",
7514 .bustype = BUS_SPI,
7515 .manufacture_id = ISSI_ID_SPI,
7516 .model_id = ISSI_IS25WP128,
7517 .total_size = 16384,
7518 .page_size = 256,
7519 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007520 /* QPI enable 0x35, disable 0xF5 */
7521 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007522 .tested = TEST_OK_PREW,
7523 .probe = probe_spi_rdid,
7524 .probe_timing = TIMING_ZERO,
7525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { {4 * 1024, 4096} },
7529 .block_erase = spi_block_erase_20,
7530 }, {
7531 .eraseblocks = { {4 * 1024, 4096} },
7532 .block_erase = spi_block_erase_d7,
7533 }, {
7534 .eraseblocks = { {32 * 1024, 512} },
7535 .block_erase = spi_block_erase_52,
7536 }, {
7537 .eraseblocks = { {64 * 1024, 256} },
7538 .block_erase = spi_block_erase_d8,
7539 }, {
7540 .eraseblocks = { {16 * 1024 * 1024, 1} },
7541 .block_erase = spi_block_erase_60,
7542 }, {
7543 .eraseblocks = { {16 * 1024 * 1024, 1} },
7544 .block_erase = spi_block_erase_c7,
7545 }
7546 },
7547 .unlock = spi_disable_blockprotect,
7548 .write = spi_chip_write_256,
7549 .read = spi_chip_read,
7550 .voltage = {1650, 1950},
7551 },
7552
7553 {
7554 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007555 .name = "IS25WP256",
7556 .bustype = BUS_SPI,
7557 .manufacture_id = ISSI_ID_SPI,
7558 .model_id = ISSI_IS25WP256,
7559 .total_size = 32768,
7560 .page_size = 256,
7561 /* supports SFDP */
7562 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7563 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7565 .tested = TEST_OK_PREW,
7566 .probe = probe_spi_rdid,
7567 .probe_timing = TIMING_ZERO,
7568 .block_erasers =
7569 {
7570 {
7571 .eraseblocks = { {4 * 1024, 8192} },
7572 .block_erase = spi_block_erase_21,
7573 }, {
7574 .eraseblocks = { {4 * 1024, 8192} },
7575 .block_erase = spi_block_erase_20,
7576 /* could also use spi_block_erase_d7 */
7577 }, {
7578 .eraseblocks = { {32 * 1024, 1024} },
7579 .block_erase = spi_block_erase_5c,
7580 }, {
7581 .eraseblocks = { {32 * 1024, 1024} },
7582 .block_erase = spi_block_erase_52,
7583 }, {
7584 .eraseblocks = { {64 * 1024, 512} },
7585 .block_erase = spi_block_erase_dc,
7586 }, {
7587 .eraseblocks = { {64 * 1024, 512} },
7588 .block_erase = spi_block_erase_d8,
7589 }, {
7590 .eraseblocks = { {32 * 1024 * 1024, 1} },
7591 .block_erase = spi_block_erase_60,
7592 }, {
7593 .eraseblocks = { {32 * 1024 * 1024, 1} },
7594 .block_erase = spi_block_erase_c7,
7595 }
7596 },
7597 .unlock = spi_disable_blockprotect,
7598 .write = spi_chip_write_256,
7599 .read = spi_chip_read,
7600 .voltage = {1650, 1950},
7601 },
7602
7603 {
7604 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007605 .name = "IS29GL064B",
7606 .bustype = BUS_PARALLEL,
7607 .manufacture_id = ISSI_ID,
7608 .model_id = ISSI_PMC_IS29GL064B,
7609 .total_size = 8192,
7610 .page_size = 128 * 1024, /* actual page size is 16 */
7611 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7612 .tested = TEST_UNTESTED,
7613 .probe = probe_jedec_29gl,
7614 .probe_timing = TIMING_ZERO,
7615 .block_erasers =
7616 {
7617 {
7618 .eraseblocks = {
7619 {8 * 1024, 8},
7620 {64 * 1024, 127},
7621 },
7622 .block_erase = erase_sector_jedec,
7623 }, {
7624 .eraseblocks = { {8 * 1024 * 1024, 1} },
7625 .block_erase = erase_chip_block_jedec,
7626 },
7627 },
7628 .write = write_jedec_1,
7629 .read = read_memmapped,
7630 .voltage = {2700, 3600},
7631 },
7632
7633 {
7634 .vendor = "ISSI",
7635 .name = "IS29GL064T",
7636 .bustype = BUS_PARALLEL,
7637 .manufacture_id = ISSI_ID,
7638 .model_id = ISSI_PMC_IS29GL064T,
7639 .total_size = 8192,
7640 .page_size = 128 * 1024, /* actual page size is 16 */
7641 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7642 .tested = TEST_UNTESTED,
7643 .probe = probe_jedec_29gl,
7644 .probe_timing = TIMING_ZERO,
7645 .block_erasers =
7646 {
7647 {
7648 .eraseblocks = {
7649 {64 * 1024, 127},
7650 {8 * 1024, 8},
7651 },
7652 .block_erase = erase_sector_jedec,
7653 }, {
7654 .eraseblocks = { {8 * 1024 * 1024, 1} },
7655 .block_erase = erase_chip_block_jedec,
7656 },
7657 },
7658 .write = write_jedec_1,
7659 .read = read_memmapped,
7660 .voltage = {2700, 3600},
7661 },
7662
7663 {
7664 .vendor = "ISSI",
7665 .name = "IS29GL064H/L",
7666 .bustype = BUS_PARALLEL,
7667 .manufacture_id = ISSI_ID,
7668 .model_id = ISSI_PMC_IS29GL064HL,
7669 .total_size = 8192,
7670 .page_size = 128 * 1024, /* actual page size is 16 */
7671 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7672 .tested = TEST_UNTESTED,
7673 .probe = probe_jedec_29gl,
7674 .probe_timing = TIMING_ZERO,
7675 .block_erasers =
7676 {
7677 {
7678 .eraseblocks = { {64 * 1024, 128} },
7679 .block_erase = erase_sector_jedec,
7680 }, {
7681 .eraseblocks = { {8 * 1024 * 1024, 1} },
7682 .block_erase = erase_chip_block_jedec,
7683 },
7684 },
7685 .write = write_jedec_1,
7686 .read = read_memmapped,
7687 .voltage = {2700, 3600},
7688 },
7689
7690 {
7691 .vendor = "ISSI",
7692 .name = "IS29GL128H/L",
7693 .bustype = BUS_PARALLEL,
7694 .manufacture_id = ISSI_ID,
7695 .model_id = ISSI_PMC_IS29GL128HL,
7696 .total_size = 16384,
7697 .page_size = 128 * 1024, /* actual page size is 16 */
7698 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7699 .tested = TEST_UNTESTED,
7700 .probe = probe_jedec_29gl,
7701 .probe_timing = TIMING_ZERO,
7702 .block_erasers =
7703 {
7704 {
7705 .eraseblocks = { {128 * 1024, 128} },
7706 .block_erase = erase_sector_jedec,
7707 }, {
7708 .eraseblocks = { {16 * 1024 * 1024, 1} },
7709 .block_erase = erase_chip_block_jedec,
7710 },
7711 },
7712 .write = write_jedec_1,
7713 .read = read_memmapped,
7714 .voltage = {2700, 3600},
7715 },
7716
7717 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007718 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007719 .name = "MX23L1654",
7720 .bustype = BUS_SPI,
7721 .manufacture_id = MACRONIX_ID,
7722 .model_id = MACRONIX_MX23L1654,
7723 .total_size = 2048,
7724 .page_size = 256,
7725 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7726 .probe = probe_spi_rdid,
7727 .probe_timing = TIMING_ZERO,
7728 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7729 .read = spi_chip_read, /* Fast read (0x0B) supported */
7730 .voltage = {3000, 3600},
7731 },
7732
7733 {
7734 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007735 .name = "MX23L3254",
7736 .bustype = BUS_SPI,
7737 .manufacture_id = MACRONIX_ID,
7738 .model_id = MACRONIX_MX23L3254,
7739 .total_size = 4096,
7740 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007741 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007742 .probe = probe_spi_rdid,
7743 .probe_timing = TIMING_ZERO,
7744 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7745 .read = spi_chip_read, /* Fast read (0x0B) supported */
7746 .voltage = {3000, 3600},
7747 },
7748
7749 {
7750 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007751 .name = "MX23L6454",
7752 .bustype = BUS_SPI,
7753 .manufacture_id = MACRONIX_ID,
7754 .model_id = MACRONIX_MX23L6454,
7755 .total_size = 8192,
7756 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007757 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007758 .probe = probe_spi_rdid,
7759 .probe_timing = TIMING_ZERO,
7760 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7761 .read = spi_chip_read, /* Fast read (0x0B) supported */
7762 .voltage = {3000, 3600},
7763 },
7764
7765 {
7766 .vendor = "Macronix",
7767 .name = "MX23L12854",
7768 .bustype = BUS_SPI,
7769 .manufacture_id = MACRONIX_ID,
7770 .model_id = MACRONIX_MX23L12854,
7771 .total_size = 16384,
7772 .page_size = 256,
7773 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7774 .probe = probe_spi_rdid,
7775 .probe_timing = TIMING_ZERO,
7776 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7777 .read = spi_chip_read, /* Fast read (0x0B) supported */
7778 .voltage = {3000, 3600},
7779 },
7780
7781 {
7782 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007783 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007784 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007785 .manufacture_id = MACRONIX_ID,
7786 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007787 .total_size = 64,
7788 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007789 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007790 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007791 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007792 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007793 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007794 .block_erasers =
7795 {
7796 {
7797 .eraseblocks = { {4 * 1024, 16} },
7798 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007799 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007800 .eraseblocks = { {64 * 1024, 1} },
7801 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007802 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007803 .eraseblocks = { {64 * 1024, 1} },
7804 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007805 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007806 .eraseblocks = { {64 * 1024, 1} },
7807 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007808 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007809 .eraseblocks = { {64 * 1024, 1} },
7810 .block_erase = spi_block_erase_c7,
7811 },
7812 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007813 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007814 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007815 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007816 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7817 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007818 },
7819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007820 {
7821 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007822 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007823 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007824 .manufacture_id = MACRONIX_ID,
7825 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007826 .total_size = 128,
7827 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007828 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007829 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007830 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007831 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007832 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007833 .block_erasers =
7834 {
7835 {
7836 .eraseblocks = { {4 * 1024, 32} },
7837 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007838 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007839 .eraseblocks = { {64 * 1024, 2} },
7840 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007841 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007842 .eraseblocks = { {128 * 1024, 1} },
7843 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007844 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007845 .eraseblocks = { {128 * 1024, 1} },
7846 .block_erase = spi_block_erase_c7,
7847 },
7848 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007849 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007850 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007851 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007852 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007853 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007854 },
7855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007856 {
7857 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007858 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007859 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007860 .manufacture_id = MACRONIX_ID,
7861 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007862 .total_size = 256,
7863 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007865 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007866 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007867 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007868 .block_erasers =
7869 {
7870 {
7871 .eraseblocks = { {4 * 1024, 64} },
7872 .block_erase = spi_block_erase_20,
7873 }, {
7874 .eraseblocks = { {64 * 1024, 4} },
7875 .block_erase = spi_block_erase_52,
7876 }, {
7877 .eraseblocks = { {64 * 1024, 4} },
7878 .block_erase = spi_block_erase_d8,
7879 }, {
7880 .eraseblocks = { {256 * 1024, 1} },
7881 .block_erase = spi_block_erase_60,
7882 }, {
7883 .eraseblocks = { {256 * 1024, 1} },
7884 .block_erase = spi_block_erase_c7,
7885 },
7886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007887 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007888 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007889 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007890 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007891 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007892 },
7893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007894 {
7895 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007896 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007897 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007898 .manufacture_id = MACRONIX_ID,
7899 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007900 .total_size = 512,
7901 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007902 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007903 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007904 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007905 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007906 .block_erasers =
7907 {
7908 {
7909 .eraseblocks = { {4 * 1024, 128} },
7910 .block_erase = spi_block_erase_20,
7911 }, {
7912 .eraseblocks = { {64 * 1024, 8} },
7913 .block_erase = spi_block_erase_52,
7914 }, {
7915 .eraseblocks = { {64 * 1024, 8} },
7916 .block_erase = spi_block_erase_d8,
7917 }, {
7918 .eraseblocks = { {512 * 1024, 1} },
7919 .block_erase = spi_block_erase_60,
7920 }, {
7921 .eraseblocks = { {512 * 1024, 1} },
7922 .block_erase = spi_block_erase_c7,
7923 },
7924 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007925 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007926 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007927 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007928 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007929 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007930 },
7931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007932 {
7933 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007934 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007935 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007936 .manufacture_id = MACRONIX_ID,
7937 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007938 .total_size = 1024,
7939 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007940 /* MX25L8006E, MX25L8008E support SFDP */
7941 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007942 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007943 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007945 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007946 .block_erasers =
7947 {
7948 {
7949 .eraseblocks = { {4 * 1024, 256} },
7950 .block_erase = spi_block_erase_20,
7951 }, {
7952 .eraseblocks = { {64 * 1024, 16} },
7953 .block_erase = spi_block_erase_52,
7954 }, {
7955 .eraseblocks = { {64 * 1024, 16} },
7956 .block_erase = spi_block_erase_d8,
7957 }, {
7958 .eraseblocks = { {1024 * 1024, 1} },
7959 .block_erase = spi_block_erase_60,
7960 }, {
7961 .eraseblocks = { {1024 * 1024, 1} },
7962 .block_erase = spi_block_erase_c7,
7963 },
7964 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007965 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007966 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007967 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007968 .read = spi_chip_read, /* Fast read (0x0B) supported */
7969 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007970 },
7971
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007972 {
7973 .vendor = "Macronix",
7974 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007975 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007976 .manufacture_id = MACRONIX_ID,
7977 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007978 .total_size = 2048,
7979 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007980 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007981 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007983 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007984 .block_erasers =
7985 {
7986 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007987 .eraseblocks = { {64 * 1024, 32} },
7988 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007989 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007990 .eraseblocks = { {64 * 1024, 32} },
7991 .block_erase = spi_block_erase_d8,
7992 }, {
7993 .eraseblocks = { {2 * 1024 * 1024, 1} },
7994 .block_erase = spi_block_erase_60,
7995 }, {
7996 .eraseblocks = { {2 * 1024 * 1024, 1} },
7997 .block_erase = spi_block_erase_c7,
7998 },
7999 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008000 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008001 .unlock = spi_disable_blockprotect,
8002 .write = spi_chip_write_256,
8003 .read = spi_chip_read, /* Fast read (0x0B) supported */
8004 .voltage = {2700, 3600},
8005 },
8006
8007 {
8008 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008009 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008010 .bustype = BUS_SPI,
8011 .manufacture_id = MACRONIX_ID,
8012 .model_id = MACRONIX_MX25L1605,
8013 .total_size = 2048,
8014 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008015 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008016 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8017 .tested = TEST_OK_PREW,
8018 .probe = probe_spi_rdid,
8019 .probe_timing = TIMING_ZERO,
8020 .block_erasers =
8021 {
8022 {
8023 .eraseblocks = { {4 * 1024, 512} },
8024 .block_erase = spi_block_erase_20,
8025 }, {
8026 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008027 .block_erase = spi_block_erase_52,
8028 }, {
8029 .eraseblocks = { {64 * 1024, 32} },
8030 .block_erase = spi_block_erase_d8,
8031 }, {
8032 .eraseblocks = { {2 * 1024 * 1024, 1} },
8033 .block_erase = spi_block_erase_60,
8034 }, {
8035 .eraseblocks = { {2 * 1024 * 1024, 1} },
8036 .block_erase = spi_block_erase_c7,
8037 },
8038 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008039 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008040 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008041 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008042 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008043 .voltage = {2700, 3600},
8044 },
8045
8046 {
8047 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008048 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008049 .bustype = BUS_SPI,
8050 .manufacture_id = MACRONIX_ID,
8051 .model_id = MACRONIX_MX25L1605,
8052 .total_size = 2048,
8053 .page_size = 256,
8054 .feature_bits = FEATURE_WRSR_WREN,
8055 .tested = TEST_OK_PREW,
8056 .probe = probe_spi_rdid,
8057 .probe_timing = TIMING_ZERO,
8058 .block_erasers =
8059 {
8060 {
8061 .eraseblocks = { {4 * 1024, 512} },
8062 .block_erase = spi_block_erase_20,
8063 }, {
8064 .eraseblocks = { {64 * 1024, 32} },
8065 .block_erase = spi_block_erase_d8,
8066 }, {
8067 .eraseblocks = { {2 * 1024 * 1024, 1} },
8068 .block_erase = spi_block_erase_60,
8069 }, {
8070 .eraseblocks = { {2 * 1024 * 1024, 1} },
8071 .block_erase = spi_block_erase_c7,
8072 },
8073 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008074 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008075 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008076 .write = spi_chip_write_256,
8077 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008078 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008079 },
8080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008081 {
8082 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008083 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008084 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008085 .manufacture_id = MACRONIX_ID,
8086 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008087 .total_size = 2048,
8088 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008089 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008091 .tested = TEST_UNTESTED,
8092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008093 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008094 .block_erasers =
8095 {
8096 {
8097 .eraseblocks = { {4 * 1024, 512} },
8098 .block_erase = spi_block_erase_20,
8099 }, {
8100 .eraseblocks = { {64 * 1024, 32} },
8101 .block_erase = spi_block_erase_d8,
8102 }, {
8103 .eraseblocks = { {2 * 1024 * 1024, 1} },
8104 .block_erase = spi_block_erase_60,
8105 }, {
8106 .eraseblocks = { {2 * 1024 * 1024, 1} },
8107 .block_erase = spi_block_erase_c7,
8108 }
8109 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008110 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008111 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008112 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008113 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008114 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008115 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008116
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008117 {
8118 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008119 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008120 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008121 .manufacture_id = MACRONIX_ID,
8122 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008123 .total_size = 2048,
8124 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008125 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8126 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008127 .tested = TEST_UNTESTED,
8128 .probe = probe_spi_rdid,
8129 .probe_timing = TIMING_ZERO,
8130 .block_erasers =
8131 {
8132 {
8133 .eraseblocks = { {4 * 1024, 512} },
8134 .block_erase = spi_block_erase_20,
8135 }, {
8136 .eraseblocks = { {64 * 1024, 32} },
8137 .block_erase = spi_block_erase_d8,
8138 }, {
8139 .eraseblocks = { {2 * 1024 * 1024, 1} },
8140 .block_erase = spi_block_erase_60,
8141 }, {
8142 .eraseblocks = { {2 * 1024 * 1024, 1} },
8143 .block_erase = spi_block_erase_c7,
8144 }
8145 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008146 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008147 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008148 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008149 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008150 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008151 },
8152
8153 {
8154 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008155 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008156 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008157 .manufacture_id = MACRONIX_ID,
8158 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008159 .total_size = 4096,
8160 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008161 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008162 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008163 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008164 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008165 .block_erasers =
8166 {
8167 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008168 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008169 .block_erase = spi_block_erase_20,
8170 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008171 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008172 .block_erase = spi_block_erase_d8,
8173 }, {
8174 .eraseblocks = { {4 * 1024 * 1024, 1} },
8175 .block_erase = spi_block_erase_60,
8176 }, {
8177 .eraseblocks = { {4 * 1024 * 1024, 1} },
8178 .block_erase = spi_block_erase_c7,
8179 },
8180 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008181 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008182 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008183 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008184 .read = spi_chip_read, /* Fast read (0x0B) supported */
8185 .voltage = {2700, 3600},
8186 },
8187
8188 {
8189 .vendor = "Macronix",
8190 .name = "MX25L3205D/MX25L3208D",
8191 .bustype = BUS_SPI,
8192 .manufacture_id = MACRONIX_ID,
8193 .model_id = MACRONIX_MX25L3205,
8194 .total_size = 4096,
8195 .page_size = 256,
8196 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8198 .tested = TEST_OK_PREW,
8199 .probe = probe_spi_rdid,
8200 .probe_timing = TIMING_ZERO,
8201 .block_erasers =
8202 {
8203 {
8204 .eraseblocks = { {4 * 1024, 1024} },
8205 .block_erase = spi_block_erase_20,
8206 }, {
8207 .eraseblocks = { {64 * 1024, 64} },
8208 .block_erase = spi_block_erase_d8,
8209 }, {
8210 .eraseblocks = { {4 * 1024 * 1024, 1} },
8211 .block_erase = spi_block_erase_60,
8212 }, {
8213 .eraseblocks = { {4 * 1024 * 1024, 1} },
8214 .block_erase = spi_block_erase_c7,
8215 },
8216 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008217 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008218 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008219 .write = spi_chip_write_256,
8220 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8221 .voltage = {2700, 3600},
8222 },
8223
8224 {
8225 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008226 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008227 .bustype = BUS_SPI,
8228 .manufacture_id = MACRONIX_ID,
8229 .model_id = MACRONIX_MX25L3205,
8230 .total_size = 4096,
8231 .page_size = 256,
8232 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8234 .tested = TEST_OK_PREW,
8235 .probe = probe_spi_rdid,
8236 .probe_timing = TIMING_ZERO,
8237 .block_erasers =
8238 {
8239 {
8240 .eraseblocks = { {4 * 1024, 1024} },
8241 .block_erase = spi_block_erase_20,
8242 }, {
8243 .eraseblocks = { {64 * 1024, 64} },
8244 .block_erase = spi_block_erase_d8,
8245 }, {
8246 .eraseblocks = { {64 * 1024, 64} },
8247 .block_erase = spi_block_erase_52,
8248 }, {
8249 .eraseblocks = { {4 * 1024 * 1024, 1} },
8250 .block_erase = spi_block_erase_60,
8251 }, {
8252 .eraseblocks = { {4 * 1024 * 1024, 1} },
8253 .block_erase = spi_block_erase_c7,
8254 },
8255 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008256 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008257 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008258 .write = spi_chip_write_256,
8259 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008260 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008261 },
8262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008263 {
8264 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008265 .name = "MX25L3273E",
8266 .bustype = BUS_SPI,
8267 .manufacture_id = MACRONIX_ID,
8268 .model_id = MACRONIX_MX25L3205,
8269 .total_size = 4096,
8270 .page_size = 256,
8271 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008273 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008274 .probe = probe_spi_rdid,
8275 .probe_timing = TIMING_ZERO,
8276 .block_erasers =
8277 {
8278 {
8279 .eraseblocks = { {4 * 1024, 1024} },
8280 .block_erase = spi_block_erase_20,
8281 }, {
8282 .eraseblocks = { {32 * 1024, 128} },
8283 .block_erase = spi_block_erase_52,
8284 }, {
8285 .eraseblocks = { {64 * 1024, 64} },
8286 .block_erase = spi_block_erase_d8,
8287 }, {
8288 .eraseblocks = { {4 * 1024 * 1024, 1} },
8289 .block_erase = spi_block_erase_60,
8290 }, {
8291 .eraseblocks = { {4 * 1024 * 1024, 1} },
8292 .block_erase = spi_block_erase_c7,
8293 },
8294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008295 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008296 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008297 .write = spi_chip_write_256,
8298 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8299 .voltage = {2700, 3600},
8300 },
8301
8302 {
8303 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008304 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008305 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008306 .manufacture_id = MACRONIX_ID,
8307 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008308 .total_size = 4096,
8309 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008310 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8311 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008312 .tested = TEST_UNTESTED,
8313 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008314 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008315 .block_erasers =
8316 {
8317 {
8318 .eraseblocks = { {4 * 1024, 1024} },
8319 .block_erase = spi_block_erase_20,
8320 }, {
8321 .eraseblocks = { {64 * 1024, 64} },
8322 .block_erase = spi_block_erase_d8,
8323 }, {
8324 .eraseblocks = { {4 * 1024 * 1024, 1} },
8325 .block_erase = spi_block_erase_60,
8326 }, {
8327 .eraseblocks = { {4 * 1024 * 1024, 1} },
8328 .block_erase = spi_block_erase_c7,
8329 }
8330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008331 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008332 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008333 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008334 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008335 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008336 },
8337
8338 {
8339 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008340 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008341 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008342 .manufacture_id = MACRONIX_ID,
8343 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008344 .total_size = 8192,
8345 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008346 /* Has an additional 512B EEPROM sector */
8347 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008348 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008349 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008351 .block_erasers =
8352 {
8353 {
8354 .eraseblocks = { {64 * 1024, 128} },
8355 .block_erase = spi_block_erase_20,
8356 }, {
8357 .eraseblocks = { {64 * 1024, 128} },
8358 .block_erase = spi_block_erase_d8,
8359 }, {
8360 .eraseblocks = { {8 * 1024 * 1024, 1} },
8361 .block_erase = spi_block_erase_60,
8362 }, {
8363 .eraseblocks = { {8 * 1024 * 1024, 1} },
8364 .block_erase = spi_block_erase_c7,
8365 }
8366 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008367 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008368 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008369 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008370 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008371 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008372 },
8373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008374 {
8375 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008376 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008377 .bustype = BUS_SPI,
8378 .manufacture_id = MACRONIX_ID,
8379 .model_id = MACRONIX_MX25L6405,
8380 .total_size = 8192,
8381 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008382 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008383 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8384 .tested = TEST_OK_PREW,
8385 .probe = probe_spi_rdid,
8386 .probe_timing = TIMING_ZERO,
8387 .block_erasers =
8388 {
8389 {
8390 .eraseblocks = { {4 * 1024, 2048} },
8391 .block_erase = spi_block_erase_20,
8392 }, {
8393 .eraseblocks = { {64 * 1024, 128} },
8394 .block_erase = spi_block_erase_d8,
8395 }, {
8396 .eraseblocks = { {8 * 1024 * 1024, 1} },
8397 .block_erase = spi_block_erase_60,
8398 }, {
8399 .eraseblocks = { {8 * 1024 * 1024, 1} },
8400 .block_erase = spi_block_erase_c7,
8401 }
8402 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008404 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008405 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008406 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008407 .voltage = {2700, 3600},
8408 },
8409
8410 {
8411 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008412 .name = "MX25L6406E/MX25L6408E",
8413 .bustype = BUS_SPI,
8414 .manufacture_id = MACRONIX_ID,
8415 .model_id = MACRONIX_MX25L6405,
8416 .total_size = 8192,
8417 .page_size = 256,
8418 /* MX25L6406E supports SFDP */
8419 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8421 .tested = TEST_OK_PREW,
8422 .probe = probe_spi_rdid,
8423 .probe_timing = TIMING_ZERO,
8424 .block_erasers =
8425 {
8426 {
8427 .eraseblocks = { {4 * 1024, 2048} },
8428 .block_erase = spi_block_erase_20,
8429 }, {
8430 .eraseblocks = { {64 * 1024, 128} },
8431 .block_erase = spi_block_erase_52,
8432 }, {
8433 .eraseblocks = { {64 * 1024, 128} },
8434 .block_erase = spi_block_erase_d8,
8435 }, {
8436 .eraseblocks = { {8 * 1024 * 1024, 1} },
8437 .block_erase = spi_block_erase_60,
8438 }, {
8439 .eraseblocks = { {8 * 1024 * 1024, 1} },
8440 .block_erase = spi_block_erase_c7,
8441 }
8442 },
8443 .printlock = spi_prettyprint_status_register_bp3_srwd,
8444 .unlock = spi_disable_blockprotect_bp3_srwd,
8445 .write = spi_chip_write_256,
8446 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8447 .voltage = {2700, 3600},
8448 },
8449
8450 {
8451 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008452 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008453 .bustype = BUS_SPI,
8454 .manufacture_id = MACRONIX_ID,
8455 .model_id = MACRONIX_MX25L6405,
8456 .total_size = 8192,
8457 .page_size = 256,
8458 /* supports SFDP */
8459 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8461 .tested = TEST_OK_PREW,
8462 .probe = probe_spi_rdid,
8463 .probe_timing = TIMING_ZERO,
8464 .block_erasers =
8465 {
8466 {
8467 .eraseblocks = { {4 * 1024, 2048} },
8468 .block_erase = spi_block_erase_20,
8469 }, {
8470 .eraseblocks = { {32 * 1024, 256} },
8471 .block_erase = spi_block_erase_52,
8472 }, {
8473 .eraseblocks = { {64 * 1024, 128} },
8474 .block_erase = spi_block_erase_d8,
8475 }, {
8476 .eraseblocks = { {8 * 1024 * 1024, 1} },
8477 .block_erase = spi_block_erase_60,
8478 }, {
8479 .eraseblocks = { {8 * 1024 * 1024, 1} },
8480 .block_erase = spi_block_erase_c7,
8481 }
8482 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008483 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008484 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008485 .write = spi_chip_write_256,
8486 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8487 .voltage = {2700, 3600},
8488 },
8489
8490 {
8491 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008492 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008493 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008494 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008495 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008496 .total_size = 16384,
8497 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008498 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008500 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008501 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008502 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008503 .block_erasers =
8504 {
8505 {
8506 .eraseblocks = { {4 * 1024, 4096} },
8507 .block_erase = spi_block_erase_20,
8508 }, {
8509 .eraseblocks = { {64 * 1024, 256} },
8510 .block_erase = spi_block_erase_d8,
8511 }, {
8512 .eraseblocks = { {16 * 1024 * 1024, 1} },
8513 .block_erase = spi_block_erase_60,
8514 }, {
8515 .eraseblocks = { {16 * 1024 * 1024, 1} },
8516 .block_erase = spi_block_erase_c7,
8517 }
8518 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008519 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008520 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008521 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008522 .read = spi_chip_read, /* Fast read (0x0B) supported */
8523 .voltage = {2700, 3600},
8524 },
8525
8526 {
8527 .vendor = "Macronix",
8528 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8529 .bustype = BUS_SPI,
8530 .manufacture_id = MACRONIX_ID,
8531 .model_id = MACRONIX_MX25L12805D,
8532 .total_size = 16384,
8533 .page_size = 256,
8534 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8535 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8536 .tested = TEST_OK_PREW,
8537 .probe = probe_spi_rdid,
8538 .probe_timing = TIMING_ZERO,
8539 .block_erasers =
8540 {
8541 {
8542 .eraseblocks = { {4 * 1024, 4096} },
8543 .block_erase = spi_block_erase_20,
8544 }, {
8545 .eraseblocks = { {32 * 1024, 512} },
8546 .block_erase = spi_block_erase_52,
8547 }, {
8548 .eraseblocks = { {64 * 1024, 256} },
8549 .block_erase = spi_block_erase_d8,
8550 }, {
8551 .eraseblocks = { {16 * 1024 * 1024, 1} },
8552 .block_erase = spi_block_erase_60,
8553 }, {
8554 .eraseblocks = { {16 * 1024 * 1024, 1} },
8555 .block_erase = spi_block_erase_c7,
8556 }
8557 },
8558 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8559 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8560 .unlock = spi_disable_blockprotect_bp3_srwd,
8561 .write = spi_chip_write_256,
8562 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008563 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008564 },
8565
8566 {
8567 .vendor = "Macronix",
Nico Huberaac81422017-11-10 22:54:13 +01008568 .name = "MX25L25635F",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008569 .bustype = BUS_SPI,
8570 .manufacture_id = MACRONIX_ID,
8571 .model_id = MACRONIX_MX25L25635F,
8572 .total_size = 32768,
8573 .page_size = 256,
8574 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008575 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Kasper Revsbechf56607e2018-10-19 23:59:17 +02008576 .tested = TEST_OK_PREW,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008577 .probe = probe_spi_rdid,
8578 .probe_timing = TIMING_ZERO,
8579 .block_erasers =
8580 {
8581 {
8582 .eraseblocks = { {4 * 1024, 8192} },
Nico Huberaac81422017-11-10 22:54:13 +01008583 .block_erase = spi_block_erase_21,
8584 }, {
8585 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008586 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008587 }, {
8588 .eraseblocks = { {32 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008589 .block_erase = spi_block_erase_5c,
8590 }, {
8591 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008592 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008593 }, {
8594 .eraseblocks = { {64 * 1024, 512} },
Nico Huberaac81422017-11-10 22:54:13 +01008595 .block_erase = spi_block_erase_dc,
8596 }, {
8597 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008598 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008599 }, {
8600 .eraseblocks = { {32 * 1024 * 1024, 1} },
8601 .block_erase = spi_block_erase_60,
8602 }, {
8603 .eraseblocks = { {32 * 1024 * 1024, 1} },
8604 .block_erase = spi_block_erase_c7,
8605 }
8606 },
8607 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8608 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8609 .unlock = spi_disable_blockprotect_bp3_srwd,
8610 .write = spi_chip_write_256,
8611 .read = spi_chip_read, /* Fast read (0x0B) supported */
8612 .voltage = {2700, 3600},
8613 },
8614
8615 {
8616 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008617 .name = "MX66L51235F",
8618 .bustype = BUS_SPI,
8619 .manufacture_id = MACRONIX_ID,
8620 .model_id = MACRONIX_MX66L51235F,
8621 .total_size = 65536,
8622 .page_size = 256,
8623 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008624 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Angel Pons09dddd82018-09-30 19:23:43 +02008625 .tested = TEST_OK_PREW,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008626 .probe = probe_spi_rdid,
8627 .probe_timing = TIMING_ZERO,
8628 .block_erasers =
8629 {
8630 {
8631 .eraseblocks = { {4 * 1024, 16384} },
Nico Huberaac81422017-11-10 22:54:13 +01008632 .block_erase = spi_block_erase_21,
8633 }, {
8634 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008635 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008636 }, {
8637 .eraseblocks = { {32 * 1024, 2048} },
Nico Huberaac81422017-11-10 22:54:13 +01008638 .block_erase = spi_block_erase_5c,
8639 }, {
8640 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008641 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008642 }, {
8643 .eraseblocks = { {64 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008644 .block_erase = spi_block_erase_dc,
8645 }, {
8646 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008647 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008648 }, {
8649 .eraseblocks = { {64 * 1024 * 1024, 1} },
8650 .block_erase = spi_block_erase_60,
8651 }, {
8652 .eraseblocks = { {64 * 1024 * 1024, 1} },
8653 .block_erase = spi_block_erase_c7,
8654 }
8655 },
8656 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8657 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8658 .unlock = spi_disable_blockprotect_bp3_srwd,
8659 .write = spi_chip_write_256,
8660 .read = spi_chip_read, /* Fast read (0x0B) supported */
8661 .voltage = {2700, 3600},
8662 },
8663
8664 {
8665 .vendor = "Macronix",
Angel Ponsf112e242018-09-30 20:14:17 +02008666 .name = "MX25U8032E",
8667 .bustype = BUS_SPI,
8668 .manufacture_id = MACRONIX_ID,
8669 .model_id = MACRONIX_MX25U8032E,
8670 .total_size = 1024,
8671 .page_size = 256,
8672 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8674 .tested = TEST_OK_PREW,
8675 .probe = probe_spi_rdid,
8676 .probe_timing = TIMING_ZERO,
8677 .block_erasers =
8678 {
8679 {
8680 .eraseblocks = { {4 * 1024, 256} },
8681 .block_erase = spi_block_erase_20,
8682 }, {
8683 .eraseblocks = { {32 * 1024, 32} },
8684 .block_erase = spi_block_erase_52,
8685 }, {
8686 .eraseblocks = { {64 * 1024, 16} },
8687 .block_erase = spi_block_erase_d8,
8688 }, {
8689 .eraseblocks = { {1024 * 1024, 1} },
8690 .block_erase = spi_block_erase_60,
8691 }, {
8692 .eraseblocks = { {1024 * 1024, 1} },
8693 .block_erase = spi_block_erase_c7,
8694 }
8695 },
8696 /* TODO: security register */
8697 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8698 .unlock = spi_disable_blockprotect_bp3_srwd,
8699 .write = spi_chip_write_256,
8700 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8701 .voltage = {1650, 2000},
8702 },
8703
8704 {
8705 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008706 .name = "MX25U1635E",
8707 .bustype = BUS_SPI,
8708 .manufacture_id = MACRONIX_ID,
8709 .model_id = MACRONIX_MX25U1635E,
8710 .total_size = 2048,
8711 .page_size = 256,
8712 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8713 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8714 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008715 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008716 .probe = probe_spi_rdid,
8717 .probe_timing = TIMING_ZERO,
8718 .block_erasers =
8719 {
8720 {
8721 .eraseblocks = { {4 * 1024, 512} },
8722 .block_erase = spi_block_erase_20,
8723 }, {
8724 .eraseblocks = { {32 * 1024, 64} },
8725 .block_erase = spi_block_erase_52,
8726 }, {
8727 .eraseblocks = { {64 * 1024, 32} },
8728 .block_erase = spi_block_erase_d8,
8729 }, {
8730 .eraseblocks = { {2 * 1024 * 1024, 1} },
8731 .block_erase = spi_block_erase_60,
8732 }, {
8733 .eraseblocks = { {2 * 1024 * 1024, 1} },
8734 .block_erase = spi_block_erase_c7,
8735 }
8736 },
8737 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008738 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008739 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008740 .write = spi_chip_write_256,
8741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8742 .voltage = {1650, 2000},
8743 },
8744
8745 {
8746 .vendor = "Macronix",
8747 .name = "MX25U3235E/F",
8748 .bustype = BUS_SPI,
8749 .manufacture_id = MACRONIX_ID,
8750 .model_id = MACRONIX_MX25U3235E,
8751 .total_size = 4096,
8752 .page_size = 256,
8753 /* F model supports SFDP */
8754 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8755 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8756 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8757 .tested = TEST_OK_PREW,
8758 .probe = probe_spi_rdid,
8759 .probe_timing = TIMING_ZERO,
8760 .block_erasers =
8761 {
8762 {
8763 .eraseblocks = { {4 * 1024, 1024} },
8764 .block_erase = spi_block_erase_20,
8765 }, {
8766 .eraseblocks = { {32 * 1024, 128} },
8767 .block_erase = spi_block_erase_52,
8768 }, {
8769 .eraseblocks = { {64 * 1024, 64} },
8770 .block_erase = spi_block_erase_d8,
8771 }, {
8772 .eraseblocks = { {4 * 1024 * 1024, 1} },
8773 .block_erase = spi_block_erase_60,
8774 }, {
8775 .eraseblocks = { {4 * 1024 * 1024, 1} },
8776 .block_erase = spi_block_erase_c7,
8777 }
8778 },
8779 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008780 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008781 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008782 .write = spi_chip_write_256,
8783 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8784 .voltage = {1650, 2000},
8785 },
8786
8787 {
8788 .vendor = "Macronix",
8789 .name = "MX25U6435E/F",
8790 .bustype = BUS_SPI,
8791 .manufacture_id = MACRONIX_ID,
8792 .model_id = MACRONIX_MX25U6435E,
8793 .total_size = 8192,
8794 .page_size = 256,
8795 /* F model supports SFDP */
8796 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8797 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008799 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008800 .probe = probe_spi_rdid,
8801 .probe_timing = TIMING_ZERO,
8802 .block_erasers =
8803 {
8804 {
8805 .eraseblocks = { {4 * 1024, 2048} },
8806 .block_erase = spi_block_erase_20,
8807 }, {
8808 .eraseblocks = { {32 * 1024, 256} },
8809 .block_erase = spi_block_erase_52,
8810 }, {
8811 .eraseblocks = { {64 * 1024, 128} },
8812 .block_erase = spi_block_erase_d8,
8813 }, {
8814 .eraseblocks = { {8 * 1024 * 1024, 1} },
8815 .block_erase = spi_block_erase_60,
8816 }, {
8817 .eraseblocks = { {8 * 1024 * 1024, 1} },
8818 .block_erase = spi_block_erase_c7,
8819 }
8820 },
8821 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008822 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008823 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008824 .write = spi_chip_write_256,
8825 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8826 .voltage = {1650, 2000},
8827 },
8828
8829 {
8830 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008831 .name = "MX25U12835F",
8832 .bustype = BUS_SPI,
8833 .manufacture_id = MACRONIX_ID,
8834 .model_id = MACRONIX_MX25U12835E,
8835 .total_size = 16384,
8836 .page_size = 256,
8837 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Pons471da832018-09-30 17:29:48 +02008839 .tested = TEST_OK_PREW,
Martin Roth440057a2014-07-13 00:05:07 +00008840 .probe = probe_spi_rdid,
8841 .probe_timing = TIMING_ZERO,
8842 .block_erasers =
8843 {
8844 {
8845 .eraseblocks = { {4 * 1024, 4096} },
8846 .block_erase = spi_block_erase_20,
8847 }, {
8848 .eraseblocks = { {32 * 1024, 512} },
8849 .block_erase = spi_block_erase_52,
8850 }, {
8851 .eraseblocks = { {64 * 1024, 256} },
8852 .block_erase = spi_block_erase_d8,
8853 }, {
8854 .eraseblocks = { {16 * 1024 * 1024, 1} },
8855 .block_erase = spi_block_erase_60,
8856 }, {
8857 .eraseblocks = { {16 * 1024 * 1024, 1} },
8858 .block_erase = spi_block_erase_c7,
8859 }
8860 },
8861 /* TODO: security register */
8862 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8863 .unlock = spi_disable_blockprotect_bp3_srwd,
8864 .write = spi_chip_write_256, /* Multi I/O supported */
8865 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8866 .voltage = {1650, 2000},
8867 },
8868
8869 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008870 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008871 .name = "MX25U25635F",
8872 .bustype = BUS_SPI,
8873 .manufacture_id = MACRONIX_ID,
8874 .model_id = MACRONIX_MX25U25635F,
8875 .total_size = 32768,
8876 .page_size = 256,
8877 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8879 .tested = TEST_OK_PR,
8880 .probe = probe_spi_rdid,
8881 .probe_timing = TIMING_ZERO,
8882 .block_erasers =
8883 {
8884 {
8885 .eraseblocks = { {4 * 1024, 8192} },
8886 .block_erase = spi_block_erase_21,
8887 }, {
8888 .eraseblocks = { {4 * 1024, 8192} },
8889 .block_erase = spi_block_erase_20,
8890 }, {
8891 .eraseblocks = { {32 * 1024, 1024} },
8892 .block_erase = spi_block_erase_5c,
8893 }, {
8894 .eraseblocks = { {32 * 1024, 1024} },
8895 .block_erase = spi_block_erase_52,
8896 }, {
8897 .eraseblocks = { {64 * 1024, 512} },
8898 .block_erase = spi_block_erase_dc,
8899 }, {
8900 .eraseblocks = { {64 * 1024, 512} },
8901 .block_erase = spi_block_erase_d8,
8902 }, {
8903 .eraseblocks = { {32 * 1024 * 1024, 1} },
8904 .block_erase = spi_block_erase_60,
8905 }, {
8906 .eraseblocks = { {32 * 1024 * 1024, 1} },
8907 .block_erase = spi_block_erase_c7,
8908 }
8909 },
8910 /* TODO: security register */
8911 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8912 .unlock = spi_disable_blockprotect_bp3_srwd,
8913 .write = spi_chip_write_256, /* Multi I/O supported */
8914 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8915 .voltage = {1650, 2000},
8916 },
8917
8918 {
8919 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008920 .name = "MX25U51245G",
8921 .bustype = BUS_SPI,
8922 .manufacture_id = MACRONIX_ID,
8923 .model_id = MACRONIX_MX25U51245G,
8924 .total_size = 65536,
8925 .page_size = 256,
8926 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8927 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8928 .tested = TEST_OK_PREW,
8929 .probe = probe_spi_rdid,
8930 .probe_timing = TIMING_ZERO,
8931 .block_erasers =
8932 {
8933 {
8934 .eraseblocks = { {4 * 1024, 16384} },
8935 .block_erase = spi_block_erase_21,
8936 }, {
8937 .eraseblocks = { {4 * 1024, 16384} },
8938 .block_erase = spi_block_erase_20,
8939 }, {
8940 .eraseblocks = { {32 * 1024, 2048} },
8941 .block_erase = spi_block_erase_5c,
8942 }, {
8943 .eraseblocks = { {32 * 1024, 2048} },
8944 .block_erase = spi_block_erase_52,
8945 }, {
8946 .eraseblocks = { {64 * 1024, 1024} },
8947 .block_erase = spi_block_erase_dc,
8948 }, {
8949 .eraseblocks = { {64 * 1024, 1024} },
8950 .block_erase = spi_block_erase_d8,
8951 }, {
8952 .eraseblocks = { {64 * 1024 * 1024, 1} },
8953 .block_erase = spi_block_erase_60,
8954 }, {
8955 .eraseblocks = { {64 * 1024 * 1024, 1} },
8956 .block_erase = spi_block_erase_c7,
8957 }
8958 },
8959 /* TODO: security register */
8960 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8961 .unlock = spi_disable_blockprotect_bp3_srwd,
8962 .write = spi_chip_write_256, /* Multi I/O supported */
8963 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8964 .voltage = {1650, 2000},
8965 },
8966
8967 {
8968 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008969 .name = "MX25L6495F",
8970 .bustype = BUS_SPI,
8971 .manufacture_id = MACRONIX_ID,
8972 .model_id = MACRONIX_MX25L6495F,
8973 .total_size = 8192,
8974 .page_size = 256,
8975 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8977 .tested = TEST_OK_PREW,
8978 .probe = probe_spi_rdid,
8979 .probe_timing = TIMING_ZERO,
8980 .block_erasers =
8981 {
8982 {
8983 .eraseblocks = { {4 * 1024, 2048} },
8984 .block_erase = spi_block_erase_20,
8985 }, {
8986 .eraseblocks = { {64 * 1024, 128} },
8987 .block_erase = spi_block_erase_d8,
8988 }, {
8989 .eraseblocks = { {32 * 1024, 256} },
8990 .block_erase = spi_block_erase_52,
8991 }, {
8992 .eraseblocks = { {8 * 1024 * 1024, 1} },
8993 .block_erase = spi_block_erase_60,
8994 }, {
8995 .eraseblocks = { {8 * 1024 * 1024, 1} },
8996 .block_erase = spi_block_erase_c7,
8997 }
8998 },
8999 .unlock = spi_disable_blockprotect,
9000 .write = spi_chip_write_256,
9001 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9002 .voltage = {2700, 3600},
9003 },
9004
9005 {
Martin Roth440057a2014-07-13 00:05:07 +00009006 .vendor = "Macronix",
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009007 .name = "MX25R6435F",
9008 .bustype = BUS_SPI,
9009 .manufacture_id = MACRONIX_ID,
9010 .model_id = MACRONIX_MX25R6435F,
9011 .total_size = 8192,
9012 .page_size = 256,
9013 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9015 .tested = TEST_OK_PREW,
9016 .probe = probe_spi_rdid,
9017 .probe_timing = TIMING_ZERO,
9018 .block_erasers =
9019 {
9020 {
9021 .eraseblocks = { {4 * 1024, 2048} },
9022 .block_erase = spi_block_erase_20,
9023 }, {
9024 .eraseblocks = { {64 * 1024, 128} },
9025 .block_erase = spi_block_erase_d8,
9026 }, {
9027 .eraseblocks = { {32 * 1024, 256} },
9028 .block_erase = spi_block_erase_52,
9029 }, {
9030 .eraseblocks = { {8 * 1024 * 1024, 1} },
9031 .block_erase = spi_block_erase_60,
9032 }, {
9033 .eraseblocks = { {8 * 1024 * 1024, 1} },
9034 .block_erase = spi_block_erase_c7,
9035 }
9036 },
9037 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9038 .unlock = spi_disable_blockprotect_bp3_srwd,
9039 .write = spi_chip_write_256,
9040 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9041 .voltage = {1650, 3600},
9042 },
9043
9044 {
9045 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009046 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009047 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009048 .manufacture_id = MACRONIX_ID,
9049 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009050 .total_size = 128,
9051 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009052 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9053 .tested = TEST_UNTESTED,
9054 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009055 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009056 .block_erasers =
9057 {
9058 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009059 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009060 {8 * 1024, 1},
9061 {4 * 1024, 2},
9062 {8 * 1024, 2},
9063 {32 * 1024, 1},
9064 {64 * 1024, 1},
9065 },
Sean Nelson35727f72010-01-28 23:55:12 +00009066 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009067 }, {
9068 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009069 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009070 }
9071 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009072 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009073 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009074 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009075 },
9076
9077 {
9078 .vendor = "Macronix",
9079 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009080 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009081 .manufacture_id = MACRONIX_ID,
9082 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009083 .total_size = 128,
9084 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009085 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009086 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009087 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009088 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009089 .block_erasers =
9090 {
9091 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009092 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009093 {64 * 1024, 1},
9094 {32 * 1024, 1},
9095 {8 * 1024, 2},
9096 {4 * 1024, 2},
9097 {8 * 1024, 1},
9098 },
Sean Nelson35727f72010-01-28 23:55:12 +00009099 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009100 }, {
9101 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009102 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009103 }
9104 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009105 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009107 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009108 },
9109
9110 {
9111 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009112 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009113 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009114 .manufacture_id = MACRONIX_ID,
9115 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009116 .total_size = 256,
9117 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009118 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009119 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009120 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009121 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009122 .block_erasers =
9123 {
9124 {
9125 .eraseblocks = {
9126 {16 * 1024, 1},
9127 {8 * 1024, 2},
9128 {32 * 1024, 1},
9129 {64 * 1024, 3},
9130 },
Sean Nelson35727f72010-01-28 23:55:12 +00009131 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009132 }, {
9133 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009134 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009135 },
9136 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009139 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009140 },
9141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009142 {
9143 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009144 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009145 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009146 .manufacture_id = MACRONIX_ID,
9147 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009148 .total_size = 256,
9149 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009150 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009151 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009152 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009153 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009154 .block_erasers =
9155 {
9156 {
9157 .eraseblocks = {
9158 {64 * 1024, 3},
9159 {32 * 1024, 1},
9160 {8 * 1024, 2},
9161 {16 * 1024, 1},
9162 },
Sean Nelson35727f72010-01-28 23:55:12 +00009163 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009164 }, {
9165 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009166 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009167 },
9168 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009171 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009172 },
9173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009174 {
9175 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009176 .name = "MX29F022(N)B",
9177 .bustype = BUS_PARALLEL,
9178 .manufacture_id = MACRONIX_ID,
9179 .model_id = MACRONIX_MX29F022B,
9180 .total_size = 256,
9181 .page_size = 0, /* unused */
9182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9183 .tested = TEST_UNTESTED,
9184 .probe = probe_jedec,
9185 .probe_timing = TIMING_ZERO,
9186 .block_erasers =
9187 {
9188 {
9189 .eraseblocks = {
9190 {16 * 1024, 1},
9191 {8 * 1024, 2},
9192 {32 * 1024, 1},
9193 {64 * 1024, 3},
9194 },
9195 .block_erase = erase_sector_jedec,
9196 }, {
9197 .eraseblocks = { {256 * 1024, 1} },
9198 .block_erase = erase_chip_block_jedec,
9199 }
9200 },
9201 .write = write_jedec_1,
9202 .read = read_memmapped,
9203 .voltage = {4500, 5500},
9204 },
9205
9206 {
9207 .vendor = "Macronix",
9208 .name = "MX29F022(N)T",
9209 .bustype = BUS_PARALLEL,
9210 .manufacture_id = MACRONIX_ID,
9211 .model_id = MACRONIX_MX29F022T,
9212 .total_size = 256,
9213 .page_size = 0, /* unused */
9214 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9215 .tested = TEST_OK_PREW,
9216 .probe = probe_jedec,
9217 .probe_timing = TIMING_ZERO,
9218 .block_erasers =
9219 {
9220 {
9221 .eraseblocks = {
9222 {64 * 1024, 3},
9223 {32 * 1024, 1},
9224 {8 * 1024, 2},
9225 {16 * 1024, 1},
9226 },
9227 .block_erase = erase_sector_jedec,
9228 }, {
9229 .eraseblocks = { {256 * 1024, 1} },
9230 .block_erase = erase_chip_block_jedec,
9231 }
9232 },
9233 .write = write_jedec_1,
9234 .read = read_memmapped,
9235 .voltage = {4500, 5500},
9236 },
9237
9238 {
9239 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009240 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009241 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009242 .manufacture_id = MACRONIX_ID,
9243 .model_id = MACRONIX_MX29F040,
9244 .total_size = 512,
9245 .page_size = 64 * 1024,
9246 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9247 .tested = TEST_UNTESTED,
9248 .probe = probe_jedec,
9249 .probe_timing = TIMING_ZERO,
9250 .block_erasers =
9251 {
9252 {
9253 .eraseblocks = { {64 * 1024, 8} },
9254 .block_erase = erase_sector_jedec,
9255 }, {
9256 .eraseblocks = { {512 * 1024, 1} },
9257 .block_erase = erase_chip_block_jedec,
9258 },
9259 },
9260 .write = write_jedec_1,
9261 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009262 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009263 },
9264
9265 {
9266 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009267 .name = "MX29GL320EB",
9268 .bustype = BUS_PARALLEL,
9269 .manufacture_id = MACRONIX_ID,
9270 .model_id = MACRONIX_MX29GL320EB,
9271 .total_size = 4096,
9272 .page_size = 128 * 1024, /* actual page size is 16 */
9273 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9274 .tested = TEST_UNTESTED,
9275 .probe = probe_jedec_29gl,
9276 .probe_timing = TIMING_ZERO,
9277 .block_erasers =
9278 {
9279 {
9280 .eraseblocks = {
9281 {8 * 1024, 8},
9282 {64 * 1024, 63},
9283 },
9284 .block_erase = erase_sector_jedec,
9285 }, {
9286 .eraseblocks = { {4 * 1024 * 1024, 1} },
9287 .block_erase = erase_chip_block_jedec,
9288 },
9289 },
9290 .write = write_jedec_1,
9291 .read = read_memmapped,
9292 .voltage = {2700, 3600},
9293 },
9294
9295 {
9296 .vendor = "Macronix",
9297 .name = "MX29GL320ET",
9298 .bustype = BUS_PARALLEL,
9299 .manufacture_id = MACRONIX_ID,
9300 .model_id = MACRONIX_MX29GL320ET,
9301 .total_size = 4096,
9302 .page_size = 128 * 1024, /* actual page size is 16 */
9303 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9304 .tested = TEST_UNTESTED,
9305 .probe = probe_jedec_29gl,
9306 .probe_timing = TIMING_ZERO,
9307 .block_erasers =
9308 {
9309 {
9310 .eraseblocks = {
9311 {64 * 1024, 63},
9312 {8 * 1024, 8},
9313 },
9314 .block_erase = erase_sector_jedec,
9315 }, {
9316 .eraseblocks = { {4 * 1024 * 1024, 1} },
9317 .block_erase = erase_chip_block_jedec,
9318 },
9319 },
9320 .write = write_jedec_1,
9321 .read = read_memmapped,
9322 .voltage = {2700, 3600},
9323 },
9324
9325 {
9326 .vendor = "Macronix",
9327 .name = "MX29GL320EH/L",
9328 .bustype = BUS_PARALLEL,
9329 .manufacture_id = MACRONIX_ID,
9330 .model_id = MACRONIX_MX29GL320EHL,
9331 .total_size = 4096,
9332 .page_size = 128 * 1024, /* actual page size is 16 */
9333 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9334 .tested = TEST_UNTESTED,
9335 .probe = probe_jedec_29gl,
9336 .probe_timing = TIMING_ZERO,
9337 .block_erasers =
9338 {
9339 {
9340 .eraseblocks = { {64 * 1024, 64} },
9341 .block_erase = erase_sector_jedec,
9342 }, {
9343 .eraseblocks = { {4 * 1024 * 1024, 1} },
9344 .block_erase = erase_chip_block_jedec,
9345 },
9346 },
9347 .write = write_jedec_1,
9348 .read = read_memmapped,
9349 .voltage = {2700, 3600},
9350 },
9351
9352 {
9353 .vendor = "Macronix",
9354 .name = "MX29GL640EB",
9355 .bustype = BUS_PARALLEL,
9356 .manufacture_id = MACRONIX_ID,
9357 .model_id = MACRONIX_MX29GL640EB,
9358 .total_size = 8192,
9359 .page_size = 128 * 1024, /* actual page size is 16 */
9360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9361 .tested = TEST_UNTESTED,
9362 .probe = probe_jedec_29gl,
9363 .probe_timing = TIMING_ZERO,
9364 .block_erasers =
9365 {
9366 {
9367 .eraseblocks = {
9368 {8 * 1024, 8},
9369 {64 * 1024, 127},
9370 },
9371 .block_erase = erase_sector_jedec,
9372 }, {
9373 .eraseblocks = { {8 * 1024 * 1024, 1} },
9374 .block_erase = erase_chip_block_jedec,
9375 },
9376 },
9377 .write = write_jedec_1,
9378 .read = read_memmapped,
9379 .voltage = {2700, 3600},
9380 },
9381
9382 {
9383 .vendor = "Macronix",
9384 .name = "MX29GL640ET",
9385 .bustype = BUS_PARALLEL,
9386 .manufacture_id = MACRONIX_ID,
9387 .model_id = MACRONIX_MX29GL640ET,
9388 .total_size = 8192,
9389 .page_size = 128 * 1024, /* actual page size is 16 */
9390 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9391 .tested = TEST_UNTESTED,
9392 .probe = probe_jedec_29gl,
9393 .probe_timing = TIMING_ZERO,
9394 .block_erasers =
9395 {
9396 {
9397 .eraseblocks = {
9398 {64 * 1024, 127},
9399 {8 * 1024, 8},
9400 },
9401 .block_erase = erase_sector_jedec,
9402 }, {
9403 .eraseblocks = { {8 * 1024 * 1024, 1} },
9404 .block_erase = erase_chip_block_jedec,
9405 },
9406 },
9407 .write = write_jedec_1,
9408 .read = read_memmapped,
9409 .voltage = {2700, 3600},
9410 },
9411
9412 {
9413 .vendor = "Macronix",
9414 .name = "MX29GL640EH/L",
9415 .bustype = BUS_PARALLEL,
9416 .manufacture_id = MACRONIX_ID,
9417 .model_id = MACRONIX_MX29GL640EHL,
9418 .total_size = 8192,
9419 .page_size = 128 * 1024, /* actual page size is 16 */
9420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9421 .tested = TEST_UNTESTED,
9422 .probe = probe_jedec_29gl,
9423 .probe_timing = TIMING_ZERO,
9424 .block_erasers =
9425 {
9426 {
9427 .eraseblocks = { {64 * 1024, 128} },
9428 .block_erase = erase_sector_jedec,
9429 }, {
9430 .eraseblocks = { {8 * 1024 * 1024, 1} },
9431 .block_erase = erase_chip_block_jedec,
9432 },
9433 },
9434 .write = write_jedec_1,
9435 .read = read_memmapped,
9436 .voltage = {2700, 3600},
9437 },
9438
9439 {
9440 .vendor = "Macronix",
9441 .name = "MX29GL128F",
9442 .bustype = BUS_PARALLEL,
9443 .manufacture_id = MACRONIX_ID,
9444 .model_id = MACRONIX_MX29GL128F,
9445 .total_size = 16384,
9446 .page_size = 128 * 1024, /* actual page size is 16 */
9447 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9448 .tested = TEST_UNTESTED,
9449 .probe = probe_jedec_29gl,
9450 .probe_timing = TIMING_ZERO,
9451 .block_erasers =
9452 {
9453 {
9454 .eraseblocks = { {128 * 1024, 128} },
9455 .block_erase = erase_sector_jedec,
9456 }, {
9457 .eraseblocks = { {16 * 1024 * 1024, 1} },
9458 .block_erase = erase_chip_block_jedec,
9459 },
9460 },
9461 .write = write_jedec_1,
9462 .read = read_memmapped,
9463 .voltage = {2700, 3600},
9464 },
9465
9466 {
9467 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009468 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009469 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009470 .manufacture_id = MACRONIX_ID,
9471 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009472 .total_size = 512,
9473 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009474 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9475 .tested = TEST_UNTESTED,
9476 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009478 .block_erasers =
9479 {
9480 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009481 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009482 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009483 }, {
9484 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009485 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009486 },
9487 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009488 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009489 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009490 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009491 },
9492
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009493 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009494 .vendor = "Micron/Numonyx/ST",
9495 .name = "M25P05-A",
9496 .bustype = BUS_SPI,
9497 .manufacture_id = ST_ID,
9498 .model_id = ST_M25P05A,
9499 .total_size = 64,
9500 .page_size = 256,
9501 .feature_bits = FEATURE_WRSR_WREN,
9502 .tested = TEST_OK_PREW,
9503 .probe = probe_spi_rdid,
9504 .probe_timing = TIMING_ZERO,
9505 .block_erasers =
9506 {
9507 {
9508 .eraseblocks = { {32 * 1024, 2} },
9509 .block_erase = spi_block_erase_d8,
9510 }, {
9511 .eraseblocks = { {64 * 1024, 1} },
9512 .block_erase = spi_block_erase_c7,
9513 }
9514 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009515 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009516 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009517 .write = spi_chip_write_256,
9518 .read = spi_chip_read,
9519 .voltage = {2700, 3600},
9520 },
9521
9522 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9523 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9524 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9525 * only is successful if RDID does not work.
9526 */
9527 {
9528 .vendor = "Micron/Numonyx/ST",
9529 .name = "M25P05",
9530 .bustype = BUS_SPI,
9531 .manufacture_id = 0, /* Not used. */
9532 .model_id = ST_M25P05_RES,
9533 .total_size = 64,
9534 .page_size = 256,
9535 .feature_bits = FEATURE_WRSR_WREN,
9536 .tested = TEST_UNTESTED,
9537 .probe = probe_spi_res1,
9538 .probe_timing = TIMING_ZERO,
9539 .block_erasers =
9540 {
9541 {
9542 .eraseblocks = { {32 * 1024, 2} },
9543 .block_erase = spi_block_erase_d8,
9544 }, {
9545 .eraseblocks = { {64 * 1024, 1} },
9546 .block_erase = spi_block_erase_c7,
9547 }
9548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009549 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009550 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009551 .write = spi_chip_write_1, /* 128 */
9552 .read = spi_chip_read,
9553 .voltage = {2700, 3600},
9554 },
9555
9556 {
9557 .vendor = "Micron/Numonyx/ST",
9558 .name = "M25P10-A",
9559 .bustype = BUS_SPI,
9560 .manufacture_id = ST_ID,
9561 .model_id = ST_M25P10A,
9562 .total_size = 128,
9563 .page_size = 256,
9564 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009565 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009566 .probe = probe_spi_rdid,
9567 .probe_timing = TIMING_ZERO,
9568 .block_erasers =
9569 {
9570 {
9571 .eraseblocks = { {32 * 1024, 4} },
9572 .block_erase = spi_block_erase_d8,
9573 }, {
9574 .eraseblocks = { {128 * 1024, 1} },
9575 .block_erase = spi_block_erase_c7,
9576 }
9577 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009578 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009579 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009580 .write = spi_chip_write_256,
9581 .read = spi_chip_read,
9582 .voltage = {2700, 3600},
9583 },
9584
9585 /* The ST M25P10 has the same problem as the M25P05. */
9586 {
9587 .vendor = "Micron/Numonyx/ST",
9588 .name = "M25P10",
9589 .bustype = BUS_SPI,
9590 .manufacture_id = 0, /* Not used. */
9591 .model_id = ST_M25P10_RES,
9592 .total_size = 128,
9593 .page_size = 256,
9594 .feature_bits = FEATURE_WRSR_WREN,
9595 .tested = TEST_UNTESTED,
9596 .probe = probe_spi_res1,
9597 .probe_timing = TIMING_ZERO,
9598 .block_erasers =
9599 {
9600 {
9601 .eraseblocks = { {32 * 1024, 4} },
9602 .block_erase = spi_block_erase_d8,
9603 }, {
9604 .eraseblocks = { {128 * 1024, 1} },
9605 .block_erase = spi_block_erase_c7,
9606 }
9607 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009608 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009609 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009610 .write = spi_chip_write_1, /* 128 */
9611 .read = spi_chip_read,
9612 .voltage = {2700, 3600},
9613 },
9614
9615 {
9616 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9617 .name = "M25P20",
9618 .bustype = BUS_SPI,
9619 .manufacture_id = ST_ID,
9620 .model_id = ST_M25P20,
9621 .total_size = 256,
9622 .page_size = 256,
9623 .feature_bits = FEATURE_WRSR_WREN,
9624 .tested = TEST_UNTESTED,
9625 .probe = probe_spi_rdid,
9626 .probe_timing = TIMING_ZERO,
9627 .block_erasers =
9628 {
9629 {
9630 .eraseblocks = { {64 * 1024, 4} },
9631 .block_erase = spi_block_erase_d8,
9632 }, {
9633 .eraseblocks = { {256 * 1024, 1} },
9634 .block_erase = spi_block_erase_c7,
9635 }
9636 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009637 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009638 .unlock = spi_disable_blockprotect,
9639 .write = spi_chip_write_256,
9640 .read = spi_chip_read, /* Fast read (0x0B) supported */
9641 .voltage = {2700, 3600},
9642 },
9643
9644 {
9645 .vendor = "Micron/Numonyx/ST",
9646 .name = "M25P20-old",
9647 .bustype = BUS_SPI,
9648 .manufacture_id = 0, /* Not used. */
9649 .model_id = ST_M25P20_RES,
9650 .total_size = 256,
9651 .page_size = 256,
9652 .feature_bits = FEATURE_WRSR_WREN,
9653 .tested = TEST_OK_PREW,
9654 .probe = probe_spi_res1,
9655 .probe_timing = TIMING_ZERO,
9656 .block_erasers =
9657 {
9658 {
9659 .eraseblocks = { {64 * 1024, 4} },
9660 .block_erase = spi_block_erase_d8,
9661 }, {
9662 .eraseblocks = { {256 * 1024, 1} },
9663 .block_erase = spi_block_erase_c7,
9664 }
9665 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009666 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009667 .unlock = spi_disable_blockprotect,
9668 .write = spi_chip_write_256,
9669 .read = spi_chip_read, /* Fast read (0x0B) supported */
9670 .voltage = {2700, 3600},
9671 },
9672
9673 {
9674 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9675 .name = "M25P40",
9676 .bustype = BUS_SPI,
9677 .manufacture_id = ST_ID,
9678 .model_id = ST_M25P40,
9679 .total_size = 512,
9680 .page_size = 256,
9681 .feature_bits = FEATURE_WRSR_WREN,
9682 .tested = TEST_OK_PREW,
9683 .probe = probe_spi_rdid,
9684 .probe_timing = TIMING_ZERO,
9685 .block_erasers =
9686 {
9687 {
9688 .eraseblocks = { {64 * 1024, 8} },
9689 .block_erase = spi_block_erase_d8,
9690 }, {
9691 .eraseblocks = { {512 * 1024, 1} },
9692 .block_erase = spi_block_erase_c7,
9693 }
9694 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009695 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009696 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009697 .write = spi_chip_write_256,
9698 .read = spi_chip_read,
9699 .voltage = {2700, 3600},
9700 },
9701
9702 {
9703 .vendor = "Micron/Numonyx/ST",
9704 .name = "M25P40-old",
9705 .bustype = BUS_SPI,
9706 .manufacture_id = 0, /* Not used. */
9707 .model_id = ST_M25P40_RES,
9708 .total_size = 512,
9709 .page_size = 256,
9710 .feature_bits = FEATURE_WRSR_WREN,
9711 .tested = TEST_UNTESTED,
9712 .probe = probe_spi_res1,
9713 .probe_timing = TIMING_ZERO,
9714 .block_erasers =
9715 {
9716 {
9717 .eraseblocks = { {64 * 1024, 8} },
9718 .block_erase = spi_block_erase_d8,
9719 }, {
9720 .eraseblocks = { {512 * 1024, 1} },
9721 .block_erase = spi_block_erase_c7,
9722 }
9723 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009724 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009725 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009726 .write = spi_chip_write_256,
9727 .read = spi_chip_read,
9728 },
9729
9730 {
9731 .vendor = "Micron/Numonyx/ST",
9732 .name = "M25P80",
9733 .bustype = BUS_SPI,
9734 .manufacture_id = ST_ID,
9735 .model_id = ST_M25P80,
9736 .total_size = 1024,
9737 .page_size = 256,
9738 .feature_bits = FEATURE_WRSR_WREN,
9739 .tested = TEST_OK_PREW,
9740 .probe = probe_spi_rdid,
9741 .probe_timing = TIMING_ZERO,
9742 .block_erasers =
9743 {
9744 {
9745 .eraseblocks = { {64 * 1024, 16} },
9746 .block_erase = spi_block_erase_d8,
9747 }, {
9748 .eraseblocks = { {1024 * 1024, 1} },
9749 .block_erase = spi_block_erase_c7,
9750 }
9751 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009752 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009753 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009754 .write = spi_chip_write_256,
9755 .read = spi_chip_read,
9756 .voltage = {2700, 3600},
9757 },
9758
9759 {
9760 .vendor = "Micron/Numonyx/ST",
9761 .name = "M25P16",
9762 .bustype = BUS_SPI,
9763 .manufacture_id = ST_ID,
9764 .model_id = ST_M25P16,
9765 .total_size = 2048,
9766 .page_size = 256,
9767 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009768 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009769 .probe = probe_spi_rdid,
9770 .probe_timing = TIMING_ZERO,
9771 .block_erasers =
9772 {
9773 {
9774 .eraseblocks = { {64 * 1024, 32} },
9775 .block_erase = spi_block_erase_d8,
9776 }, {
9777 .eraseblocks = { {2 * 1024 * 1024, 1} },
9778 .block_erase = spi_block_erase_c7,
9779 }
9780 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009781 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009782 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009783 .write = spi_chip_write_256,
9784 .read = spi_chip_read,
9785 .voltage = {2700, 3600},
9786 },
9787
9788 {
9789 .vendor = "Micron/Numonyx/ST",
9790 .name = "M25P32",
9791 .bustype = BUS_SPI,
9792 .manufacture_id = ST_ID,
9793 .model_id = ST_M25P32,
9794 .total_size = 4096,
9795 .page_size = 256,
9796 .feature_bits = FEATURE_WRSR_WREN,
9797 .tested = TEST_OK_PREW,
9798 .probe = probe_spi_rdid,
9799 .probe_timing = TIMING_ZERO,
9800 .block_erasers =
9801 {
9802 {
9803 .eraseblocks = { {64 * 1024, 64} },
9804 .block_erase = spi_block_erase_d8,
9805 }, {
9806 .eraseblocks = { {4 * 1024 * 1024, 1} },
9807 .block_erase = spi_block_erase_c7,
9808 }
9809 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009810 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009811 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009812 .write = spi_chip_write_256,
9813 .read = spi_chip_read,
9814 .voltage = {2700, 3600},
9815 },
9816
9817 {
9818 .vendor = "Micron/Numonyx/ST",
9819 .name = "M25P64",
9820 .bustype = BUS_SPI,
9821 .manufacture_id = ST_ID,
9822 .model_id = ST_M25P64,
9823 .total_size = 8192,
9824 .page_size = 256,
9825 .feature_bits = FEATURE_WRSR_WREN,
9826 .tested = TEST_OK_PREW,
9827 .probe = probe_spi_rdid,
9828 .probe_timing = TIMING_ZERO,
9829 .block_erasers =
9830 {
9831 {
9832 .eraseblocks = { {64 * 1024, 128} },
9833 .block_erase = spi_block_erase_d8,
9834 }, {
9835 .eraseblocks = { {8 * 1024 * 1024, 1} },
9836 .block_erase = spi_block_erase_c7,
9837 }
9838 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009839 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009840 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009841 .write = spi_chip_write_256,
9842 .read = spi_chip_read,
9843 .voltage = {2700, 3600},
9844 },
9845
9846 {
9847 .vendor = "Micron/Numonyx/ST",
9848 .name = "M25P128",
9849 .bustype = BUS_SPI,
9850 .manufacture_id = ST_ID,
9851 .model_id = ST_M25P128,
9852 .total_size = 16384,
9853 .page_size = 256,
9854 .feature_bits = FEATURE_WRSR_WREN,
9855 .tested = TEST_OK_PREW,
9856 .probe = probe_spi_rdid,
9857 .probe_timing = TIMING_ZERO,
9858 .block_erasers =
9859 {
9860 {
9861 .eraseblocks = { {256 * 1024, 64} },
9862 .block_erase = spi_block_erase_d8,
9863 }, {
9864 .eraseblocks = { {16 * 1024 * 1024, 1} },
9865 .block_erase = spi_block_erase_c7,
9866 }
9867 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009868 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009869 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009870 .write = spi_chip_write_256,
9871 .read = spi_chip_read,
9872 .voltage = {2700, 3600},
9873 },
9874
9875 {
9876 .vendor = "Micron/Numonyx/ST",
9877 .name = "M25PE10",
9878 .bustype = BUS_SPI,
9879 .manufacture_id = ST_ID,
9880 .model_id = ST_M25PE10,
9881 .total_size = 128,
9882 .page_size = 256,
9883 .feature_bits = FEATURE_WRSR_WREN,
9884 .tested = TEST_UNTESTED,
9885 .probe = probe_spi_rdid,
9886 .probe_timing = TIMING_ZERO,
9887 .block_erasers =
9888 {
9889 {
9890 .eraseblocks = { {4 * 1024, 32} },
9891 .block_erase = spi_block_erase_20,
9892 }, {
9893 .eraseblocks = { {64 * 1024, 2} },
9894 .block_erase = spi_block_erase_d8,
9895 }, {
9896 .eraseblocks = { {128 * 1024, 1} },
9897 .block_erase = spi_block_erase_c7,
9898 }
9899 },
9900 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9901 .unlock = spi_disable_blockprotect,
9902 .write = spi_chip_write_256,
9903 .read = spi_chip_read,
9904 .voltage = {2700, 3600},
9905 },
9906
9907 {
9908 .vendor = "Micron/Numonyx/ST",
9909 .name = "M25PE20",
9910 .bustype = BUS_SPI,
9911 .manufacture_id = ST_ID,
9912 .model_id = ST_M25PE20,
9913 .total_size = 256,
9914 .page_size = 256,
9915 .feature_bits = FEATURE_WRSR_WREN,
9916 .tested = TEST_UNTESTED,
9917 .probe = probe_spi_rdid,
9918 .probe_timing = TIMING_ZERO,
9919 .block_erasers =
9920 {
9921 {
9922 .eraseblocks = { {4 * 1024, 64} },
9923 .block_erase = spi_block_erase_20,
9924 }, {
9925 .eraseblocks = { {64 * 1024, 4} },
9926 .block_erase = spi_block_erase_d8,
9927 }, {
9928 .eraseblocks = { {256 * 1024, 1} },
9929 .block_erase = spi_block_erase_c7,
9930 }
9931 },
9932 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9933 .unlock = spi_disable_blockprotect,
9934 .write = spi_chip_write_256,
9935 .read = spi_chip_read,
9936 .voltage = {2700, 3600},
9937 },
9938
9939 {
9940 .vendor = "Micron/Numonyx/ST",
9941 .name = "M25PE40",
9942 .bustype = BUS_SPI,
9943 .manufacture_id = ST_ID,
9944 .model_id = ST_M25PE40,
9945 .total_size = 512,
9946 .page_size = 256,
9947 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009948 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009949 .probe = probe_spi_rdid,
9950 .probe_timing = TIMING_ZERO,
9951 .block_erasers =
9952 {
9953 {
9954 .eraseblocks = { {4 * 1024, 128} },
9955 .block_erase = spi_block_erase_20,
9956 }, {
9957 .eraseblocks = { {64 * 1024, 8} },
9958 .block_erase = spi_block_erase_d8,
9959 }, {
9960 .eraseblocks = { {512 * 1024, 1} },
9961 .block_erase = spi_block_erase_c7,
9962 }
9963 },
9964 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9965 .unlock = spi_disable_blockprotect,
9966 .write = spi_chip_write_256,
9967 .read = spi_chip_read,
9968 .voltage = {2700, 3600},
9969 },
9970
9971 {
9972 .vendor = "Micron/Numonyx/ST",
9973 .name = "M25PE80",
9974 .bustype = BUS_SPI,
9975 .manufacture_id = ST_ID,
9976 .model_id = ST_M25PE80,
9977 .total_size = 1024,
9978 .page_size = 256,
9979 .feature_bits = FEATURE_WRSR_WREN,
9980 .tested = TEST_OK_PREW,
9981 .probe = probe_spi_rdid,
9982 .probe_timing = TIMING_ZERO,
9983 .block_erasers =
9984 {
9985 {
9986 .eraseblocks = { {4 * 1024, 256} },
9987 .block_erase = spi_block_erase_20,
9988 }, {
9989 .eraseblocks = { {64 * 1024, 16} },
9990 .block_erase = spi_block_erase_d8,
9991 }, {
9992 .eraseblocks = { {1024 * 1024, 1} },
9993 .block_erase = spi_block_erase_c7,
9994 }
9995 },
9996 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9997 .unlock = spi_disable_blockprotect,
9998 .write = spi_chip_write_256,
9999 .read = spi_chip_read,
10000 .voltage = {2700, 3600},
10001 },
10002
10003 {
10004 .vendor = "Micron/Numonyx/ST",
10005 .name = "M25PE16",
10006 .bustype = BUS_SPI,
10007 .manufacture_id = ST_ID,
10008 .model_id = ST_M25PE16,
10009 .total_size = 2048,
10010 .page_size = 256,
10011 .feature_bits = FEATURE_WRSR_WREN,
10012 .tested = TEST_UNTESTED,
10013 .probe = probe_spi_rdid,
10014 .probe_timing = TIMING_ZERO,
10015 .block_erasers =
10016 {
10017 {
10018 .eraseblocks = { {4 * 1024, 512} },
10019 .block_erase = spi_block_erase_20,
10020 }, {
10021 .eraseblocks = { {64 * 1024, 32} },
10022 .block_erase = spi_block_erase_d8,
10023 }, {
10024 .eraseblocks = { {2 * 1024 * 1024, 1} },
10025 .block_erase = spi_block_erase_c7,
10026 }
10027 },
10028 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10029 .unlock = spi_disable_blockprotect,
10030 .write = spi_chip_write_256,
10031 .read = spi_chip_read,
10032 .voltage = {2700, 3600},
10033 },
10034
10035 {
10036 .vendor = "Micron/Numonyx/ST",
10037 .name = "M25PX80",
10038 .bustype = BUS_SPI,
10039 .manufacture_id = ST_ID,
10040 .model_id = ST_M25PX80,
10041 .total_size = 1024,
10042 .page_size = 256,
10043 /* OTP: 64B total; read 0x4B, write 0x42 */
10044 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10045 .tested = TEST_OK_PREW,
10046 .probe = probe_spi_rdid,
10047 .probe_timing = TIMING_ZERO,
10048 .block_erasers = {
10049 {
10050 .eraseblocks = { { 4 * 1024, 256 } },
10051 .block_erase = spi_block_erase_20,
10052 }, {
10053 .eraseblocks = { {64 * 1024, 16} },
10054 .block_erase = spi_block_erase_d8,
10055 }, {
10056 .eraseblocks = { {1024 * 1024, 1} },
10057 .block_erase = spi_block_erase_c7,
10058 }
10059 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010060 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010061 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10062 .write = spi_chip_write_256,
10063 .read = spi_chip_read,
10064 .voltage = {2700, 3600},
10065 },
10066
10067 {
10068 .vendor = "Micron/Numonyx/ST",
10069 .name = "M25PX16",
10070 .bustype = BUS_SPI,
10071 .manufacture_id = ST_ID,
10072 .model_id = ST_M25PX16,
10073 .total_size = 2048,
10074 .page_size = 256,
10075 /* OTP: 64B total; read 0x4B; write 0x42 */
10076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10077 .tested = TEST_OK_PREW,
10078 .probe = probe_spi_rdid,
10079 .probe_timing = TIMING_ZERO,
10080 .block_erasers =
10081 {
10082 {
10083 .eraseblocks = { { 4 * 1024, 512 } },
10084 .block_erase = spi_block_erase_20,
10085 }, {
10086 .eraseblocks = { {64 * 1024, 32} },
10087 .block_erase = spi_block_erase_d8,
10088 }, {
10089 .eraseblocks = { {2 * 1024 * 1024, 1} },
10090 .block_erase = spi_block_erase_c7,
10091 }
10092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010093 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010094 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10095 .write = spi_chip_write_256,
10096 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010097 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010098 },
10099
10100 {
10101 .vendor = "Micron/Numonyx/ST",
10102 .name = "M25PX32",
10103 .bustype = BUS_SPI,
10104 .manufacture_id = ST_ID,
10105 .model_id = ST_M25PX32,
10106 .total_size = 4096,
10107 .page_size = 256,
10108 /* OTP: 64B total; read 0x4B; write 0x42 */
10109 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10110 .tested = TEST_OK_PRE,
10111 .probe = probe_spi_rdid,
10112 .probe_timing = TIMING_ZERO,
10113 .block_erasers =
10114 {
10115 {
10116 .eraseblocks = { { 4 * 1024, 1024 } },
10117 .block_erase = spi_block_erase_20,
10118 }, {
10119 .eraseblocks = { {64 * 1024, 64} },
10120 .block_erase = spi_block_erase_d8,
10121 }, {
10122 .eraseblocks = { {4 * 1024 * 1024, 1} },
10123 .block_erase = spi_block_erase_c7,
10124 }
10125 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010126 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010127 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10128 .write = spi_chip_write_256,
10129 .read = spi_chip_read,
10130 .voltage = {2700, 3600},
10131 },
10132
10133 {
10134 .vendor = "Micron/Numonyx/ST",
10135 .name = "M25PX64",
10136 .bustype = BUS_SPI,
10137 .manufacture_id = ST_ID,
10138 .model_id = ST_M25PX64,
10139 .total_size = 8192,
10140 .page_size = 256,
10141 /* OTP: 64B total; read 0x4B; write 0x42 */
10142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010143 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010144 .probe = probe_spi_rdid,
10145 .probe_timing = TIMING_ZERO,
10146 .block_erasers =
10147 {
10148 {
10149 .eraseblocks = { { 4 * 1024, 2048 } },
10150 .block_erase = spi_block_erase_20,
10151 }, {
10152 .eraseblocks = { {64 * 1024, 128} },
10153 .block_erase = spi_block_erase_d8,
10154 }, {
10155 .eraseblocks = { {8 * 1024 * 1024, 1} },
10156 .block_erase = spi_block_erase_c7,
10157 }
10158 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010159 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010160 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10161 .write = spi_chip_write_256,
10162 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010163 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010164 },
10165
10166 {
10167 .vendor = "Micron/Numonyx/ST",
10168 .name = "M45PE10",
10169 .bustype = BUS_SPI,
10170 .manufacture_id = ST_ID,
10171 .model_id = ST_M45PE10,
10172 .total_size = 128,
10173 .page_size = 256,
10174 .tested = TEST_UNTESTED,
10175 .probe = probe_spi_rdid,
10176 .probe_timing = TIMING_ZERO,
10177 .block_erasers = {
10178 {
10179 .eraseblocks = { {256, 512} },
10180 .block_erase = spi_block_erase_db,
10181 }, {
10182 .eraseblocks = { {64 * 1024, 2} },
10183 .block_erase = spi_block_erase_d8,
10184 }
10185 },
10186 .printlock = spi_prettyprint_status_register_default_welwip,
10187 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10188 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10189 .read = spi_chip_read, /* Fast read (0x0B) supported */
10190 .voltage = {2700, 3600},
10191 },
10192
10193 {
10194 .vendor = "Micron/Numonyx/ST",
10195 .name = "M45PE20",
10196 .bustype = BUS_SPI,
10197 .manufacture_id = ST_ID,
10198 .model_id = ST_M45PE20,
10199 .total_size = 256,
10200 .page_size = 256,
10201 .tested = TEST_UNTESTED,
10202 .probe = probe_spi_rdid,
10203 .probe_timing = TIMING_ZERO,
10204 .block_erasers = {
10205 {
10206 .eraseblocks = { {256, 1024} },
10207 .block_erase = spi_block_erase_db,
10208 }, {
10209 .eraseblocks = { {64 * 1024, 4} },
10210 .block_erase = spi_block_erase_d8,
10211 }
10212 },
10213 .printlock = spi_prettyprint_status_register_default_welwip,
10214 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10215 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10216 .read = spi_chip_read, /* Fast read (0x0B) supported */
10217 .voltage = {2700, 3600},
10218 },
10219
10220 {
10221 .vendor = "Micron/Numonyx/ST",
10222 .name = "M45PE40",
10223 .bustype = BUS_SPI,
10224 .manufacture_id = ST_ID,
10225 .model_id = ST_M45PE40,
10226 .total_size = 512,
10227 .page_size = 256,
10228 .tested = TEST_UNTESTED,
10229 .probe = probe_spi_rdid,
10230 .probe_timing = TIMING_ZERO,
10231 .block_erasers = {
10232 {
10233 .eraseblocks = { {256, 2048} },
10234 .block_erase = spi_block_erase_db,
10235 }, {
10236 .eraseblocks = { {64 * 1024, 8} },
10237 .block_erase = spi_block_erase_d8,
10238 }
10239 },
10240 .printlock = spi_prettyprint_status_register_default_welwip,
10241 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010242 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010243 .read = spi_chip_read, /* Fast read (0x0B) supported */
10244 .voltage = {2700, 3600},
10245 },
10246
10247 {
10248 .vendor = "Micron/Numonyx/ST",
10249 .name = "M45PE80",
10250 .bustype = BUS_SPI,
10251 .manufacture_id = ST_ID,
10252 .model_id = ST_M45PE80,
10253 .total_size = 1024,
10254 .page_size = 256,
10255 .tested = TEST_UNTESTED,
10256 .probe = probe_spi_rdid,
10257 .probe_timing = TIMING_ZERO,
10258 .block_erasers = {
10259 {
10260 .eraseblocks = { {256, 4096} },
10261 .block_erase = spi_block_erase_db,
10262 }, {
10263 .eraseblocks = { {64 * 1024, 16} },
10264 .block_erase = spi_block_erase_d8,
10265 }
10266 },
10267 .printlock = spi_prettyprint_status_register_default_welwip,
10268 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10269 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10270 .read = spi_chip_read, /* Fast read (0x0B) supported */
10271 .voltage = {2700, 3600},
10272 },
10273
10274 {
10275 .vendor = "Micron/Numonyx/ST",
10276 .name = "M45PE16",
10277 .bustype = BUS_SPI,
10278 .manufacture_id = ST_ID,
10279 .model_id = ST_M45PE16,
10280 .total_size = 2048,
10281 .page_size = 256,
10282 .tested = TEST_UNTESTED,
10283 .probe = probe_spi_rdid,
10284 .probe_timing = TIMING_ZERO,
10285 .block_erasers = {
10286 {
10287 .eraseblocks = { {256, 8192} },
10288 .block_erase = spi_block_erase_db,
10289 }, {
10290 .eraseblocks = { {64 * 1024, 32} },
10291 .block_erase = spi_block_erase_d8,
10292 }
10293 },
10294 .printlock = spi_prettyprint_status_register_default_welwip,
10295 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10296 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10297 .read = spi_chip_read, /* Fast read (0x0B) supported */
10298 .voltage = {2700, 3600},
10299 },
10300
10301 {
10302 .vendor = "Micron/Numonyx/ST",
10303 .name = "N25Q016",
10304 .bustype = BUS_SPI,
10305 .manufacture_id = ST_ID,
10306 .model_id = ST_N25Q016__1E,
10307 .total_size = 2048,
10308 .page_size = 256,
10309 /* supports SFDP */
10310 /* OTP: 64B total; read 0x4B, write 0x42 */
10311 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10312 .tested = TEST_UNTESTED,
10313 .probe = probe_spi_rdid,
10314 .probe_timing = TIMING_ZERO,
10315 .block_erasers =
10316 {
10317 {
10318 .eraseblocks = { {4 * 1024, 512} },
10319 .block_erase = spi_block_erase_20,
10320 }, {
10321 .eraseblocks = { {32 * 1024, 64} },
10322 .block_erase = spi_block_erase_52,
10323 }, {
10324 .eraseblocks = { {64 * 1024, 32} },
10325 .block_erase = spi_block_erase_d8,
10326 }, {
10327 .eraseblocks = { {2 * 1024 * 1024, 1} },
10328 .block_erase = spi_block_erase_c7,
10329 }
10330 },
10331 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10332 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10333 .write = spi_chip_write_256, /* Multi I/O supported */
10334 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10335 .voltage = {1700, 2000},
10336 },
10337
10338 {
10339 .vendor = "Micron/Numonyx/ST",
10340 .name = "N25Q032..1E",
10341 .bustype = BUS_SPI,
10342 .manufacture_id = ST_ID,
10343 .model_id = ST_N25Q032__1E,
10344 .total_size = 4096,
10345 .page_size = 256,
10346 /* supports SFDP */
10347 /* OTP: 64B total; read 0x4B, write 0x42 */
10348 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10349 .tested = TEST_UNTESTED,
10350 .probe = probe_spi_rdid,
10351 .probe_timing = TIMING_ZERO,
10352 .block_erasers =
10353 {
10354 {
10355 .eraseblocks = { {4 * 1024, 1024} },
10356 .block_erase = spi_block_erase_20,
10357 }, {
10358 .eraseblocks = { {64 * 1024, 64} },
10359 .block_erase = spi_block_erase_d8,
10360 }, {
10361 .eraseblocks = { {4 * 1024 * 1024, 1} },
10362 .block_erase = spi_block_erase_c7,
10363 }
10364 },
10365 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10366 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10367 .write = spi_chip_write_256, /* Multi I/O supported */
10368 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10369 .voltage = {1700, 2000},
10370 },
10371
10372 {
10373 .vendor = "Micron/Numonyx/ST",
10374 .name = "N25Q032..3E",
10375 .bustype = BUS_SPI,
10376 .manufacture_id = ST_ID,
10377 .model_id = ST_N25Q032__3E,
10378 .total_size = 4096,
10379 .page_size = 256,
10380 /* supports SFDP */
10381 /* OTP: 64B total; read 0x4B, write 0x42 */
10382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10383 .tested = TEST_OK_PREW,
10384 .probe = probe_spi_rdid,
10385 .probe_timing = TIMING_ZERO,
10386 .block_erasers =
10387 {
10388 {
10389 .eraseblocks = { {4 * 1024, 1024} },
10390 .block_erase = spi_block_erase_20,
10391 }, {
10392 .eraseblocks = { {64 * 1024, 64} },
10393 .block_erase = spi_block_erase_d8,
10394 }, {
10395 .eraseblocks = { {4 * 1024 * 1024, 1} },
10396 .block_erase = spi_block_erase_c7,
10397 }
10398 },
10399 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10400 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10401 .write = spi_chip_write_256, /* Multi I/O supported */
10402 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10403 .voltage = {2700, 3600},
10404 },
10405
10406 {
10407 .vendor = "Micron/Numonyx/ST",
10408 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10409 .bustype = BUS_SPI,
10410 .manufacture_id = ST_ID,
10411 .model_id = ST_N25Q064__1E,
10412 .total_size = 8192,
10413 .page_size = 256,
10414 /* supports SFDP */
10415 /* OTP: 64B total; read 0x4B, write 0x42 */
10416 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010417 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010418 .probe = probe_spi_rdid,
10419 .probe_timing = TIMING_ZERO,
10420 .block_erasers =
10421 {
10422 {
10423 .eraseblocks = { {4 * 1024, 2048 } },
10424 .block_erase = spi_block_erase_20,
10425 }, {
10426 .eraseblocks = { {64 * 1024, 128} },
10427 .block_erase = spi_block_erase_d8,
10428 }, {
10429 .eraseblocks = { {8 * 1024 * 1024, 1} },
10430 .block_erase = spi_block_erase_c7,
10431 }
10432 },
10433 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10434 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10435 .write = spi_chip_write_256, /* Multi I/O supported */
10436 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10437 .voltage = {1700, 2000},
10438 },
10439
10440 {
10441 .vendor = "Micron/Numonyx/ST",
10442 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10443 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010444 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010445 .model_id = ST_N25Q064__3E,
10446 .total_size = 8192,
10447 .page_size = 256,
10448 /* supports SFDP */
10449 /* OTP: 64B total; read 0x4B, write 0x42 */
10450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10451 .tested = TEST_OK_PREW,
10452 .probe = probe_spi_rdid,
10453 .probe_timing = TIMING_ZERO,
10454 .block_erasers =
10455 {
10456 {
10457 .eraseblocks = { {4 * 1024, 2048 } },
10458 .block_erase = spi_block_erase_20,
10459 }, {
10460 .eraseblocks = { {64 * 1024, 128} },
10461 .block_erase = spi_block_erase_d8,
10462 }, {
10463 .eraseblocks = { {8 * 1024 * 1024, 1} },
10464 .block_erase = spi_block_erase_c7,
10465 }
10466 },
10467 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10468 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10469 .write = spi_chip_write_256, /* Multi I/O supported */
10470 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10471 .voltage = {2700, 3600},
10472 },
10473
10474 {
10475 .vendor = "Micron/Numonyx/ST",
10476 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10477 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010478 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010479 .model_id = ST_N25Q128__1E,
10480 .total_size = 16384,
10481 .page_size = 256,
10482 /* supports SFDP */
10483 /* OTP: 64B total; read 0x4B, write 0x42 */
10484 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010485 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010486 .probe = probe_spi_rdid,
10487 .probe_timing = TIMING_ZERO,
10488 .block_erasers = {
10489 {
10490 .eraseblocks = { {4 * 1024, 4096 } },
10491 .block_erase = spi_block_erase_20,
10492 }, {
10493 .eraseblocks = { {64 * 1024, 256} },
10494 .block_erase = spi_block_erase_d8,
10495 }, {
10496 .eraseblocks = { {16384 * 1024, 1} },
10497 .block_erase = spi_block_erase_c7,
10498 }
10499 },
10500 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10501 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10502 .write = spi_chip_write_256, /* Multi I/O supported */
10503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10504 .voltage = {1700, 2000},
10505 },
10506
10507 {
10508 .vendor = "Micron/Numonyx/ST",
10509 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10510 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010511 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010512 .model_id = ST_N25Q128__3E,
10513 .total_size = 16384,
10514 .page_size = 256,
10515 /* supports SFDP */
10516 /* OTP: 64B total; read 0x4B, write 0x42 */
10517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10518 .tested = TEST_OK_PREW,
10519 .probe = probe_spi_rdid,
10520 .probe_timing = TIMING_ZERO,
10521 .block_erasers = {
10522 {
10523 .eraseblocks = { {4 * 1024, 4096 } },
10524 .block_erase = spi_block_erase_20,
10525 }, {
10526 .eraseblocks = { {64 * 1024, 256} },
10527 .block_erase = spi_block_erase_d8,
10528 }, {
10529 .eraseblocks = { {16384 * 1024, 1} },
10530 .block_erase = spi_block_erase_c7,
10531 }
10532 },
10533 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10534 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10535 .write = spi_chip_write_256, /* Multi I/O supported */
10536 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10537 .voltage = {2700, 3600},
10538 },
10539
10540 {
Ed Swierk199ab392017-07-03 13:33:44 -070010541 .vendor = "Micron",
10542 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10543 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010544 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070010545 .model_id = ST_N25Q256__3E,
10546 .total_size = 32768,
10547 .page_size = 256,
10548 /* supports SFDP */
10549 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10551 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010552 .probe = probe_spi_rdid,
10553 .probe_timing = TIMING_ZERO,
10554 .block_erasers = {
10555 {
10556 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010557 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010558 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010559 .eraseblocks = { {4 * 1024, 8192} },
10560 .block_erase = spi_block_erase_20,
10561 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010562 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010563 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010564 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010565 .eraseblocks = { {64 * 1024, 512} },
10566 .block_erase = spi_block_erase_d8,
10567 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010568 .eraseblocks = { {32768 * 1024, 1} },
10569 .block_erase = spi_block_erase_c7,
10570 }
10571 },
10572 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10573 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10574 .write = spi_chip_write_256, /* Multi I/O supported */
10575 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10576 .voltage = {2700, 3600},
10577 },
10578
10579 {
10580 .vendor = "Micron",
10581 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10582 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010583 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070010584 .model_id = ST_N25Q512__3E,
10585 .total_size = 65536,
10586 .page_size = 256,
10587 /* supports SFDP */
10588 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010589 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020010590 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070010591 .probe = probe_spi_rdid,
10592 .probe_timing = TIMING_ZERO,
10593 .block_erasers = {
10594 {
10595 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010596 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010597 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010598 .eraseblocks = { {4 * 1024, 16384} },
10599 .block_erase = spi_block_erase_20,
10600 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010601 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010602 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010603 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010604 .eraseblocks = { {64 * 1024, 1024} },
10605 .block_erase = spi_block_erase_d8,
10606 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010607 .eraseblocks = { {65536 * 1024, 1} },
10608 .block_erase = spi_block_erase_c7,
10609 }
10610 },
10611 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10612 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10613 .write = spi_chip_write_256, /* Multi I/O supported */
10614 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10615 .voltage = {2700, 3600},
10616 },
10617
10618 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010619 .vendor = "MoselVitelic",
10620 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010621 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010622 .manufacture_id = SYNCMOS_MVC_ID,
10623 .model_id = MVC_V29C51000B,
10624 .total_size = 64,
10625 .page_size = 512,
10626 .feature_bits = FEATURE_EITHER_RESET,
10627 .tested = TEST_UNTESTED,
10628 .probe = probe_jedec,
10629 .probe_timing = TIMING_ZERO,
10630 .block_erasers =
10631 {
10632 {
10633 .eraseblocks = { {512, 128} },
10634 .block_erase = erase_sector_jedec,
10635 }, {
10636 .eraseblocks = { {64 * 1024, 1} },
10637 .block_erase = erase_chip_block_jedec,
10638 },
10639 },
10640 .write = write_jedec_1,
10641 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010642 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010643 },
10644
10645 {
10646 .vendor = "MoselVitelic",
10647 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010648 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010649 .manufacture_id = SYNCMOS_MVC_ID,
10650 .model_id = MVC_V29C51000T,
10651 .total_size = 64,
10652 .page_size = 512,
10653 .feature_bits = FEATURE_EITHER_RESET,
10654 .tested = TEST_UNTESTED,
10655 .probe = probe_jedec,
10656 .probe_timing = TIMING_ZERO,
10657 .block_erasers =
10658 {
10659 {
10660 .eraseblocks = { {512, 128} },
10661 .block_erase = erase_sector_jedec,
10662 }, {
10663 .eraseblocks = { {64 * 1024, 1} },
10664 .block_erase = erase_chip_block_jedec,
10665 },
10666 },
10667 .write = write_jedec_1,
10668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010669 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010670 },
10671
10672 {
10673 .vendor = "MoselVitelic",
10674 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010675 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010676 .manufacture_id = SYNCMOS_MVC_ID,
10677 .model_id = MVC_V29C51400B,
10678 .total_size = 512,
10679 .page_size = 1024,
10680 .feature_bits = FEATURE_EITHER_RESET,
10681 .tested = TEST_UNTESTED,
10682 .probe = probe_jedec,
10683 .probe_timing = TIMING_ZERO,
10684 .block_erasers =
10685 {
10686 {
10687 .eraseblocks = { {1024, 512} },
10688 .block_erase = erase_sector_jedec,
10689 }, {
10690 .eraseblocks = { {512 * 1024, 1} },
10691 .block_erase = erase_chip_block_jedec,
10692 },
10693 },
10694 .write = write_jedec_1,
10695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010696 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010697 },
10698
10699 {
10700 .vendor = "MoselVitelic",
10701 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010702 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010703 .manufacture_id = SYNCMOS_MVC_ID,
10704 .model_id = MVC_V29C51400T,
10705 .total_size = 512,
10706 .page_size = 1024,
10707 .feature_bits = FEATURE_EITHER_RESET,
10708 .tested = TEST_UNTESTED,
10709 .probe = probe_jedec,
10710 .probe_timing = TIMING_ZERO,
10711 .block_erasers =
10712 {
10713 {
10714 .eraseblocks = { {1024, 512} },
10715 .block_erase = erase_sector_jedec,
10716 }, {
10717 .eraseblocks = { {512 * 1024, 1} },
10718 .block_erase = erase_chip_block_jedec,
10719 },
10720 },
10721 .write = write_jedec_1,
10722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010723 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010724 },
10725
10726 {
10727 .vendor = "MoselVitelic",
10728 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010729 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010730 .manufacture_id = SYNCMOS_MVC_ID,
10731 .model_id = MVC_V29LC51000,
10732 .total_size = 64,
10733 .page_size = 512,
10734 .feature_bits = FEATURE_EITHER_RESET,
10735 .tested = TEST_UNTESTED,
10736 .probe = probe_jedec,
10737 .probe_timing = TIMING_ZERO,
10738 .block_erasers =
10739 {
10740 {
10741 .eraseblocks = { {512, 128} },
10742 .block_erase = erase_sector_jedec,
10743 }, {
10744 .eraseblocks = { {64 * 1024, 1} },
10745 .block_erase = erase_chip_block_jedec,
10746 },
10747 },
10748 .write = write_jedec_1,
10749 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010750 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010751 },
10752
10753 {
10754 .vendor = "MoselVitelic",
10755 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010756 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010757 .manufacture_id = SYNCMOS_MVC_ID,
10758 .model_id = MVC_V29LC51001,
10759 .total_size = 128,
10760 .page_size = 512,
10761 .feature_bits = FEATURE_EITHER_RESET,
10762 .tested = TEST_UNTESTED,
10763 .probe = probe_jedec,
10764 .probe_timing = TIMING_ZERO,
10765 .block_erasers =
10766 {
10767 {
10768 .eraseblocks = { {512, 256} },
10769 .block_erase = erase_sector_jedec,
10770 }, {
10771 .eraseblocks = { {128 * 1024, 1} },
10772 .block_erase = erase_chip_block_jedec,
10773 },
10774 },
10775 .write = write_jedec_1,
10776 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010777 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010778 },
10779
10780 {
10781 .vendor = "MoselVitelic",
10782 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010783 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010784 .manufacture_id = SYNCMOS_MVC_ID,
10785 .model_id = MVC_V29LC51002,
10786 .total_size = 256,
10787 .page_size = 512,
10788 .feature_bits = FEATURE_EITHER_RESET,
10789 .tested = TEST_UNTESTED,
10790 .probe = probe_jedec,
10791 .probe_timing = TIMING_ZERO,
10792 .block_erasers =
10793 {
10794 {
10795 .eraseblocks = { {512, 512} },
10796 .block_erase = erase_sector_jedec,
10797 }, {
10798 .eraseblocks = { {256 * 1024, 1} },
10799 .block_erase = erase_chip_block_jedec,
10800 },
10801 },
10802 .write = write_jedec_1,
10803 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010804 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010805 },
10806
10807 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010808 .vendor = "Nantronics",
10809 .name = "N25S10",
10810 .bustype = BUS_SPI,
10811 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10812 .model_id = NANTRONICS_N25S10,
10813 .total_size = 128,
10814 .page_size = 256,
10815 .feature_bits = FEATURE_WRSR_WREN,
10816 .tested = TEST_UNTESTED,
10817 .probe = probe_spi_rdid,
10818 .probe_timing = TIMING_ZERO,
10819 .block_erasers =
10820 {
10821 {
10822 .eraseblocks = { {4 * 1024, 32} },
10823 .block_erase = spi_block_erase_20,
10824 }, {
10825 .eraseblocks = { {4 * 1024, 32} },
10826 .block_erase = spi_block_erase_d7,
10827 }, {
10828 .eraseblocks = { {32 * 1024, 4} },
10829 .block_erase = spi_block_erase_52,
10830 }, {
10831 .eraseblocks = { {64 * 1024, 2} },
10832 .block_erase = spi_block_erase_d8,
10833 }, {
10834 .eraseblocks = { {128 * 1024, 1} },
10835 .block_erase = spi_block_erase_60,
10836 }, {
10837 .eraseblocks = { {128 * 1024, 1} },
10838 .block_erase = spi_block_erase_c7,
10839 }
10840 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010841 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010842 .unlock = spi_disable_blockprotect_bp3_srwd,
10843 .write = spi_chip_write_256,
10844 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10845 .voltage = {2700, 3600},
10846 },
10847
10848 {
10849 .vendor = "Nantronics",
10850 .name = "N25S20",
10851 .bustype = BUS_SPI,
10852 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10853 .model_id = NANTRONICS_N25S20,
10854 .total_size = 256,
10855 .page_size = 256,
10856 .feature_bits = FEATURE_WRSR_WREN,
10857 .tested = TEST_UNTESTED,
10858 .probe = probe_spi_rdid,
10859 .probe_timing = TIMING_ZERO,
10860 .block_erasers =
10861 {
10862 {
10863 .eraseblocks = { {4 * 1024, 64} },
10864 .block_erase = spi_block_erase_20,
10865 }, {
10866 .eraseblocks = { {4 * 1024, 64} },
10867 .block_erase = spi_block_erase_d7,
10868 }, {
10869 .eraseblocks = { {32 * 1024, 8} },
10870 .block_erase = spi_block_erase_52,
10871 }, {
10872 .eraseblocks = { {64 * 1024, 4} },
10873 .block_erase = spi_block_erase_d8,
10874 }, {
10875 .eraseblocks = { {256 * 1024, 1} },
10876 .block_erase = spi_block_erase_60,
10877 }, {
10878 .eraseblocks = { {256 * 1024, 1} },
10879 .block_erase = spi_block_erase_c7,
10880 }
10881 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010882 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010883 .unlock = spi_disable_blockprotect_bp3_srwd,
10884 .write = spi_chip_write_256,
10885 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10886 .voltage = {2700, 3600},
10887 },
10888
10889 {
10890 .vendor = "Nantronics",
10891 .name = "N25S40",
10892 .bustype = BUS_SPI,
10893 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10894 .model_id = NANTRONICS_N25S40,
10895 .total_size = 512,
10896 .page_size = 256,
10897 .feature_bits = FEATURE_WRSR_WREN,
10898 .tested = TEST_UNTESTED,
10899 .probe = probe_spi_rdid,
10900 .probe_timing = TIMING_ZERO,
10901 .block_erasers =
10902 {
10903 {
10904 .eraseblocks = { {4 * 1024, 128} },
10905 .block_erase = spi_block_erase_20,
10906 }, {
10907 .eraseblocks = { {4 * 1024, 128} },
10908 .block_erase = spi_block_erase_d7,
10909 }, {
10910 .eraseblocks = { {32 * 1024, 16} },
10911 .block_erase = spi_block_erase_52,
10912 }, {
10913 .eraseblocks = { {64 * 1024, 8} },
10914 .block_erase = spi_block_erase_d8,
10915 }, {
10916 .eraseblocks = { {512 * 1024, 1} },
10917 .block_erase = spi_block_erase_60,
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,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010924 .unlock = spi_disable_blockprotect_bp3_srwd,
10925 .write = spi_chip_write_256,
10926 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10927 .voltage = {2700, 3600},
10928 },
10929
10930 {
10931 .vendor = "Nantronics",
10932 .name = "N25S80",
10933 .bustype = BUS_SPI,
10934 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10935 .model_id = NANTRONICS_N25S80,
10936 .total_size = 1024,
10937 .page_size = 256,
10938 .feature_bits = FEATURE_WRSR_WREN,
10939 .tested = TEST_UNTESTED,
10940 .probe = probe_spi_rdid,
10941 .probe_timing = TIMING_ZERO,
10942 .block_erasers =
10943 {
10944 {
10945 .eraseblocks = { {4 * 1024, 256} },
10946 .block_erase = spi_block_erase_20,
10947 }, {
10948 .eraseblocks = { {32 * 1024, 32} },
10949 .block_erase = spi_block_erase_52,
10950 }, {
10951 .eraseblocks = { {64 * 1024, 16} },
10952 .block_erase = spi_block_erase_d8,
10953 }, {
10954 .eraseblocks = { {1024 * 1024, 1} },
10955 .block_erase = spi_block_erase_60,
10956 }, {
10957 .eraseblocks = { {1024 * 1024, 1} },
10958 .block_erase = spi_block_erase_c7,
10959 }
10960 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010961 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010962 .unlock = spi_disable_blockprotect_bp3_srwd,
10963 .write = spi_chip_write_256,
10964 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10965 .voltage = {2700, 3600},
10966 },
10967
10968 {
10969 .vendor = "Nantronics",
10970 .name = "N25S16",
10971 .bustype = BUS_SPI,
10972 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10973 .model_id = NANTRONICS_N25S16,
10974 .total_size = 2048,
10975 .page_size = 256,
10976 .feature_bits = FEATURE_WRSR_WREN,
10977 .tested = TEST_UNTESTED,
10978 .probe = probe_spi_rdid,
10979 .probe_timing = TIMING_ZERO,
10980 .block_erasers =
10981 {
10982 {
10983 .eraseblocks = { {4 * 1024, 512} },
10984 .block_erase = spi_block_erase_20,
10985 }, {
10986 .eraseblocks = { {64 * 1024, 32} },
10987 .block_erase = spi_block_erase_d8,
10988 }, {
10989 .eraseblocks = { {2048 * 1024, 1} },
10990 .block_erase = spi_block_erase_60,
10991 }, {
10992 .eraseblocks = { {2048 * 1024, 1} },
10993 .block_erase = spi_block_erase_c7,
10994 }
10995 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010996 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010997 .unlock = spi_disable_blockprotect_bp3_srwd,
10998 .write = spi_chip_write_256,
10999 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11000 .voltage = {2700, 3600},
11001 },
11002
11003 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011004 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000011005 .name = "Pm25LD256C",
11006 .bustype = BUS_SPI,
11007 .manufacture_id = PMC_ID,
11008 .model_id = PMC_PM25LD256C,
11009 .total_size = 32,
11010 .page_size = 256,
11011 .feature_bits = FEATURE_WRSR_WREN,
11012 .tested = TEST_UNTESTED,
11013 .probe = probe_spi_rdid,
11014 .probe_timing = TIMING_ZERO,
11015 .block_erasers =
11016 {
11017 {
11018 .eraseblocks = { {4 * 1024, 8} },
11019 .block_erase = spi_block_erase_20,
11020 }, {
11021 .eraseblocks = { {4 * 1024, 8} },
11022 .block_erase = spi_block_erase_d7,
11023 }, {
11024 .eraseblocks = { {32 * 1024, 1} },
11025 .block_erase = spi_block_erase_d8,
11026 }, {
11027 .eraseblocks = { {32 * 1024, 1} },
11028 .block_erase = spi_block_erase_60,
11029 }, {
11030 .eraseblocks = { {32 * 1024, 1} },
11031 .block_erase = spi_block_erase_c7,
11032 }
11033 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011034 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011035 .unlock = spi_disable_blockprotect,
11036 .write = spi_chip_write_256,
11037 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11038 .voltage = {2700, 3600},
11039 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100011040
Stefan Taunerf4451612013-04-19 01:59:15 +000011041 {
11042 .vendor = "PMC",
11043 .name = "Pm25LD512(C)",
11044 .bustype = BUS_SPI,
11045 .manufacture_id = PMC_ID,
11046 .model_id = PMC_PM25LD512,
11047 .total_size = 64,
11048 .page_size = 256,
11049 .feature_bits = FEATURE_WRSR_WREN,
11050 .tested = TEST_OK_PREW,
11051 .probe = probe_spi_rdid,
11052 .probe_timing = TIMING_ZERO,
11053 .block_erasers =
11054 {
11055 {
11056 .eraseblocks = { {4 * 1024, 16} },
11057 .block_erase = spi_block_erase_20,
11058 }, {
11059 .eraseblocks = { {4 * 1024, 16} },
11060 .block_erase = spi_block_erase_d7,
11061 }, {
11062 .eraseblocks = { {32 * 1024, 2} },
11063 .block_erase = spi_block_erase_d8,
11064 }, {
11065 .eraseblocks = { {64 * 1024, 1} },
11066 .block_erase = spi_block_erase_60,
11067 }, {
11068 .eraseblocks = { {64 * 1024, 1} },
11069 .block_erase = spi_block_erase_c7,
11070 }
11071 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011072 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011073 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11074 .write = spi_chip_write_256,
11075 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11076 .voltage = {2300, 3600},
11077 },
11078
11079 {
11080 .vendor = "PMC",
11081 .name = "Pm25LD010(C)",
11082 .bustype = BUS_SPI,
11083 .manufacture_id = PMC_ID,
11084 .model_id = PMC_PM25LD010,
11085 .total_size = 128,
11086 .page_size = 256,
11087 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011088 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011089 .probe = probe_spi_rdid,
11090 .probe_timing = TIMING_ZERO,
11091 .block_erasers =
11092 {
11093 {
11094 .eraseblocks = { {4 * 1024, 32} },
11095 .block_erase = spi_block_erase_20,
11096 }, {
11097 .eraseblocks = { {4 * 1024, 32} },
11098 .block_erase = spi_block_erase_d7,
11099 }, {
11100 .eraseblocks = { {32 * 1024, 4} },
11101 .block_erase = spi_block_erase_d8,
11102 }, {
11103 .eraseblocks = { {128 * 1024, 1} },
11104 .block_erase = spi_block_erase_60,
11105 }, {
11106 .eraseblocks = { {128 * 1024, 1} },
11107 .block_erase = spi_block_erase_c7,
11108 }
11109 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011110 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011111 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11112 .write = spi_chip_write_256,
11113 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11114 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11115 },
11116
11117 {
11118 .vendor = "PMC",
11119 .name = "Pm25LD020(C)",
11120 .bustype = BUS_SPI,
11121 .manufacture_id = PMC_ID,
11122 .model_id = PMC_PM25LD020,
11123 .total_size = 256,
11124 .page_size = 256,
11125 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011126 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011127 .probe = probe_spi_rdid,
11128 .probe_timing = TIMING_ZERO,
11129 .block_erasers =
11130 {
11131 {
11132 .eraseblocks = { {4 * 1024, 64} },
11133 .block_erase = spi_block_erase_20,
11134 }, {
11135 .eraseblocks = { {4 * 1024, 64} },
11136 .block_erase = spi_block_erase_d7,
11137 }, {
11138 .eraseblocks = { {64 * 1024, 4} },
11139 .block_erase = spi_block_erase_d8,
11140 }, {
11141 .eraseblocks = { {256 * 1024, 1} },
11142 .block_erase = spi_block_erase_60,
11143 }, {
11144 .eraseblocks = { {256 * 1024, 1} },
11145 .block_erase = spi_block_erase_c7,
11146 }
11147 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011148 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011149 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11150 .write = spi_chip_write_256,
11151 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11152 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11153 },
11154
11155 {
11156 .vendor = "PMC",
11157 .name = "Pm25LD040(C)",
11158 .bustype = BUS_SPI,
11159 .manufacture_id = PMC_ID,
11160 .model_id = PMC_PM25LV040,
11161 .total_size = 512,
11162 .page_size = 256,
11163 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011164 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011165 .probe = probe_spi_rdid,
11166 .probe_timing = TIMING_ZERO,
11167 .block_erasers =
11168 {
11169 {
11170 .eraseblocks = { {4 * 1024, 128} },
11171 .block_erase = spi_block_erase_20,
11172 }, {
11173 .eraseblocks = { {4 * 1024, 128} },
11174 .block_erase = spi_block_erase_d7,
11175 }, {
11176 .eraseblocks = { {64 * 1024, 8} },
11177 .block_erase = spi_block_erase_d8,
11178 }, {
11179 .eraseblocks = { {512 * 1024, 1} },
11180 .block_erase = spi_block_erase_60,
11181 }, {
11182 .eraseblocks = { {512 * 1024, 1} },
11183 .block_erase = spi_block_erase_c7,
11184 }
11185 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011186 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011187 .unlock = spi_disable_blockprotect,
11188 .write = spi_chip_write_256,
11189 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11190 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11191 },
11192
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011193 {
11194 .vendor = "PMC",
11195 .name = "Pm25LQ020",
11196 .bustype = BUS_SPI,
11197 .manufacture_id = PMC_ID,
11198 .model_id = PMC_PM25LQ020,
11199 .total_size = 256,
11200 .page_size = 256,
11201 /* OTP: 256B total; read 0x4B, write 0xB1 */
11202 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11203 .tested = TEST_UNTESTED,
11204 .probe = probe_spi_rdid,
11205 .probe_timing = TIMING_ZERO,
11206 .block_erasers =
11207 {
11208 {
11209 .eraseblocks = { {4 * 1024, 64} },
11210 .block_erase = spi_block_erase_20,
11211 }, {
11212 .eraseblocks = { {4 * 1024, 64} },
11213 .block_erase = spi_block_erase_d7,
11214 }, {
11215 .eraseblocks = { {64 * 1024, 4} },
11216 .block_erase = spi_block_erase_d8,
11217 }, {
11218 .eraseblocks = { {256 * 1024, 1} },
11219 .block_erase = spi_block_erase_60,
11220 }, {
11221 .eraseblocks = { {256 * 1024, 1} },
11222 .block_erase = spi_block_erase_c7,
11223 }
11224 },
11225 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11226 .unlock = spi_disable_blockprotect_bp3_srwd,
11227 .write = spi_chip_write_256,
11228 .read = spi_chip_read,
11229 .voltage = {2300, 3600},
11230 },
11231
11232 {
11233 .vendor = "PMC",
11234 .name = "Pm25LQ040",
11235 .bustype = BUS_SPI,
11236 .manufacture_id = PMC_ID,
11237 .model_id = PMC_PM25LQ040,
11238 .total_size = 512,
11239 .page_size = 256,
11240 /* OTP: 256B total; read 0x4B, write 0xB1 */
11241 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11242 .tested = TEST_UNTESTED,
11243 .probe = probe_spi_rdid,
11244 .probe_timing = TIMING_ZERO,
11245 .block_erasers =
11246 {
11247 {
11248 .eraseblocks = { {4 * 1024, 128} },
11249 .block_erase = spi_block_erase_20,
11250 }, {
11251 .eraseblocks = { {4 * 1024, 128} },
11252 .block_erase = spi_block_erase_d7,
11253 }, {
11254 .eraseblocks = { {64 * 1024, 8} },
11255 .block_erase = spi_block_erase_d8,
11256 }, {
11257 .eraseblocks = { {512 * 1024, 1} },
11258 .block_erase = spi_block_erase_60,
11259 }, {
11260 .eraseblocks = { {512 * 1024, 1} },
11261 .block_erase = spi_block_erase_c7,
11262 }
11263 },
11264 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11265 .unlock = spi_disable_blockprotect_bp3_srwd,
11266 .write = spi_chip_write_256,
11267 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11268 .voltage = {2300, 3600},
11269 },
11270
11271 {
11272 .vendor = "PMC",
11273 .name = "Pm25LQ080",
11274 .bustype = BUS_SPI,
11275 .manufacture_id = PMC_ID,
11276 .model_id = PMC_PM25LQ080,
11277 .total_size = 1024,
11278 .page_size = 256,
11279 /* OTP: 64B total; read 0x4B, write 0xB1 */
11280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11281 .tested = TEST_UNTESTED,
11282 .probe = probe_spi_rdid,
11283 .probe_timing = TIMING_ZERO,
11284 .block_erasers =
11285 {
11286 {
11287 .eraseblocks = { {4 * 1024, 256} },
11288 .block_erase = spi_block_erase_20,
11289 }, {
11290 .eraseblocks = { {4 * 1024, 256} },
11291 .block_erase = spi_block_erase_d7,
11292 }, {
11293 .eraseblocks = { {64 * 1024, 16} },
11294 .block_erase = spi_block_erase_d8,
11295 }, {
11296 .eraseblocks = { {1024 * 1024, 1} },
11297 .block_erase = spi_block_erase_60,
11298 }, {
11299 .eraseblocks = { {1024 * 1024, 1} },
11300 .block_erase = spi_block_erase_c7,
11301 }
11302 },
11303 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11304 .unlock = spi_disable_blockprotect_bp3_srwd,
11305 .write = spi_chip_write_256,
11306 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11307 .voltage = {2300, 3600},
11308 },
11309
11310 {
11311 .vendor = "PMC",
11312 .name = "Pm25LQ016",
11313 .bustype = BUS_SPI,
11314 .manufacture_id = PMC_ID,
11315 .model_id = PMC_PM25LQ016,
11316 .total_size = 2048,
11317 .page_size = 256,
11318 /* OTP: 256B total; read 0x4B, write 0xB1 */
11319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11320 .tested = TEST_UNTESTED,
11321 .probe = probe_spi_rdid,
11322 .probe_timing = TIMING_ZERO,
11323 .block_erasers =
11324 {
11325 {
11326 .eraseblocks = { {4 * 1024, 512} },
11327 .block_erase = spi_block_erase_20,
11328 }, {
11329 .eraseblocks = { {4 * 1024, 512} },
11330 .block_erase = spi_block_erase_d7,
11331 }, {
11332 .eraseblocks = { {64 * 1024, 32} },
11333 .block_erase = spi_block_erase_d8,
11334 }, {
11335 .eraseblocks = { {2048 * 1024, 1} },
11336 .block_erase = spi_block_erase_60,
11337 }, {
11338 .eraseblocks = { {2048 * 1024, 1} },
11339 .block_erase = spi_block_erase_c7,
11340 }
11341 },
11342 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11343 .unlock = spi_disable_blockprotect_bp3_srwd,
11344 .write = spi_chip_write_256,
11345 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11346 .voltage = {2300, 3600},
11347 },
11348
11349 {
11350 .vendor = "PMC",
11351 .name = "Pm25LQ032C",
11352 .bustype = BUS_SPI,
11353 .manufacture_id = PMC_ID,
11354 .model_id = PMC_PM25LQ032C,
11355 .total_size = 4096,
11356 .page_size = 256,
11357 /* OTP: 64B total; read 0x4B, write 0xB1 */
11358 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011359 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011360 .probe = probe_spi_rdid,
11361 .probe_timing = TIMING_ZERO,
11362 .block_erasers =
11363 {
11364 {
11365 .eraseblocks = { {4 * 1024, 1024} },
11366 .block_erase = spi_block_erase_20,
11367 }, {
11368 .eraseblocks = { {4 * 1024, 1024} },
11369 .block_erase = spi_block_erase_d7,
11370 }, {
11371 .eraseblocks = { {64 * 1024, 64} },
11372 .block_erase = spi_block_erase_d8,
11373 }, {
11374 .eraseblocks = { {4096 * 1024, 1} },
11375 .block_erase = spi_block_erase_60,
11376 }, {
11377 .eraseblocks = { {4096 * 1024, 1} },
11378 .block_erase = spi_block_erase_c7,
11379 }
11380 },
11381 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11382 .unlock = spi_disable_blockprotect_bp3_srwd,
11383 .write = spi_chip_write_256,
11384 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11385 .voltage = {2700, 3600},
11386 },
11387
11388 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011389 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011390 .name = "Pm25LV512(A)",
11391 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011392 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011393 .model_id = PMC_PM25LV512,
11394 .total_size = 64,
11395 .page_size = 256,
11396 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000011397 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000011398 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011399 .probe_timing = TIMING_ZERO,
11400 .block_erasers =
11401 {
11402 {
11403 .eraseblocks = { {4 * 1024, 16} },
11404 .block_erase = spi_block_erase_d7,
11405 }, {
11406 .eraseblocks = { {32 * 1024, 2} },
11407 .block_erase = spi_block_erase_d8,
11408 }, {
11409 .eraseblocks = { {64 * 1024, 1} },
11410 .block_erase = spi_block_erase_c7,
11411 }
11412 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011413 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011414 .unlock = spi_disable_blockprotect,
11415 .write = spi_chip_write_256,
11416 .read = spi_chip_read, /* Fast read (0x0B) supported */
11417 .voltage = {2700, 3600},
11418 },
11419
11420 {
11421 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011422 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011423 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011424 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011425 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011426 .total_size = 128,
11427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011428 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000011429 .tested = TEST_OK_PREW,
11430 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011431 .probe_timing = TIMING_ZERO,
11432 .block_erasers =
11433 {
11434 {
11435 .eraseblocks = { {4 * 1024, 32} },
11436 .block_erase = spi_block_erase_d7,
11437 }, {
11438 .eraseblocks = { {32 * 1024, 4} },
11439 .block_erase = spi_block_erase_d8,
11440 }, {
11441 .eraseblocks = { {128 * 1024, 1} },
11442 .block_erase = spi_block_erase_c7,
11443 }
11444 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011445 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011446 .unlock = spi_disable_blockprotect,
11447 .write = spi_chip_write_256,
11448 .read = spi_chip_read, /* Fast read (0x0B) supported */
11449 .voltage = {2700, 3600},
11450 },
11451
11452 {
11453 .vendor = "PMC",
11454 .name = "Pm25LV010A",
11455 .bustype = BUS_SPI,
11456 .manufacture_id = PMC_ID,
11457 .model_id = PMC_PM25LV010,
11458 .total_size = 128,
11459 .page_size = 256,
11460 .feature_bits = FEATURE_WRSR_WREN,
11461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011463 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011464 .block_erasers =
11465 {
11466 {
11467 .eraseblocks = { {4 * 1024, 32} },
11468 .block_erase = spi_block_erase_d7,
11469 }, {
11470 .eraseblocks = { {32 * 1024, 4} },
11471 .block_erase = spi_block_erase_d8,
11472 }, {
11473 .eraseblocks = { {128 * 1024, 1} },
11474 .block_erase = spi_block_erase_c7,
11475 }
11476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011477 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011478 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011479 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011480 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011481 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011482 },
11483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011484 {
11485 .vendor = "PMC",
11486 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011487 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011488 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011489 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011490 .total_size = 256,
11491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011492 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011493 .tested = TEST_UNTESTED,
11494 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011495 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011496 .block_erasers =
11497 {
11498 {
11499 .eraseblocks = { {4 * 1024, 64} },
11500 .block_erase = spi_block_erase_d7,
11501 }, {
11502 .eraseblocks = { {64 * 1024, 4} },
11503 .block_erase = spi_block_erase_d8,
11504 }, {
11505 .eraseblocks = { {256 * 1024, 1} },
11506 .block_erase = spi_block_erase_c7,
11507 }
11508 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011509 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011511 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011512 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011513 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011514 },
11515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 {
11517 .vendor = "PMC",
11518 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011519 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011520 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011521 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011522 .total_size = 512,
11523 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011524 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011525 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011526 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011527 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011528 .block_erasers =
11529 {
11530 {
11531 .eraseblocks = { {4 * 1024, 128} },
11532 .block_erase = spi_block_erase_d7,
11533 }, {
11534 .eraseblocks = { {64 * 1024, 8} },
11535 .block_erase = spi_block_erase_d8,
11536 }, {
11537 .eraseblocks = { {512 * 1024, 1} },
11538 .block_erase = spi_block_erase_c7,
11539 }
11540 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011541 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011542 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011543 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011544 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011545 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011546 },
11547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011548 {
11549 .vendor = "PMC",
11550 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011551 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011552 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011553 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011554 .total_size = 1024,
11555 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011556 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011557 .tested = TEST_UNTESTED,
11558 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011559 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011560 .block_erasers =
11561 {
11562 {
11563 .eraseblocks = { {4 * 1024, 256} },
11564 .block_erase = spi_block_erase_d7,
11565 }, {
11566 .eraseblocks = { {4 * 1024, 256} },
11567 .block_erase = spi_block_erase_20,
11568 }, {
11569 .eraseblocks = { {64 * 1024, 16} },
11570 .block_erase = spi_block_erase_d8,
11571 }, {
11572 .eraseblocks = { {1024 * 1024, 1} },
11573 .block_erase = spi_block_erase_60,
11574 }, {
11575 .eraseblocks = { {1024 * 1024, 1} },
11576 .block_erase = spi_block_erase_c7,
11577 }
11578 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011579 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011580 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011581 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011582 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011583 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011584 },
11585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011586 {
11587 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011588 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011589 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011590 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011591 .model_id = PMC_PM25LV016B,
11592 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011593 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011594 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011595 .tested = TEST_UNTESTED,
11596 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011597 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011598 .block_erasers =
11599 {
11600 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011601 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000011602 .block_erase = spi_block_erase_d7,
11603 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011604 .eraseblocks = { {4 * 1024, 512} },
11605 .block_erase = spi_block_erase_20,
11606 }, {
11607 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000011608 .block_erase = spi_block_erase_d8,
11609 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011610 .eraseblocks = { {2 * 1024 * 1024, 1} },
11611 .block_erase = spi_block_erase_60,
11612 }, {
11613 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011614 .block_erase = spi_block_erase_c7,
11615 }
11616 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011617 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011618 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011619 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011620 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011621 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011622 },
11623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011624 {
11625 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011626 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011627 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011628 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011629 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011630 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011631 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011632 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011633 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011634 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011635 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011636 .block_erasers =
11637 {
11638 {
11639 .eraseblocks = {
11640 {128 * 1024, 1},
11641 {96 * 1024, 1},
11642 {8 * 1024, 2},
11643 {16 * 1024, 1},
11644 },
Sean Nelson35727f72010-01-28 23:55:12 +000011645 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011646 }, {
11647 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011648 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011649 },
11650 },
Sean Nelson35727f72010-01-28 23:55:12 +000011651 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011653 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011654 },
11655
11656 {
11657 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011658 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011659 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011660 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011661 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011662 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011663 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011664 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011665 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011666 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011667 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011668 .block_erasers =
11669 {
11670 {
11671 .eraseblocks = {
11672 {16 * 1024, 1},
11673 {8 * 1024, 2},
11674 {96 * 1024, 1},
11675 {128 * 1024, 1},
11676 },
Sean Nelson35727f72010-01-28 23:55:12 +000011677 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011678 }, {
11679 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011680 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011681 },
11682 },
Sean Nelson35727f72010-01-28 23:55:12 +000011683 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011685 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011686 },
11687
11688 {
11689 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011690 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011691 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011692 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011693 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011694 .total_size = 128,
11695 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011696 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011697 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011698 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011699 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011700 .block_erasers =
11701 {
11702 {
11703 .eraseblocks = { {4 * 1024, 32} },
11704 .block_erase = erase_sector_jedec,
11705 }, {
11706 .eraseblocks = { {64 * 1024, 2} },
11707 .block_erase = erase_block_jedec,
11708 }, {
11709 .eraseblocks = { {128 * 1024, 1} },
11710 .block_erase = erase_chip_block_jedec,
11711 }
11712 },
Sean Nelson35727f72010-01-28 23:55:12 +000011713 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011714 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011715 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011716 },
11717
11718 {
11719 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011720 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011721 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011722 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011723 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011724 .total_size = 256,
11725 .page_size = 4096,
11726 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11727 .tested = TEST_UNTESTED,
11728 .probe = probe_jedec,
11729 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100011730 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011731 {
11732 {
11733 .eraseblocks = { {4 * 1024, 64} },
11734 .block_erase = erase_sector_jedec,
11735 }, {
11736 .eraseblocks = { {64 * 1024, 4} },
11737 .block_erase = erase_block_jedec,
11738 }, {
11739 .eraseblocks = { {256 * 1024, 1} },
11740 .block_erase = erase_chip_block_jedec,
11741 }
11742 },
11743 .write = write_jedec_1,
11744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011745 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011746 },
11747
11748 {
11749 .vendor = "PMC",
11750 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011751 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011752 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011753 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011754 .total_size = 512,
11755 .page_size = 4096,
11756 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011757 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011758 .probe = probe_jedec,
11759 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100011760 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011761 {
11762 {
11763 .eraseblocks = { {4 * 1024, 128} },
11764 .block_erase = erase_sector_jedec,
11765 }, {
11766 .eraseblocks = { {64 * 1024, 8} },
11767 .block_erase = erase_block_jedec,
11768 }, {
11769 .eraseblocks = { {512 * 1024, 1} },
11770 .block_erase = erase_chip_block_jedec,
11771 }
11772 },
11773 .write = write_jedec_1,
11774 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011775 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011776 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011777
11778 {
11779 .vendor = "PMC",
11780 .name = "Pm39LV512",
11781 .bustype = BUS_PARALLEL,
11782 .manufacture_id = PMC_ID_NOPREFIX,
11783 .model_id = PMC_PM39LV512,
11784 .total_size = 64,
11785 .page_size = 4096,
11786 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11787 .tested = TEST_OK_PREW,
11788 .probe = probe_jedec,
11789 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11790 .block_erasers =
11791 {
11792 {
11793 .eraseblocks = { {4 * 1024, 16} },
11794 .block_erase = erase_sector_jedec,
11795 }, {
11796 .eraseblocks = { {64 * 1024, 1} },
11797 .block_erase = erase_block_jedec,
11798 }, {
11799 .eraseblocks = { {64 * 1024, 1} },
11800 .block_erase = erase_chip_block_jedec,
11801 }
11802 },
11803 .write = write_jedec_1,
11804 .read = read_memmapped,
11805 .voltage = {2700, 3600},
11806 },
11807
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011808 {
11809 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011810 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011811 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011812 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011813 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011814 .total_size = 256,
11815 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011816 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011817 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011818 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011819 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011820 .block_erasers =
11821 {
11822 {
11823 .eraseblocks = { {4 * 1024, 64} },
11824 .block_erase = erase_sector_jedec,
11825 }, {
11826 .eraseblocks = { {16 * 1024, 16} },
11827 .block_erase = erase_block_jedec,
11828 }, {
11829 .eraseblocks = { {256 * 1024, 1} },
11830 .block_erase = erase_chip_block_jedec,
11831 }
11832 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011833 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011834 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011835 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011836 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011837 },
11838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011839 {
11840 .vendor = "PMC",
11841 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011842 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011843 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011844 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011845 .total_size = 512,
11846 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011847 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011848 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011849 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011850 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011851 .block_erasers =
11852 {
11853 {
11854 .eraseblocks = { {4 * 1024, 128} },
11855 .block_erase = erase_sector_jedec,
11856 }, {
11857 .eraseblocks = { {64 * 1024, 8} },
11858 .block_erase = erase_block_jedec,
11859 }, {
11860 .eraseblocks = { {512 * 1024, 1} },
11861 .block_erase = erase_chip_block_jedec,
11862 }
11863 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011864 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011865 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011867 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011868 },
11869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011870 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011871 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011872 .name = "LE25FW106",
11873 .bustype = BUS_SPI,
11874 .manufacture_id = SANYO_ID,
11875 .model_id = SANYO_LE25FW106,
11876 .total_size = 128,
11877 .page_size = 256,
11878 .feature_bits = FEATURE_WRSR_WREN,
11879 .tested = TEST_OK_PREW,
11880 .probe = probe_spi_res2,
11881 .probe_timing = TIMING_ZERO,
11882 .block_erasers = {
11883 {
11884 .eraseblocks = { {2 * 1024, 64} },
11885 .block_erase = spi_block_erase_d7,
11886 }, {
11887 .eraseblocks = { {32 * 1024, 4} },
11888 .block_erase = spi_block_erase_d8,
11889 }, {
11890 .eraseblocks = { {128 * 1024, 1} },
11891 .block_erase = spi_block_erase_c7,
11892 }
11893 },
11894 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11895 .unlock = spi_disable_blockprotect_bp1_srwd,
11896 .write = spi_chip_write_256,
11897 .read = spi_chip_read,
11898 .voltage = {2700, 3600},
11899 },
11900
11901 {
11902 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011903 .name = "LE25FW406A",
11904 .bustype = BUS_SPI,
11905 .manufacture_id = SANYO_ID,
11906 .model_id = SANYO_LE25FW406A,
11907 .total_size = 512,
11908 .page_size = 256,
11909 .feature_bits = FEATURE_WRSR_WREN,
11910 .tested = TEST_OK_PREW,
11911 .probe = probe_spi_res2,
11912 .probe_timing = TIMING_ZERO,
11913 .block_erasers = {
11914 {
11915 .eraseblocks = { {4 * 1024, 128} },
11916 .block_erase = spi_block_erase_d7,
11917 }, {
11918 .eraseblocks = { {64 * 1024, 8} },
11919 .block_erase = spi_block_erase_d8,
11920 }, {
11921 .eraseblocks = { {512 * 1024, 1} },
11922 .block_erase = spi_block_erase_c7,
11923 }
11924 },
11925 .printlock = spi_prettyprint_status_register_plain,
11926 .unlock = spi_disable_blockprotect,
11927 .write = spi_chip_write_256,
11928 .read = spi_chip_read,
11929 .voltage = {2700, 3600},
11930 },
11931
11932 {
11933 .vendor = "Sanyo",
Angel Ponsf2cd3252018-09-30 19:03:45 +020011934 .name = "LE25FU106B",
11935 .bustype = BUS_SPI,
11936 .manufacture_id = SANYO_ID,
11937 .model_id = SANYO_LE25FU106B,
11938 .total_size = 128,
11939 .page_size = 256,
11940 .feature_bits = FEATURE_WRSR_WREN,
11941 .tested = TEST_UNTESTED,
11942 .probe = probe_spi_res2,
11943 .probe_timing = TIMING_ZERO,
11944 .block_erasers = {
11945 /* FIXME: Is this correct?
11946 {
11947 .eraseblocks = { {2 * 1024, 64} },
11948 .block_erase = spi_block_erase_d7,
11949 },*/
11950 {
11951 .eraseblocks = { {32 * 1024, 4} },
11952 .block_erase = spi_block_erase_d8,
11953 }, {
11954 .eraseblocks = { {128 * 1024, 1} },
11955 .block_erase = spi_block_erase_c7,
11956 }
11957 },
11958 .printlock = spi_prettyprint_status_register_bp1_srwd,
11959 .unlock = spi_disable_blockprotect_bp1_srwd,
11960 .write = spi_chip_write_256,
11961 .read = spi_chip_read,
11962 .voltage = {2300, 3600},
11963 },
11964
11965 {
11966 .vendor = "Sanyo",
11967 .name = "LE25FU206",
11968 .bustype = BUS_SPI,
11969 .manufacture_id = SANYO_ID,
11970 .model_id = SANYO_LE25FU206,
11971 .total_size = 256,
11972 .page_size = 256,
11973 .feature_bits = FEATURE_WRSR_WREN,
11974 .tested = TEST_UNTESTED,
11975 .probe = probe_spi_res2,
11976 .probe_timing = TIMING_ZERO,
11977 .block_erasers = {
11978 {
11979 .eraseblocks = { {4 * 1024, 64} },
11980 .block_erase = spi_block_erase_d7,
11981 }, {
11982 .eraseblocks = { {64 * 1024, 4} },
11983 .block_erase = spi_block_erase_d8,
11984 }, {
11985 .eraseblocks = { {256 * 1024, 1} },
11986 .block_erase = spi_block_erase_c7,
11987 }
11988 },
11989 .printlock = spi_prettyprint_status_register_bp1_srwd,
11990 .unlock = spi_disable_blockprotect_bp1_srwd,
11991 .write = spi_chip_write_256,
11992 .read = spi_chip_read,
11993 .voltage = {2300, 3600},
11994 },
11995
11996 {
11997 .vendor = "Sanyo",
11998 .name = "LE25FU206A",
11999 .bustype = BUS_SPI,
12000 .manufacture_id = SANYO_ID,
12001 .model_id = SANYO_LE25FU206A,
12002 .total_size = 256,
12003 .page_size = 256,
12004 .tested = TEST_UNTESTED,
12005 .probe = probe_spi_rdid,
12006 .probe_timing = TIMING_ZERO,
12007 .block_erasers = {
12008 {
12009 .eraseblocks = { {4 * 1024, 64} },
12010 .block_erase = spi_block_erase_20,
12011 }, {
12012 .eraseblocks = { {4 * 1024, 64} },
12013 .block_erase = spi_block_erase_d7,
12014 }, {
12015 .eraseblocks = { {64 * 1024, 4} },
12016 .block_erase = spi_block_erase_d8,
12017 }, {
12018 .eraseblocks = { {256 * 1024, 1} },
12019 .block_erase = spi_block_erase_60,
12020 }, {
12021 .eraseblocks = { {256 * 1024, 1} },
12022 .block_erase = spi_block_erase_c7,
12023 }
12024 },
12025 .printlock = spi_prettyprint_status_register_bp2_srwd,
12026 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
12027 .write = spi_chip_write_256,
12028 .read = spi_chip_read,
12029 .voltage = {2300, 3600},
12030 },
12031
12032 {
12033 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000012034 .name = "LE25FU406B",
12035 .bustype = BUS_SPI,
12036 .manufacture_id = SANYO_ID,
12037 .model_id = SANYO_LE25FU406B,
12038 .total_size = 512,
12039 .page_size = 256,
12040 .feature_bits = FEATURE_WRSR_WREN,
12041 .tested = TEST_OK_PREW,
12042 .probe = probe_spi_res2,
12043 .probe_timing = TIMING_ZERO,
12044 .block_erasers = {
12045 {
12046 .eraseblocks = { {4 * 1024, 128} },
12047 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012048 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000012049 .eraseblocks = { {64 * 1024, 8} },
12050 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012051 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000012052 .eraseblocks = { {512 * 1024, 1} },
12053 .block_erase = spi_block_erase_c7,
12054 }
12055 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012056 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000012057 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
12058 .write = spi_chip_write_256,
12059 .read = spi_chip_read,
12060 .voltage = {2300, 3600},
12061 },
12062
12063 {
12064 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000012065 .name = "LE25FU406C/LE25U40CMC",
12066 .bustype = BUS_SPI,
12067 .manufacture_id = SANYO_ID,
12068 .model_id = SANYO_LE25FU406C,
12069 .total_size = 512,
12070 .page_size = 256,
12071 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsce2c09d2018-09-30 20:22:02 +020012072 .tested = TEST_OK_PREW,
Stefan Tauner2f055df2015-12-25 22:13:15 +000012073 .probe = probe_spi_rdid,
12074 .probe_timing = TIMING_ZERO,
12075 .block_erasers = {
12076 {
12077 .eraseblocks = { {4 * 1024, 128} },
12078 .block_erase = spi_block_erase_20,
12079 }, {
12080 .eraseblocks = { {4 * 1024, 128} },
12081 .block_erase = spi_block_erase_d7,
12082 }, {
12083 .eraseblocks = { {64 * 1024, 8} },
12084 .block_erase = spi_block_erase_d8,
12085 }, {
12086 .eraseblocks = { {512 * 1024, 1} },
12087 .block_erase = spi_block_erase_60,
12088 }, {
12089 .eraseblocks = { {512 * 1024, 1} },
12090 .block_erase = spi_block_erase_c7,
12091 }
12092 },
12093 .printlock = spi_prettyprint_status_register_bp2_srwd,
12094 .unlock = spi_disable_blockprotect_bp2_srwd,
12095 .write = spi_chip_write_256,
12096 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
12097 .voltage = {2300, 3600},
12098 },
12099
12100 {
12101 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012102 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012103 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000012104 .manufacture_id = SANYO_ID,
12105 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012106 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000012107 .page_size = 256,
12108 .tested = TEST_UNTESTED,
12109 .probe = probe_spi_rdid,
12110 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012111 .block_erasers =
12112 {
12113 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012114 .eraseblocks = { {256, 1024} },
12115 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012116 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012117 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000012118 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012119 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012120 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012121 .block_erase = spi_block_erase_c7,
12122 }
12123 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012124 .printlock = spi_prettyprint_status_register_default_welwip,
12125 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000012126 .write = spi_chip_write_256,
12127 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012128 .voltage = {2700, 3600},
12129 },
12130
12131 {
12132 .vendor = "Sanyo",
12133 .name = "LE25FW403A",
12134 .bustype = BUS_SPI,
12135 .manufacture_id = SANYO_ID,
12136 .model_id = SANYO_LE25FW403A,
12137 .total_size = 512,
12138 .page_size = 256,
12139 .tested = TEST_UNTESTED,
12140 .probe = probe_spi_rdid,
12141 .probe_timing = TIMING_ZERO,
12142 .block_erasers = {
12143 {
12144 .eraseblocks = { {256, 2 * 1024} },
12145 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012146 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012147 .eraseblocks = { {64 * 1024, 8} },
12148 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012149 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012150 .eraseblocks = { {512 * 1024, 1} },
12151 .block_erase = spi_block_erase_c7,
12152 }
12153 },
12154 .printlock = spi_prettyprint_status_register_default_welwip,
12155 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
12156 .write = spi_chip_write_256,
12157 .read = spi_chip_read,
12158 .voltage = {2700, 3600},
12159 },
12160
12161 {
12162 .vendor = "Sanyo",
12163 .name = "LE25FW418A",
12164 .bustype = BUS_SPI,
12165 .manufacture_id = SANYO_ID,
12166 .model_id = SANYO_LE25FW418A,
12167 .total_size = 512,
12168 .page_size = 256,
12169 .feature_bits = FEATURE_WRSR_WREN,
12170 .tested = TEST_UNTESTED,
12171 .probe = probe_spi_res2,
12172 .probe_timing = TIMING_ZERO,
12173 .block_erasers = {
12174 {
12175 .eraseblocks = { {4 * 1024, 128} },
12176 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012177 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012178 .eraseblocks = { {64 * 1024, 8} },
12179 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012180 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012181 .eraseblocks = { {512 * 1024, 1} },
12182 .block_erase = spi_block_erase_c7,
12183 }
12184 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012185 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012186 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
12187 .write = spi_chip_write_256,
12188 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
12189 .voltage = {2700, 3600},
12190 },
12191
12192 {
12193 .vendor = "Sanyo",
12194 .name = "LE25FW806",
12195 .bustype = BUS_SPI,
12196 .manufacture_id = SANYO_ID,
12197 .model_id = SANYO_LE25FW806,
12198 .total_size = 1024,
12199 .page_size = 256,
12200 .feature_bits = FEATURE_WRSR_WREN,
12201 .tested = TEST_UNTESTED,
12202 .probe = probe_spi_res2,
12203 .probe_timing = TIMING_ZERO,
12204 .block_erasers = {
12205 {
12206 .eraseblocks = { {4 * 1024, 256} },
12207 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012208 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012209 .eraseblocks = { {4 * 1024, 256} },
12210 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012211 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012212 .eraseblocks = { {64 * 1024, 16} },
12213 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012214 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012215 .eraseblocks = { {1024 * 1024, 1} },
12216 .block_erase = spi_block_erase_c7,
12217 }
12218 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012219 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012220 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
12221 .write = spi_chip_write_256,
12222 .read = spi_chip_read,
12223 .voltage = {2700, 3600},
12224 },
12225
12226 {
12227 .vendor = "Sanyo",
12228 .name = "LE25FW808",
12229 .bustype = BUS_SPI,
12230 .manufacture_id = SANYO_ID,
12231 .model_id = SANYO_LE25FW808,
12232 .total_size = 1024,
12233 .page_size = 256,
12234 .feature_bits = FEATURE_WRSR_WREN,
12235 .tested = TEST_UNTESTED,
12236 .probe = probe_spi_res2,
12237 .probe_timing = TIMING_ZERO,
12238 .block_erasers = {
12239 {
12240 .eraseblocks = { {8 * 1024, 128} },
12241 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012242 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012243 .eraseblocks = { {64 * 1024, 16} },
12244 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012245 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012246 .eraseblocks = { {1024 * 1024, 1} },
12247 .block_erase = spi_block_erase_c7,
12248 }
12249 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012250 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012251 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
12252 .write = spi_chip_write_256,
12253 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
12254 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000012255 },
12256
12257 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012258 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000012259 .name = "LH28F008BJT-BTLZ1",
12260 .bustype = BUS_PARALLEL,
12261 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000012262 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000012263 .total_size = 1024,
12264 .page_size = 64 * 1024,
12265 .tested = TEST_OK_PREW,
12266 .probe = probe_82802ab,
12267 .probe_timing = TIMING_ZERO,
12268 .block_erasers =
12269 {
12270 {
12271 .eraseblocks = {
12272 {8 * 1024, 8},
12273 {64 * 1024, 15}
12274 },
12275 .block_erase = erase_block_82802ab,
12276 }, {
12277 .eraseblocks = { {1024 * 1024, 1} },
12278 .block_erase = erase_sector_49lfxxxc,
12279 }
12280 },
12281 .unlock = unlock_lh28f008bjt,
12282 .write = write_82802ab,
12283 .read = read_memmapped,
12284 .voltage = {2700, 3600},
12285 },
12286
12287 {
12288 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012289 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012290 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012291 .manufacture_id = SHARP_ID,
12292 .model_id = SHARP_LHF00L04,
12293 .total_size = 1024,
12294 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012295 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012296 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012297 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012298 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012299 .block_erasers =
12300 {
12301 {
12302 .eraseblocks = {
12303 {64 * 1024, 15},
12304 {8 * 1024, 8}
12305 },
Sean Nelson28accc22010-03-19 18:47:06 +000012306 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012307 }, {
12308 .eraseblocks = {
12309 {1024 * 1024, 1}
12310 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000012311 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012312 },
12313 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012314 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012315 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012317 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012318 },
12319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012320 {
12321 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000012322 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012323 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000012324 .manufacture_id = SPANSION_ID,
12325 .model_id = SPANSION_S25FL004A,
12326 .total_size = 512,
12327 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012328 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000012329 .tested = TEST_UNTESTED,
12330 .probe = probe_spi_rdid,
12331 .probe_timing = TIMING_ZERO,
12332 .block_erasers =
12333 {
12334 {
12335 .eraseblocks = { {64 * 1024, 8} },
12336 .block_erase = spi_block_erase_d8,
12337 }, {
12338 .eraseblocks = { {512 * 1024, 1} },
12339 .block_erase = spi_block_erase_c7,
12340 }
12341 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012342 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000012343 .unlock = spi_disable_blockprotect,
12344 .write = spi_chip_write_256,
12345 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012346 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000012347 },
12348
12349 {
12350 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000012351 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012352 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000012353 .manufacture_id = SPANSION_ID,
12354 .model_id = SPANSION_S25FL008A,
12355 .total_size = 1024,
12356 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012357 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012358 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000012359 .probe = probe_spi_rdid,
12360 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000012361 .block_erasers =
12362 {
12363 {
12364 .eraseblocks = { {64 * 1024, 16} },
12365 .block_erase = spi_block_erase_d8,
12366 }, {
12367 .eraseblocks = { {1024 * 1024, 1} },
12368 .block_erase = spi_block_erase_c7,
12369 }
12370 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012371 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012372 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000012373 .write = spi_chip_write_256,
12374 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012375 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000012376 },
12377
12378 {
12379 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012380 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012381 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012382 .manufacture_id = SPANSION_ID,
12383 .model_id = SPANSION_S25FL016A,
12384 .total_size = 2048,
12385 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012386 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012387 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012388 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012389 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012390 .block_erasers =
12391 {
12392 {
12393 .eraseblocks = { {64 * 1024, 32} },
12394 .block_erase = spi_block_erase_d8,
12395 }, {
12396 .eraseblocks = { {2 * 1024 * 1024, 1} },
12397 .block_erase = spi_block_erase_c7,
12398 }
12399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012400 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012401 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012402 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012404 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012405 },
12406
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012407 {
Rudy Hostf4e57772010-11-29 00:37:49 +000012408 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012409 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012410 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000012411 .manufacture_id = SPANSION_ID,
12412 .model_id = SPANSION_S25FL032A,
12413 .total_size = 4096,
12414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012415 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012416 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000012417 .probe = probe_spi_rdid,
12418 .probe_timing = TIMING_ZERO,
12419 .block_erasers =
12420 {
12421 {
12422 .eraseblocks = { {64 * 1024, 64} },
12423 .block_erase = spi_block_erase_d8,
12424 }, {
12425 .eraseblocks = { {4 * 1024 * 1024, 1} },
12426 .block_erase = spi_block_erase_c7,
12427 }
12428 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012429 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000012430 .unlock = spi_disable_blockprotect,
12431 .write = spi_chip_write_256,
12432 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012433 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000012434 },
12435
12436 {
12437 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012438 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012439 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000012440 .manufacture_id = SPANSION_ID,
12441 .model_id = SPANSION_S25FL064A,
12442 .total_size = 8192,
12443 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012444 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000012445 .tested = TEST_OK_PREW,
12446 .probe = probe_spi_rdid,
12447 .probe_timing = TIMING_ZERO,
12448 .block_erasers =
12449 {
12450 {
12451 .eraseblocks = { {64 * 1024, 128} },
12452 .block_erase = spi_block_erase_d8,
12453 }, {
12454 .eraseblocks = { {8 * 1024 * 1024, 1} },
12455 .block_erase = spi_block_erase_c7,
12456 }
12457 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012458 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000012459 .unlock = spi_disable_blockprotect,
12460 .write = spi_chip_write_256,
12461 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012462 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000012463 },
12464
12465 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012466 .vendor = "Spansion",
12467 .name = "S25FL204K",
12468 .bustype = BUS_SPI,
12469 .manufacture_id = SPANSION_ID,
12470 .model_id = SPANSION_S25FL204,
12471 .total_size = 512,
12472 .page_size = 256,
12473 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012474 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012475 .probe = probe_spi_rdid,
12476 .probe_timing = TIMING_ZERO,
12477 .block_erasers = {
12478 {
12479 .eraseblocks = { {4 * 1024, 128} },
12480 .block_erase = spi_block_erase_20,
12481 }, {
12482 .eraseblocks = { {64 * 1024, 8} },
12483 .block_erase = spi_block_erase_d8,
12484 }, {
12485 .eraseblocks = { { 512 * 1024, 1} },
12486 .block_erase = spi_block_erase_60,
12487 }, {
12488 .eraseblocks = { { 512 * 1024, 1} },
12489 .block_erase = spi_block_erase_c7,
12490 }
12491 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012492 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012493 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012494 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012495 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012496 .voltage = {2700, 3600},
12497 },
12498
12499 {
12500 .vendor = "Spansion",
12501 .name = "S25FL208K",
12502 .bustype = BUS_SPI,
12503 .manufacture_id = SPANSION_ID,
12504 .model_id = SPANSION_S25FL208,
12505 .total_size = 1024,
12506 .page_size = 256,
12507 .feature_bits = FEATURE_WRSR_WREN,
Nico Huber1a7fb6e2018-10-02 20:34:13 +020012508 .tested = TEST_OK_PREW,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012509 .probe = probe_spi_rdid,
12510 .probe_timing = TIMING_ZERO,
12511 .block_erasers = {
12512 {
12513 .eraseblocks = { {4 * 1024, 256} },
12514 .block_erase = spi_block_erase_20,
12515 }, {
12516 .eraseblocks = { {64 * 1024, 16} },
12517 .block_erase = spi_block_erase_d8,
12518 }, {
12519 .eraseblocks = { { 1024 * 1024, 1} },
12520 .block_erase = spi_block_erase_60,
12521 }, {
12522 .eraseblocks = { { 1024 * 1024, 1} },
12523 .block_erase = spi_block_erase_c7,
12524 }
12525 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012526 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012527 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012528 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012529 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012530 .voltage = {2700, 3600},
12531 },
12532
12533 {
12534 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000012535 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012536 .bustype = BUS_SPI,
12537 .manufacture_id = SPANSION_ID,
12538 .model_id = SPANSION_S25FL216,
12539 .total_size = 2048,
12540 .page_size = 256,
12541 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
12542 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12543 .tested = TEST_UNTESTED,
12544 .probe = probe_spi_rdid,
12545 .probe_timing = TIMING_ZERO,
12546 .block_erasers = {
12547 {
12548 .eraseblocks = { {4 * 1024, 512} },
12549 .block_erase = spi_block_erase_20,
12550 }, {
12551 .eraseblocks = { {64 * 1024, 32} },
12552 .block_erase = spi_block_erase_d8,
12553 }, {
12554 .eraseblocks = { { 2048 * 1024, 1} },
12555 .block_erase = spi_block_erase_60,
12556 }, {
12557 .eraseblocks = { { 2048 * 1024, 1} },
12558 .block_erase = spi_block_erase_c7,
12559 }
12560 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012561 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012562 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012563 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012564 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012565 .voltage = {2700, 3600},
12566 },
12567
12568 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012569 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000012570 .name = "S25FL132K",
12571 .bustype = BUS_SPI,
12572 .manufacture_id = SPANSION_ID,
12573 .model_id = SPANSION_S25FL132K,
12574 .total_size = 4096,
12575 .page_size = 256,
12576 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12578 .tested = TEST_UNTESTED,
12579 .probe = probe_spi_rdid,
12580 .probe_timing = TIMING_ZERO,
12581 .block_erasers = {
12582 {
12583 .eraseblocks = { {4 * 1024, 1024} },
12584 .block_erase = spi_block_erase_20,
12585 }, {
12586 .eraseblocks = { {64 * 1024, 64} },
12587 .block_erase = spi_block_erase_d8,
12588 }, {
12589 .eraseblocks = { { 4096 * 1024, 1} },
12590 .block_erase = spi_block_erase_60,
12591 }, {
12592 .eraseblocks = { { 4096 * 1024, 1} },
12593 .block_erase = spi_block_erase_c7,
12594 }
12595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012596 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012597 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12598 .write = spi_chip_write_256,
12599 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12600 .voltage = {2700, 3600},
12601 },
12602
12603 {
12604 .vendor = "Spansion",
12605 .name = "S25FL164K",
12606 .bustype = BUS_SPI,
12607 .manufacture_id = SPANSION_ID,
12608 .model_id = SPANSION_S25FL164K,
12609 .total_size = 8192,
12610 .page_size = 256,
12611 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12612 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12613 .tested = TEST_OK_PREW,
12614 .probe = probe_spi_rdid,
12615 .probe_timing = TIMING_ZERO,
12616 .block_erasers = {
12617 {
12618 .eraseblocks = { {4 * 1024, 2048} },
12619 .block_erase = spi_block_erase_20,
12620 }, {
12621 .eraseblocks = { {64 * 1024, 128} },
12622 .block_erase = spi_block_erase_d8,
12623 }, {
12624 .eraseblocks = { { 8192 * 1024, 1} },
12625 .block_erase = spi_block_erase_60,
12626 }, {
12627 .eraseblocks = { { 8192 * 1024, 1} },
12628 .block_erase = spi_block_erase_c7,
12629 }
12630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012631 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012632 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12633 .write = spi_chip_write_256,
12634 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12635 .voltage = {2700, 3600},
12636 },
12637
12638 {
12639 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000012640 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12641 .bustype = BUS_SPI,
12642 .manufacture_id = SPANSION_ID,
12643 .model_id = SPANSION_S25FL128,
12644 .total_size = 16384,
12645 .page_size = 256,
12646 /* supports 4B addressing */
12647 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12648 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12649 .tested = TEST_OK_PREW,
12650 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
12651 .probe = probe_spi_rdid,
12652 .probe_timing = TIMING_ZERO,
12653 .block_erasers = {
12654 {
12655 /* This chip supports erasing of 32 so-called "parameter sectors" with
12656 * opcode 0x20 which may be configured to be on top or bottom of the address
12657 * space. Trying to access an address outside these 4kB blocks does have no
12658 * effect on the memory contents, e.g.
12659 .eraseblocks = {
12660 {4 * 1024, 32},
12661 {64 * 1024, 254} // inaccessible
12662 },
12663 .block_erase = spi_block_erase_20,
12664 }, { */
12665 .eraseblocks = { { 64 * 1024, 256} },
12666 .block_erase = spi_block_erase_d8,
12667 }, {
12668 .eraseblocks = { { 16384 * 1024, 1} },
12669 .block_erase = spi_block_erase_60,
12670 }, {
12671 .eraseblocks = { { 16384 * 1024, 1} },
12672 .block_erase = spi_block_erase_c7,
12673 }
12674 },
12675 .printlock = spi_prettyprint_status_register_bp2_srwd,
12676 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12677 .write = spi_chip_write_256, /* Multi I/O supported */
12678 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12679 .voltage = {2700, 3600},
12680 },
12681
12682 {
12683 .vendor = "Spansion",
12684 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
12685 .bustype = BUS_SPI,
12686 .manufacture_id = SPANSION_ID,
12687 .model_id = SPANSION_S25FL128,
12688 .total_size = 16384,
12689 .page_size = 512,
12690 /* supports 4B addressing */
12691 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12692 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12693 .tested = TEST_UNTESTED,
12694 .probe = probe_spi_rdid,
12695 .probe_timing = TIMING_ZERO,
12696 .block_erasers = {
12697 {
12698 .eraseblocks = { {256 * 1024, 64} },
12699 .block_erase = spi_block_erase_d8,
12700 }, {
12701 .eraseblocks = { { 16384 * 1024, 1} },
12702 .block_erase = spi_block_erase_60,
12703 }, {
12704 .eraseblocks = { { 16384 * 1024, 1} },
12705 .block_erase = spi_block_erase_c7,
12706 }
12707 },
12708 .printlock = spi_prettyprint_status_register_bp2_srwd,
12709 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12710 .write = spi_chip_write_256, /* Multi I/O supported */
12711 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12712 .voltage = {2700, 3600},
12713 },
12714
12715 {
12716 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000012717 .name = "S25FL128P......0", /* uniform 64 kB sectors */
12718 .bustype = BUS_SPI,
12719 .manufacture_id = SPANSION_ID,
12720 .model_id = SPANSION_S25FL128,
12721 .total_size = 16384,
12722 .page_size = 256,
12723 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons3eb5a8c2018-10-02 01:21:24 +020012724 .tested = TEST_OK_PREW,
Stefan Tauner88b19252014-08-06 14:36:27 +000012725 .probe = probe_spi_rdid,
12726 .probe_timing = TIMING_ZERO,
12727 .block_erasers = {
12728 {
12729 .eraseblocks = { {64 * 1024, 256} },
12730 .block_erase = spi_block_erase_20,
12731 }, {
12732 .eraseblocks = { {64 * 1024, 256} },
12733 .block_erase = spi_block_erase_d8,
12734 }, {
12735 .eraseblocks = { { 16384 * 1024, 1} },
12736 .block_erase = spi_block_erase_60,
12737 }, {
12738 .eraseblocks = { { 16384 * 1024, 1} },
12739 .block_erase = spi_block_erase_c7,
12740 }
12741 },
12742 .printlock = spi_prettyprint_status_register_bp3_srwd,
12743 .unlock = spi_disable_blockprotect_bp3_srwd,
12744 .write = spi_chip_write_256,
12745 .read = spi_chip_read, /* Fast read (0x0B) supported */
12746 .voltage = {2700, 3600},
12747 },
12748
12749 {
12750 .vendor = "Spansion",
12751 .name = "S25FL128P......1", /* uniform 256kB sectors */
12752 .bustype = BUS_SPI,
12753 .manufacture_id = SPANSION_ID,
12754 .model_id = SPANSION_S25FL128,
12755 .total_size = 16384,
12756 .page_size = 256,
12757 .feature_bits = FEATURE_WRSR_WREN,
12758 .tested = TEST_UNTESTED,
12759 .probe = probe_spi_rdid,
12760 .probe_timing = TIMING_ZERO,
12761 .block_erasers = {
12762 {
12763 .eraseblocks = { {256 * 1024, 64} },
12764 .block_erase = spi_block_erase_d8,
12765 }, {
12766 .eraseblocks = { { 16384 * 1024, 1} },
12767 .block_erase = spi_block_erase_c7,
12768 }
12769 },
12770 .printlock = spi_prettyprint_status_register_bp2_srwd,
12771 .unlock = spi_disable_blockprotect_bp2_srwd,
12772 .write = spi_chip_write_256,
12773 .read = spi_chip_read, /* Fast read (0x0B) supported */
12774 .voltage = {2700, 3600},
12775 },
12776
12777 {
12778 .vendor = "Spansion",
12779 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012780 .bustype = BUS_SPI,
12781 .manufacture_id = SPANSION_ID,
12782 .model_id = SPANSION_S25FL128,
12783 .total_size = 16384,
12784 .page_size = 256,
12785 /* supports 4B addressing */
12786 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12787 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012788 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012789 .probe = probe_spi_rdid,
12790 .probe_timing = TIMING_ZERO,
12791 .block_erasers = {
12792 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012793 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12794 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12795 * have no effect on the memory contents, but sets a flag in the SR.
12796 .eraseblocks = {
12797 {4 * 1024, 32},
12798 {64 * 1024, 254} // inaccessible
12799 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012800 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012801 }, { */
12802 .eraseblocks = { { 64 * 1024, 256} },
12803 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012804 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012805 .eraseblocks = { { 16384 * 1024, 1} },
12806 .block_erase = spi_block_erase_60,
12807 }, {
12808 .eraseblocks = { { 16384 * 1024, 1} },
12809 .block_erase = spi_block_erase_c7,
12810 }
12811 },
12812 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12813 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12814 .write = spi_chip_write_256, /* Multi I/O supported */
12815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12816 .voltage = {2700, 3600},
12817 },
12818
12819 {
12820 .vendor = "Spansion",
12821 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12822 .bustype = BUS_SPI,
12823 .manufacture_id = SPANSION_ID,
12824 .model_id = SPANSION_S25FL128,
12825 .total_size = 16384,
12826 .page_size = 512,
12827 /* supports 4B addressing */
12828 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12830 .tested = TEST_UNTESTED,
12831 .probe = probe_spi_rdid,
12832 .probe_timing = TIMING_ZERO,
12833 .block_erasers = {
12834 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012835 .eraseblocks = { {256 * 1024, 64} },
12836 .block_erase = spi_block_erase_d8,
12837 }, {
12838 .eraseblocks = { { 16384 * 1024, 1} },
12839 .block_erase = spi_block_erase_60,
12840 }, {
12841 .eraseblocks = { { 16384 * 1024, 1} },
12842 .block_erase = spi_block_erase_c7,
12843 }
12844 },
12845 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12846 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12847 .write = spi_chip_write_256, /* Multi I/O supported */
12848 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12849 .voltage = {2700, 3600},
12850 },
12851
12852 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012853 .vendor = "Spansion",
12854 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12855 .bustype = BUS_SPI,
12856 .manufacture_id = SPANSION_ID,
12857 .model_id = SPANSION_S25FL128,
12858 .total_size = 16384,
12859 .page_size = 256,
12860 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12862 .tested = TEST_OK_PREW,
12863 .probe = probe_spi_rdid,
12864 .probe_timing = TIMING_ZERO,
12865 .block_erasers = {
12866 {
12867 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12868 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12869 * effect on the memory contents, but sets a flag in the SR.
12870 .eraseblocks = {
12871 {4 * 1024, 32},
12872 {64 * 1024, 254} // inaccessible
12873 },
12874 .block_erase = spi_block_erase_20,
12875 }, { */
12876 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12877 .eraseblocks = {
12878 {8 * 1024, 16},
12879 {64 * 1024, 254} // inaccessible
12880 },
12881 .block_erase = spi_block_erase_40,
12882 }, { */
12883 .eraseblocks = { { 64 * 1024, 256} },
12884 .block_erase = spi_block_erase_d8,
12885 }, {
12886 .eraseblocks = { { 16384 * 1024, 1} },
12887 .block_erase = spi_block_erase_60,
12888 }, {
12889 .eraseblocks = { { 16384 * 1024, 1} },
12890 .block_erase = spi_block_erase_c7,
12891 }
12892 },
12893 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12894 .unlock = spi_disable_blockprotect_bp2_srwd,
12895 .write = spi_chip_write_256, /* Multi I/O supported */
12896 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12897 .voltage = {2700, 3600},
12898 },
12899
12900 {
12901 .vendor = "Spansion",
12902 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12903 .bustype = BUS_SPI,
12904 .manufacture_id = SPANSION_ID,
12905 .model_id = SPANSION_S25FL128,
12906 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012907 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012908 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12910 .tested = TEST_UNTESTED,
12911 .probe = probe_spi_rdid,
12912 .probe_timing = TIMING_ZERO,
12913 .block_erasers = {
12914 {
12915 .eraseblocks = { {256 * 1024, 64} },
12916 .block_erase = spi_block_erase_d8,
12917 }, {
12918 .eraseblocks = { { 16384 * 1024, 1} },
12919 .block_erase = spi_block_erase_60,
12920 }, {
12921 .eraseblocks = { { 16384 * 1024, 1} },
12922 .block_erase = spi_block_erase_c7,
12923 }
12924 },
12925 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12926 .unlock = spi_disable_blockprotect_bp2_srwd,
12927 .write = spi_chip_write_256, /* Multi I/O supported */
12928 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12929 .voltage = {2700, 3600},
12930 },
12931
12932 {
Nico Huber57dbd642018-03-13 18:01:05 +010012933 .vendor = "Spansion",
12934 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12935 .bustype = BUS_SPI,
12936 .manufacture_id = SPANSION_ID,
12937 .model_id = SPANSION_S25FL256,
12938 .total_size = 32768,
12939 .page_size = 256,
12940 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber6329b0a2018-03-13 18:14:52 +010012941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
Nico Huber57dbd642018-03-13 18:01:05 +010012942 .tested = TEST_OK_PREW,
12943 .probe = probe_spi_rdid,
12944 .probe_timing = TIMING_ZERO,
12945 .block_erasers = {
12946 {
12947 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12948 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12949 * have no effect on the memory contents, but sets a flag in the SR.
12950 .eraseblocks = {
12951 {4 * 1024, 32},
12952 {64 * 1024, 254} // inaccessible
12953 },
12954 .block_erase = spi_block_erase_20,
12955 }, { */
12956 .eraseblocks = { { 64 * 1024, 512} },
Nico Huber6329b0a2018-03-13 18:14:52 +010012957 .block_erase = spi_block_erase_dc,
12958 }, {
12959 .eraseblocks = { { 64 * 1024, 512} },
Nico Huber57dbd642018-03-13 18:01:05 +010012960 .block_erase = spi_block_erase_d8,
12961 }, {
12962 .eraseblocks = { { 32768 * 1024, 1} },
12963 .block_erase = spi_block_erase_60,
12964 }, {
12965 .eraseblocks = { { 32768 * 1024, 1} },
12966 .block_erase = spi_block_erase_c7,
12967 }
12968 },
12969 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12970 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12971 .write = spi_chip_write_256, /* Multi I/O supported */
12972 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12973 .voltage = {2700, 3600},
12974 .wrea_override = 0x17,
12975 },
12976
12977 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012978 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012979 .name = "SST25LF020A",
12980 .bustype = BUS_SPI,
12981 .manufacture_id = SST_ID,
12982 .model_id = SST_SST25VF020_REMS,
12983 .total_size = 256,
12984 .page_size = 256,
12985 .feature_bits = FEATURE_WRSR_EWSR,
12986 .tested = TEST_OK_PREW,
12987 .probe = probe_spi_rems,
12988 .probe_timing = TIMING_ZERO,
12989 .block_erasers =
12990 {
12991 {
12992 .eraseblocks = { {4 * 1024, 64} },
12993 .block_erase = spi_block_erase_20,
12994 }, {
12995 .eraseblocks = { {32 * 1024, 8} },
12996 .block_erase = spi_block_erase_52,
12997 }, {
12998 .eraseblocks = { {256 * 1024, 1} },
12999 .block_erase = spi_block_erase_60,
13000 },
13001 },
13002 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13003 .unlock = spi_disable_blockprotect,
13004 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13005 .read = spi_chip_read, /* Fast read (0x0B) supported */
13006 .voltage = {2700, 3600},
13007 },
13008
13009 {
13010 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013011 .name = "SST25LF040A",
13012 .bustype = BUS_SPI,
13013 .manufacture_id = SST_ID,
13014 .model_id = SST_SST25VF040_REMS,
13015 .total_size = 512,
13016 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013017 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013018 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013019 .probe = probe_spi_res2,
13020 .probe_timing = TIMING_ZERO,
13021 .block_erasers =
13022 {
13023 {
13024 .eraseblocks = { {4 * 1024, 128} },
13025 .block_erase = spi_block_erase_20,
13026 }, {
13027 .eraseblocks = { {32 * 1024, 16} },
13028 .block_erase = spi_block_erase_52,
13029 }, {
13030 .eraseblocks = { {512 * 1024, 1} },
13031 .block_erase = spi_block_erase_60,
13032 },
13033 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013034 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013035 .unlock = spi_disable_blockprotect,
13036 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13037 .read = spi_chip_read,
13038 .voltage = {3000, 3600},
13039 },
13040
13041 {
13042 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013043 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013044 .bustype = BUS_SPI,
13045 .manufacture_id = SST_ID,
13046 .model_id = SST_SST25VF080_REMS,
13047 .total_size = 1024,
13048 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013049 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013050 .tested = TEST_UNTESTED,
13051 .probe = probe_spi_res2,
13052 .probe_timing = TIMING_ZERO,
13053 .block_erasers =
13054 {
13055 {
13056 .eraseblocks = { {4 * 1024, 256} },
13057 .block_erase = spi_block_erase_20,
13058 }, {
13059 .eraseblocks = { {32 * 1024, 32} },
13060 .block_erase = spi_block_erase_52,
13061 }, {
13062 .eraseblocks = { {1024 * 1024, 1} },
13063 .block_erase = spi_block_erase_60,
13064 },
13065 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013066 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013067 .unlock = spi_disable_blockprotect,
13068 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13069 .read = spi_chip_read,
13070 .voltage = {3000, 3600},
13071 },
13072
13073 {
13074 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013075 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000013076 .bustype = BUS_SPI,
13077 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000013078 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000013079 .total_size = 64,
13080 .page_size = 256,
13081 .feature_bits = FEATURE_WRSR_EWSR,
13082 .tested = TEST_OK_PREW,
13083 .probe = probe_spi_rems,
13084 .probe_timing = TIMING_ZERO,
13085 .block_erasers =
13086 {
13087 {
13088 .eraseblocks = { {4 * 1024, 16} },
13089 .block_erase = spi_block_erase_20,
13090 }, {
13091 .eraseblocks = { {32 * 1024, 2} },
13092 .block_erase = spi_block_erase_52,
13093 }, {
13094 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013095 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013096 }, {
13097 .eraseblocks = { {64 * 1024, 1} },
13098 .block_erase = spi_block_erase_60,
13099 }, {
13100 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013101 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013102 },
13103 },
13104 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13105 .unlock = spi_disable_blockprotect,
13106 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013107 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013108 .voltage = {2700, 3600},
13109 },
13110
13111 {
13112 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013113 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013114 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013115 .manufacture_id = SST_ID,
13116 .model_id = SST_SST25VF010_REMS,
13117 .total_size = 128,
13118 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013119 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013120 .tested = TEST_OK_PREW,
13121 .probe = probe_spi_rems,
13122 .probe_timing = TIMING_ZERO,
13123 .block_erasers =
13124 {
13125 {
13126 .eraseblocks = { {4 * 1024, 32} },
13127 .block_erase = spi_block_erase_20,
13128 }, {
13129 .eraseblocks = { {32 * 1024, 4} },
13130 .block_erase = spi_block_erase_52,
13131 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013132 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013133 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013134 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013135 .eraseblocks = { {128 * 1024, 1} },
13136 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013137 }, {
13138 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013139 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013140 },
13141 },
13142 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13143 .unlock = spi_disable_blockprotect,
13144 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013145 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013146 .voltage = {2700, 3600},
13147 },
13148
13149 {
13150 .vendor = "SST",
13151 .name = "SST25VF020",
13152 .bustype = BUS_SPI,
13153 .manufacture_id = SST_ID,
13154 .model_id = SST_SST25VF020_REMS,
13155 .total_size = 256,
13156 .page_size = 256,
13157 .feature_bits = FEATURE_WRSR_EWSR,
13158 .tested = TEST_UNTESTED,
13159 .probe = probe_spi_rems,
13160 .probe_timing = TIMING_ZERO,
13161 .block_erasers =
13162 {
13163 {
13164 .eraseblocks = { {4 * 1024, 64} },
13165 .block_erase = spi_block_erase_20,
13166 }, {
13167 .eraseblocks = { {32 * 1024, 8} },
13168 .block_erase = spi_block_erase_52,
13169 }, {
13170 .eraseblocks = { {256 * 1024, 1} },
13171 .block_erase = spi_block_erase_60,
13172 },
13173 },
13174 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13175 .unlock = spi_disable_blockprotect,
13176 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13177 .read = spi_chip_read, /* only */
13178 .voltage = {2700, 3600},
13179 },
13180
13181 {
13182 .vendor = "SST",
13183 .name = "SST25VF020B",
13184 .bustype = BUS_SPI,
13185 .manufacture_id = SST_ID,
13186 .model_id = SST_SST25VF020B,
13187 .total_size = 256,
13188 .page_size = 256,
13189 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013190 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013191 .probe = probe_spi_rdid,
13192 .probe_timing = TIMING_ZERO,
13193 .block_erasers =
13194 {
13195 {
13196 .eraseblocks = { {4 * 1024, 64} },
13197 .block_erase = spi_block_erase_20,
13198 }, {
13199 .eraseblocks = { {32 * 1024, 8} },
13200 .block_erase = spi_block_erase_52,
13201 }, {
13202 .eraseblocks = { {64 * 1024, 4} },
13203 .block_erase = spi_block_erase_d8,
13204 }, {
13205 .eraseblocks = { {256 * 1024, 1} },
13206 .block_erase = spi_block_erase_60,
13207 }, {
13208 .eraseblocks = { {256 * 1024, 1} },
13209 .block_erase = spi_block_erase_c7,
13210 },
13211 },
13212 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13213 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13214 .write = spi_aai_write, /* AAI supported (0xAD) */
13215 .read = spi_chip_read, /* Fast read (0x0B) supported */
13216 .voltage = {2700, 3600},
13217 },
13218
13219 {
13220 .vendor = "SST",
13221 .name = "SST25VF040",
13222 .bustype = BUS_SPI,
13223 .manufacture_id = SST_ID,
13224 .model_id = SST_SST25VF040_REMS,
13225 .total_size = 512,
13226 .page_size = 256,
13227 .feature_bits = FEATURE_WRSR_EWSR,
13228 .tested = TEST_OK_PR,
13229 .probe = probe_spi_rems,
13230 .probe_timing = TIMING_ZERO,
13231 .block_erasers =
13232 {
13233 {
13234 .eraseblocks = { {4 * 1024, 128} },
13235 .block_erase = spi_block_erase_20,
13236 }, {
13237 .eraseblocks = { {32 * 1024, 16} },
13238 .block_erase = spi_block_erase_52,
13239 }, {
13240 .eraseblocks = { {512 * 1024, 1} },
13241 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013242 },
13243 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013244 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013245 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013246 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13247 .read = spi_chip_read,
13248 .voltage = {2700, 3600},
13249 },
13250
13251 {
13252 .vendor = "SST",
13253 .name = "SST25VF040B",
13254 .bustype = BUS_SPI,
13255 .manufacture_id = SST_ID,
13256 .model_id = SST_SST25VF040B,
13257 .total_size = 512,
13258 .page_size = 256,
13259 .feature_bits = FEATURE_WRSR_EWSR,
13260 .tested = TEST_OK_PREW,
13261 .probe = probe_spi_rdid,
13262 .probe_timing = TIMING_ZERO,
13263 .block_erasers =
13264 {
13265 {
13266 .eraseblocks = { {4 * 1024, 128} },
13267 .block_erase = spi_block_erase_20,
13268 }, {
13269 .eraseblocks = { {32 * 1024, 16} },
13270 .block_erase = spi_block_erase_52,
13271 }, {
13272 .eraseblocks = { {64 * 1024, 8} },
13273 .block_erase = spi_block_erase_d8,
13274 }, {
13275 .eraseblocks = { {512 * 1024, 1} },
13276 .block_erase = spi_block_erase_60,
13277 }, {
13278 .eraseblocks = { {512 * 1024, 1} },
13279 .block_erase = spi_block_erase_c7,
13280 },
13281 },
13282 .printlock = spi_prettyprint_status_register_sst25vf040b,
13283 .unlock = spi_disable_blockprotect,
13284 .write = spi_aai_write, /* AAI supported (0xAD) */
13285 .read = spi_chip_read, /* Fast read (0x0B) supported */
13286 .voltage = {2700, 3600},
13287 },
13288
13289 {
13290 .vendor = "SST",
13291 .name = "SST25VF040B.REMS",
13292 .bustype = BUS_SPI,
13293 .manufacture_id = SST_ID,
13294 .model_id = SST_SST25VF040B_REMS,
13295 .total_size = 512,
13296 .page_size = 256,
13297 .feature_bits = FEATURE_WRSR_EWSR,
13298 .tested = TEST_OK_PREW,
13299 .probe = probe_spi_rems,
13300 .probe_timing = TIMING_ZERO,
13301 .block_erasers =
13302 {
13303 {
13304 .eraseblocks = { {4 * 1024, 128} },
13305 .block_erase = spi_block_erase_20,
13306 }, {
13307 .eraseblocks = { {32 * 1024, 16} },
13308 .block_erase = spi_block_erase_52,
13309 }, {
13310 .eraseblocks = { {64 * 1024, 8} },
13311 .block_erase = spi_block_erase_d8,
13312 }, {
13313 .eraseblocks = { {512 * 1024, 1} },
13314 .block_erase = spi_block_erase_60,
13315 }, {
13316 .eraseblocks = { {512 * 1024, 1} },
13317 .block_erase = spi_block_erase_c7,
13318 },
13319 },
13320 .printlock = spi_prettyprint_status_register_sst25vf040b,
13321 .unlock = spi_disable_blockprotect,
13322 .write = spi_aai_write,
13323 .read = spi_chip_read,
13324 .voltage = {2700, 3600},
13325 },
13326
13327 {
13328 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013329 .name = "SST25WF020A",
13330 .bustype = BUS_SPI,
13331 .manufacture_id = SANYO_ID, /* See flashchips.h */
13332 .model_id = SST_SST25WF020A,
13333 .total_size = 256,
13334 .page_size = 256,
13335 .feature_bits = FEATURE_WRSR_WREN,
13336 .tested = TEST_UNTESTED,
13337 .probe = probe_spi_rdid,
13338 .probe_timing = TIMING_ZERO,
13339 .block_erasers =
13340 {
13341 {
13342 .eraseblocks = { {4 * 1024, 64} },
13343 .block_erase = spi_block_erase_20,
13344 }, {
13345 .eraseblocks = { {64 * 1024, 4} },
13346 .block_erase = spi_block_erase_d8,
13347 }, {
13348 .eraseblocks = { {256 * 1024, 1} },
13349 .block_erase = spi_block_erase_60,
13350 }, {
13351 .eraseblocks = { {256 * 1024, 1} },
13352 .block_erase = spi_block_erase_c7,
13353 },
13354 },
13355 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13356 .unlock = spi_disable_blockprotect_bp2_srwd,
13357 .write = spi_chip_write_256,
13358 .read = spi_chip_read, /* Fast read (0x0B) supported */
13359 .voltage = {1650, 1950},
13360 },
13361
13362 {
13363 .vendor = "SST",
13364 .name = "SST25WF040B",
13365 .bustype = BUS_SPI,
13366 .manufacture_id = SANYO_ID, /* See flashchips.h */
13367 .model_id = SST_SST25WF040B,
13368 .total_size = 512,
13369 .page_size = 256,
13370 .feature_bits = FEATURE_WRSR_WREN,
13371 .tested = TEST_UNTESTED,
13372 .probe = probe_spi_rdid,
13373 .probe_timing = TIMING_ZERO,
13374 .block_erasers =
13375 {
13376 {
13377 .eraseblocks = { {4 * 1024, 128} },
13378 .block_erase = spi_block_erase_20,
13379 }, {
13380 .eraseblocks = { {64 * 1024, 8} },
13381 .block_erase = spi_block_erase_d8,
13382 }, {
13383 .eraseblocks = { {512 * 1024, 1} },
13384 .block_erase = spi_block_erase_60,
13385 }, {
13386 .eraseblocks = { {512 * 1024, 1} },
13387 .block_erase = spi_block_erase_c7,
13388 },
13389 },
13390 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13391 .unlock = spi_disable_blockprotect_bp2_srwd,
13392 .write = spi_chip_write_256,
13393 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13394 .voltage = {1650, 1950},
13395 },
13396
13397 {
13398 .vendor = "SST",
13399 .name = "SST25WF080B",
13400 .bustype = BUS_SPI,
13401 .manufacture_id = SANYO_ID, /* See flashchips.h */
13402 .model_id = SST_SST25WF080B,
13403 .total_size = 1024,
13404 .page_size = 256,
13405 .feature_bits = FEATURE_WRSR_WREN,
13406 .tested = TEST_OK_PREW,
13407 .probe = probe_spi_rdid,
13408 .probe_timing = TIMING_ZERO,
13409 .block_erasers =
13410 {
13411 {
13412 .eraseblocks = { {4 * 1024, 256} },
13413 .block_erase = spi_block_erase_20,
13414 }, {
13415 .eraseblocks = { {64 * 1024, 16} },
13416 .block_erase = spi_block_erase_d8,
13417 }, {
13418 .eraseblocks = { {1024 * 1024, 1} },
13419 .block_erase = spi_block_erase_60,
13420 }, {
13421 .eraseblocks = { {1024 * 1024, 1} },
13422 .block_erase = spi_block_erase_c7,
13423 },
13424 },
13425 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13426 .unlock = spi_disable_blockprotect_bp2_srwd,
13427 .write = spi_chip_write_256,
13428 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13429 .voltage = {1650, 1950},
13430 },
13431
13432 {
13433 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013434 .name = "SST25VF080B",
13435 .bustype = BUS_SPI,
13436 .manufacture_id = SST_ID,
13437 .model_id = SST_SST25VF080B,
13438 .total_size = 1024,
13439 .page_size = 256,
13440 .feature_bits = FEATURE_WRSR_EWSR,
13441 .tested = TEST_OK_PREW,
13442 .probe = probe_spi_rdid,
13443 .probe_timing = TIMING_ZERO,
13444 .block_erasers =
13445 {
13446 {
13447 .eraseblocks = { {4 * 1024, 256} },
13448 .block_erase = spi_block_erase_20,
13449 }, {
13450 .eraseblocks = { {32 * 1024, 32} },
13451 .block_erase = spi_block_erase_52,
13452 }, {
13453 .eraseblocks = { {64 * 1024, 16} },
13454 .block_erase = spi_block_erase_d8,
13455 }, {
13456 .eraseblocks = { {1024 * 1024, 1} },
13457 .block_erase = spi_block_erase_60,
13458 }, {
13459 .eraseblocks = { {1024 * 1024, 1} },
13460 .block_erase = spi_block_erase_c7,
13461 },
13462 },
13463 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13464 .unlock = spi_disable_blockprotect,
13465 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013466 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013467 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013468 },
13469
13470 {
13471 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013472 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013473 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013474 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013475 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 .total_size = 2048,
13477 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013478 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013479 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013480 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013481 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013482 .block_erasers =
13483 {
13484 {
13485 .eraseblocks = { {4 * 1024, 512} },
13486 .block_erase = spi_block_erase_20,
13487 }, {
13488 .eraseblocks = { {32 * 1024, 64} },
13489 .block_erase = spi_block_erase_52,
13490 }, {
13491 .eraseblocks = { {64 * 1024, 32} },
13492 .block_erase = spi_block_erase_d8,
13493 }, {
13494 .eraseblocks = { {2 * 1024 * 1024, 1} },
13495 .block_erase = spi_block_erase_60,
13496 }, {
13497 .eraseblocks = { {2 * 1024 * 1024, 1} },
13498 .block_erase = spi_block_erase_c7,
13499 },
13500 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013501 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013502 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000013503 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013504 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013505 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013506 },
13507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013508 {
13509 .vendor = "SST",
13510 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013511 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013512 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013513 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 .total_size = 4096,
13515 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013516 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013517 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013518 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013519 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013520 .block_erasers =
13521 {
13522 {
13523 .eraseblocks = { {4 * 1024, 1024} },
13524 .block_erase = spi_block_erase_20,
13525 }, {
13526 .eraseblocks = { {32 * 1024, 128} },
13527 .block_erase = spi_block_erase_52,
13528 }, {
13529 .eraseblocks = { {64 * 1024, 64} },
13530 .block_erase = spi_block_erase_d8,
13531 }, {
13532 .eraseblocks = { {4 * 1024 * 1024, 1} },
13533 .block_erase = spi_block_erase_60,
13534 }, {
13535 .eraseblocks = { {4 * 1024 * 1024, 1} },
13536 .block_erase = spi_block_erase_c7,
13537 },
13538 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013539 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013540 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000013541 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013543 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013544 },
13545
13546 {
13547 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013548 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013549 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013550 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013551 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013552 .total_size = 8192,
13553 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013554 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000013555 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013556 .probe = probe_spi_rdid,
13557 .probe_timing = TIMING_ZERO,
13558 .block_erasers =
13559 {
13560 {
13561 .eraseblocks = { {4 * 1024, 2048} },
13562 .block_erase = spi_block_erase_20,
13563 }, {
13564 .eraseblocks = { {32 * 1024, 256} },
13565 .block_erase = spi_block_erase_52,
13566 }, {
13567 .eraseblocks = { {64 * 1024, 128} },
13568 .block_erase = spi_block_erase_d8,
13569 }, {
13570 .eraseblocks = { {8 * 1024 * 1024, 1} },
13571 .block_erase = spi_block_erase_60,
13572 }, {
13573 .eraseblocks = { {8 * 1024 * 1024, 1} },
13574 .block_erase = spi_block_erase_c7,
13575 },
13576 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013577 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013578 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000013579 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013580 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013581 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013582 },
13583
13584 {
13585 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013586 .name = "SST26VF016B(A)",
13587 .bustype = BUS_SPI,
13588 .manufacture_id = SST_ID,
13589 .model_id = SST_SST26VF016B,
13590 .total_size = 2048,
13591 .page_size = 256,
13592 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13593 .tested = TEST_OK_PREW,
13594 .probe = probe_spi_rdid,
13595 .probe_timing = TIMING_ZERO,
13596 .block_erasers =
13597 {
13598 {
13599 .eraseblocks = { {4 * 1024, 512} },
13600 .block_erase = spi_block_erase_20,
13601 }, {
13602 .eraseblocks = {
13603 {8 * 1024, 4},
13604 {32 * 1024, 1},
13605 {64 * 1024, 30},
13606 {32 * 1024, 1},
13607 {8 * 1024, 4},
13608 },
13609 .block_erase = spi_block_erase_d8,
13610 }, {
13611 .eraseblocks = { {2 * 1024 * 1024, 1} },
13612 .block_erase = spi_block_erase_c7,
13613 },
13614 },
13615 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13616 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13617 .write = spi_chip_write_256, /* Multi I/O supported */
13618 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13619 .voltage = {2700, 3600},
13620 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013621
Wei Hu25584de2018-04-30 14:02:08 -070013622 {
13623 .vendor = "SST",
13624 .name = "SST26VF032B(A)",
13625 .bustype = BUS_SPI,
13626 .manufacture_id = SST_ID,
13627 .model_id = SST_SST26VF032B,
13628 .total_size = 4096,
13629 .page_size = 256,
13630 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13631 .tested = TEST_UNTESTED,
13632 .probe = probe_spi_rdid,
13633 .probe_timing = TIMING_ZERO,
13634 .block_erasers =
13635 {
13636 {
13637 .eraseblocks = { {4 * 1024, 1024} },
13638 .block_erase = spi_block_erase_20,
13639 }, {
13640 .eraseblocks = {
13641 {8 * 1024, 4},
13642 {32 * 1024, 1},
13643 {64 * 1024, 62},
13644 {32 * 1024, 1},
13645 {8 * 1024, 4},
13646 },
13647 .block_erase = spi_block_erase_d8,
13648 }, {
13649 .eraseblocks = { {4 * 1024 * 1024, 1} },
13650 .block_erase = spi_block_erase_c7,
13651 },
13652 },
13653 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13654 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13655 .write = spi_chip_write_256, /* Multi I/O supported */
13656 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13657 .voltage = {2700, 3600},
13658 },
13659
Wei Hu25584de2018-04-30 14:02:08 -070013660 {
13661 .vendor = "SST",
13662 .name = "SST26VF064B(A)",
13663 .bustype = BUS_SPI,
13664 .manufacture_id = SST_ID,
13665 .model_id = SST_SST26VF064B,
13666 .total_size = 8192,
13667 .page_size = 256,
13668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13669 .tested = TEST_OK_PREW,
13670 .probe = probe_spi_rdid,
13671 .probe_timing = TIMING_ZERO,
13672 .block_erasers =
13673 {
13674 {
13675 .eraseblocks = { {4 * 1024, 2048} },
13676 .block_erase = spi_block_erase_20,
13677 }, {
13678 .eraseblocks = {
13679 {8 * 1024, 4},
13680 {32 * 1024, 1},
13681 {64 * 1024, 126},
13682 {32 * 1024, 1},
13683 {8 * 1024, 4},
13684 },
13685 .block_erase = spi_block_erase_d8,
13686 }, {
13687 .eraseblocks = { {8 * 1024 * 1024, 1} },
13688 .block_erase = spi_block_erase_c7,
13689 },
13690 },
13691 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13692 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13693 .write = spi_chip_write_256, /* Multi I/O supported */
13694 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13695 .voltage = {2700, 3600},
13696 },
13697
13698 {
13699 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000013700 .name = "SST25WF512",
13701 .bustype = BUS_SPI,
13702 .manufacture_id = SST_ID,
13703 .model_id = SST_SST25WF512,
13704 .total_size = 64,
13705 .page_size = 256,
13706 .feature_bits = FEATURE_WRSR_EITHER,
13707 .tested = TEST_UNTESTED,
13708 .probe = probe_spi_rdid,
13709 .probe_timing = TIMING_ZERO,
13710 .block_erasers =
13711 {
13712 {
13713 .eraseblocks = { {4 * 1024, 16} },
13714 .block_erase = spi_block_erase_20,
13715 }, {
13716 .eraseblocks = { {32 * 1024, 2} },
13717 .block_erase = spi_block_erase_52,
13718 }, {
13719 .eraseblocks = { {1024 * 64, 1} },
13720 .block_erase = spi_block_erase_60,
13721 }, {
13722 .eraseblocks = { {1024 * 64, 1} },
13723 .block_erase = spi_block_erase_c7,
13724 },
13725 },
Jason Harper43ddef02014-05-04 00:55:24 +000013726 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13727 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013728 .write = spi_aai_write,
13729 .read = spi_chip_read, /* Fast read (0x0B) supported */
13730 .voltage = {1650, 1950},
13731 },
13732
13733 {
13734 .vendor = "SST",
13735 .name = "SST25WF010",
13736 .bustype = BUS_SPI,
13737 .manufacture_id = SST_ID,
13738 .model_id = SST_SST25WF010,
13739 .total_size = 128,
13740 .page_size = 256,
13741 .feature_bits = FEATURE_WRSR_EITHER,
13742 .tested = TEST_UNTESTED,
13743 .probe = probe_spi_rdid,
13744 .probe_timing = TIMING_ZERO,
13745 .block_erasers =
13746 {
13747 {
13748 .eraseblocks = { {4 * 1024, 32} },
13749 .block_erase = spi_block_erase_20,
13750 }, {
13751 .eraseblocks = { {32 * 1024, 4} },
13752 .block_erase = spi_block_erase_52,
13753 }, {
13754 .eraseblocks = { {1024 * 128, 1} },
13755 .block_erase = spi_block_erase_60,
13756 }, {
13757 .eraseblocks = { {1024 * 128, 1} },
13758 .block_erase = spi_block_erase_c7,
13759 },
13760 },
Jason Harper43ddef02014-05-04 00:55:24 +000013761 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13762 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013763 .write = spi_aai_write,
13764 .read = spi_chip_read, /* Fast read (0x0B) supported */
13765 .voltage = {1650, 1950},
13766 },
13767
13768 {
13769 .vendor = "SST",
13770 .name = "SST25WF020",
13771 .bustype = BUS_SPI,
13772 .manufacture_id = SST_ID,
13773 .model_id = SST_SST25WF020,
13774 .total_size = 256,
13775 .page_size = 256,
13776 .feature_bits = FEATURE_WRSR_EITHER,
13777 .tested = TEST_UNTESTED,
13778 .probe = probe_spi_rdid,
13779 .probe_timing = TIMING_ZERO,
13780 .block_erasers =
13781 {
13782 {
13783 .eraseblocks = { {4 * 1024, 64} },
13784 .block_erase = spi_block_erase_20,
13785 }, {
13786 .eraseblocks = { {32 * 1024, 8} },
13787 .block_erase = spi_block_erase_52,
13788 }, {
13789 .eraseblocks = { {64 * 1024, 4} },
13790 .block_erase = spi_block_erase_d8,
13791 }, {
13792 .eraseblocks = { {1024 * 256, 1} },
13793 .block_erase = spi_block_erase_60,
13794 }, {
13795 .eraseblocks = { {1024 * 256, 1} },
13796 .block_erase = spi_block_erase_c7,
13797 },
13798 },
Jason Harper43ddef02014-05-04 00:55:24 +000013799 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13800 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013801 .write = spi_aai_write,
13802 .read = spi_chip_read, /* Fast read (0x0B) supported */
13803 .voltage = {1650, 1950},
13804 },
13805
13806 {
13807 .vendor = "SST",
13808 .name = "SST25WF040",
13809 .bustype = BUS_SPI,
13810 .manufacture_id = SST_ID,
13811 .model_id = SST_SST25WF040,
13812 .total_size = 512,
13813 .page_size = 256,
13814 .feature_bits = FEATURE_WRSR_EITHER,
13815 .tested = TEST_UNTESTED,
13816 .probe = probe_spi_rdid,
13817 .probe_timing = TIMING_ZERO,
13818 .block_erasers =
13819 {
13820 {
13821 .eraseblocks = { {4 * 1024, 128} },
13822 .block_erase = spi_block_erase_20,
13823 }, {
13824 .eraseblocks = { {32 * 1024, 16} },
13825 .block_erase = spi_block_erase_52,
13826 }, {
13827 .eraseblocks = { {64 * 1024, 8} },
13828 .block_erase = spi_block_erase_d8,
13829 }, {
13830 .eraseblocks = { {1024 * 512, 1} },
13831 .block_erase = spi_block_erase_60,
13832 }, {
13833 .eraseblocks = { {1024 * 512, 1} },
13834 .block_erase = spi_block_erase_c7,
13835 },
13836 },
Jason Harper43ddef02014-05-04 00:55:24 +000013837 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13838 .unlock = spi_disable_blockprotect_bp2_srwd,
13839 .write = spi_aai_write,
13840 .read = spi_chip_read, /* Fast read (0x0B) supported */
13841 .voltage = {1650, 1950},
13842 },
13843
13844 {
13845 .vendor = "SST",
13846 .name = "SST25WF080",
13847 .bustype = BUS_SPI,
13848 .manufacture_id = SST_ID,
13849 .model_id = SST_SST25WF080,
13850 .total_size = 1024,
13851 .page_size = 256,
13852 .feature_bits = FEATURE_WRSR_EITHER,
13853 .tested = TEST_OK_PREW,
13854 .probe = probe_spi_rdid,
13855 .probe_timing = TIMING_ZERO,
13856 .block_erasers =
13857 {
13858 {
13859 .eraseblocks = { {4 * 1024, 256} },
13860 .block_erase = spi_block_erase_20,
13861 }, {
13862 .eraseblocks = { {32 * 1024, 32} },
13863 .block_erase = spi_block_erase_52,
13864 }, {
13865 .eraseblocks = { {64 * 1024, 16} },
13866 .block_erase = spi_block_erase_d8,
13867 }, {
13868 .eraseblocks = { {1024 * 1024, 1} },
13869 .block_erase = spi_block_erase_60,
13870 }, {
13871 .eraseblocks = { {1024 * 1024, 1} },
13872 .block_erase = spi_block_erase_c7,
13873 },
13874 },
13875 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13876 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013877 .write = spi_aai_write,
13878 .read = spi_chip_read, /* Fast read (0x0B) supported */
13879 .voltage = {1650, 1950},
13880 },
13881
13882 {
13883 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013884 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013885 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013886 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013887 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013888 .total_size = 512,
13889 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013890 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013891 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013892 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013893 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013894 .block_erasers =
13895 {
13896 {
13897 .eraseblocks = { {128, 4096} },
13898 .block_erase = erase_sector_28sf040,
13899 }, {
13900 .eraseblocks = { {512 * 1024, 1} },
13901 .block_erase = erase_chip_28sf040,
13902 }
13903 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013904 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013905 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013907 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013908 },
13909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013910 {
13911 .vendor = "SST",
13912 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013913 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013914 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013915 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013916 .total_size = 128,
13917 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013918 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013919 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013920 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013921 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013922 .block_erasers =
13923 {
13924 {
13925 .eraseblocks = { {128 * 1024, 1} },
13926 .block_erase = erase_chip_block_jedec,
13927 }
13928 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013929 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013930 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013931 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013932 },
13933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013934 {
13935 .vendor = "SST",
13936 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013937 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013938 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013939 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013940 .total_size = 128,
13941 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013942 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013943 .tested = TEST_UNTESTED,
13944 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013945 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013946 .block_erasers =
13947 {
13948 {
13949 .eraseblocks = { {128 * 1024, 1} },
13950 .block_erase = erase_chip_block_jedec,
13951 }
13952 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013953 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013955 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013956 },
13957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013958 {
13959 .vendor = "SST",
13960 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013961 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013962 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013963 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013964 .total_size = 256,
13965 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013966 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013967 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013968 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013969 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013970 .block_erasers =
13971 {
13972 {
13973 .eraseblocks = { {256 * 1024, 1} },
13974 .block_erase = erase_chip_block_jedec,
13975 }
13976 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013977 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013979 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013980 },
13981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013982 {
13983 .vendor = "SST",
13984 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013986 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013987 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013988 .total_size = 256,
13989 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013990 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013991 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013992 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013993 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013994 .block_erasers =
13995 {
13996 {
13997 .eraseblocks = { {256 * 1024, 1} },
13998 .block_erase = erase_chip_block_jedec,
13999 }
14000 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014001 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014003 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014004 },
14005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014006 {
14007 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000014008 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014009 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000014010 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014011 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000014012 .total_size = 64,
14013 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014014 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000014015 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000014016 .probe = probe_jedec,
14017 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000014018 .block_erasers =
14019 {
14020 {
14021 .eraseblocks = { {4 * 1024, 16} },
14022 .block_erase = erase_sector_jedec,
14023 }, {
14024 .eraseblocks = { {64 * 1024, 1} },
14025 .block_erase = erase_chip_block_jedec,
14026 }
14027 },
Sean Nelson35727f72010-01-28 23:55:12 +000014028 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000014029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014030 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000014031 },
14032
14033 {
14034 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014035 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014037 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014038 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014039 .total_size = 128,
14040 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014041 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014042 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014043 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014044 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014045 .block_erasers =
14046 {
14047 {
14048 .eraseblocks = { {4 * 1024, 32} },
14049 .block_erase = erase_sector_jedec,
14050 }, {
14051 .eraseblocks = { {128 * 1024, 1} },
14052 .block_erase = erase_chip_block_jedec,
14053 }
14054 },
Sean Nelson35727f72010-01-28 23:55:12 +000014055 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014057 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014058 },
14059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014060 {
14061 .vendor = "SST",
14062 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014063 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014064 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014065 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014066 .total_size = 256,
14067 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014068 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014069 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014070 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014071 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014072 .block_erasers =
14073 {
14074 {
14075 .eraseblocks = { {4 * 1024, 64} },
14076 .block_erase = erase_sector_jedec,
14077 }, {
14078 .eraseblocks = { {256 * 1024, 1} },
14079 .block_erase = erase_chip_block_jedec,
14080 }
14081 },
Sean Nelson35727f72010-01-28 23:55:12 +000014082 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014084 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014085 },
14086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014087 {
14088 .vendor = "SST",
14089 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014091 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014092 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014093 .total_size = 512,
14094 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014095 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014096 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014097 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014098 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014099 .block_erasers =
14100 {
14101 {
14102 .eraseblocks = { {4 * 1024, 128} },
14103 .block_erase = erase_sector_jedec,
14104 }, {
14105 .eraseblocks = { {512 * 1024, 1} },
14106 .block_erase = erase_chip_block_jedec,
14107 }
14108 },
Sean Nelson35727f72010-01-28 23:55:12 +000014109 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014111 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014112 },
14113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014114 {
14115 .vendor = "SST",
14116 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014117 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014118 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014119 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014120 .total_size = 64,
14121 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014122 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014123 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014124 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014125 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014126 .block_erasers =
14127 {
14128 {
14129 .eraseblocks = { {4 * 1024, 16} },
14130 .block_erase = erase_sector_jedec,
14131 }, {
14132 .eraseblocks = { {64 * 1024, 1} },
14133 .block_erase = erase_chip_block_jedec,
14134 }
14135 },
Sean Nelson35727f72010-01-28 23:55:12 +000014136 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014137 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014138 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014139 },
14140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014141 {
14142 .vendor = "SST",
14143 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014144 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014145 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014146 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014147 .total_size = 128,
14148 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014149 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014150 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014151 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014152 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014153 .block_erasers =
14154 {
14155 {
14156 .eraseblocks = { {4 * 1024, 32} },
14157 .block_erase = erase_sector_jedec,
14158 }, {
14159 .eraseblocks = { {128 * 1024, 1} },
14160 .block_erase = erase_chip_block_jedec,
14161 }
14162 },
Sean Nelson35727f72010-01-28 23:55:12 +000014163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014165 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014166 },
14167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014168 {
14169 .vendor = "SST",
14170 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014171 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014172 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014173 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014174 .total_size = 256,
14175 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014176 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014177 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014179 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014180 .block_erasers =
14181 {
14182 {
14183 .eraseblocks = { {4 * 1024, 64} },
14184 .block_erase = erase_sector_jedec,
14185 }, {
14186 .eraseblocks = { {256 * 1024, 1} },
14187 .block_erase = erase_chip_block_jedec,
14188 }
14189 },
Sean Nelson35727f72010-01-28 23:55:12 +000014190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014192 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014193 },
14194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014195 {
14196 .vendor = "SST",
14197 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014198 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014199 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014200 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014201 .total_size = 512,
14202 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014203 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014204 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014205 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014206 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014207 .block_erasers =
14208 {
14209 {
14210 .eraseblocks = { {4 * 1024, 128} },
14211 .block_erase = erase_sector_jedec,
14212 }, {
14213 .eraseblocks = { {512 * 1024, 1} },
14214 .block_erase = erase_chip_block_jedec,
14215 }
14216 },
Sean Nelson35727f72010-01-28 23:55:12 +000014217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014219 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014220 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014222 {
14223 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014224 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014225 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014226 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014227 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014228 .total_size = 1024,
14229 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014230 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014231 .tested = TEST_UNTESTED,
14232 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014233 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014234 .block_erasers =
14235 {
14236 {
14237 .eraseblocks = { {4 * 1024, 256} },
14238 .block_erase = erase_sector_jedec,
14239 }, {
14240 .eraseblocks = { {64 * 1024, 16} },
14241 .block_erase = erase_block_jedec,
14242 }, {
14243 .eraseblocks = { {1024 * 1024, 1} },
14244 .block_erase = erase_chip_block_jedec,
14245 }
14246 },
Sean Nelson35727f72010-01-28 23:55:12 +000014247 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014248 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014249 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014250 },
14251
14252 {
14253 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014254 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014255 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014256 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014257 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014258 .total_size = 256,
14259 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014260 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014261 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014262 .probe = probe_jedec,
14263 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014264 .block_erasers =
14265 {
14266 {
14267 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014268 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014269 }, {
14270 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014271 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014272 }, {
14273 .eraseblocks = { {256 * 1024, 1} },
14274 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14275 }
14276 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014277 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014278 .unlock = unlock_sst_fwhub,
14279 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014281 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014282 },
14283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014284 {
14285 .vendor = "SST",
14286 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014287 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014288 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014289 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014290 .total_size = 384,
14291 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014292 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014293 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014294 .probe = probe_jedec,
14295 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014296 .block_erasers =
14297 {
14298 {
14299 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014300 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014301 }, {
14302 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014303 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014304 }, {
14305 .eraseblocks = { {384 * 1024, 1} },
14306 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14307 }
14308 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014309 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014310 .unlock = unlock_sst_fwhub,
14311 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014313 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014314 },
14315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014316 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014317 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14318 * and is only honored for 64k block erase, but not 4k sector erase.
14319 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014320 .vendor = "SST",
14321 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014322 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014324 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 .total_size = 512,
14326 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014327 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014328 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014329 .probe = probe_jedec,
14330 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014331 .block_erasers =
14332 {
14333 {
14334 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014335 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014336 }, {
14337 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014338 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014339 }, {
14340 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014341 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014342 },
14343 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014344 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014345 .unlock = unlock_sst_fwhub,
14346 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014347 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014348 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014349 },
14350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014351 {
14352 .vendor = "SST",
14353 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014354 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014355 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014356 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .total_size = 512,
14358 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014359 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014360 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014361 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014362 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014363 .block_erasers =
14364 {
14365 {
14366 .eraseblocks = { {4 * 1024, 128} },
14367 .block_erase = erase_sector_49lfxxxc,
14368 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014369 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014370 {64 * 1024, 7},
14371 {32 * 1024, 1},
14372 {8 * 1024, 2},
14373 {16 * 1024, 1},
14374 },
Sean Nelson69e58112010-03-23 17:10:28 +000014375 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014376 }
14377 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014378 .printlock = printlock_regspace2_block_eraser_1,
14379 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014380 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014382 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014383 },
14384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014385 {
14386 .vendor = "SST",
14387 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014388 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014389 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014390 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014391 .total_size = 1024,
14392 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014393 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014394 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014395 .probe = probe_jedec,
14396 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014397 .block_erasers =
14398 {
14399 {
14400 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014401 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014402 }, {
14403 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014404 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014405 }, {
14406 .eraseblocks = { {1024 * 1024, 1} },
14407 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14408 }
14409 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014410 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014411 .unlock = unlock_sst_fwhub,
14412 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014414 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014415 },
14416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014417 {
14418 .vendor = "SST",
14419 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014420 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014421 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014422 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014423 .total_size = 1024,
14424 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014425 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014426 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014427 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014428 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014429 .block_erasers =
14430 {
14431 {
14432 .eraseblocks = { {4 * 1024, 256} },
14433 .block_erase = erase_sector_49lfxxxc,
14434 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014435 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014436 {64 * 1024, 15},
14437 {32 * 1024, 1},
14438 {8 * 1024, 2},
14439 {16 * 1024, 1},
14440 },
Sean Nelson69e58112010-03-23 17:10:28 +000014441 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014442 }
14443 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014444 .printlock = printlock_regspace2_block_eraser_1,
14445 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014446 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014448 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014449 },
14450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014451 {
14452 .vendor = "SST",
14453 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014454 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014455 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014456 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014457 .total_size = 2048,
14458 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014459 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014460 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014461 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014462 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014463 .block_erasers =
14464 {
14465 {
14466 .eraseblocks = { {4 * 1024, 512} },
14467 .block_erase = erase_sector_49lfxxxc,
14468 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014469 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014470 {64 * 1024, 31},
14471 {32 * 1024, 1},
14472 {8 * 1024, 2},
14473 {16 * 1024, 1},
14474 },
Sean Nelson69e58112010-03-23 17:10:28 +000014475 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014476 }
14477 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014478 .printlock = printlock_regspace2_block_eraser_1,
14479 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014480 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014482 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014483 },
14484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014485 {
14486 .vendor = "SST",
14487 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014488 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014489 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014490 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014491 .total_size = 256,
14492 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014493 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014494 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014495 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014496 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014497 .block_erasers =
14498 {
14499 {
14500 .eraseblocks = { {4 * 1024, 64} },
14501 .block_erase = erase_sector_jedec,
14502 }, {
14503 .eraseblocks = { {16 * 1024, 16} },
14504 .block_erase = erase_block_jedec,
14505 }, {
14506 .eraseblocks = { {256 * 1024, 1} },
14507 .block_erase = NULL,
14508 }
14509 },
Sean Nelson35727f72010-01-28 23:55:12 +000014510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014512 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014513 },
14514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014515 {
14516 .vendor = "SST",
14517 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014518 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014519 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014520 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014521 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014522 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014523 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014524 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014525 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014526 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014527 .block_erasers =
14528 {
14529 {
14530 .eraseblocks = { {4 * 1024, 64} },
14531 .block_erase = erase_sector_jedec,
14532 }, {
14533 .eraseblocks = { {16 * 1024, 16} },
14534 .block_erase = erase_block_jedec,
14535 }, {
14536 .eraseblocks = { {256 * 1024, 1} },
14537 .block_erase = NULL,
14538 }
14539 },
Sean Nelson35727f72010-01-28 23:55:12 +000014540 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014541 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014542 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014543 },
14544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014545 {
14546 .vendor = "SST",
14547 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014548 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014549 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014550 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014551 .total_size = 512,
14552 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014553 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014554 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014555 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014556 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014557 .block_erasers =
14558 {
14559 {
14560 .eraseblocks = { {4 * 1024, 128} },
14561 .block_erase = erase_sector_jedec,
14562 }, {
14563 .eraseblocks = { {64 * 1024, 8} },
14564 .block_erase = erase_block_jedec,
14565 }, {
14566 .eraseblocks = { {512 * 1024, 1} },
14567 .block_erase = NULL,
14568 }
14569 },
Sean Nelson35727f72010-01-28 23:55:12 +000014570 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014572 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014573 },
14574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014575 {
14576 .vendor = "SST",
14577 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014578 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014579 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014580 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014581 .total_size = 512,
14582 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014583 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014584 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014585 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014586 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014587 .block_erasers =
14588 {
14589 {
14590 .eraseblocks = { {4 * 1024, 128} },
14591 .block_erase = erase_sector_jedec,
14592 }, {
14593 .eraseblocks = { {64 * 1024, 8} },
14594 .block_erase = erase_block_jedec,
14595 }, {
14596 .eraseblocks = { {512 * 1024, 1} },
14597 .block_erase = NULL,
14598 }
14599 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014600 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014601 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014603 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014604 },
14605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014606 {
14607 .vendor = "SST",
14608 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014609 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014610 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014611 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014612 .total_size = 1024,
14613 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014614 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014615 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014616 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014617 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014618 .block_erasers =
14619 {
14620 {
14621 .eraseblocks = { {4 * 1024, 256} },
14622 .block_erase = erase_sector_jedec,
14623 }, {
14624 .eraseblocks = { {64 * 1024, 16} },
14625 .block_erase = erase_block_jedec,
14626 }, {
14627 .eraseblocks = { {1024 * 1024, 1} },
14628 .block_erase = NULL,
14629 }
14630 },
Sean Nelson35727f72010-01-28 23:55:12 +000014631 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014632 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014633 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014634 },
14635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014636 {
14637 .vendor = "SST",
14638 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014639 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014640 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014641 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014642 .total_size = 2048,
14643 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014644 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014645 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014646 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014647 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014648 .block_erasers =
14649 {
14650 {
14651 .eraseblocks = { {4 * 1024, 512} },
14652 .block_erase = erase_sector_49lfxxxc,
14653 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014654 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014655 {64 * 1024, 31},
14656 {32 * 1024, 1},
14657 {8 * 1024, 2},
14658 {16 * 1024, 1},
14659 },
Sean Nelson69e58112010-03-23 17:10:28 +000014660 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014661 }
14662 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014663 .printlock = printlock_regspace2_block_eraser_1,
14664 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014665 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014667 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014668 },
14669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014670 {
14671 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014672 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014673 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014674 .manufacture_id = ST_ID,
14675 .model_id = ST_M29F002B,
14676 .total_size = 256,
14677 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014678 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014679 .tested = TEST_UNTESTED,
14680 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014681 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014682 .block_erasers =
14683 {
14684 {
14685 .eraseblocks = {
14686 {16 * 1024, 1},
14687 {8 * 1024, 2},
14688 {32 * 1024, 1},
14689 {64 * 1024, 3},
14690 },
14691 .block_erase = erase_sector_jedec,
14692 }, {
14693 .eraseblocks = { {256 * 1024, 1} },
14694 .block_erase = erase_chip_block_jedec,
14695 }
14696 },
Sean Nelson35727f72010-01-28 23:55:12 +000014697 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014698 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014699 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014700 },
14701
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014702 {
14703 .vendor = "ST",
14704 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014705 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014706 .manufacture_id = ST_ID,
14707 .model_id = ST_M29F002T,
14708 .total_size = 256,
14709 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014710 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014711 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014712 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014713 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014714 .block_erasers =
14715 {
14716 {
14717 .eraseblocks = {
14718 {64 * 1024, 3},
14719 {32 * 1024, 1},
14720 {8 * 1024, 2},
14721 {16 * 1024, 1},
14722 },
14723 .block_erase = erase_sector_jedec,
14724 }, {
14725 .eraseblocks = { {256 * 1024, 1} },
14726 .block_erase = erase_chip_block_jedec,
14727 }
14728 },
Sean Nelson35727f72010-01-28 23:55:12 +000014729 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014730 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014731 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014732 },
14733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014734 {
14735 .vendor = "ST",
14736 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014737 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014738 .manufacture_id = ST_ID,
14739 .model_id = ST_M29F040B,
14740 .total_size = 512,
14741 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014742 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14743 .tested = TEST_UNTESTED,
14744 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014745 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014746 .block_erasers =
14747 {
14748 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014749 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014750 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014751 }, {
14752 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014753 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014754 }
14755 },
Sean Nelson35727f72010-01-28 23:55:12 +000014756 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014758 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014759 },
14760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014761 {
Sean Nelson35727f72010-01-28 23:55:12 +000014762 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014763 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014764 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014765 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014766 .manufacture_id = ST_ID,
14767 .model_id = ST_M29F400BB,
14768 .total_size = 512,
14769 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014770 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014771 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014772 .probe = probe_jedec,
14773 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014774 .block_erasers =
14775 {
14776 {
14777 .eraseblocks = {
14778 {16 * 1024, 1},
14779 {8 * 1024, 2},
14780 {32 * 1024, 1},
14781 {64 * 1024, 7},
14782 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014783 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014784 }, {
14785 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014786 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014787 }
14788 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014789 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014791 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014792 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014793
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014794 {
14795 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14796 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014797 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014798 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014799 .manufacture_id = ST_ID,
14800 .model_id = ST_M29F400BT,
14801 .total_size = 512,
14802 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014803 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014804 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014805 .probe = probe_jedec,
14806 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014807 .block_erasers =
14808 {
14809 {
14810 .eraseblocks = {
14811 {64 * 1024, 7},
14812 {32 * 1024, 1},
14813 {8 * 1024, 2},
14814 {16 * 1024, 1},
14815 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014816 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014817 }, {
14818 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014819 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014820 }
14821 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014822 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014824 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014825 },
14826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014827 {
14828 .vendor = "ST",
14829 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014830 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014831 .manufacture_id = ST_ID,
14832 .model_id = ST_M29W010B,
14833 .total_size = 128,
14834 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014835 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014836 .tested = TEST_UNTESTED,
14837 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014838 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014839 .block_erasers =
14840 {
14841 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014842 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014843 .block_erase = erase_sector_jedec,
14844 }, {
14845 .eraseblocks = { {128 * 1024, 1} },
14846 .block_erase = erase_chip_block_jedec,
14847 }
14848 },
Sean Nelson35727f72010-01-28 23:55:12 +000014849 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014851 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014852 },
14853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014854 {
14855 .vendor = "ST",
14856 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014858 .manufacture_id = ST_ID,
14859 .model_id = ST_M29W040B,
14860 .total_size = 512,
14861 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014863 .tested = TEST_UNTESTED,
14864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014865 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014866 .block_erasers =
14867 {
14868 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014869 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014870 .block_erase = erase_sector_jedec,
14871 }, {
14872 .eraseblocks = { {512 * 1024, 1} },
14873 .block_erase = erase_chip_block_jedec,
14874 }
14875 },
Sean Nelson35727f72010-01-28 23:55:12 +000014876 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014877 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014878 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014879 },
14880
Stefan Taunereb582572012-09-21 12:52:50 +000014881 {
14882 .vendor = "ST",
14883 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014884 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014885 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014886 .model_id = ST_M29W512B,
14887 .total_size = 64,
14888 .page_size = 64 * 1024,
14889 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014890 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014891 .probe = probe_jedec,
14892 .probe_timing = TIMING_ZERO,
14893 .block_erasers =
14894 {
14895 {
14896 .eraseblocks = { {64 * 1024, 1} },
14897 .block_erase = erase_chip_block_jedec,
14898 }
14899 },
14900 .write = write_jedec_1,
14901 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014902 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014903 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014904
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014905 {
14906 .vendor = "ST",
14907 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014908 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014909 .manufacture_id = ST_ID,
14910 .model_id = ST_M50FLW040A,
14911 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014912 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014913 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014914 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014915 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014916 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014917 .block_erasers =
14918 {
14919 {
Sean Nelson329bde72010-01-19 16:39:19 +000014920 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014921 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014922 {64 * 1024, 5}, /* block */
14923 {4 * 1024, 16}, /* sector */
14924 {4 * 1024, 16}, /* sector */
14925 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014926 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014927 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014928 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014929 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014930 }
14931 },
Sean Nelson28accc22010-03-19 18:47:06 +000014932 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014933 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014935 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014936 },
14937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014938 {
14939 .vendor = "ST",
14940 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014941 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014942 .manufacture_id = ST_ID,
14943 .model_id = ST_M50FLW040B,
14944 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014945 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014946 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014947 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014948 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014949 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014950 .block_erasers =
14951 {
14952 {
Sean Nelson329bde72010-01-19 16:39:19 +000014953 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014954 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014955 {4 * 1024, 16}, /* sector */
14956 {64 * 1024, 5}, /* block */
14957 {4 * 1024, 16}, /* sector */
14958 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014959 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014960 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014961 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014962 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014963 }
14964 },
Sean Nelson28accc22010-03-19 18:47:06 +000014965 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014966 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014967 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014968 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014969 },
14970
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014971 {
14972 .vendor = "ST",
14973 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014974 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014975 .manufacture_id = ST_ID,
14976 .model_id = ST_M50FLW080A,
14977 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014978 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014979 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014980 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014981 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014982 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014983 .block_erasers =
14984 {
14985 {
Sean Nelson329bde72010-01-19 16:39:19 +000014986 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014987 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014988 {64 * 1024, 13}, /* block */
14989 {4 * 1024, 16}, /* sector */
14990 {4 * 1024, 16}, /* sector */
14991 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014992 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014993 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014994 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014995 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014996 }
14997 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014998 .printlock = printlock_regspace2_block_eraser_0,
14999 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015000 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015002 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015003 },
15004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015005 {
15006 .vendor = "ST",
15007 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015008 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015009 .manufacture_id = ST_ID,
15010 .model_id = ST_M50FLW080B,
15011 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015012 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015013 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015014 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015015 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015016 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015017 .block_erasers =
15018 {
15019 {
Sean Nelson329bde72010-01-19 16:39:19 +000015020 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015021 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015022 {4 * 1024, 16}, /* sector */
15023 {64 * 1024, 13}, /* block */
15024 {4 * 1024, 16}, /* sector */
15025 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015026 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015027 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015028 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015029 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015030 }
15031 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015032 .printlock = printlock_regspace2_block_eraser_0,
15033 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015034 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015036 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015037 },
15038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015039 {
15040 .vendor = "ST",
15041 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015042 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015043 .manufacture_id = ST_ID,
15044 .model_id = ST_M50FW002,
15045 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015046 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015047 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015048 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015049 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015050 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015051 .block_erasers =
15052 {
15053 {
15054 .eraseblocks = {
15055 {64 * 1024, 3},
15056 {32 * 1024, 1},
15057 {8 * 1024, 2},
15058 {16 * 1024, 1},
15059 },
Sean Nelson28accc22010-03-19 18:47:06 +000015060 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015061 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015062 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015063 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015064 }
15065 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015066 .printlock = printlock_regspace2_block_eraser_0,
15067 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015068 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015070 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015071 },
15072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015073 {
15074 .vendor = "ST",
15075 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015076 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015077 .manufacture_id = ST_ID,
15078 .model_id = ST_M50FW016,
15079 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015080 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015081 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015082 .tested = TEST_UNTESTED,
15083 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015084 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015085 .block_erasers =
15086 {
15087 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015088 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015089 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015090 }
15091 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015092 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015093 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015094 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015095 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015096 },
15097
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015098 {
15099 .vendor = "ST",
15100 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015101 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015102 .manufacture_id = ST_ID,
15103 .model_id = ST_M50FW040,
15104 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015105 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015106 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015107 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015108 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015109 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015110 .block_erasers =
15111 {
15112 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015113 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015114 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015115 }
15116 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015117 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015118 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015120 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015121 },
15122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015123 {
15124 .vendor = "ST",
15125 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015126 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015127 .manufacture_id = ST_ID,
15128 .model_id = ST_M50FW080,
15129 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015130 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015131 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015132 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015133 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015134 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015135 .block_erasers =
15136 {
15137 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015138 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015139 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015140 }
15141 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015142 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015143 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015145 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015146 },
15147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015148 {
15149 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015150 .name = "M50LPW080",
15151 .bustype = BUS_LPC, /* A/A Mux */
15152 .manufacture_id = ST_ID,
15153 .model_id = ST_M50LPW080,
15154 .total_size = 1024,
15155 .page_size = 0,
15156 .feature_bits = FEATURE_REGISTERMAP,
15157 .tested = TEST_UNTESTED,
15158 .probe = probe_82802ab,
15159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15160 .block_erasers =
15161 {
15162 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015163 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015164 .block_erase = erase_block_82802ab,
15165 }
15166 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015167 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015168 .write = write_82802ab,
15169 .read = read_memmapped,
15170 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15171 },
15172
15173 {
15174 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015175 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015176 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015177 .manufacture_id = ST_ID,
15178 .model_id = ST_M50LPW116,
15179 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015180 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015181 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015182 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015183 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015184 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015185 .block_erasers =
15186 {
15187 {
15188 .eraseblocks = {
15189 {4 * 1024, 16},
15190 {64 * 1024, 30},
15191 {32 * 1024, 1},
15192 {8 * 1024, 2},
15193 {16 * 1024, 1},
15194 },
Sean Nelson28accc22010-03-19 18:47:06 +000015195 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015196 }
15197 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015198 .printlock = printlock_regspace2_block_eraser_0,
15199 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015200 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015202 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015203 },
15204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015205 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015206 .vendor = "SyncMOS/MoselVitelic",
15207 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015208 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015209 .manufacture_id = SYNCMOS_MVC_ID,
15210 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015211 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015212 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015213 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015214 .tested = TEST_UNTESTED,
15215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015216 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015217 .block_erasers =
15218 {
15219 {
15220 .eraseblocks = { {512, 256} },
15221 .block_erase = erase_sector_jedec,
15222 }, {
15223 .eraseblocks = { {128 * 1024, 1} },
15224 .block_erase = erase_chip_block_jedec,
15225 },
15226 },
Sean Nelson35727f72010-01-28 23:55:12 +000015227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015229 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015230 },
15231
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015232 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015233 .vendor = "SyncMOS/MoselVitelic",
15234 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015235 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015236 .manufacture_id = SYNCMOS_MVC_ID,
15237 .model_id = SM_MVC_29C51001T,
15238 .total_size = 128,
15239 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015240 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015241 .tested = TEST_UNTESTED,
15242 .probe = probe_jedec,
15243 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15244 .block_erasers =
15245 {
15246 {
15247 .eraseblocks = { {512, 256} },
15248 .block_erase = erase_sector_jedec,
15249 }, {
15250 .eraseblocks = { {128 * 1024, 1} },
15251 .block_erase = erase_chip_block_jedec,
15252 },
15253 },
15254 .write = write_jedec_1,
15255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015256 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015257 },
15258
15259 {
15260 .vendor = "SyncMOS/MoselVitelic",
15261 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015262 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015263 .manufacture_id = SYNCMOS_MVC_ID,
15264 .model_id = SM_MVC_29C51002B,
15265 .total_size = 256,
15266 .page_size = 512,
15267 .feature_bits = FEATURE_EITHER_RESET,
15268 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015269 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015270 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015271 .block_erasers =
15272 {
15273 {
15274 .eraseblocks = { {512, 512} },
15275 .block_erase = erase_sector_jedec,
15276 }, {
15277 .eraseblocks = { {256 * 1024, 1} },
15278 .block_erase = erase_chip_block_jedec,
15279 },
15280 },
Sean Nelson35727f72010-01-28 23:55:12 +000015281 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015282 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015283 },
15284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015285 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015286 .vendor = "SyncMOS/MoselVitelic",
15287 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015288 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015289 .manufacture_id = SYNCMOS_MVC_ID,
15290 .model_id = SM_MVC_29C51002T,
15291 .total_size = 256,
15292 .page_size = 512,
15293 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015294 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015295 .probe = probe_jedec,
15296 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15297 .block_erasers =
15298 {
15299 {
15300 .eraseblocks = { {512, 512} },
15301 .block_erase = erase_sector_jedec,
15302 }, {
15303 .eraseblocks = { {256 * 1024, 1} },
15304 .block_erase = erase_chip_block_jedec,
15305 },
15306 },
15307 .write = write_jedec_1,
15308 .read = read_memmapped,
15309 },
15310
15311 {
15312 .vendor = "SyncMOS/MoselVitelic",
15313 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015314 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015315 .manufacture_id = SYNCMOS_MVC_ID,
15316 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015317 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015318 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015319 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015320 .tested = TEST_UNTESTED,
15321 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015322 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000015323 .block_erasers =
15324 {
15325 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015326 .eraseblocks = { {1024, 512} },
15327 .block_erase = erase_sector_jedec,
15328 }, {
15329 .eraseblocks = { {512 * 1024, 1} },
15330 .block_erase = erase_chip_block_jedec,
15331 },
15332 },
15333 .write = write_jedec_1,
15334 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015335 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015336 },
15337
15338 {
15339 .vendor = "SyncMOS/MoselVitelic",
15340 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015341 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015342 .manufacture_id = SYNCMOS_MVC_ID,
15343 .model_id = SM_MVC_29C51004T,
15344 .total_size = 512,
15345 .page_size = 1024,
15346 .feature_bits = FEATURE_EITHER_RESET,
15347 .tested = TEST_UNTESTED,
15348 .probe = probe_jedec,
15349 .probe_timing = TIMING_ZERO,
15350 .block_erasers =
15351 {
15352 {
15353 .eraseblocks = { {1024, 512} },
15354 .block_erase = erase_sector_jedec,
15355 }, {
15356 .eraseblocks = { {512 * 1024, 1} },
15357 .block_erase = erase_chip_block_jedec,
15358 },
15359 },
15360 .write = write_jedec_1,
15361 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015362 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015363 },
15364
15365 {
15366 .vendor = "SyncMOS/MoselVitelic",
15367 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015368 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015369 .manufacture_id = SYNCMOS_MVC_ID,
15370 .model_id = SM_MVC_29C31004B,
15371 .total_size = 512,
15372 .page_size = 1024,
15373 .feature_bits = FEATURE_EITHER_RESET,
15374 .tested = TEST_UNTESTED,
15375 .probe = probe_jedec,
15376 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15377 .block_erasers =
15378 {
15379 {
15380 .eraseblocks = { {1024, 512} },
15381 .block_erase = erase_sector_jedec,
15382 }, {
15383 .eraseblocks = { {512 * 1024, 1} },
15384 .block_erase = erase_chip_block_jedec,
15385 },
15386 },
15387 .write = write_jedec_1,
15388 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015389 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015390 },
15391
15392 {
15393 .vendor = "SyncMOS/MoselVitelic",
15394 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015395 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015396 .manufacture_id = SYNCMOS_MVC_ID,
15397 .model_id = SM_MVC_29C31004T,
15398 .total_size = 512,
15399 .page_size = 1024,
15400 .feature_bits = FEATURE_EITHER_RESET,
15401 .tested = TEST_UNTESTED,
15402 .probe = probe_jedec,
15403 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15404 .block_erasers =
15405 {
15406 {
15407 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015408 .block_erase = erase_sector_jedec,
15409 }, {
15410 .eraseblocks = { {512 * 1024, 1} },
15411 .block_erase = erase_chip_block_jedec,
15412 },
15413 },
Sean Nelson35727f72010-01-28 23:55:12 +000015414 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015416 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015417 },
15418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015419 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015420 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015421 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015422 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015423 .manufacture_id = TI_OLD_ID,
15424 .model_id = TI_TMS29F002RB,
15425 .total_size = 256,
15426 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015427 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015428 .tested = TEST_UNTESTED,
15429 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015430 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015431 .block_erasers =
15432 {
15433 {
15434 .eraseblocks = {
15435 {16 * 1024, 1},
15436 {8 * 1024, 2},
15437 {32 * 1024, 1},
15438 {64 * 1024, 3},
15439 },
15440 .block_erase = erase_sector_jedec,
15441 }, {
15442 .eraseblocks = { {256 * 1024, 1} },
15443 .block_erase = erase_chip_block_jedec,
15444 },
15445 },
Sean Nelson35727f72010-01-28 23:55:12 +000015446 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015448 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015449 },
15450
15451 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015452 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015453 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015454 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015455 .manufacture_id = TI_OLD_ID,
15456 .model_id = TI_TMS29F002RT,
15457 .total_size = 256,
15458 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015459 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015460 .tested = TEST_UNTESTED,
15461 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015462 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015463 .block_erasers =
15464 {
15465 {
15466 .eraseblocks = {
15467 {64 * 1024, 3},
15468 {32 * 1024, 1},
15469 {8 * 1024, 2},
15470 {16 * 1024, 1},
15471 },
15472 .block_erase = erase_sector_jedec,
15473 }, {
15474 .eraseblocks = { {256 * 1024, 1} },
15475 .block_erase = erase_chip_block_jedec,
15476 },
15477 },
Sean Nelson35727f72010-01-28 23:55:12 +000015478 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015480 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015481 },
15482
15483 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015484 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015485 .name = "W25Q40.V",
15486 .bustype = BUS_SPI,
15487 .manufacture_id = WINBOND_NEX_ID,
15488 .model_id = WINBOND_NEX_W25Q40_V,
15489 .total_size = 512,
15490 .page_size = 256,
15491 /* supports SFDP */
15492 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000015494 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015495 .probe = probe_spi_rdid,
15496 .probe_timing = TIMING_ZERO,
15497 .block_erasers =
15498 {
15499 {
15500 .eraseblocks = { {4 * 1024, 128} },
15501 .block_erase = spi_block_erase_20,
15502 }, {
15503 .eraseblocks = { {32 * 1024, 16} },
15504 .block_erase = spi_block_erase_52,
15505 }, {
15506 .eraseblocks = { {64 * 1024, 8} },
15507 .block_erase = spi_block_erase_d8,
15508 }, {
15509 .eraseblocks = { {512 * 1024, 1} },
15510 .block_erase = spi_block_erase_60,
15511 }, {
15512 .eraseblocks = { {512 * 1024, 1} },
15513 .block_erase = spi_block_erase_c7,
15514 }
15515 },
15516 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15517 .unlock = spi_disable_blockprotect,
15518 .write = spi_chip_write_256, /* Multi I/O supported */
15519 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15520 .voltage = {2700, 3600},
15521 },
15522
15523 {
15524 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015525 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015526 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015527 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015528 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015529 .total_size = 1024,
15530 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015531 /* supports SFDP */
15532 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015534 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015535 .probe = probe_spi_rdid,
15536 .probe_timing = TIMING_ZERO,
15537 .block_erasers =
15538 {
15539 {
15540 .eraseblocks = { {4 * 1024, 256} },
15541 .block_erase = spi_block_erase_20,
15542 }, {
15543 .eraseblocks = { {32 * 1024, 32} },
15544 .block_erase = spi_block_erase_52,
15545 }, {
15546 .eraseblocks = { {64 * 1024, 16} },
15547 .block_erase = spi_block_erase_d8,
15548 }, {
15549 .eraseblocks = { {1024 * 1024, 1} },
15550 .block_erase = spi_block_erase_60,
15551 }, {
15552 .eraseblocks = { {1024 * 1024, 1} },
15553 .block_erase = spi_block_erase_c7,
15554 }
15555 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015557 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015558 .write = spi_chip_write_256,
15559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015560 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015561 },
15562
15563 {
15564 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015565 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015566 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015567 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015568 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015569 .total_size = 2048,
15570 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015571 /* supports SFDP */
15572 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000015574 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015575 .probe = probe_spi_rdid,
15576 .probe_timing = TIMING_ZERO,
15577 .block_erasers =
15578 {
15579 {
15580 .eraseblocks = { {4 * 1024, 512} },
15581 .block_erase = spi_block_erase_20,
15582 }, {
15583 .eraseblocks = { {32 * 1024, 64} },
15584 .block_erase = spi_block_erase_52,
15585 }, {
15586 .eraseblocks = { {64 * 1024, 32} },
15587 .block_erase = spi_block_erase_d8,
15588 }, {
15589 .eraseblocks = { {2 * 1024 * 1024, 1} },
15590 .block_erase = spi_block_erase_60,
15591 }, {
15592 .eraseblocks = { {2 * 1024 * 1024, 1} },
15593 .block_erase = spi_block_erase_c7,
15594 }
15595 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015597 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015598 .write = spi_chip_write_256,
15599 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015600 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015601 },
15602
15603 {
15604 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015605 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015606 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015607 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015608 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015609 .total_size = 4096,
15610 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015611 /* supports SFDP */
15612 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015614 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015615 .probe = probe_spi_rdid,
15616 .probe_timing = TIMING_ZERO,
15617 .block_erasers =
15618 {
15619 {
15620 .eraseblocks = { {4 * 1024, 1024} },
15621 .block_erase = spi_block_erase_20,
15622 }, {
15623 .eraseblocks = { {32 * 1024, 128} },
15624 .block_erase = spi_block_erase_52,
15625 }, {
15626 .eraseblocks = { {64 * 1024, 64} },
15627 .block_erase = spi_block_erase_d8,
15628 }, {
15629 .eraseblocks = { {4 * 1024 * 1024, 1} },
15630 .block_erase = spi_block_erase_60,
15631 }, {
15632 .eraseblocks = { {4 * 1024 * 1024, 1} },
15633 .block_erase = spi_block_erase_c7,
15634 }
15635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015636 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015637 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015638 .write = spi_chip_write_256,
15639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015640 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015641 },
15642
15643 {
15644 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015645 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015646 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000015647 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015648 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000015649 .total_size = 8192,
15650 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015651 /* supports SFDP */
15652 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015653 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015654 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000015655 .probe = probe_spi_rdid,
15656 .probe_timing = TIMING_ZERO,
15657 .block_erasers =
15658 {
15659 {
15660 .eraseblocks = { {4 * 1024, 2048} },
15661 .block_erase = spi_block_erase_20,
15662 }, {
15663 .eraseblocks = { {32 * 1024, 256} },
15664 .block_erase = spi_block_erase_52,
15665 }, {
15666 .eraseblocks = { {64 * 1024, 128} },
15667 .block_erase = spi_block_erase_d8,
15668 }, {
15669 .eraseblocks = { {8 * 1024 * 1024, 1} },
15670 .block_erase = spi_block_erase_60,
15671 }, {
15672 .eraseblocks = { {8 * 1024 * 1024, 1} },
15673 .block_erase = spi_block_erase_c7,
15674 }
15675 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015676 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015677 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000015678 .write = spi_chip_write_256,
15679 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015680 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015681 },
15682
15683 {
15684 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015685 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015686 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015687 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015688 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015689 .total_size = 16384,
15690 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015691 /* supports SFDP */
15692 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015693 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015694 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015695 .probe = probe_spi_rdid,
15696 .probe_timing = TIMING_ZERO,
15697 .block_erasers =
15698 {
15699 {
15700 .eraseblocks = { {4 * 1024, 4096} },
15701 .block_erase = spi_block_erase_20,
15702 }, {
15703 .eraseblocks = { {32 * 1024, 512} },
15704 .block_erase = spi_block_erase_52,
15705 }, {
15706 .eraseblocks = { {64 * 1024, 256} },
15707 .block_erase = spi_block_erase_d8,
15708 }, {
15709 .eraseblocks = { {16 * 1024 * 1024, 1} },
15710 .block_erase = spi_block_erase_60,
15711 }, {
15712 .eraseblocks = { {16 * 1024 * 1024, 1} },
15713 .block_erase = spi_block_erase_c7,
15714 }
15715 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015716 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015717 .unlock = spi_disable_blockprotect,
15718 .write = spi_chip_write_256,
15719 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015720 .voltage = {2700, 3600},
15721 },
15722
15723 {
15724 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020015725 .name = "W25Q128.V..M",
15726 .bustype = BUS_SPI,
15727 .manufacture_id = WINBOND_NEX_ID,
15728 .model_id = WINBOND_NEX_W25Q128_V_M,
15729 .total_size = 16384,
15730 .page_size = 256,
15731 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15732 .tested = TEST_OK_PREW,
15733 .probe = probe_spi_rdid,
15734 .probe_timing = TIMING_ZERO,
15735 .block_erasers =
15736 {
15737 {
15738 .eraseblocks = { {4 * 1024, 4096} },
15739 .block_erase = spi_block_erase_20,
15740 }, {
15741 .eraseblocks = { {32 * 1024, 512} },
15742 .block_erase = spi_block_erase_52,
15743 }, {
15744 .eraseblocks = { {64 * 1024, 256} },
15745 .block_erase = spi_block_erase_d8,
15746 }, {
15747 .eraseblocks = { {16 * 1024 * 1024, 1} },
15748 .block_erase = spi_block_erase_60,
15749 }, {
15750 .eraseblocks = { {16 * 1024 * 1024, 1} },
15751 .block_erase = spi_block_erase_c7,
15752 }
15753 },
15754 .unlock = spi_disable_blockprotect,
15755 .write = spi_chip_write_256,
15756 .read = spi_chip_read,
15757 .voltage = {2700, 3600},
15758 },
15759
15760 {
15761 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020015762 .name = "W25Q256.V",
15763 .bustype = BUS_SPI,
15764 .manufacture_id = WINBOND_NEX_ID,
15765 .model_id = WINBOND_NEX_W25Q256_V,
15766 .total_size = 32768,
15767 .page_size = 256,
15768 /* supports SFDP */
15769 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15770 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010015771 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
15772 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020015773 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015774 .probe = probe_spi_rdid,
15775 .probe_timing = TIMING_ZERO,
15776 .block_erasers =
15777 {
15778 {
15779 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020015780 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015781 }, {
15782 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020015783 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015784 }, {
15785 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020015786 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015787 }, {
15788 .eraseblocks = { {32 * 1024 * 1024, 1} },
15789 .block_erase = spi_block_erase_60,
15790 }, {
15791 .eraseblocks = { {32 * 1024 * 1024, 1} },
15792 .block_erase = spi_block_erase_c7,
15793 }
15794 },
15795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15796 .unlock = spi_disable_blockprotect,
15797 .write = spi_chip_write_256,
15798 .read = spi_chip_read,
15799 .voltage = {2700, 3600},
15800 },
15801
15802 {
15803 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000015804 .name = "W25Q256JV_M",
15805 .bustype = BUS_SPI,
15806 .manufacture_id = WINBOND_NEX_ID,
15807 .model_id = WINBOND_NEX_W25Q256JV_M,
15808 .total_size = 32768,
15809 .page_size = 256,
15810 /* supports SFDP */
15811 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15812 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
15813 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
15814 .tested = TEST_OK_PREW,
15815 .probe = probe_spi_rdid,
15816 .probe_timing = TIMING_ZERO,
15817 .block_erasers =
15818 {
15819 {
15820 .eraseblocks = { {4 * 1024, 8192} },
15821 .block_erase = spi_block_erase_21,
15822 }, {
15823 .eraseblocks = { {4 * 1024, 8192} },
15824 .block_erase = spi_block_erase_20,
15825 }, {
15826 .eraseblocks = { {32 * 1024, 1024} },
15827 .block_erase = spi_block_erase_52,
15828 }, {
15829 .eraseblocks = { {64 * 1024, 512} },
15830 .block_erase = spi_block_erase_dc,
15831 }, {
15832 .eraseblocks = { {64 * 1024, 512} },
15833 .block_erase = spi_block_erase_d8,
15834 }, {
15835 .eraseblocks = { {32 * 1024 * 1024, 1} },
15836 .block_erase = spi_block_erase_60,
15837 }, {
15838 .eraseblocks = { {32 * 1024 * 1024, 1} },
15839 .block_erase = spi_block_erase_c7,
15840 }
15841 },
15842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15843 .unlock = spi_disable_blockprotect,
15844 .write = spi_chip_write_256,
15845 .read = spi_chip_read,
15846 .voltage = {2700, 3600},
15847 },
15848
15849 {
15850 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015851 .name = "W25Q20.W",
15852 .bustype = BUS_SPI,
15853 .manufacture_id = WINBOND_NEX_ID,
15854 .model_id = WINBOND_NEX_W25Q20_W,
15855 .total_size = 256,
15856 .page_size = 256,
15857 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15858 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15859 .tested = TEST_UNTESTED,
15860 .probe = probe_spi_rdid,
15861 .probe_timing = TIMING_ZERO,
15862 .block_erasers =
15863 {
15864 {
15865 .eraseblocks = { {4 * 1024, 64} },
15866 .block_erase = spi_block_erase_20,
15867 }, {
15868 .eraseblocks = { {32 * 1024, 8} },
15869 .block_erase = spi_block_erase_52,
15870 }, {
15871 .eraseblocks = { {64 * 1024, 4} },
15872 .block_erase = spi_block_erase_d8,
15873 }, {
15874 .eraseblocks = { {256 * 1024, 1} },
15875 .block_erase = spi_block_erase_60,
15876 }, {
15877 .eraseblocks = { {256 * 1024, 1} },
15878 .block_erase = spi_block_erase_c7,
15879 }
15880 },
15881 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15882 .unlock = spi_disable_blockprotect,
15883 .write = spi_chip_write_256,
15884 .read = spi_chip_read,
15885 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15886 },
15887
15888 {
15889 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020015890 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015891 .bustype = BUS_SPI,
15892 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020015893 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015894 .total_size = 512,
15895 .page_size = 256,
15896 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15897 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020015898 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015899 .probe = probe_spi_rdid,
15900 .probe_timing = TIMING_ZERO,
15901 .block_erasers =
15902 {
15903 {
15904 .eraseblocks = { {4 * 1024, 128} },
15905 .block_erase = spi_block_erase_20,
15906 }, {
15907 .eraseblocks = { {32 * 1024, 16} },
15908 .block_erase = spi_block_erase_52,
15909 }, {
15910 .eraseblocks = { {64 * 1024, 8} },
15911 .block_erase = spi_block_erase_d8,
15912 }, {
15913 .eraseblocks = { {512 * 1024, 1} },
15914 .block_erase = spi_block_erase_60,
15915 }, {
15916 .eraseblocks = { {512 * 1024, 1} },
15917 .block_erase = spi_block_erase_c7,
15918 }
15919 },
15920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15921 .unlock = spi_disable_blockprotect,
15922 .write = spi_chip_write_256,
15923 .read = spi_chip_read,
15924 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15925 },
15926
15927 {
15928 .vendor = "Winbond",
David Hendricksc699f5c2018-03-11 17:29:49 -070015929 .name = "W25Q80BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015930 .bustype = BUS_SPI,
15931 .manufacture_id = WINBOND_NEX_ID,
David Hendricksc699f5c2018-03-11 17:29:49 -070015932 .model_id = WINBOND_NEX_W25Q80BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015933 .total_size = 1024,
15934 .page_size = 256,
15935 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15936 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015937 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015938 .probe = probe_spi_rdid,
15939 .probe_timing = TIMING_ZERO,
15940 .block_erasers =
15941 {
15942 {
15943 .eraseblocks = { {4 * 1024, 256} },
15944 .block_erase = spi_block_erase_20,
15945 }, {
15946 .eraseblocks = { {32 * 1024, 32} },
15947 .block_erase = spi_block_erase_52,
15948 }, {
15949 .eraseblocks = { {64 * 1024, 16} },
15950 .block_erase = spi_block_erase_d8,
15951 }, {
15952 .eraseblocks = { {1 * 1024 * 1024, 1} },
15953 .block_erase = spi_block_erase_60,
15954 }, {
15955 .eraseblocks = { {1 * 1024 * 1024, 1} },
15956 .block_erase = spi_block_erase_c7,
15957 }
15958 },
15959 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15960 .unlock = spi_disable_blockprotect,
15961 .write = spi_chip_write_256,
15962 .read = spi_chip_read,
15963 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15964 },
Nico Huber25683572018-03-30 13:50:13 +020015965
15966 {
15967 .vendor = "Winbond",
15968 .name = "W25Q40EW",
15969 .bustype = BUS_SPI,
15970 .manufacture_id = WINBOND_NEX_ID,
15971 .model_id = WINBOND_NEX_W25Q40EW,
15972 .total_size = 512,
15973 .page_size = 256,
15974 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15975 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15976 .tested = TEST_UNTESTED,
15977 .probe = probe_spi_rdid,
15978 .probe_timing = TIMING_ZERO,
15979 .block_erasers =
15980 {
15981 {
15982 .eraseblocks = { {4 * 1024, 128} },
15983 .block_erase = spi_block_erase_20,
15984 }, {
15985 .eraseblocks = { {32 * 1024, 16} },
15986 .block_erase = spi_block_erase_52,
15987 }, {
15988 .eraseblocks = { {64 * 1024, 8} },
15989 .block_erase = spi_block_erase_d8,
15990 }, {
15991 .eraseblocks = { {512 * 1024, 1} },
15992 .block_erase = spi_block_erase_60,
15993 }, {
15994 .eraseblocks = { {512 * 1024, 1} },
15995 .block_erase = spi_block_erase_c7,
15996 }
15997 },
15998 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15999 .unlock = spi_disable_blockprotect,
16000 .write = spi_chip_write_256,
16001 .read = spi_chip_read,
16002 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
16003 },
16004
Stanislav Sedovf5775442018-03-07 14:16:51 -080016005 {
16006 .vendor = "Winbond",
16007 .name = "W25Q80EW",
16008 .bustype = BUS_SPI,
16009 .manufacture_id = WINBOND_NEX_ID,
16010 .model_id = WINBOND_NEX_W25Q80EW,
16011 .total_size = 1024,
16012 .page_size = 256,
16013 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16015 .tested = TEST_OK_PREW,
16016 .probe = probe_spi_rdid,
16017 .probe_timing = TIMING_ZERO,
16018 .block_erasers =
16019 {
16020 {
16021 .eraseblocks = { {4 * 1024, 256} },
16022 .block_erase = spi_block_erase_20,
16023 }, {
16024 .eraseblocks = { {32 * 1024, 32} },
16025 .block_erase = spi_block_erase_52,
16026 }, {
16027 .eraseblocks = { {64 * 1024, 16} },
16028 .block_erase = spi_block_erase_d8,
16029 }, {
16030 .eraseblocks = { {1 * 1024 * 1024, 1} },
16031 .block_erase = spi_block_erase_60,
16032 }, {
16033 .eraseblocks = { {1 * 1024 * 1024, 1} },
16034 .block_erase = spi_block_erase_c7,
16035 }
16036 },
16037 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16038 .unlock = spi_disable_blockprotect,
16039 .write = spi_chip_write_256,
16040 .read = spi_chip_read,
16041 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
16042 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016043
16044 {
16045 .vendor = "Winbond",
16046 .name = "W25Q16.W",
16047 .bustype = BUS_SPI,
16048 .manufacture_id = WINBOND_NEX_ID,
16049 .model_id = WINBOND_NEX_W25Q16_W,
16050 .total_size = 2048,
16051 .page_size = 256,
16052 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16053 /* QPI enable 0x38, disable 0xFF */
16054 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16055 .tested = TEST_UNTESTED,
16056 .probe = probe_spi_rdid,
16057 .probe_timing = TIMING_ZERO,
16058 .block_erasers =
16059 {
16060 {
16061 .eraseblocks = { {4 * 1024, 512} },
16062 .block_erase = spi_block_erase_20,
16063 }, {
16064 .eraseblocks = { {32 * 1024, 64} },
16065 .block_erase = spi_block_erase_52,
16066 }, {
16067 .eraseblocks = { {64 * 1024, 32} },
16068 .block_erase = spi_block_erase_d8,
16069 }, {
16070 .eraseblocks = { {2 * 1024 * 1024, 1} },
16071 .block_erase = spi_block_erase_60,
16072 }, {
16073 .eraseblocks = { {2 * 1024 * 1024, 1} },
16074 .block_erase = spi_block_erase_c7,
16075 }
16076 },
16077 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16078 .unlock = spi_disable_blockprotect,
16079 .write = spi_chip_write_256,
16080 .read = spi_chip_read,
16081 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16082 },
16083
16084 {
16085 .vendor = "Winbond",
16086 .name = "W25Q32.W",
16087 .bustype = BUS_SPI,
16088 .manufacture_id = WINBOND_NEX_ID,
16089 .model_id = WINBOND_NEX_W25Q32_W,
16090 .total_size = 4096,
16091 .page_size = 256,
16092 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16093 /* QPI enable 0x38, disable 0xFF */
16094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16095 .tested = TEST_OK_PREW,
16096 .probe = probe_spi_rdid,
16097 .probe_timing = TIMING_ZERO,
16098 .block_erasers =
16099 {
16100 {
16101 .eraseblocks = { {4 * 1024, 1024} },
16102 .block_erase = spi_block_erase_20,
16103 }, {
16104 .eraseblocks = { {32 * 1024, 128} },
16105 .block_erase = spi_block_erase_52,
16106 }, {
16107 .eraseblocks = { {64 * 1024, 64} },
16108 .block_erase = spi_block_erase_d8,
16109 }, {
16110 .eraseblocks = { {4 * 1024 * 1024, 1} },
16111 .block_erase = spi_block_erase_60,
16112 }, {
16113 .eraseblocks = { {4 * 1024 * 1024, 1} },
16114 .block_erase = spi_block_erase_c7,
16115 }
16116 },
16117 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16118 .unlock = spi_disable_blockprotect,
16119 .write = spi_chip_write_256,
16120 .read = spi_chip_read,
16121 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16122 },
16123
16124 {
16125 .vendor = "Winbond",
16126 .name = "W25Q64.W",
16127 .bustype = BUS_SPI,
16128 .manufacture_id = WINBOND_NEX_ID,
16129 .model_id = WINBOND_NEX_W25Q64_W,
16130 .total_size = 8192,
16131 .page_size = 256,
16132 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16133 /* QPI enable 0x38, disable 0xFF */
16134 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016135 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016136 .probe = probe_spi_rdid,
16137 .probe_timing = TIMING_ZERO,
16138 .block_erasers =
16139 {
16140 {
16141 .eraseblocks = { {4 * 1024, 2048} },
16142 .block_erase = spi_block_erase_20,
16143 }, {
16144 .eraseblocks = { {32 * 1024, 256} },
16145 .block_erase = spi_block_erase_52,
16146 }, {
16147 .eraseblocks = { {64 * 1024, 128} },
16148 .block_erase = spi_block_erase_d8,
16149 }, {
16150 .eraseblocks = { {8 * 1024 * 1024, 1} },
16151 .block_erase = spi_block_erase_60,
16152 }, {
16153 .eraseblocks = { {8 * 1024 * 1024, 1} },
16154 .block_erase = spi_block_erase_c7,
16155 }
16156 },
16157 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16158 .unlock = spi_disable_blockprotect,
16159 .write = spi_chip_write_256,
16160 .read = spi_chip_read,
16161 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016162 },
16163
16164 {
16165 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020016166 .name = "W25Q128.W",
16167 .bustype = BUS_SPI,
16168 .manufacture_id = WINBOND_NEX_ID,
16169 .model_id = WINBOND_NEX_W25Q128_W,
16170 .total_size = 16384,
16171 .page_size = 256,
16172 /* supports SFDP */
16173 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080016175 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020016176 .probe = probe_spi_rdid,
16177 .probe_timing = TIMING_ZERO,
16178 .block_erasers =
16179 {
16180 {
16181 .eraseblocks = { {4 * 1024, 4096} },
16182 .block_erase = spi_block_erase_20,
16183 }, {
16184 .eraseblocks = { {32 * 1024, 512} },
16185 .block_erase = spi_block_erase_52,
16186 }, {
16187 .eraseblocks = { {64 * 1024, 256} },
16188 .block_erase = spi_block_erase_d8,
16189 }, {
16190 .eraseblocks = { {16 * 1024 * 1024, 1} },
16191 .block_erase = spi_block_erase_60,
16192 }, {
16193 .eraseblocks = { {16 * 1024 * 1024, 1} },
16194 .block_erase = spi_block_erase_c7,
16195 }
16196 },
16197 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16198 .unlock = spi_disable_blockprotect,
16199 .write = spi_chip_write_256,
16200 .read = spi_chip_read,
16201 .voltage = {1650, 1950},
16202 },
16203
16204 {
16205 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016206 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016207 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016208 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016209 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016210 .total_size = 128,
16211 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016212 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000016213 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016214 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016215 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016216 .block_erasers =
16217 {
16218 {
16219 .eraseblocks = { {4 * 1024, 32} },
16220 .block_erase = spi_block_erase_20,
16221 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016222 .eraseblocks = { {64 * 1024, 2} },
16223 .block_erase = spi_block_erase_d8,
16224 }, {
16225 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016226 .block_erase = spi_block_erase_c7,
16227 }
16228 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016229 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016230 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016231 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016232 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016233 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016234 },
16235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016236 {
16237 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016238 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016239 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016240 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016241 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016242 .total_size = 256,
16243 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016244 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016245 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016246 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016247 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016248 .block_erasers =
16249 {
16250 {
16251 .eraseblocks = { {4 * 1024, 64} },
16252 .block_erase = spi_block_erase_20,
16253 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016254 .eraseblocks = { {64 * 1024, 4} },
16255 .block_erase = spi_block_erase_d8,
16256 }, {
16257 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016258 .block_erase = spi_block_erase_c7,
16259 }
16260 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016261 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016262 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016263 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016264 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016265 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016266 },
16267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016268 {
16269 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016270 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016271 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016272 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016273 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016274 .total_size = 512,
16275 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016276 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000016277 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016278 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016279 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016280 .block_erasers =
16281 {
16282 {
16283 .eraseblocks = { {4 * 1024, 128} },
16284 .block_erase = spi_block_erase_20,
16285 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016286 .eraseblocks = { {64 * 1024, 8} },
16287 .block_erase = spi_block_erase_d8,
16288 }, {
16289 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016290 .block_erase = spi_block_erase_c7,
16291 }
16292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016294 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016295 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016296 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016297 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016298 },
16299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016300 {
16301 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016302 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016303 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016304 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016305 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016306 .total_size = 1024,
16307 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016308 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000016309 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016310 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016311 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016312 .block_erasers =
16313 {
16314 {
16315 .eraseblocks = { {4 * 1024, 256} },
16316 .block_erase = spi_block_erase_20,
16317 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016318 .eraseblocks = { {64 * 1024, 16} },
16319 .block_erase = spi_block_erase_d8,
16320 }, {
16321 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016322 .block_erase = spi_block_erase_c7,
16323 }
16324 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016325 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016326 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016327 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016328 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016329 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016330 },
16331
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016332 {
16333 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016334 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016335 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000016336 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016337 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000016338 .total_size = 2048,
16339 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016340 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000016341 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000016342 .probe = probe_spi_rdid,
16343 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016344 .block_erasers =
16345 {
16346 {
16347 .eraseblocks = { {4 * 1024, 512} },
16348 .block_erase = spi_block_erase_20,
16349 }, {
16350 .eraseblocks = { {32 * 1024, 64} },
16351 .block_erase = spi_block_erase_52,
16352 }, {
16353 .eraseblocks = { {64 * 1024, 32} },
16354 .block_erase = spi_block_erase_d8,
16355 }, {
16356 .eraseblocks = { {2 * 1024 * 1024, 1} },
16357 .block_erase = spi_block_erase_60,
16358 }, {
16359 .eraseblocks = { {2 * 1024 * 1024, 1} },
16360 .block_erase = spi_block_erase_c7,
16361 }
16362 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016363 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016364 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000016365 .write = spi_chip_write_256,
16366 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016367 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000016368 },
16369
16370 {
16371 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016372 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016373 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016374 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016375 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000016376 .total_size = 4096,
16377 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016378 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000016379 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016380 .probe = probe_spi_rdid,
16381 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016382 .block_erasers =
16383 {
16384 {
16385 .eraseblocks = { {4 * 1024, 1024} },
16386 .block_erase = spi_block_erase_20,
16387 }, {
16388 .eraseblocks = { {32 * 1024, 128} },
16389 .block_erase = spi_block_erase_52,
16390 }, {
16391 .eraseblocks = { {64 * 1024, 64} },
16392 .block_erase = spi_block_erase_d8,
16393 }, {
16394 .eraseblocks = { {4 * 1024 * 1024, 1} },
16395 .block_erase = spi_block_erase_60,
16396 }, {
16397 .eraseblocks = { {4 * 1024 * 1024, 1} },
16398 .block_erase = spi_block_erase_c7,
16399 }
16400 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016401 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016402 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016403 .write = spi_chip_write_256,
16404 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016405 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016406 },
16407
16408 {
16409 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016410 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016411 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016412 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016413 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000016414 .total_size = 8192,
16415 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016416 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016417 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016418 .probe = probe_spi_rdid,
16419 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016420 .block_erasers =
16421 {
16422 {
16423 .eraseblocks = { {4 * 1024, 2048} },
16424 .block_erase = spi_block_erase_20,
16425 }, {
16426 .eraseblocks = { {32 * 1024, 256} },
16427 .block_erase = spi_block_erase_52,
16428 }, {
16429 .eraseblocks = { {64 * 1024, 128} },
16430 .block_erase = spi_block_erase_d8,
16431 }, {
16432 .eraseblocks = { {8 * 1024 * 1024, 1} },
16433 .block_erase = spi_block_erase_60,
16434 }, {
16435 .eraseblocks = { {8 * 1024 * 1024, 1} },
16436 .block_erase = spi_block_erase_c7,
16437 }
16438 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016439 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016440 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016441 .write = spi_chip_write_256,
16442 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016443 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016444 },
16445
16446 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100016447 .vendor = "Winbond",
16448 .name = "W25P80",
16449 .bustype = BUS_SPI,
16450 .manufacture_id = WINBOND_NEX_ID,
16451 .model_id = WINBOND_NEX_W25P80,
16452 .total_size = 1024,
16453 .page_size = 256,
16454 .feature_bits = FEATURE_WRSR_WREN,
16455 .tested = TEST_UNTESTED,
16456 .probe = probe_spi_rdid,
16457 .probe_timing = TIMING_ZERO,
16458 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016459 {
16460 {
16461 .eraseblocks = { {64 * 1024, 16} },
16462 .block_erase = spi_block_erase_d8,
16463 }, {
16464 .eraseblocks = { {1024 * 1024, 1} },
16465 .block_erase = spi_block_erase_c7,
16466 }
16467 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100016468 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16469 .unlock = spi_disable_blockprotect,
16470 .write = spi_chip_write_256,
16471 .read = spi_chip_read, /* Fast read (0x0B) supported */
16472 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016473 },
16474
16475 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100016476 .vendor = "Winbond",
16477 .name = "W25P16",
16478 .bustype = BUS_SPI,
16479 .manufacture_id = WINBOND_NEX_ID,
16480 .model_id = WINBOND_NEX_W25P16,
16481 .total_size = 2048,
16482 .page_size = 256,
16483 .feature_bits = FEATURE_WRSR_WREN,
16484 .tested = TEST_UNTESTED,
16485 .probe = probe_spi_rdid,
16486 .probe_timing = TIMING_ZERO,
16487 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016488 {
16489 {
16490 .eraseblocks = { {64 * 1024, 32} },
16491 .block_erase = spi_block_erase_d8,
16492 }, {
16493 .eraseblocks = { {2048 * 1024, 1} },
16494 .block_erase = spi_block_erase_c7,
16495 }
16496 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100016497 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16498 .unlock = spi_disable_blockprotect,
16499 .write = spi_chip_write_256,
16500 .read = spi_chip_read, /* Fast read (0x0B) supported */
16501 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016502 },
16503
16504 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100016505 .vendor = "Winbond",
16506 .name = "W25P32",
16507 .bustype = BUS_SPI,
16508 .manufacture_id = WINBOND_NEX_ID,
16509 .model_id = WINBOND_NEX_W25P32,
16510 .total_size = 4096,
16511 .page_size = 256,
16512 .feature_bits = FEATURE_WRSR_WREN,
16513 .tested = TEST_UNTESTED,
16514 .probe = probe_spi_rdid,
16515 .probe_timing = TIMING_ZERO,
16516 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016517 {
16518 {
16519 .eraseblocks = { {64 * 1024, 64} },
16520 .block_erase = spi_block_erase_d8,
16521 }, {
16522 .eraseblocks = { {4096 * 1024, 1} },
16523 .block_erase = spi_block_erase_c7,
16524 }
16525 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100016526 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16527 .unlock = spi_disable_blockprotect,
16528 .write = spi_chip_write_256,
16529 .read = spi_chip_read, /* Fast read (0x0B) supported */
16530 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016531 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100016532
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016533 {
Zheng Bao1db2b752009-11-26 11:05:01 +000016534 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000016535 .name = "W29C512A/W29EE512",
16536 .bustype = BUS_PARALLEL,
16537 .manufacture_id = WINBOND_ID,
16538 .model_id = WINBOND_W29C512A,
16539 .total_size = 64,
16540 .page_size = 128,
16541 .feature_bits = FEATURE_LONG_RESET,
16542 .tested = TEST_OK_PREW,
16543 .probe = probe_jedec,
16544 .probe_timing = 10,
16545 .block_erasers =
16546 {
16547 {
16548 .eraseblocks = { {64 * 1024, 1} },
16549 .block_erase = erase_chip_block_jedec,
16550 }
16551 },
16552 .write = write_jedec,
16553 .read = read_memmapped,
16554 .voltage = {4500, 5500},
16555 },
16556
16557 {
16558 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016559 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016560 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016561 .manufacture_id = WINBOND_ID,
16562 .model_id = WINBOND_W29C010,
16563 .total_size = 128,
16564 .page_size = 128,
16565 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000016566 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016567 .probe = probe_w29ee011,
16568 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
16569 .block_erasers =
16570 {
16571 {
16572 .eraseblocks = { {128 * 1024, 1} },
16573 .block_erase = erase_chip_block_jedec,
16574 }
16575 },
16576 .write = write_jedec,
16577 .read = read_memmapped,
16578 },
16579
16580 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
16581 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016582 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016583 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016584 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016585 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016586 .total_size = 128,
16587 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016588 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000016589 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016590 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016591 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016592 .block_erasers =
16593 {
16594 {
16595 .eraseblocks = { {128 * 1024, 1} },
16596 .block_erase = erase_chip_block_jedec,
16597 }
16598 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016599 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016600 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016601 },
16602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016603 {
16604 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016605 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016606 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016607 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016608 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016609 .total_size = 256,
16610 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016611 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016613 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016614 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016615 .block_erasers =
16616 {
16617 {
16618 .eraseblocks = { {256 * 1024, 1} },
16619 .block_erase = erase_chip_block_jedec,
16620 }
16621 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016622 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016623 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016624 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016625 },
16626
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016627 {
16628 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016629 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016630 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016631 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016632 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016633 .total_size = 512,
16634 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000016635 .feature_bits = FEATURE_LONG_RESET,
16636 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016637 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016638 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016639 .block_erasers =
16640 {
16641 {
16642 .eraseblocks = { {512 * 1024, 1} },
16643 .block_erase = erase_chip_block_jedec,
16644 }
16645 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016646 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016648 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016649 },
16650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016651 {
16652 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016653 .name = "W29GL032CB",
16654 .bustype = BUS_PARALLEL,
16655 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16656 .model_id = WINBOND_W29GL032CB,
16657 .total_size = 4096,
16658 .page_size = 128 * 1024, /* actual page size is 16 */
16659 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16660 .tested = TEST_UNTESTED,
16661 .probe = probe_jedec_29gl,
16662 .probe_timing = TIMING_ZERO,
16663 .block_erasers =
16664 {
16665 {
16666 .eraseblocks = {
16667 {8 * 1024, 8},
16668 {64 * 1024, 63},
16669 },
16670 .block_erase = erase_sector_jedec,
16671 }, {
16672 .eraseblocks = { {4 * 1024 * 1024, 1} },
16673 .block_erase = erase_chip_block_jedec,
16674 },
16675 },
16676 .write = write_jedec_1,
16677 .read = read_memmapped,
16678 .voltage = {2700, 3600},
16679 },
16680
16681 {
16682 .vendor = "Winbond",
16683 .name = "W29GL032CT",
16684 .bustype = BUS_PARALLEL,
16685 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16686 .model_id = WINBOND_W29GL032CT,
16687 .total_size = 4096,
16688 .page_size = 128 * 1024, /* actual page size is 16 */
16689 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16690 .tested = TEST_UNTESTED,
16691 .probe = probe_jedec_29gl,
16692 .probe_timing = TIMING_ZERO,
16693 .block_erasers =
16694 {
16695 {
16696 .eraseblocks = {
16697 {64 * 1024, 63},
16698 {8 * 1024, 8},
16699 },
16700 .block_erase = erase_sector_jedec,
16701 }, {
16702 .eraseblocks = { {4 * 1024 * 1024, 1} },
16703 .block_erase = erase_chip_block_jedec,
16704 },
16705 },
16706 .write = write_jedec_1,
16707 .read = read_memmapped,
16708 .voltage = {2700, 3600},
16709 },
16710
16711 {
16712 .vendor = "Winbond",
16713 .name = "W29GL032CH/L",
16714 .bustype = BUS_PARALLEL,
16715 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16716 .model_id = WINBOND_W29GL032CHL,
16717 .total_size = 4096,
16718 .page_size = 128 * 1024, /* actual page size is 16 */
16719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16720 .tested = TEST_UNTESTED,
16721 .probe = probe_jedec_29gl,
16722 .probe_timing = TIMING_ZERO,
16723 .block_erasers =
16724 {
16725 {
16726 .eraseblocks = { {64 * 1024, 64} },
16727 .block_erase = erase_sector_jedec,
16728 }, {
16729 .eraseblocks = { {4 * 1024 * 1024, 1} },
16730 .block_erase = erase_chip_block_jedec,
16731 },
16732 },
16733 .write = write_jedec_1,
16734 .read = read_memmapped,
16735 .voltage = {2700, 3600},
16736 },
16737
16738 {
16739 .vendor = "Winbond",
16740 .name = "W29GL064CB",
16741 .bustype = BUS_PARALLEL,
16742 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16743 .model_id = WINBOND_W29GL064CB,
16744 .total_size = 8192,
16745 .page_size = 128 * 1024, /* actual page size is 16 */
16746 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16747 .tested = TEST_UNTESTED,
16748 .probe = probe_jedec_29gl,
16749 .probe_timing = TIMING_ZERO,
16750 .block_erasers =
16751 {
16752 {
16753 .eraseblocks = {
16754 {8 * 1024, 8},
16755 {64 * 1024, 127},
16756 },
16757 .block_erase = erase_sector_jedec,
16758 }, {
16759 .eraseblocks = { {8 * 1024 * 1024, 1} },
16760 .block_erase = erase_chip_block_jedec,
16761 },
16762 },
16763 .write = write_jedec_1,
16764 .read = read_memmapped,
16765 .voltage = {2700, 3600},
16766 },
16767
16768 {
16769 .vendor = "Winbond",
16770 .name = "W29GL064CT",
16771 .bustype = BUS_PARALLEL,
16772 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16773 .model_id = WINBOND_W29GL064CT,
16774 .total_size = 8192,
16775 .page_size = 128 * 1024, /* actual page size is 16 */
16776 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16777 .tested = TEST_UNTESTED,
16778 .probe = probe_jedec_29gl,
16779 .probe_timing = TIMING_ZERO,
16780 .block_erasers =
16781 {
16782 {
16783 .eraseblocks = {
16784 {64 * 1024, 127},
16785 {8 * 1024, 8},
16786 },
16787 .block_erase = erase_sector_jedec,
16788 }, {
16789 .eraseblocks = { {8 * 1024 * 1024, 1} },
16790 .block_erase = erase_chip_block_jedec,
16791 },
16792 },
16793 .write = write_jedec_1,
16794 .read = read_memmapped,
16795 .voltage = {2700, 3600},
16796 },
16797
16798 {
16799 .vendor = "Winbond",
16800 .name = "W29GL064CH/L",
16801 .bustype = BUS_PARALLEL,
16802 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16803 .model_id = WINBOND_W29GL064CHL,
16804 .total_size = 8192,
16805 .page_size = 128 * 1024, /* actual page size is 16 */
16806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16807 .tested = TEST_UNTESTED,
16808 .probe = probe_jedec_29gl,
16809 .probe_timing = TIMING_ZERO,
16810 .block_erasers =
16811 {
16812 {
16813 .eraseblocks = { {64 * 1024, 128} },
16814 .block_erase = erase_sector_jedec,
16815 }, {
16816 .eraseblocks = { {8 * 1024 * 1024, 1} },
16817 .block_erase = erase_chip_block_jedec,
16818 },
16819 },
16820 .write = write_jedec_1,
16821 .read = read_memmapped,
16822 .voltage = {2700, 3600},
16823 },
16824
16825 {
16826 .vendor = "Winbond",
16827 .name = "W29GL128C",
16828 .bustype = BUS_PARALLEL,
16829 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16830 .model_id = WINBOND_W29GL128CHL,
16831 .total_size = 16384,
16832 .page_size = 128 * 1024, /* actual page size is 16 */
16833 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16834 .tested = TEST_UNTESTED,
16835 .probe = probe_jedec_29gl,
16836 .probe_timing = TIMING_ZERO,
16837 .block_erasers =
16838 {
16839 {
16840 .eraseblocks = { {128 * 1024, 128} },
16841 .block_erase = erase_sector_jedec,
16842 }, {
16843 .eraseblocks = { {16 * 1024 * 1024, 1} },
16844 .block_erase = erase_chip_block_jedec,
16845 },
16846 },
16847 .write = write_jedec_1,
16848 .read = read_memmapped,
16849 .voltage = {2700, 3600},
16850 },
16851
16852 {
16853 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000016854 .name = "W39F010",
16855 .bustype = BUS_PARALLEL,
16856 .manufacture_id = WINBOND_ID,
16857 .model_id = WINBOND_W39F010,
16858 .total_size = 128,
16859 .page_size = 4 * 1024,
16860 .feature_bits = FEATURE_EITHER_RESET,
16861 .tested = TEST_OK_PREW,
16862 .probe = probe_jedec,
16863 .probe_timing = 10,
16864 .block_erasers =
16865 {
16866 {
16867 .eraseblocks = { {4 * 1024, 32} },
16868 .block_erase = erase_block_jedec,
16869 }, {
16870 .eraseblocks = { {128 * 1024, 1} },
16871 .block_erase = erase_chip_block_jedec,
16872 }
16873 },
16874 .printlock = printlock_w39f010,
16875 .write = write_jedec_1,
16876 .read = read_memmapped,
16877 .voltage = {4500, 5500},
16878 },
16879
16880 {
16881 .vendor = "Winbond",
16882 .name = "W39L010",
16883 .bustype = BUS_PARALLEL,
16884 .manufacture_id = WINBOND_ID,
16885 .model_id = WINBOND_W39L010,
16886 .total_size = 128,
16887 .page_size = 4 * 1024,
16888 .feature_bits = FEATURE_EITHER_RESET,
16889 .tested = TEST_UNTESTED,
16890 .probe = probe_jedec,
16891 .probe_timing = 10,
16892 .block_erasers =
16893 {
16894 {
16895 .eraseblocks = { {4 * 1024, 32} },
16896 .block_erase = erase_block_jedec,
16897 }, {
16898 .eraseblocks = { {128 * 1024, 1} },
16899 .block_erase = erase_chip_block_jedec,
16900 }
16901 },
16902 .printlock = printlock_w39l010,
16903 .write = write_jedec_1,
16904 .read = read_memmapped,
16905 .voltage = {3000, 3600},
16906 },
16907
16908 {
16909 .vendor = "Winbond",
16910 .name = "W39L020",
16911 .bustype = BUS_PARALLEL,
16912 .manufacture_id = WINBOND_ID,
16913 .model_id = WINBOND_W39L020,
16914 .total_size = 256,
16915 .page_size = 4 * 1024,
16916 .feature_bits = FEATURE_EITHER_RESET,
16917 .tested = TEST_UNTESTED,
16918 .probe = probe_jedec,
16919 .probe_timing = 10,
16920 .block_erasers =
16921 {
16922 {
16923 .eraseblocks = { {4 * 1024, 64} },
16924 .block_erase = erase_block_jedec,
16925 }, {
16926 .eraseblocks = { {64 * 1024, 4} },
16927 .block_erase = erase_sector_jedec,
16928 }, {
16929 .eraseblocks = { {256 * 1024, 1} },
16930 .block_erase = erase_chip_block_jedec,
16931 }
16932 },
16933 .printlock = printlock_w39l020,
16934 .write = write_jedec_1,
16935 .read = read_memmapped,
16936 .voltage = {3000, 3600},
16937 },
16938
16939 {
16940 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000016941 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016942 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000016943 .manufacture_id = WINBOND_ID,
16944 .model_id = WINBOND_W39L040,
16945 .total_size = 512,
16946 .page_size = 64 * 1024,
16947 .feature_bits = FEATURE_EITHER_RESET,
16948 .tested = TEST_OK_PR,
16949 .probe = probe_jedec,
16950 .probe_timing = 10,
16951 .block_erasers =
16952 {
16953 {
16954 .eraseblocks = { {4 * 1024, 128} },
16955 .block_erase = erase_block_jedec,
16956 }, {
16957 .eraseblocks = { {64 * 1024, 8} },
16958 .block_erase = erase_sector_jedec,
16959 }, {
16960 .eraseblocks = { {512 * 1024, 1} },
16961 .block_erase = erase_chip_block_jedec,
16962 }
16963 },
16964 .printlock = printlock_w39l040,
16965 .write = write_jedec_1,
16966 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016967 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000016968 },
16969
16970 {
16971 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016972 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016973 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016974 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016975 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016976 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016977 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016978 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016980 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000016981 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016982 .block_erasers =
16983 {
16984 {
16985 .eraseblocks = { {64 * 1024, 8} },
16986 .block_erase = erase_sector_jedec,
16987 }, {
16988 .eraseblocks = { {512 * 1024, 1} },
16989 .block_erase = erase_chip_block_jedec,
16990 }
16991 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016992 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000016993 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016995 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016996 },
16997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016998 {
16999 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017000 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017001 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017002 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017003 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017004 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017005 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017006 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017007 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017008 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000017009 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017010 .block_erasers =
17011 {
17012 {
17013 .eraseblocks = { {64 * 1024, 8} },
17014 .block_erase = erase_sector_jedec,
17015 }, {
17016 .eraseblocks = { {512 * 1024, 1} },
17017 .block_erase = erase_chip_block_jedec,
17018 }
17019 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017020 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000017021 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017023 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017024 },
17025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017026 {
17027 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017028 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017029 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017030 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017031 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017032 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017033 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017034 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017035 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000017036 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017037 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017038 .block_erasers =
17039 {
17040 {
17041 .eraseblocks = { {64 * 1024, 8} },
17042 .block_erase = erase_sector_jedec,
17043 }, {
17044 .eraseblocks = { {512 * 1024, 1} },
17045 .block_erase = erase_chip_block_jedec,
17046 }
17047 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000017048 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000017049 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017050 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017051 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017052 },
17053
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017054 {
17055 .vendor = "Winbond",
17056 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017057 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017058 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017059 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017060 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017061 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000017062 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017063 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017064 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017065 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017066 .block_erasers =
17067 {
17068 {
17069 .eraseblocks = { {4 * 1024, 128} },
17070 .block_erase = erase_block_jedec,
17071 }, {
17072 .eraseblocks = { {64 * 1024, 8} },
17073 .block_erase = erase_sector_jedec,
17074 }, {
17075 .eraseblocks = { {512 * 1024, 1} },
17076 .block_erase = erase_chip_block_jedec,
17077 }
17078 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017079 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017080 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017081 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017082 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017083 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017084 },
17085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017086 {
17087 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017088 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017089 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017090 .manufacture_id = WINBOND_ID,
17091 .model_id = WINBOND_W39V040B,
17092 .total_size = 512,
17093 .page_size = 64 * 1024,
17094 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000017095 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017096 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017097 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017098 .block_erasers =
17099 {
17100 {
17101 .eraseblocks = { {64 * 1024, 8} },
17102 .block_erase = erase_sector_jedec,
17103 }, {
17104 .eraseblocks = { {512 * 1024, 1} },
17105 .block_erase = erase_chip_block_jedec,
17106 }
17107 },
17108 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017109 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017110 .write = write_jedec_1,
17111 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017112 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017113 },
17114
17115 {
17116 .vendor = "Winbond",
17117 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017118 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017119 .manufacture_id = WINBOND_ID,
17120 .model_id = WINBOND_W39V040C,
17121 .total_size = 512,
17122 .page_size = 64 * 1024,
17123 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000017124 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017125 .probe = probe_jedec,
17126 .probe_timing = 10,
17127 .block_erasers =
17128 {
17129 {
17130 .eraseblocks = { {64 * 1024, 8} },
17131 .block_erase = erase_sector_jedec,
17132 }, {
17133 .eraseblocks = { {512 * 1024, 1} },
17134 .block_erase = erase_chip_block_jedec,
17135 }
17136 },
17137 .printlock = printlock_w39v040fc,
17138 .write = write_jedec_1,
17139 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017140 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017141 },
17142
17143 {
17144 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017145 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017146 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017147 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017148 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017149 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000017150 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017151 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000017152 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017153 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000017154 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017155 .block_erasers =
17156 {
17157 {
17158 .eraseblocks = { {64 * 1024, 16} },
17159 .block_erase = erase_sector_jedec,
17160 }, {
17161 .eraseblocks = { {1024 * 1024, 1} },
17162 .block_erase = erase_chip_block_jedec,
17163 }
17164 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017165 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000017166 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017168 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017169 },
17170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017171 {
17172 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017173 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017174 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017175 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017176 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017177 .total_size = 256,
17178 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017179 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017180 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017181 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017182 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017183 .block_erasers =
17184 {
17185 {
17186 .eraseblocks = {
17187 {128 * 1024, 1},
17188 {96 * 1024, 1},
17189 {8 * 1024, 2},
17190 {16 * 1024, 1},
17191 },
17192 .block_erase = erase_sector_jedec,
17193 }, {
17194 .eraseblocks = { {256 * 1024, 1} },
17195 .block_erase = erase_chip_block_jedec,
17196 }
17197 },
Sean Nelson35727f72010-01-28 23:55:12 +000017198 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017199 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017200 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017201 },
17202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017203 {
17204 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017205 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017206 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017207 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017208 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017209 .total_size = 256,
17210 .page_size = 128,
17211 .feature_bits = FEATURE_EITHER_RESET,
17212 .tested = TEST_OK_PROBE,
17213 .probe = probe_jedec,
17214 .probe_timing = 10,
17215 .block_erasers =
17216 {
17217 {
17218 .eraseblocks = { {256 * 1024, 1} },
17219 .block_erase = erase_chip_block_jedec,
17220 }
17221 },
17222 .write = write_jedec_1,
17223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017224 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017225 },
17226
17227 {
17228 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017229 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017230 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017231 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017232 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017233 .total_size = 256,
17234 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017235 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017236 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017237 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017238 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017239 .block_erasers =
17240 {
17241 {
17242 .eraseblocks = {
17243 {64 * 1024, 3},
17244 {32 * 1024, 1},
17245 {8 * 1024, 2},
17246 {16 * 1024, 1},
17247 },
17248 .block_erase = erase_sector_jedec,
17249 }, {
17250 .eraseblocks = { {256 * 1024, 1} },
17251 .block_erase = erase_chip_block_jedec,
17252 }
17253 },
Sean Nelson35727f72010-01-28 23:55:12 +000017254 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017256 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017257 },
17258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017259 {
17260 .vendor = "Winbond",
17261 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017262 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017263 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017264 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017265 .total_size = 256,
17266 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017267 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000017268 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017269 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017270 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017271 .block_erasers =
17272 {
17273 {
17274 .eraseblocks = {
17275 {64 * 1024, 3},
17276 {32 * 1024, 1},
17277 {8 * 1024, 2},
17278 {16 * 1024, 1},
17279 },
17280 .block_erase = erase_sector_jedec,
17281 }, {
17282 .eraseblocks = { {256 * 1024, 1} },
17283 .block_erase = erase_chip_block_jedec,
17284 }
17285 },
Sean Nelson35727f72010-01-28 23:55:12 +000017286 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017288 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017289 },
17290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017291 {
17292 .vendor = "Winbond",
17293 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017294 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017295 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017296 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017297 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000017298 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017299 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017300 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000017301 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017302 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017303 .block_erasers =
17304 {
17305 {
Stefan Tauner6697f712014-08-06 15:09:15 +000017306 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017307 .block_erase = erase_sector_jedec,
17308 }, {
17309 .eraseblocks = { {1024 * 1024, 1} },
17310 .block_erase = erase_chip_block_jedec,
17311 }
17312 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017313 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017314 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017315 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017316 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017317 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000017318 },
17319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017320 {
17321 .vendor = "Winbond",
17322 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017323 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017324 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017325 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017326 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017327 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017328 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017329 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000017330 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017331 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017332 .block_erasers =
17333 {
17334 {
Stefan Tauner6697f712014-08-06 15:09:15 +000017335 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017336 .block_erase = erase_sector_jedec,
17337 }, {
17338 .eraseblocks = { {512 * 1024, 1} },
17339 .block_erase = erase_chip_block_jedec,
17340 }
17341 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017342 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000017343 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017344 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017345 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000017346 },
nybashcbb46e22018-02-11 17:53:49 -080017347
17348 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017349 .vendor = "Zetta Device",
17350 .name = "ZD25D20",
17351 .bustype = BUS_SPI,
17352 .manufacture_id = ZETTADEVICE_ID,
17353 .model_id = ZETTADEVICE_ZD25D20,
17354 .total_size = 256,
17355 .page_size = 256,
17356 .feature_bits = FEATURE_WRSR_WREN,
17357 .tested = TEST_UNTESTED,
17358 .probe = probe_spi_rdid,
17359 .probe_timing = TIMING_ZERO,
17360 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080017361 {
17362 {
17363 .eraseblocks = { {4 * 1024, 64} },
17364 .block_erase = spi_block_erase_20,
17365 }, {
17366 .eraseblocks = { {32 * 1024, 8} },
17367 .block_erase = spi_block_erase_52,
17368 }, {
17369 .eraseblocks = { {64 * 1024, 4} },
17370 .block_erase = spi_block_erase_d8,
17371 }, {
17372 .eraseblocks = { {256 * 1024, 1} },
17373 .block_erase = spi_block_erase_60,
17374 }, {
17375 .eraseblocks = { {256 * 1024, 1} },
17376 .block_erase = spi_block_erase_c7,
17377 }
17378 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17380 .unlock = spi_disable_blockprotect,
17381 .write = spi_chip_write_256,
17382 .read = spi_chip_read,
17383 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080017384 },
17385
17386 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017387 .vendor = "Zetta Device",
17388 .name = "ZD25D40",
17389 .bustype = BUS_SPI,
17390 .manufacture_id = ZETTADEVICE_ID,
17391 .model_id = ZETTADEVICE_ZD25D40,
17392 .total_size = 512,
17393 .page_size = 256,
17394 .feature_bits = FEATURE_WRSR_WREN,
17395 .tested = TEST_UNTESTED,
17396 .probe = probe_spi_rdid,
17397 .probe_timing = TIMING_ZERO,
17398 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080017399 {
17400 {
17401 .eraseblocks = { {4 * 1024, 128} },
17402 .block_erase = spi_block_erase_20,
17403 }, {
17404 .eraseblocks = { {32 * 1024, 16} },
17405 .block_erase = spi_block_erase_52,
17406 }, {
17407 .eraseblocks = { {64 * 1024, 8} },
17408 .block_erase = spi_block_erase_d8,
17409 }, {
17410 .eraseblocks = { {512 * 1024, 1} },
17411 .block_erase = spi_block_erase_60,
17412 }, {
17413 .eraseblocks = { {512 * 1024, 1} },
17414 .block_erase = spi_block_erase_c7,
17415 }
17416 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17418 .unlock = spi_disable_blockprotect,
17419 .write = spi_chip_write_256,
17420 .read = spi_chip_read,
17421 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080017422 },
17423
Stefan Taunerac1b4c82012-02-17 14:51:04 +000017424 {
17425 .vendor = "Unknown",
17426 .name = "SFDP-capable chip",
17427 .bustype = BUS_SPI,
17428 .manufacture_id = GENERIC_MANUF_ID,
17429 .model_id = SFDP_DEVICE_ID,
17430 /* We present our own "report this" text hence we do not
17431 * want the default "This flash part has status UNTESTED..."
17432 * text to be printed. */
17433 .tested = TEST_OK_PREW,
17434 .probe = probe_spi_sfdp,
17435 .unlock = spi_disable_blockprotect, /* is this safe? */
17436 .read = spi_chip_read,
17437 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000017438 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000017439 /* Everything below will be set by the probing function. */
17440 .write = NULL,
17441 .total_size = 0,
17442 .page_size = 0,
17443 .feature_bits = 0,
17444 .block_erasers = {},
17445 },
FENG yu ningff692fb2008-12-08 18:15:10 +000017446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017447 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000017448 .vendor = "Programmer",
17449 .name = "Opaque flash chip",
17450 .bustype = BUS_PROG,
17451 .manufacture_id = PROGMANUF_ID,
17452 .model_id = PROGDEV_ID,
17453 .total_size = 0,
17454 .page_size = 256,
17455 /* probe is assumed to work, rest will be filled in by probe */
17456 .tested = TEST_OK_PROBE,
17457 .probe = probe_opaque,
17458 /* eraseblock sizes will be set by the probing function */
17459 .block_erasers =
17460 {
17461 {
17462 .block_erase = erase_opaque,
17463 }
17464 },
17465 .write = write_opaque,
17466 .read = read_opaque,
17467 },
17468
17469 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017470 .vendor = "AMIC",
17471 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017472 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017473 .manufacture_id = AMIC_ID,
17474 .model_id = GENERIC_DEVICE_ID,
17475 .total_size = 0,
17476 .page_size = 256,
17477 .tested = TEST_BAD_PREW,
17478 .probe = probe_spi_rdid4,
17479 .probe_timing = TIMING_ZERO,
17480 .write = NULL,
17481 .read = NULL,
17482 },
17483
17484 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017485 .vendor = "Atmel",
17486 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017487 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017488 .manufacture_id = ATMEL_ID,
17489 .model_id = GENERIC_DEVICE_ID,
17490 .total_size = 0,
17491 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017492 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017493 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017494 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017495 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017496 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017497 },
17498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017499 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000017500 .vendor = "Eon",
17501 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017502 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017503 .manufacture_id = EON_ID_NOPREFIX,
17504 .model_id = GENERIC_DEVICE_ID,
17505 .total_size = 0,
17506 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017507 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017508 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017509 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017510 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017511 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017512 },
17513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017514 {
17515 .vendor = "Macronix",
17516 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017517 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000017518 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017519 .model_id = GENERIC_DEVICE_ID,
17520 .total_size = 0,
17521 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017522 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017523 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017524 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017525 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017526 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017527 },
17528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017529 {
17530 .vendor = "PMC",
17531 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017532 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017533 .manufacture_id = PMC_ID,
17534 .model_id = GENERIC_DEVICE_ID,
17535 .total_size = 0,
17536 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017537 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017538 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017539 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017540 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017541 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017542 },
17543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017544 {
17545 .vendor = "SST",
17546 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017547 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017548 .manufacture_id = SST_ID,
17549 .model_id = GENERIC_DEVICE_ID,
17550 .total_size = 0,
17551 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017552 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017553 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017554 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017555 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017556 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017557 },
17558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017559 {
17560 .vendor = "ST",
17561 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017563 .manufacture_id = ST_ID,
17564 .model_id = GENERIC_DEVICE_ID,
17565 .total_size = 0,
17566 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017567 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017569 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017570 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017571 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017572 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000017573
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017574 {
Sean Nelson118e1d62009-11-24 02:08:11 +000017575 .vendor = "Sanyo",
17576 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017577 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000017578 .manufacture_id = SANYO_ID,
17579 .model_id = GENERIC_DEVICE_ID,
17580 .total_size = 0,
17581 .page_size = 256,
17582 .tested = TEST_BAD_PREW,
17583 .probe = probe_spi_rdid,
17584 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000017585 .write = NULL,
17586 .read = NULL,
17587 },
17588
17589 {
Stefan Taunereb582572012-09-21 12:52:50 +000017590 .vendor = "Winbond",
17591 .name = "unknown Winbond (ex Nexcom) SPI chip",
17592 .bustype = BUS_SPI,
17593 .manufacture_id = WINBOND_NEX_ID,
17594 .model_id = GENERIC_DEVICE_ID,
17595 .total_size = 0,
17596 .page_size = 256,
17597 .tested = TEST_BAD_PREW,
17598 .probe = probe_spi_rdid,
17599 .probe_timing = TIMING_ZERO,
17600 .write = NULL,
17601 .read = NULL,
17602 },
17603
17604 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017605 .vendor = "Generic",
17606 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017607 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017608 .manufacture_id = GENERIC_MANUF_ID,
17609 .model_id = GENERIC_DEVICE_ID,
17610 .total_size = 0,
17611 .page_size = 256,
17612 .tested = TEST_BAD_PREW,
17613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017614 .write = NULL,
17615 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000017616
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017617 {
17618 .vendor = "Generic",
17619 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017620 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017621 .manufacture_id = GENERIC_MANUF_ID,
17622 .model_id = GENERIC_DEVICE_ID,
17623 .total_size = 0,
17624 .page_size = 256,
17625 .tested = TEST_BAD_PREW,
17626 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017627 .write = NULL,
17628 },
17629
Stefan Tauner96658be2014-05-26 22:05:31 +000017630 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000017631};
Stefan Tauner96658be2014-05-26 22:05:31 +000017632
17633const unsigned int flashchips_size = ARRAY_SIZE(flashchips);