blob: 8065283e00ac1f06ddae8ba2d66c7bea7e9755de [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,
1830 .manufacture_id = ATMEL_ID,
1831 .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,
1869 .manufacture_id = ATMEL_ID,
1870 .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 {
Hal Martin49e23d22018-05-27 14:18:43 +02002328 .vendor = "ATMEL",
2329 .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",
Nico Huberb27b8d12018-10-02 20:46:21 +02007379 .name = "IS25WP032",
7380 .bustype = BUS_SPI,
7381 .manufacture_id = ISSI_ID_SPI,
7382 .model_id = ISSI_IS25WP032,
7383 .total_size = 4096,
7384 .page_size = 256,
7385 /* OTP: 1024B total; read 0x48; write 0x42 */
7386 /* QPI enable 0x35, disable 0xF5 */
7387 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7388 .tested = TEST_UNTESTED,
7389 .probe = probe_spi_rdid,
7390 .probe_timing = TIMING_ZERO,
7391 .block_erasers =
7392 {
7393 {
7394 .eraseblocks = { {4 * 1024, 1024} },
7395 .block_erase = spi_block_erase_20,
7396 }, {
7397 .eraseblocks = { {4 * 1024, 1024} },
7398 .block_erase = spi_block_erase_d7,
7399 }, {
7400 .eraseblocks = { {32 * 1024, 128} },
7401 .block_erase = spi_block_erase_52,
7402 }, {
7403 .eraseblocks = { {64 * 1024, 64} },
7404 .block_erase = spi_block_erase_d8,
7405 }, {
7406 .eraseblocks = { {4 * 1024 * 1024, 1} },
7407 .block_erase = spi_block_erase_60,
7408 }, {
7409 .eraseblocks = { {4 * 1024 * 1024, 1} },
7410 .block_erase = spi_block_erase_c7,
7411 }
7412 },
7413 .unlock = spi_disable_blockprotect,
7414 .write = spi_chip_write_256,
7415 .read = spi_chip_read,
7416 .voltage = {1650, 1950},
7417 },
7418
7419 {
7420 .vendor = "ISSI",
7421 .name = "IS25WP064",
7422 .bustype = BUS_SPI,
7423 .manufacture_id = ISSI_ID_SPI,
7424 .model_id = ISSI_IS25WP064,
7425 .total_size = 8192,
7426 .page_size = 256,
7427 /* OTP: 1024B total; read 0x48; write 0x42 */
7428 /* QPI enable 0x35, disable 0xF5 */
7429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7430 .tested = TEST_OK_PREW,
7431 .probe = probe_spi_rdid,
7432 .probe_timing = TIMING_ZERO,
7433 .block_erasers =
7434 {
7435 {
7436 .eraseblocks = { {4 * 1024, 2048} },
7437 .block_erase = spi_block_erase_20,
7438 }, {
7439 .eraseblocks = { {4 * 1024, 2048} },
7440 .block_erase = spi_block_erase_d7,
7441 }, {
7442 .eraseblocks = { {32 * 1024, 256} },
7443 .block_erase = spi_block_erase_52,
7444 }, {
7445 .eraseblocks = { {64 * 1024, 128} },
7446 .block_erase = spi_block_erase_d8,
7447 }, {
7448 .eraseblocks = { {8 * 1024 * 1024, 1} },
7449 .block_erase = spi_block_erase_60,
7450 }, {
7451 .eraseblocks = { {8 * 1024 * 1024, 1} },
7452 .block_erase = spi_block_erase_c7,
7453 }
7454 },
7455 .unlock = spi_disable_blockprotect,
7456 .write = spi_chip_write_256,
7457 .read = spi_chip_read,
7458 .voltage = {1650, 1950},
7459 },
7460
7461 {
7462 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007463 .name = "IS25WP128",
7464 .bustype = BUS_SPI,
7465 .manufacture_id = ISSI_ID_SPI,
7466 .model_id = ISSI_IS25WP128,
7467 .total_size = 16384,
7468 .page_size = 256,
7469 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007470 /* QPI enable 0x35, disable 0xF5 */
7471 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007472 .tested = TEST_OK_PREW,
7473 .probe = probe_spi_rdid,
7474 .probe_timing = TIMING_ZERO,
7475 .block_erasers =
7476 {
7477 {
7478 .eraseblocks = { {4 * 1024, 4096} },
7479 .block_erase = spi_block_erase_20,
7480 }, {
7481 .eraseblocks = { {4 * 1024, 4096} },
7482 .block_erase = spi_block_erase_d7,
7483 }, {
7484 .eraseblocks = { {32 * 1024, 512} },
7485 .block_erase = spi_block_erase_52,
7486 }, {
7487 .eraseblocks = { {64 * 1024, 256} },
7488 .block_erase = spi_block_erase_d8,
7489 }, {
7490 .eraseblocks = { {16 * 1024 * 1024, 1} },
7491 .block_erase = spi_block_erase_60,
7492 }, {
7493 .eraseblocks = { {16 * 1024 * 1024, 1} },
7494 .block_erase = spi_block_erase_c7,
7495 }
7496 },
7497 .unlock = spi_disable_blockprotect,
7498 .write = spi_chip_write_256,
7499 .read = spi_chip_read,
7500 .voltage = {1650, 1950},
7501 },
7502
7503 {
7504 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007505 .name = "IS29GL064B",
7506 .bustype = BUS_PARALLEL,
7507 .manufacture_id = ISSI_ID,
7508 .model_id = ISSI_PMC_IS29GL064B,
7509 .total_size = 8192,
7510 .page_size = 128 * 1024, /* actual page size is 16 */
7511 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7512 .tested = TEST_UNTESTED,
7513 .probe = probe_jedec_29gl,
7514 .probe_timing = TIMING_ZERO,
7515 .block_erasers =
7516 {
7517 {
7518 .eraseblocks = {
7519 {8 * 1024, 8},
7520 {64 * 1024, 127},
7521 },
7522 .block_erase = erase_sector_jedec,
7523 }, {
7524 .eraseblocks = { {8 * 1024 * 1024, 1} },
7525 .block_erase = erase_chip_block_jedec,
7526 },
7527 },
7528 .write = write_jedec_1,
7529 .read = read_memmapped,
7530 .voltage = {2700, 3600},
7531 },
7532
7533 {
7534 .vendor = "ISSI",
7535 .name = "IS29GL064T",
7536 .bustype = BUS_PARALLEL,
7537 .manufacture_id = ISSI_ID,
7538 .model_id = ISSI_PMC_IS29GL064T,
7539 .total_size = 8192,
7540 .page_size = 128 * 1024, /* actual page size is 16 */
7541 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7542 .tested = TEST_UNTESTED,
7543 .probe = probe_jedec_29gl,
7544 .probe_timing = TIMING_ZERO,
7545 .block_erasers =
7546 {
7547 {
7548 .eraseblocks = {
7549 {64 * 1024, 127},
7550 {8 * 1024, 8},
7551 },
7552 .block_erase = erase_sector_jedec,
7553 }, {
7554 .eraseblocks = { {8 * 1024 * 1024, 1} },
7555 .block_erase = erase_chip_block_jedec,
7556 },
7557 },
7558 .write = write_jedec_1,
7559 .read = read_memmapped,
7560 .voltage = {2700, 3600},
7561 },
7562
7563 {
7564 .vendor = "ISSI",
7565 .name = "IS29GL064H/L",
7566 .bustype = BUS_PARALLEL,
7567 .manufacture_id = ISSI_ID,
7568 .model_id = ISSI_PMC_IS29GL064HL,
7569 .total_size = 8192,
7570 .page_size = 128 * 1024, /* actual page size is 16 */
7571 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7572 .tested = TEST_UNTESTED,
7573 .probe = probe_jedec_29gl,
7574 .probe_timing = TIMING_ZERO,
7575 .block_erasers =
7576 {
7577 {
7578 .eraseblocks = { {64 * 1024, 128} },
7579 .block_erase = erase_sector_jedec,
7580 }, {
7581 .eraseblocks = { {8 * 1024 * 1024, 1} },
7582 .block_erase = erase_chip_block_jedec,
7583 },
7584 },
7585 .write = write_jedec_1,
7586 .read = read_memmapped,
7587 .voltage = {2700, 3600},
7588 },
7589
7590 {
7591 .vendor = "ISSI",
7592 .name = "IS29GL128H/L",
7593 .bustype = BUS_PARALLEL,
7594 .manufacture_id = ISSI_ID,
7595 .model_id = ISSI_PMC_IS29GL128HL,
7596 .total_size = 16384,
7597 .page_size = 128 * 1024, /* actual page size is 16 */
7598 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7599 .tested = TEST_UNTESTED,
7600 .probe = probe_jedec_29gl,
7601 .probe_timing = TIMING_ZERO,
7602 .block_erasers =
7603 {
7604 {
7605 .eraseblocks = { {128 * 1024, 128} },
7606 .block_erase = erase_sector_jedec,
7607 }, {
7608 .eraseblocks = { {16 * 1024 * 1024, 1} },
7609 .block_erase = erase_chip_block_jedec,
7610 },
7611 },
7612 .write = write_jedec_1,
7613 .read = read_memmapped,
7614 .voltage = {2700, 3600},
7615 },
7616
7617 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007618 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007619 .name = "MX23L1654",
7620 .bustype = BUS_SPI,
7621 .manufacture_id = MACRONIX_ID,
7622 .model_id = MACRONIX_MX23L1654,
7623 .total_size = 2048,
7624 .page_size = 256,
7625 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7626 .probe = probe_spi_rdid,
7627 .probe_timing = TIMING_ZERO,
7628 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7629 .read = spi_chip_read, /* Fast read (0x0B) supported */
7630 .voltage = {3000, 3600},
7631 },
7632
7633 {
7634 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007635 .name = "MX23L3254",
7636 .bustype = BUS_SPI,
7637 .manufacture_id = MACRONIX_ID,
7638 .model_id = MACRONIX_MX23L3254,
7639 .total_size = 4096,
7640 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007641 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007642 .probe = probe_spi_rdid,
7643 .probe_timing = TIMING_ZERO,
7644 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7645 .read = spi_chip_read, /* Fast read (0x0B) supported */
7646 .voltage = {3000, 3600},
7647 },
7648
7649 {
7650 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007651 .name = "MX23L6454",
7652 .bustype = BUS_SPI,
7653 .manufacture_id = MACRONIX_ID,
7654 .model_id = MACRONIX_MX23L6454,
7655 .total_size = 8192,
7656 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007657 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007658 .probe = probe_spi_rdid,
7659 .probe_timing = TIMING_ZERO,
7660 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7661 .read = spi_chip_read, /* Fast read (0x0B) supported */
7662 .voltage = {3000, 3600},
7663 },
7664
7665 {
7666 .vendor = "Macronix",
7667 .name = "MX23L12854",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = MACRONIX_ID,
7670 .model_id = MACRONIX_MX23L12854,
7671 .total_size = 16384,
7672 .page_size = 256,
7673 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7674 .probe = probe_spi_rdid,
7675 .probe_timing = TIMING_ZERO,
7676 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7677 .read = spi_chip_read, /* Fast read (0x0B) supported */
7678 .voltage = {3000, 3600},
7679 },
7680
7681 {
7682 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007683 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007684 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007685 .manufacture_id = MACRONIX_ID,
7686 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007687 .total_size = 64,
7688 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007689 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007690 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007691 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007692 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007693 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007694 .block_erasers =
7695 {
7696 {
7697 .eraseblocks = { {4 * 1024, 16} },
7698 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007699 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007700 .eraseblocks = { {64 * 1024, 1} },
7701 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007702 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007703 .eraseblocks = { {64 * 1024, 1} },
7704 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007705 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007706 .eraseblocks = { {64 * 1024, 1} },
7707 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007708 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007709 .eraseblocks = { {64 * 1024, 1} },
7710 .block_erase = spi_block_erase_c7,
7711 },
7712 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007713 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007714 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007715 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007716 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7717 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007718 },
7719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007720 {
7721 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007722 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007723 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007724 .manufacture_id = MACRONIX_ID,
7725 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007726 .total_size = 128,
7727 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007728 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007729 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007730 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007731 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007732 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007733 .block_erasers =
7734 {
7735 {
7736 .eraseblocks = { {4 * 1024, 32} },
7737 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007738 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007739 .eraseblocks = { {64 * 1024, 2} },
7740 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007741 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007742 .eraseblocks = { {128 * 1024, 1} },
7743 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007744 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007745 .eraseblocks = { {128 * 1024, 1} },
7746 .block_erase = spi_block_erase_c7,
7747 },
7748 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007749 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007750 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007751 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007752 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007753 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007754 },
7755
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007756 {
7757 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007758 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007759 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007760 .manufacture_id = MACRONIX_ID,
7761 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007762 .total_size = 256,
7763 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007764 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007765 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007766 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007767 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007768 .block_erasers =
7769 {
7770 {
7771 .eraseblocks = { {4 * 1024, 64} },
7772 .block_erase = spi_block_erase_20,
7773 }, {
7774 .eraseblocks = { {64 * 1024, 4} },
7775 .block_erase = spi_block_erase_52,
7776 }, {
7777 .eraseblocks = { {64 * 1024, 4} },
7778 .block_erase = spi_block_erase_d8,
7779 }, {
7780 .eraseblocks = { {256 * 1024, 1} },
7781 .block_erase = spi_block_erase_60,
7782 }, {
7783 .eraseblocks = { {256 * 1024, 1} },
7784 .block_erase = spi_block_erase_c7,
7785 },
7786 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007787 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007788 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007789 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007790 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007791 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007792 },
7793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007794 {
7795 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007796 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007797 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007798 .manufacture_id = MACRONIX_ID,
7799 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007800 .total_size = 512,
7801 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007802 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007803 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007804 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007805 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007806 .block_erasers =
7807 {
7808 {
7809 .eraseblocks = { {4 * 1024, 128} },
7810 .block_erase = spi_block_erase_20,
7811 }, {
7812 .eraseblocks = { {64 * 1024, 8} },
7813 .block_erase = spi_block_erase_52,
7814 }, {
7815 .eraseblocks = { {64 * 1024, 8} },
7816 .block_erase = spi_block_erase_d8,
7817 }, {
7818 .eraseblocks = { {512 * 1024, 1} },
7819 .block_erase = spi_block_erase_60,
7820 }, {
7821 .eraseblocks = { {512 * 1024, 1} },
7822 .block_erase = spi_block_erase_c7,
7823 },
7824 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007825 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007826 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007827 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007828 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007829 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007830 },
7831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007832 {
7833 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007834 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007835 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007836 .manufacture_id = MACRONIX_ID,
7837 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007838 .total_size = 1024,
7839 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007840 /* MX25L8006E, MX25L8008E support SFDP */
7841 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007842 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007843 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007844 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007845 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007846 .block_erasers =
7847 {
7848 {
7849 .eraseblocks = { {4 * 1024, 256} },
7850 .block_erase = spi_block_erase_20,
7851 }, {
7852 .eraseblocks = { {64 * 1024, 16} },
7853 .block_erase = spi_block_erase_52,
7854 }, {
7855 .eraseblocks = { {64 * 1024, 16} },
7856 .block_erase = spi_block_erase_d8,
7857 }, {
7858 .eraseblocks = { {1024 * 1024, 1} },
7859 .block_erase = spi_block_erase_60,
7860 }, {
7861 .eraseblocks = { {1024 * 1024, 1} },
7862 .block_erase = spi_block_erase_c7,
7863 },
7864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007865 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007866 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007867 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007868 .read = spi_chip_read, /* Fast read (0x0B) supported */
7869 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007870 },
7871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007872 {
7873 .vendor = "Macronix",
7874 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007875 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007876 .manufacture_id = MACRONIX_ID,
7877 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007878 .total_size = 2048,
7879 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007880 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007881 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007882 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007883 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007884 .block_erasers =
7885 {
7886 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007887 .eraseblocks = { {64 * 1024, 32} },
7888 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007889 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007890 .eraseblocks = { {64 * 1024, 32} },
7891 .block_erase = spi_block_erase_d8,
7892 }, {
7893 .eraseblocks = { {2 * 1024 * 1024, 1} },
7894 .block_erase = spi_block_erase_60,
7895 }, {
7896 .eraseblocks = { {2 * 1024 * 1024, 1} },
7897 .block_erase = spi_block_erase_c7,
7898 },
7899 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007900 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007901 .unlock = spi_disable_blockprotect,
7902 .write = spi_chip_write_256,
7903 .read = spi_chip_read, /* Fast read (0x0B) supported */
7904 .voltage = {2700, 3600},
7905 },
7906
7907 {
7908 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007909 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007910 .bustype = BUS_SPI,
7911 .manufacture_id = MACRONIX_ID,
7912 .model_id = MACRONIX_MX25L1605,
7913 .total_size = 2048,
7914 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007915 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7917 .tested = TEST_OK_PREW,
7918 .probe = probe_spi_rdid,
7919 .probe_timing = TIMING_ZERO,
7920 .block_erasers =
7921 {
7922 {
7923 .eraseblocks = { {4 * 1024, 512} },
7924 .block_erase = spi_block_erase_20,
7925 }, {
7926 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007927 .block_erase = spi_block_erase_52,
7928 }, {
7929 .eraseblocks = { {64 * 1024, 32} },
7930 .block_erase = spi_block_erase_d8,
7931 }, {
7932 .eraseblocks = { {2 * 1024 * 1024, 1} },
7933 .block_erase = spi_block_erase_60,
7934 }, {
7935 .eraseblocks = { {2 * 1024 * 1024, 1} },
7936 .block_erase = spi_block_erase_c7,
7937 },
7938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007939 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007940 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007941 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007942 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007943 .voltage = {2700, 3600},
7944 },
7945
7946 {
7947 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007948 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007949 .bustype = BUS_SPI,
7950 .manufacture_id = MACRONIX_ID,
7951 .model_id = MACRONIX_MX25L1605,
7952 .total_size = 2048,
7953 .page_size = 256,
7954 .feature_bits = FEATURE_WRSR_WREN,
7955 .tested = TEST_OK_PREW,
7956 .probe = probe_spi_rdid,
7957 .probe_timing = TIMING_ZERO,
7958 .block_erasers =
7959 {
7960 {
7961 .eraseblocks = { {4 * 1024, 512} },
7962 .block_erase = spi_block_erase_20,
7963 }, {
7964 .eraseblocks = { {64 * 1024, 32} },
7965 .block_erase = spi_block_erase_d8,
7966 }, {
7967 .eraseblocks = { {2 * 1024 * 1024, 1} },
7968 .block_erase = spi_block_erase_60,
7969 }, {
7970 .eraseblocks = { {2 * 1024 * 1024, 1} },
7971 .block_erase = spi_block_erase_c7,
7972 },
7973 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007974 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007975 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007976 .write = spi_chip_write_256,
7977 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007979 },
7980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007981 {
7982 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007983 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007984 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007985 .manufacture_id = MACRONIX_ID,
7986 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007987 .total_size = 2048,
7988 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007989 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007991 .tested = TEST_UNTESTED,
7992 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007993 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007994 .block_erasers =
7995 {
7996 {
7997 .eraseblocks = { {4 * 1024, 512} },
7998 .block_erase = spi_block_erase_20,
7999 }, {
8000 .eraseblocks = { {64 * 1024, 32} },
8001 .block_erase = spi_block_erase_d8,
8002 }, {
8003 .eraseblocks = { {2 * 1024 * 1024, 1} },
8004 .block_erase = spi_block_erase_60,
8005 }, {
8006 .eraseblocks = { {2 * 1024 * 1024, 1} },
8007 .block_erase = spi_block_erase_c7,
8008 }
8009 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008010 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008011 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008012 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008013 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008014 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008015 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008016
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008017 {
8018 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008019 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008020 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008021 .manufacture_id = MACRONIX_ID,
8022 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008023 .total_size = 2048,
8024 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008025 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8026 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008027 .tested = TEST_UNTESTED,
8028 .probe = probe_spi_rdid,
8029 .probe_timing = TIMING_ZERO,
8030 .block_erasers =
8031 {
8032 {
8033 .eraseblocks = { {4 * 1024, 512} },
8034 .block_erase = spi_block_erase_20,
8035 }, {
8036 .eraseblocks = { {64 * 1024, 32} },
8037 .block_erase = spi_block_erase_d8,
8038 }, {
8039 .eraseblocks = { {2 * 1024 * 1024, 1} },
8040 .block_erase = spi_block_erase_60,
8041 }, {
8042 .eraseblocks = { {2 * 1024 * 1024, 1} },
8043 .block_erase = spi_block_erase_c7,
8044 }
8045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008046 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008047 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008048 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008049 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008050 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008051 },
8052
8053 {
8054 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008055 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008056 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008057 .manufacture_id = MACRONIX_ID,
8058 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008059 .total_size = 4096,
8060 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008061 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008062 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008063 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008064 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008065 .block_erasers =
8066 {
8067 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008068 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008069 .block_erase = spi_block_erase_20,
8070 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008071 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008072 .block_erase = spi_block_erase_d8,
8073 }, {
8074 .eraseblocks = { {4 * 1024 * 1024, 1} },
8075 .block_erase = spi_block_erase_60,
8076 }, {
8077 .eraseblocks = { {4 * 1024 * 1024, 1} },
8078 .block_erase = spi_block_erase_c7,
8079 },
8080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008081 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008082 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008083 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008084 .read = spi_chip_read, /* Fast read (0x0B) supported */
8085 .voltage = {2700, 3600},
8086 },
8087
8088 {
8089 .vendor = "Macronix",
8090 .name = "MX25L3205D/MX25L3208D",
8091 .bustype = BUS_SPI,
8092 .manufacture_id = MACRONIX_ID,
8093 .model_id = MACRONIX_MX25L3205,
8094 .total_size = 4096,
8095 .page_size = 256,
8096 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8098 .tested = TEST_OK_PREW,
8099 .probe = probe_spi_rdid,
8100 .probe_timing = TIMING_ZERO,
8101 .block_erasers =
8102 {
8103 {
8104 .eraseblocks = { {4 * 1024, 1024} },
8105 .block_erase = spi_block_erase_20,
8106 }, {
8107 .eraseblocks = { {64 * 1024, 64} },
8108 .block_erase = spi_block_erase_d8,
8109 }, {
8110 .eraseblocks = { {4 * 1024 * 1024, 1} },
8111 .block_erase = spi_block_erase_60,
8112 }, {
8113 .eraseblocks = { {4 * 1024 * 1024, 1} },
8114 .block_erase = spi_block_erase_c7,
8115 },
8116 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008117 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008118 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008119 .write = spi_chip_write_256,
8120 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8121 .voltage = {2700, 3600},
8122 },
8123
8124 {
8125 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008126 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008127 .bustype = BUS_SPI,
8128 .manufacture_id = MACRONIX_ID,
8129 .model_id = MACRONIX_MX25L3205,
8130 .total_size = 4096,
8131 .page_size = 256,
8132 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8134 .tested = TEST_OK_PREW,
8135 .probe = probe_spi_rdid,
8136 .probe_timing = TIMING_ZERO,
8137 .block_erasers =
8138 {
8139 {
8140 .eraseblocks = { {4 * 1024, 1024} },
8141 .block_erase = spi_block_erase_20,
8142 }, {
8143 .eraseblocks = { {64 * 1024, 64} },
8144 .block_erase = spi_block_erase_d8,
8145 }, {
8146 .eraseblocks = { {64 * 1024, 64} },
8147 .block_erase = spi_block_erase_52,
8148 }, {
8149 .eraseblocks = { {4 * 1024 * 1024, 1} },
8150 .block_erase = spi_block_erase_60,
8151 }, {
8152 .eraseblocks = { {4 * 1024 * 1024, 1} },
8153 .block_erase = spi_block_erase_c7,
8154 },
8155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008156 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008157 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008158 .write = spi_chip_write_256,
8159 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008160 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008161 },
8162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008163 {
8164 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008165 .name = "MX25L3273E",
8166 .bustype = BUS_SPI,
8167 .manufacture_id = MACRONIX_ID,
8168 .model_id = MACRONIX_MX25L3205,
8169 .total_size = 4096,
8170 .page_size = 256,
8171 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8172 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008173 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008174 .probe = probe_spi_rdid,
8175 .probe_timing = TIMING_ZERO,
8176 .block_erasers =
8177 {
8178 {
8179 .eraseblocks = { {4 * 1024, 1024} },
8180 .block_erase = spi_block_erase_20,
8181 }, {
8182 .eraseblocks = { {32 * 1024, 128} },
8183 .block_erase = spi_block_erase_52,
8184 }, {
8185 .eraseblocks = { {64 * 1024, 64} },
8186 .block_erase = spi_block_erase_d8,
8187 }, {
8188 .eraseblocks = { {4 * 1024 * 1024, 1} },
8189 .block_erase = spi_block_erase_60,
8190 }, {
8191 .eraseblocks = { {4 * 1024 * 1024, 1} },
8192 .block_erase = spi_block_erase_c7,
8193 },
8194 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008195 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008196 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008197 .write = spi_chip_write_256,
8198 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8199 .voltage = {2700, 3600},
8200 },
8201
8202 {
8203 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008204 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008205 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008206 .manufacture_id = MACRONIX_ID,
8207 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008208 .total_size = 4096,
8209 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008210 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8211 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008212 .tested = TEST_UNTESTED,
8213 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008214 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008215 .block_erasers =
8216 {
8217 {
8218 .eraseblocks = { {4 * 1024, 1024} },
8219 .block_erase = spi_block_erase_20,
8220 }, {
8221 .eraseblocks = { {64 * 1024, 64} },
8222 .block_erase = spi_block_erase_d8,
8223 }, {
8224 .eraseblocks = { {4 * 1024 * 1024, 1} },
8225 .block_erase = spi_block_erase_60,
8226 }, {
8227 .eraseblocks = { {4 * 1024 * 1024, 1} },
8228 .block_erase = spi_block_erase_c7,
8229 }
8230 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008231 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008232 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008233 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008234 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008235 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008236 },
8237
8238 {
8239 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008240 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008241 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008242 .manufacture_id = MACRONIX_ID,
8243 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008244 .total_size = 8192,
8245 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008246 /* Has an additional 512B EEPROM sector */
8247 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008248 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008249 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008250 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008251 .block_erasers =
8252 {
8253 {
8254 .eraseblocks = { {64 * 1024, 128} },
8255 .block_erase = spi_block_erase_20,
8256 }, {
8257 .eraseblocks = { {64 * 1024, 128} },
8258 .block_erase = spi_block_erase_d8,
8259 }, {
8260 .eraseblocks = { {8 * 1024 * 1024, 1} },
8261 .block_erase = spi_block_erase_60,
8262 }, {
8263 .eraseblocks = { {8 * 1024 * 1024, 1} },
8264 .block_erase = spi_block_erase_c7,
8265 }
8266 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008267 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008268 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008269 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008270 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008271 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008272 },
8273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008274 {
8275 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008276 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008277 .bustype = BUS_SPI,
8278 .manufacture_id = MACRONIX_ID,
8279 .model_id = MACRONIX_MX25L6405,
8280 .total_size = 8192,
8281 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008282 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8284 .tested = TEST_OK_PREW,
8285 .probe = probe_spi_rdid,
8286 .probe_timing = TIMING_ZERO,
8287 .block_erasers =
8288 {
8289 {
8290 .eraseblocks = { {4 * 1024, 2048} },
8291 .block_erase = spi_block_erase_20,
8292 }, {
8293 .eraseblocks = { {64 * 1024, 128} },
8294 .block_erase = spi_block_erase_d8,
8295 }, {
8296 .eraseblocks = { {8 * 1024 * 1024, 1} },
8297 .block_erase = spi_block_erase_60,
8298 }, {
8299 .eraseblocks = { {8 * 1024 * 1024, 1} },
8300 .block_erase = spi_block_erase_c7,
8301 }
8302 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008303 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008304 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008305 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008306 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008307 .voltage = {2700, 3600},
8308 },
8309
8310 {
8311 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008312 .name = "MX25L6406E/MX25L6408E",
8313 .bustype = BUS_SPI,
8314 .manufacture_id = MACRONIX_ID,
8315 .model_id = MACRONIX_MX25L6405,
8316 .total_size = 8192,
8317 .page_size = 256,
8318 /* MX25L6406E supports SFDP */
8319 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8321 .tested = TEST_OK_PREW,
8322 .probe = probe_spi_rdid,
8323 .probe_timing = TIMING_ZERO,
8324 .block_erasers =
8325 {
8326 {
8327 .eraseblocks = { {4 * 1024, 2048} },
8328 .block_erase = spi_block_erase_20,
8329 }, {
8330 .eraseblocks = { {64 * 1024, 128} },
8331 .block_erase = spi_block_erase_52,
8332 }, {
8333 .eraseblocks = { {64 * 1024, 128} },
8334 .block_erase = spi_block_erase_d8,
8335 }, {
8336 .eraseblocks = { {8 * 1024 * 1024, 1} },
8337 .block_erase = spi_block_erase_60,
8338 }, {
8339 .eraseblocks = { {8 * 1024 * 1024, 1} },
8340 .block_erase = spi_block_erase_c7,
8341 }
8342 },
8343 .printlock = spi_prettyprint_status_register_bp3_srwd,
8344 .unlock = spi_disable_blockprotect_bp3_srwd,
8345 .write = spi_chip_write_256,
8346 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8347 .voltage = {2700, 3600},
8348 },
8349
8350 {
8351 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008352 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008353 .bustype = BUS_SPI,
8354 .manufacture_id = MACRONIX_ID,
8355 .model_id = MACRONIX_MX25L6405,
8356 .total_size = 8192,
8357 .page_size = 256,
8358 /* supports SFDP */
8359 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8361 .tested = TEST_OK_PREW,
8362 .probe = probe_spi_rdid,
8363 .probe_timing = TIMING_ZERO,
8364 .block_erasers =
8365 {
8366 {
8367 .eraseblocks = { {4 * 1024, 2048} },
8368 .block_erase = spi_block_erase_20,
8369 }, {
8370 .eraseblocks = { {32 * 1024, 256} },
8371 .block_erase = spi_block_erase_52,
8372 }, {
8373 .eraseblocks = { {64 * 1024, 128} },
8374 .block_erase = spi_block_erase_d8,
8375 }, {
8376 .eraseblocks = { {8 * 1024 * 1024, 1} },
8377 .block_erase = spi_block_erase_60,
8378 }, {
8379 .eraseblocks = { {8 * 1024 * 1024, 1} },
8380 .block_erase = spi_block_erase_c7,
8381 }
8382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008383 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008384 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008385 .write = spi_chip_write_256,
8386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8387 .voltage = {2700, 3600},
8388 },
8389
8390 {
8391 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008392 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008393 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008394 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008395 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008396 .total_size = 16384,
8397 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008398 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008400 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008402 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {4 * 1024, 4096} },
8407 .block_erase = spi_block_erase_20,
8408 }, {
8409 .eraseblocks = { {64 * 1024, 256} },
8410 .block_erase = spi_block_erase_d8,
8411 }, {
8412 .eraseblocks = { {16 * 1024 * 1024, 1} },
8413 .block_erase = spi_block_erase_60,
8414 }, {
8415 .eraseblocks = { {16 * 1024 * 1024, 1} },
8416 .block_erase = spi_block_erase_c7,
8417 }
8418 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008419 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008420 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008421 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008422 .read = spi_chip_read, /* Fast read (0x0B) supported */
8423 .voltage = {2700, 3600},
8424 },
8425
8426 {
8427 .vendor = "Macronix",
8428 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8429 .bustype = BUS_SPI,
8430 .manufacture_id = MACRONIX_ID,
8431 .model_id = MACRONIX_MX25L12805D,
8432 .total_size = 16384,
8433 .page_size = 256,
8434 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8435 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8436 .tested = TEST_OK_PREW,
8437 .probe = probe_spi_rdid,
8438 .probe_timing = TIMING_ZERO,
8439 .block_erasers =
8440 {
8441 {
8442 .eraseblocks = { {4 * 1024, 4096} },
8443 .block_erase = spi_block_erase_20,
8444 }, {
8445 .eraseblocks = { {32 * 1024, 512} },
8446 .block_erase = spi_block_erase_52,
8447 }, {
8448 .eraseblocks = { {64 * 1024, 256} },
8449 .block_erase = spi_block_erase_d8,
8450 }, {
8451 .eraseblocks = { {16 * 1024 * 1024, 1} },
8452 .block_erase = spi_block_erase_60,
8453 }, {
8454 .eraseblocks = { {16 * 1024 * 1024, 1} },
8455 .block_erase = spi_block_erase_c7,
8456 }
8457 },
8458 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8459 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8460 .unlock = spi_disable_blockprotect_bp3_srwd,
8461 .write = spi_chip_write_256,
8462 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008463 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008464 },
8465
8466 {
8467 .vendor = "Macronix",
Nico Huberaac81422017-11-10 22:54:13 +01008468 .name = "MX25L25635F",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008469 .bustype = BUS_SPI,
8470 .manufacture_id = MACRONIX_ID,
8471 .model_id = MACRONIX_MX25L25635F,
8472 .total_size = 32768,
8473 .page_size = 256,
8474 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008475 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Kasper Revsbechf56607e2018-10-19 23:59:17 +02008476 .tested = TEST_OK_PREW,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008477 .probe = probe_spi_rdid,
8478 .probe_timing = TIMING_ZERO,
8479 .block_erasers =
8480 {
8481 {
8482 .eraseblocks = { {4 * 1024, 8192} },
Nico Huberaac81422017-11-10 22:54:13 +01008483 .block_erase = spi_block_erase_21,
8484 }, {
8485 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008486 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008487 }, {
8488 .eraseblocks = { {32 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008489 .block_erase = spi_block_erase_5c,
8490 }, {
8491 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008492 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008493 }, {
8494 .eraseblocks = { {64 * 1024, 512} },
Nico Huberaac81422017-11-10 22:54:13 +01008495 .block_erase = spi_block_erase_dc,
8496 }, {
8497 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008498 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008499 }, {
8500 .eraseblocks = { {32 * 1024 * 1024, 1} },
8501 .block_erase = spi_block_erase_60,
8502 }, {
8503 .eraseblocks = { {32 * 1024 * 1024, 1} },
8504 .block_erase = spi_block_erase_c7,
8505 }
8506 },
8507 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8508 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8509 .unlock = spi_disable_blockprotect_bp3_srwd,
8510 .write = spi_chip_write_256,
8511 .read = spi_chip_read, /* Fast read (0x0B) supported */
8512 .voltage = {2700, 3600},
8513 },
8514
8515 {
8516 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008517 .name = "MX66L51235F",
8518 .bustype = BUS_SPI,
8519 .manufacture_id = MACRONIX_ID,
8520 .model_id = MACRONIX_MX66L51235F,
8521 .total_size = 65536,
8522 .page_size = 256,
8523 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Angel Pons09dddd82018-09-30 19:23:43 +02008525 .tested = TEST_OK_PREW,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008526 .probe = probe_spi_rdid,
8527 .probe_timing = TIMING_ZERO,
8528 .block_erasers =
8529 {
8530 {
8531 .eraseblocks = { {4 * 1024, 16384} },
Nico Huberaac81422017-11-10 22:54:13 +01008532 .block_erase = spi_block_erase_21,
8533 }, {
8534 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008535 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008536 }, {
8537 .eraseblocks = { {32 * 1024, 2048} },
Nico Huberaac81422017-11-10 22:54:13 +01008538 .block_erase = spi_block_erase_5c,
8539 }, {
8540 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008541 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008542 }, {
8543 .eraseblocks = { {64 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008544 .block_erase = spi_block_erase_dc,
8545 }, {
8546 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008547 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008548 }, {
8549 .eraseblocks = { {64 * 1024 * 1024, 1} },
8550 .block_erase = spi_block_erase_60,
8551 }, {
8552 .eraseblocks = { {64 * 1024 * 1024, 1} },
8553 .block_erase = spi_block_erase_c7,
8554 }
8555 },
8556 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8557 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8558 .unlock = spi_disable_blockprotect_bp3_srwd,
8559 .write = spi_chip_write_256,
8560 .read = spi_chip_read, /* Fast read (0x0B) supported */
8561 .voltage = {2700, 3600},
8562 },
8563
8564 {
8565 .vendor = "Macronix",
Angel Ponsf112e242018-09-30 20:14:17 +02008566 .name = "MX25U8032E",
8567 .bustype = BUS_SPI,
8568 .manufacture_id = MACRONIX_ID,
8569 .model_id = MACRONIX_MX25U8032E,
8570 .total_size = 1024,
8571 .page_size = 256,
8572 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8574 .tested = TEST_OK_PREW,
8575 .probe = probe_spi_rdid,
8576 .probe_timing = TIMING_ZERO,
8577 .block_erasers =
8578 {
8579 {
8580 .eraseblocks = { {4 * 1024, 256} },
8581 .block_erase = spi_block_erase_20,
8582 }, {
8583 .eraseblocks = { {32 * 1024, 32} },
8584 .block_erase = spi_block_erase_52,
8585 }, {
8586 .eraseblocks = { {64 * 1024, 16} },
8587 .block_erase = spi_block_erase_d8,
8588 }, {
8589 .eraseblocks = { {1024 * 1024, 1} },
8590 .block_erase = spi_block_erase_60,
8591 }, {
8592 .eraseblocks = { {1024 * 1024, 1} },
8593 .block_erase = spi_block_erase_c7,
8594 }
8595 },
8596 /* TODO: security register */
8597 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8598 .unlock = spi_disable_blockprotect_bp3_srwd,
8599 .write = spi_chip_write_256,
8600 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8601 .voltage = {1650, 2000},
8602 },
8603
8604 {
8605 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008606 .name = "MX25U1635E",
8607 .bustype = BUS_SPI,
8608 .manufacture_id = MACRONIX_ID,
8609 .model_id = MACRONIX_MX25U1635E,
8610 .total_size = 2048,
8611 .page_size = 256,
8612 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8613 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8614 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008615 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008616 .probe = probe_spi_rdid,
8617 .probe_timing = TIMING_ZERO,
8618 .block_erasers =
8619 {
8620 {
8621 .eraseblocks = { {4 * 1024, 512} },
8622 .block_erase = spi_block_erase_20,
8623 }, {
8624 .eraseblocks = { {32 * 1024, 64} },
8625 .block_erase = spi_block_erase_52,
8626 }, {
8627 .eraseblocks = { {64 * 1024, 32} },
8628 .block_erase = spi_block_erase_d8,
8629 }, {
8630 .eraseblocks = { {2 * 1024 * 1024, 1} },
8631 .block_erase = spi_block_erase_60,
8632 }, {
8633 .eraseblocks = { {2 * 1024 * 1024, 1} },
8634 .block_erase = spi_block_erase_c7,
8635 }
8636 },
8637 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008638 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008639 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008640 .write = spi_chip_write_256,
8641 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8642 .voltage = {1650, 2000},
8643 },
8644
8645 {
8646 .vendor = "Macronix",
8647 .name = "MX25U3235E/F",
8648 .bustype = BUS_SPI,
8649 .manufacture_id = MACRONIX_ID,
8650 .model_id = MACRONIX_MX25U3235E,
8651 .total_size = 4096,
8652 .page_size = 256,
8653 /* F model supports SFDP */
8654 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8655 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8656 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8657 .tested = TEST_OK_PREW,
8658 .probe = probe_spi_rdid,
8659 .probe_timing = TIMING_ZERO,
8660 .block_erasers =
8661 {
8662 {
8663 .eraseblocks = { {4 * 1024, 1024} },
8664 .block_erase = spi_block_erase_20,
8665 }, {
8666 .eraseblocks = { {32 * 1024, 128} },
8667 .block_erase = spi_block_erase_52,
8668 }, {
8669 .eraseblocks = { {64 * 1024, 64} },
8670 .block_erase = spi_block_erase_d8,
8671 }, {
8672 .eraseblocks = { {4 * 1024 * 1024, 1} },
8673 .block_erase = spi_block_erase_60,
8674 }, {
8675 .eraseblocks = { {4 * 1024 * 1024, 1} },
8676 .block_erase = spi_block_erase_c7,
8677 }
8678 },
8679 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008680 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008681 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008682 .write = spi_chip_write_256,
8683 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8684 .voltage = {1650, 2000},
8685 },
8686
8687 {
8688 .vendor = "Macronix",
8689 .name = "MX25U6435E/F",
8690 .bustype = BUS_SPI,
8691 .manufacture_id = MACRONIX_ID,
8692 .model_id = MACRONIX_MX25U6435E,
8693 .total_size = 8192,
8694 .page_size = 256,
8695 /* F model supports SFDP */
8696 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8697 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8698 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008699 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008700 .probe = probe_spi_rdid,
8701 .probe_timing = TIMING_ZERO,
8702 .block_erasers =
8703 {
8704 {
8705 .eraseblocks = { {4 * 1024, 2048} },
8706 .block_erase = spi_block_erase_20,
8707 }, {
8708 .eraseblocks = { {32 * 1024, 256} },
8709 .block_erase = spi_block_erase_52,
8710 }, {
8711 .eraseblocks = { {64 * 1024, 128} },
8712 .block_erase = spi_block_erase_d8,
8713 }, {
8714 .eraseblocks = { {8 * 1024 * 1024, 1} },
8715 .block_erase = spi_block_erase_60,
8716 }, {
8717 .eraseblocks = { {8 * 1024 * 1024, 1} },
8718 .block_erase = spi_block_erase_c7,
8719 }
8720 },
8721 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008722 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008723 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008724 .write = spi_chip_write_256,
8725 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8726 .voltage = {1650, 2000},
8727 },
8728
8729 {
8730 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008731 .name = "MX25U12835F",
8732 .bustype = BUS_SPI,
8733 .manufacture_id = MACRONIX_ID,
8734 .model_id = MACRONIX_MX25U12835E,
8735 .total_size = 16384,
8736 .page_size = 256,
8737 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Pons471da832018-09-30 17:29:48 +02008739 .tested = TEST_OK_PREW,
Martin Roth440057a2014-07-13 00:05:07 +00008740 .probe = probe_spi_rdid,
8741 .probe_timing = TIMING_ZERO,
8742 .block_erasers =
8743 {
8744 {
8745 .eraseblocks = { {4 * 1024, 4096} },
8746 .block_erase = spi_block_erase_20,
8747 }, {
8748 .eraseblocks = { {32 * 1024, 512} },
8749 .block_erase = spi_block_erase_52,
8750 }, {
8751 .eraseblocks = { {64 * 1024, 256} },
8752 .block_erase = spi_block_erase_d8,
8753 }, {
8754 .eraseblocks = { {16 * 1024 * 1024, 1} },
8755 .block_erase = spi_block_erase_60,
8756 }, {
8757 .eraseblocks = { {16 * 1024 * 1024, 1} },
8758 .block_erase = spi_block_erase_c7,
8759 }
8760 },
8761 /* TODO: security register */
8762 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8763 .unlock = spi_disable_blockprotect_bp3_srwd,
8764 .write = spi_chip_write_256, /* Multi I/O supported */
8765 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8766 .voltage = {1650, 2000},
8767 },
8768
8769 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008770 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008771 .name = "MX25U51245G",
8772 .bustype = BUS_SPI,
8773 .manufacture_id = MACRONIX_ID,
8774 .model_id = MACRONIX_MX25U51245G,
8775 .total_size = 65536,
8776 .page_size = 256,
8777 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8779 .tested = TEST_OK_PREW,
8780 .probe = probe_spi_rdid,
8781 .probe_timing = TIMING_ZERO,
8782 .block_erasers =
8783 {
8784 {
8785 .eraseblocks = { {4 * 1024, 16384} },
8786 .block_erase = spi_block_erase_21,
8787 }, {
8788 .eraseblocks = { {4 * 1024, 16384} },
8789 .block_erase = spi_block_erase_20,
8790 }, {
8791 .eraseblocks = { {32 * 1024, 2048} },
8792 .block_erase = spi_block_erase_5c,
8793 }, {
8794 .eraseblocks = { {32 * 1024, 2048} },
8795 .block_erase = spi_block_erase_52,
8796 }, {
8797 .eraseblocks = { {64 * 1024, 1024} },
8798 .block_erase = spi_block_erase_dc,
8799 }, {
8800 .eraseblocks = { {64 * 1024, 1024} },
8801 .block_erase = spi_block_erase_d8,
8802 }, {
8803 .eraseblocks = { {64 * 1024 * 1024, 1} },
8804 .block_erase = spi_block_erase_60,
8805 }, {
8806 .eraseblocks = { {64 * 1024 * 1024, 1} },
8807 .block_erase = spi_block_erase_c7,
8808 }
8809 },
8810 /* TODO: security register */
8811 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8812 .unlock = spi_disable_blockprotect_bp3_srwd,
8813 .write = spi_chip_write_256, /* Multi I/O supported */
8814 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8815 .voltage = {1650, 2000},
8816 },
8817
8818 {
8819 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008820 .name = "MX25L6495F",
8821 .bustype = BUS_SPI,
8822 .manufacture_id = MACRONIX_ID,
8823 .model_id = MACRONIX_MX25L6495F,
8824 .total_size = 8192,
8825 .page_size = 256,
8826 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8828 .tested = TEST_OK_PREW,
8829 .probe = probe_spi_rdid,
8830 .probe_timing = TIMING_ZERO,
8831 .block_erasers =
8832 {
8833 {
8834 .eraseblocks = { {4 * 1024, 2048} },
8835 .block_erase = spi_block_erase_20,
8836 }, {
8837 .eraseblocks = { {64 * 1024, 128} },
8838 .block_erase = spi_block_erase_d8,
8839 }, {
8840 .eraseblocks = { {32 * 1024, 256} },
8841 .block_erase = spi_block_erase_52,
8842 }, {
8843 .eraseblocks = { {8 * 1024 * 1024, 1} },
8844 .block_erase = spi_block_erase_60,
8845 }, {
8846 .eraseblocks = { {8 * 1024 * 1024, 1} },
8847 .block_erase = spi_block_erase_c7,
8848 }
8849 },
8850 .unlock = spi_disable_blockprotect,
8851 .write = spi_chip_write_256,
8852 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8853 .voltage = {2700, 3600},
8854 },
8855
8856 {
Martin Roth440057a2014-07-13 00:05:07 +00008857 .vendor = "Macronix",
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01008858 .name = "MX25R6435F",
8859 .bustype = BUS_SPI,
8860 .manufacture_id = MACRONIX_ID,
8861 .model_id = MACRONIX_MX25R6435F,
8862 .total_size = 8192,
8863 .page_size = 256,
8864 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8865 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8866 .tested = TEST_OK_PREW,
8867 .probe = probe_spi_rdid,
8868 .probe_timing = TIMING_ZERO,
8869 .block_erasers =
8870 {
8871 {
8872 .eraseblocks = { {4 * 1024, 2048} },
8873 .block_erase = spi_block_erase_20,
8874 }, {
8875 .eraseblocks = { {64 * 1024, 128} },
8876 .block_erase = spi_block_erase_d8,
8877 }, {
8878 .eraseblocks = { {32 * 1024, 256} },
8879 .block_erase = spi_block_erase_52,
8880 }, {
8881 .eraseblocks = { {8 * 1024 * 1024, 1} },
8882 .block_erase = spi_block_erase_60,
8883 }, {
8884 .eraseblocks = { {8 * 1024 * 1024, 1} },
8885 .block_erase = spi_block_erase_c7,
8886 }
8887 },
8888 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8889 .unlock = spi_disable_blockprotect_bp3_srwd,
8890 .write = spi_chip_write_256,
8891 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8892 .voltage = {1650, 3600},
8893 },
8894
8895 {
8896 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008897 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008898 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008899 .manufacture_id = MACRONIX_ID,
8900 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008901 .total_size = 128,
8902 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8904 .tested = TEST_UNTESTED,
8905 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008907 .block_erasers =
8908 {
8909 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008910 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008911 {8 * 1024, 1},
8912 {4 * 1024, 2},
8913 {8 * 1024, 2},
8914 {32 * 1024, 1},
8915 {64 * 1024, 1},
8916 },
Sean Nelson35727f72010-01-28 23:55:12 +00008917 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008918 }, {
8919 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008920 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008921 }
8922 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008923 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008925 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008926 },
8927
8928 {
8929 .vendor = "Macronix",
8930 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008931 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008932 .manufacture_id = MACRONIX_ID,
8933 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008934 .total_size = 128,
8935 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008936 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008937 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008938 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008939 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008940 .block_erasers =
8941 {
8942 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008943 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008944 {64 * 1024, 1},
8945 {32 * 1024, 1},
8946 {8 * 1024, 2},
8947 {4 * 1024, 2},
8948 {8 * 1024, 1},
8949 },
Sean Nelson35727f72010-01-28 23:55:12 +00008950 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008951 }, {
8952 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008953 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008954 }
8955 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008956 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008958 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008959 },
8960
8961 {
8962 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008963 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008964 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008965 .manufacture_id = MACRONIX_ID,
8966 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 .total_size = 256,
8968 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008969 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008970 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008971 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008972 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008973 .block_erasers =
8974 {
8975 {
8976 .eraseblocks = {
8977 {16 * 1024, 1},
8978 {8 * 1024, 2},
8979 {32 * 1024, 1},
8980 {64 * 1024, 3},
8981 },
Sean Nelson35727f72010-01-28 23:55:12 +00008982 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008983 }, {
8984 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008985 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008986 },
8987 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008988 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008989 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008990 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008991 },
8992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008993 {
8994 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008995 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008996 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008997 .manufacture_id = MACRONIX_ID,
8998 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008999 .total_size = 256,
9000 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009001 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009002 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009003 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009004 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009005 .block_erasers =
9006 {
9007 {
9008 .eraseblocks = {
9009 {64 * 1024, 3},
9010 {32 * 1024, 1},
9011 {8 * 1024, 2},
9012 {16 * 1024, 1},
9013 },
Sean Nelson35727f72010-01-28 23:55:12 +00009014 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009015 }, {
9016 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009017 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009018 },
9019 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009020 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009022 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009023 },
9024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009025 {
9026 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009027 .name = "MX29F022(N)B",
9028 .bustype = BUS_PARALLEL,
9029 .manufacture_id = MACRONIX_ID,
9030 .model_id = MACRONIX_MX29F022B,
9031 .total_size = 256,
9032 .page_size = 0, /* unused */
9033 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9034 .tested = TEST_UNTESTED,
9035 .probe = probe_jedec,
9036 .probe_timing = TIMING_ZERO,
9037 .block_erasers =
9038 {
9039 {
9040 .eraseblocks = {
9041 {16 * 1024, 1},
9042 {8 * 1024, 2},
9043 {32 * 1024, 1},
9044 {64 * 1024, 3},
9045 },
9046 .block_erase = erase_sector_jedec,
9047 }, {
9048 .eraseblocks = { {256 * 1024, 1} },
9049 .block_erase = erase_chip_block_jedec,
9050 }
9051 },
9052 .write = write_jedec_1,
9053 .read = read_memmapped,
9054 .voltage = {4500, 5500},
9055 },
9056
9057 {
9058 .vendor = "Macronix",
9059 .name = "MX29F022(N)T",
9060 .bustype = BUS_PARALLEL,
9061 .manufacture_id = MACRONIX_ID,
9062 .model_id = MACRONIX_MX29F022T,
9063 .total_size = 256,
9064 .page_size = 0, /* unused */
9065 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9066 .tested = TEST_OK_PREW,
9067 .probe = probe_jedec,
9068 .probe_timing = TIMING_ZERO,
9069 .block_erasers =
9070 {
9071 {
9072 .eraseblocks = {
9073 {64 * 1024, 3},
9074 {32 * 1024, 1},
9075 {8 * 1024, 2},
9076 {16 * 1024, 1},
9077 },
9078 .block_erase = erase_sector_jedec,
9079 }, {
9080 .eraseblocks = { {256 * 1024, 1} },
9081 .block_erase = erase_chip_block_jedec,
9082 }
9083 },
9084 .write = write_jedec_1,
9085 .read = read_memmapped,
9086 .voltage = {4500, 5500},
9087 },
9088
9089 {
9090 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009091 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009092 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009093 .manufacture_id = MACRONIX_ID,
9094 .model_id = MACRONIX_MX29F040,
9095 .total_size = 512,
9096 .page_size = 64 * 1024,
9097 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9098 .tested = TEST_UNTESTED,
9099 .probe = probe_jedec,
9100 .probe_timing = TIMING_ZERO,
9101 .block_erasers =
9102 {
9103 {
9104 .eraseblocks = { {64 * 1024, 8} },
9105 .block_erase = erase_sector_jedec,
9106 }, {
9107 .eraseblocks = { {512 * 1024, 1} },
9108 .block_erase = erase_chip_block_jedec,
9109 },
9110 },
9111 .write = write_jedec_1,
9112 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009113 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009114 },
9115
9116 {
9117 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009118 .name = "MX29GL320EB",
9119 .bustype = BUS_PARALLEL,
9120 .manufacture_id = MACRONIX_ID,
9121 .model_id = MACRONIX_MX29GL320EB,
9122 .total_size = 4096,
9123 .page_size = 128 * 1024, /* actual page size is 16 */
9124 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9125 .tested = TEST_UNTESTED,
9126 .probe = probe_jedec_29gl,
9127 .probe_timing = TIMING_ZERO,
9128 .block_erasers =
9129 {
9130 {
9131 .eraseblocks = {
9132 {8 * 1024, 8},
9133 {64 * 1024, 63},
9134 },
9135 .block_erase = erase_sector_jedec,
9136 }, {
9137 .eraseblocks = { {4 * 1024 * 1024, 1} },
9138 .block_erase = erase_chip_block_jedec,
9139 },
9140 },
9141 .write = write_jedec_1,
9142 .read = read_memmapped,
9143 .voltage = {2700, 3600},
9144 },
9145
9146 {
9147 .vendor = "Macronix",
9148 .name = "MX29GL320ET",
9149 .bustype = BUS_PARALLEL,
9150 .manufacture_id = MACRONIX_ID,
9151 .model_id = MACRONIX_MX29GL320ET,
9152 .total_size = 4096,
9153 .page_size = 128 * 1024, /* actual page size is 16 */
9154 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9155 .tested = TEST_UNTESTED,
9156 .probe = probe_jedec_29gl,
9157 .probe_timing = TIMING_ZERO,
9158 .block_erasers =
9159 {
9160 {
9161 .eraseblocks = {
9162 {64 * 1024, 63},
9163 {8 * 1024, 8},
9164 },
9165 .block_erase = erase_sector_jedec,
9166 }, {
9167 .eraseblocks = { {4 * 1024 * 1024, 1} },
9168 .block_erase = erase_chip_block_jedec,
9169 },
9170 },
9171 .write = write_jedec_1,
9172 .read = read_memmapped,
9173 .voltage = {2700, 3600},
9174 },
9175
9176 {
9177 .vendor = "Macronix",
9178 .name = "MX29GL320EH/L",
9179 .bustype = BUS_PARALLEL,
9180 .manufacture_id = MACRONIX_ID,
9181 .model_id = MACRONIX_MX29GL320EHL,
9182 .total_size = 4096,
9183 .page_size = 128 * 1024, /* actual page size is 16 */
9184 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9185 .tested = TEST_UNTESTED,
9186 .probe = probe_jedec_29gl,
9187 .probe_timing = TIMING_ZERO,
9188 .block_erasers =
9189 {
9190 {
9191 .eraseblocks = { {64 * 1024, 64} },
9192 .block_erase = erase_sector_jedec,
9193 }, {
9194 .eraseblocks = { {4 * 1024 * 1024, 1} },
9195 .block_erase = erase_chip_block_jedec,
9196 },
9197 },
9198 .write = write_jedec_1,
9199 .read = read_memmapped,
9200 .voltage = {2700, 3600},
9201 },
9202
9203 {
9204 .vendor = "Macronix",
9205 .name = "MX29GL640EB",
9206 .bustype = BUS_PARALLEL,
9207 .manufacture_id = MACRONIX_ID,
9208 .model_id = MACRONIX_MX29GL640EB,
9209 .total_size = 8192,
9210 .page_size = 128 * 1024, /* actual page size is 16 */
9211 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9212 .tested = TEST_UNTESTED,
9213 .probe = probe_jedec_29gl,
9214 .probe_timing = TIMING_ZERO,
9215 .block_erasers =
9216 {
9217 {
9218 .eraseblocks = {
9219 {8 * 1024, 8},
9220 {64 * 1024, 127},
9221 },
9222 .block_erase = erase_sector_jedec,
9223 }, {
9224 .eraseblocks = { {8 * 1024 * 1024, 1} },
9225 .block_erase = erase_chip_block_jedec,
9226 },
9227 },
9228 .write = write_jedec_1,
9229 .read = read_memmapped,
9230 .voltage = {2700, 3600},
9231 },
9232
9233 {
9234 .vendor = "Macronix",
9235 .name = "MX29GL640ET",
9236 .bustype = BUS_PARALLEL,
9237 .manufacture_id = MACRONIX_ID,
9238 .model_id = MACRONIX_MX29GL640ET,
9239 .total_size = 8192,
9240 .page_size = 128 * 1024, /* actual page size is 16 */
9241 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9242 .tested = TEST_UNTESTED,
9243 .probe = probe_jedec_29gl,
9244 .probe_timing = TIMING_ZERO,
9245 .block_erasers =
9246 {
9247 {
9248 .eraseblocks = {
9249 {64 * 1024, 127},
9250 {8 * 1024, 8},
9251 },
9252 .block_erase = erase_sector_jedec,
9253 }, {
9254 .eraseblocks = { {8 * 1024 * 1024, 1} },
9255 .block_erase = erase_chip_block_jedec,
9256 },
9257 },
9258 .write = write_jedec_1,
9259 .read = read_memmapped,
9260 .voltage = {2700, 3600},
9261 },
9262
9263 {
9264 .vendor = "Macronix",
9265 .name = "MX29GL640EH/L",
9266 .bustype = BUS_PARALLEL,
9267 .manufacture_id = MACRONIX_ID,
9268 .model_id = MACRONIX_MX29GL640EHL,
9269 .total_size = 8192,
9270 .page_size = 128 * 1024, /* actual page size is 16 */
9271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9272 .tested = TEST_UNTESTED,
9273 .probe = probe_jedec_29gl,
9274 .probe_timing = TIMING_ZERO,
9275 .block_erasers =
9276 {
9277 {
9278 .eraseblocks = { {64 * 1024, 128} },
9279 .block_erase = erase_sector_jedec,
9280 }, {
9281 .eraseblocks = { {8 * 1024 * 1024, 1} },
9282 .block_erase = erase_chip_block_jedec,
9283 },
9284 },
9285 .write = write_jedec_1,
9286 .read = read_memmapped,
9287 .voltage = {2700, 3600},
9288 },
9289
9290 {
9291 .vendor = "Macronix",
9292 .name = "MX29GL128F",
9293 .bustype = BUS_PARALLEL,
9294 .manufacture_id = MACRONIX_ID,
9295 .model_id = MACRONIX_MX29GL128F,
9296 .total_size = 16384,
9297 .page_size = 128 * 1024, /* actual page size is 16 */
9298 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9299 .tested = TEST_UNTESTED,
9300 .probe = probe_jedec_29gl,
9301 .probe_timing = TIMING_ZERO,
9302 .block_erasers =
9303 {
9304 {
9305 .eraseblocks = { {128 * 1024, 128} },
9306 .block_erase = erase_sector_jedec,
9307 }, {
9308 .eraseblocks = { {16 * 1024 * 1024, 1} },
9309 .block_erase = erase_chip_block_jedec,
9310 },
9311 },
9312 .write = write_jedec_1,
9313 .read = read_memmapped,
9314 .voltage = {2700, 3600},
9315 },
9316
9317 {
9318 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009319 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009320 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009321 .manufacture_id = MACRONIX_ID,
9322 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009323 .total_size = 512,
9324 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9326 .tested = TEST_UNTESTED,
9327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009328 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009329 .block_erasers =
9330 {
9331 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009332 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009333 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009334 }, {
9335 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009336 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009337 },
9338 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009339 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009341 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009342 },
9343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009344 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009345 .vendor = "Micron/Numonyx/ST",
9346 .name = "M25P05-A",
9347 .bustype = BUS_SPI,
9348 .manufacture_id = ST_ID,
9349 .model_id = ST_M25P05A,
9350 .total_size = 64,
9351 .page_size = 256,
9352 .feature_bits = FEATURE_WRSR_WREN,
9353 .tested = TEST_OK_PREW,
9354 .probe = probe_spi_rdid,
9355 .probe_timing = TIMING_ZERO,
9356 .block_erasers =
9357 {
9358 {
9359 .eraseblocks = { {32 * 1024, 2} },
9360 .block_erase = spi_block_erase_d8,
9361 }, {
9362 .eraseblocks = { {64 * 1024, 1} },
9363 .block_erase = spi_block_erase_c7,
9364 }
9365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009366 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009367 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009368 .write = spi_chip_write_256,
9369 .read = spi_chip_read,
9370 .voltage = {2700, 3600},
9371 },
9372
9373 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9374 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9375 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9376 * only is successful if RDID does not work.
9377 */
9378 {
9379 .vendor = "Micron/Numonyx/ST",
9380 .name = "M25P05",
9381 .bustype = BUS_SPI,
9382 .manufacture_id = 0, /* Not used. */
9383 .model_id = ST_M25P05_RES,
9384 .total_size = 64,
9385 .page_size = 256,
9386 .feature_bits = FEATURE_WRSR_WREN,
9387 .tested = TEST_UNTESTED,
9388 .probe = probe_spi_res1,
9389 .probe_timing = TIMING_ZERO,
9390 .block_erasers =
9391 {
9392 {
9393 .eraseblocks = { {32 * 1024, 2} },
9394 .block_erase = spi_block_erase_d8,
9395 }, {
9396 .eraseblocks = { {64 * 1024, 1} },
9397 .block_erase = spi_block_erase_c7,
9398 }
9399 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009400 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009401 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009402 .write = spi_chip_write_1, /* 128 */
9403 .read = spi_chip_read,
9404 .voltage = {2700, 3600},
9405 },
9406
9407 {
9408 .vendor = "Micron/Numonyx/ST",
9409 .name = "M25P10-A",
9410 .bustype = BUS_SPI,
9411 .manufacture_id = ST_ID,
9412 .model_id = ST_M25P10A,
9413 .total_size = 128,
9414 .page_size = 256,
9415 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009416 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009417 .probe = probe_spi_rdid,
9418 .probe_timing = TIMING_ZERO,
9419 .block_erasers =
9420 {
9421 {
9422 .eraseblocks = { {32 * 1024, 4} },
9423 .block_erase = spi_block_erase_d8,
9424 }, {
9425 .eraseblocks = { {128 * 1024, 1} },
9426 .block_erase = spi_block_erase_c7,
9427 }
9428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009429 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009430 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009431 .write = spi_chip_write_256,
9432 .read = spi_chip_read,
9433 .voltage = {2700, 3600},
9434 },
9435
9436 /* The ST M25P10 has the same problem as the M25P05. */
9437 {
9438 .vendor = "Micron/Numonyx/ST",
9439 .name = "M25P10",
9440 .bustype = BUS_SPI,
9441 .manufacture_id = 0, /* Not used. */
9442 .model_id = ST_M25P10_RES,
9443 .total_size = 128,
9444 .page_size = 256,
9445 .feature_bits = FEATURE_WRSR_WREN,
9446 .tested = TEST_UNTESTED,
9447 .probe = probe_spi_res1,
9448 .probe_timing = TIMING_ZERO,
9449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { {32 * 1024, 4} },
9453 .block_erase = spi_block_erase_d8,
9454 }, {
9455 .eraseblocks = { {128 * 1024, 1} },
9456 .block_erase = spi_block_erase_c7,
9457 }
9458 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009459 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009460 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009461 .write = spi_chip_write_1, /* 128 */
9462 .read = spi_chip_read,
9463 .voltage = {2700, 3600},
9464 },
9465
9466 {
9467 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9468 .name = "M25P20",
9469 .bustype = BUS_SPI,
9470 .manufacture_id = ST_ID,
9471 .model_id = ST_M25P20,
9472 .total_size = 256,
9473 .page_size = 256,
9474 .feature_bits = FEATURE_WRSR_WREN,
9475 .tested = TEST_UNTESTED,
9476 .probe = probe_spi_rdid,
9477 .probe_timing = TIMING_ZERO,
9478 .block_erasers =
9479 {
9480 {
9481 .eraseblocks = { {64 * 1024, 4} },
9482 .block_erase = spi_block_erase_d8,
9483 }, {
9484 .eraseblocks = { {256 * 1024, 1} },
9485 .block_erase = spi_block_erase_c7,
9486 }
9487 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009488 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009489 .unlock = spi_disable_blockprotect,
9490 .write = spi_chip_write_256,
9491 .read = spi_chip_read, /* Fast read (0x0B) supported */
9492 .voltage = {2700, 3600},
9493 },
9494
9495 {
9496 .vendor = "Micron/Numonyx/ST",
9497 .name = "M25P20-old",
9498 .bustype = BUS_SPI,
9499 .manufacture_id = 0, /* Not used. */
9500 .model_id = ST_M25P20_RES,
9501 .total_size = 256,
9502 .page_size = 256,
9503 .feature_bits = FEATURE_WRSR_WREN,
9504 .tested = TEST_OK_PREW,
9505 .probe = probe_spi_res1,
9506 .probe_timing = TIMING_ZERO,
9507 .block_erasers =
9508 {
9509 {
9510 .eraseblocks = { {64 * 1024, 4} },
9511 .block_erase = spi_block_erase_d8,
9512 }, {
9513 .eraseblocks = { {256 * 1024, 1} },
9514 .block_erase = spi_block_erase_c7,
9515 }
9516 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009517 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009518 .unlock = spi_disable_blockprotect,
9519 .write = spi_chip_write_256,
9520 .read = spi_chip_read, /* Fast read (0x0B) supported */
9521 .voltage = {2700, 3600},
9522 },
9523
9524 {
9525 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9526 .name = "M25P40",
9527 .bustype = BUS_SPI,
9528 .manufacture_id = ST_ID,
9529 .model_id = ST_M25P40,
9530 .total_size = 512,
9531 .page_size = 256,
9532 .feature_bits = FEATURE_WRSR_WREN,
9533 .tested = TEST_OK_PREW,
9534 .probe = probe_spi_rdid,
9535 .probe_timing = TIMING_ZERO,
9536 .block_erasers =
9537 {
9538 {
9539 .eraseblocks = { {64 * 1024, 8} },
9540 .block_erase = spi_block_erase_d8,
9541 }, {
9542 .eraseblocks = { {512 * 1024, 1} },
9543 .block_erase = spi_block_erase_c7,
9544 }
9545 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009546 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009547 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009548 .write = spi_chip_write_256,
9549 .read = spi_chip_read,
9550 .voltage = {2700, 3600},
9551 },
9552
9553 {
9554 .vendor = "Micron/Numonyx/ST",
9555 .name = "M25P40-old",
9556 .bustype = BUS_SPI,
9557 .manufacture_id = 0, /* Not used. */
9558 .model_id = ST_M25P40_RES,
9559 .total_size = 512,
9560 .page_size = 256,
9561 .feature_bits = FEATURE_WRSR_WREN,
9562 .tested = TEST_UNTESTED,
9563 .probe = probe_spi_res1,
9564 .probe_timing = TIMING_ZERO,
9565 .block_erasers =
9566 {
9567 {
9568 .eraseblocks = { {64 * 1024, 8} },
9569 .block_erase = spi_block_erase_d8,
9570 }, {
9571 .eraseblocks = { {512 * 1024, 1} },
9572 .block_erase = spi_block_erase_c7,
9573 }
9574 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009575 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009576 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009577 .write = spi_chip_write_256,
9578 .read = spi_chip_read,
9579 },
9580
9581 {
9582 .vendor = "Micron/Numonyx/ST",
9583 .name = "M25P80",
9584 .bustype = BUS_SPI,
9585 .manufacture_id = ST_ID,
9586 .model_id = ST_M25P80,
9587 .total_size = 1024,
9588 .page_size = 256,
9589 .feature_bits = FEATURE_WRSR_WREN,
9590 .tested = TEST_OK_PREW,
9591 .probe = probe_spi_rdid,
9592 .probe_timing = TIMING_ZERO,
9593 .block_erasers =
9594 {
9595 {
9596 .eraseblocks = { {64 * 1024, 16} },
9597 .block_erase = spi_block_erase_d8,
9598 }, {
9599 .eraseblocks = { {1024 * 1024, 1} },
9600 .block_erase = spi_block_erase_c7,
9601 }
9602 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009603 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009604 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009605 .write = spi_chip_write_256,
9606 .read = spi_chip_read,
9607 .voltage = {2700, 3600},
9608 },
9609
9610 {
9611 .vendor = "Micron/Numonyx/ST",
9612 .name = "M25P16",
9613 .bustype = BUS_SPI,
9614 .manufacture_id = ST_ID,
9615 .model_id = ST_M25P16,
9616 .total_size = 2048,
9617 .page_size = 256,
9618 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009619 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009620 .probe = probe_spi_rdid,
9621 .probe_timing = TIMING_ZERO,
9622 .block_erasers =
9623 {
9624 {
9625 .eraseblocks = { {64 * 1024, 32} },
9626 .block_erase = spi_block_erase_d8,
9627 }, {
9628 .eraseblocks = { {2 * 1024 * 1024, 1} },
9629 .block_erase = spi_block_erase_c7,
9630 }
9631 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009632 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009633 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009634 .write = spi_chip_write_256,
9635 .read = spi_chip_read,
9636 .voltage = {2700, 3600},
9637 },
9638
9639 {
9640 .vendor = "Micron/Numonyx/ST",
9641 .name = "M25P32",
9642 .bustype = BUS_SPI,
9643 .manufacture_id = ST_ID,
9644 .model_id = ST_M25P32,
9645 .total_size = 4096,
9646 .page_size = 256,
9647 .feature_bits = FEATURE_WRSR_WREN,
9648 .tested = TEST_OK_PREW,
9649 .probe = probe_spi_rdid,
9650 .probe_timing = TIMING_ZERO,
9651 .block_erasers =
9652 {
9653 {
9654 .eraseblocks = { {64 * 1024, 64} },
9655 .block_erase = spi_block_erase_d8,
9656 }, {
9657 .eraseblocks = { {4 * 1024 * 1024, 1} },
9658 .block_erase = spi_block_erase_c7,
9659 }
9660 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009661 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009662 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009663 .write = spi_chip_write_256,
9664 .read = spi_chip_read,
9665 .voltage = {2700, 3600},
9666 },
9667
9668 {
9669 .vendor = "Micron/Numonyx/ST",
9670 .name = "M25P64",
9671 .bustype = BUS_SPI,
9672 .manufacture_id = ST_ID,
9673 .model_id = ST_M25P64,
9674 .total_size = 8192,
9675 .page_size = 256,
9676 .feature_bits = FEATURE_WRSR_WREN,
9677 .tested = TEST_OK_PREW,
9678 .probe = probe_spi_rdid,
9679 .probe_timing = TIMING_ZERO,
9680 .block_erasers =
9681 {
9682 {
9683 .eraseblocks = { {64 * 1024, 128} },
9684 .block_erase = spi_block_erase_d8,
9685 }, {
9686 .eraseblocks = { {8 * 1024 * 1024, 1} },
9687 .block_erase = spi_block_erase_c7,
9688 }
9689 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009690 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009691 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009692 .write = spi_chip_write_256,
9693 .read = spi_chip_read,
9694 .voltage = {2700, 3600},
9695 },
9696
9697 {
9698 .vendor = "Micron/Numonyx/ST",
9699 .name = "M25P128",
9700 .bustype = BUS_SPI,
9701 .manufacture_id = ST_ID,
9702 .model_id = ST_M25P128,
9703 .total_size = 16384,
9704 .page_size = 256,
9705 .feature_bits = FEATURE_WRSR_WREN,
9706 .tested = TEST_OK_PREW,
9707 .probe = probe_spi_rdid,
9708 .probe_timing = TIMING_ZERO,
9709 .block_erasers =
9710 {
9711 {
9712 .eraseblocks = { {256 * 1024, 64} },
9713 .block_erase = spi_block_erase_d8,
9714 }, {
9715 .eraseblocks = { {16 * 1024 * 1024, 1} },
9716 .block_erase = spi_block_erase_c7,
9717 }
9718 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009719 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009720 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009721 .write = spi_chip_write_256,
9722 .read = spi_chip_read,
9723 .voltage = {2700, 3600},
9724 },
9725
9726 {
9727 .vendor = "Micron/Numonyx/ST",
9728 .name = "M25PE10",
9729 .bustype = BUS_SPI,
9730 .manufacture_id = ST_ID,
9731 .model_id = ST_M25PE10,
9732 .total_size = 128,
9733 .page_size = 256,
9734 .feature_bits = FEATURE_WRSR_WREN,
9735 .tested = TEST_UNTESTED,
9736 .probe = probe_spi_rdid,
9737 .probe_timing = TIMING_ZERO,
9738 .block_erasers =
9739 {
9740 {
9741 .eraseblocks = { {4 * 1024, 32} },
9742 .block_erase = spi_block_erase_20,
9743 }, {
9744 .eraseblocks = { {64 * 1024, 2} },
9745 .block_erase = spi_block_erase_d8,
9746 }, {
9747 .eraseblocks = { {128 * 1024, 1} },
9748 .block_erase = spi_block_erase_c7,
9749 }
9750 },
9751 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9752 .unlock = spi_disable_blockprotect,
9753 .write = spi_chip_write_256,
9754 .read = spi_chip_read,
9755 .voltage = {2700, 3600},
9756 },
9757
9758 {
9759 .vendor = "Micron/Numonyx/ST",
9760 .name = "M25PE20",
9761 .bustype = BUS_SPI,
9762 .manufacture_id = ST_ID,
9763 .model_id = ST_M25PE20,
9764 .total_size = 256,
9765 .page_size = 256,
9766 .feature_bits = FEATURE_WRSR_WREN,
9767 .tested = TEST_UNTESTED,
9768 .probe = probe_spi_rdid,
9769 .probe_timing = TIMING_ZERO,
9770 .block_erasers =
9771 {
9772 {
9773 .eraseblocks = { {4 * 1024, 64} },
9774 .block_erase = spi_block_erase_20,
9775 }, {
9776 .eraseblocks = { {64 * 1024, 4} },
9777 .block_erase = spi_block_erase_d8,
9778 }, {
9779 .eraseblocks = { {256 * 1024, 1} },
9780 .block_erase = spi_block_erase_c7,
9781 }
9782 },
9783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9784 .unlock = spi_disable_blockprotect,
9785 .write = spi_chip_write_256,
9786 .read = spi_chip_read,
9787 .voltage = {2700, 3600},
9788 },
9789
9790 {
9791 .vendor = "Micron/Numonyx/ST",
9792 .name = "M25PE40",
9793 .bustype = BUS_SPI,
9794 .manufacture_id = ST_ID,
9795 .model_id = ST_M25PE40,
9796 .total_size = 512,
9797 .page_size = 256,
9798 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009799 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009800 .probe = probe_spi_rdid,
9801 .probe_timing = TIMING_ZERO,
9802 .block_erasers =
9803 {
9804 {
9805 .eraseblocks = { {4 * 1024, 128} },
9806 .block_erase = spi_block_erase_20,
9807 }, {
9808 .eraseblocks = { {64 * 1024, 8} },
9809 .block_erase = spi_block_erase_d8,
9810 }, {
9811 .eraseblocks = { {512 * 1024, 1} },
9812 .block_erase = spi_block_erase_c7,
9813 }
9814 },
9815 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9816 .unlock = spi_disable_blockprotect,
9817 .write = spi_chip_write_256,
9818 .read = spi_chip_read,
9819 .voltage = {2700, 3600},
9820 },
9821
9822 {
9823 .vendor = "Micron/Numonyx/ST",
9824 .name = "M25PE80",
9825 .bustype = BUS_SPI,
9826 .manufacture_id = ST_ID,
9827 .model_id = ST_M25PE80,
9828 .total_size = 1024,
9829 .page_size = 256,
9830 .feature_bits = FEATURE_WRSR_WREN,
9831 .tested = TEST_OK_PREW,
9832 .probe = probe_spi_rdid,
9833 .probe_timing = TIMING_ZERO,
9834 .block_erasers =
9835 {
9836 {
9837 .eraseblocks = { {4 * 1024, 256} },
9838 .block_erase = spi_block_erase_20,
9839 }, {
9840 .eraseblocks = { {64 * 1024, 16} },
9841 .block_erase = spi_block_erase_d8,
9842 }, {
9843 .eraseblocks = { {1024 * 1024, 1} },
9844 .block_erase = spi_block_erase_c7,
9845 }
9846 },
9847 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9848 .unlock = spi_disable_blockprotect,
9849 .write = spi_chip_write_256,
9850 .read = spi_chip_read,
9851 .voltage = {2700, 3600},
9852 },
9853
9854 {
9855 .vendor = "Micron/Numonyx/ST",
9856 .name = "M25PE16",
9857 .bustype = BUS_SPI,
9858 .manufacture_id = ST_ID,
9859 .model_id = ST_M25PE16,
9860 .total_size = 2048,
9861 .page_size = 256,
9862 .feature_bits = FEATURE_WRSR_WREN,
9863 .tested = TEST_UNTESTED,
9864 .probe = probe_spi_rdid,
9865 .probe_timing = TIMING_ZERO,
9866 .block_erasers =
9867 {
9868 {
9869 .eraseblocks = { {4 * 1024, 512} },
9870 .block_erase = spi_block_erase_20,
9871 }, {
9872 .eraseblocks = { {64 * 1024, 32} },
9873 .block_erase = spi_block_erase_d8,
9874 }, {
9875 .eraseblocks = { {2 * 1024 * 1024, 1} },
9876 .block_erase = spi_block_erase_c7,
9877 }
9878 },
9879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9880 .unlock = spi_disable_blockprotect,
9881 .write = spi_chip_write_256,
9882 .read = spi_chip_read,
9883 .voltage = {2700, 3600},
9884 },
9885
9886 {
9887 .vendor = "Micron/Numonyx/ST",
9888 .name = "M25PX80",
9889 .bustype = BUS_SPI,
9890 .manufacture_id = ST_ID,
9891 .model_id = ST_M25PX80,
9892 .total_size = 1024,
9893 .page_size = 256,
9894 /* OTP: 64B total; read 0x4B, write 0x42 */
9895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9896 .tested = TEST_OK_PREW,
9897 .probe = probe_spi_rdid,
9898 .probe_timing = TIMING_ZERO,
9899 .block_erasers = {
9900 {
9901 .eraseblocks = { { 4 * 1024, 256 } },
9902 .block_erase = spi_block_erase_20,
9903 }, {
9904 .eraseblocks = { {64 * 1024, 16} },
9905 .block_erase = spi_block_erase_d8,
9906 }, {
9907 .eraseblocks = { {1024 * 1024, 1} },
9908 .block_erase = spi_block_erase_c7,
9909 }
9910 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009911 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009912 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9913 .write = spi_chip_write_256,
9914 .read = spi_chip_read,
9915 .voltage = {2700, 3600},
9916 },
9917
9918 {
9919 .vendor = "Micron/Numonyx/ST",
9920 .name = "M25PX16",
9921 .bustype = BUS_SPI,
9922 .manufacture_id = ST_ID,
9923 .model_id = ST_M25PX16,
9924 .total_size = 2048,
9925 .page_size = 256,
9926 /* OTP: 64B total; read 0x4B; write 0x42 */
9927 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9928 .tested = TEST_OK_PREW,
9929 .probe = probe_spi_rdid,
9930 .probe_timing = TIMING_ZERO,
9931 .block_erasers =
9932 {
9933 {
9934 .eraseblocks = { { 4 * 1024, 512 } },
9935 .block_erase = spi_block_erase_20,
9936 }, {
9937 .eraseblocks = { {64 * 1024, 32} },
9938 .block_erase = spi_block_erase_d8,
9939 }, {
9940 .eraseblocks = { {2 * 1024 * 1024, 1} },
9941 .block_erase = spi_block_erase_c7,
9942 }
9943 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009944 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009945 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9946 .write = spi_chip_write_256,
9947 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009948 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009949 },
9950
9951 {
9952 .vendor = "Micron/Numonyx/ST",
9953 .name = "M25PX32",
9954 .bustype = BUS_SPI,
9955 .manufacture_id = ST_ID,
9956 .model_id = ST_M25PX32,
9957 .total_size = 4096,
9958 .page_size = 256,
9959 /* OTP: 64B total; read 0x4B; write 0x42 */
9960 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9961 .tested = TEST_OK_PRE,
9962 .probe = probe_spi_rdid,
9963 .probe_timing = TIMING_ZERO,
9964 .block_erasers =
9965 {
9966 {
9967 .eraseblocks = { { 4 * 1024, 1024 } },
9968 .block_erase = spi_block_erase_20,
9969 }, {
9970 .eraseblocks = { {64 * 1024, 64} },
9971 .block_erase = spi_block_erase_d8,
9972 }, {
9973 .eraseblocks = { {4 * 1024 * 1024, 1} },
9974 .block_erase = spi_block_erase_c7,
9975 }
9976 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009977 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009978 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9979 .write = spi_chip_write_256,
9980 .read = spi_chip_read,
9981 .voltage = {2700, 3600},
9982 },
9983
9984 {
9985 .vendor = "Micron/Numonyx/ST",
9986 .name = "M25PX64",
9987 .bustype = BUS_SPI,
9988 .manufacture_id = ST_ID,
9989 .model_id = ST_M25PX64,
9990 .total_size = 8192,
9991 .page_size = 256,
9992 /* OTP: 64B total; read 0x4B; write 0x42 */
9993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009994 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009995 .probe = probe_spi_rdid,
9996 .probe_timing = TIMING_ZERO,
9997 .block_erasers =
9998 {
9999 {
10000 .eraseblocks = { { 4 * 1024, 2048 } },
10001 .block_erase = spi_block_erase_20,
10002 }, {
10003 .eraseblocks = { {64 * 1024, 128} },
10004 .block_erase = spi_block_erase_d8,
10005 }, {
10006 .eraseblocks = { {8 * 1024 * 1024, 1} },
10007 .block_erase = spi_block_erase_c7,
10008 }
10009 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010010 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010011 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10012 .write = spi_chip_write_256,
10013 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010014 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010015 },
10016
10017 {
10018 .vendor = "Micron/Numonyx/ST",
10019 .name = "M45PE10",
10020 .bustype = BUS_SPI,
10021 .manufacture_id = ST_ID,
10022 .model_id = ST_M45PE10,
10023 .total_size = 128,
10024 .page_size = 256,
10025 .tested = TEST_UNTESTED,
10026 .probe = probe_spi_rdid,
10027 .probe_timing = TIMING_ZERO,
10028 .block_erasers = {
10029 {
10030 .eraseblocks = { {256, 512} },
10031 .block_erase = spi_block_erase_db,
10032 }, {
10033 .eraseblocks = { {64 * 1024, 2} },
10034 .block_erase = spi_block_erase_d8,
10035 }
10036 },
10037 .printlock = spi_prettyprint_status_register_default_welwip,
10038 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10039 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10040 .read = spi_chip_read, /* Fast read (0x0B) supported */
10041 .voltage = {2700, 3600},
10042 },
10043
10044 {
10045 .vendor = "Micron/Numonyx/ST",
10046 .name = "M45PE20",
10047 .bustype = BUS_SPI,
10048 .manufacture_id = ST_ID,
10049 .model_id = ST_M45PE20,
10050 .total_size = 256,
10051 .page_size = 256,
10052 .tested = TEST_UNTESTED,
10053 .probe = probe_spi_rdid,
10054 .probe_timing = TIMING_ZERO,
10055 .block_erasers = {
10056 {
10057 .eraseblocks = { {256, 1024} },
10058 .block_erase = spi_block_erase_db,
10059 }, {
10060 .eraseblocks = { {64 * 1024, 4} },
10061 .block_erase = spi_block_erase_d8,
10062 }
10063 },
10064 .printlock = spi_prettyprint_status_register_default_welwip,
10065 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10066 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10067 .read = spi_chip_read, /* Fast read (0x0B) supported */
10068 .voltage = {2700, 3600},
10069 },
10070
10071 {
10072 .vendor = "Micron/Numonyx/ST",
10073 .name = "M45PE40",
10074 .bustype = BUS_SPI,
10075 .manufacture_id = ST_ID,
10076 .model_id = ST_M45PE40,
10077 .total_size = 512,
10078 .page_size = 256,
10079 .tested = TEST_UNTESTED,
10080 .probe = probe_spi_rdid,
10081 .probe_timing = TIMING_ZERO,
10082 .block_erasers = {
10083 {
10084 .eraseblocks = { {256, 2048} },
10085 .block_erase = spi_block_erase_db,
10086 }, {
10087 .eraseblocks = { {64 * 1024, 8} },
10088 .block_erase = spi_block_erase_d8,
10089 }
10090 },
10091 .printlock = spi_prettyprint_status_register_default_welwip,
10092 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010093 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010094 .read = spi_chip_read, /* Fast read (0x0B) supported */
10095 .voltage = {2700, 3600},
10096 },
10097
10098 {
10099 .vendor = "Micron/Numonyx/ST",
10100 .name = "M45PE80",
10101 .bustype = BUS_SPI,
10102 .manufacture_id = ST_ID,
10103 .model_id = ST_M45PE80,
10104 .total_size = 1024,
10105 .page_size = 256,
10106 .tested = TEST_UNTESTED,
10107 .probe = probe_spi_rdid,
10108 .probe_timing = TIMING_ZERO,
10109 .block_erasers = {
10110 {
10111 .eraseblocks = { {256, 4096} },
10112 .block_erase = spi_block_erase_db,
10113 }, {
10114 .eraseblocks = { {64 * 1024, 16} },
10115 .block_erase = spi_block_erase_d8,
10116 }
10117 },
10118 .printlock = spi_prettyprint_status_register_default_welwip,
10119 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10120 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10121 .read = spi_chip_read, /* Fast read (0x0B) supported */
10122 .voltage = {2700, 3600},
10123 },
10124
10125 {
10126 .vendor = "Micron/Numonyx/ST",
10127 .name = "M45PE16",
10128 .bustype = BUS_SPI,
10129 .manufacture_id = ST_ID,
10130 .model_id = ST_M45PE16,
10131 .total_size = 2048,
10132 .page_size = 256,
10133 .tested = TEST_UNTESTED,
10134 .probe = probe_spi_rdid,
10135 .probe_timing = TIMING_ZERO,
10136 .block_erasers = {
10137 {
10138 .eraseblocks = { {256, 8192} },
10139 .block_erase = spi_block_erase_db,
10140 }, {
10141 .eraseblocks = { {64 * 1024, 32} },
10142 .block_erase = spi_block_erase_d8,
10143 }
10144 },
10145 .printlock = spi_prettyprint_status_register_default_welwip,
10146 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10147 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10148 .read = spi_chip_read, /* Fast read (0x0B) supported */
10149 .voltage = {2700, 3600},
10150 },
10151
10152 {
10153 .vendor = "Micron/Numonyx/ST",
10154 .name = "N25Q016",
10155 .bustype = BUS_SPI,
10156 .manufacture_id = ST_ID,
10157 .model_id = ST_N25Q016__1E,
10158 .total_size = 2048,
10159 .page_size = 256,
10160 /* supports SFDP */
10161 /* OTP: 64B total; read 0x4B, write 0x42 */
10162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10163 .tested = TEST_UNTESTED,
10164 .probe = probe_spi_rdid,
10165 .probe_timing = TIMING_ZERO,
10166 .block_erasers =
10167 {
10168 {
10169 .eraseblocks = { {4 * 1024, 512} },
10170 .block_erase = spi_block_erase_20,
10171 }, {
10172 .eraseblocks = { {32 * 1024, 64} },
10173 .block_erase = spi_block_erase_52,
10174 }, {
10175 .eraseblocks = { {64 * 1024, 32} },
10176 .block_erase = spi_block_erase_d8,
10177 }, {
10178 .eraseblocks = { {2 * 1024 * 1024, 1} },
10179 .block_erase = spi_block_erase_c7,
10180 }
10181 },
10182 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10183 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10184 .write = spi_chip_write_256, /* Multi I/O supported */
10185 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10186 .voltage = {1700, 2000},
10187 },
10188
10189 {
10190 .vendor = "Micron/Numonyx/ST",
10191 .name = "N25Q032..1E",
10192 .bustype = BUS_SPI,
10193 .manufacture_id = ST_ID,
10194 .model_id = ST_N25Q032__1E,
10195 .total_size = 4096,
10196 .page_size = 256,
10197 /* supports SFDP */
10198 /* OTP: 64B total; read 0x4B, write 0x42 */
10199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10200 .tested = TEST_UNTESTED,
10201 .probe = probe_spi_rdid,
10202 .probe_timing = TIMING_ZERO,
10203 .block_erasers =
10204 {
10205 {
10206 .eraseblocks = { {4 * 1024, 1024} },
10207 .block_erase = spi_block_erase_20,
10208 }, {
10209 .eraseblocks = { {64 * 1024, 64} },
10210 .block_erase = spi_block_erase_d8,
10211 }, {
10212 .eraseblocks = { {4 * 1024 * 1024, 1} },
10213 .block_erase = spi_block_erase_c7,
10214 }
10215 },
10216 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10217 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10218 .write = spi_chip_write_256, /* Multi I/O supported */
10219 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10220 .voltage = {1700, 2000},
10221 },
10222
10223 {
10224 .vendor = "Micron/Numonyx/ST",
10225 .name = "N25Q032..3E",
10226 .bustype = BUS_SPI,
10227 .manufacture_id = ST_ID,
10228 .model_id = ST_N25Q032__3E,
10229 .total_size = 4096,
10230 .page_size = 256,
10231 /* supports SFDP */
10232 /* OTP: 64B total; read 0x4B, write 0x42 */
10233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10234 .tested = TEST_OK_PREW,
10235 .probe = probe_spi_rdid,
10236 .probe_timing = TIMING_ZERO,
10237 .block_erasers =
10238 {
10239 {
10240 .eraseblocks = { {4 * 1024, 1024} },
10241 .block_erase = spi_block_erase_20,
10242 }, {
10243 .eraseblocks = { {64 * 1024, 64} },
10244 .block_erase = spi_block_erase_d8,
10245 }, {
10246 .eraseblocks = { {4 * 1024 * 1024, 1} },
10247 .block_erase = spi_block_erase_c7,
10248 }
10249 },
10250 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10251 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10252 .write = spi_chip_write_256, /* Multi I/O supported */
10253 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10254 .voltage = {2700, 3600},
10255 },
10256
10257 {
10258 .vendor = "Micron/Numonyx/ST",
10259 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10260 .bustype = BUS_SPI,
10261 .manufacture_id = ST_ID,
10262 .model_id = ST_N25Q064__1E,
10263 .total_size = 8192,
10264 .page_size = 256,
10265 /* supports SFDP */
10266 /* OTP: 64B total; read 0x4B, write 0x42 */
10267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010268 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010269 .probe = probe_spi_rdid,
10270 .probe_timing = TIMING_ZERO,
10271 .block_erasers =
10272 {
10273 {
10274 .eraseblocks = { {4 * 1024, 2048 } },
10275 .block_erase = spi_block_erase_20,
10276 }, {
10277 .eraseblocks = { {64 * 1024, 128} },
10278 .block_erase = spi_block_erase_d8,
10279 }, {
10280 .eraseblocks = { {8 * 1024 * 1024, 1} },
10281 .block_erase = spi_block_erase_c7,
10282 }
10283 },
10284 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10285 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10286 .write = spi_chip_write_256, /* Multi I/O supported */
10287 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10288 .voltage = {1700, 2000},
10289 },
10290
10291 {
10292 .vendor = "Micron/Numonyx/ST",
10293 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10294 .bustype = BUS_SPI,
10295 .manufacture_id = ST_ID,
10296 .model_id = ST_N25Q064__3E,
10297 .total_size = 8192,
10298 .page_size = 256,
10299 /* supports SFDP */
10300 /* OTP: 64B total; read 0x4B, write 0x42 */
10301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10302 .tested = TEST_OK_PREW,
10303 .probe = probe_spi_rdid,
10304 .probe_timing = TIMING_ZERO,
10305 .block_erasers =
10306 {
10307 {
10308 .eraseblocks = { {4 * 1024, 2048 } },
10309 .block_erase = spi_block_erase_20,
10310 }, {
10311 .eraseblocks = { {64 * 1024, 128} },
10312 .block_erase = spi_block_erase_d8,
10313 }, {
10314 .eraseblocks = { {8 * 1024 * 1024, 1} },
10315 .block_erase = spi_block_erase_c7,
10316 }
10317 },
10318 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10319 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10320 .write = spi_chip_write_256, /* Multi I/O supported */
10321 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10322 .voltage = {2700, 3600},
10323 },
10324
10325 {
10326 .vendor = "Micron/Numonyx/ST",
10327 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10328 .bustype = BUS_SPI,
10329 .manufacture_id = ST_ID,
10330 .model_id = ST_N25Q128__1E,
10331 .total_size = 16384,
10332 .page_size = 256,
10333 /* supports SFDP */
10334 /* OTP: 64B total; read 0x4B, write 0x42 */
10335 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010336 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010337 .probe = probe_spi_rdid,
10338 .probe_timing = TIMING_ZERO,
10339 .block_erasers = {
10340 {
10341 .eraseblocks = { {4 * 1024, 4096 } },
10342 .block_erase = spi_block_erase_20,
10343 }, {
10344 .eraseblocks = { {64 * 1024, 256} },
10345 .block_erase = spi_block_erase_d8,
10346 }, {
10347 .eraseblocks = { {16384 * 1024, 1} },
10348 .block_erase = spi_block_erase_c7,
10349 }
10350 },
10351 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10352 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10353 .write = spi_chip_write_256, /* Multi I/O supported */
10354 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10355 .voltage = {1700, 2000},
10356 },
10357
10358 {
10359 .vendor = "Micron/Numonyx/ST",
10360 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10361 .bustype = BUS_SPI,
10362 .manufacture_id = ST_ID,
10363 .model_id = ST_N25Q128__3E,
10364 .total_size = 16384,
10365 .page_size = 256,
10366 /* supports SFDP */
10367 /* OTP: 64B total; read 0x4B, write 0x42 */
10368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10369 .tested = TEST_OK_PREW,
10370 .probe = probe_spi_rdid,
10371 .probe_timing = TIMING_ZERO,
10372 .block_erasers = {
10373 {
10374 .eraseblocks = { {4 * 1024, 4096 } },
10375 .block_erase = spi_block_erase_20,
10376 }, {
10377 .eraseblocks = { {64 * 1024, 256} },
10378 .block_erase = spi_block_erase_d8,
10379 }, {
10380 .eraseblocks = { {16384 * 1024, 1} },
10381 .block_erase = spi_block_erase_c7,
10382 }
10383 },
10384 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10385 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10386 .write = spi_chip_write_256, /* Multi I/O supported */
10387 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10388 .voltage = {2700, 3600},
10389 },
10390
10391 {
Ed Swierk199ab392017-07-03 13:33:44 -070010392 .vendor = "Micron",
10393 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10394 .bustype = BUS_SPI,
10395 .manufacture_id = ST_ID,
10396 .model_id = ST_N25Q256__3E,
10397 .total_size = 32768,
10398 .page_size = 256,
10399 /* supports SFDP */
10400 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10402 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010403 .probe = probe_spi_rdid,
10404 .probe_timing = TIMING_ZERO,
10405 .block_erasers = {
10406 {
10407 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010408 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010409 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010410 .eraseblocks = { {4 * 1024, 8192} },
10411 .block_erase = spi_block_erase_20,
10412 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010413 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010414 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010415 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010416 .eraseblocks = { {64 * 1024, 512} },
10417 .block_erase = spi_block_erase_d8,
10418 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010419 .eraseblocks = { {32768 * 1024, 1} },
10420 .block_erase = spi_block_erase_c7,
10421 }
10422 },
10423 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10424 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10425 .write = spi_chip_write_256, /* Multi I/O supported */
10426 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10427 .voltage = {2700, 3600},
10428 },
10429
10430 {
10431 .vendor = "Micron",
10432 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10433 .bustype = BUS_SPI,
10434 .manufacture_id = ST_ID,
10435 .model_id = ST_N25Q512__3E,
10436 .total_size = 65536,
10437 .page_size = 256,
10438 /* supports SFDP */
10439 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020010441 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070010442 .probe = probe_spi_rdid,
10443 .probe_timing = TIMING_ZERO,
10444 .block_erasers = {
10445 {
10446 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010447 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010448 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010449 .eraseblocks = { {4 * 1024, 16384} },
10450 .block_erase = spi_block_erase_20,
10451 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010452 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010453 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010454 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010455 .eraseblocks = { {64 * 1024, 1024} },
10456 .block_erase = spi_block_erase_d8,
10457 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010458 .eraseblocks = { {65536 * 1024, 1} },
10459 .block_erase = spi_block_erase_c7,
10460 }
10461 },
10462 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10463 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10464 .write = spi_chip_write_256, /* Multi I/O supported */
10465 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10466 .voltage = {2700, 3600},
10467 },
10468
10469 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010470 .vendor = "MoselVitelic",
10471 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010472 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010473 .manufacture_id = SYNCMOS_MVC_ID,
10474 .model_id = MVC_V29C51000B,
10475 .total_size = 64,
10476 .page_size = 512,
10477 .feature_bits = FEATURE_EITHER_RESET,
10478 .tested = TEST_UNTESTED,
10479 .probe = probe_jedec,
10480 .probe_timing = TIMING_ZERO,
10481 .block_erasers =
10482 {
10483 {
10484 .eraseblocks = { {512, 128} },
10485 .block_erase = erase_sector_jedec,
10486 }, {
10487 .eraseblocks = { {64 * 1024, 1} },
10488 .block_erase = erase_chip_block_jedec,
10489 },
10490 },
10491 .write = write_jedec_1,
10492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010493 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010494 },
10495
10496 {
10497 .vendor = "MoselVitelic",
10498 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010499 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010500 .manufacture_id = SYNCMOS_MVC_ID,
10501 .model_id = MVC_V29C51000T,
10502 .total_size = 64,
10503 .page_size = 512,
10504 .feature_bits = FEATURE_EITHER_RESET,
10505 .tested = TEST_UNTESTED,
10506 .probe = probe_jedec,
10507 .probe_timing = TIMING_ZERO,
10508 .block_erasers =
10509 {
10510 {
10511 .eraseblocks = { {512, 128} },
10512 .block_erase = erase_sector_jedec,
10513 }, {
10514 .eraseblocks = { {64 * 1024, 1} },
10515 .block_erase = erase_chip_block_jedec,
10516 },
10517 },
10518 .write = write_jedec_1,
10519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010520 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010521 },
10522
10523 {
10524 .vendor = "MoselVitelic",
10525 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010526 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010527 .manufacture_id = SYNCMOS_MVC_ID,
10528 .model_id = MVC_V29C51400B,
10529 .total_size = 512,
10530 .page_size = 1024,
10531 .feature_bits = FEATURE_EITHER_RESET,
10532 .tested = TEST_UNTESTED,
10533 .probe = probe_jedec,
10534 .probe_timing = TIMING_ZERO,
10535 .block_erasers =
10536 {
10537 {
10538 .eraseblocks = { {1024, 512} },
10539 .block_erase = erase_sector_jedec,
10540 }, {
10541 .eraseblocks = { {512 * 1024, 1} },
10542 .block_erase = erase_chip_block_jedec,
10543 },
10544 },
10545 .write = write_jedec_1,
10546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010547 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010548 },
10549
10550 {
10551 .vendor = "MoselVitelic",
10552 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010553 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010554 .manufacture_id = SYNCMOS_MVC_ID,
10555 .model_id = MVC_V29C51400T,
10556 .total_size = 512,
10557 .page_size = 1024,
10558 .feature_bits = FEATURE_EITHER_RESET,
10559 .tested = TEST_UNTESTED,
10560 .probe = probe_jedec,
10561 .probe_timing = TIMING_ZERO,
10562 .block_erasers =
10563 {
10564 {
10565 .eraseblocks = { {1024, 512} },
10566 .block_erase = erase_sector_jedec,
10567 }, {
10568 .eraseblocks = { {512 * 1024, 1} },
10569 .block_erase = erase_chip_block_jedec,
10570 },
10571 },
10572 .write = write_jedec_1,
10573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010574 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010575 },
10576
10577 {
10578 .vendor = "MoselVitelic",
10579 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010580 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010581 .manufacture_id = SYNCMOS_MVC_ID,
10582 .model_id = MVC_V29LC51000,
10583 .total_size = 64,
10584 .page_size = 512,
10585 .feature_bits = FEATURE_EITHER_RESET,
10586 .tested = TEST_UNTESTED,
10587 .probe = probe_jedec,
10588 .probe_timing = TIMING_ZERO,
10589 .block_erasers =
10590 {
10591 {
10592 .eraseblocks = { {512, 128} },
10593 .block_erase = erase_sector_jedec,
10594 }, {
10595 .eraseblocks = { {64 * 1024, 1} },
10596 .block_erase = erase_chip_block_jedec,
10597 },
10598 },
10599 .write = write_jedec_1,
10600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010601 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010602 },
10603
10604 {
10605 .vendor = "MoselVitelic",
10606 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010607 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010608 .manufacture_id = SYNCMOS_MVC_ID,
10609 .model_id = MVC_V29LC51001,
10610 .total_size = 128,
10611 .page_size = 512,
10612 .feature_bits = FEATURE_EITHER_RESET,
10613 .tested = TEST_UNTESTED,
10614 .probe = probe_jedec,
10615 .probe_timing = TIMING_ZERO,
10616 .block_erasers =
10617 {
10618 {
10619 .eraseblocks = { {512, 256} },
10620 .block_erase = erase_sector_jedec,
10621 }, {
10622 .eraseblocks = { {128 * 1024, 1} },
10623 .block_erase = erase_chip_block_jedec,
10624 },
10625 },
10626 .write = write_jedec_1,
10627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010628 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010629 },
10630
10631 {
10632 .vendor = "MoselVitelic",
10633 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010634 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010635 .manufacture_id = SYNCMOS_MVC_ID,
10636 .model_id = MVC_V29LC51002,
10637 .total_size = 256,
10638 .page_size = 512,
10639 .feature_bits = FEATURE_EITHER_RESET,
10640 .tested = TEST_UNTESTED,
10641 .probe = probe_jedec,
10642 .probe_timing = TIMING_ZERO,
10643 .block_erasers =
10644 {
10645 {
10646 .eraseblocks = { {512, 512} },
10647 .block_erase = erase_sector_jedec,
10648 }, {
10649 .eraseblocks = { {256 * 1024, 1} },
10650 .block_erase = erase_chip_block_jedec,
10651 },
10652 },
10653 .write = write_jedec_1,
10654 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010655 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010656 },
10657
10658 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010659 .vendor = "Nantronics",
10660 .name = "N25S10",
10661 .bustype = BUS_SPI,
10662 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10663 .model_id = NANTRONICS_N25S10,
10664 .total_size = 128,
10665 .page_size = 256,
10666 .feature_bits = FEATURE_WRSR_WREN,
10667 .tested = TEST_UNTESTED,
10668 .probe = probe_spi_rdid,
10669 .probe_timing = TIMING_ZERO,
10670 .block_erasers =
10671 {
10672 {
10673 .eraseblocks = { {4 * 1024, 32} },
10674 .block_erase = spi_block_erase_20,
10675 }, {
10676 .eraseblocks = { {4 * 1024, 32} },
10677 .block_erase = spi_block_erase_d7,
10678 }, {
10679 .eraseblocks = { {32 * 1024, 4} },
10680 .block_erase = spi_block_erase_52,
10681 }, {
10682 .eraseblocks = { {64 * 1024, 2} },
10683 .block_erase = spi_block_erase_d8,
10684 }, {
10685 .eraseblocks = { {128 * 1024, 1} },
10686 .block_erase = spi_block_erase_60,
10687 }, {
10688 .eraseblocks = { {128 * 1024, 1} },
10689 .block_erase = spi_block_erase_c7,
10690 }
10691 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010692 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010693 .unlock = spi_disable_blockprotect_bp3_srwd,
10694 .write = spi_chip_write_256,
10695 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10696 .voltage = {2700, 3600},
10697 },
10698
10699 {
10700 .vendor = "Nantronics",
10701 .name = "N25S20",
10702 .bustype = BUS_SPI,
10703 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10704 .model_id = NANTRONICS_N25S20,
10705 .total_size = 256,
10706 .page_size = 256,
10707 .feature_bits = FEATURE_WRSR_WREN,
10708 .tested = TEST_UNTESTED,
10709 .probe = probe_spi_rdid,
10710 .probe_timing = TIMING_ZERO,
10711 .block_erasers =
10712 {
10713 {
10714 .eraseblocks = { {4 * 1024, 64} },
10715 .block_erase = spi_block_erase_20,
10716 }, {
10717 .eraseblocks = { {4 * 1024, 64} },
10718 .block_erase = spi_block_erase_d7,
10719 }, {
10720 .eraseblocks = { {32 * 1024, 8} },
10721 .block_erase = spi_block_erase_52,
10722 }, {
10723 .eraseblocks = { {64 * 1024, 4} },
10724 .block_erase = spi_block_erase_d8,
10725 }, {
10726 .eraseblocks = { {256 * 1024, 1} },
10727 .block_erase = spi_block_erase_60,
10728 }, {
10729 .eraseblocks = { {256 * 1024, 1} },
10730 .block_erase = spi_block_erase_c7,
10731 }
10732 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010733 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010734 .unlock = spi_disable_blockprotect_bp3_srwd,
10735 .write = spi_chip_write_256,
10736 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10737 .voltage = {2700, 3600},
10738 },
10739
10740 {
10741 .vendor = "Nantronics",
10742 .name = "N25S40",
10743 .bustype = BUS_SPI,
10744 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10745 .model_id = NANTRONICS_N25S40,
10746 .total_size = 512,
10747 .page_size = 256,
10748 .feature_bits = FEATURE_WRSR_WREN,
10749 .tested = TEST_UNTESTED,
10750 .probe = probe_spi_rdid,
10751 .probe_timing = TIMING_ZERO,
10752 .block_erasers =
10753 {
10754 {
10755 .eraseblocks = { {4 * 1024, 128} },
10756 .block_erase = spi_block_erase_20,
10757 }, {
10758 .eraseblocks = { {4 * 1024, 128} },
10759 .block_erase = spi_block_erase_d7,
10760 }, {
10761 .eraseblocks = { {32 * 1024, 16} },
10762 .block_erase = spi_block_erase_52,
10763 }, {
10764 .eraseblocks = { {64 * 1024, 8} },
10765 .block_erase = spi_block_erase_d8,
10766 }, {
10767 .eraseblocks = { {512 * 1024, 1} },
10768 .block_erase = spi_block_erase_60,
10769 }, {
10770 .eraseblocks = { {512 * 1024, 1} },
10771 .block_erase = spi_block_erase_c7,
10772 }
10773 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010774 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010775 .unlock = spi_disable_blockprotect_bp3_srwd,
10776 .write = spi_chip_write_256,
10777 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10778 .voltage = {2700, 3600},
10779 },
10780
10781 {
10782 .vendor = "Nantronics",
10783 .name = "N25S80",
10784 .bustype = BUS_SPI,
10785 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10786 .model_id = NANTRONICS_N25S80,
10787 .total_size = 1024,
10788 .page_size = 256,
10789 .feature_bits = FEATURE_WRSR_WREN,
10790 .tested = TEST_UNTESTED,
10791 .probe = probe_spi_rdid,
10792 .probe_timing = TIMING_ZERO,
10793 .block_erasers =
10794 {
10795 {
10796 .eraseblocks = { {4 * 1024, 256} },
10797 .block_erase = spi_block_erase_20,
10798 }, {
10799 .eraseblocks = { {32 * 1024, 32} },
10800 .block_erase = spi_block_erase_52,
10801 }, {
10802 .eraseblocks = { {64 * 1024, 16} },
10803 .block_erase = spi_block_erase_d8,
10804 }, {
10805 .eraseblocks = { {1024 * 1024, 1} },
10806 .block_erase = spi_block_erase_60,
10807 }, {
10808 .eraseblocks = { {1024 * 1024, 1} },
10809 .block_erase = spi_block_erase_c7,
10810 }
10811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010812 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010813 .unlock = spi_disable_blockprotect_bp3_srwd,
10814 .write = spi_chip_write_256,
10815 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10816 .voltage = {2700, 3600},
10817 },
10818
10819 {
10820 .vendor = "Nantronics",
10821 .name = "N25S16",
10822 .bustype = BUS_SPI,
10823 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10824 .model_id = NANTRONICS_N25S16,
10825 .total_size = 2048,
10826 .page_size = 256,
10827 .feature_bits = FEATURE_WRSR_WREN,
10828 .tested = TEST_UNTESTED,
10829 .probe = probe_spi_rdid,
10830 .probe_timing = TIMING_ZERO,
10831 .block_erasers =
10832 {
10833 {
10834 .eraseblocks = { {4 * 1024, 512} },
10835 .block_erase = spi_block_erase_20,
10836 }, {
10837 .eraseblocks = { {64 * 1024, 32} },
10838 .block_erase = spi_block_erase_d8,
10839 }, {
10840 .eraseblocks = { {2048 * 1024, 1} },
10841 .block_erase = spi_block_erase_60,
10842 }, {
10843 .eraseblocks = { {2048 * 1024, 1} },
10844 .block_erase = spi_block_erase_c7,
10845 }
10846 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010847 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010848 .unlock = spi_disable_blockprotect_bp3_srwd,
10849 .write = spi_chip_write_256,
10850 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10851 .voltage = {2700, 3600},
10852 },
10853
10854 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010855 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010856 .name = "Pm25LD256C",
10857 .bustype = BUS_SPI,
10858 .manufacture_id = PMC_ID,
10859 .model_id = PMC_PM25LD256C,
10860 .total_size = 32,
10861 .page_size = 256,
10862 .feature_bits = FEATURE_WRSR_WREN,
10863 .tested = TEST_UNTESTED,
10864 .probe = probe_spi_rdid,
10865 .probe_timing = TIMING_ZERO,
10866 .block_erasers =
10867 {
10868 {
10869 .eraseblocks = { {4 * 1024, 8} },
10870 .block_erase = spi_block_erase_20,
10871 }, {
10872 .eraseblocks = { {4 * 1024, 8} },
10873 .block_erase = spi_block_erase_d7,
10874 }, {
10875 .eraseblocks = { {32 * 1024, 1} },
10876 .block_erase = spi_block_erase_d8,
10877 }, {
10878 .eraseblocks = { {32 * 1024, 1} },
10879 .block_erase = spi_block_erase_60,
10880 }, {
10881 .eraseblocks = { {32 * 1024, 1} },
10882 .block_erase = spi_block_erase_c7,
10883 }
10884 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010885 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010886 .unlock = spi_disable_blockprotect,
10887 .write = spi_chip_write_256,
10888 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10889 .voltage = {2700, 3600},
10890 },
10891 {
10892 .vendor = "PMC",
10893 .name = "Pm25LD512(C)",
10894 .bustype = BUS_SPI,
10895 .manufacture_id = PMC_ID,
10896 .model_id = PMC_PM25LD512,
10897 .total_size = 64,
10898 .page_size = 256,
10899 .feature_bits = FEATURE_WRSR_WREN,
10900 .tested = TEST_OK_PREW,
10901 .probe = probe_spi_rdid,
10902 .probe_timing = TIMING_ZERO,
10903 .block_erasers =
10904 {
10905 {
10906 .eraseblocks = { {4 * 1024, 16} },
10907 .block_erase = spi_block_erase_20,
10908 }, {
10909 .eraseblocks = { {4 * 1024, 16} },
10910 .block_erase = spi_block_erase_d7,
10911 }, {
10912 .eraseblocks = { {32 * 1024, 2} },
10913 .block_erase = spi_block_erase_d8,
10914 }, {
10915 .eraseblocks = { {64 * 1024, 1} },
10916 .block_erase = spi_block_erase_60,
10917 }, {
10918 .eraseblocks = { {64 * 1024, 1} },
10919 .block_erase = spi_block_erase_c7,
10920 }
10921 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010922 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010923 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10924 .write = spi_chip_write_256,
10925 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10926 .voltage = {2300, 3600},
10927 },
10928
10929 {
10930 .vendor = "PMC",
10931 .name = "Pm25LD010(C)",
10932 .bustype = BUS_SPI,
10933 .manufacture_id = PMC_ID,
10934 .model_id = PMC_PM25LD010,
10935 .total_size = 128,
10936 .page_size = 256,
10937 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010938 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010939 .probe = probe_spi_rdid,
10940 .probe_timing = TIMING_ZERO,
10941 .block_erasers =
10942 {
10943 {
10944 .eraseblocks = { {4 * 1024, 32} },
10945 .block_erase = spi_block_erase_20,
10946 }, {
10947 .eraseblocks = { {4 * 1024, 32} },
10948 .block_erase = spi_block_erase_d7,
10949 }, {
10950 .eraseblocks = { {32 * 1024, 4} },
10951 .block_erase = spi_block_erase_d8,
10952 }, {
10953 .eraseblocks = { {128 * 1024, 1} },
10954 .block_erase = spi_block_erase_60,
10955 }, {
10956 .eraseblocks = { {128 * 1024, 1} },
10957 .block_erase = spi_block_erase_c7,
10958 }
10959 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010960 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010961 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10962 .write = spi_chip_write_256,
10963 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10964 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10965 },
10966
10967 {
10968 .vendor = "PMC",
10969 .name = "Pm25LD020(C)",
10970 .bustype = BUS_SPI,
10971 .manufacture_id = PMC_ID,
10972 .model_id = PMC_PM25LD020,
10973 .total_size = 256,
10974 .page_size = 256,
10975 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020010976 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010977 .probe = probe_spi_rdid,
10978 .probe_timing = TIMING_ZERO,
10979 .block_erasers =
10980 {
10981 {
10982 .eraseblocks = { {4 * 1024, 64} },
10983 .block_erase = spi_block_erase_20,
10984 }, {
10985 .eraseblocks = { {4 * 1024, 64} },
10986 .block_erase = spi_block_erase_d7,
10987 }, {
10988 .eraseblocks = { {64 * 1024, 4} },
10989 .block_erase = spi_block_erase_d8,
10990 }, {
10991 .eraseblocks = { {256 * 1024, 1} },
10992 .block_erase = spi_block_erase_60,
10993 }, {
10994 .eraseblocks = { {256 * 1024, 1} },
10995 .block_erase = spi_block_erase_c7,
10996 }
10997 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010998 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010999 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11000 .write = spi_chip_write_256,
11001 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11002 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11003 },
11004
11005 {
11006 .vendor = "PMC",
11007 .name = "Pm25LD040(C)",
11008 .bustype = BUS_SPI,
11009 .manufacture_id = PMC_ID,
11010 .model_id = PMC_PM25LV040,
11011 .total_size = 512,
11012 .page_size = 256,
11013 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011014 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011015 .probe = probe_spi_rdid,
11016 .probe_timing = TIMING_ZERO,
11017 .block_erasers =
11018 {
11019 {
11020 .eraseblocks = { {4 * 1024, 128} },
11021 .block_erase = spi_block_erase_20,
11022 }, {
11023 .eraseblocks = { {4 * 1024, 128} },
11024 .block_erase = spi_block_erase_d7,
11025 }, {
11026 .eraseblocks = { {64 * 1024, 8} },
11027 .block_erase = spi_block_erase_d8,
11028 }, {
11029 .eraseblocks = { {512 * 1024, 1} },
11030 .block_erase = spi_block_erase_60,
11031 }, {
11032 .eraseblocks = { {512 * 1024, 1} },
11033 .block_erase = spi_block_erase_c7,
11034 }
11035 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011036 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011037 .unlock = spi_disable_blockprotect,
11038 .write = spi_chip_write_256,
11039 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11040 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11041 },
11042
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011043 {
11044 .vendor = "PMC",
11045 .name = "Pm25LQ020",
11046 .bustype = BUS_SPI,
11047 .manufacture_id = PMC_ID,
11048 .model_id = PMC_PM25LQ020,
11049 .total_size = 256,
11050 .page_size = 256,
11051 /* OTP: 256B total; read 0x4B, write 0xB1 */
11052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11053 .tested = TEST_UNTESTED,
11054 .probe = probe_spi_rdid,
11055 .probe_timing = TIMING_ZERO,
11056 .block_erasers =
11057 {
11058 {
11059 .eraseblocks = { {4 * 1024, 64} },
11060 .block_erase = spi_block_erase_20,
11061 }, {
11062 .eraseblocks = { {4 * 1024, 64} },
11063 .block_erase = spi_block_erase_d7,
11064 }, {
11065 .eraseblocks = { {64 * 1024, 4} },
11066 .block_erase = spi_block_erase_d8,
11067 }, {
11068 .eraseblocks = { {256 * 1024, 1} },
11069 .block_erase = spi_block_erase_60,
11070 }, {
11071 .eraseblocks = { {256 * 1024, 1} },
11072 .block_erase = spi_block_erase_c7,
11073 }
11074 },
11075 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11076 .unlock = spi_disable_blockprotect_bp3_srwd,
11077 .write = spi_chip_write_256,
11078 .read = spi_chip_read,
11079 .voltage = {2300, 3600},
11080 },
11081
11082 {
11083 .vendor = "PMC",
11084 .name = "Pm25LQ040",
11085 .bustype = BUS_SPI,
11086 .manufacture_id = PMC_ID,
11087 .model_id = PMC_PM25LQ040,
11088 .total_size = 512,
11089 .page_size = 256,
11090 /* OTP: 256B total; read 0x4B, write 0xB1 */
11091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11092 .tested = TEST_UNTESTED,
11093 .probe = probe_spi_rdid,
11094 .probe_timing = TIMING_ZERO,
11095 .block_erasers =
11096 {
11097 {
11098 .eraseblocks = { {4 * 1024, 128} },
11099 .block_erase = spi_block_erase_20,
11100 }, {
11101 .eraseblocks = { {4 * 1024, 128} },
11102 .block_erase = spi_block_erase_d7,
11103 }, {
11104 .eraseblocks = { {64 * 1024, 8} },
11105 .block_erase = spi_block_erase_d8,
11106 }, {
11107 .eraseblocks = { {512 * 1024, 1} },
11108 .block_erase = spi_block_erase_60,
11109 }, {
11110 .eraseblocks = { {512 * 1024, 1} },
11111 .block_erase = spi_block_erase_c7,
11112 }
11113 },
11114 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11115 .unlock = spi_disable_blockprotect_bp3_srwd,
11116 .write = spi_chip_write_256,
11117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11118 .voltage = {2300, 3600},
11119 },
11120
11121 {
11122 .vendor = "PMC",
11123 .name = "Pm25LQ080",
11124 .bustype = BUS_SPI,
11125 .manufacture_id = PMC_ID,
11126 .model_id = PMC_PM25LQ080,
11127 .total_size = 1024,
11128 .page_size = 256,
11129 /* OTP: 64B total; read 0x4B, write 0xB1 */
11130 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11131 .tested = TEST_UNTESTED,
11132 .probe = probe_spi_rdid,
11133 .probe_timing = TIMING_ZERO,
11134 .block_erasers =
11135 {
11136 {
11137 .eraseblocks = { {4 * 1024, 256} },
11138 .block_erase = spi_block_erase_20,
11139 }, {
11140 .eraseblocks = { {4 * 1024, 256} },
11141 .block_erase = spi_block_erase_d7,
11142 }, {
11143 .eraseblocks = { {64 * 1024, 16} },
11144 .block_erase = spi_block_erase_d8,
11145 }, {
11146 .eraseblocks = { {1024 * 1024, 1} },
11147 .block_erase = spi_block_erase_60,
11148 }, {
11149 .eraseblocks = { {1024 * 1024, 1} },
11150 .block_erase = spi_block_erase_c7,
11151 }
11152 },
11153 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11154 .unlock = spi_disable_blockprotect_bp3_srwd,
11155 .write = spi_chip_write_256,
11156 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11157 .voltage = {2300, 3600},
11158 },
11159
11160 {
11161 .vendor = "PMC",
11162 .name = "Pm25LQ016",
11163 .bustype = BUS_SPI,
11164 .manufacture_id = PMC_ID,
11165 .model_id = PMC_PM25LQ016,
11166 .total_size = 2048,
11167 .page_size = 256,
11168 /* OTP: 256B total; read 0x4B, write 0xB1 */
11169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11170 .tested = TEST_UNTESTED,
11171 .probe = probe_spi_rdid,
11172 .probe_timing = TIMING_ZERO,
11173 .block_erasers =
11174 {
11175 {
11176 .eraseblocks = { {4 * 1024, 512} },
11177 .block_erase = spi_block_erase_20,
11178 }, {
11179 .eraseblocks = { {4 * 1024, 512} },
11180 .block_erase = spi_block_erase_d7,
11181 }, {
11182 .eraseblocks = { {64 * 1024, 32} },
11183 .block_erase = spi_block_erase_d8,
11184 }, {
11185 .eraseblocks = { {2048 * 1024, 1} },
11186 .block_erase = spi_block_erase_60,
11187 }, {
11188 .eraseblocks = { {2048 * 1024, 1} },
11189 .block_erase = spi_block_erase_c7,
11190 }
11191 },
11192 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11193 .unlock = spi_disable_blockprotect_bp3_srwd,
11194 .write = spi_chip_write_256,
11195 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11196 .voltage = {2300, 3600},
11197 },
11198
11199 {
11200 .vendor = "PMC",
11201 .name = "Pm25LQ032C",
11202 .bustype = BUS_SPI,
11203 .manufacture_id = PMC_ID,
11204 .model_id = PMC_PM25LQ032C,
11205 .total_size = 4096,
11206 .page_size = 256,
11207 /* OTP: 64B total; read 0x4B, write 0xB1 */
11208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011209 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011210 .probe = probe_spi_rdid,
11211 .probe_timing = TIMING_ZERO,
11212 .block_erasers =
11213 {
11214 {
11215 .eraseblocks = { {4 * 1024, 1024} },
11216 .block_erase = spi_block_erase_20,
11217 }, {
11218 .eraseblocks = { {4 * 1024, 1024} },
11219 .block_erase = spi_block_erase_d7,
11220 }, {
11221 .eraseblocks = { {64 * 1024, 64} },
11222 .block_erase = spi_block_erase_d8,
11223 }, {
11224 .eraseblocks = { {4096 * 1024, 1} },
11225 .block_erase = spi_block_erase_60,
11226 }, {
11227 .eraseblocks = { {4096 * 1024, 1} },
11228 .block_erase = spi_block_erase_c7,
11229 }
11230 },
11231 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11232 .unlock = spi_disable_blockprotect_bp3_srwd,
11233 .write = spi_chip_write_256,
11234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11235 .voltage = {2700, 3600},
11236 },
11237
11238 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011239 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011240 .name = "Pm25LV512(A)",
11241 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011242 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011243 .model_id = PMC_PM25LV512,
11244 .total_size = 64,
11245 .page_size = 256,
11246 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000011247 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000011248 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011249 .probe_timing = TIMING_ZERO,
11250 .block_erasers =
11251 {
11252 {
11253 .eraseblocks = { {4 * 1024, 16} },
11254 .block_erase = spi_block_erase_d7,
11255 }, {
11256 .eraseblocks = { {32 * 1024, 2} },
11257 .block_erase = spi_block_erase_d8,
11258 }, {
11259 .eraseblocks = { {64 * 1024, 1} },
11260 .block_erase = spi_block_erase_c7,
11261 }
11262 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011263 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011264 .unlock = spi_disable_blockprotect,
11265 .write = spi_chip_write_256,
11266 .read = spi_chip_read, /* Fast read (0x0B) supported */
11267 .voltage = {2700, 3600},
11268 },
11269
11270 {
11271 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011272 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011273 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011274 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011275 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011276 .total_size = 128,
11277 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011278 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000011279 .tested = TEST_OK_PREW,
11280 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011281 .probe_timing = TIMING_ZERO,
11282 .block_erasers =
11283 {
11284 {
11285 .eraseblocks = { {4 * 1024, 32} },
11286 .block_erase = spi_block_erase_d7,
11287 }, {
11288 .eraseblocks = { {32 * 1024, 4} },
11289 .block_erase = spi_block_erase_d8,
11290 }, {
11291 .eraseblocks = { {128 * 1024, 1} },
11292 .block_erase = spi_block_erase_c7,
11293 }
11294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011295 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011296 .unlock = spi_disable_blockprotect,
11297 .write = spi_chip_write_256,
11298 .read = spi_chip_read, /* Fast read (0x0B) supported */
11299 .voltage = {2700, 3600},
11300 },
11301
11302 {
11303 .vendor = "PMC",
11304 .name = "Pm25LV010A",
11305 .bustype = BUS_SPI,
11306 .manufacture_id = PMC_ID,
11307 .model_id = PMC_PM25LV010,
11308 .total_size = 128,
11309 .page_size = 256,
11310 .feature_bits = FEATURE_WRSR_WREN,
11311 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011312 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011313 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011314 .block_erasers =
11315 {
11316 {
11317 .eraseblocks = { {4 * 1024, 32} },
11318 .block_erase = spi_block_erase_d7,
11319 }, {
11320 .eraseblocks = { {32 * 1024, 4} },
11321 .block_erase = spi_block_erase_d8,
11322 }, {
11323 .eraseblocks = { {128 * 1024, 1} },
11324 .block_erase = spi_block_erase_c7,
11325 }
11326 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011327 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011328 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011329 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011330 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011331 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011332 },
11333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011334 {
11335 .vendor = "PMC",
11336 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011337 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011338 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011339 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011340 .total_size = 256,
11341 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011342 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011343 .tested = TEST_UNTESTED,
11344 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011345 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011346 .block_erasers =
11347 {
11348 {
11349 .eraseblocks = { {4 * 1024, 64} },
11350 .block_erase = spi_block_erase_d7,
11351 }, {
11352 .eraseblocks = { {64 * 1024, 4} },
11353 .block_erase = spi_block_erase_d8,
11354 }, {
11355 .eraseblocks = { {256 * 1024, 1} },
11356 .block_erase = spi_block_erase_c7,
11357 }
11358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011359 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011360 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011361 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011363 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011364 },
11365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011366 {
11367 .vendor = "PMC",
11368 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011369 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011370 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011371 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011372 .total_size = 512,
11373 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011374 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011375 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011376 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011377 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011378 .block_erasers =
11379 {
11380 {
11381 .eraseblocks = { {4 * 1024, 128} },
11382 .block_erase = spi_block_erase_d7,
11383 }, {
11384 .eraseblocks = { {64 * 1024, 8} },
11385 .block_erase = spi_block_erase_d8,
11386 }, {
11387 .eraseblocks = { {512 * 1024, 1} },
11388 .block_erase = spi_block_erase_c7,
11389 }
11390 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011391 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011392 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011393 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011394 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011395 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011396 },
11397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011398 {
11399 .vendor = "PMC",
11400 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011401 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011402 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011403 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011404 .total_size = 1024,
11405 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011406 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011407 .tested = TEST_UNTESTED,
11408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011409 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011410 .block_erasers =
11411 {
11412 {
11413 .eraseblocks = { {4 * 1024, 256} },
11414 .block_erase = spi_block_erase_d7,
11415 }, {
11416 .eraseblocks = { {4 * 1024, 256} },
11417 .block_erase = spi_block_erase_20,
11418 }, {
11419 .eraseblocks = { {64 * 1024, 16} },
11420 .block_erase = spi_block_erase_d8,
11421 }, {
11422 .eraseblocks = { {1024 * 1024, 1} },
11423 .block_erase = spi_block_erase_60,
11424 }, {
11425 .eraseblocks = { {1024 * 1024, 1} },
11426 .block_erase = spi_block_erase_c7,
11427 }
11428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011429 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011430 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011431 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011432 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011433 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011434 },
11435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011436 {
11437 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011438 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011439 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011440 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011441 .model_id = PMC_PM25LV016B,
11442 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011443 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011444 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011445 .tested = TEST_UNTESTED,
11446 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011447 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011448 .block_erasers =
11449 {
11450 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011451 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000011452 .block_erase = spi_block_erase_d7,
11453 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011454 .eraseblocks = { {4 * 1024, 512} },
11455 .block_erase = spi_block_erase_20,
11456 }, {
11457 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000011458 .block_erase = spi_block_erase_d8,
11459 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011460 .eraseblocks = { {2 * 1024 * 1024, 1} },
11461 .block_erase = spi_block_erase_60,
11462 }, {
11463 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011464 .block_erase = spi_block_erase_c7,
11465 }
11466 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011467 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011468 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011469 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011470 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011471 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011472 },
11473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011474 {
11475 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011476 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011477 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011478 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011479 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011480 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011481 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011482 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011483 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011484 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011485 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011486 .block_erasers =
11487 {
11488 {
11489 .eraseblocks = {
11490 {128 * 1024, 1},
11491 {96 * 1024, 1},
11492 {8 * 1024, 2},
11493 {16 * 1024, 1},
11494 },
Sean Nelson35727f72010-01-28 23:55:12 +000011495 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011496 }, {
11497 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011498 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011499 },
11500 },
Sean Nelson35727f72010-01-28 23:55:12 +000011501 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011503 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011504 },
11505
11506 {
11507 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011508 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011509 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011510 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011511 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011512 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011513 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011514 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011515 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011516 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011517 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011518 .block_erasers =
11519 {
11520 {
11521 .eraseblocks = {
11522 {16 * 1024, 1},
11523 {8 * 1024, 2},
11524 {96 * 1024, 1},
11525 {128 * 1024, 1},
11526 },
Sean Nelson35727f72010-01-28 23:55:12 +000011527 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011528 }, {
11529 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011530 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011531 },
11532 },
Sean Nelson35727f72010-01-28 23:55:12 +000011533 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011535 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011536 },
11537
11538 {
11539 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011540 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011541 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011542 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011543 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011544 .total_size = 128,
11545 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011546 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011547 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011548 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011549 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011550 .block_erasers =
11551 {
11552 {
11553 .eraseblocks = { {4 * 1024, 32} },
11554 .block_erase = erase_sector_jedec,
11555 }, {
11556 .eraseblocks = { {64 * 1024, 2} },
11557 .block_erase = erase_block_jedec,
11558 }, {
11559 .eraseblocks = { {128 * 1024, 1} },
11560 .block_erase = erase_chip_block_jedec,
11561 }
11562 },
Sean Nelson35727f72010-01-28 23:55:12 +000011563 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011565 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011566 },
11567
11568 {
11569 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011570 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011571 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011572 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011573 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011574 .total_size = 256,
11575 .page_size = 4096,
11576 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11577 .tested = TEST_UNTESTED,
11578 .probe = probe_jedec,
11579 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11580 .block_erasers =
11581 {
11582 {
11583 .eraseblocks = { {4 * 1024, 64} },
11584 .block_erase = erase_sector_jedec,
11585 }, {
11586 .eraseblocks = { {64 * 1024, 4} },
11587 .block_erase = erase_block_jedec,
11588 }, {
11589 .eraseblocks = { {256 * 1024, 1} },
11590 .block_erase = erase_chip_block_jedec,
11591 }
11592 },
11593 .write = write_jedec_1,
11594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011595 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011596 },
11597
11598 {
11599 .vendor = "PMC",
11600 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011601 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011602 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011603 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011604 .total_size = 512,
11605 .page_size = 4096,
11606 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011607 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011608 .probe = probe_jedec,
11609 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11610 .block_erasers =
11611 {
11612 {
11613 .eraseblocks = { {4 * 1024, 128} },
11614 .block_erase = erase_sector_jedec,
11615 }, {
11616 .eraseblocks = { {64 * 1024, 8} },
11617 .block_erase = erase_block_jedec,
11618 }, {
11619 .eraseblocks = { {512 * 1024, 1} },
11620 .block_erase = erase_chip_block_jedec,
11621 }
11622 },
11623 .write = write_jedec_1,
11624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011625 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011626 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011627
11628 {
11629 .vendor = "PMC",
11630 .name = "Pm39LV512",
11631 .bustype = BUS_PARALLEL,
11632 .manufacture_id = PMC_ID_NOPREFIX,
11633 .model_id = PMC_PM39LV512,
11634 .total_size = 64,
11635 .page_size = 4096,
11636 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11637 .tested = TEST_OK_PREW,
11638 .probe = probe_jedec,
11639 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11640 .block_erasers =
11641 {
11642 {
11643 .eraseblocks = { {4 * 1024, 16} },
11644 .block_erase = erase_sector_jedec,
11645 }, {
11646 .eraseblocks = { {64 * 1024, 1} },
11647 .block_erase = erase_block_jedec,
11648 }, {
11649 .eraseblocks = { {64 * 1024, 1} },
11650 .block_erase = erase_chip_block_jedec,
11651 }
11652 },
11653 .write = write_jedec_1,
11654 .read = read_memmapped,
11655 .voltage = {2700, 3600},
11656 },
11657
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011658 {
11659 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011660 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011661 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011662 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011663 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011664 .total_size = 256,
11665 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011666 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011667 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011668 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011669 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011670 .block_erasers =
11671 {
11672 {
11673 .eraseblocks = { {4 * 1024, 64} },
11674 .block_erase = erase_sector_jedec,
11675 }, {
11676 .eraseblocks = { {16 * 1024, 16} },
11677 .block_erase = erase_block_jedec,
11678 }, {
11679 .eraseblocks = { {256 * 1024, 1} },
11680 .block_erase = erase_chip_block_jedec,
11681 }
11682 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011683 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011686 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011687 },
11688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011689 {
11690 .vendor = "PMC",
11691 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011692 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011693 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011694 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011695 .total_size = 512,
11696 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011697 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011698 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011699 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011700 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011701 .block_erasers =
11702 {
11703 {
11704 .eraseblocks = { {4 * 1024, 128} },
11705 .block_erase = erase_sector_jedec,
11706 }, {
11707 .eraseblocks = { {64 * 1024, 8} },
11708 .block_erase = erase_block_jedec,
11709 }, {
11710 .eraseblocks = { {512 * 1024, 1} },
11711 .block_erase = erase_chip_block_jedec,
11712 }
11713 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011714 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011715 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011716 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011717 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011718 },
11719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011720 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011721 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011722 .name = "LE25FW106",
11723 .bustype = BUS_SPI,
11724 .manufacture_id = SANYO_ID,
11725 .model_id = SANYO_LE25FW106,
11726 .total_size = 128,
11727 .page_size = 256,
11728 .feature_bits = FEATURE_WRSR_WREN,
11729 .tested = TEST_OK_PREW,
11730 .probe = probe_spi_res2,
11731 .probe_timing = TIMING_ZERO,
11732 .block_erasers = {
11733 {
11734 .eraseblocks = { {2 * 1024, 64} },
11735 .block_erase = spi_block_erase_d7,
11736 }, {
11737 .eraseblocks = { {32 * 1024, 4} },
11738 .block_erase = spi_block_erase_d8,
11739 }, {
11740 .eraseblocks = { {128 * 1024, 1} },
11741 .block_erase = spi_block_erase_c7,
11742 }
11743 },
11744 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11745 .unlock = spi_disable_blockprotect_bp1_srwd,
11746 .write = spi_chip_write_256,
11747 .read = spi_chip_read,
11748 .voltage = {2700, 3600},
11749 },
11750
11751 {
11752 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011753 .name = "LE25FW406A",
11754 .bustype = BUS_SPI,
11755 .manufacture_id = SANYO_ID,
11756 .model_id = SANYO_LE25FW406A,
11757 .total_size = 512,
11758 .page_size = 256,
11759 .feature_bits = FEATURE_WRSR_WREN,
11760 .tested = TEST_OK_PREW,
11761 .probe = probe_spi_res2,
11762 .probe_timing = TIMING_ZERO,
11763 .block_erasers = {
11764 {
11765 .eraseblocks = { {4 * 1024, 128} },
11766 .block_erase = spi_block_erase_d7,
11767 }, {
11768 .eraseblocks = { {64 * 1024, 8} },
11769 .block_erase = spi_block_erase_d8,
11770 }, {
11771 .eraseblocks = { {512 * 1024, 1} },
11772 .block_erase = spi_block_erase_c7,
11773 }
11774 },
11775 .printlock = spi_prettyprint_status_register_plain,
11776 .unlock = spi_disable_blockprotect,
11777 .write = spi_chip_write_256,
11778 .read = spi_chip_read,
11779 .voltage = {2700, 3600},
11780 },
11781
11782 {
11783 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011784 .name = "LE25FU406B",
11785 .bustype = BUS_SPI,
11786 .manufacture_id = SANYO_ID,
11787 .model_id = SANYO_LE25FU406B,
11788 .total_size = 512,
11789 .page_size = 256,
11790 .feature_bits = FEATURE_WRSR_WREN,
11791 .tested = TEST_OK_PREW,
11792 .probe = probe_spi_res2,
11793 .probe_timing = TIMING_ZERO,
11794 .block_erasers = {
11795 {
11796 .eraseblocks = { {4 * 1024, 128} },
11797 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011798 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011799 .eraseblocks = { {64 * 1024, 8} },
11800 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011801 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011802 .eraseblocks = { {512 * 1024, 1} },
11803 .block_erase = spi_block_erase_c7,
11804 }
11805 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011806 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011807 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11808 .write = spi_chip_write_256,
11809 .read = spi_chip_read,
11810 .voltage = {2300, 3600},
11811 },
11812
11813 {
11814 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011815 .name = "LE25FU406C/LE25U40CMC",
11816 .bustype = BUS_SPI,
11817 .manufacture_id = SANYO_ID,
11818 .model_id = SANYO_LE25FU406C,
11819 .total_size = 512,
11820 .page_size = 256,
11821 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsce2c09d2018-09-30 20:22:02 +020011822 .tested = TEST_OK_PREW,
Stefan Tauner2f055df2015-12-25 22:13:15 +000011823 .probe = probe_spi_rdid,
11824 .probe_timing = TIMING_ZERO,
11825 .block_erasers = {
11826 {
11827 .eraseblocks = { {4 * 1024, 128} },
11828 .block_erase = spi_block_erase_20,
11829 }, {
11830 .eraseblocks = { {4 * 1024, 128} },
11831 .block_erase = spi_block_erase_d7,
11832 }, {
11833 .eraseblocks = { {64 * 1024, 8} },
11834 .block_erase = spi_block_erase_d8,
11835 }, {
11836 .eraseblocks = { {512 * 1024, 1} },
11837 .block_erase = spi_block_erase_60,
11838 }, {
11839 .eraseblocks = { {512 * 1024, 1} },
11840 .block_erase = spi_block_erase_c7,
11841 }
11842 },
11843 .printlock = spi_prettyprint_status_register_bp2_srwd,
11844 .unlock = spi_disable_blockprotect_bp2_srwd,
11845 .write = spi_chip_write_256,
11846 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11847 .voltage = {2300, 3600},
11848 },
11849
11850 {
11851 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011852 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011853 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011854 .manufacture_id = SANYO_ID,
11855 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011856 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011857 .page_size = 256,
11858 .tested = TEST_UNTESTED,
11859 .probe = probe_spi_rdid,
11860 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011861 .block_erasers =
11862 {
11863 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011864 .eraseblocks = { {256, 1024} },
11865 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011866 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011867 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011868 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011869 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011870 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011871 .block_erase = spi_block_erase_c7,
11872 }
11873 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011874 .printlock = spi_prettyprint_status_register_default_welwip,
11875 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011876 .write = spi_chip_write_256,
11877 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011878 .voltage = {2700, 3600},
11879 },
11880
11881 {
11882 .vendor = "Sanyo",
11883 .name = "LE25FW403A",
11884 .bustype = BUS_SPI,
11885 .manufacture_id = SANYO_ID,
11886 .model_id = SANYO_LE25FW403A,
11887 .total_size = 512,
11888 .page_size = 256,
11889 .tested = TEST_UNTESTED,
11890 .probe = probe_spi_rdid,
11891 .probe_timing = TIMING_ZERO,
11892 .block_erasers = {
11893 {
11894 .eraseblocks = { {256, 2 * 1024} },
11895 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011896 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011897 .eraseblocks = { {64 * 1024, 8} },
11898 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011899 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011900 .eraseblocks = { {512 * 1024, 1} },
11901 .block_erase = spi_block_erase_c7,
11902 }
11903 },
11904 .printlock = spi_prettyprint_status_register_default_welwip,
11905 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11906 .write = spi_chip_write_256,
11907 .read = spi_chip_read,
11908 .voltage = {2700, 3600},
11909 },
11910
11911 {
11912 .vendor = "Sanyo",
11913 .name = "LE25FW418A",
11914 .bustype = BUS_SPI,
11915 .manufacture_id = SANYO_ID,
11916 .model_id = SANYO_LE25FW418A,
11917 .total_size = 512,
11918 .page_size = 256,
11919 .feature_bits = FEATURE_WRSR_WREN,
11920 .tested = TEST_UNTESTED,
11921 .probe = probe_spi_res2,
11922 .probe_timing = TIMING_ZERO,
11923 .block_erasers = {
11924 {
11925 .eraseblocks = { {4 * 1024, 128} },
11926 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011927 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011928 .eraseblocks = { {64 * 1024, 8} },
11929 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011930 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011931 .eraseblocks = { {512 * 1024, 1} },
11932 .block_erase = spi_block_erase_c7,
11933 }
11934 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011935 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011936 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11937 .write = spi_chip_write_256,
11938 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11939 .voltage = {2700, 3600},
11940 },
11941
11942 {
11943 .vendor = "Sanyo",
11944 .name = "LE25FW806",
11945 .bustype = BUS_SPI,
11946 .manufacture_id = SANYO_ID,
11947 .model_id = SANYO_LE25FW806,
11948 .total_size = 1024,
11949 .page_size = 256,
11950 .feature_bits = FEATURE_WRSR_WREN,
11951 .tested = TEST_UNTESTED,
11952 .probe = probe_spi_res2,
11953 .probe_timing = TIMING_ZERO,
11954 .block_erasers = {
11955 {
11956 .eraseblocks = { {4 * 1024, 256} },
11957 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011958 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011959 .eraseblocks = { {4 * 1024, 256} },
11960 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011961 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011962 .eraseblocks = { {64 * 1024, 16} },
11963 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011964 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011965 .eraseblocks = { {1024 * 1024, 1} },
11966 .block_erase = spi_block_erase_c7,
11967 }
11968 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011969 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011970 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11971 .write = spi_chip_write_256,
11972 .read = spi_chip_read,
11973 .voltage = {2700, 3600},
11974 },
11975
11976 {
11977 .vendor = "Sanyo",
11978 .name = "LE25FW808",
11979 .bustype = BUS_SPI,
11980 .manufacture_id = SANYO_ID,
11981 .model_id = SANYO_LE25FW808,
11982 .total_size = 1024,
11983 .page_size = 256,
11984 .feature_bits = FEATURE_WRSR_WREN,
11985 .tested = TEST_UNTESTED,
11986 .probe = probe_spi_res2,
11987 .probe_timing = TIMING_ZERO,
11988 .block_erasers = {
11989 {
11990 .eraseblocks = { {8 * 1024, 128} },
11991 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011992 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011993 .eraseblocks = { {64 * 1024, 16} },
11994 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011995 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011996 .eraseblocks = { {1024 * 1024, 1} },
11997 .block_erase = spi_block_erase_c7,
11998 }
11999 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012000 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000012001 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
12002 .write = spi_chip_write_256,
12003 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
12004 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000012005 },
12006
12007 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012008 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000012009 .name = "LH28F008BJT-BTLZ1",
12010 .bustype = BUS_PARALLEL,
12011 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000012012 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000012013 .total_size = 1024,
12014 .page_size = 64 * 1024,
12015 .tested = TEST_OK_PREW,
12016 .probe = probe_82802ab,
12017 .probe_timing = TIMING_ZERO,
12018 .block_erasers =
12019 {
12020 {
12021 .eraseblocks = {
12022 {8 * 1024, 8},
12023 {64 * 1024, 15}
12024 },
12025 .block_erase = erase_block_82802ab,
12026 }, {
12027 .eraseblocks = { {1024 * 1024, 1} },
12028 .block_erase = erase_sector_49lfxxxc,
12029 }
12030 },
12031 .unlock = unlock_lh28f008bjt,
12032 .write = write_82802ab,
12033 .read = read_memmapped,
12034 .voltage = {2700, 3600},
12035 },
12036
12037 {
12038 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012039 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012040 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012041 .manufacture_id = SHARP_ID,
12042 .model_id = SHARP_LHF00L04,
12043 .total_size = 1024,
12044 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012045 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012046 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012047 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012048 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012049 .block_erasers =
12050 {
12051 {
12052 .eraseblocks = {
12053 {64 * 1024, 15},
12054 {8 * 1024, 8}
12055 },
Sean Nelson28accc22010-03-19 18:47:06 +000012056 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012057 }, {
12058 .eraseblocks = {
12059 {1024 * 1024, 1}
12060 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000012061 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000012062 },
12063 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012064 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012065 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012067 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012068 },
12069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012070 {
12071 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000012072 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012073 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000012074 .manufacture_id = SPANSION_ID,
12075 .model_id = SPANSION_S25FL004A,
12076 .total_size = 512,
12077 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012078 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000012079 .tested = TEST_UNTESTED,
12080 .probe = probe_spi_rdid,
12081 .probe_timing = TIMING_ZERO,
12082 .block_erasers =
12083 {
12084 {
12085 .eraseblocks = { {64 * 1024, 8} },
12086 .block_erase = spi_block_erase_d8,
12087 }, {
12088 .eraseblocks = { {512 * 1024, 1} },
12089 .block_erase = spi_block_erase_c7,
12090 }
12091 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012092 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000012093 .unlock = spi_disable_blockprotect,
12094 .write = spi_chip_write_256,
12095 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012096 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000012097 },
12098
12099 {
12100 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000012101 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012102 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000012103 .manufacture_id = SPANSION_ID,
12104 .model_id = SPANSION_S25FL008A,
12105 .total_size = 1024,
12106 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012107 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012108 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000012109 .probe = probe_spi_rdid,
12110 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000012111 .block_erasers =
12112 {
12113 {
12114 .eraseblocks = { {64 * 1024, 16} },
12115 .block_erase = spi_block_erase_d8,
12116 }, {
12117 .eraseblocks = { {1024 * 1024, 1} },
12118 .block_erase = spi_block_erase_c7,
12119 }
12120 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012122 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000012123 .write = spi_chip_write_256,
12124 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012125 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000012126 },
12127
12128 {
12129 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012130 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012131 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012132 .manufacture_id = SPANSION_ID,
12133 .model_id = SPANSION_S25FL016A,
12134 .total_size = 2048,
12135 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012136 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012137 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012138 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012139 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012140 .block_erasers =
12141 {
12142 {
12143 .eraseblocks = { {64 * 1024, 32} },
12144 .block_erase = spi_block_erase_d8,
12145 }, {
12146 .eraseblocks = { {2 * 1024 * 1024, 1} },
12147 .block_erase = spi_block_erase_c7,
12148 }
12149 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012150 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012151 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012152 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012153 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012154 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012155 },
12156
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012157 {
Rudy Hostf4e57772010-11-29 00:37:49 +000012158 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012159 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012160 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000012161 .manufacture_id = SPANSION_ID,
12162 .model_id = SPANSION_S25FL032A,
12163 .total_size = 4096,
12164 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012165 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012166 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000012167 .probe = probe_spi_rdid,
12168 .probe_timing = TIMING_ZERO,
12169 .block_erasers =
12170 {
12171 {
12172 .eraseblocks = { {64 * 1024, 64} },
12173 .block_erase = spi_block_erase_d8,
12174 }, {
12175 .eraseblocks = { {4 * 1024 * 1024, 1} },
12176 .block_erase = spi_block_erase_c7,
12177 }
12178 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000012180 .unlock = spi_disable_blockprotect,
12181 .write = spi_chip_write_256,
12182 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012183 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000012184 },
12185
12186 {
12187 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012188 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012189 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000012190 .manufacture_id = SPANSION_ID,
12191 .model_id = SPANSION_S25FL064A,
12192 .total_size = 8192,
12193 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012194 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000012195 .tested = TEST_OK_PREW,
12196 .probe = probe_spi_rdid,
12197 .probe_timing = TIMING_ZERO,
12198 .block_erasers =
12199 {
12200 {
12201 .eraseblocks = { {64 * 1024, 128} },
12202 .block_erase = spi_block_erase_d8,
12203 }, {
12204 .eraseblocks = { {8 * 1024 * 1024, 1} },
12205 .block_erase = spi_block_erase_c7,
12206 }
12207 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000012209 .unlock = spi_disable_blockprotect,
12210 .write = spi_chip_write_256,
12211 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012212 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000012213 },
12214
12215 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012216 .vendor = "Spansion",
12217 .name = "S25FL204K",
12218 .bustype = BUS_SPI,
12219 .manufacture_id = SPANSION_ID,
12220 .model_id = SPANSION_S25FL204,
12221 .total_size = 512,
12222 .page_size = 256,
12223 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012224 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012225 .probe = probe_spi_rdid,
12226 .probe_timing = TIMING_ZERO,
12227 .block_erasers = {
12228 {
12229 .eraseblocks = { {4 * 1024, 128} },
12230 .block_erase = spi_block_erase_20,
12231 }, {
12232 .eraseblocks = { {64 * 1024, 8} },
12233 .block_erase = spi_block_erase_d8,
12234 }, {
12235 .eraseblocks = { { 512 * 1024, 1} },
12236 .block_erase = spi_block_erase_60,
12237 }, {
12238 .eraseblocks = { { 512 * 1024, 1} },
12239 .block_erase = spi_block_erase_c7,
12240 }
12241 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012242 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012243 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012244 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012245 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012246 .voltage = {2700, 3600},
12247 },
12248
12249 {
12250 .vendor = "Spansion",
12251 .name = "S25FL208K",
12252 .bustype = BUS_SPI,
12253 .manufacture_id = SPANSION_ID,
12254 .model_id = SPANSION_S25FL208,
12255 .total_size = 1024,
12256 .page_size = 256,
12257 .feature_bits = FEATURE_WRSR_WREN,
Nico Huber1a7fb6e2018-10-02 20:34:13 +020012258 .tested = TEST_OK_PREW,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012259 .probe = probe_spi_rdid,
12260 .probe_timing = TIMING_ZERO,
12261 .block_erasers = {
12262 {
12263 .eraseblocks = { {4 * 1024, 256} },
12264 .block_erase = spi_block_erase_20,
12265 }, {
12266 .eraseblocks = { {64 * 1024, 16} },
12267 .block_erase = spi_block_erase_d8,
12268 }, {
12269 .eraseblocks = { { 1024 * 1024, 1} },
12270 .block_erase = spi_block_erase_60,
12271 }, {
12272 .eraseblocks = { { 1024 * 1024, 1} },
12273 .block_erase = spi_block_erase_c7,
12274 }
12275 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012276 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012277 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012278 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012279 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012280 .voltage = {2700, 3600},
12281 },
12282
12283 {
12284 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000012285 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012286 .bustype = BUS_SPI,
12287 .manufacture_id = SPANSION_ID,
12288 .model_id = SPANSION_S25FL216,
12289 .total_size = 2048,
12290 .page_size = 256,
12291 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
12292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12293 .tested = TEST_UNTESTED,
12294 .probe = probe_spi_rdid,
12295 .probe_timing = TIMING_ZERO,
12296 .block_erasers = {
12297 {
12298 .eraseblocks = { {4 * 1024, 512} },
12299 .block_erase = spi_block_erase_20,
12300 }, {
12301 .eraseblocks = { {64 * 1024, 32} },
12302 .block_erase = spi_block_erase_d8,
12303 }, {
12304 .eraseblocks = { { 2048 * 1024, 1} },
12305 .block_erase = spi_block_erase_60,
12306 }, {
12307 .eraseblocks = { { 2048 * 1024, 1} },
12308 .block_erase = spi_block_erase_c7,
12309 }
12310 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012311 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012312 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012313 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012314 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012315 .voltage = {2700, 3600},
12316 },
12317
12318 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012319 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000012320 .name = "S25FL132K",
12321 .bustype = BUS_SPI,
12322 .manufacture_id = SPANSION_ID,
12323 .model_id = SPANSION_S25FL132K,
12324 .total_size = 4096,
12325 .page_size = 256,
12326 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12328 .tested = TEST_UNTESTED,
12329 .probe = probe_spi_rdid,
12330 .probe_timing = TIMING_ZERO,
12331 .block_erasers = {
12332 {
12333 .eraseblocks = { {4 * 1024, 1024} },
12334 .block_erase = spi_block_erase_20,
12335 }, {
12336 .eraseblocks = { {64 * 1024, 64} },
12337 .block_erase = spi_block_erase_d8,
12338 }, {
12339 .eraseblocks = { { 4096 * 1024, 1} },
12340 .block_erase = spi_block_erase_60,
12341 }, {
12342 .eraseblocks = { { 4096 * 1024, 1} },
12343 .block_erase = spi_block_erase_c7,
12344 }
12345 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012346 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012347 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12348 .write = spi_chip_write_256,
12349 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12350 .voltage = {2700, 3600},
12351 },
12352
12353 {
12354 .vendor = "Spansion",
12355 .name = "S25FL164K",
12356 .bustype = BUS_SPI,
12357 .manufacture_id = SPANSION_ID,
12358 .model_id = SPANSION_S25FL164K,
12359 .total_size = 8192,
12360 .page_size = 256,
12361 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12362 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12363 .tested = TEST_OK_PREW,
12364 .probe = probe_spi_rdid,
12365 .probe_timing = TIMING_ZERO,
12366 .block_erasers = {
12367 {
12368 .eraseblocks = { {4 * 1024, 2048} },
12369 .block_erase = spi_block_erase_20,
12370 }, {
12371 .eraseblocks = { {64 * 1024, 128} },
12372 .block_erase = spi_block_erase_d8,
12373 }, {
12374 .eraseblocks = { { 8192 * 1024, 1} },
12375 .block_erase = spi_block_erase_60,
12376 }, {
12377 .eraseblocks = { { 8192 * 1024, 1} },
12378 .block_erase = spi_block_erase_c7,
12379 }
12380 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012381 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012382 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12383 .write = spi_chip_write_256,
12384 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12385 .voltage = {2700, 3600},
12386 },
12387
12388 {
12389 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000012390 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12391 .bustype = BUS_SPI,
12392 .manufacture_id = SPANSION_ID,
12393 .model_id = SPANSION_S25FL128,
12394 .total_size = 16384,
12395 .page_size = 256,
12396 /* supports 4B addressing */
12397 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12399 .tested = TEST_OK_PREW,
12400 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
12401 .probe = probe_spi_rdid,
12402 .probe_timing = TIMING_ZERO,
12403 .block_erasers = {
12404 {
12405 /* This chip supports erasing of 32 so-called "parameter sectors" with
12406 * opcode 0x20 which may be configured to be on top or bottom of the address
12407 * space. Trying to access an address outside these 4kB blocks does have no
12408 * effect on the memory contents, e.g.
12409 .eraseblocks = {
12410 {4 * 1024, 32},
12411 {64 * 1024, 254} // inaccessible
12412 },
12413 .block_erase = spi_block_erase_20,
12414 }, { */
12415 .eraseblocks = { { 64 * 1024, 256} },
12416 .block_erase = spi_block_erase_d8,
12417 }, {
12418 .eraseblocks = { { 16384 * 1024, 1} },
12419 .block_erase = spi_block_erase_60,
12420 }, {
12421 .eraseblocks = { { 16384 * 1024, 1} },
12422 .block_erase = spi_block_erase_c7,
12423 }
12424 },
12425 .printlock = spi_prettyprint_status_register_bp2_srwd,
12426 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12427 .write = spi_chip_write_256, /* Multi I/O supported */
12428 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12429 .voltage = {2700, 3600},
12430 },
12431
12432 {
12433 .vendor = "Spansion",
12434 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
12435 .bustype = BUS_SPI,
12436 .manufacture_id = SPANSION_ID,
12437 .model_id = SPANSION_S25FL128,
12438 .total_size = 16384,
12439 .page_size = 512,
12440 /* supports 4B addressing */
12441 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12442 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12443 .tested = TEST_UNTESTED,
12444 .probe = probe_spi_rdid,
12445 .probe_timing = TIMING_ZERO,
12446 .block_erasers = {
12447 {
12448 .eraseblocks = { {256 * 1024, 64} },
12449 .block_erase = spi_block_erase_d8,
12450 }, {
12451 .eraseblocks = { { 16384 * 1024, 1} },
12452 .block_erase = spi_block_erase_60,
12453 }, {
12454 .eraseblocks = { { 16384 * 1024, 1} },
12455 .block_erase = spi_block_erase_c7,
12456 }
12457 },
12458 .printlock = spi_prettyprint_status_register_bp2_srwd,
12459 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12460 .write = spi_chip_write_256, /* Multi I/O supported */
12461 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12462 .voltage = {2700, 3600},
12463 },
12464
12465 {
12466 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000012467 .name = "S25FL128P......0", /* uniform 64 kB sectors */
12468 .bustype = BUS_SPI,
12469 .manufacture_id = SPANSION_ID,
12470 .model_id = SPANSION_S25FL128,
12471 .total_size = 16384,
12472 .page_size = 256,
12473 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons3eb5a8c2018-10-02 01:21:24 +020012474 .tested = TEST_OK_PREW,
Stefan Tauner88b19252014-08-06 14:36:27 +000012475 .probe = probe_spi_rdid,
12476 .probe_timing = TIMING_ZERO,
12477 .block_erasers = {
12478 {
12479 .eraseblocks = { {64 * 1024, 256} },
12480 .block_erase = spi_block_erase_20,
12481 }, {
12482 .eraseblocks = { {64 * 1024, 256} },
12483 .block_erase = spi_block_erase_d8,
12484 }, {
12485 .eraseblocks = { { 16384 * 1024, 1} },
12486 .block_erase = spi_block_erase_60,
12487 }, {
12488 .eraseblocks = { { 16384 * 1024, 1} },
12489 .block_erase = spi_block_erase_c7,
12490 }
12491 },
12492 .printlock = spi_prettyprint_status_register_bp3_srwd,
12493 .unlock = spi_disable_blockprotect_bp3_srwd,
12494 .write = spi_chip_write_256,
12495 .read = spi_chip_read, /* Fast read (0x0B) supported */
12496 .voltage = {2700, 3600},
12497 },
12498
12499 {
12500 .vendor = "Spansion",
12501 .name = "S25FL128P......1", /* uniform 256kB sectors */
12502 .bustype = BUS_SPI,
12503 .manufacture_id = SPANSION_ID,
12504 .model_id = SPANSION_S25FL128,
12505 .total_size = 16384,
12506 .page_size = 256,
12507 .feature_bits = FEATURE_WRSR_WREN,
12508 .tested = TEST_UNTESTED,
12509 .probe = probe_spi_rdid,
12510 .probe_timing = TIMING_ZERO,
12511 .block_erasers = {
12512 {
12513 .eraseblocks = { {256 * 1024, 64} },
12514 .block_erase = spi_block_erase_d8,
12515 }, {
12516 .eraseblocks = { { 16384 * 1024, 1} },
12517 .block_erase = spi_block_erase_c7,
12518 }
12519 },
12520 .printlock = spi_prettyprint_status_register_bp2_srwd,
12521 .unlock = spi_disable_blockprotect_bp2_srwd,
12522 .write = spi_chip_write_256,
12523 .read = spi_chip_read, /* Fast read (0x0B) supported */
12524 .voltage = {2700, 3600},
12525 },
12526
12527 {
12528 .vendor = "Spansion",
12529 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012530 .bustype = BUS_SPI,
12531 .manufacture_id = SPANSION_ID,
12532 .model_id = SPANSION_S25FL128,
12533 .total_size = 16384,
12534 .page_size = 256,
12535 /* supports 4B addressing */
12536 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12537 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012538 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012539 .probe = probe_spi_rdid,
12540 .probe_timing = TIMING_ZERO,
12541 .block_erasers = {
12542 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012543 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12544 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12545 * have no effect on the memory contents, but sets a flag in the SR.
12546 .eraseblocks = {
12547 {4 * 1024, 32},
12548 {64 * 1024, 254} // inaccessible
12549 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012550 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012551 }, { */
12552 .eraseblocks = { { 64 * 1024, 256} },
12553 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012554 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012555 .eraseblocks = { { 16384 * 1024, 1} },
12556 .block_erase = spi_block_erase_60,
12557 }, {
12558 .eraseblocks = { { 16384 * 1024, 1} },
12559 .block_erase = spi_block_erase_c7,
12560 }
12561 },
12562 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12563 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12564 .write = spi_chip_write_256, /* Multi I/O supported */
12565 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12566 .voltage = {2700, 3600},
12567 },
12568
12569 {
12570 .vendor = "Spansion",
12571 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12572 .bustype = BUS_SPI,
12573 .manufacture_id = SPANSION_ID,
12574 .model_id = SPANSION_S25FL128,
12575 .total_size = 16384,
12576 .page_size = 512,
12577 /* supports 4B addressing */
12578 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12580 .tested = TEST_UNTESTED,
12581 .probe = probe_spi_rdid,
12582 .probe_timing = TIMING_ZERO,
12583 .block_erasers = {
12584 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012585 .eraseblocks = { {256 * 1024, 64} },
12586 .block_erase = spi_block_erase_d8,
12587 }, {
12588 .eraseblocks = { { 16384 * 1024, 1} },
12589 .block_erase = spi_block_erase_60,
12590 }, {
12591 .eraseblocks = { { 16384 * 1024, 1} },
12592 .block_erase = spi_block_erase_c7,
12593 }
12594 },
12595 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12596 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12597 .write = spi_chip_write_256, /* Multi I/O supported */
12598 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12599 .voltage = {2700, 3600},
12600 },
12601
12602 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012603 .vendor = "Spansion",
12604 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12605 .bustype = BUS_SPI,
12606 .manufacture_id = SPANSION_ID,
12607 .model_id = SPANSION_S25FL128,
12608 .total_size = 16384,
12609 .page_size = 256,
12610 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12611 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12612 .tested = TEST_OK_PREW,
12613 .probe = probe_spi_rdid,
12614 .probe_timing = TIMING_ZERO,
12615 .block_erasers = {
12616 {
12617 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12618 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12619 * effect on the memory contents, but sets a flag in the SR.
12620 .eraseblocks = {
12621 {4 * 1024, 32},
12622 {64 * 1024, 254} // inaccessible
12623 },
12624 .block_erase = spi_block_erase_20,
12625 }, { */
12626 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12627 .eraseblocks = {
12628 {8 * 1024, 16},
12629 {64 * 1024, 254} // inaccessible
12630 },
12631 .block_erase = spi_block_erase_40,
12632 }, { */
12633 .eraseblocks = { { 64 * 1024, 256} },
12634 .block_erase = spi_block_erase_d8,
12635 }, {
12636 .eraseblocks = { { 16384 * 1024, 1} },
12637 .block_erase = spi_block_erase_60,
12638 }, {
12639 .eraseblocks = { { 16384 * 1024, 1} },
12640 .block_erase = spi_block_erase_c7,
12641 }
12642 },
12643 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12644 .unlock = spi_disable_blockprotect_bp2_srwd,
12645 .write = spi_chip_write_256, /* Multi I/O supported */
12646 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12647 .voltage = {2700, 3600},
12648 },
12649
12650 {
12651 .vendor = "Spansion",
12652 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12653 .bustype = BUS_SPI,
12654 .manufacture_id = SPANSION_ID,
12655 .model_id = SPANSION_S25FL128,
12656 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012657 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012658 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12659 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12660 .tested = TEST_UNTESTED,
12661 .probe = probe_spi_rdid,
12662 .probe_timing = TIMING_ZERO,
12663 .block_erasers = {
12664 {
12665 .eraseblocks = { {256 * 1024, 64} },
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_ep_srwd, /* TODO: Configuration register */
12676 .unlock = spi_disable_blockprotect_bp2_srwd,
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 {
Nico Huber57dbd642018-03-13 18:01:05 +010012683 .vendor = "Spansion",
12684 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12685 .bustype = BUS_SPI,
12686 .manufacture_id = SPANSION_ID,
12687 .model_id = SPANSION_S25FL256,
12688 .total_size = 32768,
12689 .page_size = 256,
12690 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber6329b0a2018-03-13 18:14:52 +010012691 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
Nico Huber57dbd642018-03-13 18:01:05 +010012692 .tested = TEST_OK_PREW,
12693 .probe = probe_spi_rdid,
12694 .probe_timing = TIMING_ZERO,
12695 .block_erasers = {
12696 {
12697 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12698 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12699 * have no effect on the memory contents, but sets a flag in the SR.
12700 .eraseblocks = {
12701 {4 * 1024, 32},
12702 {64 * 1024, 254} // inaccessible
12703 },
12704 .block_erase = spi_block_erase_20,
12705 }, { */
12706 .eraseblocks = { { 64 * 1024, 512} },
Nico Huber6329b0a2018-03-13 18:14:52 +010012707 .block_erase = spi_block_erase_dc,
12708 }, {
12709 .eraseblocks = { { 64 * 1024, 512} },
Nico Huber57dbd642018-03-13 18:01:05 +010012710 .block_erase = spi_block_erase_d8,
12711 }, {
12712 .eraseblocks = { { 32768 * 1024, 1} },
12713 .block_erase = spi_block_erase_60,
12714 }, {
12715 .eraseblocks = { { 32768 * 1024, 1} },
12716 .block_erase = spi_block_erase_c7,
12717 }
12718 },
12719 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12720 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12721 .write = spi_chip_write_256, /* Multi I/O supported */
12722 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12723 .voltage = {2700, 3600},
12724 .wrea_override = 0x17,
12725 },
12726
12727 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012728 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012729 .name = "SST25LF020A",
12730 .bustype = BUS_SPI,
12731 .manufacture_id = SST_ID,
12732 .model_id = SST_SST25VF020_REMS,
12733 .total_size = 256,
12734 .page_size = 256,
12735 .feature_bits = FEATURE_WRSR_EWSR,
12736 .tested = TEST_OK_PREW,
12737 .probe = probe_spi_rems,
12738 .probe_timing = TIMING_ZERO,
12739 .block_erasers =
12740 {
12741 {
12742 .eraseblocks = { {4 * 1024, 64} },
12743 .block_erase = spi_block_erase_20,
12744 }, {
12745 .eraseblocks = { {32 * 1024, 8} },
12746 .block_erase = spi_block_erase_52,
12747 }, {
12748 .eraseblocks = { {256 * 1024, 1} },
12749 .block_erase = spi_block_erase_60,
12750 },
12751 },
12752 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12753 .unlock = spi_disable_blockprotect,
12754 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12755 .read = spi_chip_read, /* Fast read (0x0B) supported */
12756 .voltage = {2700, 3600},
12757 },
12758
12759 {
12760 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012761 .name = "SST25LF040A",
12762 .bustype = BUS_SPI,
12763 .manufacture_id = SST_ID,
12764 .model_id = SST_SST25VF040_REMS,
12765 .total_size = 512,
12766 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012767 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012768 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012769 .probe = probe_spi_res2,
12770 .probe_timing = TIMING_ZERO,
12771 .block_erasers =
12772 {
12773 {
12774 .eraseblocks = { {4 * 1024, 128} },
12775 .block_erase = spi_block_erase_20,
12776 }, {
12777 .eraseblocks = { {32 * 1024, 16} },
12778 .block_erase = spi_block_erase_52,
12779 }, {
12780 .eraseblocks = { {512 * 1024, 1} },
12781 .block_erase = spi_block_erase_60,
12782 },
12783 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012784 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012785 .unlock = spi_disable_blockprotect,
12786 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12787 .read = spi_chip_read,
12788 .voltage = {3000, 3600},
12789 },
12790
12791 {
12792 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012793 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012794 .bustype = BUS_SPI,
12795 .manufacture_id = SST_ID,
12796 .model_id = SST_SST25VF080_REMS,
12797 .total_size = 1024,
12798 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012799 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012800 .tested = TEST_UNTESTED,
12801 .probe = probe_spi_res2,
12802 .probe_timing = TIMING_ZERO,
12803 .block_erasers =
12804 {
12805 {
12806 .eraseblocks = { {4 * 1024, 256} },
12807 .block_erase = spi_block_erase_20,
12808 }, {
12809 .eraseblocks = { {32 * 1024, 32} },
12810 .block_erase = spi_block_erase_52,
12811 }, {
12812 .eraseblocks = { {1024 * 1024, 1} },
12813 .block_erase = spi_block_erase_60,
12814 },
12815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012816 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012817 .unlock = spi_disable_blockprotect,
12818 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12819 .read = spi_chip_read,
12820 .voltage = {3000, 3600},
12821 },
12822
12823 {
12824 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012825 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012826 .bustype = BUS_SPI,
12827 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012828 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012829 .total_size = 64,
12830 .page_size = 256,
12831 .feature_bits = FEATURE_WRSR_EWSR,
12832 .tested = TEST_OK_PREW,
12833 .probe = probe_spi_rems,
12834 .probe_timing = TIMING_ZERO,
12835 .block_erasers =
12836 {
12837 {
12838 .eraseblocks = { {4 * 1024, 16} },
12839 .block_erase = spi_block_erase_20,
12840 }, {
12841 .eraseblocks = { {32 * 1024, 2} },
12842 .block_erase = spi_block_erase_52,
12843 }, {
12844 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012845 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012846 }, {
12847 .eraseblocks = { {64 * 1024, 1} },
12848 .block_erase = spi_block_erase_60,
12849 }, {
12850 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012851 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012852 },
12853 },
12854 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12855 .unlock = spi_disable_blockprotect,
12856 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012857 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012858 .voltage = {2700, 3600},
12859 },
12860
12861 {
12862 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012863 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012864 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012865 .manufacture_id = SST_ID,
12866 .model_id = SST_SST25VF010_REMS,
12867 .total_size = 128,
12868 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012869 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012870 .tested = TEST_OK_PREW,
12871 .probe = probe_spi_rems,
12872 .probe_timing = TIMING_ZERO,
12873 .block_erasers =
12874 {
12875 {
12876 .eraseblocks = { {4 * 1024, 32} },
12877 .block_erase = spi_block_erase_20,
12878 }, {
12879 .eraseblocks = { {32 * 1024, 4} },
12880 .block_erase = spi_block_erase_52,
12881 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012882 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012883 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012884 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012885 .eraseblocks = { {128 * 1024, 1} },
12886 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012887 }, {
12888 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012889 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012890 },
12891 },
12892 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12893 .unlock = spi_disable_blockprotect,
12894 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012895 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012896 .voltage = {2700, 3600},
12897 },
12898
12899 {
12900 .vendor = "SST",
12901 .name = "SST25VF020",
12902 .bustype = BUS_SPI,
12903 .manufacture_id = SST_ID,
12904 .model_id = SST_SST25VF020_REMS,
12905 .total_size = 256,
12906 .page_size = 256,
12907 .feature_bits = FEATURE_WRSR_EWSR,
12908 .tested = TEST_UNTESTED,
12909 .probe = probe_spi_rems,
12910 .probe_timing = TIMING_ZERO,
12911 .block_erasers =
12912 {
12913 {
12914 .eraseblocks = { {4 * 1024, 64} },
12915 .block_erase = spi_block_erase_20,
12916 }, {
12917 .eraseblocks = { {32 * 1024, 8} },
12918 .block_erase = spi_block_erase_52,
12919 }, {
12920 .eraseblocks = { {256 * 1024, 1} },
12921 .block_erase = spi_block_erase_60,
12922 },
12923 },
12924 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12925 .unlock = spi_disable_blockprotect,
12926 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12927 .read = spi_chip_read, /* only */
12928 .voltage = {2700, 3600},
12929 },
12930
12931 {
12932 .vendor = "SST",
12933 .name = "SST25VF020B",
12934 .bustype = BUS_SPI,
12935 .manufacture_id = SST_ID,
12936 .model_id = SST_SST25VF020B,
12937 .total_size = 256,
12938 .page_size = 256,
12939 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012940 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012941 .probe = probe_spi_rdid,
12942 .probe_timing = TIMING_ZERO,
12943 .block_erasers =
12944 {
12945 {
12946 .eraseblocks = { {4 * 1024, 64} },
12947 .block_erase = spi_block_erase_20,
12948 }, {
12949 .eraseblocks = { {32 * 1024, 8} },
12950 .block_erase = spi_block_erase_52,
12951 }, {
12952 .eraseblocks = { {64 * 1024, 4} },
12953 .block_erase = spi_block_erase_d8,
12954 }, {
12955 .eraseblocks = { {256 * 1024, 1} },
12956 .block_erase = spi_block_erase_60,
12957 }, {
12958 .eraseblocks = { {256 * 1024, 1} },
12959 .block_erase = spi_block_erase_c7,
12960 },
12961 },
12962 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12963 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12964 .write = spi_aai_write, /* AAI supported (0xAD) */
12965 .read = spi_chip_read, /* Fast read (0x0B) supported */
12966 .voltage = {2700, 3600},
12967 },
12968
12969 {
12970 .vendor = "SST",
12971 .name = "SST25VF040",
12972 .bustype = BUS_SPI,
12973 .manufacture_id = SST_ID,
12974 .model_id = SST_SST25VF040_REMS,
12975 .total_size = 512,
12976 .page_size = 256,
12977 .feature_bits = FEATURE_WRSR_EWSR,
12978 .tested = TEST_OK_PR,
12979 .probe = probe_spi_rems,
12980 .probe_timing = TIMING_ZERO,
12981 .block_erasers =
12982 {
12983 {
12984 .eraseblocks = { {4 * 1024, 128} },
12985 .block_erase = spi_block_erase_20,
12986 }, {
12987 .eraseblocks = { {32 * 1024, 16} },
12988 .block_erase = spi_block_erase_52,
12989 }, {
12990 .eraseblocks = { {512 * 1024, 1} },
12991 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012992 },
12993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012994 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012995 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012996 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12997 .read = spi_chip_read,
12998 .voltage = {2700, 3600},
12999 },
13000
13001 {
13002 .vendor = "SST",
13003 .name = "SST25VF040B",
13004 .bustype = BUS_SPI,
13005 .manufacture_id = SST_ID,
13006 .model_id = SST_SST25VF040B,
13007 .total_size = 512,
13008 .page_size = 256,
13009 .feature_bits = FEATURE_WRSR_EWSR,
13010 .tested = TEST_OK_PREW,
13011 .probe = probe_spi_rdid,
13012 .probe_timing = TIMING_ZERO,
13013 .block_erasers =
13014 {
13015 {
13016 .eraseblocks = { {4 * 1024, 128} },
13017 .block_erase = spi_block_erase_20,
13018 }, {
13019 .eraseblocks = { {32 * 1024, 16} },
13020 .block_erase = spi_block_erase_52,
13021 }, {
13022 .eraseblocks = { {64 * 1024, 8} },
13023 .block_erase = spi_block_erase_d8,
13024 }, {
13025 .eraseblocks = { {512 * 1024, 1} },
13026 .block_erase = spi_block_erase_60,
13027 }, {
13028 .eraseblocks = { {512 * 1024, 1} },
13029 .block_erase = spi_block_erase_c7,
13030 },
13031 },
13032 .printlock = spi_prettyprint_status_register_sst25vf040b,
13033 .unlock = spi_disable_blockprotect,
13034 .write = spi_aai_write, /* AAI supported (0xAD) */
13035 .read = spi_chip_read, /* Fast read (0x0B) supported */
13036 .voltage = {2700, 3600},
13037 },
13038
13039 {
13040 .vendor = "SST",
13041 .name = "SST25VF040B.REMS",
13042 .bustype = BUS_SPI,
13043 .manufacture_id = SST_ID,
13044 .model_id = SST_SST25VF040B_REMS,
13045 .total_size = 512,
13046 .page_size = 256,
13047 .feature_bits = FEATURE_WRSR_EWSR,
13048 .tested = TEST_OK_PREW,
13049 .probe = probe_spi_rems,
13050 .probe_timing = TIMING_ZERO,
13051 .block_erasers =
13052 {
13053 {
13054 .eraseblocks = { {4 * 1024, 128} },
13055 .block_erase = spi_block_erase_20,
13056 }, {
13057 .eraseblocks = { {32 * 1024, 16} },
13058 .block_erase = spi_block_erase_52,
13059 }, {
13060 .eraseblocks = { {64 * 1024, 8} },
13061 .block_erase = spi_block_erase_d8,
13062 }, {
13063 .eraseblocks = { {512 * 1024, 1} },
13064 .block_erase = spi_block_erase_60,
13065 }, {
13066 .eraseblocks = { {512 * 1024, 1} },
13067 .block_erase = spi_block_erase_c7,
13068 },
13069 },
13070 .printlock = spi_prettyprint_status_register_sst25vf040b,
13071 .unlock = spi_disable_blockprotect,
13072 .write = spi_aai_write,
13073 .read = spi_chip_read,
13074 .voltage = {2700, 3600},
13075 },
13076
13077 {
13078 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013079 .name = "SST25WF020A",
13080 .bustype = BUS_SPI,
13081 .manufacture_id = SANYO_ID, /* See flashchips.h */
13082 .model_id = SST_SST25WF020A,
13083 .total_size = 256,
13084 .page_size = 256,
13085 .feature_bits = FEATURE_WRSR_WREN,
13086 .tested = TEST_UNTESTED,
13087 .probe = probe_spi_rdid,
13088 .probe_timing = TIMING_ZERO,
13089 .block_erasers =
13090 {
13091 {
13092 .eraseblocks = { {4 * 1024, 64} },
13093 .block_erase = spi_block_erase_20,
13094 }, {
13095 .eraseblocks = { {64 * 1024, 4} },
13096 .block_erase = spi_block_erase_d8,
13097 }, {
13098 .eraseblocks = { {256 * 1024, 1} },
13099 .block_erase = spi_block_erase_60,
13100 }, {
13101 .eraseblocks = { {256 * 1024, 1} },
13102 .block_erase = spi_block_erase_c7,
13103 },
13104 },
13105 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13106 .unlock = spi_disable_blockprotect_bp2_srwd,
13107 .write = spi_chip_write_256,
13108 .read = spi_chip_read, /* Fast read (0x0B) supported */
13109 .voltage = {1650, 1950},
13110 },
13111
13112 {
13113 .vendor = "SST",
13114 .name = "SST25WF040B",
13115 .bustype = BUS_SPI,
13116 .manufacture_id = SANYO_ID, /* See flashchips.h */
13117 .model_id = SST_SST25WF040B,
13118 .total_size = 512,
13119 .page_size = 256,
13120 .feature_bits = FEATURE_WRSR_WREN,
13121 .tested = TEST_UNTESTED,
13122 .probe = probe_spi_rdid,
13123 .probe_timing = TIMING_ZERO,
13124 .block_erasers =
13125 {
13126 {
13127 .eraseblocks = { {4 * 1024, 128} },
13128 .block_erase = spi_block_erase_20,
13129 }, {
13130 .eraseblocks = { {64 * 1024, 8} },
13131 .block_erase = spi_block_erase_d8,
13132 }, {
13133 .eraseblocks = { {512 * 1024, 1} },
13134 .block_erase = spi_block_erase_60,
13135 }, {
13136 .eraseblocks = { {512 * 1024, 1} },
13137 .block_erase = spi_block_erase_c7,
13138 },
13139 },
13140 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13141 .unlock = spi_disable_blockprotect_bp2_srwd,
13142 .write = spi_chip_write_256,
13143 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13144 .voltage = {1650, 1950},
13145 },
13146
13147 {
13148 .vendor = "SST",
13149 .name = "SST25WF080B",
13150 .bustype = BUS_SPI,
13151 .manufacture_id = SANYO_ID, /* See flashchips.h */
13152 .model_id = SST_SST25WF080B,
13153 .total_size = 1024,
13154 .page_size = 256,
13155 .feature_bits = FEATURE_WRSR_WREN,
13156 .tested = TEST_OK_PREW,
13157 .probe = probe_spi_rdid,
13158 .probe_timing = TIMING_ZERO,
13159 .block_erasers =
13160 {
13161 {
13162 .eraseblocks = { {4 * 1024, 256} },
13163 .block_erase = spi_block_erase_20,
13164 }, {
13165 .eraseblocks = { {64 * 1024, 16} },
13166 .block_erase = spi_block_erase_d8,
13167 }, {
13168 .eraseblocks = { {1024 * 1024, 1} },
13169 .block_erase = spi_block_erase_60,
13170 }, {
13171 .eraseblocks = { {1024 * 1024, 1} },
13172 .block_erase = spi_block_erase_c7,
13173 },
13174 },
13175 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13176 .unlock = spi_disable_blockprotect_bp2_srwd,
13177 .write = spi_chip_write_256,
13178 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13179 .voltage = {1650, 1950},
13180 },
13181
13182 {
13183 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013184 .name = "SST25VF080B",
13185 .bustype = BUS_SPI,
13186 .manufacture_id = SST_ID,
13187 .model_id = SST_SST25VF080B,
13188 .total_size = 1024,
13189 .page_size = 256,
13190 .feature_bits = FEATURE_WRSR_EWSR,
13191 .tested = TEST_OK_PREW,
13192 .probe = probe_spi_rdid,
13193 .probe_timing = TIMING_ZERO,
13194 .block_erasers =
13195 {
13196 {
13197 .eraseblocks = { {4 * 1024, 256} },
13198 .block_erase = spi_block_erase_20,
13199 }, {
13200 .eraseblocks = { {32 * 1024, 32} },
13201 .block_erase = spi_block_erase_52,
13202 }, {
13203 .eraseblocks = { {64 * 1024, 16} },
13204 .block_erase = spi_block_erase_d8,
13205 }, {
13206 .eraseblocks = { {1024 * 1024, 1} },
13207 .block_erase = spi_block_erase_60,
13208 }, {
13209 .eraseblocks = { {1024 * 1024, 1} },
13210 .block_erase = spi_block_erase_c7,
13211 },
13212 },
13213 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13214 .unlock = spi_disable_blockprotect,
13215 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013216 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013217 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013218 },
13219
13220 {
13221 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013222 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013223 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013224 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013225 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013226 .total_size = 2048,
13227 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013228 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013229 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013230 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013231 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013232 .block_erasers =
13233 {
13234 {
13235 .eraseblocks = { {4 * 1024, 512} },
13236 .block_erase = spi_block_erase_20,
13237 }, {
13238 .eraseblocks = { {32 * 1024, 64} },
13239 .block_erase = spi_block_erase_52,
13240 }, {
13241 .eraseblocks = { {64 * 1024, 32} },
13242 .block_erase = spi_block_erase_d8,
13243 }, {
13244 .eraseblocks = { {2 * 1024 * 1024, 1} },
13245 .block_erase = spi_block_erase_60,
13246 }, {
13247 .eraseblocks = { {2 * 1024 * 1024, 1} },
13248 .block_erase = spi_block_erase_c7,
13249 },
13250 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013251 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013252 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000013253 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013254 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013255 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013256 },
13257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013258 {
13259 .vendor = "SST",
13260 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013261 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013263 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013264 .total_size = 4096,
13265 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013266 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013267 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013268 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013269 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013270 .block_erasers =
13271 {
13272 {
13273 .eraseblocks = { {4 * 1024, 1024} },
13274 .block_erase = spi_block_erase_20,
13275 }, {
13276 .eraseblocks = { {32 * 1024, 128} },
13277 .block_erase = spi_block_erase_52,
13278 }, {
13279 .eraseblocks = { {64 * 1024, 64} },
13280 .block_erase = spi_block_erase_d8,
13281 }, {
13282 .eraseblocks = { {4 * 1024 * 1024, 1} },
13283 .block_erase = spi_block_erase_60,
13284 }, {
13285 .eraseblocks = { {4 * 1024 * 1024, 1} },
13286 .block_erase = spi_block_erase_c7,
13287 },
13288 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013289 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013290 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000013291 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013292 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013293 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013294 },
13295
13296 {
13297 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013298 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013299 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013300 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013301 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013302 .total_size = 8192,
13303 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013304 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000013305 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013306 .probe = probe_spi_rdid,
13307 .probe_timing = TIMING_ZERO,
13308 .block_erasers =
13309 {
13310 {
13311 .eraseblocks = { {4 * 1024, 2048} },
13312 .block_erase = spi_block_erase_20,
13313 }, {
13314 .eraseblocks = { {32 * 1024, 256} },
13315 .block_erase = spi_block_erase_52,
13316 }, {
13317 .eraseblocks = { {64 * 1024, 128} },
13318 .block_erase = spi_block_erase_d8,
13319 }, {
13320 .eraseblocks = { {8 * 1024 * 1024, 1} },
13321 .block_erase = spi_block_erase_60,
13322 }, {
13323 .eraseblocks = { {8 * 1024 * 1024, 1} },
13324 .block_erase = spi_block_erase_c7,
13325 },
13326 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013327 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013328 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000013329 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013330 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013331 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013332 },
13333
13334 {
13335 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013336 .name = "SST26VF016B(A)",
13337 .bustype = BUS_SPI,
13338 .manufacture_id = SST_ID,
13339 .model_id = SST_SST26VF016B,
13340 .total_size = 2048,
13341 .page_size = 256,
13342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13343 .tested = TEST_OK_PREW,
13344 .probe = probe_spi_rdid,
13345 .probe_timing = TIMING_ZERO,
13346 .block_erasers =
13347 {
13348 {
13349 .eraseblocks = { {4 * 1024, 512} },
13350 .block_erase = spi_block_erase_20,
13351 }, {
13352 .eraseblocks = {
13353 {8 * 1024, 4},
13354 {32 * 1024, 1},
13355 {64 * 1024, 30},
13356 {32 * 1024, 1},
13357 {8 * 1024, 4},
13358 },
13359 .block_erase = spi_block_erase_d8,
13360 }, {
13361 .eraseblocks = { {2 * 1024 * 1024, 1} },
13362 .block_erase = spi_block_erase_c7,
13363 },
13364 },
13365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13366 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13367 .write = spi_chip_write_256, /* Multi I/O supported */
13368 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13369 .voltage = {2700, 3600},
13370 },
13371 {
13372 .vendor = "SST",
13373 .name = "SST26VF032B(A)",
13374 .bustype = BUS_SPI,
13375 .manufacture_id = SST_ID,
13376 .model_id = SST_SST26VF032B,
13377 .total_size = 4096,
13378 .page_size = 256,
13379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13380 .tested = TEST_UNTESTED,
13381 .probe = probe_spi_rdid,
13382 .probe_timing = TIMING_ZERO,
13383 .block_erasers =
13384 {
13385 {
13386 .eraseblocks = { {4 * 1024, 1024} },
13387 .block_erase = spi_block_erase_20,
13388 }, {
13389 .eraseblocks = {
13390 {8 * 1024, 4},
13391 {32 * 1024, 1},
13392 {64 * 1024, 62},
13393 {32 * 1024, 1},
13394 {8 * 1024, 4},
13395 },
13396 .block_erase = spi_block_erase_d8,
13397 }, {
13398 .eraseblocks = { {4 * 1024 * 1024, 1} },
13399 .block_erase = spi_block_erase_c7,
13400 },
13401 },
13402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13403 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13404 .write = spi_chip_write_256, /* Multi I/O supported */
13405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13406 .voltage = {2700, 3600},
13407 },
13408
13409
13410 {
13411 .vendor = "SST",
13412 .name = "SST26VF064B(A)",
13413 .bustype = BUS_SPI,
13414 .manufacture_id = SST_ID,
13415 .model_id = SST_SST26VF064B,
13416 .total_size = 8192,
13417 .page_size = 256,
13418 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13419 .tested = TEST_OK_PREW,
13420 .probe = probe_spi_rdid,
13421 .probe_timing = TIMING_ZERO,
13422 .block_erasers =
13423 {
13424 {
13425 .eraseblocks = { {4 * 1024, 2048} },
13426 .block_erase = spi_block_erase_20,
13427 }, {
13428 .eraseblocks = {
13429 {8 * 1024, 4},
13430 {32 * 1024, 1},
13431 {64 * 1024, 126},
13432 {32 * 1024, 1},
13433 {8 * 1024, 4},
13434 },
13435 .block_erase = spi_block_erase_d8,
13436 }, {
13437 .eraseblocks = { {8 * 1024 * 1024, 1} },
13438 .block_erase = spi_block_erase_c7,
13439 },
13440 },
13441 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13442 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13443 .write = spi_chip_write_256, /* Multi I/O supported */
13444 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13445 .voltage = {2700, 3600},
13446 },
13447
13448 {
13449 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000013450 .name = "SST25WF512",
13451 .bustype = BUS_SPI,
13452 .manufacture_id = SST_ID,
13453 .model_id = SST_SST25WF512,
13454 .total_size = 64,
13455 .page_size = 256,
13456 .feature_bits = FEATURE_WRSR_EITHER,
13457 .tested = TEST_UNTESTED,
13458 .probe = probe_spi_rdid,
13459 .probe_timing = TIMING_ZERO,
13460 .block_erasers =
13461 {
13462 {
13463 .eraseblocks = { {4 * 1024, 16} },
13464 .block_erase = spi_block_erase_20,
13465 }, {
13466 .eraseblocks = { {32 * 1024, 2} },
13467 .block_erase = spi_block_erase_52,
13468 }, {
13469 .eraseblocks = { {1024 * 64, 1} },
13470 .block_erase = spi_block_erase_60,
13471 }, {
13472 .eraseblocks = { {1024 * 64, 1} },
13473 .block_erase = spi_block_erase_c7,
13474 },
13475 },
Jason Harper43ddef02014-05-04 00:55:24 +000013476 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13477 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013478 .write = spi_aai_write,
13479 .read = spi_chip_read, /* Fast read (0x0B) supported */
13480 .voltage = {1650, 1950},
13481 },
13482
13483 {
13484 .vendor = "SST",
13485 .name = "SST25WF010",
13486 .bustype = BUS_SPI,
13487 .manufacture_id = SST_ID,
13488 .model_id = SST_SST25WF010,
13489 .total_size = 128,
13490 .page_size = 256,
13491 .feature_bits = FEATURE_WRSR_EITHER,
13492 .tested = TEST_UNTESTED,
13493 .probe = probe_spi_rdid,
13494 .probe_timing = TIMING_ZERO,
13495 .block_erasers =
13496 {
13497 {
13498 .eraseblocks = { {4 * 1024, 32} },
13499 .block_erase = spi_block_erase_20,
13500 }, {
13501 .eraseblocks = { {32 * 1024, 4} },
13502 .block_erase = spi_block_erase_52,
13503 }, {
13504 .eraseblocks = { {1024 * 128, 1} },
13505 .block_erase = spi_block_erase_60,
13506 }, {
13507 .eraseblocks = { {1024 * 128, 1} },
13508 .block_erase = spi_block_erase_c7,
13509 },
13510 },
Jason Harper43ddef02014-05-04 00:55:24 +000013511 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13512 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013513 .write = spi_aai_write,
13514 .read = spi_chip_read, /* Fast read (0x0B) supported */
13515 .voltage = {1650, 1950},
13516 },
13517
13518 {
13519 .vendor = "SST",
13520 .name = "SST25WF020",
13521 .bustype = BUS_SPI,
13522 .manufacture_id = SST_ID,
13523 .model_id = SST_SST25WF020,
13524 .total_size = 256,
13525 .page_size = 256,
13526 .feature_bits = FEATURE_WRSR_EITHER,
13527 .tested = TEST_UNTESTED,
13528 .probe = probe_spi_rdid,
13529 .probe_timing = TIMING_ZERO,
13530 .block_erasers =
13531 {
13532 {
13533 .eraseblocks = { {4 * 1024, 64} },
13534 .block_erase = spi_block_erase_20,
13535 }, {
13536 .eraseblocks = { {32 * 1024, 8} },
13537 .block_erase = spi_block_erase_52,
13538 }, {
13539 .eraseblocks = { {64 * 1024, 4} },
13540 .block_erase = spi_block_erase_d8,
13541 }, {
13542 .eraseblocks = { {1024 * 256, 1} },
13543 .block_erase = spi_block_erase_60,
13544 }, {
13545 .eraseblocks = { {1024 * 256, 1} },
13546 .block_erase = spi_block_erase_c7,
13547 },
13548 },
Jason Harper43ddef02014-05-04 00:55:24 +000013549 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13550 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013551 .write = spi_aai_write,
13552 .read = spi_chip_read, /* Fast read (0x0B) supported */
13553 .voltage = {1650, 1950},
13554 },
13555
13556 {
13557 .vendor = "SST",
13558 .name = "SST25WF040",
13559 .bustype = BUS_SPI,
13560 .manufacture_id = SST_ID,
13561 .model_id = SST_SST25WF040,
13562 .total_size = 512,
13563 .page_size = 256,
13564 .feature_bits = FEATURE_WRSR_EITHER,
13565 .tested = TEST_UNTESTED,
13566 .probe = probe_spi_rdid,
13567 .probe_timing = TIMING_ZERO,
13568 .block_erasers =
13569 {
13570 {
13571 .eraseblocks = { {4 * 1024, 128} },
13572 .block_erase = spi_block_erase_20,
13573 }, {
13574 .eraseblocks = { {32 * 1024, 16} },
13575 .block_erase = spi_block_erase_52,
13576 }, {
13577 .eraseblocks = { {64 * 1024, 8} },
13578 .block_erase = spi_block_erase_d8,
13579 }, {
13580 .eraseblocks = { {1024 * 512, 1} },
13581 .block_erase = spi_block_erase_60,
13582 }, {
13583 .eraseblocks = { {1024 * 512, 1} },
13584 .block_erase = spi_block_erase_c7,
13585 },
13586 },
Jason Harper43ddef02014-05-04 00:55:24 +000013587 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13588 .unlock = spi_disable_blockprotect_bp2_srwd,
13589 .write = spi_aai_write,
13590 .read = spi_chip_read, /* Fast read (0x0B) supported */
13591 .voltage = {1650, 1950},
13592 },
13593
13594 {
13595 .vendor = "SST",
13596 .name = "SST25WF080",
13597 .bustype = BUS_SPI,
13598 .manufacture_id = SST_ID,
13599 .model_id = SST_SST25WF080,
13600 .total_size = 1024,
13601 .page_size = 256,
13602 .feature_bits = FEATURE_WRSR_EITHER,
13603 .tested = TEST_OK_PREW,
13604 .probe = probe_spi_rdid,
13605 .probe_timing = TIMING_ZERO,
13606 .block_erasers =
13607 {
13608 {
13609 .eraseblocks = { {4 * 1024, 256} },
13610 .block_erase = spi_block_erase_20,
13611 }, {
13612 .eraseblocks = { {32 * 1024, 32} },
13613 .block_erase = spi_block_erase_52,
13614 }, {
13615 .eraseblocks = { {64 * 1024, 16} },
13616 .block_erase = spi_block_erase_d8,
13617 }, {
13618 .eraseblocks = { {1024 * 1024, 1} },
13619 .block_erase = spi_block_erase_60,
13620 }, {
13621 .eraseblocks = { {1024 * 1024, 1} },
13622 .block_erase = spi_block_erase_c7,
13623 },
13624 },
13625 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13626 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013627 .write = spi_aai_write,
13628 .read = spi_chip_read, /* Fast read (0x0B) supported */
13629 .voltage = {1650, 1950},
13630 },
13631
13632 {
13633 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013634 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013635 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013636 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013637 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013638 .total_size = 512,
13639 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013640 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013641 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013642 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013643 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013644 .block_erasers =
13645 {
13646 {
13647 .eraseblocks = { {128, 4096} },
13648 .block_erase = erase_sector_28sf040,
13649 }, {
13650 .eraseblocks = { {512 * 1024, 1} },
13651 .block_erase = erase_chip_28sf040,
13652 }
13653 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013654 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013657 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013658 },
13659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013660 {
13661 .vendor = "SST",
13662 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013663 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013664 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013665 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013666 .total_size = 128,
13667 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013668 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013669 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013670 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013671 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013672 .block_erasers =
13673 {
13674 {
13675 .eraseblocks = { {128 * 1024, 1} },
13676 .block_erase = erase_chip_block_jedec,
13677 }
13678 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013679 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013681 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013682 },
13683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013684 {
13685 .vendor = "SST",
13686 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013687 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013688 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013689 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013690 .total_size = 128,
13691 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013692 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013693 .tested = TEST_UNTESTED,
13694 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013695 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013696 .block_erasers =
13697 {
13698 {
13699 .eraseblocks = { {128 * 1024, 1} },
13700 .block_erase = erase_chip_block_jedec,
13701 }
13702 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013703 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013704 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013705 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013706 },
13707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013708 {
13709 .vendor = "SST",
13710 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013711 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013712 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013713 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013714 .total_size = 256,
13715 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013716 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013717 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013718 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013719 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013720 .block_erasers =
13721 {
13722 {
13723 .eraseblocks = { {256 * 1024, 1} },
13724 .block_erase = erase_chip_block_jedec,
13725 }
13726 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013727 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013728 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013729 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013730 },
13731
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013732 {
13733 .vendor = "SST",
13734 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013735 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013736 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013737 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013738 .total_size = 256,
13739 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013740 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013741 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013742 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013743 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013744 .block_erasers =
13745 {
13746 {
13747 .eraseblocks = { {256 * 1024, 1} },
13748 .block_erase = erase_chip_block_jedec,
13749 }
13750 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013751 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013752 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013753 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013754 },
13755
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013756 {
13757 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000013758 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013759 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013760 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013761 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013762 .total_size = 64,
13763 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013764 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000013765 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013766 .probe = probe_jedec,
13767 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000013768 .block_erasers =
13769 {
13770 {
13771 .eraseblocks = { {4 * 1024, 16} },
13772 .block_erase = erase_sector_jedec,
13773 }, {
13774 .eraseblocks = { {64 * 1024, 1} },
13775 .block_erase = erase_chip_block_jedec,
13776 }
13777 },
Sean Nelson35727f72010-01-28 23:55:12 +000013778 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013779 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013780 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000013781 },
13782
13783 {
13784 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013785 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013786 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013787 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013788 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013789 .total_size = 128,
13790 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013791 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013792 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013793 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013794 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013795 .block_erasers =
13796 {
13797 {
13798 .eraseblocks = { {4 * 1024, 32} },
13799 .block_erase = erase_sector_jedec,
13800 }, {
13801 .eraseblocks = { {128 * 1024, 1} },
13802 .block_erase = erase_chip_block_jedec,
13803 }
13804 },
Sean Nelson35727f72010-01-28 23:55:12 +000013805 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013806 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013807 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013808 },
13809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013810 {
13811 .vendor = "SST",
13812 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013813 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013815 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013816 .total_size = 256,
13817 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013818 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013819 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013820 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013821 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013822 .block_erasers =
13823 {
13824 {
13825 .eraseblocks = { {4 * 1024, 64} },
13826 .block_erase = erase_sector_jedec,
13827 }, {
13828 .eraseblocks = { {256 * 1024, 1} },
13829 .block_erase = erase_chip_block_jedec,
13830 }
13831 },
Sean Nelson35727f72010-01-28 23:55:12 +000013832 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013834 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013835 },
13836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013837 {
13838 .vendor = "SST",
13839 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013840 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013841 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013842 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013843 .total_size = 512,
13844 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013845 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013846 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013847 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013848 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013849 .block_erasers =
13850 {
13851 {
13852 .eraseblocks = { {4 * 1024, 128} },
13853 .block_erase = erase_sector_jedec,
13854 }, {
13855 .eraseblocks = { {512 * 1024, 1} },
13856 .block_erase = erase_chip_block_jedec,
13857 }
13858 },
Sean Nelson35727f72010-01-28 23:55:12 +000013859 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013861 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013862 },
13863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013864 {
13865 .vendor = "SST",
13866 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013867 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013868 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013869 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013870 .total_size = 64,
13871 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013872 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013873 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013874 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013875 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013876 .block_erasers =
13877 {
13878 {
13879 .eraseblocks = { {4 * 1024, 16} },
13880 .block_erase = erase_sector_jedec,
13881 }, {
13882 .eraseblocks = { {64 * 1024, 1} },
13883 .block_erase = erase_chip_block_jedec,
13884 }
13885 },
Sean Nelson35727f72010-01-28 23:55:12 +000013886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013888 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013889 },
13890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013891 {
13892 .vendor = "SST",
13893 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013894 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013895 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013896 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013897 .total_size = 128,
13898 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013899 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013900 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013901 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013902 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013903 .block_erasers =
13904 {
13905 {
13906 .eraseblocks = { {4 * 1024, 32} },
13907 .block_erase = erase_sector_jedec,
13908 }, {
13909 .eraseblocks = { {128 * 1024, 1} },
13910 .block_erase = erase_chip_block_jedec,
13911 }
13912 },
Sean Nelson35727f72010-01-28 23:55:12 +000013913 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013915 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013916 },
13917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013918 {
13919 .vendor = "SST",
13920 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013921 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013922 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013923 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013924 .total_size = 256,
13925 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013926 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013927 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013928 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013929 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013930 .block_erasers =
13931 {
13932 {
13933 .eraseblocks = { {4 * 1024, 64} },
13934 .block_erase = erase_sector_jedec,
13935 }, {
13936 .eraseblocks = { {256 * 1024, 1} },
13937 .block_erase = erase_chip_block_jedec,
13938 }
13939 },
Sean Nelson35727f72010-01-28 23:55:12 +000013940 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013942 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013943 },
13944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013945 {
13946 .vendor = "SST",
13947 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013948 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013949 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013950 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013951 .total_size = 512,
13952 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013953 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013954 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013955 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013956 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013957 .block_erasers =
13958 {
13959 {
13960 .eraseblocks = { {4 * 1024, 128} },
13961 .block_erase = erase_sector_jedec,
13962 }, {
13963 .eraseblocks = { {512 * 1024, 1} },
13964 .block_erase = erase_chip_block_jedec,
13965 }
13966 },
Sean Nelson35727f72010-01-28 23:55:12 +000013967 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013969 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013970 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013971
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013972 {
13973 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013974 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013975 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013976 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013977 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013978 .total_size = 1024,
13979 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013980 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013981 .tested = TEST_UNTESTED,
13982 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013983 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013984 .block_erasers =
13985 {
13986 {
13987 .eraseblocks = { {4 * 1024, 256} },
13988 .block_erase = erase_sector_jedec,
13989 }, {
13990 .eraseblocks = { {64 * 1024, 16} },
13991 .block_erase = erase_block_jedec,
13992 }, {
13993 .eraseblocks = { {1024 * 1024, 1} },
13994 .block_erase = erase_chip_block_jedec,
13995 }
13996 },
Sean Nelson35727f72010-01-28 23:55:12 +000013997 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013999 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014000 },
14001
14002 {
14003 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014004 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014005 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014006 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014007 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014008 .total_size = 256,
14009 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014010 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014011 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014012 .probe = probe_jedec,
14013 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014014 .block_erasers =
14015 {
14016 {
14017 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014018 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014019 }, {
14020 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014021 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014022 }, {
14023 .eraseblocks = { {256 * 1024, 1} },
14024 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14025 }
14026 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014027 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014028 .unlock = unlock_sst_fwhub,
14029 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014030 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014031 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014032 },
14033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014034 {
14035 .vendor = "SST",
14036 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014037 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014038 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014039 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014040 .total_size = 384,
14041 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014042 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014043 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014044 .probe = probe_jedec,
14045 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014046 .block_erasers =
14047 {
14048 {
14049 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014050 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014051 }, {
14052 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014053 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014054 }, {
14055 .eraseblocks = { {384 * 1024, 1} },
14056 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14057 }
14058 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014059 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014060 .unlock = unlock_sst_fwhub,
14061 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014063 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014064 },
14065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014066 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014067 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14068 * and is only honored for 64k block erase, but not 4k sector erase.
14069 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014070 .vendor = "SST",
14071 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014072 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014073 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014074 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014075 .total_size = 512,
14076 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014077 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014078 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014079 .probe = probe_jedec,
14080 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014081 .block_erasers =
14082 {
14083 {
14084 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014085 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014086 }, {
14087 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014088 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014089 }, {
14090 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014091 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014092 },
14093 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014094 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014095 .unlock = unlock_sst_fwhub,
14096 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014098 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014099 },
14100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014101 {
14102 .vendor = "SST",
14103 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014104 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014105 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014106 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014107 .total_size = 512,
14108 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014109 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014110 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014111 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014112 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014113 .block_erasers =
14114 {
14115 {
14116 .eraseblocks = { {4 * 1024, 128} },
14117 .block_erase = erase_sector_49lfxxxc,
14118 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014119 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014120 {64 * 1024, 7},
14121 {32 * 1024, 1},
14122 {8 * 1024, 2},
14123 {16 * 1024, 1},
14124 },
Sean Nelson69e58112010-03-23 17:10:28 +000014125 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014126 }
14127 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014128 .printlock = printlock_regspace2_block_eraser_1,
14129 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014130 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014132 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014133 },
14134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014135 {
14136 .vendor = "SST",
14137 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014138 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014139 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014140 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014141 .total_size = 1024,
14142 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014143 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014144 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014145 .probe = probe_jedec,
14146 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014147 .block_erasers =
14148 {
14149 {
14150 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014151 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014152 }, {
14153 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014154 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014155 }, {
14156 .eraseblocks = { {1024 * 1024, 1} },
14157 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14158 }
14159 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014160 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014161 .unlock = unlock_sst_fwhub,
14162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014164 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014165 },
14166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014167 {
14168 .vendor = "SST",
14169 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014170 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014172 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014173 .total_size = 1024,
14174 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014175 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014176 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014177 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014178 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014179 .block_erasers =
14180 {
14181 {
14182 .eraseblocks = { {4 * 1024, 256} },
14183 .block_erase = erase_sector_49lfxxxc,
14184 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014185 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014186 {64 * 1024, 15},
14187 {32 * 1024, 1},
14188 {8 * 1024, 2},
14189 {16 * 1024, 1},
14190 },
Sean Nelson69e58112010-03-23 17:10:28 +000014191 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014192 }
14193 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014194 .printlock = printlock_regspace2_block_eraser_1,
14195 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014196 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014197 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014198 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014199 },
14200
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014201 {
14202 .vendor = "SST",
14203 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014204 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014205 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014206 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014207 .total_size = 2048,
14208 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014209 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014210 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014211 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014212 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014213 .block_erasers =
14214 {
14215 {
14216 .eraseblocks = { {4 * 1024, 512} },
14217 .block_erase = erase_sector_49lfxxxc,
14218 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014219 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014220 {64 * 1024, 31},
14221 {32 * 1024, 1},
14222 {8 * 1024, 2},
14223 {16 * 1024, 1},
14224 },
Sean Nelson69e58112010-03-23 17:10:28 +000014225 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014226 }
14227 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014228 .printlock = printlock_regspace2_block_eraser_1,
14229 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014230 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014232 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014233 },
14234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014235 {
14236 .vendor = "SST",
14237 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014238 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014239 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014240 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014241 .total_size = 256,
14242 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014243 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014244 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014245 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014246 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014247 .block_erasers =
14248 {
14249 {
14250 .eraseblocks = { {4 * 1024, 64} },
14251 .block_erase = erase_sector_jedec,
14252 }, {
14253 .eraseblocks = { {16 * 1024, 16} },
14254 .block_erase = erase_block_jedec,
14255 }, {
14256 .eraseblocks = { {256 * 1024, 1} },
14257 .block_erase = NULL,
14258 }
14259 },
Sean Nelson35727f72010-01-28 23:55:12 +000014260 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014262 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014263 },
14264
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014265 {
14266 .vendor = "SST",
14267 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014268 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014269 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014270 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014271 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014272 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014273 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014274 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014275 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014276 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014277 .block_erasers =
14278 {
14279 {
14280 .eraseblocks = { {4 * 1024, 64} },
14281 .block_erase = erase_sector_jedec,
14282 }, {
14283 .eraseblocks = { {16 * 1024, 16} },
14284 .block_erase = erase_block_jedec,
14285 }, {
14286 .eraseblocks = { {256 * 1024, 1} },
14287 .block_erase = NULL,
14288 }
14289 },
Sean Nelson35727f72010-01-28 23:55:12 +000014290 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014292 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014293 },
14294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014295 {
14296 .vendor = "SST",
14297 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014298 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014299 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014300 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014301 .total_size = 512,
14302 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014303 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014304 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014305 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014306 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014307 .block_erasers =
14308 {
14309 {
14310 .eraseblocks = { {4 * 1024, 128} },
14311 .block_erase = erase_sector_jedec,
14312 }, {
14313 .eraseblocks = { {64 * 1024, 8} },
14314 .block_erase = erase_block_jedec,
14315 }, {
14316 .eraseblocks = { {512 * 1024, 1} },
14317 .block_erase = NULL,
14318 }
14319 },
Sean Nelson35727f72010-01-28 23:55:12 +000014320 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014321 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014322 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014323 },
14324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 {
14326 .vendor = "SST",
14327 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014328 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014329 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014330 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014331 .total_size = 512,
14332 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014333 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014334 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014335 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014336 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014337 .block_erasers =
14338 {
14339 {
14340 .eraseblocks = { {4 * 1024, 128} },
14341 .block_erase = erase_sector_jedec,
14342 }, {
14343 .eraseblocks = { {64 * 1024, 8} },
14344 .block_erase = erase_block_jedec,
14345 }, {
14346 .eraseblocks = { {512 * 1024, 1} },
14347 .block_erase = NULL,
14348 }
14349 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014350 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014351 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014352 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014353 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014354 },
14355
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014356 {
14357 .vendor = "SST",
14358 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014359 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014360 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014361 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014362 .total_size = 1024,
14363 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014364 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014365 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014366 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014367 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014368 .block_erasers =
14369 {
14370 {
14371 .eraseblocks = { {4 * 1024, 256} },
14372 .block_erase = erase_sector_jedec,
14373 }, {
14374 .eraseblocks = { {64 * 1024, 16} },
14375 .block_erase = erase_block_jedec,
14376 }, {
14377 .eraseblocks = { {1024 * 1024, 1} },
14378 .block_erase = NULL,
14379 }
14380 },
Sean Nelson35727f72010-01-28 23:55:12 +000014381 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014382 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014383 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014384 },
14385
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014386 {
14387 .vendor = "SST",
14388 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014389 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014390 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014391 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014392 .total_size = 2048,
14393 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014394 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014395 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014396 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014397 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014398 .block_erasers =
14399 {
14400 {
14401 .eraseblocks = { {4 * 1024, 512} },
14402 .block_erase = erase_sector_49lfxxxc,
14403 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014404 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014405 {64 * 1024, 31},
14406 {32 * 1024, 1},
14407 {8 * 1024, 2},
14408 {16 * 1024, 1},
14409 },
Sean Nelson69e58112010-03-23 17:10:28 +000014410 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014411 }
14412 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014413 .printlock = printlock_regspace2_block_eraser_1,
14414 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014415 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014417 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014418 },
14419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014420 {
14421 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014422 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014423 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014424 .manufacture_id = ST_ID,
14425 .model_id = ST_M29F002B,
14426 .total_size = 256,
14427 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014428 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014429 .tested = TEST_UNTESTED,
14430 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014431 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014432 .block_erasers =
14433 {
14434 {
14435 .eraseblocks = {
14436 {16 * 1024, 1},
14437 {8 * 1024, 2},
14438 {32 * 1024, 1},
14439 {64 * 1024, 3},
14440 },
14441 .block_erase = erase_sector_jedec,
14442 }, {
14443 .eraseblocks = { {256 * 1024, 1} },
14444 .block_erase = erase_chip_block_jedec,
14445 }
14446 },
Sean Nelson35727f72010-01-28 23:55:12 +000014447 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014448 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014449 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014450 },
14451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014452 {
14453 .vendor = "ST",
14454 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014456 .manufacture_id = ST_ID,
14457 .model_id = ST_M29F002T,
14458 .total_size = 256,
14459 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014460 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014462 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014463 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014464 .block_erasers =
14465 {
14466 {
14467 .eraseblocks = {
14468 {64 * 1024, 3},
14469 {32 * 1024, 1},
14470 {8 * 1024, 2},
14471 {16 * 1024, 1},
14472 },
14473 .block_erase = erase_sector_jedec,
14474 }, {
14475 .eraseblocks = { {256 * 1024, 1} },
14476 .block_erase = erase_chip_block_jedec,
14477 }
14478 },
Sean Nelson35727f72010-01-28 23:55:12 +000014479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014480 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014481 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014482 },
14483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014484 {
14485 .vendor = "ST",
14486 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014487 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014488 .manufacture_id = ST_ID,
14489 .model_id = ST_M29F040B,
14490 .total_size = 512,
14491 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014492 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14493 .tested = TEST_UNTESTED,
14494 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014495 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014496 .block_erasers =
14497 {
14498 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014499 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014500 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014501 }, {
14502 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014503 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014504 }
14505 },
Sean Nelson35727f72010-01-28 23:55:12 +000014506 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014507 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014508 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014509 },
14510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014511 {
Sean Nelson35727f72010-01-28 23:55:12 +000014512 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014513 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014514 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014515 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014516 .manufacture_id = ST_ID,
14517 .model_id = ST_M29F400BB,
14518 .total_size = 512,
14519 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014520 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014521 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014522 .probe = probe_jedec,
14523 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014524 .block_erasers =
14525 {
14526 {
14527 .eraseblocks = {
14528 {16 * 1024, 1},
14529 {8 * 1024, 2},
14530 {32 * 1024, 1},
14531 {64 * 1024, 7},
14532 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014533 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014534 }, {
14535 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014536 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014537 }
14538 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014539 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014541 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014542 },
14543 {
14544 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14545 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014546 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014547 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 .manufacture_id = ST_ID,
14549 .model_id = ST_M29F400BT,
14550 .total_size = 512,
14551 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014552 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014553 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014554 .probe = probe_jedec,
14555 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014556 .block_erasers =
14557 {
14558 {
14559 .eraseblocks = {
14560 {64 * 1024, 7},
14561 {32 * 1024, 1},
14562 {8 * 1024, 2},
14563 {16 * 1024, 1},
14564 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014565 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014566 }, {
14567 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014568 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014569 }
14570 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014571 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014573 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014574 },
14575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014576 {
14577 .vendor = "ST",
14578 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014579 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014580 .manufacture_id = ST_ID,
14581 .model_id = ST_M29W010B,
14582 .total_size = 128,
14583 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014584 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014585 .tested = TEST_UNTESTED,
14586 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014587 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014588 .block_erasers =
14589 {
14590 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014591 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014592 .block_erase = erase_sector_jedec,
14593 }, {
14594 .eraseblocks = { {128 * 1024, 1} },
14595 .block_erase = erase_chip_block_jedec,
14596 }
14597 },
Sean Nelson35727f72010-01-28 23:55:12 +000014598 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014600 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014601 },
14602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014603 {
14604 .vendor = "ST",
14605 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014606 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014607 .manufacture_id = ST_ID,
14608 .model_id = ST_M29W040B,
14609 .total_size = 512,
14610 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014611 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014612 .tested = TEST_UNTESTED,
14613 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014614 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014615 .block_erasers =
14616 {
14617 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014618 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014619 .block_erase = erase_sector_jedec,
14620 }, {
14621 .eraseblocks = { {512 * 1024, 1} },
14622 .block_erase = erase_chip_block_jedec,
14623 }
14624 },
Sean Nelson35727f72010-01-28 23:55:12 +000014625 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014626 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014627 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014628 },
14629
Stefan Taunereb582572012-09-21 12:52:50 +000014630 {
14631 .vendor = "ST",
14632 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014633 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000014634 .manufacture_id = ST_ID,
14635 .model_id = ST_M29W512B,
14636 .total_size = 64,
14637 .page_size = 64 * 1024,
14638 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014639 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014640 .probe = probe_jedec,
14641 .probe_timing = TIMING_ZERO,
14642 .block_erasers =
14643 {
14644 {
14645 .eraseblocks = { {64 * 1024, 1} },
14646 .block_erase = erase_chip_block_jedec,
14647 }
14648 },
14649 .write = write_jedec_1,
14650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014651 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014652 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014654 {
14655 .vendor = "ST",
14656 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014657 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014658 .manufacture_id = ST_ID,
14659 .model_id = ST_M50FLW040A,
14660 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014661 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014662 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014663 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014664 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014665 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014666 .block_erasers =
14667 {
14668 {
Sean Nelson329bde72010-01-19 16:39:19 +000014669 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014670 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014671 {64 * 1024, 5}, /* block */
14672 {4 * 1024, 16}, /* sector */
14673 {4 * 1024, 16}, /* sector */
14674 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014675 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014676 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014677 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014678 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014679 }
14680 },
Sean Nelson28accc22010-03-19 18:47:06 +000014681 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014682 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014684 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014685 },
14686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014687 {
14688 .vendor = "ST",
14689 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014690 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014691 .manufacture_id = ST_ID,
14692 .model_id = ST_M50FLW040B,
14693 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014694 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014695 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014696 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014697 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014698 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014699 .block_erasers =
14700 {
14701 {
Sean Nelson329bde72010-01-19 16:39:19 +000014702 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014703 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014704 {4 * 1024, 16}, /* sector */
14705 {64 * 1024, 5}, /* block */
14706 {4 * 1024, 16}, /* sector */
14707 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014708 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014709 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014710 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014711 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014712 }
14713 },
Sean Nelson28accc22010-03-19 18:47:06 +000014714 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014715 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014716 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014717 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014718 },
14719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014720 {
14721 .vendor = "ST",
14722 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014723 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014724 .manufacture_id = ST_ID,
14725 .model_id = ST_M50FLW080A,
14726 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014727 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014728 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014729 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014730 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014731 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014732 .block_erasers =
14733 {
14734 {
Sean Nelson329bde72010-01-19 16:39:19 +000014735 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014736 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014737 {64 * 1024, 13}, /* block */
14738 {4 * 1024, 16}, /* sector */
14739 {4 * 1024, 16}, /* sector */
14740 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014741 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014742 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014743 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014744 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014745 }
14746 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014747 .printlock = printlock_regspace2_block_eraser_0,
14748 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014749 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014750 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014751 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014752 },
14753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014754 {
14755 .vendor = "ST",
14756 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014757 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014758 .manufacture_id = ST_ID,
14759 .model_id = ST_M50FLW080B,
14760 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014761 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014762 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014763 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014764 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014765 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014766 .block_erasers =
14767 {
14768 {
Sean Nelson329bde72010-01-19 16:39:19 +000014769 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014770 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014771 {4 * 1024, 16}, /* sector */
14772 {64 * 1024, 13}, /* block */
14773 {4 * 1024, 16}, /* sector */
14774 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014775 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014776 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014777 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014778 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014779 }
14780 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014781 .printlock = printlock_regspace2_block_eraser_0,
14782 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014783 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014784 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014785 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014786 },
14787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014788 {
14789 .vendor = "ST",
14790 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014791 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 .manufacture_id = ST_ID,
14793 .model_id = ST_M50FW002,
14794 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014795 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014796 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014797 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014798 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014799 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014800 .block_erasers =
14801 {
14802 {
14803 .eraseblocks = {
14804 {64 * 1024, 3},
14805 {32 * 1024, 1},
14806 {8 * 1024, 2},
14807 {16 * 1024, 1},
14808 },
Sean Nelson28accc22010-03-19 18:47:06 +000014809 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014810 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014811 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014812 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014813 }
14814 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014815 .printlock = printlock_regspace2_block_eraser_0,
14816 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014817 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014819 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014820 },
14821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014822 {
14823 .vendor = "ST",
14824 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014825 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014826 .manufacture_id = ST_ID,
14827 .model_id = ST_M50FW016,
14828 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014829 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014830 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014831 .tested = TEST_UNTESTED,
14832 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014833 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014834 .block_erasers =
14835 {
14836 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014837 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014838 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014839 }
14840 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014841 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014842 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014843 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014844 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014845 },
14846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014847 {
14848 .vendor = "ST",
14849 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014850 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014851 .manufacture_id = ST_ID,
14852 .model_id = ST_M50FW040,
14853 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014854 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014855 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014856 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014857 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014858 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014859 .block_erasers =
14860 {
14861 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014862 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014863 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014864 }
14865 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014866 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014867 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014869 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014870 },
14871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014872 {
14873 .vendor = "ST",
14874 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014875 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014876 .manufacture_id = ST_ID,
14877 .model_id = ST_M50FW080,
14878 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014879 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014880 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014881 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014882 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014883 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014884 .block_erasers =
14885 {
14886 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014887 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014888 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014889 }
14890 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014891 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014892 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014894 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014895 },
14896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014897 {
14898 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014899 .name = "M50LPW080",
14900 .bustype = BUS_LPC, /* A/A Mux */
14901 .manufacture_id = ST_ID,
14902 .model_id = ST_M50LPW080,
14903 .total_size = 1024,
14904 .page_size = 0,
14905 .feature_bits = FEATURE_REGISTERMAP,
14906 .tested = TEST_UNTESTED,
14907 .probe = probe_82802ab,
14908 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14909 .block_erasers =
14910 {
14911 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014912 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014913 .block_erase = erase_block_82802ab,
14914 }
14915 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014916 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014917 .write = write_82802ab,
14918 .read = read_memmapped,
14919 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14920 },
14921
14922 {
14923 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014924 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014925 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014926 .manufacture_id = ST_ID,
14927 .model_id = ST_M50LPW116,
14928 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014929 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014930 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014931 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014932 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014934 .block_erasers =
14935 {
14936 {
14937 .eraseblocks = {
14938 {4 * 1024, 16},
14939 {64 * 1024, 30},
14940 {32 * 1024, 1},
14941 {8 * 1024, 2},
14942 {16 * 1024, 1},
14943 },
Sean Nelson28accc22010-03-19 18:47:06 +000014944 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014945 }
14946 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014947 .printlock = printlock_regspace2_block_eraser_0,
14948 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014949 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014951 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014952 },
14953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014954 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014955 .vendor = "SyncMOS/MoselVitelic",
14956 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014957 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014958 .manufacture_id = SYNCMOS_MVC_ID,
14959 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014960 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014961 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014962 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014963 .tested = TEST_UNTESTED,
14964 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014965 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014966 .block_erasers =
14967 {
14968 {
14969 .eraseblocks = { {512, 256} },
14970 .block_erase = erase_sector_jedec,
14971 }, {
14972 .eraseblocks = { {128 * 1024, 1} },
14973 .block_erase = erase_chip_block_jedec,
14974 },
14975 },
Sean Nelson35727f72010-01-28 23:55:12 +000014976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014978 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014979 },
14980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014981 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014982 .vendor = "SyncMOS/MoselVitelic",
14983 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014984 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014985 .manufacture_id = SYNCMOS_MVC_ID,
14986 .model_id = SM_MVC_29C51001T,
14987 .total_size = 128,
14988 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014989 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014990 .tested = TEST_UNTESTED,
14991 .probe = probe_jedec,
14992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14993 .block_erasers =
14994 {
14995 {
14996 .eraseblocks = { {512, 256} },
14997 .block_erase = erase_sector_jedec,
14998 }, {
14999 .eraseblocks = { {128 * 1024, 1} },
15000 .block_erase = erase_chip_block_jedec,
15001 },
15002 },
15003 .write = write_jedec_1,
15004 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015005 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015006 },
15007
15008 {
15009 .vendor = "SyncMOS/MoselVitelic",
15010 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015011 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015012 .manufacture_id = SYNCMOS_MVC_ID,
15013 .model_id = SM_MVC_29C51002B,
15014 .total_size = 256,
15015 .page_size = 512,
15016 .feature_bits = FEATURE_EITHER_RESET,
15017 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015018 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015019 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015020 .block_erasers =
15021 {
15022 {
15023 .eraseblocks = { {512, 512} },
15024 .block_erase = erase_sector_jedec,
15025 }, {
15026 .eraseblocks = { {256 * 1024, 1} },
15027 .block_erase = erase_chip_block_jedec,
15028 },
15029 },
Sean Nelson35727f72010-01-28 23:55:12 +000015030 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015031 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015032 },
15033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015034 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015035 .vendor = "SyncMOS/MoselVitelic",
15036 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015037 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015038 .manufacture_id = SYNCMOS_MVC_ID,
15039 .model_id = SM_MVC_29C51002T,
15040 .total_size = 256,
15041 .page_size = 512,
15042 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015043 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015044 .probe = probe_jedec,
15045 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15046 .block_erasers =
15047 {
15048 {
15049 .eraseblocks = { {512, 512} },
15050 .block_erase = erase_sector_jedec,
15051 }, {
15052 .eraseblocks = { {256 * 1024, 1} },
15053 .block_erase = erase_chip_block_jedec,
15054 },
15055 },
15056 .write = write_jedec_1,
15057 .read = read_memmapped,
15058 },
15059
15060 {
15061 .vendor = "SyncMOS/MoselVitelic",
15062 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015063 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015064 .manufacture_id = SYNCMOS_MVC_ID,
15065 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015067 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015068 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015069 .tested = TEST_UNTESTED,
15070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015071 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000015072 .block_erasers =
15073 {
15074 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015075 .eraseblocks = { {1024, 512} },
15076 .block_erase = erase_sector_jedec,
15077 }, {
15078 .eraseblocks = { {512 * 1024, 1} },
15079 .block_erase = erase_chip_block_jedec,
15080 },
15081 },
15082 .write = write_jedec_1,
15083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015084 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015085 },
15086
15087 {
15088 .vendor = "SyncMOS/MoselVitelic",
15089 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015090 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015091 .manufacture_id = SYNCMOS_MVC_ID,
15092 .model_id = SM_MVC_29C51004T,
15093 .total_size = 512,
15094 .page_size = 1024,
15095 .feature_bits = FEATURE_EITHER_RESET,
15096 .tested = TEST_UNTESTED,
15097 .probe = probe_jedec,
15098 .probe_timing = TIMING_ZERO,
15099 .block_erasers =
15100 {
15101 {
15102 .eraseblocks = { {1024, 512} },
15103 .block_erase = erase_sector_jedec,
15104 }, {
15105 .eraseblocks = { {512 * 1024, 1} },
15106 .block_erase = erase_chip_block_jedec,
15107 },
15108 },
15109 .write = write_jedec_1,
15110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015111 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015112 },
15113
15114 {
15115 .vendor = "SyncMOS/MoselVitelic",
15116 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015117 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015118 .manufacture_id = SYNCMOS_MVC_ID,
15119 .model_id = SM_MVC_29C31004B,
15120 .total_size = 512,
15121 .page_size = 1024,
15122 .feature_bits = FEATURE_EITHER_RESET,
15123 .tested = TEST_UNTESTED,
15124 .probe = probe_jedec,
15125 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15126 .block_erasers =
15127 {
15128 {
15129 .eraseblocks = { {1024, 512} },
15130 .block_erase = erase_sector_jedec,
15131 }, {
15132 .eraseblocks = { {512 * 1024, 1} },
15133 .block_erase = erase_chip_block_jedec,
15134 },
15135 },
15136 .write = write_jedec_1,
15137 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015138 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015139 },
15140
15141 {
15142 .vendor = "SyncMOS/MoselVitelic",
15143 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015144 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015145 .manufacture_id = SYNCMOS_MVC_ID,
15146 .model_id = SM_MVC_29C31004T,
15147 .total_size = 512,
15148 .page_size = 1024,
15149 .feature_bits = FEATURE_EITHER_RESET,
15150 .tested = TEST_UNTESTED,
15151 .probe = probe_jedec,
15152 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15153 .block_erasers =
15154 {
15155 {
15156 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015157 .block_erase = erase_sector_jedec,
15158 }, {
15159 .eraseblocks = { {512 * 1024, 1} },
15160 .block_erase = erase_chip_block_jedec,
15161 },
15162 },
Sean Nelson35727f72010-01-28 23:55:12 +000015163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015165 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015166 },
15167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015168 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015169 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015170 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015171 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015172 .manufacture_id = TI_OLD_ID,
15173 .model_id = TI_TMS29F002RB,
15174 .total_size = 256,
15175 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015176 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015177 .tested = TEST_UNTESTED,
15178 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015179 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015180 .block_erasers =
15181 {
15182 {
15183 .eraseblocks = {
15184 {16 * 1024, 1},
15185 {8 * 1024, 2},
15186 {32 * 1024, 1},
15187 {64 * 1024, 3},
15188 },
15189 .block_erase = erase_sector_jedec,
15190 }, {
15191 .eraseblocks = { {256 * 1024, 1} },
15192 .block_erase = erase_chip_block_jedec,
15193 },
15194 },
Sean Nelson35727f72010-01-28 23:55:12 +000015195 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015197 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015198 },
15199
15200 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015201 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015202 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015203 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015204 .manufacture_id = TI_OLD_ID,
15205 .model_id = TI_TMS29F002RT,
15206 .total_size = 256,
15207 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015208 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015209 .tested = TEST_UNTESTED,
15210 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015211 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015212 .block_erasers =
15213 {
15214 {
15215 .eraseblocks = {
15216 {64 * 1024, 3},
15217 {32 * 1024, 1},
15218 {8 * 1024, 2},
15219 {16 * 1024, 1},
15220 },
15221 .block_erase = erase_sector_jedec,
15222 }, {
15223 .eraseblocks = { {256 * 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 Hailfinger09b4fb72009-05-26 21:26:23 +000015228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015229 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015230 },
15231
15232 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015233 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015234 .name = "W25Q40.V",
15235 .bustype = BUS_SPI,
15236 .manufacture_id = WINBOND_NEX_ID,
15237 .model_id = WINBOND_NEX_W25Q40_V,
15238 .total_size = 512,
15239 .page_size = 256,
15240 /* supports SFDP */
15241 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15242 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000015243 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015244 .probe = probe_spi_rdid,
15245 .probe_timing = TIMING_ZERO,
15246 .block_erasers =
15247 {
15248 {
15249 .eraseblocks = { {4 * 1024, 128} },
15250 .block_erase = spi_block_erase_20,
15251 }, {
15252 .eraseblocks = { {32 * 1024, 16} },
15253 .block_erase = spi_block_erase_52,
15254 }, {
15255 .eraseblocks = { {64 * 1024, 8} },
15256 .block_erase = spi_block_erase_d8,
15257 }, {
15258 .eraseblocks = { {512 * 1024, 1} },
15259 .block_erase = spi_block_erase_60,
15260 }, {
15261 .eraseblocks = { {512 * 1024, 1} },
15262 .block_erase = spi_block_erase_c7,
15263 }
15264 },
15265 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15266 .unlock = spi_disable_blockprotect,
15267 .write = spi_chip_write_256, /* Multi I/O supported */
15268 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15269 .voltage = {2700, 3600},
15270 },
15271
15272 {
15273 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015274 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015275 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015276 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015277 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015278 .total_size = 1024,
15279 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015280 /* supports SFDP */
15281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015283 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015284 .probe = probe_spi_rdid,
15285 .probe_timing = TIMING_ZERO,
15286 .block_erasers =
15287 {
15288 {
15289 .eraseblocks = { {4 * 1024, 256} },
15290 .block_erase = spi_block_erase_20,
15291 }, {
15292 .eraseblocks = { {32 * 1024, 32} },
15293 .block_erase = spi_block_erase_52,
15294 }, {
15295 .eraseblocks = { {64 * 1024, 16} },
15296 .block_erase = spi_block_erase_d8,
15297 }, {
15298 .eraseblocks = { {1024 * 1024, 1} },
15299 .block_erase = spi_block_erase_60,
15300 }, {
15301 .eraseblocks = { {1024 * 1024, 1} },
15302 .block_erase = spi_block_erase_c7,
15303 }
15304 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015305 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015306 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015307 .write = spi_chip_write_256,
15308 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015309 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015310 },
15311
15312 {
15313 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015314 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015315 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015316 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015317 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015318 .total_size = 2048,
15319 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015320 /* supports SFDP */
15321 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015322 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000015323 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015324 .probe = probe_spi_rdid,
15325 .probe_timing = TIMING_ZERO,
15326 .block_erasers =
15327 {
15328 {
15329 .eraseblocks = { {4 * 1024, 512} },
15330 .block_erase = spi_block_erase_20,
15331 }, {
15332 .eraseblocks = { {32 * 1024, 64} },
15333 .block_erase = spi_block_erase_52,
15334 }, {
15335 .eraseblocks = { {64 * 1024, 32} },
15336 .block_erase = spi_block_erase_d8,
15337 }, {
15338 .eraseblocks = { {2 * 1024 * 1024, 1} },
15339 .block_erase = spi_block_erase_60,
15340 }, {
15341 .eraseblocks = { {2 * 1024 * 1024, 1} },
15342 .block_erase = spi_block_erase_c7,
15343 }
15344 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015345 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015346 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015347 .write = spi_chip_write_256,
15348 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015349 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015350 },
15351
15352 {
15353 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015354 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015355 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015356 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015357 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015358 .total_size = 4096,
15359 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015360 /* supports SFDP */
15361 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015362 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015363 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015364 .probe = probe_spi_rdid,
15365 .probe_timing = TIMING_ZERO,
15366 .block_erasers =
15367 {
15368 {
15369 .eraseblocks = { {4 * 1024, 1024} },
15370 .block_erase = spi_block_erase_20,
15371 }, {
15372 .eraseblocks = { {32 * 1024, 128} },
15373 .block_erase = spi_block_erase_52,
15374 }, {
15375 .eraseblocks = { {64 * 1024, 64} },
15376 .block_erase = spi_block_erase_d8,
15377 }, {
15378 .eraseblocks = { {4 * 1024 * 1024, 1} },
15379 .block_erase = spi_block_erase_60,
15380 }, {
15381 .eraseblocks = { {4 * 1024 * 1024, 1} },
15382 .block_erase = spi_block_erase_c7,
15383 }
15384 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015385 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015386 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015387 .write = spi_chip_write_256,
15388 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015389 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015390 },
15391
15392 {
15393 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015394 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015395 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000015396 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015397 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000015398 .total_size = 8192,
15399 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015400 /* supports SFDP */
15401 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015402 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015403 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000015404 .probe = probe_spi_rdid,
15405 .probe_timing = TIMING_ZERO,
15406 .block_erasers =
15407 {
15408 {
15409 .eraseblocks = { {4 * 1024, 2048} },
15410 .block_erase = spi_block_erase_20,
15411 }, {
15412 .eraseblocks = { {32 * 1024, 256} },
15413 .block_erase = spi_block_erase_52,
15414 }, {
15415 .eraseblocks = { {64 * 1024, 128} },
15416 .block_erase = spi_block_erase_d8,
15417 }, {
15418 .eraseblocks = { {8 * 1024 * 1024, 1} },
15419 .block_erase = spi_block_erase_60,
15420 }, {
15421 .eraseblocks = { {8 * 1024 * 1024, 1} },
15422 .block_erase = spi_block_erase_c7,
15423 }
15424 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015425 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015426 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000015427 .write = spi_chip_write_256,
15428 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015429 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015430 },
15431
15432 {
15433 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015434 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015435 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015436 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015437 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015438 .total_size = 16384,
15439 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015440 /* supports SFDP */
15441 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015442 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015443 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015444 .probe = probe_spi_rdid,
15445 .probe_timing = TIMING_ZERO,
15446 .block_erasers =
15447 {
15448 {
15449 .eraseblocks = { {4 * 1024, 4096} },
15450 .block_erase = spi_block_erase_20,
15451 }, {
15452 .eraseblocks = { {32 * 1024, 512} },
15453 .block_erase = spi_block_erase_52,
15454 }, {
15455 .eraseblocks = { {64 * 1024, 256} },
15456 .block_erase = spi_block_erase_d8,
15457 }, {
15458 .eraseblocks = { {16 * 1024 * 1024, 1} },
15459 .block_erase = spi_block_erase_60,
15460 }, {
15461 .eraseblocks = { {16 * 1024 * 1024, 1} },
15462 .block_erase = spi_block_erase_c7,
15463 }
15464 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015466 .unlock = spi_disable_blockprotect,
15467 .write = spi_chip_write_256,
15468 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015469 .voltage = {2700, 3600},
15470 },
15471
15472 {
15473 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020015474 .name = "W25Q128.V..M",
15475 .bustype = BUS_SPI,
15476 .manufacture_id = WINBOND_NEX_ID,
15477 .model_id = WINBOND_NEX_W25Q128_V_M,
15478 .total_size = 16384,
15479 .page_size = 256,
15480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15481 .tested = TEST_OK_PREW,
15482 .probe = probe_spi_rdid,
15483 .probe_timing = TIMING_ZERO,
15484 .block_erasers =
15485 {
15486 {
15487 .eraseblocks = { {4 * 1024, 4096} },
15488 .block_erase = spi_block_erase_20,
15489 }, {
15490 .eraseblocks = { {32 * 1024, 512} },
15491 .block_erase = spi_block_erase_52,
15492 }, {
15493 .eraseblocks = { {64 * 1024, 256} },
15494 .block_erase = spi_block_erase_d8,
15495 }, {
15496 .eraseblocks = { {16 * 1024 * 1024, 1} },
15497 .block_erase = spi_block_erase_60,
15498 }, {
15499 .eraseblocks = { {16 * 1024 * 1024, 1} },
15500 .block_erase = spi_block_erase_c7,
15501 }
15502 },
15503 .unlock = spi_disable_blockprotect,
15504 .write = spi_chip_write_256,
15505 .read = spi_chip_read,
15506 .voltage = {2700, 3600},
15507 },
15508
15509 {
15510 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020015511 .name = "W25Q256.V",
15512 .bustype = BUS_SPI,
15513 .manufacture_id = WINBOND_NEX_ID,
15514 .model_id = WINBOND_NEX_W25Q256_V,
15515 .total_size = 32768,
15516 .page_size = 256,
15517 /* supports SFDP */
15518 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15519 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010015520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
15521 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020015522 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015523 .probe = probe_spi_rdid,
15524 .probe_timing = TIMING_ZERO,
15525 .block_erasers =
15526 {
15527 {
15528 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020015529 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015530 }, {
15531 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020015532 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015533 }, {
15534 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020015535 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015536 }, {
15537 .eraseblocks = { {32 * 1024 * 1024, 1} },
15538 .block_erase = spi_block_erase_60,
15539 }, {
15540 .eraseblocks = { {32 * 1024 * 1024, 1} },
15541 .block_erase = spi_block_erase_c7,
15542 }
15543 },
15544 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15545 .unlock = spi_disable_blockprotect,
15546 .write = spi_chip_write_256,
15547 .read = spi_chip_read,
15548 .voltage = {2700, 3600},
15549 },
15550
15551 {
15552 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015553 .name = "W25Q20.W",
15554 .bustype = BUS_SPI,
15555 .manufacture_id = WINBOND_NEX_ID,
15556 .model_id = WINBOND_NEX_W25Q20_W,
15557 .total_size = 256,
15558 .page_size = 256,
15559 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15560 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15561 .tested = TEST_UNTESTED,
15562 .probe = probe_spi_rdid,
15563 .probe_timing = TIMING_ZERO,
15564 .block_erasers =
15565 {
15566 {
15567 .eraseblocks = { {4 * 1024, 64} },
15568 .block_erase = spi_block_erase_20,
15569 }, {
15570 .eraseblocks = { {32 * 1024, 8} },
15571 .block_erase = spi_block_erase_52,
15572 }, {
15573 .eraseblocks = { {64 * 1024, 4} },
15574 .block_erase = spi_block_erase_d8,
15575 }, {
15576 .eraseblocks = { {256 * 1024, 1} },
15577 .block_erase = spi_block_erase_60,
15578 }, {
15579 .eraseblocks = { {256 * 1024, 1} },
15580 .block_erase = spi_block_erase_c7,
15581 }
15582 },
15583 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15584 .unlock = spi_disable_blockprotect,
15585 .write = spi_chip_write_256,
15586 .read = spi_chip_read,
15587 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15588 },
15589
15590 {
15591 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020015592 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015593 .bustype = BUS_SPI,
15594 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020015595 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015596 .total_size = 512,
15597 .page_size = 256,
15598 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15599 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020015600 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015601 .probe = probe_spi_rdid,
15602 .probe_timing = TIMING_ZERO,
15603 .block_erasers =
15604 {
15605 {
15606 .eraseblocks = { {4 * 1024, 128} },
15607 .block_erase = spi_block_erase_20,
15608 }, {
15609 .eraseblocks = { {32 * 1024, 16} },
15610 .block_erase = spi_block_erase_52,
15611 }, {
15612 .eraseblocks = { {64 * 1024, 8} },
15613 .block_erase = spi_block_erase_d8,
15614 }, {
15615 .eraseblocks = { {512 * 1024, 1} },
15616 .block_erase = spi_block_erase_60,
15617 }, {
15618 .eraseblocks = { {512 * 1024, 1} },
15619 .block_erase = spi_block_erase_c7,
15620 }
15621 },
15622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15623 .unlock = spi_disable_blockprotect,
15624 .write = spi_chip_write_256,
15625 .read = spi_chip_read,
15626 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15627 },
15628
15629 {
15630 .vendor = "Winbond",
David Hendricksc699f5c2018-03-11 17:29:49 -070015631 .name = "W25Q80BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015632 .bustype = BUS_SPI,
15633 .manufacture_id = WINBOND_NEX_ID,
David Hendricksc699f5c2018-03-11 17:29:49 -070015634 .model_id = WINBOND_NEX_W25Q80BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015635 .total_size = 1024,
15636 .page_size = 256,
15637 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015639 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015640 .probe = probe_spi_rdid,
15641 .probe_timing = TIMING_ZERO,
15642 .block_erasers =
15643 {
15644 {
15645 .eraseblocks = { {4 * 1024, 256} },
15646 .block_erase = spi_block_erase_20,
15647 }, {
15648 .eraseblocks = { {32 * 1024, 32} },
15649 .block_erase = spi_block_erase_52,
15650 }, {
15651 .eraseblocks = { {64 * 1024, 16} },
15652 .block_erase = spi_block_erase_d8,
15653 }, {
15654 .eraseblocks = { {1 * 1024 * 1024, 1} },
15655 .block_erase = spi_block_erase_60,
15656 }, {
15657 .eraseblocks = { {1 * 1024 * 1024, 1} },
15658 .block_erase = spi_block_erase_c7,
15659 }
15660 },
15661 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15662 .unlock = spi_disable_blockprotect,
15663 .write = spi_chip_write_256,
15664 .read = spi_chip_read,
15665 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15666 },
Nico Huber25683572018-03-30 13:50:13 +020015667
15668 {
15669 .vendor = "Winbond",
15670 .name = "W25Q40EW",
15671 .bustype = BUS_SPI,
15672 .manufacture_id = WINBOND_NEX_ID,
15673 .model_id = WINBOND_NEX_W25Q40EW,
15674 .total_size = 512,
15675 .page_size = 256,
15676 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15678 .tested = TEST_UNTESTED,
15679 .probe = probe_spi_rdid,
15680 .probe_timing = TIMING_ZERO,
15681 .block_erasers =
15682 {
15683 {
15684 .eraseblocks = { {4 * 1024, 128} },
15685 .block_erase = spi_block_erase_20,
15686 }, {
15687 .eraseblocks = { {32 * 1024, 16} },
15688 .block_erase = spi_block_erase_52,
15689 }, {
15690 .eraseblocks = { {64 * 1024, 8} },
15691 .block_erase = spi_block_erase_d8,
15692 }, {
15693 .eraseblocks = { {512 * 1024, 1} },
15694 .block_erase = spi_block_erase_60,
15695 }, {
15696 .eraseblocks = { {512 * 1024, 1} },
15697 .block_erase = spi_block_erase_c7,
15698 }
15699 },
15700 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15701 .unlock = spi_disable_blockprotect,
15702 .write = spi_chip_write_256,
15703 .read = spi_chip_read,
15704 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15705 },
15706
Stanislav Sedovf5775442018-03-07 14:16:51 -080015707 {
15708 .vendor = "Winbond",
15709 .name = "W25Q80EW",
15710 .bustype = BUS_SPI,
15711 .manufacture_id = WINBOND_NEX_ID,
15712 .model_id = WINBOND_NEX_W25Q80EW,
15713 .total_size = 1024,
15714 .page_size = 256,
15715 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15716 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15717 .tested = TEST_OK_PREW,
15718 .probe = probe_spi_rdid,
15719 .probe_timing = TIMING_ZERO,
15720 .block_erasers =
15721 {
15722 {
15723 .eraseblocks = { {4 * 1024, 256} },
15724 .block_erase = spi_block_erase_20,
15725 }, {
15726 .eraseblocks = { {32 * 1024, 32} },
15727 .block_erase = spi_block_erase_52,
15728 }, {
15729 .eraseblocks = { {64 * 1024, 16} },
15730 .block_erase = spi_block_erase_d8,
15731 }, {
15732 .eraseblocks = { {1 * 1024 * 1024, 1} },
15733 .block_erase = spi_block_erase_60,
15734 }, {
15735 .eraseblocks = { {1 * 1024 * 1024, 1} },
15736 .block_erase = spi_block_erase_c7,
15737 }
15738 },
15739 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15740 .unlock = spi_disable_blockprotect,
15741 .write = spi_chip_write_256,
15742 .read = spi_chip_read,
15743 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15744 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015745
15746 {
15747 .vendor = "Winbond",
15748 .name = "W25Q16.W",
15749 .bustype = BUS_SPI,
15750 .manufacture_id = WINBOND_NEX_ID,
15751 .model_id = WINBOND_NEX_W25Q16_W,
15752 .total_size = 2048,
15753 .page_size = 256,
15754 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15755 /* QPI enable 0x38, disable 0xFF */
15756 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15757 .tested = TEST_UNTESTED,
15758 .probe = probe_spi_rdid,
15759 .probe_timing = TIMING_ZERO,
15760 .block_erasers =
15761 {
15762 {
15763 .eraseblocks = { {4 * 1024, 512} },
15764 .block_erase = spi_block_erase_20,
15765 }, {
15766 .eraseblocks = { {32 * 1024, 64} },
15767 .block_erase = spi_block_erase_52,
15768 }, {
15769 .eraseblocks = { {64 * 1024, 32} },
15770 .block_erase = spi_block_erase_d8,
15771 }, {
15772 .eraseblocks = { {2 * 1024 * 1024, 1} },
15773 .block_erase = spi_block_erase_60,
15774 }, {
15775 .eraseblocks = { {2 * 1024 * 1024, 1} },
15776 .block_erase = spi_block_erase_c7,
15777 }
15778 },
15779 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15780 .unlock = spi_disable_blockprotect,
15781 .write = spi_chip_write_256,
15782 .read = spi_chip_read,
15783 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15784 },
15785
15786 {
15787 .vendor = "Winbond",
15788 .name = "W25Q32.W",
15789 .bustype = BUS_SPI,
15790 .manufacture_id = WINBOND_NEX_ID,
15791 .model_id = WINBOND_NEX_W25Q32_W,
15792 .total_size = 4096,
15793 .page_size = 256,
15794 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15795 /* QPI enable 0x38, disable 0xFF */
15796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15797 .tested = TEST_OK_PREW,
15798 .probe = probe_spi_rdid,
15799 .probe_timing = TIMING_ZERO,
15800 .block_erasers =
15801 {
15802 {
15803 .eraseblocks = { {4 * 1024, 1024} },
15804 .block_erase = spi_block_erase_20,
15805 }, {
15806 .eraseblocks = { {32 * 1024, 128} },
15807 .block_erase = spi_block_erase_52,
15808 }, {
15809 .eraseblocks = { {64 * 1024, 64} },
15810 .block_erase = spi_block_erase_d8,
15811 }, {
15812 .eraseblocks = { {4 * 1024 * 1024, 1} },
15813 .block_erase = spi_block_erase_60,
15814 }, {
15815 .eraseblocks = { {4 * 1024 * 1024, 1} },
15816 .block_erase = spi_block_erase_c7,
15817 }
15818 },
15819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15820 .unlock = spi_disable_blockprotect,
15821 .write = spi_chip_write_256,
15822 .read = spi_chip_read,
15823 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15824 },
15825
15826 {
15827 .vendor = "Winbond",
15828 .name = "W25Q64.W",
15829 .bustype = BUS_SPI,
15830 .manufacture_id = WINBOND_NEX_ID,
15831 .model_id = WINBOND_NEX_W25Q64_W,
15832 .total_size = 8192,
15833 .page_size = 256,
15834 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15835 /* QPI enable 0x38, disable 0xFF */
15836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015837 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015838 .probe = probe_spi_rdid,
15839 .probe_timing = TIMING_ZERO,
15840 .block_erasers =
15841 {
15842 {
15843 .eraseblocks = { {4 * 1024, 2048} },
15844 .block_erase = spi_block_erase_20,
15845 }, {
15846 .eraseblocks = { {32 * 1024, 256} },
15847 .block_erase = spi_block_erase_52,
15848 }, {
15849 .eraseblocks = { {64 * 1024, 128} },
15850 .block_erase = spi_block_erase_d8,
15851 }, {
15852 .eraseblocks = { {8 * 1024 * 1024, 1} },
15853 .block_erase = spi_block_erase_60,
15854 }, {
15855 .eraseblocks = { {8 * 1024 * 1024, 1} },
15856 .block_erase = spi_block_erase_c7,
15857 }
15858 },
15859 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15860 .unlock = spi_disable_blockprotect,
15861 .write = spi_chip_write_256,
15862 .read = spi_chip_read,
15863 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015864 },
15865
15866 {
15867 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020015868 .name = "W25Q128.W",
15869 .bustype = BUS_SPI,
15870 .manufacture_id = WINBOND_NEX_ID,
15871 .model_id = WINBOND_NEX_W25Q128_W,
15872 .total_size = 16384,
15873 .page_size = 256,
15874 /* supports SFDP */
15875 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080015877 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020015878 .probe = probe_spi_rdid,
15879 .probe_timing = TIMING_ZERO,
15880 .block_erasers =
15881 {
15882 {
15883 .eraseblocks = { {4 * 1024, 4096} },
15884 .block_erase = spi_block_erase_20,
15885 }, {
15886 .eraseblocks = { {32 * 1024, 512} },
15887 .block_erase = spi_block_erase_52,
15888 }, {
15889 .eraseblocks = { {64 * 1024, 256} },
15890 .block_erase = spi_block_erase_d8,
15891 }, {
15892 .eraseblocks = { {16 * 1024 * 1024, 1} },
15893 .block_erase = spi_block_erase_60,
15894 }, {
15895 .eraseblocks = { {16 * 1024 * 1024, 1} },
15896 .block_erase = spi_block_erase_c7,
15897 }
15898 },
15899 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15900 .unlock = spi_disable_blockprotect,
15901 .write = spi_chip_write_256,
15902 .read = spi_chip_read,
15903 .voltage = {1650, 1950},
15904 },
15905
15906 {
15907 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015908 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015909 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015910 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015911 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015912 .total_size = 128,
15913 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015914 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015915 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015916 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015917 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015918 .block_erasers =
15919 {
15920 {
15921 .eraseblocks = { {4 * 1024, 32} },
15922 .block_erase = spi_block_erase_20,
15923 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015924 .eraseblocks = { {64 * 1024, 2} },
15925 .block_erase = spi_block_erase_d8,
15926 }, {
15927 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015928 .block_erase = spi_block_erase_c7,
15929 }
15930 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015931 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015932 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015933 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015934 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015935 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015936 },
15937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015938 {
15939 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015940 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015941 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015942 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015943 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015944 .total_size = 256,
15945 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015946 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015947 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015949 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015950 .block_erasers =
15951 {
15952 {
15953 .eraseblocks = { {4 * 1024, 64} },
15954 .block_erase = spi_block_erase_20,
15955 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015956 .eraseblocks = { {64 * 1024, 4} },
15957 .block_erase = spi_block_erase_d8,
15958 }, {
15959 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015960 .block_erase = spi_block_erase_c7,
15961 }
15962 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015963 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015964 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015965 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015966 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015967 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015968 },
15969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015970 {
15971 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015972 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015973 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015974 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015975 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015976 .total_size = 512,
15977 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015978 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015981 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015982 .block_erasers =
15983 {
15984 {
15985 .eraseblocks = { {4 * 1024, 128} },
15986 .block_erase = spi_block_erase_20,
15987 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015988 .eraseblocks = { {64 * 1024, 8} },
15989 .block_erase = spi_block_erase_d8,
15990 }, {
15991 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015992 .block_erase = spi_block_erase_c7,
15993 }
15994 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015995 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015996 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015997 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015998 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016000 },
16001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016002 {
16003 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016004 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016005 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016006 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016007 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016008 .total_size = 1024,
16009 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016010 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000016011 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016012 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016013 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016014 .block_erasers =
16015 {
16016 {
16017 .eraseblocks = { {4 * 1024, 256} },
16018 .block_erase = spi_block_erase_20,
16019 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016020 .eraseblocks = { {64 * 1024, 16} },
16021 .block_erase = spi_block_erase_d8,
16022 }, {
16023 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016024 .block_erase = spi_block_erase_c7,
16025 }
16026 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016027 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016028 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016029 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016031 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016032 },
16033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016034 {
16035 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016036 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016037 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000016038 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016039 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000016040 .total_size = 2048,
16041 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016042 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000016043 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000016044 .probe = probe_spi_rdid,
16045 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016046 .block_erasers =
16047 {
16048 {
16049 .eraseblocks = { {4 * 1024, 512} },
16050 .block_erase = spi_block_erase_20,
16051 }, {
16052 .eraseblocks = { {32 * 1024, 64} },
16053 .block_erase = spi_block_erase_52,
16054 }, {
16055 .eraseblocks = { {64 * 1024, 32} },
16056 .block_erase = spi_block_erase_d8,
16057 }, {
16058 .eraseblocks = { {2 * 1024 * 1024, 1} },
16059 .block_erase = spi_block_erase_60,
16060 }, {
16061 .eraseblocks = { {2 * 1024 * 1024, 1} },
16062 .block_erase = spi_block_erase_c7,
16063 }
16064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016065 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016066 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000016067 .write = spi_chip_write_256,
16068 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016069 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000016070 },
16071
16072 {
16073 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016074 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016075 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016076 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016077 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000016078 .total_size = 4096,
16079 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016080 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000016081 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016082 .probe = probe_spi_rdid,
16083 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016084 .block_erasers =
16085 {
16086 {
16087 .eraseblocks = { {4 * 1024, 1024} },
16088 .block_erase = spi_block_erase_20,
16089 }, {
16090 .eraseblocks = { {32 * 1024, 128} },
16091 .block_erase = spi_block_erase_52,
16092 }, {
16093 .eraseblocks = { {64 * 1024, 64} },
16094 .block_erase = spi_block_erase_d8,
16095 }, {
16096 .eraseblocks = { {4 * 1024 * 1024, 1} },
16097 .block_erase = spi_block_erase_60,
16098 }, {
16099 .eraseblocks = { {4 * 1024 * 1024, 1} },
16100 .block_erase = spi_block_erase_c7,
16101 }
16102 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016103 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016104 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016105 .write = spi_chip_write_256,
16106 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016107 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016108 },
16109
16110 {
16111 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016112 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016113 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016114 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016115 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000016116 .total_size = 8192,
16117 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016118 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016119 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016120 .probe = probe_spi_rdid,
16121 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016122 .block_erasers =
16123 {
16124 {
16125 .eraseblocks = { {4 * 1024, 2048} },
16126 .block_erase = spi_block_erase_20,
16127 }, {
16128 .eraseblocks = { {32 * 1024, 256} },
16129 .block_erase = spi_block_erase_52,
16130 }, {
16131 .eraseblocks = { {64 * 1024, 128} },
16132 .block_erase = spi_block_erase_d8,
16133 }, {
16134 .eraseblocks = { {8 * 1024 * 1024, 1} },
16135 .block_erase = spi_block_erase_60,
16136 }, {
16137 .eraseblocks = { {8 * 1024 * 1024, 1} },
16138 .block_erase = spi_block_erase_c7,
16139 }
16140 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016141 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016142 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016143 .write = spi_chip_write_256,
16144 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016145 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016146 },
16147
16148 {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016149 .vendor = "Winbond",
16150 .name = "W25P80",
16151 .bustype = BUS_SPI,
16152 .manufacture_id = WINBOND_NEX_ID,
16153 .model_id = WINBOND_NEX_W25P80,
16154 .total_size = 1024,
16155 .page_size = 256,
16156 .feature_bits = FEATURE_WRSR_WREN,
16157 .tested = TEST_UNTESTED,
16158 .probe = probe_spi_rdid,
16159 .probe_timing = TIMING_ZERO,
16160 .block_erasers =
16161 {
16162 {
16163 .eraseblocks = { {64 * 1024, 16} },
16164 .block_erase = spi_block_erase_d8,
16165 }, {
16166 .eraseblocks = { {1024 * 1024, 1} },
16167 .block_erase = spi_block_erase_c7,
16168 }
16169 },
16170 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16171 .unlock = spi_disable_blockprotect,
16172 .write = spi_chip_write_256,
16173 .read = spi_chip_read, /* Fast read (0x0B) supported */
16174 .voltage = {2700, 3600},
16175 },
16176
16177 {
16178 .vendor = "Winbond",
16179 .name = "W25P16",
16180 .bustype = BUS_SPI,
16181 .manufacture_id = WINBOND_NEX_ID,
16182 .model_id = WINBOND_NEX_W25P16,
16183 .total_size = 2048,
16184 .page_size = 256,
16185 .feature_bits = FEATURE_WRSR_WREN,
16186 .tested = TEST_UNTESTED,
16187 .probe = probe_spi_rdid,
16188 .probe_timing = TIMING_ZERO,
16189 .block_erasers =
16190 {
16191 {
16192 .eraseblocks = { {64 * 1024, 32} },
16193 .block_erase = spi_block_erase_d8,
16194 }, {
16195 .eraseblocks = { {2048 * 1024, 1} },
16196 .block_erase = spi_block_erase_c7,
16197 }
16198 },
16199 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16200 .unlock = spi_disable_blockprotect,
16201 .write = spi_chip_write_256,
16202 .read = spi_chip_read, /* Fast read (0x0B) supported */
16203 .voltage = {2700, 3600},
16204 },
16205
16206 {
16207 .vendor = "Winbond",
16208 .name = "W25P32",
16209 .bustype = BUS_SPI,
16210 .manufacture_id = WINBOND_NEX_ID,
16211 .model_id = WINBOND_NEX_W25P32,
16212 .total_size = 4096,
16213 .page_size = 256,
16214 .feature_bits = FEATURE_WRSR_WREN,
16215 .tested = TEST_UNTESTED,
16216 .probe = probe_spi_rdid,
16217 .probe_timing = TIMING_ZERO,
16218 .block_erasers =
16219 {
16220 {
16221 .eraseblocks = { {64 * 1024, 64} },
16222 .block_erase = spi_block_erase_d8,
16223 }, {
16224 .eraseblocks = { {4096 * 1024, 1} },
16225 .block_erase = spi_block_erase_c7,
16226 }
16227 },
16228 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16229 .unlock = spi_disable_blockprotect,
16230 .write = spi_chip_write_256,
16231 .read = spi_chip_read, /* Fast read (0x0B) supported */
16232 .voltage = {2700, 3600},
16233 },
16234 {
Zheng Bao1db2b752009-11-26 11:05:01 +000016235 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000016236 .name = "W29C512A/W29EE512",
16237 .bustype = BUS_PARALLEL,
16238 .manufacture_id = WINBOND_ID,
16239 .model_id = WINBOND_W29C512A,
16240 .total_size = 64,
16241 .page_size = 128,
16242 .feature_bits = FEATURE_LONG_RESET,
16243 .tested = TEST_OK_PREW,
16244 .probe = probe_jedec,
16245 .probe_timing = 10,
16246 .block_erasers =
16247 {
16248 {
16249 .eraseblocks = { {64 * 1024, 1} },
16250 .block_erase = erase_chip_block_jedec,
16251 }
16252 },
16253 .write = write_jedec,
16254 .read = read_memmapped,
16255 .voltage = {4500, 5500},
16256 },
16257
16258 {
16259 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016260 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016261 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016262 .manufacture_id = WINBOND_ID,
16263 .model_id = WINBOND_W29C010,
16264 .total_size = 128,
16265 .page_size = 128,
16266 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000016267 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016268 .probe = probe_w29ee011,
16269 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
16270 .block_erasers =
16271 {
16272 {
16273 .eraseblocks = { {128 * 1024, 1} },
16274 .block_erase = erase_chip_block_jedec,
16275 }
16276 },
16277 .write = write_jedec,
16278 .read = read_memmapped,
16279 },
16280
16281 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
16282 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016283 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016284 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016285 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016286 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016287 .total_size = 128,
16288 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016289 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000016290 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016291 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016292 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016293 .block_erasers =
16294 {
16295 {
16296 .eraseblocks = { {128 * 1024, 1} },
16297 .block_erase = erase_chip_block_jedec,
16298 }
16299 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016300 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016301 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016302 },
16303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016304 {
16305 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016306 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016307 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016308 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016309 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016310 .total_size = 256,
16311 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016312 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016313 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016314 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016315 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016316 .block_erasers =
16317 {
16318 {
16319 .eraseblocks = { {256 * 1024, 1} },
16320 .block_erase = erase_chip_block_jedec,
16321 }
16322 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016323 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016325 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016326 },
16327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016328 {
16329 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016330 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016331 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016332 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016333 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016334 .total_size = 512,
16335 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000016336 .feature_bits = FEATURE_LONG_RESET,
16337 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016338 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016339 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016340 .block_erasers =
16341 {
16342 {
16343 .eraseblocks = { {512 * 1024, 1} },
16344 .block_erase = erase_chip_block_jedec,
16345 }
16346 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016347 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016349 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016350 },
16351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016352 {
16353 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016354 .name = "W29GL032CB",
16355 .bustype = BUS_PARALLEL,
16356 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16357 .model_id = WINBOND_W29GL032CB,
16358 .total_size = 4096,
16359 .page_size = 128 * 1024, /* actual page size is 16 */
16360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16361 .tested = TEST_UNTESTED,
16362 .probe = probe_jedec_29gl,
16363 .probe_timing = TIMING_ZERO,
16364 .block_erasers =
16365 {
16366 {
16367 .eraseblocks = {
16368 {8 * 1024, 8},
16369 {64 * 1024, 63},
16370 },
16371 .block_erase = erase_sector_jedec,
16372 }, {
16373 .eraseblocks = { {4 * 1024 * 1024, 1} },
16374 .block_erase = erase_chip_block_jedec,
16375 },
16376 },
16377 .write = write_jedec_1,
16378 .read = read_memmapped,
16379 .voltage = {2700, 3600},
16380 },
16381
16382 {
16383 .vendor = "Winbond",
16384 .name = "W29GL032CT",
16385 .bustype = BUS_PARALLEL,
16386 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16387 .model_id = WINBOND_W29GL032CT,
16388 .total_size = 4096,
16389 .page_size = 128 * 1024, /* actual page size is 16 */
16390 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16391 .tested = TEST_UNTESTED,
16392 .probe = probe_jedec_29gl,
16393 .probe_timing = TIMING_ZERO,
16394 .block_erasers =
16395 {
16396 {
16397 .eraseblocks = {
16398 {64 * 1024, 63},
16399 {8 * 1024, 8},
16400 },
16401 .block_erase = erase_sector_jedec,
16402 }, {
16403 .eraseblocks = { {4 * 1024 * 1024, 1} },
16404 .block_erase = erase_chip_block_jedec,
16405 },
16406 },
16407 .write = write_jedec_1,
16408 .read = read_memmapped,
16409 .voltage = {2700, 3600},
16410 },
16411
16412 {
16413 .vendor = "Winbond",
16414 .name = "W29GL032CH/L",
16415 .bustype = BUS_PARALLEL,
16416 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16417 .model_id = WINBOND_W29GL032CHL,
16418 .total_size = 4096,
16419 .page_size = 128 * 1024, /* actual page size is 16 */
16420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16421 .tested = TEST_UNTESTED,
16422 .probe = probe_jedec_29gl,
16423 .probe_timing = TIMING_ZERO,
16424 .block_erasers =
16425 {
16426 {
16427 .eraseblocks = { {64 * 1024, 64} },
16428 .block_erase = erase_sector_jedec,
16429 }, {
16430 .eraseblocks = { {4 * 1024 * 1024, 1} },
16431 .block_erase = erase_chip_block_jedec,
16432 },
16433 },
16434 .write = write_jedec_1,
16435 .read = read_memmapped,
16436 .voltage = {2700, 3600},
16437 },
16438
16439 {
16440 .vendor = "Winbond",
16441 .name = "W29GL064CB",
16442 .bustype = BUS_PARALLEL,
16443 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16444 .model_id = WINBOND_W29GL064CB,
16445 .total_size = 8192,
16446 .page_size = 128 * 1024, /* actual page size is 16 */
16447 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16448 .tested = TEST_UNTESTED,
16449 .probe = probe_jedec_29gl,
16450 .probe_timing = TIMING_ZERO,
16451 .block_erasers =
16452 {
16453 {
16454 .eraseblocks = {
16455 {8 * 1024, 8},
16456 {64 * 1024, 127},
16457 },
16458 .block_erase = erase_sector_jedec,
16459 }, {
16460 .eraseblocks = { {8 * 1024 * 1024, 1} },
16461 .block_erase = erase_chip_block_jedec,
16462 },
16463 },
16464 .write = write_jedec_1,
16465 .read = read_memmapped,
16466 .voltage = {2700, 3600},
16467 },
16468
16469 {
16470 .vendor = "Winbond",
16471 .name = "W29GL064CT",
16472 .bustype = BUS_PARALLEL,
16473 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16474 .model_id = WINBOND_W29GL064CT,
16475 .total_size = 8192,
16476 .page_size = 128 * 1024, /* actual page size is 16 */
16477 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16478 .tested = TEST_UNTESTED,
16479 .probe = probe_jedec_29gl,
16480 .probe_timing = TIMING_ZERO,
16481 .block_erasers =
16482 {
16483 {
16484 .eraseblocks = {
16485 {64 * 1024, 127},
16486 {8 * 1024, 8},
16487 },
16488 .block_erase = erase_sector_jedec,
16489 }, {
16490 .eraseblocks = { {8 * 1024 * 1024, 1} },
16491 .block_erase = erase_chip_block_jedec,
16492 },
16493 },
16494 .write = write_jedec_1,
16495 .read = read_memmapped,
16496 .voltage = {2700, 3600},
16497 },
16498
16499 {
16500 .vendor = "Winbond",
16501 .name = "W29GL064CH/L",
16502 .bustype = BUS_PARALLEL,
16503 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16504 .model_id = WINBOND_W29GL064CHL,
16505 .total_size = 8192,
16506 .page_size = 128 * 1024, /* actual page size is 16 */
16507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16508 .tested = TEST_UNTESTED,
16509 .probe = probe_jedec_29gl,
16510 .probe_timing = TIMING_ZERO,
16511 .block_erasers =
16512 {
16513 {
16514 .eraseblocks = { {64 * 1024, 128} },
16515 .block_erase = erase_sector_jedec,
16516 }, {
16517 .eraseblocks = { {8 * 1024 * 1024, 1} },
16518 .block_erase = erase_chip_block_jedec,
16519 },
16520 },
16521 .write = write_jedec_1,
16522 .read = read_memmapped,
16523 .voltage = {2700, 3600},
16524 },
16525
16526 {
16527 .vendor = "Winbond",
16528 .name = "W29GL128C",
16529 .bustype = BUS_PARALLEL,
16530 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16531 .model_id = WINBOND_W29GL128CHL,
16532 .total_size = 16384,
16533 .page_size = 128 * 1024, /* actual page size is 16 */
16534 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16535 .tested = TEST_UNTESTED,
16536 .probe = probe_jedec_29gl,
16537 .probe_timing = TIMING_ZERO,
16538 .block_erasers =
16539 {
16540 {
16541 .eraseblocks = { {128 * 1024, 128} },
16542 .block_erase = erase_sector_jedec,
16543 }, {
16544 .eraseblocks = { {16 * 1024 * 1024, 1} },
16545 .block_erase = erase_chip_block_jedec,
16546 },
16547 },
16548 .write = write_jedec_1,
16549 .read = read_memmapped,
16550 .voltage = {2700, 3600},
16551 },
16552
16553 {
16554 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000016555 .name = "W39F010",
16556 .bustype = BUS_PARALLEL,
16557 .manufacture_id = WINBOND_ID,
16558 .model_id = WINBOND_W39F010,
16559 .total_size = 128,
16560 .page_size = 4 * 1024,
16561 .feature_bits = FEATURE_EITHER_RESET,
16562 .tested = TEST_OK_PREW,
16563 .probe = probe_jedec,
16564 .probe_timing = 10,
16565 .block_erasers =
16566 {
16567 {
16568 .eraseblocks = { {4 * 1024, 32} },
16569 .block_erase = erase_block_jedec,
16570 }, {
16571 .eraseblocks = { {128 * 1024, 1} },
16572 .block_erase = erase_chip_block_jedec,
16573 }
16574 },
16575 .printlock = printlock_w39f010,
16576 .write = write_jedec_1,
16577 .read = read_memmapped,
16578 .voltage = {4500, 5500},
16579 },
16580
16581 {
16582 .vendor = "Winbond",
16583 .name = "W39L010",
16584 .bustype = BUS_PARALLEL,
16585 .manufacture_id = WINBOND_ID,
16586 .model_id = WINBOND_W39L010,
16587 .total_size = 128,
16588 .page_size = 4 * 1024,
16589 .feature_bits = FEATURE_EITHER_RESET,
16590 .tested = TEST_UNTESTED,
16591 .probe = probe_jedec,
16592 .probe_timing = 10,
16593 .block_erasers =
16594 {
16595 {
16596 .eraseblocks = { {4 * 1024, 32} },
16597 .block_erase = erase_block_jedec,
16598 }, {
16599 .eraseblocks = { {128 * 1024, 1} },
16600 .block_erase = erase_chip_block_jedec,
16601 }
16602 },
16603 .printlock = printlock_w39l010,
16604 .write = write_jedec_1,
16605 .read = read_memmapped,
16606 .voltage = {3000, 3600},
16607 },
16608
16609 {
16610 .vendor = "Winbond",
16611 .name = "W39L020",
16612 .bustype = BUS_PARALLEL,
16613 .manufacture_id = WINBOND_ID,
16614 .model_id = WINBOND_W39L020,
16615 .total_size = 256,
16616 .page_size = 4 * 1024,
16617 .feature_bits = FEATURE_EITHER_RESET,
16618 .tested = TEST_UNTESTED,
16619 .probe = probe_jedec,
16620 .probe_timing = 10,
16621 .block_erasers =
16622 {
16623 {
16624 .eraseblocks = { {4 * 1024, 64} },
16625 .block_erase = erase_block_jedec,
16626 }, {
16627 .eraseblocks = { {64 * 1024, 4} },
16628 .block_erase = erase_sector_jedec,
16629 }, {
16630 .eraseblocks = { {256 * 1024, 1} },
16631 .block_erase = erase_chip_block_jedec,
16632 }
16633 },
16634 .printlock = printlock_w39l020,
16635 .write = write_jedec_1,
16636 .read = read_memmapped,
16637 .voltage = {3000, 3600},
16638 },
16639
16640 {
16641 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000016642 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016643 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000016644 .manufacture_id = WINBOND_ID,
16645 .model_id = WINBOND_W39L040,
16646 .total_size = 512,
16647 .page_size = 64 * 1024,
16648 .feature_bits = FEATURE_EITHER_RESET,
16649 .tested = TEST_OK_PR,
16650 .probe = probe_jedec,
16651 .probe_timing = 10,
16652 .block_erasers =
16653 {
16654 {
16655 .eraseblocks = { {4 * 1024, 128} },
16656 .block_erase = erase_block_jedec,
16657 }, {
16658 .eraseblocks = { {64 * 1024, 8} },
16659 .block_erase = erase_sector_jedec,
16660 }, {
16661 .eraseblocks = { {512 * 1024, 1} },
16662 .block_erase = erase_chip_block_jedec,
16663 }
16664 },
16665 .printlock = printlock_w39l040,
16666 .write = write_jedec_1,
16667 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016668 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000016669 },
16670
16671 {
16672 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016673 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016674 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016675 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016676 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016677 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016678 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016679 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016681 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000016682 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016683 .block_erasers =
16684 {
16685 {
16686 .eraseblocks = { {64 * 1024, 8} },
16687 .block_erase = erase_sector_jedec,
16688 }, {
16689 .eraseblocks = { {512 * 1024, 1} },
16690 .block_erase = erase_chip_block_jedec,
16691 }
16692 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016693 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000016694 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016696 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016697 },
16698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016699 {
16700 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016701 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016702 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016703 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016704 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016705 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016706 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016707 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016708 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016709 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000016710 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016711 .block_erasers =
16712 {
16713 {
16714 .eraseblocks = { {64 * 1024, 8} },
16715 .block_erase = erase_sector_jedec,
16716 }, {
16717 .eraseblocks = { {512 * 1024, 1} },
16718 .block_erase = erase_chip_block_jedec,
16719 }
16720 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016721 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000016722 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016724 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016725 },
16726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016727 {
16728 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016729 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016730 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016731 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016732 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016733 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016734 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016735 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016736 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000016737 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016738 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016739 .block_erasers =
16740 {
16741 {
16742 .eraseblocks = { {64 * 1024, 8} },
16743 .block_erase = erase_sector_jedec,
16744 }, {
16745 .eraseblocks = { {512 * 1024, 1} },
16746 .block_erase = erase_chip_block_jedec,
16747 }
16748 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000016749 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000016750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016753 },
16754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016755 {
16756 .vendor = "Winbond",
16757 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016758 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016759 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016760 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016761 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016762 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000016763 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016765 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016766 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016767 .block_erasers =
16768 {
16769 {
16770 .eraseblocks = { {4 * 1024, 128} },
16771 .block_erase = erase_block_jedec,
16772 }, {
16773 .eraseblocks = { {64 * 1024, 8} },
16774 .block_erase = erase_sector_jedec,
16775 }, {
16776 .eraseblocks = { {512 * 1024, 1} },
16777 .block_erase = erase_chip_block_jedec,
16778 }
16779 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016780 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016781 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016782 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016784 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016785 },
16786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016787 {
16788 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016789 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016790 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016791 .manufacture_id = WINBOND_ID,
16792 .model_id = WINBOND_W39V040B,
16793 .total_size = 512,
16794 .page_size = 64 * 1024,
16795 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000016796 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016797 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016798 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016799 .block_erasers =
16800 {
16801 {
16802 .eraseblocks = { {64 * 1024, 8} },
16803 .block_erase = erase_sector_jedec,
16804 }, {
16805 .eraseblocks = { {512 * 1024, 1} },
16806 .block_erase = erase_chip_block_jedec,
16807 }
16808 },
16809 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016810 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016811 .write = write_jedec_1,
16812 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016813 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016814 },
16815
16816 {
16817 .vendor = "Winbond",
16818 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016819 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016820 .manufacture_id = WINBOND_ID,
16821 .model_id = WINBOND_W39V040C,
16822 .total_size = 512,
16823 .page_size = 64 * 1024,
16824 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000016825 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016826 .probe = probe_jedec,
16827 .probe_timing = 10,
16828 .block_erasers =
16829 {
16830 {
16831 .eraseblocks = { {64 * 1024, 8} },
16832 .block_erase = erase_sector_jedec,
16833 }, {
16834 .eraseblocks = { {512 * 1024, 1} },
16835 .block_erase = erase_chip_block_jedec,
16836 }
16837 },
16838 .printlock = printlock_w39v040fc,
16839 .write = write_jedec_1,
16840 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016841 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016842 },
16843
16844 {
16845 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016846 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016847 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016848 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016849 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016850 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016851 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016852 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000016853 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016854 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000016855 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016856 .block_erasers =
16857 {
16858 {
16859 .eraseblocks = { {64 * 1024, 16} },
16860 .block_erase = erase_sector_jedec,
16861 }, {
16862 .eraseblocks = { {1024 * 1024, 1} },
16863 .block_erase = erase_chip_block_jedec,
16864 }
16865 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016866 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000016867 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016869 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016870 },
16871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016872 {
16873 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016874 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016875 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016876 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016877 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016878 .total_size = 256,
16879 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016880 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016881 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016882 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016883 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016884 .block_erasers =
16885 {
16886 {
16887 .eraseblocks = {
16888 {128 * 1024, 1},
16889 {96 * 1024, 1},
16890 {8 * 1024, 2},
16891 {16 * 1024, 1},
16892 },
16893 .block_erase = erase_sector_jedec,
16894 }, {
16895 .eraseblocks = { {256 * 1024, 1} },
16896 .block_erase = erase_chip_block_jedec,
16897 }
16898 },
Sean Nelson35727f72010-01-28 23:55:12 +000016899 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016900 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016901 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016902 },
16903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016904 {
16905 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016906 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016907 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016908 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016909 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016910 .total_size = 256,
16911 .page_size = 128,
16912 .feature_bits = FEATURE_EITHER_RESET,
16913 .tested = TEST_OK_PROBE,
16914 .probe = probe_jedec,
16915 .probe_timing = 10,
16916 .block_erasers =
16917 {
16918 {
16919 .eraseblocks = { {256 * 1024, 1} },
16920 .block_erase = erase_chip_block_jedec,
16921 }
16922 },
16923 .write = write_jedec_1,
16924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016925 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016926 },
16927
16928 {
16929 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016930 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016931 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016932 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016933 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016934 .total_size = 256,
16935 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016936 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016937 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016938 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016939 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016940 .block_erasers =
16941 {
16942 {
16943 .eraseblocks = {
16944 {64 * 1024, 3},
16945 {32 * 1024, 1},
16946 {8 * 1024, 2},
16947 {16 * 1024, 1},
16948 },
16949 .block_erase = erase_sector_jedec,
16950 }, {
16951 .eraseblocks = { {256 * 1024, 1} },
16952 .block_erase = erase_chip_block_jedec,
16953 }
16954 },
Sean Nelson35727f72010-01-28 23:55:12 +000016955 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016957 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016958 },
16959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016960 {
16961 .vendor = "Winbond",
16962 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016963 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016964 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016965 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016966 .total_size = 256,
16967 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016968 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000016969 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016970 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016971 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016972 .block_erasers =
16973 {
16974 {
16975 .eraseblocks = {
16976 {64 * 1024, 3},
16977 {32 * 1024, 1},
16978 {8 * 1024, 2},
16979 {16 * 1024, 1},
16980 },
16981 .block_erase = erase_sector_jedec,
16982 }, {
16983 .eraseblocks = { {256 * 1024, 1} },
16984 .block_erase = erase_chip_block_jedec,
16985 }
16986 },
Sean Nelson35727f72010-01-28 23:55:12 +000016987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016990 },
16991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016992 {
16993 .vendor = "Winbond",
16994 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016995 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016996 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016997 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016998 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016999 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017000 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017001 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000017002 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017003 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017004 .block_erasers =
17005 {
17006 {
Stefan Tauner6697f712014-08-06 15:09:15 +000017007 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017008 .block_erase = erase_sector_jedec,
17009 }, {
17010 .eraseblocks = { {1024 * 1024, 1} },
17011 .block_erase = erase_chip_block_jedec,
17012 }
17013 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017014 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017015 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017016 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017017 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017018 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000017019 },
17020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017021 {
17022 .vendor = "Winbond",
17023 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017024 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017025 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017026 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017027 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017028 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017029 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017030 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000017031 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017032 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017033 .block_erasers =
17034 {
17035 {
Stefan Tauner6697f712014-08-06 15:09:15 +000017036 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017037 .block_erase = erase_sector_jedec,
17038 }, {
17039 .eraseblocks = { {512 * 1024, 1} },
17040 .block_erase = erase_chip_block_jedec,
17041 }
17042 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017043 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000017044 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017045 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017046 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000017047 },
nybashcbb46e22018-02-11 17:53:49 -080017048
17049 {
17050 .vendor = "Zetta Device",
David Hendricksa72d5a92018-02-11 17:58:44 -080017051 .name = "ZD25D20",
17052 .bustype = BUS_SPI,
17053 .manufacture_id = ZETTADEVICE_ID,
17054 .model_id = ZETTADEVICE_ZD25D20,
17055 .total_size = 256,
17056 .page_size = 256,
17057 .feature_bits = FEATURE_WRSR_WREN,
17058 .tested = TEST_UNTESTED,
17059 .probe = probe_spi_rdid,
17060 .probe_timing = TIMING_ZERO,
17061 .block_erasers =
17062 {
17063 {
17064 .eraseblocks = { {4 * 1024, 64} },
17065 .block_erase = spi_block_erase_20,
17066 }, {
17067 .eraseblocks = { {32 * 1024, 8} },
17068 .block_erase = spi_block_erase_52,
17069 }, {
17070 .eraseblocks = { {64 * 1024, 4} },
17071 .block_erase = spi_block_erase_d8,
17072 }, {
17073 .eraseblocks = { {256 * 1024, 1} },
17074 .block_erase = spi_block_erase_60,
17075 }, {
17076 .eraseblocks = { {256 * 1024, 1} },
17077 .block_erase = spi_block_erase_c7,
17078 }
17079 },
17080 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17081 .unlock = spi_disable_blockprotect,
17082 .write = spi_chip_write_256,
17083 .read = spi_chip_read,
17084 .voltage = {2700, 3600},
17085 },
17086
17087 {
17088 .vendor = "Zetta Device",
nybashcbb46e22018-02-11 17:53:49 -080017089 .name = "ZD25D40",
17090 .bustype = BUS_SPI,
17091 .manufacture_id = ZETTADEVICE_ID,
17092 .model_id = ZETTADEVICE_ZD25D40,
17093 .total_size = 512,
17094 .page_size = 256,
17095 .feature_bits = FEATURE_WRSR_WREN,
17096 .tested = TEST_UNTESTED,
17097 .probe = probe_spi_rdid,
17098 .probe_timing = TIMING_ZERO,
17099 .block_erasers =
17100 {
17101 {
17102 .eraseblocks = { {4 * 1024, 128} },
17103 .block_erase = spi_block_erase_20,
17104 }, {
17105 .eraseblocks = { {32 * 1024, 16} },
17106 .block_erase = spi_block_erase_52,
17107 }, {
17108 .eraseblocks = { {64 * 1024, 8} },
17109 .block_erase = spi_block_erase_d8,
17110 }, {
17111 .eraseblocks = { {512 * 1024, 1} },
17112 .block_erase = spi_block_erase_60,
17113 }, {
17114 .eraseblocks = { {512 * 1024, 1} },
17115 .block_erase = spi_block_erase_c7,
17116 }
17117 },
17118 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17119 .unlock = spi_disable_blockprotect,
17120 .write = spi_chip_write_256,
17121 .read = spi_chip_read,
17122 .voltage = {2700, 3600},
17123 },
17124
Stefan Taunerac1b4c82012-02-17 14:51:04 +000017125 {
17126 .vendor = "Unknown",
17127 .name = "SFDP-capable chip",
17128 .bustype = BUS_SPI,
17129 .manufacture_id = GENERIC_MANUF_ID,
17130 .model_id = SFDP_DEVICE_ID,
17131 /* We present our own "report this" text hence we do not
17132 * want the default "This flash part has status UNTESTED..."
17133 * text to be printed. */
17134 .tested = TEST_OK_PREW,
17135 .probe = probe_spi_sfdp,
17136 .unlock = spi_disable_blockprotect, /* is this safe? */
17137 .read = spi_chip_read,
17138 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000017139 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000017140 /* Everything below will be set by the probing function. */
17141 .write = NULL,
17142 .total_size = 0,
17143 .page_size = 0,
17144 .feature_bits = 0,
17145 .block_erasers = {},
17146 },
FENG yu ningff692fb2008-12-08 18:15:10 +000017147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017148 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000017149 .vendor = "Programmer",
17150 .name = "Opaque flash chip",
17151 .bustype = BUS_PROG,
17152 .manufacture_id = PROGMANUF_ID,
17153 .model_id = PROGDEV_ID,
17154 .total_size = 0,
17155 .page_size = 256,
17156 /* probe is assumed to work, rest will be filled in by probe */
17157 .tested = TEST_OK_PROBE,
17158 .probe = probe_opaque,
17159 /* eraseblock sizes will be set by the probing function */
17160 .block_erasers =
17161 {
17162 {
17163 .block_erase = erase_opaque,
17164 }
17165 },
17166 .write = write_opaque,
17167 .read = read_opaque,
17168 },
17169
17170 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017171 .vendor = "AMIC",
17172 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017173 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017174 .manufacture_id = AMIC_ID,
17175 .model_id = GENERIC_DEVICE_ID,
17176 .total_size = 0,
17177 .page_size = 256,
17178 .tested = TEST_BAD_PREW,
17179 .probe = probe_spi_rdid4,
17180 .probe_timing = TIMING_ZERO,
17181 .write = NULL,
17182 .read = NULL,
17183 },
17184
17185 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017186 .vendor = "Atmel",
17187 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017188 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017189 .manufacture_id = ATMEL_ID,
17190 .model_id = GENERIC_DEVICE_ID,
17191 .total_size = 0,
17192 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017193 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017195 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017196 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017197 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017198 },
17199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017200 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000017201 .vendor = "Eon",
17202 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017203 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017204 .manufacture_id = EON_ID_NOPREFIX,
17205 .model_id = GENERIC_DEVICE_ID,
17206 .total_size = 0,
17207 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017208 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017209 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017210 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017211 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017212 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017213 },
17214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017215 {
17216 .vendor = "Macronix",
17217 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017218 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000017219 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017220 .model_id = GENERIC_DEVICE_ID,
17221 .total_size = 0,
17222 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017223 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017224 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017225 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017226 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017227 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017228 },
17229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017230 {
17231 .vendor = "PMC",
17232 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017233 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017234 .manufacture_id = PMC_ID,
17235 .model_id = GENERIC_DEVICE_ID,
17236 .total_size = 0,
17237 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017238 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017239 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017240 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017241 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017242 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017243 },
17244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017245 {
17246 .vendor = "SST",
17247 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017248 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017249 .manufacture_id = SST_ID,
17250 .model_id = GENERIC_DEVICE_ID,
17251 .total_size = 0,
17252 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017253 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017255 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017256 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017257 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017258 },
17259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017260 {
17261 .vendor = "ST",
17262 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017263 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017264 .manufacture_id = ST_ID,
17265 .model_id = GENERIC_DEVICE_ID,
17266 .total_size = 0,
17267 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017268 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017269 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017270 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017271 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017272 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017273 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000017274
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017275 {
Sean Nelson118e1d62009-11-24 02:08:11 +000017276 .vendor = "Sanyo",
17277 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017278 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000017279 .manufacture_id = SANYO_ID,
17280 .model_id = GENERIC_DEVICE_ID,
17281 .total_size = 0,
17282 .page_size = 256,
17283 .tested = TEST_BAD_PREW,
17284 .probe = probe_spi_rdid,
17285 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000017286 .write = NULL,
17287 .read = NULL,
17288 },
17289
17290 {
Stefan Taunereb582572012-09-21 12:52:50 +000017291 .vendor = "Winbond",
17292 .name = "unknown Winbond (ex Nexcom) SPI chip",
17293 .bustype = BUS_SPI,
17294 .manufacture_id = WINBOND_NEX_ID,
17295 .model_id = GENERIC_DEVICE_ID,
17296 .total_size = 0,
17297 .page_size = 256,
17298 .tested = TEST_BAD_PREW,
17299 .probe = probe_spi_rdid,
17300 .probe_timing = TIMING_ZERO,
17301 .write = NULL,
17302 .read = NULL,
17303 },
17304
17305 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017306 .vendor = "Generic",
17307 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017308 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017309 .manufacture_id = GENERIC_MANUF_ID,
17310 .model_id = GENERIC_DEVICE_ID,
17311 .total_size = 0,
17312 .page_size = 256,
17313 .tested = TEST_BAD_PREW,
17314 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017315 .write = NULL,
17316 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000017317
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017318 {
17319 .vendor = "Generic",
17320 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017321 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017322 .manufacture_id = GENERIC_MANUF_ID,
17323 .model_id = GENERIC_DEVICE_ID,
17324 .total_size = 0,
17325 .page_size = 256,
17326 .tested = TEST_BAD_PREW,
17327 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017328 .write = NULL,
17329 },
17330
Stefan Tauner96658be2014-05-26 22:05:31 +000017331 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000017332};
Stefan Tauner96658be2014-05-26 22:05:31 +000017333
17334const unsigned int flashchips_size = ARRAY_SIZE(flashchips);