blob: 742cc6eeef8d2fa509e434735f65c8876938d6f1 [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 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000062 .name = "Am29F010",
63 .bustype = BUS_PARALLEL,
64 .manufacture_id = AMD_ID,
65 .model_id = AMD_AM29F010,
66 .total_size = 128,
67 .page_size = 16 * 1024,
68 .feature_bits = FEATURE_SHORT_RESET,
69 .tested = TEST_UNTESTED,
70 .probe = probe_jedec,
71 .probe_timing = TIMING_ZERO,
72 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
76 .block_erase = erase_sector_jedec,
77 }, {
78 .eraseblocks = { {128 * 1024, 1} },
79 .block_erase = erase_chip_block_jedec,
80 },
81 },
82 .write = write_jedec_1,
83 .read = read_memmapped,
84 .voltage = {4500, 5500},
85 },
86
87 {
88 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000089 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000091 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000092 .model_id = AMD_AM29F010,
Uwe Hermanna8b37272009-06-19 15:54:39 +000093 .total_size = 128,
94 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000096 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000097 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000103 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000104 }, {
105 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000106 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000107 },
108 },
Sean Nelson35727f72010-01-28 23:55:12 +0000109 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +0000110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000111 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +0000112 },
113
114 {
115 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000117 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000118 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000119 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000120 .total_size = 256,
121 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000122 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .tested = TEST_UNTESTED,
124 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000125 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000126 .block_erasers =
127 {
128 {
129 .eraseblocks = {
130 {16 * 1024, 1},
131 {8 * 1024, 2},
132 {32 * 1024, 1},
133 {64 * 1024, 3},
134 },
135 .block_erase = erase_sector_jedec,
136 }, {
137 .eraseblocks = { {256 * 1024, 1} },
138 .block_erase = erase_chip_block_jedec,
139 },
140 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000142 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000143 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000144 },
145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000146 {
147 .vendor = "AMD",
148 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000149 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000150 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000151 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000152 .total_size = 256,
153 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000154 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
155 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000156 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000157 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000158 .block_erasers =
159 {
160 {
161 .eraseblocks = {
162 {64 * 1024, 3},
163 {32 * 1024, 1},
164 {8 * 1024, 2},
165 {16 * 1024, 1},
166 },
167 .block_erase = erase_sector_jedec,
168 }, {
169 .eraseblocks = { {256 * 1024, 1} },
170 .block_erase = erase_chip_block_jedec,
171 },
172 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000175 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000184 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000187 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000207 .name = "Am29F040",
208 .bustype = BUS_PARALLEL,
209 .manufacture_id = AMD_ID,
210 .model_id = AMD_AM29F040,
211 .total_size = 512,
212 .page_size = 64 * 1024,
213 .feature_bits = FEATURE_EITHER_RESET,
214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
216 .probe_timing = TIMING_ZERO,
217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 8} },
221 .block_erase = erase_sector_jedec,
222 }, {
223 .eraseblocks = { {512 * 1024, 1} },
224 .block_erase = erase_chip_block_jedec,
225 },
226 },
227 .write = write_jedec_1,
228 .read = read_memmapped,
229 .voltage = {4500, 5500},
230 },
231
232 {
233 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000236 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000237 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000238 .total_size = 512,
239 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_UNTESTED,
242 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000243 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000244 .block_erasers =
245 {
246 {
247 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000248 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000249 }, {
250 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000251 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000252 },
253 },
Sean Nelson35727f72010-01-28 23:55:12 +0000254 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000256 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000257 },
258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000259 {
260 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000261 .name = "Am29F080",
262 .bustype = BUS_PARALLEL,
263 .manufacture_id = AMD_ID,
264 .model_id = AMD_AM29F080,
265 .total_size = 1024,
266 .page_size = 64 * 1024,
267 .feature_bits = FEATURE_EITHER_RESET,
268 .tested = TEST_UNTESTED,
269 .probe = probe_jedec,
270 .probe_timing = TIMING_ZERO,
271 .block_erasers =
272 {
273 {
274 .eraseblocks = { {64 * 1024, 16} },
275 .block_erase = erase_sector_jedec,
276 }, {
277 .eraseblocks = { {1024 * 1024, 1} },
278 .block_erase = erase_chip_block_jedec,
279 },
280 },
281 .write = write_jedec_1,
282 .read = read_memmapped,
283 .voltage = {4500, 5500},
284 },
285
286 {
287 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000288 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000289 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000290 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000291 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000292 .total_size = 1024,
293 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000294 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000295 .tested = TEST_UNTESTED,
296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000297 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000298 .block_erasers =
299 {
300 {
301 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000302 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000303 }, {
304 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000305 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000306 },
307 },
Sean Nelson35727f72010-01-28 23:55:12 +0000308 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000309 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000310 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000311 },
312
313 {
314 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000315 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000316 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000317 .manufacture_id = AMD_ID,
318 .model_id = AMD_AM29LV001BB,
319 .total_size = 128,
320 .page_size = 64 * 1024, /* unused */
321 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
322 .tested = TEST_OK_PREW,
323 .probe = probe_jedec,
324 .probe_timing = TIMING_ZERO,
325 .block_erasers =
326 {
327 {
328 .eraseblocks = {
329 {8 * 1024, 1},
330 {4 * 1024, 2},
331 {16 * 1024, 7},
332 },
333 .block_erase = erase_sector_jedec,
334 }, {
335 .eraseblocks = { {128 * 1024, 1} },
336 .block_erase = erase_chip_block_jedec,
337 },
338 },
339 .write = write_jedec_1,
340 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000341 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000342 },
343
344 {
345 .vendor = "AMD",
346 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000347 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000348 .manufacture_id = AMD_ID,
349 .model_id = AMD_AM29LV001BT,
350 .total_size = 128,
351 .page_size = 64 * 1024, /* unused */
352 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
353 .tested = TEST_UNTESTED,
354 .probe = probe_jedec,
355 .probe_timing = TIMING_ZERO,
356 .block_erasers =
357 {
358 {
359 .eraseblocks = {
360 {16 * 1024, 7},
361 {4 * 1024, 2},
362 {8 * 1024, 1},
363 },
364 .block_erase = erase_sector_jedec,
365 }, {
366 .eraseblocks = { {128 * 1024, 1} },
367 .block_erase = erase_chip_block_jedec,
368 },
369 },
370 .write = write_jedec_1,
371 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000372 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000373 },
374
375 {
376 .vendor = "AMD",
377 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000378 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000379 .manufacture_id = AMD_ID,
380 .model_id = AMD_AM29LV002BB,
381 .total_size = 256,
382 .page_size = 64 * 1024, /* unused */
383 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
384 .tested = TEST_UNTESTED,
385 .probe = probe_jedec,
386 .probe_timing = TIMING_ZERO,
387 .block_erasers =
388 {
389 {
390 .eraseblocks = {
391 {16 * 1024, 1},
392 {8 * 1024, 2},
393 {32 * 1024, 1},
394 {64 * 1024, 3},
395 },
396 .block_erase = erase_sector_jedec,
397 }, {
398 .eraseblocks = { {256 * 1024, 1} },
399 .block_erase = erase_chip_block_jedec,
400 },
401 },
402 .write = write_jedec_1,
403 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000404 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000405 },
406
407 {
408 .vendor = "AMD",
409 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000410 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000411 .manufacture_id = AMD_ID,
412 .model_id = AMD_AM29LV002BT,
413 .total_size = 256,
414 .page_size = 64 * 1024, /* unused */
415 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
416 .tested = TEST_UNTESTED,
417 .probe = probe_jedec,
418 .probe_timing = TIMING_ZERO,
419 .block_erasers =
420 {
421 {
422 .eraseblocks = {
423 {64 * 1024, 3},
424 {32 * 1024, 1},
425 {8 * 1024, 2},
426 {16 * 1024, 1},
427 },
428 .block_erase = erase_sector_jedec,
429 }, {
430 .eraseblocks = { {256 * 1024, 1} },
431 .block_erase = erase_chip_block_jedec,
432 },
433 },
434 .write = write_jedec_1,
435 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000436 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000437 },
438
439 {
440 .vendor = "AMD",
441 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000442 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000443 .manufacture_id = AMD_ID,
444 .model_id = AMD_AM29LV004BB,
445 .total_size = 512,
446 .page_size = 64 * 1024, /* unused */
447 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
448 .tested = TEST_UNTESTED,
449 .probe = probe_jedec,
450 .probe_timing = TIMING_ZERO,
451 .block_erasers =
452 {
453 {
454 .eraseblocks = {
455 {16 * 1024, 1},
456 {8 * 1024, 2},
457 {32 * 1024, 1},
458 {64 * 1024, 7},
459 },
460 .block_erase = erase_sector_jedec,
461 }, {
462 .eraseblocks = { {512 * 1024, 1} },
463 .block_erase = erase_chip_block_jedec,
464 },
465 },
466 .write = write_jedec_1,
467 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000468 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000469 },
470
471 {
472 .vendor = "AMD",
473 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000474 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000475 .manufacture_id = AMD_ID,
476 .model_id = AMD_AM29LV004BT,
477 .total_size = 512,
478 .page_size = 64 * 1024, /* unused */
479 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
480 .tested = TEST_UNTESTED,
481 .probe = probe_jedec,
482 .probe_timing = TIMING_ZERO,
483 .block_erasers =
484 {
485 {
486 .eraseblocks = {
487 {64 * 1024, 7},
488 {32 * 1024, 1},
489 {8 * 1024, 2},
490 {16 * 1024, 1},
491 },
492 .block_erase = erase_sector_jedec,
493 }, {
494 .eraseblocks = { {512 * 1024, 1} },
495 .block_erase = erase_chip_block_jedec,
496 },
497 },
498 .write = write_jedec_1,
499 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000500 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000501 },
502
503 {
504 .vendor = "AMD",
505 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000506 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000507 .manufacture_id = AMD_ID,
508 .model_id = AMD_AM29LV008BB,
509 .total_size = 1024,
510 .page_size = 64 * 1024, /* unused */
511 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000512 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000513 .probe = probe_jedec,
514 .probe_timing = TIMING_ZERO,
515 .block_erasers =
516 {
517 {
518 .eraseblocks = {
519 {16 * 1024, 1},
520 {8 * 1024, 2},
521 {32 * 1024, 1},
522 {64 * 1024, 15},
523 },
524 .block_erase = erase_sector_jedec,
525 }, {
526 .eraseblocks = { {1024 * 1024, 1} },
527 .block_erase = erase_chip_block_jedec,
528 },
529 },
530 .write = write_jedec_1,
531 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000532 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000533 },
534
535 {
536 .vendor = "AMD",
537 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000538 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000539 .manufacture_id = AMD_ID,
540 .model_id = AMD_AM29LV008BT,
541 .total_size = 1024,
542 .page_size = 64 * 1024, /* unused */
543 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
544 .tested = TEST_UNTESTED,
545 .probe = probe_jedec,
546 .probe_timing = TIMING_ZERO,
547 .block_erasers =
548 {
549 {
550 .eraseblocks = {
551 {64 * 1024, 15},
552 {32 * 1024, 1},
553 {8 * 1024, 2},
554 {16 * 1024, 1},
555 },
556 .block_erase = erase_sector_jedec,
557 }, {
558 .eraseblocks = { {1024 * 1024, 1} },
559 .block_erase = erase_chip_block_jedec,
560 },
561 },
562 .write = write_jedec_1,
563 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000564 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000565 },
566
567 {
568 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000569 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000570 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000571 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000572 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000573 .total_size = 512,
574 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000575 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000576 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000577 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000578 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000579 .block_erasers =
580 {
581 {
582 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000583 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000584 }, {
585 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000586 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000587 },
588 },
Sean Nelson35727f72010-01-28 23:55:12 +0000589 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000590 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000591 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000592 },
593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000594 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000595 .vendor = "AMD",
596 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000597 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000598 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000599 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000600 .total_size = 1024,
601 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000602 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000603 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000604 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000605 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000606 .block_erasers =
607 {
608 {
609 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000610 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000611 }, {
612 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000613 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000614 },
615 },
Sean Nelson35727f72010-01-28 23:55:12 +0000616 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000617 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000618 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000619 },
620
621 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000622 .vendor = "AMIC",
623 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000624 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000625 .manufacture_id = AMIC_ID,
626 .model_id = AMIC_A25L05PT,
627 .total_size = 64,
628 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000629 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000630 .tested = TEST_UNTESTED,
631 .probe = probe_spi_rdid4,
632 .probe_timing = TIMING_ZERO,
633 .block_erasers =
634 {
635 {
636 .eraseblocks = {
637 {32 * 1024, 1},
638 {16 * 1024, 1},
639 {8 * 1024, 1},
640 {4 * 1024, 2},
641 },
642 .block_erase = spi_block_erase_d8,
643 }, {
644 .eraseblocks = { {64 * 1024, 1} },
645 .block_erase = spi_block_erase_c7,
646 }
647 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000648 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000649 .unlock = spi_disable_blockprotect,
650 .write = spi_chip_write_256,
651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000652 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000653 },
654
655 {
656 .vendor = "AMIC",
657 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000658 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000659 .manufacture_id = AMIC_ID,
660 .model_id = AMIC_A25L05PU,
661 .total_size = 64,
662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000663 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000664 .tested = TEST_UNTESTED,
665 .probe = probe_spi_rdid4,
666 .probe_timing = TIMING_ZERO,
667 .block_erasers =
668 {
669 {
670 .eraseblocks = {
671 {4 * 1024, 2},
672 {8 * 1024, 1},
673 {16 * 1024, 1},
674 {32 * 1024, 1},
675 },
676 .block_erase = spi_block_erase_d8,
677 }, {
678 .eraseblocks = { {64 * 1024, 1} },
679 .block_erase = spi_block_erase_c7,
680 }
681 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000682 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000683 .unlock = spi_disable_blockprotect,
684 .write = spi_chip_write_256,
685 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000686 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 },
688
689 {
690 .vendor = "AMIC",
691 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000692 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000693 .manufacture_id = AMIC_ID,
694 .model_id = AMIC_A25L10PT,
695 .total_size = 128,
696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000697 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000698 .tested = TEST_UNTESTED,
699 .probe = probe_spi_rdid4,
700 .probe_timing = TIMING_ZERO,
701 .block_erasers =
702 {
703 {
704 .eraseblocks = {
705 {64 * 1024, 1},
706 {32 * 1024, 1},
707 {16 * 1024, 1},
708 {8 * 1024, 1},
709 {4 * 1024, 2},
710 },
711 .block_erase = spi_block_erase_d8,
712 }, {
713 .eraseblocks = { {128 * 1024, 1} },
714 .block_erase = spi_block_erase_c7,
715 }
716 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000717 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000718 .unlock = spi_disable_blockprotect,
719 .write = spi_chip_write_256,
720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000721 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 },
723
724 {
725 .vendor = "AMIC",
726 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000727 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000728 .manufacture_id = AMIC_ID,
729 .model_id = AMIC_A25L10PU,
730 .total_size = 128,
731 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000732 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000733 .tested = TEST_UNTESTED,
734 .probe = probe_spi_rdid4,
735 .probe_timing = TIMING_ZERO,
736 .block_erasers =
737 {
738 {
739 .eraseblocks = {
740 {4 * 1024, 2},
741 {8 * 1024, 1},
742 {16 * 1024, 1},
743 {32 * 1024, 1},
744 {64 * 1024, 1},
745 },
746 .block_erase = spi_block_erase_d8,
747 }, {
748 .eraseblocks = { {128 * 1024, 1} },
749 .block_erase = spi_block_erase_c7,
750 }
751 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000752 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000753 .unlock = spi_disable_blockprotect,
754 .write = spi_chip_write_256,
755 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000756 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 },
758
759 {
760 .vendor = "AMIC",
761 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000762 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .manufacture_id = AMIC_ID,
764 .model_id = AMIC_A25L20PT,
765 .total_size = 256,
766 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000767 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000768 .tested = TEST_UNTESTED,
769 .probe = probe_spi_rdid4,
770 .probe_timing = TIMING_ZERO,
771 .block_erasers =
772 {
773 {
774 .eraseblocks = {
775 {64 * 1024, 3},
776 {32 * 1024, 1},
777 {16 * 1024, 1},
778 {8 * 1024, 1},
779 {4 * 1024, 2},
780 },
781 .block_erase = spi_block_erase_d8,
782 }, {
783 .eraseblocks = { {256 * 1024, 1} },
784 .block_erase = spi_block_erase_c7,
785 }
786 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000787 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000788 .unlock = spi_disable_blockprotect,
789 .write = spi_chip_write_256,
790 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000791 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 },
793
794 {
795 .vendor = "AMIC",
796 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000797 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .manufacture_id = AMIC_ID,
799 .model_id = AMIC_A25L20PU,
800 .total_size = 256,
801 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000802 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000803 .tested = TEST_UNTESTED,
804 .probe = probe_spi_rdid4,
805 .probe_timing = TIMING_ZERO,
806 .block_erasers =
807 {
808 {
809 .eraseblocks = {
810 {4 * 1024, 2},
811 {8 * 1024, 1},
812 {16 * 1024, 1},
813 {32 * 1024, 1},
814 {64 * 1024, 3},
815 },
816 .block_erase = spi_block_erase_d8,
817 }, {
818 .eraseblocks = { {256 * 1024, 1} },
819 .block_erase = spi_block_erase_c7,
820 }
821 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000822 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000823 .unlock = spi_disable_blockprotect,
824 .write = spi_chip_write_256,
825 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000826 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 },
828
829 /* The A25L40P{T,U} chips are distinguished by their
830 * erase block layouts, but without any distinction in RDID.
831 * This inexplicable quirk was verified by Rudolf Marek
832 * and discussed on the flashrom mailing list on 2010-07-12.
833 */
834 {
835 .vendor = "AMIC",
836 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000837 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000838 .manufacture_id = AMIC_ID,
839 .model_id = AMIC_A25L40PT,
840 .total_size = 512,
841 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000842 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000843 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000844 .probe = probe_spi_rdid4,
845 .probe_timing = TIMING_ZERO,
846 .block_erasers =
847 {
848 {
849 .eraseblocks = {
850 {64 * 1024, 7},
851 {32 * 1024, 1},
852 {16 * 1024, 1},
853 {8 * 1024, 1},
854 {4 * 1024, 2},
855 },
856 .block_erase = spi_block_erase_d8,
857 }, {
858 .eraseblocks = { {512 * 1024, 1} },
859 .block_erase = spi_block_erase_c7,
860 }
861 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000862 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000863 .unlock = spi_disable_blockprotect,
864 .write = spi_chip_write_256,
865 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000866 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 },
868
869 {
870 .vendor = "AMIC",
871 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000872 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000873 .manufacture_id = AMIC_ID,
874 .model_id = AMIC_A25L40PU,
875 .total_size = 512,
876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000878 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000879 .probe = probe_spi_rdid4,
880 .probe_timing = TIMING_ZERO,
881 .block_erasers =
882 {
883 {
884 .eraseblocks = {
885 {4 * 1024, 2},
886 {8 * 1024, 1},
887 {16 * 1024, 1},
888 {32 * 1024, 1},
889 {64 * 1024, 7},
890 },
891 .block_erase = spi_block_erase_d8,
892 }, {
893 .eraseblocks = { {512 * 1024, 1} },
894 .block_erase = spi_block_erase_c7,
895 }
896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000897 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000898 .unlock = spi_disable_blockprotect,
899 .write = spi_chip_write_256,
900 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000901 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000902 },
903
904 {
905 .vendor = "AMIC",
906 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000907 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000908 .manufacture_id = AMIC_ID,
909 .model_id = AMIC_A25L80P,
910 .total_size = 1024,
911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000912 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000913 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000914 .probe = probe_spi_rdid4,
915 .probe_timing = TIMING_ZERO,
916 .block_erasers =
917 {
918 {
919 .eraseblocks = {
920 {4 * 1024, 2},
921 {8 * 1024, 1},
922 {16 * 1024, 1},
923 {32 * 1024, 1},
924 {64 * 1024, 15},
925 },
926 .block_erase = spi_block_erase_d8,
927 }, {
928 .eraseblocks = { {1024 * 1024, 1} },
929 .block_erase = spi_block_erase_c7,
930 }
931 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000932 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000933 .unlock = spi_disable_blockprotect,
934 .write = spi_chip_write_256,
935 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000936 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000937 },
938
939 {
940 .vendor = "AMIC",
941 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000942 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000943 .manufacture_id = AMIC_ID,
944 .model_id = AMIC_A25L16PT,
945 .total_size = 2048,
946 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000947 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000948 .tested = TEST_UNTESTED,
949 .probe = probe_spi_rdid4,
950 .probe_timing = TIMING_ZERO,
951 .block_erasers =
952 {
953 {
954 .eraseblocks = {
955 {64 * 1024, 31},
956 {32 * 1024, 1},
957 {16 * 1024, 1},
958 {8 * 1024, 1},
959 {4 * 1024, 2},
960 },
961 .block_erase = spi_block_erase_d8,
962 }, {
963 .eraseblocks = { {2048 * 1024, 1} },
964 .block_erase = spi_block_erase_60,
965 }, {
966 .eraseblocks = { {2048 * 1024, 1} },
967 .block_erase = spi_block_erase_c7,
968 }
969 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000970 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000971 .unlock = spi_disable_blockprotect,
972 .write = spi_chip_write_256,
973 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000974 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000975 },
976
977 {
978 .vendor = "AMIC",
979 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000980 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000981 .manufacture_id = AMIC_ID,
982 .model_id = AMIC_A25L16PU,
983 .total_size = 2048,
984 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000985 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000986 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000987 .probe = probe_spi_rdid4,
988 .probe_timing = TIMING_ZERO,
989 .block_erasers =
990 {
991 {
992 .eraseblocks = {
993 {4 * 1024, 2},
994 {8 * 1024, 1},
995 {16 * 1024, 1},
996 {32 * 1024, 1},
997 {64 * 1024, 31},
998 },
999 .block_erase = spi_block_erase_d8,
1000 }, {
1001 .eraseblocks = { {2048 * 1024, 1} },
1002 .block_erase = spi_block_erase_60,
1003 }, {
1004 .eraseblocks = { {2048 * 1024, 1} },
1005 .block_erase = spi_block_erase_c7,
1006 }
1007 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001008 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001009 .unlock = spi_disable_blockprotect,
1010 .write = spi_chip_write_256,
1011 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001012 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001013 },
1014
1015 {
1016 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +00001017 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001018 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001019 .manufacture_id = AMIC_ID_NOPREFIX,
1020 .model_id = AMIC_A25L512,
1021 .total_size = 64,
1022 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001023 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .tested = TEST_UNTESTED,
1025 .probe = probe_spi_rdid,
1026 .probe_timing = TIMING_ZERO,
1027 .block_erasers =
1028 {
1029 {
1030 .eraseblocks = { { 4 * 1024, 16 } },
1031 .block_erase = spi_block_erase_20,
1032 }, {
1033 .eraseblocks = { { 64 * 1024, 1 } },
1034 .block_erase = spi_block_erase_d8,
1035 }, {
1036 .eraseblocks = { { 64 * 1024, 1 } },
1037 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001038 }
Dan Lenski11617122010-07-29 15:00:40 +00001039 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001040 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001041 .unlock = spi_disable_blockprotect,
1042 .write = spi_chip_write_256,
1043 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001044 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001045 },
1046
1047 {
1048 .vendor = "AMIC",
1049 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001050 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001051 .manufacture_id = AMIC_ID_NOPREFIX,
1052 .model_id = AMIC_A25L010,
1053 .total_size = 128,
1054 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001055 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .tested = TEST_UNTESTED,
1057 .probe = probe_spi_rdid,
1058 .probe_timing = TIMING_ZERO,
1059 .block_erasers =
1060 {
1061 {
1062 .eraseblocks = { { 4 * 1024, 32 } },
1063 .block_erase = spi_block_erase_20,
1064 }, {
1065 .eraseblocks = { { 64 * 1024, 2 } },
1066 .block_erase = spi_block_erase_d8,
1067 }, {
1068 .eraseblocks = { { 128 * 1024, 1 } },
1069 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001070 }
Dan Lenski11617122010-07-29 15:00:40 +00001071 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001072 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001073 .unlock = spi_disable_blockprotect,
1074 .write = spi_chip_write_256,
1075 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001076 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001077 },
1078
1079 {
1080 .vendor = "AMIC",
1081 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001082 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001083 .manufacture_id = AMIC_ID_NOPREFIX,
1084 .model_id = AMIC_A25L020,
1085 .total_size = 256,
1086 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001087 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .tested = TEST_UNTESTED,
1089 .probe = probe_spi_rdid,
1090 .probe_timing = TIMING_ZERO,
1091 .block_erasers =
1092 {
1093 {
1094 .eraseblocks = { { 4 * 1024, 64 } },
1095 .block_erase = spi_block_erase_20,
1096 }, {
1097 .eraseblocks = { { 64 * 1024, 4 } },
1098 .block_erase = spi_block_erase_d8,
1099 }, {
1100 .eraseblocks = { { 256 * 1024, 1 } },
1101 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001102 }
Dan Lenski11617122010-07-29 15:00:40 +00001103 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001104 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001105 .unlock = spi_disable_blockprotect,
1106 .write = spi_chip_write_256,
1107 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001108 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001109 },
1110
1111 {
1112 .vendor = "AMIC",
1113 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001114 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001115 .manufacture_id = AMIC_ID_NOPREFIX,
1116 .model_id = AMIC_A25L040,
1117 .total_size = 512,
1118 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001119 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .tested = TEST_UNTESTED,
1121 .probe = probe_spi_rdid,
1122 .probe_timing = TIMING_ZERO,
1123 .block_erasers =
1124 {
1125 {
1126 .eraseblocks = { { 4 * 1024, 128 } },
1127 .block_erase = spi_block_erase_20,
1128 }, {
1129 .eraseblocks = { { 64 * 1024, 8 } },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { { 512 * 1024, 1 } },
1133 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001134 }
Dan Lenski11617122010-07-29 15:00:40 +00001135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001147 .manufacture_id = AMIC_ID_NOPREFIX,
1148 .model_id = AMIC_A25L080,
1149 .total_size = 1024,
1150 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001152 .tested = TEST_UNTESTED,
1153 .probe = probe_spi_rdid,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = { { 4 * 1024, 256 } },
1159 .block_erase = spi_block_erase_20,
1160 }, {
1161 .eraseblocks = { { 64 * 1024, 16 } },
1162 .block_erase = spi_block_erase_d8,
1163 }, {
1164 .eraseblocks = { { 1024 * 1024, 1 } },
1165 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001166 }
Dan Lenski11617122010-07-29 15:00:40 +00001167 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001168 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .unlock = spi_disable_blockprotect,
1170 .write = spi_chip_write_256,
1171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001172 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001173 },
1174
1175 {
1176 .vendor = "AMIC",
1177 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001178 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001179 .manufacture_id = AMIC_ID_NOPREFIX,
1180 .model_id = AMIC_A25L016,
1181 .total_size = 2048,
1182 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001183 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001184 .tested = TEST_UNTESTED,
1185 .probe = probe_spi_rdid,
1186 .probe_timing = TIMING_ZERO,
1187 .block_erasers =
1188 {
1189 {
1190 .eraseblocks = { { 4 * 1024, 512 } },
1191 .block_erase = spi_block_erase_20,
1192 }, {
1193 .eraseblocks = { { 64 * 1024, 32 } },
1194 .block_erase = spi_block_erase_d8,
1195 }, {
1196 .eraseblocks = { { 2048 * 1024, 1 } },
1197 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001198 }
Dan Lenski11617122010-07-29 15:00:40 +00001199 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001200 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001201 .unlock = spi_disable_blockprotect,
1202 .write = spi_chip_write_256,
1203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001204 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001205 },
1206
1207 {
1208 .vendor = "AMIC",
1209 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001210 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001211 .manufacture_id = AMIC_ID_NOPREFIX,
1212 .model_id = AMIC_A25L032,
1213 .total_size = 4096,
1214 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001215 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1216 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001217 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001218 .probe = probe_spi_rdid,
1219 .probe_timing = TIMING_ZERO,
1220 .block_erasers =
1221 {
1222 {
1223 .eraseblocks = { { 4 * 1024, 1024 } },
1224 .block_erase = spi_block_erase_20,
1225 }, {
1226 .eraseblocks = { { 64 * 1024, 64 } },
1227 .block_erase = spi_block_erase_52,
1228 }, {
1229 .eraseblocks = { { 64 * 1024, 64 } },
1230 .block_erase = spi_block_erase_d8,
1231 }, {
1232 .eraseblocks = { { 4096 * 1024, 1 } },
1233 .block_erase = spi_block_erase_60,
1234 }, {
1235 .eraseblocks = { { 4096 * 1024, 1 } },
1236 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001237 }
Dan Lenski11617122010-07-29 15:00:40 +00001238 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001239 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1240 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001241 .write = spi_chip_write_256,
1242 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001243 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001244 },
1245
1246 {
1247 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001248 .name = "A25LQ16",
1249 .bustype = BUS_SPI,
1250 .manufacture_id = AMIC_ID_NOPREFIX,
1251 .model_id = AMIC_A25LQ16,
1252 .total_size = 2048,
1253 .page_size = 256,
1254 /* supports SFDP */
1255 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1257 .tested = TEST_UNTESTED,
1258 .probe = probe_spi_rdid,
1259 .probe_timing = TIMING_ZERO,
1260 .block_erasers = {
1261 {
1262 .eraseblocks = { { 4 * 1024, 512 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 32 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 32 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 2048 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 2048 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
1282 .voltage = {2700, 3600},
1283 },
1284
1285 {
1286 .vendor = "AMIC",
1287 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ032,
1291 .total_size = 4096,
1292 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001293 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
1299 .block_erasers =
1300 {
1301 {
1302 .eraseblocks = { { 4 * 1024, 1024 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 64 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 64 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 4096 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 4096 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001316 }
Dan Lenski11617122010-07-29 15:00:40 +00001317 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
1327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
1526 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001527 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001528 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001529 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001530 .total_size = 512,
1531 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001532 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001533 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001534 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001535 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001536 .block_erasers =
1537 {
1538 {
1539 .eraseblocks = { {4 * 1024, 128} },
1540 .block_erase = spi_block_erase_20,
1541 }, {
1542 .eraseblocks = { {32 * 1024, 16} },
1543 .block_erase = spi_block_erase_52,
1544 }, {
1545 .eraseblocks = { {64 * 1024, 8} },
1546 .block_erase = spi_block_erase_d8,
1547 }, {
1548 .eraseblocks = { {512 * 1024, 1} },
1549 .block_erase = spi_block_erase_60,
1550 }, {
1551 .eraseblocks = { {512 * 1024, 1} },
1552 .block_erase = spi_block_erase_c7,
1553 }
1554 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001555 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001556 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001557 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001559 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001560 },
1561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001562 {
1563 .vendor = "Atmel",
1564 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001565 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001566 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001567 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001568 .total_size = 1024,
1569 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001570 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001571 .tested = TEST_UNTESTED,
1572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001573 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001574 .block_erasers =
1575 {
1576 {
1577 .eraseblocks = { {4 * 1024, 256} },
1578 .block_erase = spi_block_erase_20,
1579 }, {
1580 .eraseblocks = { {32 * 1024, 32} },
1581 .block_erase = spi_block_erase_52,
1582 }, {
1583 .eraseblocks = { {64 * 1024, 16} },
1584 .block_erase = spi_block_erase_d8,
1585 }, {
1586 .eraseblocks = { {1024 * 1024, 1} },
1587 .block_erase = spi_block_erase_60,
1588 }, {
1589 .eraseblocks = { {1024 * 1024, 1} },
1590 .block_erase = spi_block_erase_c7,
1591 }
1592 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001593 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001594 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001595 .write = spi_chip_write_256,
1596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001597 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001598 },
1599
1600 {
1601 .vendor = "Atmel",
1602 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001603 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001604 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001605 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001606 .total_size = 1024,
1607 .page_size = 256,
1608 .feature_bits = FEATURE_WRSR_WREN,
1609 .tested = TEST_UNTESTED,
1610 .probe = probe_spi_rdid,
1611 .probe_timing = TIMING_ZERO,
1612 .block_erasers =
1613 {
1614 {
1615 .eraseblocks = { {4 * 1024, 256} },
1616 .block_erase = spi_block_erase_20,
1617 }, {
1618 .eraseblocks = { {32 * 1024, 32} },
1619 .block_erase = spi_block_erase_52,
1620 }, {
1621 .eraseblocks = { {64 * 1024, 16} },
1622 .block_erase = spi_block_erase_d8,
1623 }, {
1624 .eraseblocks = { {1024 * 1024, 1} },
1625 .block_erase = spi_block_erase_60,
1626 }, {
1627 .eraseblocks = { {1024 * 1024, 1} },
1628 .block_erase = spi_block_erase_c7,
1629 }
1630 },
1631 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001632 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001633 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001634 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001635 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001636 },
1637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001638 {
1639 .vendor = "Atmel",
1640 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001641 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001642 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001643 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .total_size = 2048,
1645 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001646 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001647 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001649 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001650 .block_erasers =
1651 {
1652 {
1653 .eraseblocks = { {4 * 1024, 512} },
1654 .block_erase = spi_block_erase_20,
1655 }, {
1656 .eraseblocks = { {32 * 1024, 64} },
1657 .block_erase = spi_block_erase_52,
1658 }, {
1659 .eraseblocks = { {64 * 1024, 32} },
1660 .block_erase = spi_block_erase_d8,
1661 }, {
1662 .eraseblocks = { {2 * 1024 * 1024, 1} },
1663 .block_erase = spi_block_erase_60,
1664 }, {
1665 .eraseblocks = { {2 * 1024 * 1024, 1} },
1666 .block_erase = spi_block_erase_c7,
1667 }
1668 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001669 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001670 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001671 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001673 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001674 },
1675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 {
1677 .vendor = "Atmel",
1678 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001681 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .total_size = 4096,
1683 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001685 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001687 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001688 .block_erasers =
1689 {
1690 {
1691 .eraseblocks = { {4 * 1024, 1024} },
1692 .block_erase = spi_block_erase_20,
1693 }, {
1694 .eraseblocks = { {32 * 1024, 128} },
1695 .block_erase = spi_block_erase_52,
1696 }, {
1697 .eraseblocks = { {64 * 1024, 64} },
1698 .block_erase = spi_block_erase_d8,
1699 }, {
1700 .eraseblocks = { {4 * 1024 * 1024, 1} },
1701 .block_erase = spi_block_erase_60,
1702 }, {
1703 .eraseblocks = { {4 * 1024 * 1024, 1} },
1704 .block_erase = spi_block_erase_c7,
1705 }
1706 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001707 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001708 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001709 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001711 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001712 },
1713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 {
1715 .vendor = "Atmel",
1716 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001717 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001718 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001719 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .total_size = 4096,
1721 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001722 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001726 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001727 .block_erasers =
1728 {
1729 {
1730 .eraseblocks = { {4 * 1024, 1024} },
1731 .block_erase = spi_block_erase_20,
1732 }, {
1733 .eraseblocks = { {32 * 1024, 128} },
1734 .block_erase = spi_block_erase_52,
1735 }, {
1736 .eraseblocks = { {64 * 1024, 64} },
1737 .block_erase = spi_block_erase_d8,
1738 }, {
1739 .eraseblocks = { {4 * 1024 * 1024, 1} },
1740 .block_erase = spi_block_erase_60,
1741 }, {
1742 .eraseblocks = { {4 * 1024 * 1024, 1} },
1743 .block_erase = spi_block_erase_c7,
1744 }
1745 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001746 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001747 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001748 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001750 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001751 },
1752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001753 {
1754 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001755 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001756 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001758 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001759 .total_size = 8192,
1760 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001761 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001762 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001764 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001765 .block_erasers =
1766 {
1767 {
1768 .eraseblocks = { {4 * 1024, 2048} },
1769 .block_erase = spi_block_erase_20,
1770 }, {
1771 .eraseblocks = { {32 * 1024, 256} },
1772 .block_erase = spi_block_erase_52,
1773 }, {
1774 .eraseblocks = { {64 * 1024, 128} },
1775 .block_erase = spi_block_erase_d8,
1776 }, {
1777 .eraseblocks = { {8 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_60,
1779 }, {
1780 .eraseblocks = { {8 * 1024 * 1024, 1} },
1781 .block_erase = spi_block_erase_c7,
1782 }
1783 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001784 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001785 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .write = spi_chip_write_256,
1787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001788 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001789 },
1790
1791 {
1792 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001793 .name = "AT25DL081",
1794 .bustype = BUS_SPI,
1795 .manufacture_id = ATMEL_ID,
1796 .model_id = ATMEL_AT25DF081,
1797 .total_size = 1024,
1798 .page_size = 256,
1799 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1801 .tested = TEST_UNTESTED,
1802 .probe = probe_spi_rdid,
1803 .probe_timing = TIMING_ZERO,
1804 .block_erasers =
1805 {
1806 {
1807 .eraseblocks = { {4 * 1024, 256} },
1808 .block_erase = spi_block_erase_20,
1809 }, {
1810 .eraseblocks = { {32 * 1024, 32} },
1811 .block_erase = spi_block_erase_52,
1812 }, {
1813 .eraseblocks = { {64 * 1024, 16} },
1814 .block_erase = spi_block_erase_d8,
1815 }, {
1816 .eraseblocks = { {1 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_60,
1818 }, {
1819 .eraseblocks = { {1 * 1024 * 1024, 1} },
1820 .block_erase = spi_block_erase_c7,
1821 }
1822 },
1823 .printlock = spi_prettyprint_status_register_at25df_sec,
1824 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1825 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1827 .voltage = {1650, 1950},
1828 },
1829
1830 {
1831 .vendor = "Atmel",
1832 .name = "AT25DL161",
1833 .bustype = BUS_SPI,
1834 .manufacture_id = ATMEL_ID,
1835 .model_id = ATMEL_AT25DL161,
1836 .total_size = 2048,
1837 .page_size = 256,
1838 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1839 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1840 .tested = TEST_UNTESTED,
1841 .probe = probe_spi_rdid,
1842 .probe_timing = TIMING_ZERO,
1843 .block_erasers =
1844 {
1845 {
1846 .eraseblocks = { {4 * 1024, 512} },
1847 .block_erase = spi_block_erase_20,
1848 }, {
1849 .eraseblocks = { {32 * 1024, 64} },
1850 .block_erase = spi_block_erase_52,
1851 }, {
1852 .eraseblocks = { {64 * 1024, 32} },
1853 .block_erase = spi_block_erase_d8,
1854 }, {
1855 .eraseblocks = { {2 * 1024 * 1024, 1} },
1856 .block_erase = spi_block_erase_60,
1857 }, {
1858 .eraseblocks = { {2 * 1024 * 1024, 1} },
1859 .block_erase = spi_block_erase_c7,
1860 }
1861 },
1862 .printlock = spi_prettyprint_status_register_at25df_sec,
1863 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1864 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1865 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1866 .voltage = {1650, 1950},
1867 },
1868
1869 {
1870 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001871 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001872 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001873 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001874 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001875 .total_size = 2048,
1876 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001877 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001879 .tested = TEST_UNTESTED,
1880 .probe = probe_spi_rdid,
1881 .probe_timing = TIMING_ZERO,
1882 .block_erasers =
1883 {
1884 {
1885 .eraseblocks = { {4 * 1024, 512} },
1886 .block_erase = spi_block_erase_20,
1887 }, {
1888 .eraseblocks = { {32 * 1024, 64} },
1889 .block_erase = spi_block_erase_52,
1890 }, {
1891 .eraseblocks = { {64 * 1024, 32} },
1892 .block_erase = spi_block_erase_d8,
1893 }, {
1894 .eraseblocks = { {2 * 1024 * 1024, 1} },
1895 .block_erase = spi_block_erase_60,
1896 }, {
1897 .eraseblocks = { {2 * 1024 * 1024, 1} },
1898 .block_erase = spi_block_erase_c7,
1899 }
1900 },
1901 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001902 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001903 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001905 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001906 },
1907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001908 {
1909 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001910 .name = "AT25F512",
1911 .bustype = BUS_SPI,
1912 .manufacture_id = ATMEL_ID,
1913 .model_id = ATMEL_AT25F512,
1914 .total_size = 64,
1915 .page_size = 256,
1916 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001917 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001918 .probe = probe_spi_at25f,
1919 .probe_timing = TIMING_ZERO,
1920 .block_erasers =
1921 {
1922 {
1923 .eraseblocks = { {32 * 1024, 2} },
1924 .block_erase = spi_block_erase_52,
1925 }, {
1926 .eraseblocks = { {64 * 1024, 1} },
1927 .block_erase = spi_block_erase_62,
1928 }
1929 },
1930 .printlock = spi_prettyprint_status_register_at25f,
1931 .unlock = spi_disable_blockprotect_at25f,
1932 .write = spi_chip_write_256,
1933 .read = spi_chip_read,
1934 .voltage = {2700, 3600},
1935 },
1936
1937 {
1938 .vendor = "Atmel",
1939 .name = "AT25F512A",
1940 .bustype = BUS_SPI,
1941 .manufacture_id = ATMEL_ID,
1942 .model_id = ATMEL_AT25F512A,
1943 .total_size = 64,
1944 .page_size = 128,
1945 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001946 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001947 .probe = probe_spi_at25f,
1948 .probe_timing = TIMING_ZERO,
1949 .block_erasers =
1950 {
1951 {
1952 .eraseblocks = { {32 * 1024, 2} },
1953 .block_erase = spi_block_erase_52,
1954 }, {
1955 .eraseblocks = { {64 * 1024, 1} },
1956 .block_erase = spi_block_erase_62,
1957 }
1958 },
1959 .printlock = spi_prettyprint_status_register_at25f512a,
1960 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1961 .unlock = spi_disable_blockprotect_at25f512a,
1962 .write = spi_chip_write_256,
1963 .read = spi_chip_read,
1964 .voltage = {2700, 3600},
1965 },
1966
1967 {
1968 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001969 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001970 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001971 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001972 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 .total_size = 64,
1974 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001975 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .tested = TEST_UNTESTED,
1978 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001979 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001980 .block_erasers =
1981 {
1982 {
1983 .eraseblocks = { {4 * 1024, 16} },
1984 .block_erase = spi_block_erase_20,
1985 }, {
1986 .eraseblocks = { {32 * 1024, 2} },
1987 .block_erase = spi_block_erase_52,
1988 }, {
1989 .eraseblocks = { {32 * 1024, 2} },
1990 .block_erase = spi_block_erase_d8,
1991 }, {
1992 .eraseblocks = { {64 * 1024, 1} },
1993 .block_erase = spi_block_erase_60,
1994 }, {
1995 .eraseblocks = { {64 * 1024, 1} },
1996 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001997 }, {
1998 .eraseblocks = { {64 * 1024, 1} },
1999 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002000 }
2001 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002002 .printlock = spi_prettyprint_status_register_at25f512b,
2003 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002004 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002006 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002007 },
2008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 {
2010 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002011 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2012 * All other properties seem to be the same.*/
2013 .name = "AT25F1024(A)",
2014 .bustype = BUS_SPI,
2015 .manufacture_id = ATMEL_ID,
2016 .model_id = ATMEL_AT25F1024,
2017 .total_size = 128,
2018 .page_size = 256,
2019 .feature_bits = FEATURE_WRSR_WREN,
2020 .tested = TEST_OK_PREW,
2021 .probe = probe_spi_at25f,
2022 .probe_timing = TIMING_ZERO,
2023 .block_erasers =
2024 {
2025 {
2026 .eraseblocks = { {32 * 1024, 4} },
2027 .block_erase = spi_block_erase_52,
2028 }, {
2029 .eraseblocks = { {128 * 1024, 1} },
2030 .block_erase = spi_block_erase_62,
2031 }
2032 },
2033 .printlock = spi_prettyprint_status_register_at25f,
2034 .unlock = spi_disable_blockprotect_at25f,
2035 .write = spi_chip_write_256,
2036 .read = spi_chip_read,
2037 .voltage = {2700, 3600},
2038 },
2039
2040 {
2041 .vendor = "Atmel",
2042 .name = "AT25F2048",
2043 .bustype = BUS_SPI,
2044 .manufacture_id = ATMEL_ID,
2045 .model_id = ATMEL_AT25F2048,
2046 .total_size = 256,
2047 .page_size = 256,
2048 .feature_bits = FEATURE_WRSR_WREN,
2049 .tested = TEST_UNTESTED,
2050 .probe = probe_spi_at25f,
2051 .probe_timing = TIMING_ZERO,
2052 .block_erasers =
2053 {
2054 {
2055 .eraseblocks = { {64 * 1024, 4} },
2056 .block_erase = spi_block_erase_52,
2057 }, {
2058 .eraseblocks = { {256 * 1024, 1} },
2059 .block_erase = spi_block_erase_62,
2060 }
2061 },
2062 .printlock = spi_prettyprint_status_register_at25f,
2063 .unlock = spi_disable_blockprotect_at25f,
2064 .write = spi_chip_write_256,
2065 .read = spi_chip_read,
2066 .voltage = {2700, 3600},
2067 },
2068
2069 {
2070 .vendor = "Atmel",
2071 .name = "AT25F4096",
2072 .bustype = BUS_SPI,
2073 .manufacture_id = ATMEL_ID,
2074 .model_id = ATMEL_AT25F4096,
2075 .total_size = 512,
2076 .page_size = 256,
2077 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00002078 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002079 .probe = probe_spi_at25f,
2080 .probe_timing = TIMING_ZERO,
2081 .block_erasers =
2082 {
2083 {
2084 .eraseblocks = { {64 * 1024, 8} },
2085 .block_erase = spi_block_erase_52,
2086 }, {
2087 .eraseblocks = { {512 * 1024, 1} },
2088 .block_erase = spi_block_erase_62,
2089 }
2090 },
2091 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002092 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2093 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002094 .write = spi_chip_write_256,
2095 .read = spi_chip_read,
2096 .voltage = {2700, 3600},
2097 },
2098
2099 {
2100 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002102 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002104 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 .total_size = 128,
2106 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002107 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002108 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002110 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002111 .block_erasers =
2112 {
2113 {
2114 .eraseblocks = { {4 * 1024, 32} },
2115 .block_erase = spi_block_erase_20,
2116 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002117 .eraseblocks = { {4 * 1024, 32} },
2118 .block_erase = spi_block_erase_d7,
2119 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002120 .eraseblocks = { {32 * 1024, 4} },
2121 .block_erase = spi_block_erase_52,
2122 }, {
2123 .eraseblocks = { {32 * 1024, 4} },
2124 .block_erase = spi_block_erase_d8,
2125 }, {
2126 .eraseblocks = { {128 * 1024, 1} },
2127 .block_erase = spi_block_erase_60,
2128 }, {
2129 .eraseblocks = { {128 * 1024, 1} },
2130 .block_erase = spi_block_erase_c7,
2131 }
2132 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002133 .printlock = spi_prettyprint_status_register_at25fs010,
2134 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002135 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002138 },
2139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 {
2141 .vendor = "Atmel",
2142 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002143 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002144 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002145 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002146 .total_size = 512,
2147 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002148 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .tested = TEST_UNTESTED,
2150 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002151 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002152 .block_erasers =
2153 {
2154 {
2155 .eraseblocks = { {4 * 1024, 128} },
2156 .block_erase = spi_block_erase_20,
2157 }, {
2158 .eraseblocks = { {64 * 1024, 8} },
2159 .block_erase = spi_block_erase_52,
2160 }, {
2161 .eraseblocks = { {64 * 1024, 8} },
2162 .block_erase = spi_block_erase_d8,
2163 }, {
2164 .eraseblocks = { {512 * 1024, 1} },
2165 .block_erase = spi_block_erase_60,
2166 }, {
2167 .eraseblocks = { {512 * 1024, 1} },
2168 .block_erase = spi_block_erase_c7,
2169 }
2170 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002171 .printlock = spi_prettyprint_status_register_at25fs040,
2172 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002173 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002175 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002176 },
2177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002178 {
2179 .vendor = "Atmel",
2180 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002181 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002183 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .total_size = 512,
2185 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002186 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002187 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002189 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002190 .block_erasers =
2191 {
2192 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002193 .eraseblocks = { {256, 2048} },
2194 .block_erase = spi_block_erase_81,
2195 }, {
2196 .eraseblocks = { {2 * 1024, 256} },
2197 .block_erase = spi_block_erase_50,
2198 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002202 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002203 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002204 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002205 .write = spi_chip_write_1,
2206 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002207 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002208 },
2209
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002210 {
2211 .vendor = "Atmel",
2212 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002213 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002215 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .total_size = 1024,
2217 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002218 .feature_bits = FEATURE_WRSR_WREN,
2219 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002221 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002222 .block_erasers =
2223 {
2224 {
2225 .eraseblocks = { {4 * 1024, 256} },
2226 .block_erase = spi_block_erase_20,
2227 }, {
2228 .eraseblocks = { {32 * 1024, 32} },
2229 .block_erase = spi_block_erase_52,
2230 }, {
2231 .eraseblocks = { {64 * 1024, 16} },
2232 .block_erase = spi_block_erase_d8,
2233 }, {
2234 .eraseblocks = { {1024 * 1024, 1} },
2235 .block_erase = spi_block_erase_60,
2236 }, {
2237 .eraseblocks = { {1024 * 1024, 1} },
2238 .block_erase = spi_block_erase_c7,
2239 }
2240 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002241 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002242 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002243 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002245 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002246 },
2247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 {
2249 .vendor = "Atmel",
2250 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002251 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002253 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002254 .total_size = 2048,
2255 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002256 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002259 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002260 .block_erasers =
2261 {
2262 {
2263 .eraseblocks = { {4 * 1024, 512} },
2264 .block_erase = spi_block_erase_20,
2265 }, {
2266 .eraseblocks = { {32 * 1024, 64} },
2267 .block_erase = spi_block_erase_52,
2268 }, {
2269 .eraseblocks = { {64 * 1024, 32} },
2270 .block_erase = spi_block_erase_d8,
2271 }, {
2272 .eraseblocks = { {2 * 1024 * 1024, 1} },
2273 .block_erase = spi_block_erase_60,
2274 }, {
2275 .eraseblocks = { {2 * 1024 * 1024, 1} },
2276 .block_erase = spi_block_erase_c7,
2277 }
2278 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002279 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002280 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002281 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 2048,
2293 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002294 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002297 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002298 .block_erasers =
2299 {
2300 {
2301 .eraseblocks = { {4 * 1024, 512} },
2302 .block_erase = spi_block_erase_20,
2303 }, {
2304 .eraseblocks = { {32 * 1024, 64} },
2305 .block_erase = spi_block_erase_52,
2306 }, {
2307 .eraseblocks = { {64 * 1024, 32} },
2308 .block_erase = spi_block_erase_d8,
2309 }, {
2310 .eraseblocks = { {2 * 1024 * 1024, 1} },
2311 .block_erase = spi_block_erase_60,
2312 }, {
2313 .eraseblocks = { {2 * 1024 * 1024, 1} },
2314 .block_erase = spi_block_erase_c7,
2315 }
2316 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002317 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002318 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002319 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002321 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002322 },
2323
2324 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002325 /*{
2326 .vendor = "Atmel",
2327 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002328 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002330 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002331 .total_size = 4096,
2332 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002333 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 .tested = TEST_UNTESTED,
2335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002336 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002337 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002338 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002339 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002340 .read = spi_chip_read,
2341 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002343 {
2344 .vendor = "Atmel",
2345 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002346 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002347 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002348 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .total_size = 512,
2350 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002351 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002352 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002354 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002355 .block_erasers =
2356 {
2357 {
2358 .eraseblocks = { {4 * 1024, 128} },
2359 .block_erase = spi_block_erase_20,
2360 }, {
2361 .eraseblocks = { {32 * 1024, 16} },
2362 .block_erase = spi_block_erase_52,
2363 }, {
2364 .eraseblocks = { {64 * 1024, 8} },
2365 .block_erase = spi_block_erase_d8,
2366 }, {
2367 .eraseblocks = { {512 * 1024, 1} },
2368 .block_erase = spi_block_erase_60,
2369 }, {
2370 .eraseblocks = { {512 * 1024, 1} },
2371 .block_erase = spi_block_erase_c7,
2372 }
2373 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002374 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .write = NULL /* Incompatible Page write */,
2376 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002377 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002378 },
2379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 {
2381 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002382 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002383 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002384 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002385 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002386 .total_size = 64,
2387 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002388 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002389 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002390 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002391 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002392 .block_erasers =
2393 {
2394 {
2395 .eraseblocks = { {64 * 1024, 1} },
2396 .block_erase = erase_chip_block_jedec,
2397 }
2398 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002399 .write = write_jedec,
2400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002401 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002402 },
2403
2404 {
2405 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002406 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002407 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002409 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002410 .total_size = 128,
2411 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002412 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002413 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002414 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002415 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002416 .block_erasers =
2417 {
2418 {
2419 .eraseblocks = { {128 * 1024, 1} },
2420 .block_erase = erase_chip_block_jedec,
2421 }
2422 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002423 .write = write_jedec, /* FIXME */
2424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002425 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002426 },
2427
2428 {
2429 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002430 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002432 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002433 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002434 .total_size = 256,
2435 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002436 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002438 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002439 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002440 .block_erasers =
2441 {
2442 {
2443 .eraseblocks = { {256 * 1024, 1} },
2444 .block_erase = erase_chip_block_jedec,
2445 }
2446 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002449 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002450 },
2451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002452 {
2453 .vendor = "Atmel",
2454 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002456 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002457 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002458 .total_size = 512,
2459 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002460 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002461 .tested = TEST_UNTESTED,
2462 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002463 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002464 .block_erasers =
2465 {
2466 {
2467 .eraseblocks = { {512 * 1024, 1} },
2468 .block_erase = erase_chip_block_jedec,
2469 }
2470 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002471 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002473 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002474 },
2475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002476 {
2477 .vendor = "Atmel",
2478 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002481 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002482 .total_size = 16896 /* No power of two sizes */,
2483 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002484 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002485 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2486 .feature_bits = FEATURE_OTP,
2487 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002489 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002490 .block_erasers =
2491 {
2492 {
2493 .eraseblocks = {
2494 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2495 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2496 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2497 },
2498 .block_erase = spi_erase_at45cs_sector,
2499 }
2500 },
2501 .printlock = spi_prettyprint_status_register_plain,
2502 .gran = write_gran_1056bytes,
2503 .write = spi_write_at45db,
2504 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002505 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002506 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002508 {
2509 .vendor = "Atmel",
2510 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002511 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002512 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002513 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002514 .total_size = 128 /* or 132, determined from status register */,
2515 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002516 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2518 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002519 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002521 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002522 .block_erasers =
2523 {
2524 {
2525 .eraseblocks = { {256, 512} },
2526 .block_erase = spi_erase_at45db_page,
2527 }, {
2528 .eraseblocks = { {8 * 256, 512/8} },
2529 .block_erase = spi_erase_at45db_block,
2530 }, {
2531 .eraseblocks = {
2532 {8 * 256, 1},
2533 {120 * 256, 1},
2534 {128 * 256, 3},
2535 },
2536 .block_erase = spi_erase_at45db_sector
2537 }, {
2538 .eraseblocks = { {128 * 1024, 1} },
2539 .block_erase = spi_erase_at45db_chip,
2540 }
2541 },
2542 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2543 .printlock = spi_prettyprint_status_register_at45db,
2544 /* granularity will be set by the probing function. */
2545 .write = spi_write_at45db,
2546 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002547 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002548 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002550 {
2551 .vendor = "Atmel",
2552 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002553 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002554 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002555 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002556 .total_size = 256 /* or 264, determined from status register */,
2557 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002558 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2560 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002561 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002563 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002564 .block_erasers =
2565 {
2566 {
2567 .eraseblocks = { {256, 1024} },
2568 .block_erase = spi_erase_at45db_page,
2569 }, {
2570 .eraseblocks = { {8 * 256, 1024/8} },
2571 .block_erase = spi_erase_at45db_block,
2572 }, {
2573 .eraseblocks = {
2574 {8 * 256, 1},
2575 {120 * 256, 1},
2576 {128 * 256, 7},
2577 },
2578 .block_erase = spi_erase_at45db_sector
2579 }, {
2580 .eraseblocks = { {256 * 1024, 1} },
2581 .block_erase = spi_erase_at45db_chip,
2582 }
2583 },
2584 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2585 .printlock = spi_prettyprint_status_register_at45db,
2586 /* granularity will be set by the probing function. */
2587 .write = spi_write_at45db,
2588 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002590 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
2594 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002598 .total_size = 512 /* or 528, determined from status register */,
2599 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002600 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2602 .feature_bits = FEATURE_OTP,
2603 .tested = TEST_OK_PREW,
2604 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002605 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002606 .block_erasers =
2607 {
2608 {
2609 .eraseblocks = { {256, 2048} },
2610 .block_erase = spi_erase_at45db_page,
2611 }, {
2612 .eraseblocks = { {8 * 256, 2048/8} },
2613 .block_erase = spi_erase_at45db_block,
2614 }, {
2615 .eraseblocks = {
2616 {8 * 256, 1},
2617 {248 * 256, 1},
2618 {256 * 256, 7},
2619 },
2620 .block_erase = spi_erase_at45db_sector
2621 }, {
2622 .eraseblocks = { {512 * 1024, 1} },
2623 .block_erase = spi_erase_at45db_chip,
2624 }
2625 },
2626 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2627 .printlock = spi_prettyprint_status_register_at45db,
2628 /* granularity will be set by the probing function. */
2629 .write = spi_write_at45db,
2630 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2631 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002632 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002634 {
2635 .vendor = "Atmel",
2636 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002637 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002638 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002639 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002640 .total_size = 1024 /* or 1056, determined from status register */,
2641 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002642 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002643 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2644 .feature_bits = FEATURE_OTP,
2645 .tested = TEST_UNTESTED,
2646 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002647 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002648 .block_erasers =
2649 {
2650 {
2651 .eraseblocks = { {256, 4096} },
2652 .block_erase = spi_erase_at45db_page,
2653 }, {
2654 .eraseblocks = { {8 * 256, 4096/8} },
2655 .block_erase = spi_erase_at45db_block,
2656 }, {
2657 .eraseblocks = {
2658 {8 * 256, 1},
2659 {248 * 256, 1},
2660 {256 * 256, 15},
2661 },
2662 .block_erase = spi_erase_at45db_sector
2663 }, {
2664 .eraseblocks = { {1024 * 1024, 1} },
2665 .block_erase = spi_erase_at45db_chip,
2666 }
2667 },
2668 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2669 .printlock = spi_prettyprint_status_register_at45db,
2670 /* granularity will be set by the probing function. */
2671 .write = spi_write_at45db,
2672 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002673 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002674 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002676 {
2677 .vendor = "Atmel",
2678 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002681 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002682 .total_size = 2048 /* or 2112, determined from status register */,
2683 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002684 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002685 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2686 .feature_bits = FEATURE_OTP,
2687 .tested = TEST_OK_PREW,
2688 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002689 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002690 .block_erasers =
2691 {
2692 {
2693 .eraseblocks = { {512, 4096} },
2694 .block_erase = spi_erase_at45db_page,
2695 }, {
2696 .eraseblocks = { {8 * 512, 4096/8} },
2697 .block_erase = spi_erase_at45db_block,
2698 }, {
2699 .eraseblocks = {
2700 {8 * 512, 1},
2701 {248 * 512, 1},
2702 {256 * 512, 15},
2703 },
2704 .block_erase = spi_erase_at45db_sector
2705 }, {
2706 .eraseblocks = { {2048 * 1024, 1} },
2707 .block_erase = spi_erase_at45db_chip,
2708 }
2709 },
2710 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2711 .printlock = spi_prettyprint_status_register_at45db,
2712 /* granularity will be set by the probing function. */
2713 .write = spi_write_at45db,
2714 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002715 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002716 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 {
2719 .vendor = "Atmel",
2720 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002721 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002722 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002723 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002724 .total_size = 4224 /* No power of two sizes */,
2725 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002726 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002727 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2728 .feature_bits = FEATURE_OTP,
2729 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002730 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002731 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002732 .block_erasers =
2733 {
2734 {
2735 .eraseblocks = { {528, 8192} },
2736 .block_erase = spi_erase_at45db_page,
2737 }, {
2738 .eraseblocks = { {8 * 528, 8192/8} },
2739 .block_erase = spi_erase_at45db_block,
2740 }, /* Although the datasheets describes sectors (which can be write protected)
2741 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002742 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002743 .eraseblocks = {
2744 {8 * 528, 1},
2745 {120 * 528, 1},
2746 {128 * 528, 63},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, */ {
2750 .eraseblocks = { {4224 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
2754 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2755 .gran = write_gran_528bytes,
2756 .write = spi_write_at45db,
2757 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002758 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002759 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 {
2762 .vendor = "Atmel",
2763 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002764 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002765 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002766 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002767 .total_size = 4096 /* or 4224, determined from status register */,
2768 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002769 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002771 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002772 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002774 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002775 .block_erasers =
2776 {
2777 {
2778 .eraseblocks = { {512, 8192} },
2779 .block_erase = spi_erase_at45db_page,
2780 }, {
2781 .eraseblocks = { {8 * 512, 8192/8} },
2782 .block_erase = spi_erase_at45db_block,
2783 }, {
2784 .eraseblocks = {
2785 {8 * 512, 1},
2786 {120 * 512, 1},
2787 {128 * 512, 63},
2788 },
2789 .block_erase = spi_erase_at45db_sector
2790 }, {
2791 .eraseblocks = { {4096 * 1024, 1} },
2792 .block_erase = spi_erase_at45db_chip,
2793 }
2794 },
2795 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2796 .printlock = spi_prettyprint_status_register_at45db,
2797 /* granularity will be set by the probing function. */
2798 .write = spi_write_at45db,
2799 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2800 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2801 },
2802
2803 {
2804 .vendor = "Atmel",
2805 .name = "AT45DB321E",
2806 .bustype = BUS_SPI,
2807 .manufacture_id = ATMEL_ID,
2808 .model_id = ATMEL_AT45DB321C,
2809 .total_size = 4096 /* or 4224, determined from status register */,
2810 .page_size = 512 /* or 528, determined from status register */,
2811 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2812 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2813 .feature_bits = FEATURE_OTP,
2814 .tested = TEST_UNTESTED,
2815 .probe = probe_spi_at45db,
2816 .probe_timing = TIMING_ZERO,
2817 .block_erasers =
2818 {
2819 {
2820 .eraseblocks = { {512, 8192} },
2821 .block_erase = spi_erase_at45db_page,
2822 }, {
2823 .eraseblocks = { {8 * 512, 8192/8} },
2824 .block_erase = spi_erase_at45db_block,
2825 }, {
2826 .eraseblocks = {
2827 {8 * 512, 1},
2828 {120 * 512, 1},
2829 {128 * 512, 63},
2830 },
2831 .block_erase = spi_erase_at45db_sector
2832 }, {
2833 .eraseblocks = { {4096 * 1024, 1} },
2834 .block_erase = spi_erase_at45db_chip,
2835 }
2836 },
2837 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2838 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2839 /* granularity will be set by the probing function. */
2840 .write = spi_write_at45db,
2841 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2842 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002843 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002845 {
2846 .vendor = "Atmel",
2847 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002848 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002849 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002850 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002851 .total_size = 8192 /* or 8448, determined from status register */,
2852 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002853 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002854 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2855 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002856 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002857 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002858 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002859 .block_erasers =
2860 {
2861 {
2862 .eraseblocks = { {1024, 8192} },
2863 .block_erase = spi_erase_at45db_page,
2864 }, {
2865 .eraseblocks = { {8 * 1024, 8192/8} },
2866 .block_erase = spi_erase_at45db_block,
2867 }, {
2868 .eraseblocks = {
2869 {8 * 1024, 1},
2870 {248 * 1024, 1},
2871 {256 * 1024, 31},
2872 },
2873 .block_erase = spi_erase_at45db_sector
2874 }, {
2875 .eraseblocks = { {8192 * 1024, 1} },
2876 .block_erase = spi_erase_at45db_chip,
2877 }
2878 },
2879 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2880 .printlock = spi_prettyprint_status_register_at45db,
2881 /* granularity will be set by the probing function. */
2882 .write = spi_write_at45db,
2883 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002884 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002885 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002887 {
2888 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002889 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002890 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002891 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002892 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002893 .total_size = 64,
2894 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002895 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002896 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002897 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002898 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002899 .block_erasers =
2900 {
2901 {
2902 .eraseblocks = { {64 * 1024, 1} },
2903 .block_erase = erase_chip_block_jedec,
2904 }
2905 },
Sean Nelson35727f72010-01-28 23:55:12 +00002906 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002907 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002908 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002909 },
2910
2911 {
2912 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002913 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002914 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002915 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002916 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002917 .total_size = 256,
2918 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002919 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002920 .tested = TEST_UNTESTED,
2921 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002922 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002923 .block_erasers =
2924 {
2925 {
2926 .eraseblocks = {
2927 {16 * 1024, 1},
2928 {8 * 1024, 2},
2929 {96 * 1024, 1},
2930 {128 * 1024, 1},
2931 },
2932 .block_erase = erase_sector_jedec,
2933 }, {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 },
Sean Nelson35727f72010-01-28 23:55:12 +00002938 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002939 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002940 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002941 },
2942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002943 {
2944 .vendor = "Atmel",
2945 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002946 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002947 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002948 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002949 .total_size = 256,
2950 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002951 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002952 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002953 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002954 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002955 .block_erasers =
2956 {
2957 {
2958 .eraseblocks = {
2959 {128 * 1024, 1},
2960 {96 * 1024, 1},
2961 {8 * 1024, 2},
2962 {16 * 1024, 1},
2963 },
2964 .block_erase = erase_sector_jedec,
2965 }, {
2966 .eraseblocks = { {256 * 1024, 1} },
2967 .block_erase = erase_chip_block_jedec,
2968 }
2969 },
Sean Nelson35727f72010-01-28 23:55:12 +00002970 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002972 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002973 },
2974
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002975 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002976 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002977 .name = "AT49(H)F010",
2978 .bustype = BUS_PARALLEL,
2979 .manufacture_id = ATMEL_ID,
2980 .model_id = ATMEL_AT49F010,
2981 .total_size = 128,
2982 .page_size = 0, /* unused */
2983 .feature_bits = FEATURE_EITHER_RESET,
2984 .tested = TEST_OK_PREW,
2985 .probe = probe_jedec,
2986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {128 * 1024, 1} },
2991 .block_erase = erase_chip_block_jedec,
2992 }
2993 },
2994 .printlock = printlock_at49f,
2995 .write = write_jedec_1,
2996 .read = read_memmapped,
2997 .voltage = {4500, 5500},
2998 },
2999
3000 {
3001 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003002 .name = "AT49F020",
3003 .bustype = BUS_PARALLEL,
3004 .manufacture_id = ATMEL_ID,
3005 .model_id = ATMEL_AT49F020,
3006 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003007 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003008 .feature_bits = FEATURE_EITHER_RESET,
3009 .tested = TEST_OK_PRE,
3010 .probe = probe_jedec,
3011 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3012 .block_erasers =
3013 {
3014 {
3015 .eraseblocks = { {256 * 1024, 1} },
3016 .block_erase = erase_chip_block_jedec,
3017 }
3018 /* Chip features an optional permanent write protection
3019 * of the first 8 kB. The erase function is the same as
3020 * above, but 00000H to 01FFFH will not be erased.
3021 * FIXME: add another eraser when partial erasers are
3022 * supported.
3023 */
3024 },
3025 .printlock = printlock_at49f,
3026 .write = write_jedec_1,
3027 .read = read_memmapped,
3028 .voltage = {4500, 5500},
3029 },
3030
3031 {
3032 .vendor = "Atmel",
3033 .name = "AT49F040",
3034 .bustype = BUS_PARALLEL,
3035 .manufacture_id = ATMEL_ID,
3036 .model_id = ATMEL_AT49F040,
3037 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003038 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003039 .feature_bits = FEATURE_EITHER_RESET,
3040 .tested = TEST_UNTESTED,
3041 .probe = probe_jedec,
3042 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3043 .block_erasers =
3044 {
3045 {
3046 .eraseblocks = { {512 * 1024, 1} },
3047 .block_erase = erase_chip_block_jedec,
3048 }
3049 /* Chip features an optional permanent write protection
3050 * of the first 16 kB. The erase function is the same as
3051 * above, but 00000H to 03FFFH will not be erased.
3052 * FIXME: add another eraser when partial erasers are
3053 * supported.
3054 */
3055 },
3056 .printlock = printlock_at49f,
3057 .write = write_jedec_1,
3058 .read = read_memmapped,
3059 .voltage = {4500, 5500},
3060 },
3061
3062 {
3063 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003064 .name = "AT49F080",
3065 .bustype = BUS_PARALLEL,
3066 .manufacture_id = ATMEL_ID,
3067 .model_id = ATMEL_AT49F080,
3068 .total_size = 1024,
3069 .page_size = 0, /* unused */
3070 .feature_bits = FEATURE_EITHER_RESET,
3071 .tested = TEST_UNTESTED,
3072 .probe = probe_jedec,
3073 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3074 .block_erasers =
3075 {
3076 {
3077 .eraseblocks = { {1024 * 1024, 1} },
3078 .block_erase = erase_chip_block_jedec,
3079 }
3080 /* Chip features an optional permanent write protection
3081 * of the first 16 kB. The erase function is the same as
3082 * above, but 00000H to 03FFFH will not be erased.
3083 * FIXME: add another eraser when partial erasers are
3084 * supported.
3085 */
3086 },
3087 .printlock = printlock_at49f,
3088 .write = write_jedec_1,
3089 .read = read_memmapped,
3090 .voltage = {4500, 5500},
3091 },
3092
3093 {
3094 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3095 .vendor = "Atmel",
3096 .name = "AT49F080T",
3097 .bustype = BUS_PARALLEL,
3098 .manufacture_id = ATMEL_ID,
3099 .model_id = ATMEL_AT49F080T,
3100 .total_size = 1024,
3101 .page_size = 0, /* unused */
3102 .feature_bits = FEATURE_EITHER_RESET,
3103 .tested = TEST_UNTESTED,
3104 .probe = probe_jedec,
3105 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3106 .block_erasers =
3107 {
3108 {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = erase_chip_block_jedec,
3111 }
3112 /* Chip features an optional permanent write protection
3113 * of the first 16 kB. The erase function is the same as
3114 * above, but FC000H to FFFFFH will not be erased.
3115 * FIXME: add another eraser when partial erasers are
3116 * supported.
3117 */
3118 },
3119 .printlock = printlock_at49f,
3120 .write = write_jedec_1,
3121 .read = read_memmapped,
3122 .voltage = {4500, 5500},
3123 },
3124
3125 {
3126 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003127 .name = "AT49LH002",
3128 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3129 .manufacture_id = ATMEL_ID,
3130 .model_id = ATMEL_AT49LH002,
3131 .total_size = 256,
3132 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003133 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003134 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003135 .probe = probe_82802ab,
3136 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003137 .block_erasers =
3138 {
3139 {
3140 .eraseblocks = {
3141 {64 * 1024, 3},
3142 {32 * 1024, 1},
3143 {8 * 1024, 2},
3144 {16 * 1024, 1},
3145 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003146 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 }, {
3148 .eraseblocks = {
3149 {64 * 1024, 4},
3150 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003151 .block_erase = erase_block_82802ab,
3152 },
3153 },
3154 .printlock = printlock_regspace2_block_eraser_0,
3155 .unlock = unlock_regspace2_block_eraser_0,
3156 .write = write_82802ab,
3157 .read = read_memmapped,
3158 .voltage = {3000, 3600},
3159 },
3160
3161 {
3162 .vendor = "Atmel",
3163 .name = "AT49LH00B4",
3164 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3165 .manufacture_id = ATMEL_ID,
3166 .model_id = ATMEL_AT49LH00B4,
3167 .total_size = 512,
3168 .page_size = 0, /* unused */
3169 .feature_bits = FEATURE_REGISTERMAP,
3170 .tested = TEST_UNTESTED,
3171 .probe = probe_82802ab,
3172 .probe_timing = TIMING_ZERO,
3173 .block_erasers =
3174 {
3175 {
3176 .eraseblocks = {
3177 {8 * 1024, 2},
3178 {16 * 1024, 1},
3179 {32 * 1024, 1},
3180 {64 * 1024, 7},
3181 },
3182 .block_erase = NULL, /* TODO: Implement. */
3183 }, {
3184 .eraseblocks = {
3185 {64 * 1024, 8},
3186 },
3187 .block_erase = erase_block_82802ab,
3188 },
3189 },
3190 .printlock = printlock_regspace2_block_eraser_0,
3191 .unlock = unlock_regspace2_block_eraser_0,
3192 .write = write_82802ab,
3193 .read = read_memmapped,
3194 .voltage = {3000, 3600},
3195 },
3196
3197 {
3198 .vendor = "Atmel",
3199 .name = "AT49LH004",
3200 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3201 .manufacture_id = ATMEL_ID,
3202 .model_id = ATMEL_AT49LH004,
3203 .total_size = 512,
3204 .page_size = 0, /* unused */
3205 .feature_bits = FEATURE_REGISTERMAP,
3206 .tested = TEST_UNTESTED,
3207 .probe = probe_82802ab,
3208 .probe_timing = TIMING_ZERO,
3209 .block_erasers =
3210 {
3211 {
3212 .eraseblocks = {
3213 {64 * 1024, 7},
3214 {32 * 1024, 1},
3215 {8 * 1024, 2},
3216 {16 * 1024, 1},
3217 },
3218 .block_erase = erase_block_82802ab,
3219 }, {
3220 .eraseblocks = {
3221 {64 * 1024, 8},
3222 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 .block_erase = NULL, /* TODO: Implement. */
3224 },
3225 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003226 .printlock = printlock_regspace2_block_eraser_0,
3227 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003228 .write = write_82802ab,
3229 .read = read_memmapped,
3230 .voltage = {3000, 3600},
3231 },
3232
3233 {
Andrew Morganca081462011-09-13 22:05:44 +00003234 .vendor = "Catalyst",
3235 .name = "CAT28F512",
3236 .bustype = BUS_PARALLEL,
3237 .manufacture_id = CATALYST_ID,
3238 .model_id = CATALYST_CAT28F512,
3239 .total_size = 64,
3240 .page_size = 0, /* unused */
3241 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003242 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003243 .probe = probe_jedec, /* FIXME! */
3244 .probe_timing = TIMING_ZERO,
3245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = { {64 * 1024, 1} },
3249 .block_erase = NULL, /* TODO */
3250 },
3251 },
3252 .write = NULL, /* TODO */
3253 .read = read_memmapped,
3254 .voltage = {4500, 5500},
3255 },
3256
3257 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003258 .vendor = "Bright",
3259 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003260 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003261 .manufacture_id = BRIGHT_ID,
3262 .model_id = BRIGHT_BM29F040,
3263 .total_size = 512,
3264 .page_size = 64 * 1024,
3265 .feature_bits = FEATURE_EITHER_RESET,
3266 .tested = TEST_OK_PR,
3267 .probe = probe_jedec,
3268 .probe_timing = TIMING_ZERO,
3269 .block_erasers =
3270 {
3271 {
3272 .eraseblocks = { {64 * 1024, 8} },
3273 .block_erase = erase_sector_jedec,
3274 }, {
3275 .eraseblocks = { {512 * 1024, 1} },
3276 .block_erase = erase_chip_block_jedec,
3277 },
3278 },
3279 .write = write_jedec_1,
3280 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003281 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003282 },
3283
3284 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003285 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003286 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003287 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003288 .manufacture_id = ESMT_ID,
3289 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003290 .total_size = 256,
3291 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003292 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003293 .tested = TEST_UNTESTED,
3294 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003296 .block_erasers =
3297 {
3298 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003299 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003300 {128 * 1024, 1},
3301 {96 * 1024, 1},
3302 {8 * 1024, 2},
3303 {16 * 1024, 1},
3304 },
3305 .block_erase = erase_sector_jedec,
3306 }, {
3307 .eraseblocks = { {256 * 1024, 1} },
3308 .block_erase = erase_chip_block_jedec,
3309 }
3310 },
Sean Nelson35727f72010-01-28 23:55:12 +00003311 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003313 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003314 },
3315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003316 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003317 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003318 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003319 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003320 .manufacture_id = ESMT_ID,
3321 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003322 .total_size = 1024,
3323 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003324 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003325 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003326 .probe = probe_spi_rdid,
3327 .probe_timing = TIMING_ZERO,
3328 .block_erasers =
3329 {
3330 {
3331 .eraseblocks = { {4 * 1024, 256} },
3332 .block_erase = spi_block_erase_20,
3333 }, {
3334 .eraseblocks = { {64 * 1024, 16} },
3335 .block_erase = spi_block_erase_d8,
3336 }, {
3337 .eraseblocks = { {1024 * 1024, 1} },
3338 .block_erase = spi_block_erase_60,
3339 }, {
3340 .eraseblocks = { {1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_c7,
3342 }
3343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003346 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003348 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003349 },
3350
3351 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003352 .vendor = "ESMT",
3353 .name = "F25L32PA",
3354 .bustype = BUS_SPI,
3355 .manufacture_id = ESMT_ID,
3356 .model_id = ESMT_F25L32PA,
3357 .total_size = 4096,
3358 .page_size = 256,
3359 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3360 .tested = TEST_UNTESTED,
3361 .probe = probe_spi_rdid,
3362 .probe_timing = TIMING_ZERO,
3363 .block_erasers =
3364 {
3365 {
3366 .eraseblocks = { {4 * 1024, 1024} },
3367 .block_erase = spi_block_erase_20,
3368 }, {
3369 .eraseblocks = { {64 * 1024, 64} },
3370 .block_erase = spi_block_erase_d8,
3371 }, {
3372 .eraseblocks = { {4 * 1024 * 1024, 1} },
3373 .block_erase = spi_block_erase_60,
3374 }, {
3375 .eraseblocks = { {4 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_c7,
3377 }
3378 },
3379 .printlock = spi_prettyprint_status_register_bp2_bpl,
3380 .unlock = spi_disable_blockprotect,
3381 .write = spi_chip_write_256,
3382 .read = spi_chip_read,
3383 .voltage = {2700, 3600},
3384 },
3385
3386 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003387 .vendor = "Eon",
3388 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003391 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003392 .total_size = 64,
3393 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003395 .tested = TEST_UNTESTED,
3396 .probe = probe_spi_rdid,
3397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003398 .block_erasers =
3399 {
3400 {
3401 .eraseblocks = {
3402 {4 * 1024, 2},
3403 {8 * 1024, 1},
3404 {16 * 1024, 1},
3405 {32 * 1024, 1},
3406 },
3407 .block_erase = spi_block_erase_d8,
3408 }, {
3409 .eraseblocks = { {64 * 1024, 1} },
3410 .block_erase = spi_block_erase_c7,
3411 }
3412 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003414 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003415 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003416 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003417 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003418 },
3419
3420 {
3421 .vendor = "Eon",
3422 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003424 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003425 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .total_size = 64,
3427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003428 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003429 .tested = TEST_UNTESTED,
3430 .probe = probe_spi_rdid,
3431 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003432 .block_erasers =
3433 {
3434 {
3435 .eraseblocks = {
3436 {32 * 1024, 1},
3437 {16 * 1024, 1},
3438 {8 * 1024, 1},
3439 {4 * 1024, 2},
3440 },
3441 .block_erase = spi_block_erase_d8,
3442 }, {
3443 .eraseblocks = { {64 * 1024, 1} },
3444 .block_erase = spi_block_erase_c7,
3445 }
3446 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003448 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003449 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003450 .read = spi_chip_read, /* Fast read (0x0B) supported */
3451 .voltage = {2700, 3600},
3452 },
3453
3454 {
3455 .vendor = "Eon",
3456 .name = "EN25P05",
3457 .bustype = BUS_SPI,
3458 .manufacture_id = EON_ID_NOPREFIX,
3459 .model_id = EON_EN25B05,
3460 .total_size = 64,
3461 .page_size = 256,
3462 .feature_bits = FEATURE_WRSR_WREN,
3463 .tested = TEST_UNTESTED,
3464 .probe = probe_spi_rdid,
3465 .probe_timing = TIMING_ZERO,
3466 .block_erasers =
3467 {
3468 {
3469 .eraseblocks = {
3470 {32 * 1024, 2} },
3471 .block_erase = spi_block_erase_d8,
3472 }, {
3473 .eraseblocks = { {64 * 1024, 1} },
3474 .block_erase = spi_block_erase_c7,
3475 }
3476 },
3477 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3478 .unlock = spi_disable_blockprotect,
3479 .write = spi_chip_write_256,
3480 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003481 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003482 },
3483
3484 {
3485 .vendor = "Eon",
3486 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003487 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003488 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003489 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003490 .total_size = 128,
3491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003492 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003493 .tested = TEST_UNTESTED,
3494 .probe = probe_spi_rdid,
3495 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .block_erasers =
3497 {
3498 {
3499 .eraseblocks = {
3500 {4 * 1024, 2},
3501 {8 * 1024, 1},
3502 {16 * 1024, 1},
3503 {32 * 1024, 3},
3504 },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {128 * 1024, 1} },
3508 .block_erase = spi_block_erase_c7,
3509 }
3510 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003511 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003512 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003514 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003515 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003516 },
3517
3518 {
3519 .vendor = "Eon",
3520 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003521 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003522 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003523 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003524 .total_size = 128,
3525 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003526 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003527 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003528 .probe = probe_spi_rdid,
3529 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = {
3534 {32 * 1024, 3},
3535 {16 * 1024, 1},
3536 {8 * 1024, 1},
3537 {4 * 1024, 2},
3538 },
3539 .block_erase = spi_block_erase_d8,
3540 }, {
3541 .eraseblocks = { {128 * 1024, 1} },
3542 .block_erase = spi_block_erase_c7,
3543 }
3544 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003545 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003547 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003548 .read = spi_chip_read, /* Fast read (0x0B) supported */
3549 .voltage = {2700, 3600},
3550 },
3551
3552 {
3553 .vendor = "Eon",
3554 .name = "EN25P10",
3555 .bustype = BUS_SPI,
3556 .manufacture_id = EON_ID_NOPREFIX,
3557 .model_id = EON_EN25B10,
3558 .total_size = 128,
3559 .page_size = 256,
3560 .feature_bits = FEATURE_WRSR_WREN,
3561 .tested = TEST_UNTESTED,
3562 .probe = probe_spi_rdid,
3563 .probe_timing = TIMING_ZERO,
3564 .block_erasers =
3565 {
3566 {
3567 .eraseblocks = { {32 * 1024, 4} },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {128 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
3574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3575 .unlock = spi_disable_blockprotect,
3576 .write = spi_chip_write_256,
3577 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 256,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 3}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {256 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003612 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 256,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 3},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {256 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003647 .read = spi_chip_read, /* Fast read (0x0B) supported */
3648 .voltage = {2700, 3600},
3649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25P20",
3654 .bustype = BUS_SPI,
3655 .manufacture_id = EON_ID_NOPREFIX,
3656 .model_id = EON_EN25B20,
3657 .total_size = 256,
3658 .page_size = 256,
3659 .feature_bits = FEATURE_WRSR_WREN,
3660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
3663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = { {64 * 1024, 4} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {256 * 1024, 1} },
3670 .block_erase = spi_block_erase_c7,
3671 }
3672 },
3673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3674 .unlock = spi_disable_blockprotect,
3675 .write = spi_chip_write_256,
3676 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003678 },
3679
3680 {
3681 .vendor = "Eon",
3682 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003683 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003684 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003685 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003686 .total_size = 512,
3687 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003688 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003689 .tested = TEST_UNTESTED,
3690 .probe = probe_spi_rdid,
3691 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .block_erasers =
3693 {
3694 {
3695 .eraseblocks = {
3696 {4 * 1024, 2},
3697 {8 * 1024, 1},
3698 {16 * 1024, 1},
3699 {32 * 1024, 1},
3700 {64 * 1024, 7}
3701 },
3702 .block_erase = spi_block_erase_d8,
3703 }, {
3704 .eraseblocks = { {512 * 1024, 1} },
3705 .block_erase = spi_block_erase_c7,
3706 }
3707 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003709 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003710 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003711 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003712 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003713 },
3714
3715 {
3716 .vendor = "Eon",
3717 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003721 .total_size = 512,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {64 * 1024, 7},
3732 {32 * 1024, 1},
3733 {16 * 1024, 1},
3734 {8 * 1024, 1},
3735 {4 * 1024, 2},
3736 },
3737 .block_erase = spi_block_erase_d8,
3738 }, {
3739 .eraseblocks = { {512 * 1024, 1} },
3740 .block_erase = spi_block_erase_c7,
3741 }
3742 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003743 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003744 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003745 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003746 .read = spi_chip_read, /* Fast read (0x0B) supported */
3747 .voltage = {2700, 3600},
3748 },
3749
3750 {
3751 .vendor = "Eon",
3752 .name = "EN25P40",
3753 .bustype = BUS_SPI,
3754 .manufacture_id = EON_ID_NOPREFIX,
3755 .model_id = EON_EN25B40,
3756 .total_size = 512,
3757 .page_size = 256,
3758 .feature_bits = FEATURE_WRSR_WREN,
3759 .tested = TEST_UNTESTED,
3760 .probe = probe_spi_rdid,
3761 .probe_timing = TIMING_ZERO,
3762 .block_erasers =
3763 {
3764 {
3765 .eraseblocks = { {64 * 1024, 8} },
3766 .block_erase = spi_block_erase_d8,
3767 }, {
3768 .eraseblocks = { {512 * 1024, 1} },
3769 .block_erase = spi_block_erase_c7,
3770 }
3771 },
3772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3773 .unlock = spi_disable_blockprotect,
3774 .write = spi_chip_write_256,
3775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003776 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003777 },
3778
3779 {
3780 .vendor = "Eon",
3781 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003782 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003783 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003784 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .total_size = 1024,
3786 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003787 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003788 .tested = TEST_UNTESTED,
3789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = {
3795 {4 * 1024, 2},
3796 {8 * 1024, 1},
3797 {16 * 1024, 1},
3798 {32 * 1024, 1},
3799 {64 * 1024, 15}
3800 },
3801 .block_erase = spi_block_erase_d8,
3802 }, {
3803 .eraseblocks = { {1024 * 1024, 1} },
3804 .block_erase = spi_block_erase_c7,
3805 }
3806 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003808 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003809 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003810 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003811 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003812 },
3813
3814 {
3815 .vendor = "Eon",
3816 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003817 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003818 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003819 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .total_size = 1024,
3821 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003822 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .tested = TEST_UNTESTED,
3824 .probe = probe_spi_rdid,
3825 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003826 .block_erasers =
3827 {
3828 {
3829 .eraseblocks = {
3830 {64 * 1024, 15},
3831 {32 * 1024, 1},
3832 {16 * 1024, 1},
3833 {8 * 1024, 1},
3834 {4 * 1024, 2},
3835 },
3836 .block_erase = spi_block_erase_d8,
3837 }, {
3838 .eraseblocks = { {1024 * 1024, 1} },
3839 .block_erase = spi_block_erase_c7,
3840 }
3841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003843 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003844 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003845 .read = spi_chip_read, /* Fast read (0x0B) supported */
3846 .voltage = {2700, 3600},
3847 },
3848
3849 {
3850 .vendor = "Eon",
3851 .name = "EN25P80",
3852 .bustype = BUS_SPI,
3853 .manufacture_id = EON_ID_NOPREFIX,
3854 .model_id = EON_EN25B80,
3855 .total_size = 1024,
3856 .page_size = 256,
3857 .feature_bits = FEATURE_WRSR_WREN,
3858 .tested = TEST_UNTESTED,
3859 .probe = probe_spi_rdid,
3860 .probe_timing = TIMING_ZERO,
3861 .block_erasers =
3862 {
3863 {
3864 .eraseblocks = { {64 * 1024, 16} },
3865 .block_erase = spi_block_erase_d8,
3866 }, {
3867 .eraseblocks = { {1024 * 1024, 1} },
3868 .block_erase = spi_block_erase_c7,
3869 }
3870 },
3871 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3872 .unlock = spi_disable_blockprotect,
3873 .write = spi_chip_write_256,
3874 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003875 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003876 },
3877
3878 {
3879 .vendor = "Eon",
3880 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003881 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003882 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003883 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003884 .total_size = 2048,
3885 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003886 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003887 .tested = TEST_UNTESTED,
3888 .probe = probe_spi_rdid,
3889 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .block_erasers =
3891 {
3892 {
3893 .eraseblocks = {
3894 {4 * 1024, 2},
3895 {8 * 1024, 1},
3896 {16 * 1024, 1},
3897 {32 * 1024, 1},
3898 {64 * 1024, 31},
3899 },
3900 .block_erase = spi_block_erase_d8,
3901 }, {
3902 .eraseblocks = { {2 * 1024 * 1024, 1} },
3903 .block_erase = spi_block_erase_c7,
3904 }
3905 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003907 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003908 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003909 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003910 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003911 },
3912
3913 {
3914 .vendor = "Eon",
3915 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003916 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003917 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003918 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003919 .total_size = 2048,
3920 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003921 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003922 .tested = TEST_UNTESTED,
3923 .probe = probe_spi_rdid,
3924 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003925 .block_erasers =
3926 {
3927 {
3928 .eraseblocks = {
3929 {64 * 1024, 31},
3930 {32 * 1024, 1},
3931 {16 * 1024, 1},
3932 {8 * 1024, 1},
3933 {4 * 1024, 2},
3934 },
3935 .block_erase = spi_block_erase_d8,
3936 }, {
3937 .eraseblocks = { {2 * 1024 * 1024, 1} },
3938 .block_erase = spi_block_erase_c7,
3939 }
3940 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003942 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003944 .read = spi_chip_read, /* Fast read (0x0B) supported */
3945 .voltage = {2700, 3600},
3946 },
3947
3948 {
3949 .vendor = "Eon",
3950 .name = "EN25P16",
3951 .bustype = BUS_SPI,
3952 .manufacture_id = EON_ID_NOPREFIX,
3953 .model_id = EON_EN25B16,
3954 .total_size = 2048,
3955 .page_size = 256,
3956 .feature_bits = FEATURE_WRSR_WREN,
3957 .tested = TEST_UNTESTED,
3958 .probe = probe_spi_rdid,
3959 .probe_timing = TIMING_ZERO,
3960 .block_erasers =
3961 {
3962 {
3963 .eraseblocks = { {64 * 1024, 32} },
3964 .block_erase = spi_block_erase_d8,
3965 }, {
3966 .eraseblocks = { {2 * 1024 * 1024, 1} },
3967 .block_erase = spi_block_erase_c7,
3968 }
3969 },
3970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3971 .unlock = spi_disable_blockprotect,
3972 .write = spi_chip_write_256,
3973 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003974 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003975 },
3976
3977 {
3978 .vendor = "Eon",
3979 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003980 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003981 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003982 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .total_size = 4096,
3984 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003985 /* OTP: 512B total; enter 0x3A */
3986 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003987 .tested = TEST_UNTESTED,
3988 .probe = probe_spi_rdid,
3989 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003990 .block_erasers =
3991 {
3992 {
3993 .eraseblocks = {
3994 {4 * 1024, 2},
3995 {8 * 1024, 1},
3996 {16 * 1024, 1},
3997 {32 * 1024, 1},
3998 {64 * 1024, 63},
3999 },
4000 .block_erase = spi_block_erase_d8,
4001 }, {
4002 .eraseblocks = { {4 * 1024 * 1024, 1} },
4003 .block_erase = spi_block_erase_c7,
4004 }
4005 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004006 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004007 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004008 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004009 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004010 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004011 },
4012
4013 {
4014 .vendor = "Eon",
4015 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004016 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004017 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004018 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004019 .total_size = 4096,
4020 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004021 /* OTP: 512B total; enter 0x3A */
4022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004023 .tested = TEST_UNTESTED,
4024 .probe = probe_spi_rdid,
4025 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004026 .block_erasers =
4027 {
4028 {
4029 .eraseblocks = {
4030 {64 * 1024, 63},
4031 {32 * 1024, 1},
4032 {16 * 1024, 1},
4033 {8 * 1024, 1},
4034 {4 * 1024, 2},
4035 },
4036 .block_erase = spi_block_erase_d8,
4037 }, {
4038 .eraseblocks = { {4 * 1024 * 1024, 1} },
4039 .block_erase = spi_block_erase_c7,
4040 }
4041 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004042 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004043 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004044 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004045 .read = spi_chip_read, /* Fast read (0x0B) supported */
4046 .voltage = {2700, 3600},
4047 },
4048
4049 {
4050 .vendor = "Eon",
4051 .name = "EN25P32", /* Uniform version of EN25B32 */
4052 .bustype = BUS_SPI,
4053 .manufacture_id = EON_ID_NOPREFIX,
4054 .model_id = EON_EN25B32,
4055 .total_size = 4096,
4056 .page_size = 256,
4057 /* OTP: 512B total; enter 0x3A */
4058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4059 .tested = TEST_UNTESTED,
4060 .probe = probe_spi_rdid,
4061 .probe_timing = TIMING_ZERO,
4062 .block_erasers =
4063 {
4064 {
4065 .eraseblocks = { {64 * 1024, 64} },
4066 .block_erase = spi_block_erase_d8,
4067 }, {
4068 .eraseblocks = { {4 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
4072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004076 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004084 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004085 .total_size = 8192,
4086 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = {
4096 {4 * 1024, 2},
4097 {8 * 1024, 1},
4098 {16 * 1024, 1},
4099 {32 * 1024, 1},
4100 {64 * 1024, 127},
4101 },
4102 .block_erase = spi_block_erase_d8,
4103 }, {
4104 .eraseblocks = { {8 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004110 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004120 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004121 .total_size = 8192,
4122 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004125 .tested = TEST_UNTESTED,
4126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = {
4132 {64 * 1024, 127},
4133 {32 * 1024, 1},
4134 {16 * 1024, 1},
4135 {8 * 1024, 1},
4136 {4 * 1024, 2},
4137 },
4138 .block_erase = spi_block_erase_d8,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004145 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004146 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004147 .read = spi_chip_read, /* Fast read (0x0B) supported */
4148 .voltage = {2700, 3600},
4149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25P64",
4154 .bustype = BUS_SPI,
4155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25B64,
4157 .total_size = 8192,
4158 .page_size = 256,
4159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {64 * 1024, 128} },
4168 .block_erase = spi_block_erase_d8,
4169 }, {
4170 .eraseblocks = { {8 * 1024 * 1024, 1} },
4171 .block_erase = spi_block_erase_c7,
4172 }
4173 },
4174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4175 .unlock = spi_disable_blockprotect,
4176 .write = spi_chip_write_256,
4177 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004178 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004179 },
4180
4181 {
4182 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004183 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004184 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004185 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004186 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004187 .total_size = 64,
4188 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004189 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004190 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004191 .probe = probe_spi_rdid,
4192 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004193 .block_erasers =
4194 {
4195 {
4196 .eraseblocks = { {4 * 1024, 16} },
4197 .block_erase = spi_block_erase_20,
4198 }, {
4199 .eraseblocks = { {32 * 1024, 2} },
4200 .block_erase = spi_block_erase_d8,
4201 }, {
4202 .eraseblocks = { {32 * 1024, 2} },
4203 .block_erase = spi_block_erase_52,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 1} },
4206 .block_erase = spi_block_erase_60,
4207 }, {
4208 .eraseblocks = { {64 * 1024, 1} },
4209 .block_erase = spi_block_erase_c7,
4210 }
4211 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004212 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004213 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004214 .write = spi_chip_write_256,
4215 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004217 },
4218
4219 {
4220 .vendor = "Eon",
4221 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004222 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004223 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004224 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004225 .total_size = 128,
4226 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004227 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004228 .tested = TEST_UNTESTED,
4229 .probe = probe_spi_rdid,
4230 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004231 .block_erasers =
4232 {
4233 {
4234 .eraseblocks = { {4 * 1024, 32} },
4235 .block_erase = spi_block_erase_20,
4236 }, {
4237 .eraseblocks = { {32 * 1024, 4} },
4238 .block_erase = spi_block_erase_d8,
4239 }, {
4240 .eraseblocks = { {32 * 1024, 4} },
4241 .block_erase = spi_block_erase_52,
4242 }, {
4243 .eraseblocks = { {128 * 1024, 1} },
4244 .block_erase = spi_block_erase_60,
4245 }, {
4246 .eraseblocks = { {128 * 1024, 1} },
4247 .block_erase = spi_block_erase_c7,
4248 }
4249 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004251 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004252 .write = spi_chip_write_256,
4253 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004254 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004255 },
4256
4257 {
4258 .vendor = "Eon",
4259 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004260 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004261 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004262 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004263 .total_size = 256,
4264 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004265 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004266 .tested = TEST_UNTESTED,
4267 .probe = probe_spi_rdid,
4268 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004269 .block_erasers =
4270 {
4271 {
4272 .eraseblocks = { {4 * 1024, 64} },
4273 .block_erase = spi_block_erase_20,
4274 }, {
4275 .eraseblocks = { {64 * 1024, 4} },
4276 .block_erase = spi_block_erase_d8,
4277 }, {
4278 .eraseblocks = { {64 * 1024, 4} },
4279 .block_erase = spi_block_erase_52,
4280 }, {
4281 .eraseblocks = { {256 * 1024, 1} },
4282 .block_erase = spi_block_erase_60,
4283 }, {
4284 .eraseblocks = { {256 * 1024, 1} },
4285 .block_erase = spi_block_erase_c7,
4286 }
4287 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004288 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004289 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004290 .write = spi_chip_write_256,
4291 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004292 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004293 },
4294
4295 {
4296 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004297 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004298 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004299 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004300 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004301 .total_size = 512,
4302 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004303 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004305 .probe = probe_spi_rdid,
4306 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004307 .block_erasers =
4308 {
4309 {
Sean Nelson54596372010-01-09 05:30:14 +00004310 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004311 .block_erase = spi_block_erase_20,
4312 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004313 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004314 .block_erase = spi_block_erase_d8,
4315 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004316 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004317 .block_erase = spi_block_erase_60,
4318 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004319 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004320 .block_erase = spi_block_erase_c7,
4321 },
4322 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004323 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004324 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004325 .write = spi_chip_write_256,
4326 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004327 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004328 },
4329
4330 {
4331 .vendor = "Eon",
4332 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004333 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004334 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004335 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004336 .total_size = 1024,
4337 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004338 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004339 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004340 .probe = probe_spi_rdid,
4341 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004342 .block_erasers =
4343 {
4344 {
4345 .eraseblocks = { {4 * 1024, 256} },
4346 .block_erase = spi_block_erase_20,
4347 }, {
4348 .eraseblocks = { {64 * 1024, 16} },
4349 .block_erase = spi_block_erase_d8,
4350 }, {
4351 .eraseblocks = { {1024 * 1024, 1} },
4352 .block_erase = spi_block_erase_60,
4353 }, {
4354 .eraseblocks = { {1024 * 1024, 1} },
4355 .block_erase = spi_block_erase_c7,
4356 }
4357 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004358 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004359 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004360 .write = spi_chip_write_256,
4361 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004362 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004363 },
4364
4365 {
4366 .vendor = "Eon",
4367 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004368 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004369 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004370 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004371 .total_size = 2048,
4372 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004373 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004374 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004375 .probe = probe_spi_rdid,
4376 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004377 .block_erasers =
4378 {
4379 {
4380 .eraseblocks = { {4 * 1024, 512} },
4381 .block_erase = spi_block_erase_20,
4382 }, {
4383 .eraseblocks = { {64 * 1024, 32} },
4384 .block_erase = spi_block_erase_d8,
4385 }, {
4386 .eraseblocks = { {2 * 1024 * 1024, 1} },
4387 .block_erase = spi_block_erase_60,
4388 }, {
4389 .eraseblocks = { {2 * 1024 * 1024, 1} },
4390 .block_erase = spi_block_erase_c7,
4391 }
4392 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004394 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004395 .write = spi_chip_write_256,
4396 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004397 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004398 },
4399
4400 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004401 .vendor = "Eon",
4402 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004403 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004404 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004405 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004406 .total_size = 4096,
4407 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004408 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004409 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004410 .probe = probe_spi_rdid,
4411 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004412 .block_erasers =
4413 {
4414 {
4415 .eraseblocks = { {4 * 1024, 1024} },
4416 .block_erase = spi_block_erase_20,
4417 }, {
4418 .eraseblocks = { {64 * 1024, 64} },
4419 .block_erase = spi_block_erase_d8,
4420 }, {
4421 .eraseblocks = { {4 * 1024 * 1024, 1} },
4422 .block_erase = spi_block_erase_60,
4423 }, {
4424 .eraseblocks = { {4 * 1024 * 1024, 1} },
4425 .block_erase = spi_block_erase_c7,
4426 }
4427 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004428 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004429 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .write = spi_chip_write_256,
4431 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004432 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004433 },
4434
4435 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004436 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004437 .name = "EN25F64",
4438 .bustype = BUS_SPI,
4439 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004440 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004441 .total_size = 8192,
4442 .page_size = 256,
4443 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004444 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004445 .probe = probe_spi_rdid,
4446 .probe_timing = TIMING_ZERO,
4447 .block_erasers =
4448 {
4449 {
4450 .eraseblocks = { {4 * 1024, 2048} },
4451 .block_erase = spi_block_erase_20,
4452 }, {
4453 .eraseblocks = { {64 * 1024, 128} },
4454 .block_erase = spi_block_erase_d8,
4455 }, {
4456 .eraseblocks = { {8 * 1024 * 1024, 1} },
4457 .block_erase = spi_block_erase_60,
4458 }, {
4459 .eraseblocks = { {8 * 1024 * 1024, 1} },
4460 .block_erase = spi_block_erase_c7,
4461 }
4462 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004463 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004464 .unlock = spi_disable_blockprotect,
4465 .write = spi_chip_write_256,
4466 .read = spi_chip_read,
4467 .voltage = {2700, 3600},
4468 },
4469
4470 {
4471 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004472 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004473 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004474 .manufacture_id = EON_ID_NOPREFIX,
4475 .model_id = EON_EN25Q40,
4476 .total_size = 512,
4477 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004478 /* OTP: 256B total; enter 0x3A */
4479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004480 .tested = TEST_UNTESTED,
4481 .probe = probe_spi_rdid,
4482 .probe_timing = TIMING_ZERO,
4483 .block_erasers =
4484 {
4485 {
4486 .eraseblocks = { {4 * 1024, 128} },
4487 .block_erase = spi_block_erase_20,
4488 }, {
4489 .eraseblocks = { {64 * 1024, 8} },
4490 .block_erase = spi_block_erase_d8,
4491 }, {
4492 .eraseblocks = { {512 * 1024, 1} },
4493 .block_erase = spi_block_erase_60,
4494 }, {
4495 .eraseblocks = { {512 * 1024, 1} },
4496 .block_erase = spi_block_erase_c7,
4497 }
4498 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004499 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004500 .unlock = spi_disable_blockprotect,
4501 .write = spi_chip_write_256,
4502 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004503 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004504 },
4505
4506 {
4507 .vendor = "Eon",
4508 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004509 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004510 .manufacture_id = EON_ID_NOPREFIX,
4511 .model_id = EON_EN25Q80,
4512 .total_size = 1024,
4513 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004514 /* OTP: 256B total; enter 0x3A */
4515 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004516 .tested = TEST_UNTESTED,
4517 .probe = probe_spi_rdid,
4518 .probe_timing = TIMING_ZERO,
4519 .block_erasers =
4520 {
4521 {
4522 .eraseblocks = { {4 * 1024, 256} },
4523 .block_erase = spi_block_erase_20,
4524 }, {
4525 .eraseblocks = { {64 * 1024, 16} },
4526 .block_erase = spi_block_erase_d8,
4527 }, {
4528 .eraseblocks = { {1024 * 1024, 1} },
4529 .block_erase = spi_block_erase_60,
4530 }, {
4531 .eraseblocks = { {1024 * 1024, 1} },
4532 .block_erase = spi_block_erase_c7,
4533 }
4534 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004535 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004536 .unlock = spi_disable_blockprotect,
4537 .write = spi_chip_write_256,
4538 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004539 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004540 },
4541
4542 {
4543 /* Note: EN25D16 is an evil twin which shares the model ID
4544 but has different write protection capabilities */
4545 .vendor = "Eon",
4546 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004547 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004548 .manufacture_id = EON_ID_NOPREFIX,
4549 .model_id = EON_EN25Q16,
4550 .total_size = 2048,
4551 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004552 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004554 .tested = TEST_UNTESTED,
4555 .probe = probe_spi_rdid,
4556 .probe_timing = TIMING_ZERO,
4557 .block_erasers =
4558 {
4559 {
4560 .eraseblocks = { {4 * 1024, 512} },
4561 .block_erase = spi_block_erase_20,
4562 }, {
4563 .eraseblocks = { {64 * 1024, 32} },
4564 .block_erase = spi_block_erase_d8,
4565 }, {
4566 /* not supported by Q16 version */
4567 .eraseblocks = { {64 * 1024, 32} },
4568 .block_erase = spi_block_erase_52,
4569 }, {
4570 .eraseblocks = { {2 * 1024 * 1024, 1} },
4571 .block_erase = spi_block_erase_60,
4572 }, {
4573 .eraseblocks = { {2 * 1024 * 1024, 1} },
4574 .block_erase = spi_block_erase_c7,
4575 }
4576 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004577 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004578 .unlock = spi_disable_blockprotect,
4579 .write = spi_chip_write_256,
4580 .read = spi_chip_read,
4581 .voltage = {2700, 3600},
4582 },
4583
4584 {
4585 .vendor = "Eon",
4586 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004587 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004588 .manufacture_id = EON_ID_NOPREFIX,
4589 .model_id = EON_EN25Q32,
4590 .total_size = 4096,
4591 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004592 /* OTP: 512B total; enter 0x3A */
4593 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004594 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004595 .probe = probe_spi_rdid,
4596 .probe_timing = TIMING_ZERO,
4597 .block_erasers =
4598 {
4599 {
4600 .eraseblocks = { {4 * 1024, 1024} },
4601 .block_erase = spi_block_erase_20,
4602 }, {
4603 .eraseblocks = { {64 * 1024, 64} },
4604 .block_erase = spi_block_erase_d8,
4605 }, {
4606 .eraseblocks = { {4 * 1024 * 1024, 1} },
4607 .block_erase = spi_block_erase_60,
4608 }, {
4609 .eraseblocks = { {4 * 1024 * 1024, 1} },
4610 .block_erase = spi_block_erase_c7,
4611 }
4612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004614 .unlock = spi_disable_blockprotect,
4615 .write = spi_chip_write_256,
4616 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004617 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004618 },
4619
4620 {
4621 .vendor = "Eon",
4622 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004623 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004624 .manufacture_id = EON_ID_NOPREFIX,
4625 .model_id = EON_EN25Q64,
4626 .total_size = 8192,
4627 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004628 /* OTP: 512B total; enter 0x3A */
4629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004630 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004631 .probe = probe_spi_rdid,
4632 .probe_timing = TIMING_ZERO,
4633 .block_erasers =
4634 {
4635 {
4636 .eraseblocks = { {4 * 1024, 2048} },
4637 .block_erase = spi_block_erase_20,
4638 }, {
4639 .eraseblocks = { {64 * 1024, 128} },
4640 .block_erase = spi_block_erase_d8,
4641 }, {
4642 .eraseblocks = { {8 * 1024 * 1024, 1} },
4643 .block_erase = spi_block_erase_60,
4644 }, {
4645 .eraseblocks = { {8 * 1024 * 1024, 1} },
4646 .block_erase = spi_block_erase_c7,
4647 }
4648 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004650 .unlock = spi_disable_blockprotect,
4651 .write = spi_chip_write_256,
4652 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004653 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004654 },
4655
4656 {
4657 .vendor = "Eon",
4658 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004659 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004660 .manufacture_id = EON_ID_NOPREFIX,
4661 .model_id = EON_EN25Q128,
4662 .total_size = 16384,
4663 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004664 /* OTP: 512B total; enter 0x3A */
4665 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004666 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004667 .probe = probe_spi_rdid,
4668 .probe_timing = TIMING_ZERO,
4669 .block_erasers =
4670 {
4671 {
4672 .eraseblocks = { {4 * 1024, 4096} },
4673 .block_erase = spi_block_erase_20,
4674 }, {
4675 .eraseblocks = { {64 * 1024, 256} },
4676 .block_erase = spi_block_erase_d8,
4677 }, {
4678 .eraseblocks = { {16 * 1024 * 1024, 1} },
4679 .block_erase = spi_block_erase_60,
4680 }, {
4681 .eraseblocks = { {16 * 1024 * 1024, 1} },
4682 .block_erase = spi_block_erase_c7,
4683 }
4684 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004686 .unlock = spi_disable_blockprotect,
4687 .write = spi_chip_write_256,
4688 .read = spi_chip_read,
4689 },
4690
4691 {
4692 .vendor = "Eon",
4693 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004694 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004695 .manufacture_id = EON_ID_NOPREFIX,
4696 .model_id = EON_EN25QH16,
4697 .total_size = 2048,
4698 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004699 /* supports SFDP */
4700 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004701 /* QPI enable 0x38, disable 0xFF */
4702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004703 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004704 .probe = probe_spi_rdid,
4705 .probe_timing = TIMING_ZERO,
4706 .block_erasers =
4707 {
4708 {
4709 .eraseblocks = { {4 * 1024, 512} },
4710 .block_erase = spi_block_erase_20,
4711 }, {
4712 .eraseblocks = { {64 * 1024, 32} },
4713 .block_erase = spi_block_erase_d8,
4714 }, {
4715 .eraseblocks = { {1024 * 2048, 1} },
4716 .block_erase = spi_block_erase_60,
4717 }, {
4718 .eraseblocks = { {1024 * 2048, 1} },
4719 .block_erase = spi_block_erase_c7,
4720 }
4721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004722 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004723 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004724 .write = spi_chip_write_256,
4725 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004726 .voltage = {2700, 3600},
4727 },
4728
4729 {
4730 .vendor = "Eon",
4731 .name = "EN25QH32",
4732 .bustype = BUS_SPI,
4733 .manufacture_id = EON_ID_NOPREFIX,
4734 .model_id = EON_EN25QH32,
4735 .total_size = 4096,
4736 .page_size = 256,
4737 /* supports SFDP */
4738 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004739 /* QPI enable 0x38, disable 0xFF */
4740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004741 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004742 .probe = probe_spi_rdid,
4743 .probe_timing = TIMING_ZERO,
4744 .block_erasers =
4745 {
4746 {
4747 .eraseblocks = { {4 * 1024, 1024} },
4748 .block_erase = spi_block_erase_20,
4749 }, {
4750 .eraseblocks = { {64 * 1024, 64} },
4751 .block_erase = spi_block_erase_d8,
4752 }, {
4753 .eraseblocks = { {1024 * 4096, 1} },
4754 .block_erase = spi_block_erase_60,
4755 }, {
4756 .eraseblocks = { {1024 * 4096, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004760 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004761 .unlock = spi_disable_blockprotect_bp3_srwd,
4762 .write = spi_chip_write_256,
4763 .read = spi_chip_read,
4764 .voltage = {2700, 3600},
4765 },
4766
4767 {
4768 .vendor = "Eon",
4769 .name = "EN25QH64",
4770 .bustype = BUS_SPI,
4771 .manufacture_id = EON_ID_NOPREFIX,
4772 .model_id = EON_EN25QH64,
4773 .total_size = 8192,
4774 .page_size = 256,
4775 /* supports SFDP */
4776 /* OTP: 512B total; enter 0x3A */
4777 /* QPI enable 0x38, disable 0xFF */
4778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004779 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers = {
4783 {
4784 .eraseblocks = { {4 * 1024, 2048} },
4785 .block_erase = spi_block_erase_20,
4786 }, {
4787 .eraseblocks = { {64 * 1024, 128} },
4788 .block_erase = spi_block_erase_d8,
4789 }, {
4790 .eraseblocks = { { 8192 * 1024, 1} },
4791 .block_erase = spi_block_erase_60,
4792 }, {
4793 .eraseblocks = { { 8192 * 1024, 1} },
4794 .block_erase = spi_block_erase_c7,
4795 }
4796 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004797 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004798 .unlock = spi_disable_blockprotect_bp3_srwd,
4799 .write = spi_chip_write_256,
4800 .read = spi_chip_read,
4801 .voltage = {2700, 3600},
4802 },
4803
4804 {
4805 .vendor = "Eon",
4806 .name = "EN25QH128",
4807 .bustype = BUS_SPI,
4808 .manufacture_id = EON_ID_NOPREFIX,
4809 .model_id = EON_EN25QH128,
4810 .total_size = 16384,
4811 .page_size = 256,
4812 /* supports SFDP */
4813 /* OTP: 512B total; enter 0x3A */
4814 /* QPI enable 0x38, disable 0xFF */
4815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4816 .tested = TEST_UNTESTED,
4817 .probe = probe_spi_rdid,
4818 .probe_timing = TIMING_ZERO,
4819 .block_erasers = {
4820 {
4821 .eraseblocks = { {4 * 1024, 4096} },
4822 .block_erase = spi_block_erase_20,
4823 }, {
4824 .eraseblocks = { {64 * 1024, 256} },
4825 .block_erase = spi_block_erase_d8,
4826 }, {
4827 .eraseblocks = { { 16384 * 1024, 1} },
4828 .block_erase = spi_block_erase_60,
4829 }, {
4830 .eraseblocks = { { 16384 * 1024, 1} },
4831 .block_erase = spi_block_erase_c7,
4832 }
4833 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004834 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004835 .unlock = spi_disable_blockprotect_bp3_srwd,
4836 .write = spi_chip_write_256,
4837 .read = spi_chip_read,
4838 .voltage = {2700, 3600},
4839 },
4840
4841 {
4842 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004843 .name = "EN25S10",
4844 .bustype = BUS_SPI,
4845 .manufacture_id = EON_ID_NOPREFIX,
4846 .model_id = EON_EN25S10,
4847 .total_size = 128,
4848 .page_size = 256,
4849 /* OTP: 256B total; enter 0x3A */
4850 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4851 .tested = TEST_UNTESTED,
4852 .probe = probe_spi_rdid,
4853 .probe_timing = TIMING_ZERO,
4854 .block_erasers = {
4855 {
4856 .eraseblocks = { {4 * 1024, 32} },
4857 .block_erase = spi_block_erase_20,
4858 }, {
4859 .eraseblocks = { {32 * 1024, 4} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {128 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {128 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004869 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {1650, 1950},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25S20",
4879 .bustype = BUS_SPI,
4880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25S20,
4882 .total_size = 256,
4883 .page_size = 256,
4884 /* OTP: 256B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4886 .tested = TEST_UNTESTED,
4887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers = {
4890 {
4891 .eraseblocks = { {4 * 1024, 64} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 4} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {256 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {256 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004904 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 .voltage = {1650, 1950},
4909 },
4910
4911 {
4912 .vendor = "Eon",
4913 .name = "EN25S40",
4914 .bustype = BUS_SPI,
4915 .manufacture_id = EON_ID_NOPREFIX,
4916 .model_id = EON_EN25S40,
4917 .total_size = 512,
4918 .page_size = 256,
4919 /* OTP: 256B total; enter 0x3A */
4920 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4921 .tested = TEST_UNTESTED,
4922 .probe = probe_spi_rdid,
4923 .probe_timing = TIMING_ZERO,
4924 .block_erasers = {
4925 {
4926 .eraseblocks = { {4 * 1024, 128} },
4927 .block_erase = spi_block_erase_20,
4928 }, {
4929 .eraseblocks = { {64 * 1024, 8} },
4930 .block_erase = spi_block_erase_d8,
4931 }, {
4932 .eraseblocks = { {512 * 1024, 1} },
4933 .block_erase = spi_block_erase_60,
4934 }, {
4935 .eraseblocks = { {512 * 1024, 1} },
4936 .block_erase = spi_block_erase_c7,
4937 }
4938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004939 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004940 .unlock = spi_disable_blockprotect,
4941 .write = spi_chip_write_256,
4942 .read = spi_chip_read,
4943 .voltage = {1650, 1950},
4944 },
4945
4946 {
4947 .vendor = "Eon",
4948 .name = "EN25S80",
4949 .bustype = BUS_SPI,
4950 .manufacture_id = EON_ID_NOPREFIX,
4951 .model_id = EON_EN25S80,
4952 .total_size = 1024,
4953 .page_size = 256,
4954 /* OTP: 256B total; enter 0x3A */
4955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers = {
4960 {
4961 .eraseblocks = { {4 * 1024, 256} },
4962 .block_erase = spi_block_erase_20,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 16} },
4965 .block_erase = spi_block_erase_d8,
4966 }, {
4967 .eraseblocks = { {1024 * 1024, 1} },
4968 .block_erase = spi_block_erase_60,
4969 }, {
4970 .eraseblocks = { {1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_c7,
4972 }
4973 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004974 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004975 .unlock = spi_disable_blockprotect,
4976 .write = spi_chip_write_256,
4977 .read = spi_chip_read,
4978 .voltage = {1650, 1950},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN25S16",
4984 .bustype = BUS_SPI,
4985 .manufacture_id = EON_ID_NOPREFIX,
4986 .model_id = EON_EN25S16,
4987 .total_size = 2048,
4988 .page_size = 256,
4989 /* OTP: 512B total; enter 0x3A */
4990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4991 .tested = TEST_UNTESTED,
4992 .probe = probe_spi_rdid,
4993 .probe_timing = TIMING_ZERO,
4994 .block_erasers = {
4995 {
4996 .eraseblocks = { {4 * 1024, 512} },
4997 .block_erase = spi_block_erase_20,
4998 }, {
4999 .eraseblocks = { {64 * 1024, 32} },
5000 .block_erase = spi_block_erase_52,
5001 }, {
5002 .eraseblocks = { {32 * 1024, 64} },
5003 .block_erase = spi_block_erase_d8,
5004 }, {
5005 .eraseblocks = { {2048 * 1024, 1} },
5006 .block_erase = spi_block_erase_60,
5007 }, {
5008 .eraseblocks = { {2048 * 1024, 1} },
5009 .block_erase = spi_block_erase_c7,
5010 }
5011 },
5012 .printlock = spi_prettyprint_status_register_en25s_wp,
5013 .unlock = spi_disable_blockprotect_bp3_srwd,
5014 .write = spi_chip_write_256,
5015 .read = spi_chip_read,
5016 .voltage = {1650, 1950},
5017 },
5018
5019 {
5020 .vendor = "Eon",
5021 .name = "EN25S32",
5022 .bustype = BUS_SPI,
5023 .manufacture_id = EON_ID_NOPREFIX,
5024 .model_id = EON_EN25S32,
5025 .total_size = 4096,
5026 .page_size = 256,
5027 /* OTP: 512B total; enter 0x3A */
5028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5029 .tested = TEST_UNTESTED,
5030 .probe = probe_spi_rdid,
5031 .probe_timing = TIMING_ZERO,
5032 .block_erasers = {
5033 {
5034 .eraseblocks = { {4 * 1024, 1024} },
5035 .block_erase = spi_block_erase_20,
5036 }, {
5037 .eraseblocks = { {32 * 1024, 128} },
5038 .block_erase = spi_block_erase_52,
5039 }, {
5040 .eraseblocks = { {64 * 1024, 64} },
5041 .block_erase = spi_block_erase_d8,
5042 }, {
5043 .eraseblocks = { {4096 * 1024, 1} },
5044 .block_erase = spi_block_erase_60,
5045 }, {
5046 .eraseblocks = { {4096 * 1024, 1} },
5047 .block_erase = spi_block_erase_c7,
5048 }
5049 },
5050 .printlock = spi_prettyprint_status_register_en25s_wp,
5051 .unlock = spi_disable_blockprotect_bp3_srwd,
5052 .write = spi_chip_write_256,
5053 .read = spi_chip_read,
5054 .voltage = {1650, 1950},
5055 },
5056
5057 {
5058 .vendor = "Eon",
5059 .name = "EN25S64",
5060 .bustype = BUS_SPI,
5061 .manufacture_id = EON_ID_NOPREFIX,
5062 .model_id = EON_EN25S64,
5063 .total_size = 8192,
5064 .page_size = 256,
5065 /* OTP: 512B total; enter 0x3A */
5066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5067 .tested = TEST_UNTESTED,
5068 .probe = probe_spi_rdid,
5069 .probe_timing = TIMING_ZERO,
5070 .block_erasers = {
5071 {
5072 .eraseblocks = { {4 * 1024, 2048} },
5073 .block_erase = spi_block_erase_20,
5074 }, {
5075 .eraseblocks = { {64 * 1024, 128} },
5076 .block_erase = spi_block_erase_d8,
5077 }, {
5078 .eraseblocks = { {8192 * 1024, 1} },
5079 .block_erase = spi_block_erase_60,
5080 }, {
5081 .eraseblocks = { {8192 * 1024, 1} },
5082 .block_erase = spi_block_erase_c7,
5083 }
5084 },
5085 .printlock = spi_prettyprint_status_register_en25s_wp,
5086 .unlock = spi_disable_blockprotect_bp3_srwd,
5087 .write = spi_chip_write_256,
5088 .read = spi_chip_read,
5089 .voltage = {1650, 1950},
5090 },
5091
5092 {
5093 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005094 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005095 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005096 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005097 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005098 .total_size = 128,
5099 .page_size = 128,
5100 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005101 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005102 .probe = probe_jedec,
5103 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5104 .block_erasers =
5105 {
5106 {
5107 .eraseblocks = { {16 * 1024, 8} },
5108 .block_erase = erase_sector_jedec,
5109 },
5110 {
5111 .eraseblocks = { {128 * 1024, 1} },
5112 .block_erase = erase_chip_block_jedec,
5113 },
5114 },
5115 .write = write_jedec_1,
5116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005117 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005118 },
5119
5120 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005121 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005122 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005123 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005124 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005125 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005126 .total_size = 256,
5127 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005128 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005129 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005130 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005132 .block_erasers =
5133 {
5134 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005135 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005136 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005137 {8 * 1024, 2},
5138 {32 * 1024, 1},
5139 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005140 },
5141 .block_erase = erase_sector_jedec,
5142 }, {
5143 .eraseblocks = { {256 * 1024, 1} },
5144 .block_erase = erase_chip_block_jedec,
5145 },
5146 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005149 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005150 },
5151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005152 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005153 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005154 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005155 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005156 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005157 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 .total_size = 256,
5159 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005160 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005162 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005163 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005164 .block_erasers =
5165 {
5166 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005167 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005168 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005169 {32 * 1024, 1},
5170 {8 * 1024, 2},
5171 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005172 },
5173 .block_erase = erase_sector_jedec,
5174 }, {
5175 .eraseblocks = { {256 * 1024, 1} },
5176 .block_erase = erase_chip_block_jedec,
5177 },
5178 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005179 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005181 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005182 },
5183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005184 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005185 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005186 .name = "EN29LV040(A)",
5187 .bustype = BUS_PARALLEL,
5188 .manufacture_id = EON_ID,
5189 .model_id = EON_EN29LV040,
5190 .total_size = 512,
5191 .page_size = 4 * 1024,
5192 .tested = TEST_OK_PREW,
5193 .probe = probe_jedec,
5194 .probe_timing = TIMING_ZERO,
5195 .block_erasers =
5196 {
5197 {
5198 .eraseblocks = { {64 * 1024, 8} },
5199 .block_erase = erase_sector_jedec,
5200 },
5201 {
5202 .eraseblocks = { {512 * 1024, 1} },
5203 .block_erase = erase_chip_block_jedec,
5204 },
5205 },
5206 .write = write_jedec_1,
5207 .read = read_memmapped,
5208 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5209 },
5210
5211 {
5212 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005213 .name = "EN29LV640B",
5214 .bustype = BUS_PARALLEL,
5215 .manufacture_id = EON_ID,
5216 .model_id = EON_EN29LV640B,
5217 .total_size = 8192,
5218 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005219 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005220 .tested = TEST_OK_PREW,
5221 .probe = probe_en29lv640b,
5222 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5223 .block_erasers =
5224 {
5225 {
5226 .eraseblocks = {
5227 {8 * 1024, 8},
5228 {64 * 1024, 127},
5229 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005230 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005231 }, {
5232 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005233 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005234 },
5235 },
5236 .write = write_en29lv640b,
5237 .read = read_memmapped,
5238 .voltage = {2700, 3600},
5239 },
5240
5241 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005242 .vendor = "Eon",
5243 .name = "EN29GL064(A)B",
5244 .bustype = BUS_PARALLEL,
5245 .manufacture_id = EON_ID,
5246 .model_id = EON_EN29GL064B,
5247 .total_size = 8192,
5248 .page_size = 128 * 1024, /* actual page size is 16 */
5249 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_jedec_29gl,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = {
5257 {8 * 1024, 8},
5258 {64 * 1024, 127},
5259 },
5260 .block_erase = erase_sector_jedec,
5261 }, {
5262 .eraseblocks = { {8 * 1024 * 1024, 1} },
5263 .block_erase = erase_chip_block_jedec,
5264 },
5265 },
5266 .write = write_jedec_1,
5267 .read = read_memmapped,
5268 .voltage = {2700, 3600},
5269 },
5270
5271 {
5272 .vendor = "Eon",
5273 .name = "EN29GL064(A)T",
5274 .bustype = BUS_PARALLEL,
5275 .manufacture_id = EON_ID,
5276 .model_id = EON_EN29GL064T,
5277 .total_size = 8192,
5278 .page_size = 128 * 1024, /* actual page size is 16 */
5279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5280 .tested = TEST_UNTESTED,
5281 .probe = probe_jedec_29gl,
5282 .probe_timing = TIMING_ZERO,
5283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = {
5287 {64 * 1024, 127},
5288 {8 * 1024, 8},
5289 },
5290 .block_erase = erase_sector_jedec,
5291 }, {
5292 .eraseblocks = { {8 * 1024 * 1024, 1} },
5293 .block_erase = erase_chip_block_jedec,
5294 },
5295 },
5296 .write = write_jedec_1,
5297 .read = read_memmapped,
5298 .voltage = {2700, 3600},
5299 },
5300
5301 {
5302 .vendor = "Eon",
5303 .name = "EN29GL064H/L",
5304 .bustype = BUS_PARALLEL,
5305 .manufacture_id = EON_ID,
5306 .model_id = EON_EN29GL064HL,
5307 .total_size = 8192,
5308 .page_size = 128 * 1024, /* actual page size is 16 */
5309 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5310 .tested = TEST_UNTESTED,
5311 .probe = probe_jedec_29gl,
5312 .probe_timing = TIMING_ZERO,
5313 .block_erasers =
5314 {
5315 {
5316 .eraseblocks = { {64 * 1024, 128} },
5317 .block_erase = erase_sector_jedec,
5318 }, {
5319 .eraseblocks = { {8 * 1024 * 1024, 1} },
5320 .block_erase = erase_chip_block_jedec,
5321 },
5322 },
5323 .write = write_jedec_1,
5324 .read = read_memmapped,
5325 .voltage = {2700, 3600},
5326 },
5327
5328 {
5329 .vendor = "Eon",
5330 .name = "EN29GL128",
5331 .bustype = BUS_PARALLEL,
5332 .manufacture_id = EON_ID,
5333 .model_id = EON_EN29GL128HL,
5334 .total_size = 16384,
5335 .page_size = 128 * 1024, /* actual page size is 16 */
5336 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5337 .tested = TEST_UNTESTED,
5338 .probe = probe_jedec_29gl,
5339 .probe_timing = TIMING_ZERO,
5340 .block_erasers =
5341 {
5342 {
5343 .eraseblocks = { {128 * 1024, 128} },
5344 .block_erase = erase_sector_jedec,
5345 }, {
5346 .eraseblocks = { {16 * 1024 * 1024, 1} },
5347 .block_erase = erase_chip_block_jedec,
5348 },
5349 },
5350 .write = write_jedec_1,
5351 .read = read_memmapped,
5352 .voltage = {2700, 3600},
5353 },
5354
5355 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005356 .vendor = "ESI",
5357 .name = "ES25P40",
5358 .bustype = BUS_SPI,
5359 .manufacture_id = EXCEL_ID_NOPREFIX,
5360 .model_id = EXCEL_ES25P40,
5361 .total_size = 512,
5362 .page_size = 256,
5363 /* 256-byte paramter page separate from memory array:
5364 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5365 .feature_bits = FEATURE_WRSR_WREN,
5366 .tested = TEST_UNTESTED,
5367 .probe = probe_spi_rdid,
5368 .probe_timing = TIMING_ZERO,
5369 .block_erasers =
5370 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005371 {
5372 .eraseblocks = { {64 * 1024, 8} },
5373 .block_erase = spi_block_erase_d8,
5374 }, {
5375 .eraseblocks = { {512 * 1024, 1} },
5376 .block_erase = spi_block_erase_c7,
5377 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005378 },
5379 .printlock = spi_prettyprint_status_register_bp2_srwd,
5380 .unlock = spi_disable_blockprotect_bp2_srwd,
5381 .write = spi_chip_write_256,
5382 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5383 .voltage = {2700, 3600},
5384 },
5385
5386 {
5387 .vendor = "ESI",
5388 .name = "ES25P80",
5389 .bustype = BUS_SPI,
5390 .manufacture_id = EXCEL_ID_NOPREFIX,
5391 .model_id = EXCEL_ES25P80,
5392 .total_size = 1024,
5393 .page_size = 256,
5394 /* 256-byte paramter page separate from memory array:
5395 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5396 .feature_bits = FEATURE_WRSR_WREN,
5397 .tested = TEST_UNTESTED,
5398 .probe = probe_spi_rdid,
5399 .probe_timing = TIMING_ZERO,
5400 .block_erasers =
5401 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005402 {
5403 .eraseblocks = { {64 * 1024, 16} },
5404 .block_erase = spi_block_erase_d8,
5405 }, {
5406 .eraseblocks = { {1024 * 1024, 1} },
5407 .block_erase = spi_block_erase_c7,
5408 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005409 },
5410 .printlock = spi_prettyprint_status_register_bp2_srwd,
5411 .unlock = spi_disable_blockprotect_bp2_srwd,
5412 .write = spi_chip_write_256,
5413 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5414 .voltage = {2700, 3600},
5415 },
5416
5417 {
5418 .vendor = "ESI",
5419 .name = "ES25P16",
5420 .bustype = BUS_SPI,
5421 .manufacture_id = EXCEL_ID_NOPREFIX,
5422 .model_id = EXCEL_ES25P16,
5423 .total_size = 2 * 1024,
5424 .page_size = 256,
5425 /* 256-byte paramter page separate from memory array:
5426 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5427 .feature_bits = FEATURE_WRSR_WREN,
5428 .tested = TEST_UNTESTED,
5429 .probe = probe_spi_rdid,
5430 .probe_timing = TIMING_ZERO,
5431 .block_erasers =
5432 {
5433 {
5434 .eraseblocks = { {64 * 1024, 32} },
5435 .block_erase = spi_block_erase_d8,
5436 }, {
5437 .eraseblocks = { {2 * 1024 * 1024, 1} },
5438 .block_erase = spi_block_erase_c7,
5439 }
5440 },
5441 .printlock = spi_prettyprint_status_register_bp2_srwd,
5442 .unlock = spi_disable_blockprotect_bp2_srwd,
5443 .write = spi_chip_write_256,
5444 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5445 .voltage = {2700, 3600},
5446 },
5447
5448 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005449 .vendor = "Fujitsu",
5450 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005451 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005453 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005454 .total_size = 512,
5455 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005456 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005457 .tested = TEST_UNTESTED,
5458 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005459 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005460 .block_erasers =
5461 {
5462 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005463 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005464 {16 * 1024, 1},
5465 {8 * 1024, 2},
5466 {32 * 1024, 1},
5467 {64 * 1024, 7},
5468 },
Sean Nelson35727f72010-01-28 23:55:12 +00005469 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005470 }, {
5471 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005472 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005473 },
5474 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005475 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005477 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005478 },
5479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005480 {
5481 .vendor = "Fujitsu",
5482 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005483 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005484 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005485 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005486 .total_size = 512,
5487 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005489 .tested = TEST_UNTESTED,
5490 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005491 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005492 .block_erasers =
5493 {
5494 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005495 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005496 {64 * 1024, 7},
5497 {32 * 1024, 1},
5498 {8 * 1024, 2},
5499 {16 * 1024, 1},
5500 },
Sean Nelson35727f72010-01-28 23:55:12 +00005501 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005502 }, {
5503 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005504 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005505 },
5506 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005507 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005509 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005510 },
5511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 {
Sean Nelson35727f72010-01-28 23:55:12 +00005513 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005514 .vendor = "Fujitsu",
5515 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005516 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005517 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005518 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .total_size = 512,
5520 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005521 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005522 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005523 .probe = probe_jedec,
5524 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005525 .block_erasers =
5526 {
5527 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005528 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005529 {16 * 1024, 1},
5530 {8 * 1024, 2},
5531 {32 * 1024, 1},
5532 {64 * 1024, 7},
5533 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005534 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005535 }, {
5536 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005537 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005538 },
5539 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005540 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005541 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005542 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005543 },
5544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005545 {
5546 .vendor = "Fujitsu",
5547 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005548 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005550 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005551 .total_size = 512,
5552 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005553 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005555 .probe = probe_jedec,
5556 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005557 .block_erasers =
5558 {
5559 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005560 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005561 {64 * 1024, 7},
5562 {32 * 1024, 1},
5563 {8 * 1024, 2},
5564 {16 * 1024, 1},
5565 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005566 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005567 }, {
5568 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005569 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005570 },
5571 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005572 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005573 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005574 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005575 },
5576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005577 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005578 .vendor = "Fujitsu",
5579 .name = "MBM29LV160BE",
5580 .bustype = BUS_PARALLEL,
5581 .manufacture_id = FUJITSU_ID,
5582 .model_id = FUJITSU_MBM29LV160BE,
5583 .total_size = 2 * 1024,
5584 .page_size = 0,
5585 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5586 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005587 .probe = probe_jedec,
5588 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005589 .block_erasers =
5590 {
5591 {
5592 .eraseblocks = {
5593 {16 * 1024, 1},
5594 {8 * 1024, 2},
5595 {32 * 1024, 1},
5596 {64 * 1024, 31},
5597 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005598 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005599 }, {
5600 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005601 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005602 },
5603 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005604 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005605 .read = read_memmapped,
5606 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5607 },
5608
5609 {
5610 .vendor = "Fujitsu",
5611 .name = "MBM29LV160TE",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = FUJITSU_ID,
5614 .model_id = FUJITSU_MBM29LV160TE,
5615 .total_size = 2 * 1024,
5616 .page_size = 0,
5617 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005619 .probe = probe_jedec,
5620 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = {
5625 {64 * 1024, 31},
5626 {32 * 1024, 1},
5627 {8 * 1024, 2},
5628 {16 * 1024, 1},
5629 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005630 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005631 }, {
5632 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005633 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005634 },
5635 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005636 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005637 .read = read_memmapped,
5638 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5639 },
5640
5641 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005642 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005643 .name = "GD25LQ40",
5644 .bustype = BUS_SPI,
5645 .manufacture_id = GIGADEVICE_ID,
5646 .model_id = GIGADEVICE_GD25LQ40,
5647 .total_size = 512,
5648 .page_size = 256,
5649 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5650 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5651 .tested = TEST_UNTESTED,
5652 .probe = probe_spi_rdid,
5653 .probe_timing = TIMING_ZERO,
5654 .block_erasers =
5655 {
5656 {
5657 .eraseblocks = { {4 * 1024, 128} },
5658 .block_erase = spi_block_erase_20,
5659 }, {
5660 .eraseblocks = { {32 * 1024, 16} },
5661 .block_erase = spi_block_erase_52,
5662 }, {
5663 .eraseblocks = { {64 * 1024, 8} },
5664 .block_erase = spi_block_erase_d8,
5665 }, {
5666 .eraseblocks = { {512 * 1024, 1} },
5667 .block_erase = spi_block_erase_60,
5668 }, {
5669 .eraseblocks = { {512 * 1024, 1} },
5670 .block_erase = spi_block_erase_c7,
5671 }
5672 },
5673 .printlock = spi_prettyprint_status_register_bp4_srwd,
5674 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5675 .write = spi_chip_write_256,
5676 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5677 .voltage = {1695, 1950},
5678 },
5679
5680 {
5681 .vendor = "GigaDevice",
5682 .name = "GD25LQ80",
5683 .bustype = BUS_SPI,
5684 .manufacture_id = GIGADEVICE_ID,
5685 .model_id = GIGADEVICE_GD25LQ80,
5686 .total_size = 1024,
5687 .page_size = 256,
5688 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5690 .tested = TEST_UNTESTED,
5691 .probe = probe_spi_rdid,
5692 .probe_timing = TIMING_ZERO,
5693 .block_erasers =
5694 {
5695 {
5696 .eraseblocks = { {4 * 1024, 256} },
5697 .block_erase = spi_block_erase_20,
5698 }, {
5699 .eraseblocks = { {32 * 1024, 32} },
5700 .block_erase = spi_block_erase_52,
5701 }, {
5702 .eraseblocks = { {64 * 1024, 16} },
5703 .block_erase = spi_block_erase_d8,
5704 }, {
5705 .eraseblocks = { {1 * 1024 * 1024, 1} },
5706 .block_erase = spi_block_erase_60,
5707 }, {
5708 .eraseblocks = { {1 * 1024 * 1024, 1} },
5709 .block_erase = spi_block_erase_c7,
5710 }
5711 },
5712 .printlock = spi_prettyprint_status_register_bp4_srwd,
5713 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5714 .write = spi_chip_write_256,
5715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5716 .voltage = {1695, 1950},
5717 },
5718
5719 {
5720 .vendor = "GigaDevice",
5721 .name = "GD25LQ16",
5722 .bustype = BUS_SPI,
5723 .manufacture_id = GIGADEVICE_ID,
5724 .model_id = GIGADEVICE_GD25LQ16,
5725 .total_size = 2048,
5726 .page_size = 256,
5727 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5729 .tested = TEST_UNTESTED,
5730 .probe = probe_spi_rdid,
5731 .probe_timing = TIMING_ZERO,
5732 .block_erasers =
5733 {
5734 {
5735 .eraseblocks = { {4 * 1024, 512} },
5736 .block_erase = spi_block_erase_20,
5737 }, {
5738 .eraseblocks = { {32 * 1024, 64} },
5739 .block_erase = spi_block_erase_52,
5740 }, {
5741 .eraseblocks = { {64 * 1024, 32} },
5742 .block_erase = spi_block_erase_d8,
5743 }, {
5744 .eraseblocks = { {2 * 1024 * 1024, 1} },
5745 .block_erase = spi_block_erase_60,
5746 }, {
5747 .eraseblocks = { {2 * 1024 * 1024, 1} },
5748 .block_erase = spi_block_erase_c7,
5749 }
5750 },
5751 .printlock = spi_prettyprint_status_register_bp4_srwd,
5752 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5753 .write = spi_chip_write_256,
5754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5755 .voltage = {1695, 1950},
5756 },
5757
5758 {
5759 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005760 .name = "GD25LQ32",
5761 .bustype = BUS_SPI,
5762 .manufacture_id = GIGADEVICE_ID,
5763 .model_id = GIGADEVICE_GD25LQ32,
5764 .total_size = 4096,
5765 .page_size = 256,
5766 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5768 .tested = TEST_OK_PREW,
5769 .probe = probe_spi_rdid,
5770 .probe_timing = TIMING_ZERO,
5771 .block_erasers =
5772 {
5773 {
5774 .eraseblocks = { {4 * 1024, 1024} },
5775 .block_erase = spi_block_erase_20,
5776 }, {
5777 .eraseblocks = { {32 * 1024, 128} },
5778 .block_erase = spi_block_erase_52,
5779 }, {
5780 .eraseblocks = { {64 * 1024, 64} },
5781 .block_erase = spi_block_erase_d8,
5782 }, {
5783 .eraseblocks = { {4 * 1024 * 1024, 1} },
5784 .block_erase = spi_block_erase_60,
5785 }, {
5786 .eraseblocks = { {4 * 1024 * 1024, 1} },
5787 .block_erase = spi_block_erase_c7,
5788 }
5789 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005790 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005791 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5792 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5794 .voltage = {1695, 1950},
5795 },
5796
5797 {
5798 .vendor = "GigaDevice",
5799 .name = "GD25LQ64(B)",
5800 .bustype = BUS_SPI,
5801 .manufacture_id = GIGADEVICE_ID,
5802 .model_id = GIGADEVICE_GD25LQ64,
5803 .total_size = 8192,
5804 .page_size = 256,
5805 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005807 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005808 .probe = probe_spi_rdid,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {4 * 1024, 2048} },
5814 .block_erase = spi_block_erase_20,
5815 }, {
5816 .eraseblocks = { {32 * 1024, 256} },
5817 .block_erase = spi_block_erase_52,
5818 }, {
5819 .eraseblocks = { {64 * 1024, 128} },
5820 .block_erase = spi_block_erase_d8,
5821 }, {
5822 .eraseblocks = { {8 * 1024 * 1024, 1} },
5823 .block_erase = spi_block_erase_60,
5824 }, {
5825 .eraseblocks = { {8 * 1024 * 1024, 1} },
5826 .block_erase = spi_block_erase_c7,
5827 }
5828 },
5829 .printlock = spi_prettyprint_status_register_bp4_srwd,
5830 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5831 .write = spi_chip_write_256,
5832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5833 .voltage = {1695, 1950},
5834 },
5835
5836 {
5837 .vendor = "GigaDevice",
5838 .name = "GD25LQ128",
5839 .bustype = BUS_SPI,
5840 .manufacture_id = GIGADEVICE_ID,
5841 .model_id = GIGADEVICE_GD25LQ128,
5842 .total_size = 16384,
5843 .page_size = 256,
5844 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5846 .tested = TEST_UNTESTED,
5847 .probe = probe_spi_rdid,
5848 .probe_timing = TIMING_ZERO,
5849 .block_erasers =
5850 {
5851 {
5852 .eraseblocks = { {4 * 1024, 4096} },
5853 .block_erase = spi_block_erase_20,
5854 }, {
5855 .eraseblocks = { {32 * 1024, 512} },
5856 .block_erase = spi_block_erase_52,
5857 }, {
5858 .eraseblocks = { {64 * 1024, 256} },
5859 .block_erase = spi_block_erase_d8,
5860 }, {
5861 .eraseblocks = { {16 * 1024 * 1024, 1} },
5862 .block_erase = spi_block_erase_60,
5863 }, {
5864 .eraseblocks = { {16 * 1024 * 1024, 1} },
5865 .block_erase = spi_block_erase_c7,
5866 }
5867 },
5868 .printlock = spi_prettyprint_status_register_bp4_srwd,
5869 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5870 .write = spi_chip_write_256,
5871 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5872 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005873 },
5874
5875 {
5876 .vendor = "GigaDevice",
5877 .name = "GD25Q512",
5878 .bustype = BUS_SPI,
5879 .manufacture_id = GIGADEVICE_ID,
5880 .model_id = GIGADEVICE_GD25Q512,
5881 .total_size = 64,
5882 .page_size = 256,
5883 .feature_bits = FEATURE_WRSR_WREN,
5884 .tested = TEST_UNTESTED,
5885 .probe = probe_spi_rdid,
5886 .probe_timing = TIMING_ZERO,
5887 .block_erasers = {
5888 {
5889 .eraseblocks = { {4 * 1024, 16} },
5890 .block_erase = spi_block_erase_20,
5891 }, {
5892 .eraseblocks = { {32 * 1024, 2} },
5893 .block_erase = spi_block_erase_52,
5894 }, {
5895 .eraseblocks = { {64 * 1024, 1} },
5896 .block_erase = spi_block_erase_60,
5897 }, {
5898 .eraseblocks = { {64 * 1024, 1} },
5899 .block_erase = spi_block_erase_c7,
5900 }
5901 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005902 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005903 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5904 .write = spi_chip_write_256,
5905 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5906 .voltage = {2700, 3600},
5907 },
5908
5909 {
5910 .vendor = "GigaDevice",
5911 .name = "GD25Q10",
5912 .bustype = BUS_SPI,
5913 .manufacture_id = GIGADEVICE_ID,
5914 .model_id = GIGADEVICE_GD25Q10,
5915 .total_size = 128,
5916 .page_size = 256,
5917 .feature_bits = FEATURE_WRSR_WREN,
5918 .tested = TEST_UNTESTED,
5919 .probe = probe_spi_rdid,
5920 .probe_timing = TIMING_ZERO,
5921 .block_erasers = {
5922 {
5923 .eraseblocks = { {4 * 1024, 32} },
5924 .block_erase = spi_block_erase_20,
5925 }, {
5926 .eraseblocks = { {32 * 1024, 4} },
5927 .block_erase = spi_block_erase_52,
5928 }, {
5929 .eraseblocks = { {64 * 1024, 2} },
5930 .block_erase = spi_block_erase_d8,
5931 }, {
5932 .eraseblocks = { {128 * 1024, 1} },
5933 .block_erase = spi_block_erase_60,
5934 }, {
5935 .eraseblocks = { {128 * 1024, 1} },
5936 .block_erase = spi_block_erase_c7,
5937 }
5938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005939 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005940 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5941 .write = spi_chip_write_256,
5942 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5943 .voltage = {2700, 3600},
5944 },
5945
5946 {
5947 .vendor = "GigaDevice",
5948 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005949 .bustype = BUS_SPI,
5950 .manufacture_id = GIGADEVICE_ID,
5951 .model_id = GIGADEVICE_GD25Q20,
5952 .total_size = 256,
5953 .page_size = 256,
5954 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005955 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005956 .probe = probe_spi_rdid,
5957 .probe_timing = TIMING_ZERO,
5958 .block_erasers =
5959 {
5960 {
5961 .eraseblocks = { {4 * 1024, 64} },
5962 .block_erase = spi_block_erase_20,
5963 }, {
5964 .eraseblocks = { {32 * 1024, 8} },
5965 .block_erase = spi_block_erase_52,
5966 }, {
5967 .eraseblocks = { {64 * 1024, 4} },
5968 .block_erase = spi_block_erase_d8,
5969 }, {
5970 .eraseblocks = { {256 * 1024, 1} },
5971 .block_erase = spi_block_erase_60,
5972 }, {
5973 .eraseblocks = { {256 * 1024, 1} },
5974 .block_erase = spi_block_erase_c7,
5975 }
5976 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005977 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005978 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005979 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005981 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005982 },
5983
5984 {
5985 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005986 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005987 .bustype = BUS_SPI,
5988 .manufacture_id = GIGADEVICE_ID,
5989 .model_id = GIGADEVICE_GD25Q40,
5990 .total_size = 512,
5991 .page_size = 256,
5992 .feature_bits = FEATURE_WRSR_WREN,
5993 .tested = TEST_UNTESTED,
5994 .probe = probe_spi_rdid,
5995 .probe_timing = TIMING_ZERO,
5996 .block_erasers =
5997 {
5998 {
5999 .eraseblocks = { {4 * 1024, 128} },
6000 .block_erase = spi_block_erase_20,
6001 }, {
6002 .eraseblocks = { {32 * 1024, 16} },
6003 .block_erase = spi_block_erase_52,
6004 }, {
6005 .eraseblocks = { {64 * 1024, 8} },
6006 .block_erase = spi_block_erase_d8,
6007 }, {
6008 .eraseblocks = { {512 * 1024, 1} },
6009 .block_erase = spi_block_erase_60,
6010 }, {
6011 .eraseblocks = { {512 * 1024, 1} },
6012 .block_erase = spi_block_erase_c7,
6013 }
6014 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006015 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006016 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006017 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006018 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006019 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006020 },
6021
6022 {
6023 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006024 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006025 .bustype = BUS_SPI,
6026 .manufacture_id = GIGADEVICE_ID,
6027 .model_id = GIGADEVICE_GD25Q80,
6028 .total_size = 1024,
6029 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006030 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6032 .tested = TEST_OK_PREW,
6033 .probe = probe_spi_rdid,
6034 .probe_timing = TIMING_ZERO,
6035 .block_erasers =
6036 {
6037 {
6038 .eraseblocks = { {4 * 1024, 256} },
6039 .block_erase = spi_block_erase_20,
6040 }, {
6041 .eraseblocks = { {32 * 1024, 32} },
6042 .block_erase = spi_block_erase_52,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 16} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {1024 * 1024, 1} },
6048 .block_erase = spi_block_erase_60,
6049 }, {
6050 .eraseblocks = { {1024 * 1024, 1} },
6051 .block_erase = spi_block_erase_c7,
6052 }
6053 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006054 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006055 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006056 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006057 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006058 .voltage = {2700, 3600},
6059 },
6060
6061 {
6062 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006063 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006064 .bustype = BUS_SPI,
6065 .manufacture_id = GIGADEVICE_ID,
6066 .model_id = GIGADEVICE_GD25Q16,
6067 .total_size = 2048,
6068 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006069 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006071 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006072 .probe = probe_spi_rdid,
6073 .probe_timing = TIMING_ZERO,
6074 .block_erasers =
6075 {
6076 {
6077 .eraseblocks = { {4 * 1024, 512} },
6078 .block_erase = spi_block_erase_20,
6079 }, {
6080 .eraseblocks = { {32 * 1024, 64} },
6081 .block_erase = spi_block_erase_52,
6082 }, {
6083 .eraseblocks = { {64 * 1024, 32} },
6084 .block_erase = spi_block_erase_d8,
6085 }, {
6086 .eraseblocks = { {2 * 1024 * 1024, 1} },
6087 .block_erase = spi_block_erase_60,
6088 }, {
6089 .eraseblocks = { {2 * 1024 * 1024, 1} },
6090 .block_erase = spi_block_erase_c7,
6091 }
6092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006093 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006094 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006095 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006096 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006097 .voltage = {2700, 3600},
6098 },
6099
6100 {
6101 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006102 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006103 .bustype = BUS_SPI,
6104 .manufacture_id = GIGADEVICE_ID,
6105 .model_id = GIGADEVICE_GD25Q32,
6106 .total_size = 4096,
6107 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006108 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006109 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006110 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006111 .probe = probe_spi_rdid,
6112 .probe_timing = TIMING_ZERO,
6113 .block_erasers =
6114 {
6115 {
6116 .eraseblocks = { {4 * 1024, 1024} },
6117 .block_erase = spi_block_erase_20,
6118 }, {
6119 .eraseblocks = { {32 * 1024, 128} },
6120 .block_erase = spi_block_erase_52,
6121 }, {
6122 .eraseblocks = { {64 * 1024, 64} },
6123 .block_erase = spi_block_erase_d8,
6124 }, {
6125 .eraseblocks = { {4 * 1024 * 1024, 1} },
6126 .block_erase = spi_block_erase_60,
6127 }, {
6128 .eraseblocks = { {4 * 1024 * 1024, 1} },
6129 .block_erase = spi_block_erase_c7,
6130 }
6131 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006132 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006133 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006134 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006135 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006136 .voltage = {2700, 3600},
6137 },
6138
6139 {
6140 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006141 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006142 .bustype = BUS_SPI,
6143 .manufacture_id = GIGADEVICE_ID,
6144 .model_id = GIGADEVICE_GD25Q64,
6145 .total_size = 8192,
6146 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006147 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006149 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006150 .probe = probe_spi_rdid,
6151 .probe_timing = TIMING_ZERO,
6152 .block_erasers =
6153 {
6154 {
6155 .eraseblocks = { {4 * 1024, 2048} },
6156 .block_erase = spi_block_erase_20,
6157 }, {
6158 .eraseblocks = { {32 * 1024, 256} },
6159 .block_erase = spi_block_erase_52,
6160 }, {
6161 .eraseblocks = { {64 * 1024, 128} },
6162 .block_erase = spi_block_erase_d8,
6163 }, {
6164 .eraseblocks = { {8 * 1024 * 1024, 1} },
6165 .block_erase = spi_block_erase_60,
6166 }, {
6167 .eraseblocks = { {8 * 1024 * 1024, 1} },
6168 .block_erase = spi_block_erase_c7,
6169 }
6170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006171 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006172 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006173 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006175 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006176 },
6177
6178 {
6179 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006180 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006181 .bustype = BUS_SPI,
6182 .manufacture_id = GIGADEVICE_ID,
6183 .model_id = GIGADEVICE_GD25Q128,
6184 .total_size = 16384,
6185 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006186 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6188 .tested = TEST_UNTESTED,
6189 .probe = probe_spi_rdid,
6190 .probe_timing = TIMING_ZERO,
6191 .block_erasers =
6192 {
6193 {
6194 .eraseblocks = { {4 * 1024, 4096} },
6195 .block_erase = spi_block_erase_20,
6196 }, {
6197 .eraseblocks = { {32 * 1024, 512} },
6198 .block_erase = spi_block_erase_52,
6199 }, {
6200 .eraseblocks = { {64 * 1024, 256} },
6201 .block_erase = spi_block_erase_d8,
6202 }, {
6203 .eraseblocks = { {16 * 1024 * 1024, 1} },
6204 .block_erase = spi_block_erase_60,
6205 }, {
6206 .eraseblocks = { {16 * 1024 * 1024, 1} },
6207 .block_erase = spi_block_erase_c7,
6208 }
6209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006210 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006211 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6212 .write = spi_chip_write_256,
6213 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6214 .voltage = {2700, 3600},
6215 },
6216
6217 {
6218 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006219 .name = "GD25Q128C",
6220 .bustype = BUS_SPI,
6221 .manufacture_id = GIGADEVICE_ID,
6222 .model_id = GIGADEVICE_GD25Q128,
6223 .total_size = 16384,
6224 .page_size = 256,
6225 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6226 /* QPI: enable 0x38, disable 0xFF */
6227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6228 .tested = TEST_UNTESTED,
6229 .probe = probe_spi_rdid,
6230 .probe_timing = TIMING_ZERO,
6231 .block_erasers =
6232 {
6233 {
6234 .eraseblocks = { {4 * 1024, 4096} },
6235 .block_erase = spi_block_erase_20,
6236 }, {
6237 .eraseblocks = { {32 * 1024, 512} },
6238 .block_erase = spi_block_erase_52,
6239 }, {
6240 .eraseblocks = { {64 * 1024, 256} },
6241 .block_erase = spi_block_erase_d8,
6242 }, {
6243 .eraseblocks = { {16 * 1024 * 1024, 1} },
6244 .block_erase = spi_block_erase_60,
6245 }, {
6246 .eraseblocks = { {16 * 1024 * 1024, 1} },
6247 .block_erase = spi_block_erase_c7,
6248 }
6249 },
6250 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6251 .printlock = spi_prettyprint_status_register_bp4_srwd,
6252 .unlock = spi_disable_blockprotect_bp4_srwd,
6253 .write = spi_chip_write_256,
6254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6255 .voltage = {2700, 3600},
6256 },
6257
6258 {
6259 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006260 .name = "GD25T80",
6261 .bustype = BUS_SPI,
6262 .manufacture_id = GIGADEVICE_ID,
6263 .model_id = GIGADEVICE_GD25T80,
6264 .total_size = 1024,
6265 .page_size = 256,
6266 /* OTP: 256B total; enter 0x3A */
6267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6268 .tested = TEST_UNTESTED,
6269 .probe = probe_spi_rdid,
6270 .probe_timing = TIMING_ZERO,
6271 .block_erasers = {
6272 {
6273 .eraseblocks = { {4 * 1024, 256} },
6274 .block_erase = spi_block_erase_20,
6275 }, {
6276 .eraseblocks = { {64 * 1024, 16} },
6277 .block_erase = spi_block_erase_52,
6278 }, {
6279 .eraseblocks = { {64 * 1024, 16} },
6280 .block_erase = spi_block_erase_d8,
6281 }, {
6282 .eraseblocks = { {1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_60,
6284 }, {
6285 .eraseblocks = { {1024 * 1024, 1} },
6286 .block_erase = spi_block_erase_c7,
6287 }
6288 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006289 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006290 .unlock = spi_disable_blockprotect,
6291 .write = spi_chip_write_256,
6292 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006293 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006294 },
6295
6296 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006297 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006298 .name = "GD25VQ21B",
6299 .bustype = BUS_SPI,
6300 .manufacture_id = GIGADEVICE_ID,
6301 .model_id = GIGADEVICE_GD25VQ21B,
6302 .total_size = 256,
6303 .page_size = 256,
6304 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6306 .tested = TEST_UNTESTED,
6307 .probe = probe_spi_rdid,
6308 .probe_timing = TIMING_ZERO,
6309 .block_erasers =
6310 {
6311 {
6312 .eraseblocks = { { 4 * 1024, 64} },
6313 .block_erase = spi_block_erase_20,
6314 }, {
6315 .eraseblocks = { { 32 * 1024, 8} },
6316 .block_erase = spi_block_erase_52,
6317 }, {
6318 .eraseblocks = { { 64 * 1024, 4} },
6319 .block_erase = spi_block_erase_d8,
6320 }, {
6321 .eraseblocks = { {256 * 1024, 1} },
6322 .block_erase = spi_block_erase_60,
6323 }, {
6324 .eraseblocks = { {256 * 1024, 1} },
6325 .block_erase = spi_block_erase_c7,
6326 }
6327 },
6328 .printlock = spi_prettyprint_status_register_bp4_srwd,
6329 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6330 .write = spi_chip_write_256,
6331 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6332 .voltage = {2300, 3600},
6333 },
6334
6335 {
6336 .vendor = "GigaDevice",
6337 .name = "GD25VQ40C",
6338 .bustype = BUS_SPI,
6339 .manufacture_id = GIGADEVICE_ID,
6340 .model_id = GIGADEVICE_GD25VQ41B,
6341 .total_size = 512,
6342 .page_size = 256,
6343 /* Supports SFDP */
6344 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6346 .tested = TEST_UNTESTED,
6347 .probe = probe_spi_rdid,
6348 .probe_timing = TIMING_ZERO,
6349 .block_erasers =
6350 {
6351 {
6352 .eraseblocks = { { 4 * 1024, 128} },
6353 .block_erase = spi_block_erase_20,
6354 }, {
6355 .eraseblocks = { { 32 * 1024, 16} },
6356 .block_erase = spi_block_erase_52,
6357 }, {
6358 .eraseblocks = { { 64 * 1024, 8} },
6359 .block_erase = spi_block_erase_d8,
6360 }, {
6361 .eraseblocks = { {512 * 1024, 1} },
6362 .block_erase = spi_block_erase_60,
6363 }, {
6364 .eraseblocks = { {512 * 1024, 1} },
6365 .block_erase = spi_block_erase_c7,
6366 }
6367 },
6368 .printlock = spi_prettyprint_status_register_bp4_srwd,
6369 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6370 .write = spi_chip_write_256,
6371 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6372 .voltage = {2300, 3600},
6373 },
6374
6375 {
6376 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006377 .name = "GD25VQ41B",
6378 .bustype = BUS_SPI,
6379 .manufacture_id = GIGADEVICE_ID,
6380 .model_id = GIGADEVICE_GD25VQ41B,
6381 .total_size = 512,
6382 .page_size = 256,
6383 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006385 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006386 .probe = probe_spi_rdid,
6387 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006388 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006389 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006390 {
6391 .eraseblocks = { { 4 * 1024, 128} },
6392 .block_erase = spi_block_erase_20,
6393 }, {
6394 .eraseblocks = { { 32 * 1024, 16} },
6395 .block_erase = spi_block_erase_52,
6396 }, {
6397 .eraseblocks = { { 64 * 1024, 8} },
6398 .block_erase = spi_block_erase_d8,
6399 }, {
6400 .eraseblocks = { {512 * 1024, 1} },
6401 .block_erase = spi_block_erase_60,
6402 }, {
6403 .eraseblocks = { {512 * 1024, 1} },
6404 .block_erase = spi_block_erase_c7,
6405 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006406 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006407 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006408 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6409 .write = spi_chip_write_256,
6410 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6411 .voltage = {2300, 3600},
6412 },
6413
6414 {
6415 .vendor = "GigaDevice",
6416 .name = "GD25VQ80C",
6417 .bustype = BUS_SPI,
6418 .manufacture_id = GIGADEVICE_ID,
6419 .model_id = GIGADEVICE_GD25VQ80C,
6420 .total_size = 1024,
6421 .page_size = 256,
6422 /* Supports SFDP */
6423 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6424 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6425 .tested = TEST_UNTESTED,
6426 .probe = probe_spi_rdid,
6427 .probe_timing = TIMING_ZERO,
6428 .block_erasers =
6429 {
6430 {
6431 .eraseblocks = { { 4 * 1024, 256} },
6432 .block_erase = spi_block_erase_20,
6433 }, {
6434 .eraseblocks = { { 32 * 1024, 32} },
6435 .block_erase = spi_block_erase_52,
6436 }, {
6437 .eraseblocks = { { 64 * 1024, 16} },
6438 .block_erase = spi_block_erase_d8,
6439 }, {
6440 .eraseblocks = { {1024 * 1024, 1} },
6441 .block_erase = spi_block_erase_60,
6442 }, {
6443 .eraseblocks = { {1024 * 1024, 1} },
6444 .block_erase = spi_block_erase_c7,
6445 }
6446 },
6447 .printlock = spi_prettyprint_status_register_bp4_srwd,
6448 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6449 .write = spi_chip_write_256,
6450 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6451 .voltage = {2300, 3600},
6452 },
6453
6454 {
6455 .vendor = "GigaDevice",
6456 .name = "GD25VQ16C",
6457 .bustype = BUS_SPI,
6458 .manufacture_id = GIGADEVICE_ID,
6459 .model_id = GIGADEVICE_GD25VQ16C,
6460 .total_size = 2 * 1024,
6461 .page_size = 256,
6462 /* Supports SFDP */
6463 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6465 .tested = TEST_UNTESTED,
6466 .probe = probe_spi_rdid,
6467 .probe_timing = TIMING_ZERO,
6468 .block_erasers =
6469 {
6470 {
6471 .eraseblocks = { { 4 * 1024, 512} },
6472 .block_erase = spi_block_erase_20,
6473 }, {
6474 .eraseblocks = { { 32 * 1024, 64} },
6475 .block_erase = spi_block_erase_52,
6476 }, {
6477 .eraseblocks = { { 64 * 1024, 32} },
6478 .block_erase = spi_block_erase_d8,
6479 }, {
6480 .eraseblocks = { {2 * 1024 * 1024, 1} },
6481 .block_erase = spi_block_erase_60,
6482 }, {
6483 .eraseblocks = { {2 * 1024 * 1024, 1} },
6484 .block_erase = spi_block_erase_c7,
6485 }
6486 },
6487 .printlock = spi_prettyprint_status_register_bp4_srwd,
6488 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006489 .write = spi_chip_write_256,
6490 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6491 .voltage = {2300, 3600},
6492 },
6493
6494 {
David Borgc96a8bd2010-06-21 16:12:22 +00006495 .vendor = "Hyundai",
6496 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006497 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006498 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006499 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006500 .total_size = 256,
6501 .page_size = 256 * 1024,
6502 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006503 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006504 .probe = probe_jedec,
6505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6506 .block_erasers =
6507 {
6508 {
6509 .eraseblocks = {
6510 {64 * 1024, 3},
6511 {32 * 1024, 1},
6512 {8 * 1024, 2},
6513 {16 * 1024, 1},
6514 },
6515 .block_erase = erase_sector_jedec,
6516 }, {
6517 .eraseblocks = { {256 * 1024, 1} },
6518 .block_erase = erase_chip_block_jedec,
6519 },
6520 },
6521 .write = write_jedec_1,
6522 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006523 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006524 },
6525
6526 {
6527 .vendor = "Hyundai",
6528 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006529 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006530 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006531 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006532 .total_size = 256,
6533 .page_size = 256 * 1024,
6534 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6535 .tested = TEST_UNTESTED,
6536 .probe = probe_jedec,
6537 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6538 .block_erasers =
6539 {
6540 {
6541 .eraseblocks = {
6542 {16 * 1024, 1},
6543 {8 * 1024, 2},
6544 {32 * 1024, 1},
6545 {64 * 1024, 3},
6546 },
6547 .block_erase = erase_sector_jedec,
6548 }, {
6549 .eraseblocks = { {256 * 1024, 1} },
6550 .block_erase = erase_chip_block_jedec,
6551 },
6552 },
6553 .write = write_jedec_1,
6554 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006555 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006556 },
6557
6558 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006559 .vendor = "Hyundai",
6560 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006561 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006562 .manufacture_id = HYUNDAI_ID,
6563 .model_id = HYUNDAI_HY29F040A,
6564 .total_size = 512,
6565 .page_size = 64 * 1024,
6566 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6567 .tested = TEST_UNTESTED,
6568 .probe = probe_jedec,
6569 .probe_timing = TIMING_ZERO,
6570 .block_erasers =
6571 {
6572 {
6573 .eraseblocks = { {64 * 1024, 8} },
6574 .block_erase = erase_sector_jedec,
6575 }, {
6576 .eraseblocks = { {512 * 1024, 1} },
6577 .block_erase = erase_chip_block_jedec,
6578 },
6579 },
6580 .write = write_jedec_1,
6581 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006582 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006583 },
6584
6585 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006586 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006587 .name = "25F160S33B8",
6588 .bustype = BUS_SPI,
6589 .manufacture_id = INTEL_ID,
6590 .model_id = INTEL_25F160S33B8,
6591 .total_size = 2048,
6592 .page_size = 256,
6593 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6594 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6595 .tested = TEST_UNTESTED,
6596 .probe = probe_spi_rdid,
6597 .probe_timing = TIMING_ZERO,
6598 .block_erasers =
6599 {
6600 {
6601 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6602 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6603 * have no effect on the memory contents, but sets a flag in the SR.
6604 .eraseblocks = {
6605 {8 * 1024, 8},
6606 {64 * 1024, 31} // inaccessible
6607 },
6608 .block_erase = spi_block_erase_40,
6609 }, { */
6610 .eraseblocks = { {64 * 1024, 32} },
6611 .block_erase = spi_block_erase_d8,
6612 }, {
6613 .eraseblocks = { {2 * 1024 * 1024, 1} },
6614 .block_erase = spi_block_erase_c7,
6615 }
6616 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006617 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6618 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006619 .write = spi_chip_write_256,
6620 .read = spi_chip_read, /* also fast read 0x0B */
6621 .voltage = {2700, 3600},
6622 },
6623
6624 {
6625 .vendor = "Intel",
6626 .name = "25F160S33T8",
6627 .bustype = BUS_SPI,
6628 .manufacture_id = INTEL_ID,
6629 .model_id = INTEL_25F160S33T8,
6630 .total_size = 2048,
6631 .page_size = 256,
6632 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6634 .tested = TEST_UNTESTED,
6635 .probe = probe_spi_rdid,
6636 .probe_timing = TIMING_ZERO,
6637 .block_erasers =
6638 {
6639 {
6640 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6641 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6642 * have no effect on the memory contents, but sets a flag in the SR.
6643 .eraseblocks = {
6644 {64 * 1024, 31}, // inaccessible
6645 {8 * 1024, 8}
6646 },
6647 .block_erase = spi_block_erase_40,
6648 }, { */
6649 .eraseblocks = { {64 * 1024, 32} },
6650 .block_erase = spi_block_erase_d8,
6651 }, {
6652 .eraseblocks = { {2 * 1024 * 1024, 1} },
6653 .block_erase = spi_block_erase_c7,
6654 }
6655 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006656 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6657 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006658 .write = spi_chip_write_256,
6659 .read = spi_chip_read, /* also fast read 0x0B */
6660 .voltage = {2700, 3600},
6661 },
6662
6663 {
6664 .vendor = "Intel",
6665 .name = "25F320S33B8",
6666 .bustype = BUS_SPI,
6667 .manufacture_id = INTEL_ID,
6668 .model_id = INTEL_25F320S33B8,
6669 .total_size = 4096,
6670 .page_size = 256,
6671 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6673 .tested = TEST_UNTESTED,
6674 .probe = probe_spi_rdid,
6675 .probe_timing = TIMING_ZERO,
6676 .block_erasers =
6677 {
6678 {
6679 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6680 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6681 * have no effect on the memory contents, but sets a flag in the SR.
6682 .eraseblocks = {
6683 {8 * 1024, 8},
6684 {64 * 1024, 63} // inaccessible
6685 },
6686 .block_erase = spi_block_erase_40,
6687 }, { */
6688 .eraseblocks = { {64 * 1024, 64} },
6689 .block_erase = spi_block_erase_d8,
6690 }, {
6691 .eraseblocks = { {4 * 1024 * 1024, 1} },
6692 .block_erase = spi_block_erase_c7,
6693 }
6694 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006695 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6696 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006697 .write = spi_chip_write_256,
6698 .read = spi_chip_read, /* also fast read 0x0B */
6699 .voltage = {2700, 3600},
6700 },
6701
6702 {
6703 .vendor = "Intel",
6704 .name = "25F320S33T8",
6705 .bustype = BUS_SPI,
6706 .manufacture_id = INTEL_ID,
6707 .model_id = INTEL_25F320S33T8,
6708 .total_size = 4096,
6709 .page_size = 256,
6710 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6712 .tested = TEST_UNTESTED,
6713 .probe = probe_spi_rdid,
6714 .probe_timing = TIMING_ZERO,
6715 .block_erasers =
6716 {
6717 {
6718 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6719 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6720 * have no effect on the memory contents, but sets a flag in the SR.
6721 .eraseblocks = {
6722 {64 * 1024, 63}, // inaccessible
6723 {8 * 1024, 8}
6724 },
6725 .block_erase = spi_block_erase_40,
6726 }, { */
6727 .eraseblocks = { {64 * 1024, 64} },
6728 .block_erase = spi_block_erase_d8,
6729 }, {
6730 .eraseblocks = { {4 * 1024 * 1024, 1} },
6731 .block_erase = spi_block_erase_c7,
6732 }
6733 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006734 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6735 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006736 .write = spi_chip_write_256,
6737 .read = spi_chip_read, /* also fast read 0x0B */
6738 .voltage = {2700, 3600},
6739 },
6740
6741 {
6742 .vendor = "Intel",
6743 .name = "25F640S33B8",
6744 .bustype = BUS_SPI,
6745 .manufacture_id = INTEL_ID,
6746 .model_id = INTEL_25F640S33B8,
6747 .total_size = 8192,
6748 .page_size = 256,
6749 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6751 .tested = TEST_UNTESTED,
6752 .probe = probe_spi_rdid,
6753 .probe_timing = TIMING_ZERO,
6754 .block_erasers =
6755 {
6756 {
6757 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6758 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6759 * have no effect on the memory contents, but sets a flag in the SR.
6760 .eraseblocks = {
6761 {8 * 1024, 8},
6762 {64 * 1024, 127} // inaccessible
6763 },
6764 .block_erase = spi_block_erase_40,
6765 }, { */
6766 .eraseblocks = { {64 * 1024, 128} },
6767 .block_erase = spi_block_erase_d8,
6768 }, {
6769 .eraseblocks = { {8 * 1024 * 1024, 1} },
6770 .block_erase = spi_block_erase_c7,
6771 }
6772 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006773 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6774 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006775 .write = spi_chip_write_256,
6776 .read = spi_chip_read, /* also fast read 0x0B */
6777 .voltage = {2700, 3600},
6778 },
6779
6780 {
6781 .vendor = "Intel",
6782 .name = "25F640S33T8",
6783 .bustype = BUS_SPI,
6784 .manufacture_id = INTEL_ID,
6785 .model_id = INTEL_25F640S33T8,
6786 .total_size = 8192,
6787 .page_size = 256,
6788 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6790 .tested = TEST_UNTESTED,
6791 .probe = probe_spi_rdid,
6792 .probe_timing = TIMING_ZERO,
6793 .block_erasers =
6794 {
6795 {
6796 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6797 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6798 * have no effect on the memory contents, but sets a flag in the SR.
6799 .eraseblocks = {
6800 {64 * 1024, 127}, // inaccessible
6801 {8 * 1024, 8}
6802 },
6803 .block_erase = spi_block_erase_40,
6804 }, { */
6805 .eraseblocks = { {64 * 1024, 128} },
6806 .block_erase = spi_block_erase_d8,
6807 }, {
6808 .eraseblocks = { {8 * 1024 * 1024, 1} },
6809 .block_erase = spi_block_erase_c7,
6810 }
6811 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006812 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6813 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006814 .write = spi_chip_write_256,
6815 .read = spi_chip_read, /* also fast read 0x0B */
6816 .voltage = {2700, 3600},
6817 },
6818
6819 {
6820 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006821 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006822 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006823 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006824 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006825 .total_size = 128,
6826 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006827 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006828 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006829 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006830 .block_erasers =
6831 {
6832 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006833 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006834 {8 * 1024, 1},
6835 {4 * 1024, 2},
6836 {112 * 1024, 1},
6837 },
Sean Nelson28accc22010-03-19 18:47:06 +00006838 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006839 },
6840 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006841 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006842 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006843 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006844 },
6845
6846 {
6847 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006848 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006849 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006850 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006851 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006852 .total_size = 128,
6853 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006854 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006855 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006856 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006857 .block_erasers =
6858 {
6859 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006860 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006861 {112 * 1024, 1},
6862 {4 * 1024, 2},
6863 {8 * 1024, 1},
6864 },
Sean Nelson28accc22010-03-19 18:47:06 +00006865 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006866 },
6867 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006868 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006869 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006870 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006871 },
6872
6873 {
6874 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006875 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006876 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006877 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006878 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006879 .total_size = 256,
6880 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006881 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006882 .probe = probe_82802ab,
6883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6884 .block_erasers =
6885 {
6886 {
6887 .eraseblocks = {
6888 {128 * 1024, 1},
6889 {96 * 1024, 1},
6890 {8 * 1024, 2},
6891 {16 * 1024, 1},
6892 },
6893 .block_erase = erase_block_82802ab,
6894 },
6895 },
6896 .write = write_82802ab,
6897 .read = read_memmapped,
6898 },
6899
6900 {
6901 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006902 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006903 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006904 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006905 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006906 .total_size = 512,
6907 .page_size = 256,
6908 .tested = TEST_UNTESTED,
6909 .probe = probe_82802ab,
6910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006911 .block_erasers =
6912 {
6913 {
6914 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006915 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006916 },
6917 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006918 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006919 .write = write_82802ab,
6920 .read = read_memmapped,
6921 },
6922
6923 {
6924 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006925 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006926 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006927 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006928 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006929 .total_size = 512,
6930 .page_size = 128 * 1024, /* maximal block size */
6931 .tested = TEST_UNTESTED,
6932 .probe = probe_82802ab,
6933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6934 .block_erasers =
6935 {
6936 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006937 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006938 {16 * 1024, 1},
6939 {8 * 1024, 2},
6940 {96 * 1024, 1},
6941 {128 * 1024, 3},
6942 },
6943 .block_erase = erase_block_82802ab,
6944 },
6945 },
6946 .write = write_82802ab,
6947 .read = read_memmapped,
6948 },
6949
6950 {
6951 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006952 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006953 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006954 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006955 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006956 .total_size = 512,
6957 .page_size = 128 * 1024, /* maximal block size */
6958 .tested = TEST_UNTESTED,
6959 .probe = probe_82802ab,
6960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6961 .block_erasers =
6962 {
6963 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006964 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006965 {128 * 1024, 3},
6966 {96 * 1024, 1},
6967 {8 * 1024, 2},
6968 {16 * 1024, 1},
6969 },
6970 .block_erase = erase_block_82802ab,
6971 },
6972 },
6973 .write = write_82802ab,
6974 .read = read_memmapped,
6975 },
6976
6977 {
6978 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006979 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006980 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006981 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006982 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006983 .total_size = 512,
6984 .page_size = 128 * 1024, /* maximal block size */
6985 .feature_bits = FEATURE_ADDR_SHIFTED,
6986 .tested = TEST_UNTESTED,
6987 .probe = probe_82802ab,
6988 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6989 .block_erasers =
6990 {
6991 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006992 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006993 {16 * 1024, 1},
6994 {8 * 1024, 2},
6995 {96 * 1024, 1},
6996 {128 * 1024, 3},
6997 },
6998 .block_erase = erase_block_82802ab,
6999 },
7000 },
7001 .write = write_82802ab,
7002 .read = read_memmapped,
7003 },
7004
7005 {
7006 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007007 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007008 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007009 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007010 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007011 .total_size = 512,
7012 .page_size = 128 * 1024, /* maximal block size */
7013 .feature_bits = FEATURE_ADDR_SHIFTED,
7014 .tested = TEST_UNTESTED,
7015 .probe = probe_82802ab,
7016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7017 .block_erasers =
7018 {
7019 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007020 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007021 {128 * 1024, 3},
7022 {96 * 1024, 1},
7023 {8 * 1024, 2},
7024 {16 * 1024, 1},
7025 },
7026 .block_erase = erase_block_82802ab,
7027 },
7028 },
7029 .write = write_82802ab,
7030 .read = read_memmapped,
7031 },
7032
7033 {
7034 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007035 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007036 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007038 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 .total_size = 512,
7040 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007041 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007042 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007043 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007044 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007045 .block_erasers =
7046 {
7047 {
7048 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007049 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007050 },
7051 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007052 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007053 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007055 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007056 },
7057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007058 {
7059 .vendor = "Intel",
7060 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007061 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007062 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007063 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007064 .total_size = 1024,
7065 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007066 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007067 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007068 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007069 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007070 .block_erasers =
7071 {
7072 {
7073 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007074 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007075 },
7076 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007077 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007080 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007081 },
7082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007083 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007084 .vendor = "ISSI",
7085 .name = "IS29GL064B",
7086 .bustype = BUS_PARALLEL,
7087 .manufacture_id = ISSI_ID,
7088 .model_id = ISSI_PMC_IS29GL064B,
7089 .total_size = 8192,
7090 .page_size = 128 * 1024, /* actual page size is 16 */
7091 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7092 .tested = TEST_UNTESTED,
7093 .probe = probe_jedec_29gl,
7094 .probe_timing = TIMING_ZERO,
7095 .block_erasers =
7096 {
7097 {
7098 .eraseblocks = {
7099 {8 * 1024, 8},
7100 {64 * 1024, 127},
7101 },
7102 .block_erase = erase_sector_jedec,
7103 }, {
7104 .eraseblocks = { {8 * 1024 * 1024, 1} },
7105 .block_erase = erase_chip_block_jedec,
7106 },
7107 },
7108 .write = write_jedec_1,
7109 .read = read_memmapped,
7110 .voltage = {2700, 3600},
7111 },
7112
7113 {
7114 .vendor = "ISSI",
7115 .name = "IS29GL064T",
7116 .bustype = BUS_PARALLEL,
7117 .manufacture_id = ISSI_ID,
7118 .model_id = ISSI_PMC_IS29GL064T,
7119 .total_size = 8192,
7120 .page_size = 128 * 1024, /* actual page size is 16 */
7121 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7122 .tested = TEST_UNTESTED,
7123 .probe = probe_jedec_29gl,
7124 .probe_timing = TIMING_ZERO,
7125 .block_erasers =
7126 {
7127 {
7128 .eraseblocks = {
7129 {64 * 1024, 127},
7130 {8 * 1024, 8},
7131 },
7132 .block_erase = erase_sector_jedec,
7133 }, {
7134 .eraseblocks = { {8 * 1024 * 1024, 1} },
7135 .block_erase = erase_chip_block_jedec,
7136 },
7137 },
7138 .write = write_jedec_1,
7139 .read = read_memmapped,
7140 .voltage = {2700, 3600},
7141 },
7142
7143 {
7144 .vendor = "ISSI",
7145 .name = "IS29GL064H/L",
7146 .bustype = BUS_PARALLEL,
7147 .manufacture_id = ISSI_ID,
7148 .model_id = ISSI_PMC_IS29GL064HL,
7149 .total_size = 8192,
7150 .page_size = 128 * 1024, /* actual page size is 16 */
7151 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7152 .tested = TEST_UNTESTED,
7153 .probe = probe_jedec_29gl,
7154 .probe_timing = TIMING_ZERO,
7155 .block_erasers =
7156 {
7157 {
7158 .eraseblocks = { {64 * 1024, 128} },
7159 .block_erase = erase_sector_jedec,
7160 }, {
7161 .eraseblocks = { {8 * 1024 * 1024, 1} },
7162 .block_erase = erase_chip_block_jedec,
7163 },
7164 },
7165 .write = write_jedec_1,
7166 .read = read_memmapped,
7167 .voltage = {2700, 3600},
7168 },
7169
7170 {
7171 .vendor = "ISSI",
7172 .name = "IS29GL128H/L",
7173 .bustype = BUS_PARALLEL,
7174 .manufacture_id = ISSI_ID,
7175 .model_id = ISSI_PMC_IS29GL128HL,
7176 .total_size = 16384,
7177 .page_size = 128 * 1024, /* actual page size is 16 */
7178 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7179 .tested = TEST_UNTESTED,
7180 .probe = probe_jedec_29gl,
7181 .probe_timing = TIMING_ZERO,
7182 .block_erasers =
7183 {
7184 {
7185 .eraseblocks = { {128 * 1024, 128} },
7186 .block_erase = erase_sector_jedec,
7187 }, {
7188 .eraseblocks = { {16 * 1024 * 1024, 1} },
7189 .block_erase = erase_chip_block_jedec,
7190 },
7191 },
7192 .write = write_jedec_1,
7193 .read = read_memmapped,
7194 .voltage = {2700, 3600},
7195 },
7196
7197 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007198 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007199 .name = "MX23L1654",
7200 .bustype = BUS_SPI,
7201 .manufacture_id = MACRONIX_ID,
7202 .model_id = MACRONIX_MX23L1654,
7203 .total_size = 2048,
7204 .page_size = 256,
7205 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7206 .probe = probe_spi_rdid,
7207 .probe_timing = TIMING_ZERO,
7208 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7209 .read = spi_chip_read, /* Fast read (0x0B) supported */
7210 .voltage = {3000, 3600},
7211 },
7212
7213 {
7214 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007215 .name = "MX23L3254",
7216 .bustype = BUS_SPI,
7217 .manufacture_id = MACRONIX_ID,
7218 .model_id = MACRONIX_MX23L3254,
7219 .total_size = 4096,
7220 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007221 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007222 .probe = probe_spi_rdid,
7223 .probe_timing = TIMING_ZERO,
7224 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7225 .read = spi_chip_read, /* Fast read (0x0B) supported */
7226 .voltage = {3000, 3600},
7227 },
7228
7229 {
7230 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007231 .name = "MX23L6454",
7232 .bustype = BUS_SPI,
7233 .manufacture_id = MACRONIX_ID,
7234 .model_id = MACRONIX_MX23L6454,
7235 .total_size = 8192,
7236 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007237 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007238 .probe = probe_spi_rdid,
7239 .probe_timing = TIMING_ZERO,
7240 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7241 .read = spi_chip_read, /* Fast read (0x0B) supported */
7242 .voltage = {3000, 3600},
7243 },
7244
7245 {
7246 .vendor = "Macronix",
7247 .name = "MX23L12854",
7248 .bustype = BUS_SPI,
7249 .manufacture_id = MACRONIX_ID,
7250 .model_id = MACRONIX_MX23L12854,
7251 .total_size = 16384,
7252 .page_size = 256,
7253 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7254 .probe = probe_spi_rdid,
7255 .probe_timing = TIMING_ZERO,
7256 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7257 .read = spi_chip_read, /* Fast read (0x0B) supported */
7258 .voltage = {3000, 3600},
7259 },
7260
7261 {
7262 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007263 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007264 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007265 .manufacture_id = MACRONIX_ID,
7266 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007267 .total_size = 64,
7268 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007269 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007270 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007271 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007273 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007274 .block_erasers =
7275 {
7276 {
7277 .eraseblocks = { {4 * 1024, 16} },
7278 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007279 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007280 .eraseblocks = { {64 * 1024, 1} },
7281 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007282 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007283 .eraseblocks = { {64 * 1024, 1} },
7284 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007285 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007286 .eraseblocks = { {64 * 1024, 1} },
7287 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007288 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007289 .eraseblocks = { {64 * 1024, 1} },
7290 .block_erase = spi_block_erase_c7,
7291 },
7292 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007293 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007294 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007295 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007296 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7297 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007298 },
7299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007300 {
7301 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007302 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007303 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007304 .manufacture_id = MACRONIX_ID,
7305 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007306 .total_size = 128,
7307 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007308 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007309 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007310 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007311 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007312 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007313 .block_erasers =
7314 {
7315 {
7316 .eraseblocks = { {4 * 1024, 32} },
7317 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007318 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007319 .eraseblocks = { {64 * 1024, 2} },
7320 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007321 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007322 .eraseblocks = { {128 * 1024, 1} },
7323 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007324 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007325 .eraseblocks = { {128 * 1024, 1} },
7326 .block_erase = spi_block_erase_c7,
7327 },
7328 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007329 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007330 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007331 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007332 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007333 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007334 },
7335
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007336 {
7337 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007338 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007339 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007340 .manufacture_id = MACRONIX_ID,
7341 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007342 .total_size = 256,
7343 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007344 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007345 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007346 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007347 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007348 .block_erasers =
7349 {
7350 {
7351 .eraseblocks = { {4 * 1024, 64} },
7352 .block_erase = spi_block_erase_20,
7353 }, {
7354 .eraseblocks = { {64 * 1024, 4} },
7355 .block_erase = spi_block_erase_52,
7356 }, {
7357 .eraseblocks = { {64 * 1024, 4} },
7358 .block_erase = spi_block_erase_d8,
7359 }, {
7360 .eraseblocks = { {256 * 1024, 1} },
7361 .block_erase = spi_block_erase_60,
7362 }, {
7363 .eraseblocks = { {256 * 1024, 1} },
7364 .block_erase = spi_block_erase_c7,
7365 },
7366 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007367 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007368 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007369 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007370 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007371 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007372 },
7373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007374 {
7375 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007376 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007377 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007378 .manufacture_id = MACRONIX_ID,
7379 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007380 .total_size = 512,
7381 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007382 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007383 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007385 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007386 .block_erasers =
7387 {
7388 {
7389 .eraseblocks = { {4 * 1024, 128} },
7390 .block_erase = spi_block_erase_20,
7391 }, {
7392 .eraseblocks = { {64 * 1024, 8} },
7393 .block_erase = spi_block_erase_52,
7394 }, {
7395 .eraseblocks = { {64 * 1024, 8} },
7396 .block_erase = spi_block_erase_d8,
7397 }, {
7398 .eraseblocks = { {512 * 1024, 1} },
7399 .block_erase = spi_block_erase_60,
7400 }, {
7401 .eraseblocks = { {512 * 1024, 1} },
7402 .block_erase = spi_block_erase_c7,
7403 },
7404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007405 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007406 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007407 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007408 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007409 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007410 },
7411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007412 {
7413 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007414 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007415 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007416 .manufacture_id = MACRONIX_ID,
7417 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 .total_size = 1024,
7419 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007420 /* MX25L8006E, MX25L8008E support SFDP */
7421 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007422 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007423 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007424 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007425 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007426 .block_erasers =
7427 {
7428 {
7429 .eraseblocks = { {4 * 1024, 256} },
7430 .block_erase = spi_block_erase_20,
7431 }, {
7432 .eraseblocks = { {64 * 1024, 16} },
7433 .block_erase = spi_block_erase_52,
7434 }, {
7435 .eraseblocks = { {64 * 1024, 16} },
7436 .block_erase = spi_block_erase_d8,
7437 }, {
7438 .eraseblocks = { {1024 * 1024, 1} },
7439 .block_erase = spi_block_erase_60,
7440 }, {
7441 .eraseblocks = { {1024 * 1024, 1} },
7442 .block_erase = spi_block_erase_c7,
7443 },
7444 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007445 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007447 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007448 .read = spi_chip_read, /* Fast read (0x0B) supported */
7449 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007450 },
7451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007452 {
7453 .vendor = "Macronix",
7454 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007455 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007456 .manufacture_id = MACRONIX_ID,
7457 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007458 .total_size = 2048,
7459 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007460 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007463 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007464 .block_erasers =
7465 {
7466 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007467 .eraseblocks = { {64 * 1024, 32} },
7468 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007469 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007470 .eraseblocks = { {64 * 1024, 32} },
7471 .block_erase = spi_block_erase_d8,
7472 }, {
7473 .eraseblocks = { {2 * 1024 * 1024, 1} },
7474 .block_erase = spi_block_erase_60,
7475 }, {
7476 .eraseblocks = { {2 * 1024 * 1024, 1} },
7477 .block_erase = spi_block_erase_c7,
7478 },
7479 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007480 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007481 .unlock = spi_disable_blockprotect,
7482 .write = spi_chip_write_256,
7483 .read = spi_chip_read, /* Fast read (0x0B) supported */
7484 .voltage = {2700, 3600},
7485 },
7486
7487 {
7488 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007489 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007490 .bustype = BUS_SPI,
7491 .manufacture_id = MACRONIX_ID,
7492 .model_id = MACRONIX_MX25L1605,
7493 .total_size = 2048,
7494 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007495 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007496 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7497 .tested = TEST_OK_PREW,
7498 .probe = probe_spi_rdid,
7499 .probe_timing = TIMING_ZERO,
7500 .block_erasers =
7501 {
7502 {
7503 .eraseblocks = { {4 * 1024, 512} },
7504 .block_erase = spi_block_erase_20,
7505 }, {
7506 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007507 .block_erase = spi_block_erase_52,
7508 }, {
7509 .eraseblocks = { {64 * 1024, 32} },
7510 .block_erase = spi_block_erase_d8,
7511 }, {
7512 .eraseblocks = { {2 * 1024 * 1024, 1} },
7513 .block_erase = spi_block_erase_60,
7514 }, {
7515 .eraseblocks = { {2 * 1024 * 1024, 1} },
7516 .block_erase = spi_block_erase_c7,
7517 },
7518 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007519 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007520 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007521 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007522 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007523 .voltage = {2700, 3600},
7524 },
7525
7526 {
7527 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007528 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007529 .bustype = BUS_SPI,
7530 .manufacture_id = MACRONIX_ID,
7531 .model_id = MACRONIX_MX25L1605,
7532 .total_size = 2048,
7533 .page_size = 256,
7534 .feature_bits = FEATURE_WRSR_WREN,
7535 .tested = TEST_OK_PREW,
7536 .probe = probe_spi_rdid,
7537 .probe_timing = TIMING_ZERO,
7538 .block_erasers =
7539 {
7540 {
7541 .eraseblocks = { {4 * 1024, 512} },
7542 .block_erase = spi_block_erase_20,
7543 }, {
7544 .eraseblocks = { {64 * 1024, 32} },
7545 .block_erase = spi_block_erase_d8,
7546 }, {
7547 .eraseblocks = { {2 * 1024 * 1024, 1} },
7548 .block_erase = spi_block_erase_60,
7549 }, {
7550 .eraseblocks = { {2 * 1024 * 1024, 1} },
7551 .block_erase = spi_block_erase_c7,
7552 },
7553 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007554 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007555 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007556 .write = spi_chip_write_256,
7557 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007558 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007559 },
7560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007561 {
7562 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007563 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007564 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007565 .manufacture_id = MACRONIX_ID,
7566 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007567 .total_size = 2048,
7568 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007569 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7570 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007571 .tested = TEST_UNTESTED,
7572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007574 .block_erasers =
7575 {
7576 {
7577 .eraseblocks = { {4 * 1024, 512} },
7578 .block_erase = spi_block_erase_20,
7579 }, {
7580 .eraseblocks = { {64 * 1024, 32} },
7581 .block_erase = spi_block_erase_d8,
7582 }, {
7583 .eraseblocks = { {2 * 1024 * 1024, 1} },
7584 .block_erase = spi_block_erase_60,
7585 }, {
7586 .eraseblocks = { {2 * 1024 * 1024, 1} },
7587 .block_erase = spi_block_erase_c7,
7588 }
7589 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007590 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007591 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007592 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007593 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007594 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007595 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007596
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007597 {
7598 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007599 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007600 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007601 .manufacture_id = MACRONIX_ID,
7602 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007603 .total_size = 2048,
7604 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007605 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7606 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007607 .tested = TEST_UNTESTED,
7608 .probe = probe_spi_rdid,
7609 .probe_timing = TIMING_ZERO,
7610 .block_erasers =
7611 {
7612 {
7613 .eraseblocks = { {4 * 1024, 512} },
7614 .block_erase = spi_block_erase_20,
7615 }, {
7616 .eraseblocks = { {64 * 1024, 32} },
7617 .block_erase = spi_block_erase_d8,
7618 }, {
7619 .eraseblocks = { {2 * 1024 * 1024, 1} },
7620 .block_erase = spi_block_erase_60,
7621 }, {
7622 .eraseblocks = { {2 * 1024 * 1024, 1} },
7623 .block_erase = spi_block_erase_c7,
7624 }
7625 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007626 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007627 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007628 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007629 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007630 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007631 },
7632
7633 {
7634 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007635 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007636 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007637 .manufacture_id = MACRONIX_ID,
7638 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007639 .total_size = 4096,
7640 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007641 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007642 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007643 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007644 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007645 .block_erasers =
7646 {
7647 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007648 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007649 .block_erase = spi_block_erase_20,
7650 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007651 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007652 .block_erase = spi_block_erase_d8,
7653 }, {
7654 .eraseblocks = { {4 * 1024 * 1024, 1} },
7655 .block_erase = spi_block_erase_60,
7656 }, {
7657 .eraseblocks = { {4 * 1024 * 1024, 1} },
7658 .block_erase = spi_block_erase_c7,
7659 },
7660 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007661 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007662 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007663 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007664 .read = spi_chip_read, /* Fast read (0x0B) supported */
7665 .voltage = {2700, 3600},
7666 },
7667
7668 {
7669 .vendor = "Macronix",
7670 .name = "MX25L3205D/MX25L3208D",
7671 .bustype = BUS_SPI,
7672 .manufacture_id = MACRONIX_ID,
7673 .model_id = MACRONIX_MX25L3205,
7674 .total_size = 4096,
7675 .page_size = 256,
7676 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7678 .tested = TEST_OK_PREW,
7679 .probe = probe_spi_rdid,
7680 .probe_timing = TIMING_ZERO,
7681 .block_erasers =
7682 {
7683 {
7684 .eraseblocks = { {4 * 1024, 1024} },
7685 .block_erase = spi_block_erase_20,
7686 }, {
7687 .eraseblocks = { {64 * 1024, 64} },
7688 .block_erase = spi_block_erase_d8,
7689 }, {
7690 .eraseblocks = { {4 * 1024 * 1024, 1} },
7691 .block_erase = spi_block_erase_60,
7692 }, {
7693 .eraseblocks = { {4 * 1024 * 1024, 1} },
7694 .block_erase = spi_block_erase_c7,
7695 },
7696 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007697 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007698 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007699 .write = spi_chip_write_256,
7700 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7701 .voltage = {2700, 3600},
7702 },
7703
7704 {
7705 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007706 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007707 .bustype = BUS_SPI,
7708 .manufacture_id = MACRONIX_ID,
7709 .model_id = MACRONIX_MX25L3205,
7710 .total_size = 4096,
7711 .page_size = 256,
7712 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7713 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7714 .tested = TEST_OK_PREW,
7715 .probe = probe_spi_rdid,
7716 .probe_timing = TIMING_ZERO,
7717 .block_erasers =
7718 {
7719 {
7720 .eraseblocks = { {4 * 1024, 1024} },
7721 .block_erase = spi_block_erase_20,
7722 }, {
7723 .eraseblocks = { {64 * 1024, 64} },
7724 .block_erase = spi_block_erase_d8,
7725 }, {
7726 .eraseblocks = { {64 * 1024, 64} },
7727 .block_erase = spi_block_erase_52,
7728 }, {
7729 .eraseblocks = { {4 * 1024 * 1024, 1} },
7730 .block_erase = spi_block_erase_60,
7731 }, {
7732 .eraseblocks = { {4 * 1024 * 1024, 1} },
7733 .block_erase = spi_block_erase_c7,
7734 },
7735 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007736 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007737 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007738 .write = spi_chip_write_256,
7739 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007740 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007741 },
7742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007743 {
7744 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007745 .name = "MX25L3273E",
7746 .bustype = BUS_SPI,
7747 .manufacture_id = MACRONIX_ID,
7748 .model_id = MACRONIX_MX25L3205,
7749 .total_size = 4096,
7750 .page_size = 256,
7751 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007753 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007754 .probe = probe_spi_rdid,
7755 .probe_timing = TIMING_ZERO,
7756 .block_erasers =
7757 {
7758 {
7759 .eraseblocks = { {4 * 1024, 1024} },
7760 .block_erase = spi_block_erase_20,
7761 }, {
7762 .eraseblocks = { {32 * 1024, 128} },
7763 .block_erase = spi_block_erase_52,
7764 }, {
7765 .eraseblocks = { {64 * 1024, 64} },
7766 .block_erase = spi_block_erase_d8,
7767 }, {
7768 .eraseblocks = { {4 * 1024 * 1024, 1} },
7769 .block_erase = spi_block_erase_60,
7770 }, {
7771 .eraseblocks = { {4 * 1024 * 1024, 1} },
7772 .block_erase = spi_block_erase_c7,
7773 },
7774 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007775 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007776 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007777 .write = spi_chip_write_256,
7778 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7779 .voltage = {2700, 3600},
7780 },
7781
7782 {
7783 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007784 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007785 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007786 .manufacture_id = MACRONIX_ID,
7787 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007788 .total_size = 4096,
7789 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007790 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7791 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007792 .tested = TEST_UNTESTED,
7793 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007795 .block_erasers =
7796 {
7797 {
7798 .eraseblocks = { {4 * 1024, 1024} },
7799 .block_erase = spi_block_erase_20,
7800 }, {
7801 .eraseblocks = { {64 * 1024, 64} },
7802 .block_erase = spi_block_erase_d8,
7803 }, {
7804 .eraseblocks = { {4 * 1024 * 1024, 1} },
7805 .block_erase = spi_block_erase_60,
7806 }, {
7807 .eraseblocks = { {4 * 1024 * 1024, 1} },
7808 .block_erase = spi_block_erase_c7,
7809 }
7810 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007811 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007812 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007813 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007814 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007815 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007816 },
7817
7818 {
7819 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007820 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007821 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007822 .manufacture_id = MACRONIX_ID,
7823 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007824 .total_size = 8192,
7825 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007826 /* Has an additional 512B EEPROM sector */
7827 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007828 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007829 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007830 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007831 .block_erasers =
7832 {
7833 {
7834 .eraseblocks = { {64 * 1024, 128} },
7835 .block_erase = spi_block_erase_20,
7836 }, {
7837 .eraseblocks = { {64 * 1024, 128} },
7838 .block_erase = spi_block_erase_d8,
7839 }, {
7840 .eraseblocks = { {8 * 1024 * 1024, 1} },
7841 .block_erase = spi_block_erase_60,
7842 }, {
7843 .eraseblocks = { {8 * 1024 * 1024, 1} },
7844 .block_erase = spi_block_erase_c7,
7845 }
7846 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007847 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007848 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007849 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007850 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007851 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007852 },
7853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007854 {
7855 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007856 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00007857 .bustype = BUS_SPI,
7858 .manufacture_id = MACRONIX_ID,
7859 .model_id = MACRONIX_MX25L6405,
7860 .total_size = 8192,
7861 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007862 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7864 .tested = TEST_OK_PREW,
7865 .probe = probe_spi_rdid,
7866 .probe_timing = TIMING_ZERO,
7867 .block_erasers =
7868 {
7869 {
7870 .eraseblocks = { {4 * 1024, 2048} },
7871 .block_erase = spi_block_erase_20,
7872 }, {
7873 .eraseblocks = { {64 * 1024, 128} },
7874 .block_erase = spi_block_erase_d8,
7875 }, {
7876 .eraseblocks = { {8 * 1024 * 1024, 1} },
7877 .block_erase = spi_block_erase_60,
7878 }, {
7879 .eraseblocks = { {8 * 1024 * 1024, 1} },
7880 .block_erase = spi_block_erase_c7,
7881 }
7882 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007883 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007884 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007885 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007886 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00007887 .voltage = {2700, 3600},
7888 },
7889
7890 {
7891 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007892 .name = "MX25L6406E/MX25L6408E",
7893 .bustype = BUS_SPI,
7894 .manufacture_id = MACRONIX_ID,
7895 .model_id = MACRONIX_MX25L6405,
7896 .total_size = 8192,
7897 .page_size = 256,
7898 /* MX25L6406E supports SFDP */
7899 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
7900 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7901 .tested = TEST_OK_PREW,
7902 .probe = probe_spi_rdid,
7903 .probe_timing = TIMING_ZERO,
7904 .block_erasers =
7905 {
7906 {
7907 .eraseblocks = { {4 * 1024, 2048} },
7908 .block_erase = spi_block_erase_20,
7909 }, {
7910 .eraseblocks = { {64 * 1024, 128} },
7911 .block_erase = spi_block_erase_52,
7912 }, {
7913 .eraseblocks = { {64 * 1024, 128} },
7914 .block_erase = spi_block_erase_d8,
7915 }, {
7916 .eraseblocks = { {8 * 1024 * 1024, 1} },
7917 .block_erase = spi_block_erase_60,
7918 }, {
7919 .eraseblocks = { {8 * 1024 * 1024, 1} },
7920 .block_erase = spi_block_erase_c7,
7921 }
7922 },
7923 .printlock = spi_prettyprint_status_register_bp3_srwd,
7924 .unlock = spi_disable_blockprotect_bp3_srwd,
7925 .write = spi_chip_write_256,
7926 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
7927 .voltage = {2700, 3600},
7928 },
7929
7930 {
7931 .vendor = "Macronix",
7932 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007933 .bustype = BUS_SPI,
7934 .manufacture_id = MACRONIX_ID,
7935 .model_id = MACRONIX_MX25L6405,
7936 .total_size = 8192,
7937 .page_size = 256,
7938 /* supports SFDP */
7939 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7941 .tested = TEST_OK_PREW,
7942 .probe = probe_spi_rdid,
7943 .probe_timing = TIMING_ZERO,
7944 .block_erasers =
7945 {
7946 {
7947 .eraseblocks = { {4 * 1024, 2048} },
7948 .block_erase = spi_block_erase_20,
7949 }, {
7950 .eraseblocks = { {32 * 1024, 256} },
7951 .block_erase = spi_block_erase_52,
7952 }, {
7953 .eraseblocks = { {64 * 1024, 128} },
7954 .block_erase = spi_block_erase_d8,
7955 }, {
7956 .eraseblocks = { {8 * 1024 * 1024, 1} },
7957 .block_erase = spi_block_erase_60,
7958 }, {
7959 .eraseblocks = { {8 * 1024 * 1024, 1} },
7960 .block_erase = spi_block_erase_c7,
7961 }
7962 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007963 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007964 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007965 .write = spi_chip_write_256,
7966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7967 .voltage = {2700, 3600},
7968 },
7969
7970 {
7971 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007972 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007973 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007974 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007975 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007976 .total_size = 16384,
7977 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007978 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007980 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007981 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007982 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007983 .block_erasers =
7984 {
7985 {
7986 .eraseblocks = { {4 * 1024, 4096} },
7987 .block_erase = spi_block_erase_20,
7988 }, {
7989 .eraseblocks = { {64 * 1024, 256} },
7990 .block_erase = spi_block_erase_d8,
7991 }, {
7992 .eraseblocks = { {16 * 1024 * 1024, 1} },
7993 .block_erase = spi_block_erase_60,
7994 }, {
7995 .eraseblocks = { {16 * 1024 * 1024, 1} },
7996 .block_erase = spi_block_erase_c7,
7997 }
7998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007999 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008000 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008001 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008002 .read = spi_chip_read, /* Fast read (0x0B) supported */
8003 .voltage = {2700, 3600},
8004 },
8005
8006 {
8007 .vendor = "Macronix",
8008 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8009 .bustype = BUS_SPI,
8010 .manufacture_id = MACRONIX_ID,
8011 .model_id = MACRONIX_MX25L12805D,
8012 .total_size = 16384,
8013 .page_size = 256,
8014 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8016 .tested = TEST_OK_PREW,
8017 .probe = probe_spi_rdid,
8018 .probe_timing = TIMING_ZERO,
8019 .block_erasers =
8020 {
8021 {
8022 .eraseblocks = { {4 * 1024, 4096} },
8023 .block_erase = spi_block_erase_20,
8024 }, {
8025 .eraseblocks = { {32 * 1024, 512} },
8026 .block_erase = spi_block_erase_52,
8027 }, {
8028 .eraseblocks = { {64 * 1024, 256} },
8029 .block_erase = spi_block_erase_d8,
8030 }, {
8031 .eraseblocks = { {16 * 1024 * 1024, 1} },
8032 .block_erase = spi_block_erase_60,
8033 }, {
8034 .eraseblocks = { {16 * 1024 * 1024, 1} },
8035 .block_erase = spi_block_erase_c7,
8036 }
8037 },
8038 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8039 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8040 .unlock = spi_disable_blockprotect_bp3_srwd,
8041 .write = spi_chip_write_256,
8042 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008043 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008044 },
8045
8046 {
8047 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008048 .name = "MX25U1635E",
8049 .bustype = BUS_SPI,
8050 .manufacture_id = MACRONIX_ID,
8051 .model_id = MACRONIX_MX25U1635E,
8052 .total_size = 2048,
8053 .page_size = 256,
8054 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8055 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008057 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008058 .probe = probe_spi_rdid,
8059 .probe_timing = TIMING_ZERO,
8060 .block_erasers =
8061 {
8062 {
8063 .eraseblocks = { {4 * 1024, 512} },
8064 .block_erase = spi_block_erase_20,
8065 }, {
8066 .eraseblocks = { {32 * 1024, 64} },
8067 .block_erase = spi_block_erase_52,
8068 }, {
8069 .eraseblocks = { {64 * 1024, 32} },
8070 .block_erase = spi_block_erase_d8,
8071 }, {
8072 .eraseblocks = { {2 * 1024 * 1024, 1} },
8073 .block_erase = spi_block_erase_60,
8074 }, {
8075 .eraseblocks = { {2 * 1024 * 1024, 1} },
8076 .block_erase = spi_block_erase_c7,
8077 }
8078 },
8079 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008080 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008081 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008082 .write = spi_chip_write_256,
8083 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8084 .voltage = {1650, 2000},
8085 },
8086
8087 {
8088 .vendor = "Macronix",
8089 .name = "MX25U3235E/F",
8090 .bustype = BUS_SPI,
8091 .manufacture_id = MACRONIX_ID,
8092 .model_id = MACRONIX_MX25U3235E,
8093 .total_size = 4096,
8094 .page_size = 256,
8095 /* F model supports SFDP */
8096 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8097 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8098 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8099 .tested = TEST_OK_PREW,
8100 .probe = probe_spi_rdid,
8101 .probe_timing = TIMING_ZERO,
8102 .block_erasers =
8103 {
8104 {
8105 .eraseblocks = { {4 * 1024, 1024} },
8106 .block_erase = spi_block_erase_20,
8107 }, {
8108 .eraseblocks = { {32 * 1024, 128} },
8109 .block_erase = spi_block_erase_52,
8110 }, {
8111 .eraseblocks = { {64 * 1024, 64} },
8112 .block_erase = spi_block_erase_d8,
8113 }, {
8114 .eraseblocks = { {4 * 1024 * 1024, 1} },
8115 .block_erase = spi_block_erase_60,
8116 }, {
8117 .eraseblocks = { {4 * 1024 * 1024, 1} },
8118 .block_erase = spi_block_erase_c7,
8119 }
8120 },
8121 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008122 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008123 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008124 .write = spi_chip_write_256,
8125 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8126 .voltage = {1650, 2000},
8127 },
8128
8129 {
8130 .vendor = "Macronix",
8131 .name = "MX25U6435E/F",
8132 .bustype = BUS_SPI,
8133 .manufacture_id = MACRONIX_ID,
8134 .model_id = MACRONIX_MX25U6435E,
8135 .total_size = 8192,
8136 .page_size = 256,
8137 /* F model supports SFDP */
8138 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8139 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8140 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008141 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008142 .probe = probe_spi_rdid,
8143 .probe_timing = TIMING_ZERO,
8144 .block_erasers =
8145 {
8146 {
8147 .eraseblocks = { {4 * 1024, 2048} },
8148 .block_erase = spi_block_erase_20,
8149 }, {
8150 .eraseblocks = { {32 * 1024, 256} },
8151 .block_erase = spi_block_erase_52,
8152 }, {
8153 .eraseblocks = { {64 * 1024, 128} },
8154 .block_erase = spi_block_erase_d8,
8155 }, {
8156 .eraseblocks = { {8 * 1024 * 1024, 1} },
8157 .block_erase = spi_block_erase_60,
8158 }, {
8159 .eraseblocks = { {8 * 1024 * 1024, 1} },
8160 .block_erase = spi_block_erase_c7,
8161 }
8162 },
8163 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008164 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008165 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008166 .write = spi_chip_write_256,
8167 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8168 .voltage = {1650, 2000},
8169 },
8170
8171 {
8172 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008173 .name = "MX25U12835F",
8174 .bustype = BUS_SPI,
8175 .manufacture_id = MACRONIX_ID,
8176 .model_id = MACRONIX_MX25U12835E,
8177 .total_size = 16384,
8178 .page_size = 256,
8179 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8181 .tested = TEST_UNTESTED,
8182 .probe = probe_spi_rdid,
8183 .probe_timing = TIMING_ZERO,
8184 .block_erasers =
8185 {
8186 {
8187 .eraseblocks = { {4 * 1024, 4096} },
8188 .block_erase = spi_block_erase_20,
8189 }, {
8190 .eraseblocks = { {32 * 1024, 512} },
8191 .block_erase = spi_block_erase_52,
8192 }, {
8193 .eraseblocks = { {64 * 1024, 256} },
8194 .block_erase = spi_block_erase_d8,
8195 }, {
8196 .eraseblocks = { {16 * 1024 * 1024, 1} },
8197 .block_erase = spi_block_erase_60,
8198 }, {
8199 .eraseblocks = { {16 * 1024 * 1024, 1} },
8200 .block_erase = spi_block_erase_c7,
8201 }
8202 },
8203 /* TODO: security register */
8204 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8205 .unlock = spi_disable_blockprotect_bp3_srwd,
8206 .write = spi_chip_write_256, /* Multi I/O supported */
8207 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8208 .voltage = {1650, 2000},
8209 },
8210
8211 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008212 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008213 .name = "MX25L6495F",
8214 .bustype = BUS_SPI,
8215 .manufacture_id = MACRONIX_ID,
8216 .model_id = MACRONIX_MX25L6495F,
8217 .total_size = 8192,
8218 .page_size = 256,
8219 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8221 .tested = TEST_OK_PREW,
8222 .probe = probe_spi_rdid,
8223 .probe_timing = TIMING_ZERO,
8224 .block_erasers =
8225 {
8226 {
8227 .eraseblocks = { {4 * 1024, 2048} },
8228 .block_erase = spi_block_erase_20,
8229 }, {
8230 .eraseblocks = { {64 * 1024, 128} },
8231 .block_erase = spi_block_erase_d8,
8232 }, {
8233 .eraseblocks = { {32 * 1024, 256} },
8234 .block_erase = spi_block_erase_52,
8235 }, {
8236 .eraseblocks = { {8 * 1024 * 1024, 1} },
8237 .block_erase = spi_block_erase_60,
8238 }, {
8239 .eraseblocks = { {8 * 1024 * 1024, 1} },
8240 .block_erase = spi_block_erase_c7,
8241 }
8242 },
8243 .unlock = spi_disable_blockprotect,
8244 .write = spi_chip_write_256,
8245 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8246 .voltage = {2700, 3600},
8247 },
8248
8249 {
Martin Roth440057a2014-07-13 00:05:07 +00008250 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008251 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008252 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008253 .manufacture_id = MACRONIX_ID,
8254 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008255 .total_size = 128,
8256 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008257 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8258 .tested = TEST_UNTESTED,
8259 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008260 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008261 .block_erasers =
8262 {
8263 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008264 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008265 {8 * 1024, 1},
8266 {4 * 1024, 2},
8267 {8 * 1024, 2},
8268 {32 * 1024, 1},
8269 {64 * 1024, 1},
8270 },
Sean Nelson35727f72010-01-28 23:55:12 +00008271 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008272 }, {
8273 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008274 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008275 }
8276 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008277 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008279 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008280 },
8281
8282 {
8283 .vendor = "Macronix",
8284 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008285 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008286 .manufacture_id = MACRONIX_ID,
8287 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008288 .total_size = 128,
8289 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008290 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008291 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008292 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008293 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008294 .block_erasers =
8295 {
8296 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008297 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008298 {64 * 1024, 1},
8299 {32 * 1024, 1},
8300 {8 * 1024, 2},
8301 {4 * 1024, 2},
8302 {8 * 1024, 1},
8303 },
Sean Nelson35727f72010-01-28 23:55:12 +00008304 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008305 }, {
8306 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008307 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008308 }
8309 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008310 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008312 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008313 },
8314
8315 {
8316 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008317 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008318 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008319 .manufacture_id = MACRONIX_ID,
8320 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008321 .total_size = 256,
8322 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008323 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008324 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008325 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008326 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008327 .block_erasers =
8328 {
8329 {
8330 .eraseblocks = {
8331 {16 * 1024, 1},
8332 {8 * 1024, 2},
8333 {32 * 1024, 1},
8334 {64 * 1024, 3},
8335 },
Sean Nelson35727f72010-01-28 23:55:12 +00008336 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008337 }, {
8338 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008339 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008340 },
8341 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008344 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008345 },
8346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008347 {
8348 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008349 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008350 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008351 .manufacture_id = MACRONIX_ID,
8352 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008353 .total_size = 256,
8354 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008355 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008356 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008357 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008358 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008359 .block_erasers =
8360 {
8361 {
8362 .eraseblocks = {
8363 {64 * 1024, 3},
8364 {32 * 1024, 1},
8365 {8 * 1024, 2},
8366 {16 * 1024, 1},
8367 },
Sean Nelson35727f72010-01-28 23:55:12 +00008368 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008369 }, {
8370 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008371 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008372 },
8373 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008374 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008376 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008377 },
8378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008379 {
8380 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008381 .name = "MX29F022(N)B",
8382 .bustype = BUS_PARALLEL,
8383 .manufacture_id = MACRONIX_ID,
8384 .model_id = MACRONIX_MX29F022B,
8385 .total_size = 256,
8386 .page_size = 0, /* unused */
8387 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8388 .tested = TEST_UNTESTED,
8389 .probe = probe_jedec,
8390 .probe_timing = TIMING_ZERO,
8391 .block_erasers =
8392 {
8393 {
8394 .eraseblocks = {
8395 {16 * 1024, 1},
8396 {8 * 1024, 2},
8397 {32 * 1024, 1},
8398 {64 * 1024, 3},
8399 },
8400 .block_erase = erase_sector_jedec,
8401 }, {
8402 .eraseblocks = { {256 * 1024, 1} },
8403 .block_erase = erase_chip_block_jedec,
8404 }
8405 },
8406 .write = write_jedec_1,
8407 .read = read_memmapped,
8408 .voltage = {4500, 5500},
8409 },
8410
8411 {
8412 .vendor = "Macronix",
8413 .name = "MX29F022(N)T",
8414 .bustype = BUS_PARALLEL,
8415 .manufacture_id = MACRONIX_ID,
8416 .model_id = MACRONIX_MX29F022T,
8417 .total_size = 256,
8418 .page_size = 0, /* unused */
8419 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8420 .tested = TEST_OK_PREW,
8421 .probe = probe_jedec,
8422 .probe_timing = TIMING_ZERO,
8423 .block_erasers =
8424 {
8425 {
8426 .eraseblocks = {
8427 {64 * 1024, 3},
8428 {32 * 1024, 1},
8429 {8 * 1024, 2},
8430 {16 * 1024, 1},
8431 },
8432 .block_erase = erase_sector_jedec,
8433 }, {
8434 .eraseblocks = { {256 * 1024, 1} },
8435 .block_erase = erase_chip_block_jedec,
8436 }
8437 },
8438 .write = write_jedec_1,
8439 .read = read_memmapped,
8440 .voltage = {4500, 5500},
8441 },
8442
8443 {
8444 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008445 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008446 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008447 .manufacture_id = MACRONIX_ID,
8448 .model_id = MACRONIX_MX29F040,
8449 .total_size = 512,
8450 .page_size = 64 * 1024,
8451 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8452 .tested = TEST_UNTESTED,
8453 .probe = probe_jedec,
8454 .probe_timing = TIMING_ZERO,
8455 .block_erasers =
8456 {
8457 {
8458 .eraseblocks = { {64 * 1024, 8} },
8459 .block_erase = erase_sector_jedec,
8460 }, {
8461 .eraseblocks = { {512 * 1024, 1} },
8462 .block_erase = erase_chip_block_jedec,
8463 },
8464 },
8465 .write = write_jedec_1,
8466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008467 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008468 },
8469
8470 {
8471 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008472 .name = "MX29GL320EB",
8473 .bustype = BUS_PARALLEL,
8474 .manufacture_id = MACRONIX_ID,
8475 .model_id = MACRONIX_MX29GL320EB,
8476 .total_size = 4096,
8477 .page_size = 128 * 1024, /* actual page size is 16 */
8478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8479 .tested = TEST_UNTESTED,
8480 .probe = probe_jedec_29gl,
8481 .probe_timing = TIMING_ZERO,
8482 .block_erasers =
8483 {
8484 {
8485 .eraseblocks = {
8486 {8 * 1024, 8},
8487 {64 * 1024, 63},
8488 },
8489 .block_erase = erase_sector_jedec,
8490 }, {
8491 .eraseblocks = { {4 * 1024 * 1024, 1} },
8492 .block_erase = erase_chip_block_jedec,
8493 },
8494 },
8495 .write = write_jedec_1,
8496 .read = read_memmapped,
8497 .voltage = {2700, 3600},
8498 },
8499
8500 {
8501 .vendor = "Macronix",
8502 .name = "MX29GL320ET",
8503 .bustype = BUS_PARALLEL,
8504 .manufacture_id = MACRONIX_ID,
8505 .model_id = MACRONIX_MX29GL320ET,
8506 .total_size = 4096,
8507 .page_size = 128 * 1024, /* actual page size is 16 */
8508 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8509 .tested = TEST_UNTESTED,
8510 .probe = probe_jedec_29gl,
8511 .probe_timing = TIMING_ZERO,
8512 .block_erasers =
8513 {
8514 {
8515 .eraseblocks = {
8516 {64 * 1024, 63},
8517 {8 * 1024, 8},
8518 },
8519 .block_erase = erase_sector_jedec,
8520 }, {
8521 .eraseblocks = { {4 * 1024 * 1024, 1} },
8522 .block_erase = erase_chip_block_jedec,
8523 },
8524 },
8525 .write = write_jedec_1,
8526 .read = read_memmapped,
8527 .voltage = {2700, 3600},
8528 },
8529
8530 {
8531 .vendor = "Macronix",
8532 .name = "MX29GL320EH/L",
8533 .bustype = BUS_PARALLEL,
8534 .manufacture_id = MACRONIX_ID,
8535 .model_id = MACRONIX_MX29GL320EHL,
8536 .total_size = 4096,
8537 .page_size = 128 * 1024, /* actual page size is 16 */
8538 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8539 .tested = TEST_UNTESTED,
8540 .probe = probe_jedec_29gl,
8541 .probe_timing = TIMING_ZERO,
8542 .block_erasers =
8543 {
8544 {
8545 .eraseblocks = { {64 * 1024, 64} },
8546 .block_erase = erase_sector_jedec,
8547 }, {
8548 .eraseblocks = { {4 * 1024 * 1024, 1} },
8549 .block_erase = erase_chip_block_jedec,
8550 },
8551 },
8552 .write = write_jedec_1,
8553 .read = read_memmapped,
8554 .voltage = {2700, 3600},
8555 },
8556
8557 {
8558 .vendor = "Macronix",
8559 .name = "MX29GL640EB",
8560 .bustype = BUS_PARALLEL,
8561 .manufacture_id = MACRONIX_ID,
8562 .model_id = MACRONIX_MX29GL640EB,
8563 .total_size = 8192,
8564 .page_size = 128 * 1024, /* actual page size is 16 */
8565 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8566 .tested = TEST_UNTESTED,
8567 .probe = probe_jedec_29gl,
8568 .probe_timing = TIMING_ZERO,
8569 .block_erasers =
8570 {
8571 {
8572 .eraseblocks = {
8573 {8 * 1024, 8},
8574 {64 * 1024, 127},
8575 },
8576 .block_erase = erase_sector_jedec,
8577 }, {
8578 .eraseblocks = { {8 * 1024 * 1024, 1} },
8579 .block_erase = erase_chip_block_jedec,
8580 },
8581 },
8582 .write = write_jedec_1,
8583 .read = read_memmapped,
8584 .voltage = {2700, 3600},
8585 },
8586
8587 {
8588 .vendor = "Macronix",
8589 .name = "MX29GL640ET",
8590 .bustype = BUS_PARALLEL,
8591 .manufacture_id = MACRONIX_ID,
8592 .model_id = MACRONIX_MX29GL640ET,
8593 .total_size = 8192,
8594 .page_size = 128 * 1024, /* actual page size is 16 */
8595 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8596 .tested = TEST_UNTESTED,
8597 .probe = probe_jedec_29gl,
8598 .probe_timing = TIMING_ZERO,
8599 .block_erasers =
8600 {
8601 {
8602 .eraseblocks = {
8603 {64 * 1024, 127},
8604 {8 * 1024, 8},
8605 },
8606 .block_erase = erase_sector_jedec,
8607 }, {
8608 .eraseblocks = { {8 * 1024 * 1024, 1} },
8609 .block_erase = erase_chip_block_jedec,
8610 },
8611 },
8612 .write = write_jedec_1,
8613 .read = read_memmapped,
8614 .voltage = {2700, 3600},
8615 },
8616
8617 {
8618 .vendor = "Macronix",
8619 .name = "MX29GL640EH/L",
8620 .bustype = BUS_PARALLEL,
8621 .manufacture_id = MACRONIX_ID,
8622 .model_id = MACRONIX_MX29GL640EHL,
8623 .total_size = 8192,
8624 .page_size = 128 * 1024, /* actual page size is 16 */
8625 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8626 .tested = TEST_UNTESTED,
8627 .probe = probe_jedec_29gl,
8628 .probe_timing = TIMING_ZERO,
8629 .block_erasers =
8630 {
8631 {
8632 .eraseblocks = { {64 * 1024, 128} },
8633 .block_erase = erase_sector_jedec,
8634 }, {
8635 .eraseblocks = { {8 * 1024 * 1024, 1} },
8636 .block_erase = erase_chip_block_jedec,
8637 },
8638 },
8639 .write = write_jedec_1,
8640 .read = read_memmapped,
8641 .voltage = {2700, 3600},
8642 },
8643
8644 {
8645 .vendor = "Macronix",
8646 .name = "MX29GL128F",
8647 .bustype = BUS_PARALLEL,
8648 .manufacture_id = MACRONIX_ID,
8649 .model_id = MACRONIX_MX29GL128F,
8650 .total_size = 16384,
8651 .page_size = 128 * 1024, /* actual page size is 16 */
8652 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8653 .tested = TEST_UNTESTED,
8654 .probe = probe_jedec_29gl,
8655 .probe_timing = TIMING_ZERO,
8656 .block_erasers =
8657 {
8658 {
8659 .eraseblocks = { {128 * 1024, 128} },
8660 .block_erase = erase_sector_jedec,
8661 }, {
8662 .eraseblocks = { {16 * 1024 * 1024, 1} },
8663 .block_erase = erase_chip_block_jedec,
8664 },
8665 },
8666 .write = write_jedec_1,
8667 .read = read_memmapped,
8668 .voltage = {2700, 3600},
8669 },
8670
8671 {
8672 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008673 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008674 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008675 .manufacture_id = MACRONIX_ID,
8676 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008677 .total_size = 512,
8678 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008679 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8680 .tested = TEST_UNTESTED,
8681 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008682 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008683 .block_erasers =
8684 {
8685 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008686 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008687 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008688 }, {
8689 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008690 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008691 },
8692 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008693 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008695 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008696 },
8697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008698 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008699 .vendor = "Micron/Numonyx/ST",
8700 .name = "M25P05-A",
8701 .bustype = BUS_SPI,
8702 .manufacture_id = ST_ID,
8703 .model_id = ST_M25P05A,
8704 .total_size = 64,
8705 .page_size = 256,
8706 .feature_bits = FEATURE_WRSR_WREN,
8707 .tested = TEST_OK_PREW,
8708 .probe = probe_spi_rdid,
8709 .probe_timing = TIMING_ZERO,
8710 .block_erasers =
8711 {
8712 {
8713 .eraseblocks = { {32 * 1024, 2} },
8714 .block_erase = spi_block_erase_d8,
8715 }, {
8716 .eraseblocks = { {64 * 1024, 1} },
8717 .block_erase = spi_block_erase_c7,
8718 }
8719 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008720 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008721 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008722 .write = spi_chip_write_256,
8723 .read = spi_chip_read,
8724 .voltage = {2700, 3600},
8725 },
8726
8727 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8728 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
8729 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
8730 * only is successful if RDID does not work.
8731 */
8732 {
8733 .vendor = "Micron/Numonyx/ST",
8734 .name = "M25P05",
8735 .bustype = BUS_SPI,
8736 .manufacture_id = 0, /* Not used. */
8737 .model_id = ST_M25P05_RES,
8738 .total_size = 64,
8739 .page_size = 256,
8740 .feature_bits = FEATURE_WRSR_WREN,
8741 .tested = TEST_UNTESTED,
8742 .probe = probe_spi_res1,
8743 .probe_timing = TIMING_ZERO,
8744 .block_erasers =
8745 {
8746 {
8747 .eraseblocks = { {32 * 1024, 2} },
8748 .block_erase = spi_block_erase_d8,
8749 }, {
8750 .eraseblocks = { {64 * 1024, 1} },
8751 .block_erase = spi_block_erase_c7,
8752 }
8753 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008754 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008755 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008756 .write = spi_chip_write_1, /* 128 */
8757 .read = spi_chip_read,
8758 .voltage = {2700, 3600},
8759 },
8760
8761 {
8762 .vendor = "Micron/Numonyx/ST",
8763 .name = "M25P10-A",
8764 .bustype = BUS_SPI,
8765 .manufacture_id = ST_ID,
8766 .model_id = ST_M25P10A,
8767 .total_size = 128,
8768 .page_size = 256,
8769 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008770 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008771 .probe = probe_spi_rdid,
8772 .probe_timing = TIMING_ZERO,
8773 .block_erasers =
8774 {
8775 {
8776 .eraseblocks = { {32 * 1024, 4} },
8777 .block_erase = spi_block_erase_d8,
8778 }, {
8779 .eraseblocks = { {128 * 1024, 1} },
8780 .block_erase = spi_block_erase_c7,
8781 }
8782 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008783 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008784 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008785 .write = spi_chip_write_256,
8786 .read = spi_chip_read,
8787 .voltage = {2700, 3600},
8788 },
8789
8790 /* The ST M25P10 has the same problem as the M25P05. */
8791 {
8792 .vendor = "Micron/Numonyx/ST",
8793 .name = "M25P10",
8794 .bustype = BUS_SPI,
8795 .manufacture_id = 0, /* Not used. */
8796 .model_id = ST_M25P10_RES,
8797 .total_size = 128,
8798 .page_size = 256,
8799 .feature_bits = FEATURE_WRSR_WREN,
8800 .tested = TEST_UNTESTED,
8801 .probe = probe_spi_res1,
8802 .probe_timing = TIMING_ZERO,
8803 .block_erasers =
8804 {
8805 {
8806 .eraseblocks = { {32 * 1024, 4} },
8807 .block_erase = spi_block_erase_d8,
8808 }, {
8809 .eraseblocks = { {128 * 1024, 1} },
8810 .block_erase = spi_block_erase_c7,
8811 }
8812 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008813 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008814 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008815 .write = spi_chip_write_1, /* 128 */
8816 .read = spi_chip_read,
8817 .voltage = {2700, 3600},
8818 },
8819
8820 {
8821 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8822 .name = "M25P20",
8823 .bustype = BUS_SPI,
8824 .manufacture_id = ST_ID,
8825 .model_id = ST_M25P20,
8826 .total_size = 256,
8827 .page_size = 256,
8828 .feature_bits = FEATURE_WRSR_WREN,
8829 .tested = TEST_UNTESTED,
8830 .probe = probe_spi_rdid,
8831 .probe_timing = TIMING_ZERO,
8832 .block_erasers =
8833 {
8834 {
8835 .eraseblocks = { {64 * 1024, 4} },
8836 .block_erase = spi_block_erase_d8,
8837 }, {
8838 .eraseblocks = { {256 * 1024, 1} },
8839 .block_erase = spi_block_erase_c7,
8840 }
8841 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008842 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008843 .unlock = spi_disable_blockprotect,
8844 .write = spi_chip_write_256,
8845 .read = spi_chip_read, /* Fast read (0x0B) supported */
8846 .voltage = {2700, 3600},
8847 },
8848
8849 {
8850 .vendor = "Micron/Numonyx/ST",
8851 .name = "M25P20-old",
8852 .bustype = BUS_SPI,
8853 .manufacture_id = 0, /* Not used. */
8854 .model_id = ST_M25P20_RES,
8855 .total_size = 256,
8856 .page_size = 256,
8857 .feature_bits = FEATURE_WRSR_WREN,
8858 .tested = TEST_OK_PREW,
8859 .probe = probe_spi_res1,
8860 .probe_timing = TIMING_ZERO,
8861 .block_erasers =
8862 {
8863 {
8864 .eraseblocks = { {64 * 1024, 4} },
8865 .block_erase = spi_block_erase_d8,
8866 }, {
8867 .eraseblocks = { {256 * 1024, 1} },
8868 .block_erase = spi_block_erase_c7,
8869 }
8870 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008871 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008872 .unlock = spi_disable_blockprotect,
8873 .write = spi_chip_write_256,
8874 .read = spi_chip_read, /* Fast read (0x0B) supported */
8875 .voltage = {2700, 3600},
8876 },
8877
8878 {
8879 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8880 .name = "M25P40",
8881 .bustype = BUS_SPI,
8882 .manufacture_id = ST_ID,
8883 .model_id = ST_M25P40,
8884 .total_size = 512,
8885 .page_size = 256,
8886 .feature_bits = FEATURE_WRSR_WREN,
8887 .tested = TEST_OK_PREW,
8888 .probe = probe_spi_rdid,
8889 .probe_timing = TIMING_ZERO,
8890 .block_erasers =
8891 {
8892 {
8893 .eraseblocks = { {64 * 1024, 8} },
8894 .block_erase = spi_block_erase_d8,
8895 }, {
8896 .eraseblocks = { {512 * 1024, 1} },
8897 .block_erase = spi_block_erase_c7,
8898 }
8899 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008900 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008901 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008902 .write = spi_chip_write_256,
8903 .read = spi_chip_read,
8904 .voltage = {2700, 3600},
8905 },
8906
8907 {
8908 .vendor = "Micron/Numonyx/ST",
8909 .name = "M25P40-old",
8910 .bustype = BUS_SPI,
8911 .manufacture_id = 0, /* Not used. */
8912 .model_id = ST_M25P40_RES,
8913 .total_size = 512,
8914 .page_size = 256,
8915 .feature_bits = FEATURE_WRSR_WREN,
8916 .tested = TEST_UNTESTED,
8917 .probe = probe_spi_res1,
8918 .probe_timing = TIMING_ZERO,
8919 .block_erasers =
8920 {
8921 {
8922 .eraseblocks = { {64 * 1024, 8} },
8923 .block_erase = spi_block_erase_d8,
8924 }, {
8925 .eraseblocks = { {512 * 1024, 1} },
8926 .block_erase = spi_block_erase_c7,
8927 }
8928 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008929 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008930 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008931 .write = spi_chip_write_256,
8932 .read = spi_chip_read,
8933 },
8934
8935 {
8936 .vendor = "Micron/Numonyx/ST",
8937 .name = "M25P80",
8938 .bustype = BUS_SPI,
8939 .manufacture_id = ST_ID,
8940 .model_id = ST_M25P80,
8941 .total_size = 1024,
8942 .page_size = 256,
8943 .feature_bits = FEATURE_WRSR_WREN,
8944 .tested = TEST_OK_PREW,
8945 .probe = probe_spi_rdid,
8946 .probe_timing = TIMING_ZERO,
8947 .block_erasers =
8948 {
8949 {
8950 .eraseblocks = { {64 * 1024, 16} },
8951 .block_erase = spi_block_erase_d8,
8952 }, {
8953 .eraseblocks = { {1024 * 1024, 1} },
8954 .block_erase = spi_block_erase_c7,
8955 }
8956 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008957 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008958 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008959 .write = spi_chip_write_256,
8960 .read = spi_chip_read,
8961 .voltage = {2700, 3600},
8962 },
8963
8964 {
8965 .vendor = "Micron/Numonyx/ST",
8966 .name = "M25P16",
8967 .bustype = BUS_SPI,
8968 .manufacture_id = ST_ID,
8969 .model_id = ST_M25P16,
8970 .total_size = 2048,
8971 .page_size = 256,
8972 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008973 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008974 .probe = probe_spi_rdid,
8975 .probe_timing = TIMING_ZERO,
8976 .block_erasers =
8977 {
8978 {
8979 .eraseblocks = { {64 * 1024, 32} },
8980 .block_erase = spi_block_erase_d8,
8981 }, {
8982 .eraseblocks = { {2 * 1024 * 1024, 1} },
8983 .block_erase = spi_block_erase_c7,
8984 }
8985 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008986 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008987 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008988 .write = spi_chip_write_256,
8989 .read = spi_chip_read,
8990 .voltage = {2700, 3600},
8991 },
8992
8993 {
8994 .vendor = "Micron/Numonyx/ST",
8995 .name = "M25P32",
8996 .bustype = BUS_SPI,
8997 .manufacture_id = ST_ID,
8998 .model_id = ST_M25P32,
8999 .total_size = 4096,
9000 .page_size = 256,
9001 .feature_bits = FEATURE_WRSR_WREN,
9002 .tested = TEST_OK_PREW,
9003 .probe = probe_spi_rdid,
9004 .probe_timing = TIMING_ZERO,
9005 .block_erasers =
9006 {
9007 {
9008 .eraseblocks = { {64 * 1024, 64} },
9009 .block_erase = spi_block_erase_d8,
9010 }, {
9011 .eraseblocks = { {4 * 1024 * 1024, 1} },
9012 .block_erase = spi_block_erase_c7,
9013 }
9014 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009015 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009016 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009017 .write = spi_chip_write_256,
9018 .read = spi_chip_read,
9019 .voltage = {2700, 3600},
9020 },
9021
9022 {
9023 .vendor = "Micron/Numonyx/ST",
9024 .name = "M25P64",
9025 .bustype = BUS_SPI,
9026 .manufacture_id = ST_ID,
9027 .model_id = ST_M25P64,
9028 .total_size = 8192,
9029 .page_size = 256,
9030 .feature_bits = FEATURE_WRSR_WREN,
9031 .tested = TEST_OK_PREW,
9032 .probe = probe_spi_rdid,
9033 .probe_timing = TIMING_ZERO,
9034 .block_erasers =
9035 {
9036 {
9037 .eraseblocks = { {64 * 1024, 128} },
9038 .block_erase = spi_block_erase_d8,
9039 }, {
9040 .eraseblocks = { {8 * 1024 * 1024, 1} },
9041 .block_erase = spi_block_erase_c7,
9042 }
9043 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009044 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009045 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009046 .write = spi_chip_write_256,
9047 .read = spi_chip_read,
9048 .voltage = {2700, 3600},
9049 },
9050
9051 {
9052 .vendor = "Micron/Numonyx/ST",
9053 .name = "M25P128",
9054 .bustype = BUS_SPI,
9055 .manufacture_id = ST_ID,
9056 .model_id = ST_M25P128,
9057 .total_size = 16384,
9058 .page_size = 256,
9059 .feature_bits = FEATURE_WRSR_WREN,
9060 .tested = TEST_OK_PREW,
9061 .probe = probe_spi_rdid,
9062 .probe_timing = TIMING_ZERO,
9063 .block_erasers =
9064 {
9065 {
9066 .eraseblocks = { {256 * 1024, 64} },
9067 .block_erase = spi_block_erase_d8,
9068 }, {
9069 .eraseblocks = { {16 * 1024 * 1024, 1} },
9070 .block_erase = spi_block_erase_c7,
9071 }
9072 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009073 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009074 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009075 .write = spi_chip_write_256,
9076 .read = spi_chip_read,
9077 .voltage = {2700, 3600},
9078 },
9079
9080 {
9081 .vendor = "Micron/Numonyx/ST",
9082 .name = "M25PE10",
9083 .bustype = BUS_SPI,
9084 .manufacture_id = ST_ID,
9085 .model_id = ST_M25PE10,
9086 .total_size = 128,
9087 .page_size = 256,
9088 .feature_bits = FEATURE_WRSR_WREN,
9089 .tested = TEST_UNTESTED,
9090 .probe = probe_spi_rdid,
9091 .probe_timing = TIMING_ZERO,
9092 .block_erasers =
9093 {
9094 {
9095 .eraseblocks = { {4 * 1024, 32} },
9096 .block_erase = spi_block_erase_20,
9097 }, {
9098 .eraseblocks = { {64 * 1024, 2} },
9099 .block_erase = spi_block_erase_d8,
9100 }, {
9101 .eraseblocks = { {128 * 1024, 1} },
9102 .block_erase = spi_block_erase_c7,
9103 }
9104 },
9105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9106 .unlock = spi_disable_blockprotect,
9107 .write = spi_chip_write_256,
9108 .read = spi_chip_read,
9109 .voltage = {2700, 3600},
9110 },
9111
9112 {
9113 .vendor = "Micron/Numonyx/ST",
9114 .name = "M25PE20",
9115 .bustype = BUS_SPI,
9116 .manufacture_id = ST_ID,
9117 .model_id = ST_M25PE20,
9118 .total_size = 256,
9119 .page_size = 256,
9120 .feature_bits = FEATURE_WRSR_WREN,
9121 .tested = TEST_UNTESTED,
9122 .probe = probe_spi_rdid,
9123 .probe_timing = TIMING_ZERO,
9124 .block_erasers =
9125 {
9126 {
9127 .eraseblocks = { {4 * 1024, 64} },
9128 .block_erase = spi_block_erase_20,
9129 }, {
9130 .eraseblocks = { {64 * 1024, 4} },
9131 .block_erase = spi_block_erase_d8,
9132 }, {
9133 .eraseblocks = { {256 * 1024, 1} },
9134 .block_erase = spi_block_erase_c7,
9135 }
9136 },
9137 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9138 .unlock = spi_disable_blockprotect,
9139 .write = spi_chip_write_256,
9140 .read = spi_chip_read,
9141 .voltage = {2700, 3600},
9142 },
9143
9144 {
9145 .vendor = "Micron/Numonyx/ST",
9146 .name = "M25PE40",
9147 .bustype = BUS_SPI,
9148 .manufacture_id = ST_ID,
9149 .model_id = ST_M25PE40,
9150 .total_size = 512,
9151 .page_size = 256,
9152 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009153 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009154 .probe = probe_spi_rdid,
9155 .probe_timing = TIMING_ZERO,
9156 .block_erasers =
9157 {
9158 {
9159 .eraseblocks = { {4 * 1024, 128} },
9160 .block_erase = spi_block_erase_20,
9161 }, {
9162 .eraseblocks = { {64 * 1024, 8} },
9163 .block_erase = spi_block_erase_d8,
9164 }, {
9165 .eraseblocks = { {512 * 1024, 1} },
9166 .block_erase = spi_block_erase_c7,
9167 }
9168 },
9169 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9170 .unlock = spi_disable_blockprotect,
9171 .write = spi_chip_write_256,
9172 .read = spi_chip_read,
9173 .voltage = {2700, 3600},
9174 },
9175
9176 {
9177 .vendor = "Micron/Numonyx/ST",
9178 .name = "M25PE80",
9179 .bustype = BUS_SPI,
9180 .manufacture_id = ST_ID,
9181 .model_id = ST_M25PE80,
9182 .total_size = 1024,
9183 .page_size = 256,
9184 .feature_bits = FEATURE_WRSR_WREN,
9185 .tested = TEST_OK_PREW,
9186 .probe = probe_spi_rdid,
9187 .probe_timing = TIMING_ZERO,
9188 .block_erasers =
9189 {
9190 {
9191 .eraseblocks = { {4 * 1024, 256} },
9192 .block_erase = spi_block_erase_20,
9193 }, {
9194 .eraseblocks = { {64 * 1024, 16} },
9195 .block_erase = spi_block_erase_d8,
9196 }, {
9197 .eraseblocks = { {1024 * 1024, 1} },
9198 .block_erase = spi_block_erase_c7,
9199 }
9200 },
9201 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9202 .unlock = spi_disable_blockprotect,
9203 .write = spi_chip_write_256,
9204 .read = spi_chip_read,
9205 .voltage = {2700, 3600},
9206 },
9207
9208 {
9209 .vendor = "Micron/Numonyx/ST",
9210 .name = "M25PE16",
9211 .bustype = BUS_SPI,
9212 .manufacture_id = ST_ID,
9213 .model_id = ST_M25PE16,
9214 .total_size = 2048,
9215 .page_size = 256,
9216 .feature_bits = FEATURE_WRSR_WREN,
9217 .tested = TEST_UNTESTED,
9218 .probe = probe_spi_rdid,
9219 .probe_timing = TIMING_ZERO,
9220 .block_erasers =
9221 {
9222 {
9223 .eraseblocks = { {4 * 1024, 512} },
9224 .block_erase = spi_block_erase_20,
9225 }, {
9226 .eraseblocks = { {64 * 1024, 32} },
9227 .block_erase = spi_block_erase_d8,
9228 }, {
9229 .eraseblocks = { {2 * 1024 * 1024, 1} },
9230 .block_erase = spi_block_erase_c7,
9231 }
9232 },
9233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9234 .unlock = spi_disable_blockprotect,
9235 .write = spi_chip_write_256,
9236 .read = spi_chip_read,
9237 .voltage = {2700, 3600},
9238 },
9239
9240 {
9241 .vendor = "Micron/Numonyx/ST",
9242 .name = "M25PX80",
9243 .bustype = BUS_SPI,
9244 .manufacture_id = ST_ID,
9245 .model_id = ST_M25PX80,
9246 .total_size = 1024,
9247 .page_size = 256,
9248 /* OTP: 64B total; read 0x4B, write 0x42 */
9249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9250 .tested = TEST_OK_PREW,
9251 .probe = probe_spi_rdid,
9252 .probe_timing = TIMING_ZERO,
9253 .block_erasers = {
9254 {
9255 .eraseblocks = { { 4 * 1024, 256 } },
9256 .block_erase = spi_block_erase_20,
9257 }, {
9258 .eraseblocks = { {64 * 1024, 16} },
9259 .block_erase = spi_block_erase_d8,
9260 }, {
9261 .eraseblocks = { {1024 * 1024, 1} },
9262 .block_erase = spi_block_erase_c7,
9263 }
9264 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009265 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009266 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9267 .write = spi_chip_write_256,
9268 .read = spi_chip_read,
9269 .voltage = {2700, 3600},
9270 },
9271
9272 {
9273 .vendor = "Micron/Numonyx/ST",
9274 .name = "M25PX16",
9275 .bustype = BUS_SPI,
9276 .manufacture_id = ST_ID,
9277 .model_id = ST_M25PX16,
9278 .total_size = 2048,
9279 .page_size = 256,
9280 /* OTP: 64B total; read 0x4B; write 0x42 */
9281 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9282 .tested = TEST_OK_PREW,
9283 .probe = probe_spi_rdid,
9284 .probe_timing = TIMING_ZERO,
9285 .block_erasers =
9286 {
9287 {
9288 .eraseblocks = { { 4 * 1024, 512 } },
9289 .block_erase = spi_block_erase_20,
9290 }, {
9291 .eraseblocks = { {64 * 1024, 32} },
9292 .block_erase = spi_block_erase_d8,
9293 }, {
9294 .eraseblocks = { {2 * 1024 * 1024, 1} },
9295 .block_erase = spi_block_erase_c7,
9296 }
9297 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009298 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009299 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9300 .write = spi_chip_write_256,
9301 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009302 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009303 },
9304
9305 {
9306 .vendor = "Micron/Numonyx/ST",
9307 .name = "M25PX32",
9308 .bustype = BUS_SPI,
9309 .manufacture_id = ST_ID,
9310 .model_id = ST_M25PX32,
9311 .total_size = 4096,
9312 .page_size = 256,
9313 /* OTP: 64B total; read 0x4B; write 0x42 */
9314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9315 .tested = TEST_OK_PRE,
9316 .probe = probe_spi_rdid,
9317 .probe_timing = TIMING_ZERO,
9318 .block_erasers =
9319 {
9320 {
9321 .eraseblocks = { { 4 * 1024, 1024 } },
9322 .block_erase = spi_block_erase_20,
9323 }, {
9324 .eraseblocks = { {64 * 1024, 64} },
9325 .block_erase = spi_block_erase_d8,
9326 }, {
9327 .eraseblocks = { {4 * 1024 * 1024, 1} },
9328 .block_erase = spi_block_erase_c7,
9329 }
9330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009331 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009332 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9333 .write = spi_chip_write_256,
9334 .read = spi_chip_read,
9335 .voltage = {2700, 3600},
9336 },
9337
9338 {
9339 .vendor = "Micron/Numonyx/ST",
9340 .name = "M25PX64",
9341 .bustype = BUS_SPI,
9342 .manufacture_id = ST_ID,
9343 .model_id = ST_M25PX64,
9344 .total_size = 8192,
9345 .page_size = 256,
9346 /* OTP: 64B total; read 0x4B; write 0x42 */
9347 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009348 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009349 .probe = probe_spi_rdid,
9350 .probe_timing = TIMING_ZERO,
9351 .block_erasers =
9352 {
9353 {
9354 .eraseblocks = { { 4 * 1024, 2048 } },
9355 .block_erase = spi_block_erase_20,
9356 }, {
9357 .eraseblocks = { {64 * 1024, 128} },
9358 .block_erase = spi_block_erase_d8,
9359 }, {
9360 .eraseblocks = { {8 * 1024 * 1024, 1} },
9361 .block_erase = spi_block_erase_c7,
9362 }
9363 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009364 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009365 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9366 .write = spi_chip_write_256,
9367 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009368 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009369 },
9370
9371 {
9372 .vendor = "Micron/Numonyx/ST",
9373 .name = "M45PE10",
9374 .bustype = BUS_SPI,
9375 .manufacture_id = ST_ID,
9376 .model_id = ST_M45PE10,
9377 .total_size = 128,
9378 .page_size = 256,
9379 .tested = TEST_UNTESTED,
9380 .probe = probe_spi_rdid,
9381 .probe_timing = TIMING_ZERO,
9382 .block_erasers = {
9383 {
9384 .eraseblocks = { {256, 512} },
9385 .block_erase = spi_block_erase_db,
9386 }, {
9387 .eraseblocks = { {64 * 1024, 2} },
9388 .block_erase = spi_block_erase_d8,
9389 }
9390 },
9391 .printlock = spi_prettyprint_status_register_default_welwip,
9392 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9393 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9394 .read = spi_chip_read, /* Fast read (0x0B) supported */
9395 .voltage = {2700, 3600},
9396 },
9397
9398 {
9399 .vendor = "Micron/Numonyx/ST",
9400 .name = "M45PE20",
9401 .bustype = BUS_SPI,
9402 .manufacture_id = ST_ID,
9403 .model_id = ST_M45PE20,
9404 .total_size = 256,
9405 .page_size = 256,
9406 .tested = TEST_UNTESTED,
9407 .probe = probe_spi_rdid,
9408 .probe_timing = TIMING_ZERO,
9409 .block_erasers = {
9410 {
9411 .eraseblocks = { {256, 1024} },
9412 .block_erase = spi_block_erase_db,
9413 }, {
9414 .eraseblocks = { {64 * 1024, 4} },
9415 .block_erase = spi_block_erase_d8,
9416 }
9417 },
9418 .printlock = spi_prettyprint_status_register_default_welwip,
9419 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9420 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9421 .read = spi_chip_read, /* Fast read (0x0B) supported */
9422 .voltage = {2700, 3600},
9423 },
9424
9425 {
9426 .vendor = "Micron/Numonyx/ST",
9427 .name = "M45PE40",
9428 .bustype = BUS_SPI,
9429 .manufacture_id = ST_ID,
9430 .model_id = ST_M45PE40,
9431 .total_size = 512,
9432 .page_size = 256,
9433 .tested = TEST_UNTESTED,
9434 .probe = probe_spi_rdid,
9435 .probe_timing = TIMING_ZERO,
9436 .block_erasers = {
9437 {
9438 .eraseblocks = { {256, 2048} },
9439 .block_erase = spi_block_erase_db,
9440 }, {
9441 .eraseblocks = { {64 * 1024, 8} },
9442 .block_erase = spi_block_erase_d8,
9443 }
9444 },
9445 .printlock = spi_prettyprint_status_register_default_welwip,
9446 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009447 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009448 .read = spi_chip_read, /* Fast read (0x0B) supported */
9449 .voltage = {2700, 3600},
9450 },
9451
9452 {
9453 .vendor = "Micron/Numonyx/ST",
9454 .name = "M45PE80",
9455 .bustype = BUS_SPI,
9456 .manufacture_id = ST_ID,
9457 .model_id = ST_M45PE80,
9458 .total_size = 1024,
9459 .page_size = 256,
9460 .tested = TEST_UNTESTED,
9461 .probe = probe_spi_rdid,
9462 .probe_timing = TIMING_ZERO,
9463 .block_erasers = {
9464 {
9465 .eraseblocks = { {256, 4096} },
9466 .block_erase = spi_block_erase_db,
9467 }, {
9468 .eraseblocks = { {64 * 1024, 16} },
9469 .block_erase = spi_block_erase_d8,
9470 }
9471 },
9472 .printlock = spi_prettyprint_status_register_default_welwip,
9473 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9474 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9475 .read = spi_chip_read, /* Fast read (0x0B) supported */
9476 .voltage = {2700, 3600},
9477 },
9478
9479 {
9480 .vendor = "Micron/Numonyx/ST",
9481 .name = "M45PE16",
9482 .bustype = BUS_SPI,
9483 .manufacture_id = ST_ID,
9484 .model_id = ST_M45PE16,
9485 .total_size = 2048,
9486 .page_size = 256,
9487 .tested = TEST_UNTESTED,
9488 .probe = probe_spi_rdid,
9489 .probe_timing = TIMING_ZERO,
9490 .block_erasers = {
9491 {
9492 .eraseblocks = { {256, 8192} },
9493 .block_erase = spi_block_erase_db,
9494 }, {
9495 .eraseblocks = { {64 * 1024, 32} },
9496 .block_erase = spi_block_erase_d8,
9497 }
9498 },
9499 .printlock = spi_prettyprint_status_register_default_welwip,
9500 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9501 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9502 .read = spi_chip_read, /* Fast read (0x0B) supported */
9503 .voltage = {2700, 3600},
9504 },
9505
9506 {
9507 .vendor = "Micron/Numonyx/ST",
9508 .name = "N25Q016",
9509 .bustype = BUS_SPI,
9510 .manufacture_id = ST_ID,
9511 .model_id = ST_N25Q016__1E,
9512 .total_size = 2048,
9513 .page_size = 256,
9514 /* supports SFDP */
9515 /* OTP: 64B total; read 0x4B, write 0x42 */
9516 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9517 .tested = TEST_UNTESTED,
9518 .probe = probe_spi_rdid,
9519 .probe_timing = TIMING_ZERO,
9520 .block_erasers =
9521 {
9522 {
9523 .eraseblocks = { {4 * 1024, 512} },
9524 .block_erase = spi_block_erase_20,
9525 }, {
9526 .eraseblocks = { {32 * 1024, 64} },
9527 .block_erase = spi_block_erase_52,
9528 }, {
9529 .eraseblocks = { {64 * 1024, 32} },
9530 .block_erase = spi_block_erase_d8,
9531 }, {
9532 .eraseblocks = { {2 * 1024 * 1024, 1} },
9533 .block_erase = spi_block_erase_c7,
9534 }
9535 },
9536 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9537 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9538 .write = spi_chip_write_256, /* Multi I/O supported */
9539 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9540 .voltage = {1700, 2000},
9541 },
9542
9543 {
9544 .vendor = "Micron/Numonyx/ST",
9545 .name = "N25Q032..1E",
9546 .bustype = BUS_SPI,
9547 .manufacture_id = ST_ID,
9548 .model_id = ST_N25Q032__1E,
9549 .total_size = 4096,
9550 .page_size = 256,
9551 /* supports SFDP */
9552 /* OTP: 64B total; read 0x4B, write 0x42 */
9553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9554 .tested = TEST_UNTESTED,
9555 .probe = probe_spi_rdid,
9556 .probe_timing = TIMING_ZERO,
9557 .block_erasers =
9558 {
9559 {
9560 .eraseblocks = { {4 * 1024, 1024} },
9561 .block_erase = spi_block_erase_20,
9562 }, {
9563 .eraseblocks = { {64 * 1024, 64} },
9564 .block_erase = spi_block_erase_d8,
9565 }, {
9566 .eraseblocks = { {4 * 1024 * 1024, 1} },
9567 .block_erase = spi_block_erase_c7,
9568 }
9569 },
9570 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9571 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9572 .write = spi_chip_write_256, /* Multi I/O supported */
9573 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9574 .voltage = {1700, 2000},
9575 },
9576
9577 {
9578 .vendor = "Micron/Numonyx/ST",
9579 .name = "N25Q032..3E",
9580 .bustype = BUS_SPI,
9581 .manufacture_id = ST_ID,
9582 .model_id = ST_N25Q032__3E,
9583 .total_size = 4096,
9584 .page_size = 256,
9585 /* supports SFDP */
9586 /* OTP: 64B total; read 0x4B, write 0x42 */
9587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9588 .tested = TEST_OK_PREW,
9589 .probe = probe_spi_rdid,
9590 .probe_timing = TIMING_ZERO,
9591 .block_erasers =
9592 {
9593 {
9594 .eraseblocks = { {4 * 1024, 1024} },
9595 .block_erase = spi_block_erase_20,
9596 }, {
9597 .eraseblocks = { {64 * 1024, 64} },
9598 .block_erase = spi_block_erase_d8,
9599 }, {
9600 .eraseblocks = { {4 * 1024 * 1024, 1} },
9601 .block_erase = spi_block_erase_c7,
9602 }
9603 },
9604 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9605 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9606 .write = spi_chip_write_256, /* Multi I/O supported */
9607 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9608 .voltage = {2700, 3600},
9609 },
9610
9611 {
9612 .vendor = "Micron/Numonyx/ST",
9613 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9614 .bustype = BUS_SPI,
9615 .manufacture_id = ST_ID,
9616 .model_id = ST_N25Q064__1E,
9617 .total_size = 8192,
9618 .page_size = 256,
9619 /* supports SFDP */
9620 /* OTP: 64B total; read 0x4B, write 0x42 */
9621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009622 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009623 .probe = probe_spi_rdid,
9624 .probe_timing = TIMING_ZERO,
9625 .block_erasers =
9626 {
9627 {
9628 .eraseblocks = { {4 * 1024, 2048 } },
9629 .block_erase = spi_block_erase_20,
9630 }, {
9631 .eraseblocks = { {64 * 1024, 128} },
9632 .block_erase = spi_block_erase_d8,
9633 }, {
9634 .eraseblocks = { {8 * 1024 * 1024, 1} },
9635 .block_erase = spi_block_erase_c7,
9636 }
9637 },
9638 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9639 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9640 .write = spi_chip_write_256, /* Multi I/O supported */
9641 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9642 .voltage = {1700, 2000},
9643 },
9644
9645 {
9646 .vendor = "Micron/Numonyx/ST",
9647 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9648 .bustype = BUS_SPI,
9649 .manufacture_id = ST_ID,
9650 .model_id = ST_N25Q064__3E,
9651 .total_size = 8192,
9652 .page_size = 256,
9653 /* supports SFDP */
9654 /* OTP: 64B total; read 0x4B, write 0x42 */
9655 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9656 .tested = TEST_OK_PREW,
9657 .probe = probe_spi_rdid,
9658 .probe_timing = TIMING_ZERO,
9659 .block_erasers =
9660 {
9661 {
9662 .eraseblocks = { {4 * 1024, 2048 } },
9663 .block_erase = spi_block_erase_20,
9664 }, {
9665 .eraseblocks = { {64 * 1024, 128} },
9666 .block_erase = spi_block_erase_d8,
9667 }, {
9668 .eraseblocks = { {8 * 1024 * 1024, 1} },
9669 .block_erase = spi_block_erase_c7,
9670 }
9671 },
9672 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9673 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9674 .write = spi_chip_write_256, /* Multi I/O supported */
9675 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9676 .voltage = {2700, 3600},
9677 },
9678
9679 {
9680 .vendor = "Micron/Numonyx/ST",
9681 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9682 .bustype = BUS_SPI,
9683 .manufacture_id = ST_ID,
9684 .model_id = ST_N25Q128__1E,
9685 .total_size = 16384,
9686 .page_size = 256,
9687 /* supports SFDP */
9688 /* OTP: 64B total; read 0x4B, write 0x42 */
9689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009690 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009691 .probe = probe_spi_rdid,
9692 .probe_timing = TIMING_ZERO,
9693 .block_erasers = {
9694 {
9695 .eraseblocks = { {4 * 1024, 4096 } },
9696 .block_erase = spi_block_erase_20,
9697 }, {
9698 .eraseblocks = { {64 * 1024, 256} },
9699 .block_erase = spi_block_erase_d8,
9700 }, {
9701 .eraseblocks = { {16384 * 1024, 1} },
9702 .block_erase = spi_block_erase_c7,
9703 }
9704 },
9705 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9706 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9707 .write = spi_chip_write_256, /* Multi I/O supported */
9708 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9709 .voltage = {1700, 2000},
9710 },
9711
9712 {
9713 .vendor = "Micron/Numonyx/ST",
9714 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9715 .bustype = BUS_SPI,
9716 .manufacture_id = ST_ID,
9717 .model_id = ST_N25Q128__3E,
9718 .total_size = 16384,
9719 .page_size = 256,
9720 /* supports SFDP */
9721 /* OTP: 64B total; read 0x4B, write 0x42 */
9722 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9723 .tested = TEST_OK_PREW,
9724 .probe = probe_spi_rdid,
9725 .probe_timing = TIMING_ZERO,
9726 .block_erasers = {
9727 {
9728 .eraseblocks = { {4 * 1024, 4096 } },
9729 .block_erase = spi_block_erase_20,
9730 }, {
9731 .eraseblocks = { {64 * 1024, 256} },
9732 .block_erase = spi_block_erase_d8,
9733 }, {
9734 .eraseblocks = { {16384 * 1024, 1} },
9735 .block_erase = spi_block_erase_c7,
9736 }
9737 },
9738 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9739 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9740 .write = spi_chip_write_256, /* Multi I/O supported */
9741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9742 .voltage = {2700, 3600},
9743 },
9744
9745 {
Ed Swierk199ab392017-07-03 13:33:44 -07009746 .vendor = "Micron",
9747 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
9748 .bustype = BUS_SPI,
9749 .manufacture_id = ST_ID,
9750 .model_id = ST_N25Q256__3E,
9751 .total_size = 32768,
9752 .page_size = 256,
9753 /* supports SFDP */
9754 /* OTP: 64B total; read 0x4B, write 0x42 */
9755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT,
9756 .four_bytes_addr_funcs =
9757 {
9758 .read_nbyte = spi_nbyte_read_4ba_direct,
9759 .program_byte = spi_byte_program_4ba_direct,
9760 .program_nbyte = spi_nbyte_program_4ba_direct
9761 },
9762 .tested = TEST_OK_PREW,
9763 .probe = probe_spi_rdid,
9764 .probe_timing = TIMING_ZERO,
9765 .block_erasers = {
9766 {
9767 .eraseblocks = { {4 * 1024, 8192} },
9768 .block_erase = spi_block_erase_21_4ba_direct,
9769 }, {
9770 .eraseblocks = { {64 * 1024, 512} },
9771 .block_erase = spi_block_erase_dc_4ba_direct,
9772 }, {
9773 .eraseblocks = { {32768 * 1024, 1} },
9774 .block_erase = spi_block_erase_c7,
9775 }
9776 },
9777 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9778 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9779 .write = spi_chip_write_256, /* Multi I/O supported */
9780 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9781 .voltage = {2700, 3600},
9782 },
9783
9784 {
9785 .vendor = "Micron",
9786 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
9787 .bustype = BUS_SPI,
9788 .manufacture_id = ST_ID,
9789 .model_id = ST_N25Q512__3E,
9790 .total_size = 65536,
9791 .page_size = 256,
9792 /* supports SFDP */
9793 /* OTP: 64B total; read 0x4B, write 0x42 */
9794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT,
9795 .four_bytes_addr_funcs =
9796 {
9797 .read_nbyte = spi_nbyte_read_4ba_direct,
9798 .program_byte = spi_byte_program_4ba_direct,
9799 .program_nbyte = spi_nbyte_program_4ba_direct
9800 },
9801 .tested = TEST_OK_PREW,
9802 .probe = probe_spi_rdid,
9803 .probe_timing = TIMING_ZERO,
9804 .block_erasers = {
9805 {
9806 .eraseblocks = { {4 * 1024, 16384} },
9807 .block_erase = spi_block_erase_21_4ba_direct,
9808 }, {
9809 .eraseblocks = { {64 * 1024, 1024} },
9810 .block_erase = spi_block_erase_dc_4ba_direct,
9811 }, {
9812 .eraseblocks = { {65536 * 1024, 1} },
9813 .block_erase = spi_block_erase_c7,
9814 }
9815 },
9816 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9817 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9818 .write = spi_chip_write_256, /* Multi I/O supported */
9819 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9820 .voltage = {2700, 3600},
9821 },
9822
9823 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009824 .vendor = "MoselVitelic",
9825 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009826 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009827 .manufacture_id = SYNCMOS_MVC_ID,
9828 .model_id = MVC_V29C51000B,
9829 .total_size = 64,
9830 .page_size = 512,
9831 .feature_bits = FEATURE_EITHER_RESET,
9832 .tested = TEST_UNTESTED,
9833 .probe = probe_jedec,
9834 .probe_timing = TIMING_ZERO,
9835 .block_erasers =
9836 {
9837 {
9838 .eraseblocks = { {512, 128} },
9839 .block_erase = erase_sector_jedec,
9840 }, {
9841 .eraseblocks = { {64 * 1024, 1} },
9842 .block_erase = erase_chip_block_jedec,
9843 },
9844 },
9845 .write = write_jedec_1,
9846 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009847 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009848 },
9849
9850 {
9851 .vendor = "MoselVitelic",
9852 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009853 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009854 .manufacture_id = SYNCMOS_MVC_ID,
9855 .model_id = MVC_V29C51000T,
9856 .total_size = 64,
9857 .page_size = 512,
9858 .feature_bits = FEATURE_EITHER_RESET,
9859 .tested = TEST_UNTESTED,
9860 .probe = probe_jedec,
9861 .probe_timing = TIMING_ZERO,
9862 .block_erasers =
9863 {
9864 {
9865 .eraseblocks = { {512, 128} },
9866 .block_erase = erase_sector_jedec,
9867 }, {
9868 .eraseblocks = { {64 * 1024, 1} },
9869 .block_erase = erase_chip_block_jedec,
9870 },
9871 },
9872 .write = write_jedec_1,
9873 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009874 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009875 },
9876
9877 {
9878 .vendor = "MoselVitelic",
9879 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009880 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009881 .manufacture_id = SYNCMOS_MVC_ID,
9882 .model_id = MVC_V29C51400B,
9883 .total_size = 512,
9884 .page_size = 1024,
9885 .feature_bits = FEATURE_EITHER_RESET,
9886 .tested = TEST_UNTESTED,
9887 .probe = probe_jedec,
9888 .probe_timing = TIMING_ZERO,
9889 .block_erasers =
9890 {
9891 {
9892 .eraseblocks = { {1024, 512} },
9893 .block_erase = erase_sector_jedec,
9894 }, {
9895 .eraseblocks = { {512 * 1024, 1} },
9896 .block_erase = erase_chip_block_jedec,
9897 },
9898 },
9899 .write = write_jedec_1,
9900 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009901 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009902 },
9903
9904 {
9905 .vendor = "MoselVitelic",
9906 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009907 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009908 .manufacture_id = SYNCMOS_MVC_ID,
9909 .model_id = MVC_V29C51400T,
9910 .total_size = 512,
9911 .page_size = 1024,
9912 .feature_bits = FEATURE_EITHER_RESET,
9913 .tested = TEST_UNTESTED,
9914 .probe = probe_jedec,
9915 .probe_timing = TIMING_ZERO,
9916 .block_erasers =
9917 {
9918 {
9919 .eraseblocks = { {1024, 512} },
9920 .block_erase = erase_sector_jedec,
9921 }, {
9922 .eraseblocks = { {512 * 1024, 1} },
9923 .block_erase = erase_chip_block_jedec,
9924 },
9925 },
9926 .write = write_jedec_1,
9927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009928 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009929 },
9930
9931 {
9932 .vendor = "MoselVitelic",
9933 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009934 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009935 .manufacture_id = SYNCMOS_MVC_ID,
9936 .model_id = MVC_V29LC51000,
9937 .total_size = 64,
9938 .page_size = 512,
9939 .feature_bits = FEATURE_EITHER_RESET,
9940 .tested = TEST_UNTESTED,
9941 .probe = probe_jedec,
9942 .probe_timing = TIMING_ZERO,
9943 .block_erasers =
9944 {
9945 {
9946 .eraseblocks = { {512, 128} },
9947 .block_erase = erase_sector_jedec,
9948 }, {
9949 .eraseblocks = { {64 * 1024, 1} },
9950 .block_erase = erase_chip_block_jedec,
9951 },
9952 },
9953 .write = write_jedec_1,
9954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009955 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009956 },
9957
9958 {
9959 .vendor = "MoselVitelic",
9960 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009961 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009962 .manufacture_id = SYNCMOS_MVC_ID,
9963 .model_id = MVC_V29LC51001,
9964 .total_size = 128,
9965 .page_size = 512,
9966 .feature_bits = FEATURE_EITHER_RESET,
9967 .tested = TEST_UNTESTED,
9968 .probe = probe_jedec,
9969 .probe_timing = TIMING_ZERO,
9970 .block_erasers =
9971 {
9972 {
9973 .eraseblocks = { {512, 256} },
9974 .block_erase = erase_sector_jedec,
9975 }, {
9976 .eraseblocks = { {128 * 1024, 1} },
9977 .block_erase = erase_chip_block_jedec,
9978 },
9979 },
9980 .write = write_jedec_1,
9981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009982 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009983 },
9984
9985 {
9986 .vendor = "MoselVitelic",
9987 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009988 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009989 .manufacture_id = SYNCMOS_MVC_ID,
9990 .model_id = MVC_V29LC51002,
9991 .total_size = 256,
9992 .page_size = 512,
9993 .feature_bits = FEATURE_EITHER_RESET,
9994 .tested = TEST_UNTESTED,
9995 .probe = probe_jedec,
9996 .probe_timing = TIMING_ZERO,
9997 .block_erasers =
9998 {
9999 {
10000 .eraseblocks = { {512, 512} },
10001 .block_erase = erase_sector_jedec,
10002 }, {
10003 .eraseblocks = { {256 * 1024, 1} },
10004 .block_erase = erase_chip_block_jedec,
10005 },
10006 },
10007 .write = write_jedec_1,
10008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010009 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010010 },
10011
10012 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010013 .vendor = "Nantronics",
10014 .name = "N25S10",
10015 .bustype = BUS_SPI,
10016 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10017 .model_id = NANTRONICS_N25S10,
10018 .total_size = 128,
10019 .page_size = 256,
10020 .feature_bits = FEATURE_WRSR_WREN,
10021 .tested = TEST_UNTESTED,
10022 .probe = probe_spi_rdid,
10023 .probe_timing = TIMING_ZERO,
10024 .block_erasers =
10025 {
10026 {
10027 .eraseblocks = { {4 * 1024, 32} },
10028 .block_erase = spi_block_erase_20,
10029 }, {
10030 .eraseblocks = { {4 * 1024, 32} },
10031 .block_erase = spi_block_erase_d7,
10032 }, {
10033 .eraseblocks = { {32 * 1024, 4} },
10034 .block_erase = spi_block_erase_52,
10035 }, {
10036 .eraseblocks = { {64 * 1024, 2} },
10037 .block_erase = spi_block_erase_d8,
10038 }, {
10039 .eraseblocks = { {128 * 1024, 1} },
10040 .block_erase = spi_block_erase_60,
10041 }, {
10042 .eraseblocks = { {128 * 1024, 1} },
10043 .block_erase = spi_block_erase_c7,
10044 }
10045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010046 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010047 .unlock = spi_disable_blockprotect_bp3_srwd,
10048 .write = spi_chip_write_256,
10049 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10050 .voltage = {2700, 3600},
10051 },
10052
10053 {
10054 .vendor = "Nantronics",
10055 .name = "N25S20",
10056 .bustype = BUS_SPI,
10057 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10058 .model_id = NANTRONICS_N25S20,
10059 .total_size = 256,
10060 .page_size = 256,
10061 .feature_bits = FEATURE_WRSR_WREN,
10062 .tested = TEST_UNTESTED,
10063 .probe = probe_spi_rdid,
10064 .probe_timing = TIMING_ZERO,
10065 .block_erasers =
10066 {
10067 {
10068 .eraseblocks = { {4 * 1024, 64} },
10069 .block_erase = spi_block_erase_20,
10070 }, {
10071 .eraseblocks = { {4 * 1024, 64} },
10072 .block_erase = spi_block_erase_d7,
10073 }, {
10074 .eraseblocks = { {32 * 1024, 8} },
10075 .block_erase = spi_block_erase_52,
10076 }, {
10077 .eraseblocks = { {64 * 1024, 4} },
10078 .block_erase = spi_block_erase_d8,
10079 }, {
10080 .eraseblocks = { {256 * 1024, 1} },
10081 .block_erase = spi_block_erase_60,
10082 }, {
10083 .eraseblocks = { {256 * 1024, 1} },
10084 .block_erase = spi_block_erase_c7,
10085 }
10086 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010087 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010088 .unlock = spi_disable_blockprotect_bp3_srwd,
10089 .write = spi_chip_write_256,
10090 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10091 .voltage = {2700, 3600},
10092 },
10093
10094 {
10095 .vendor = "Nantronics",
10096 .name = "N25S40",
10097 .bustype = BUS_SPI,
10098 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10099 .model_id = NANTRONICS_N25S40,
10100 .total_size = 512,
10101 .page_size = 256,
10102 .feature_bits = FEATURE_WRSR_WREN,
10103 .tested = TEST_UNTESTED,
10104 .probe = probe_spi_rdid,
10105 .probe_timing = TIMING_ZERO,
10106 .block_erasers =
10107 {
10108 {
10109 .eraseblocks = { {4 * 1024, 128} },
10110 .block_erase = spi_block_erase_20,
10111 }, {
10112 .eraseblocks = { {4 * 1024, 128} },
10113 .block_erase = spi_block_erase_d7,
10114 }, {
10115 .eraseblocks = { {32 * 1024, 16} },
10116 .block_erase = spi_block_erase_52,
10117 }, {
10118 .eraseblocks = { {64 * 1024, 8} },
10119 .block_erase = spi_block_erase_d8,
10120 }, {
10121 .eraseblocks = { {512 * 1024, 1} },
10122 .block_erase = spi_block_erase_60,
10123 }, {
10124 .eraseblocks = { {512 * 1024, 1} },
10125 .block_erase = spi_block_erase_c7,
10126 }
10127 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010128 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010129 .unlock = spi_disable_blockprotect_bp3_srwd,
10130 .write = spi_chip_write_256,
10131 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10132 .voltage = {2700, 3600},
10133 },
10134
10135 {
10136 .vendor = "Nantronics",
10137 .name = "N25S80",
10138 .bustype = BUS_SPI,
10139 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10140 .model_id = NANTRONICS_N25S80,
10141 .total_size = 1024,
10142 .page_size = 256,
10143 .feature_bits = FEATURE_WRSR_WREN,
10144 .tested = TEST_UNTESTED,
10145 .probe = probe_spi_rdid,
10146 .probe_timing = TIMING_ZERO,
10147 .block_erasers =
10148 {
10149 {
10150 .eraseblocks = { {4 * 1024, 256} },
10151 .block_erase = spi_block_erase_20,
10152 }, {
10153 .eraseblocks = { {32 * 1024, 32} },
10154 .block_erase = spi_block_erase_52,
10155 }, {
10156 .eraseblocks = { {64 * 1024, 16} },
10157 .block_erase = spi_block_erase_d8,
10158 }, {
10159 .eraseblocks = { {1024 * 1024, 1} },
10160 .block_erase = spi_block_erase_60,
10161 }, {
10162 .eraseblocks = { {1024 * 1024, 1} },
10163 .block_erase = spi_block_erase_c7,
10164 }
10165 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010166 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010167 .unlock = spi_disable_blockprotect_bp3_srwd,
10168 .write = spi_chip_write_256,
10169 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10170 .voltage = {2700, 3600},
10171 },
10172
10173 {
10174 .vendor = "Nantronics",
10175 .name = "N25S16",
10176 .bustype = BUS_SPI,
10177 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10178 .model_id = NANTRONICS_N25S16,
10179 .total_size = 2048,
10180 .page_size = 256,
10181 .feature_bits = FEATURE_WRSR_WREN,
10182 .tested = TEST_UNTESTED,
10183 .probe = probe_spi_rdid,
10184 .probe_timing = TIMING_ZERO,
10185 .block_erasers =
10186 {
10187 {
10188 .eraseblocks = { {4 * 1024, 512} },
10189 .block_erase = spi_block_erase_20,
10190 }, {
10191 .eraseblocks = { {64 * 1024, 32} },
10192 .block_erase = spi_block_erase_d8,
10193 }, {
10194 .eraseblocks = { {2048 * 1024, 1} },
10195 .block_erase = spi_block_erase_60,
10196 }, {
10197 .eraseblocks = { {2048 * 1024, 1} },
10198 .block_erase = spi_block_erase_c7,
10199 }
10200 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010201 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010202 .unlock = spi_disable_blockprotect_bp3_srwd,
10203 .write = spi_chip_write_256,
10204 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10205 .voltage = {2700, 3600},
10206 },
10207
10208 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010209 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010210 .name = "Pm25LD256C",
10211 .bustype = BUS_SPI,
10212 .manufacture_id = PMC_ID,
10213 .model_id = PMC_PM25LD256C,
10214 .total_size = 32,
10215 .page_size = 256,
10216 .feature_bits = FEATURE_WRSR_WREN,
10217 .tested = TEST_UNTESTED,
10218 .probe = probe_spi_rdid,
10219 .probe_timing = TIMING_ZERO,
10220 .block_erasers =
10221 {
10222 {
10223 .eraseblocks = { {4 * 1024, 8} },
10224 .block_erase = spi_block_erase_20,
10225 }, {
10226 .eraseblocks = { {4 * 1024, 8} },
10227 .block_erase = spi_block_erase_d7,
10228 }, {
10229 .eraseblocks = { {32 * 1024, 1} },
10230 .block_erase = spi_block_erase_d8,
10231 }, {
10232 .eraseblocks = { {32 * 1024, 1} },
10233 .block_erase = spi_block_erase_60,
10234 }, {
10235 .eraseblocks = { {32 * 1024, 1} },
10236 .block_erase = spi_block_erase_c7,
10237 }
10238 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010239 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010240 .unlock = spi_disable_blockprotect,
10241 .write = spi_chip_write_256,
10242 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10243 .voltage = {2700, 3600},
10244 },
10245 {
10246 .vendor = "PMC",
10247 .name = "Pm25LD512(C)",
10248 .bustype = BUS_SPI,
10249 .manufacture_id = PMC_ID,
10250 .model_id = PMC_PM25LD512,
10251 .total_size = 64,
10252 .page_size = 256,
10253 .feature_bits = FEATURE_WRSR_WREN,
10254 .tested = TEST_OK_PREW,
10255 .probe = probe_spi_rdid,
10256 .probe_timing = TIMING_ZERO,
10257 .block_erasers =
10258 {
10259 {
10260 .eraseblocks = { {4 * 1024, 16} },
10261 .block_erase = spi_block_erase_20,
10262 }, {
10263 .eraseblocks = { {4 * 1024, 16} },
10264 .block_erase = spi_block_erase_d7,
10265 }, {
10266 .eraseblocks = { {32 * 1024, 2} },
10267 .block_erase = spi_block_erase_d8,
10268 }, {
10269 .eraseblocks = { {64 * 1024, 1} },
10270 .block_erase = spi_block_erase_60,
10271 }, {
10272 .eraseblocks = { {64 * 1024, 1} },
10273 .block_erase = spi_block_erase_c7,
10274 }
10275 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010276 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010277 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10278 .write = spi_chip_write_256,
10279 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10280 .voltage = {2300, 3600},
10281 },
10282
10283 {
10284 .vendor = "PMC",
10285 .name = "Pm25LD010(C)",
10286 .bustype = BUS_SPI,
10287 .manufacture_id = PMC_ID,
10288 .model_id = PMC_PM25LD010,
10289 .total_size = 128,
10290 .page_size = 256,
10291 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010292 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010293 .probe = probe_spi_rdid,
10294 .probe_timing = TIMING_ZERO,
10295 .block_erasers =
10296 {
10297 {
10298 .eraseblocks = { {4 * 1024, 32} },
10299 .block_erase = spi_block_erase_20,
10300 }, {
10301 .eraseblocks = { {4 * 1024, 32} },
10302 .block_erase = spi_block_erase_d7,
10303 }, {
10304 .eraseblocks = { {32 * 1024, 4} },
10305 .block_erase = spi_block_erase_d8,
10306 }, {
10307 .eraseblocks = { {128 * 1024, 1} },
10308 .block_erase = spi_block_erase_60,
10309 }, {
10310 .eraseblocks = { {128 * 1024, 1} },
10311 .block_erase = spi_block_erase_c7,
10312 }
10313 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010314 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010315 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10316 .write = spi_chip_write_256,
10317 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10318 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10319 },
10320
10321 {
10322 .vendor = "PMC",
10323 .name = "Pm25LD020(C)",
10324 .bustype = BUS_SPI,
10325 .manufacture_id = PMC_ID,
10326 .model_id = PMC_PM25LD020,
10327 .total_size = 256,
10328 .page_size = 256,
10329 .feature_bits = FEATURE_WRSR_WREN,
10330 .tested = TEST_UNTESTED,
10331 .probe = probe_spi_rdid,
10332 .probe_timing = TIMING_ZERO,
10333 .block_erasers =
10334 {
10335 {
10336 .eraseblocks = { {4 * 1024, 64} },
10337 .block_erase = spi_block_erase_20,
10338 }, {
10339 .eraseblocks = { {4 * 1024, 64} },
10340 .block_erase = spi_block_erase_d7,
10341 }, {
10342 .eraseblocks = { {64 * 1024, 4} },
10343 .block_erase = spi_block_erase_d8,
10344 }, {
10345 .eraseblocks = { {256 * 1024, 1} },
10346 .block_erase = spi_block_erase_60,
10347 }, {
10348 .eraseblocks = { {256 * 1024, 1} },
10349 .block_erase = spi_block_erase_c7,
10350 }
10351 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010352 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010353 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10354 .write = spi_chip_write_256,
10355 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10356 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
10357 },
10358
10359 {
10360 .vendor = "PMC",
10361 .name = "Pm25LD040(C)",
10362 .bustype = BUS_SPI,
10363 .manufacture_id = PMC_ID,
10364 .model_id = PMC_PM25LV040,
10365 .total_size = 512,
10366 .page_size = 256,
10367 .feature_bits = FEATURE_WRSR_WREN,
10368 .tested = TEST_UNTESTED,
10369 .probe = probe_spi_rdid,
10370 .probe_timing = TIMING_ZERO,
10371 .block_erasers =
10372 {
10373 {
10374 .eraseblocks = { {4 * 1024, 128} },
10375 .block_erase = spi_block_erase_20,
10376 }, {
10377 .eraseblocks = { {4 * 1024, 128} },
10378 .block_erase = spi_block_erase_d7,
10379 }, {
10380 .eraseblocks = { {64 * 1024, 8} },
10381 .block_erase = spi_block_erase_d8,
10382 }, {
10383 .eraseblocks = { {512 * 1024, 1} },
10384 .block_erase = spi_block_erase_60,
10385 }, {
10386 .eraseblocks = { {512 * 1024, 1} },
10387 .block_erase = spi_block_erase_c7,
10388 }
10389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010390 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010391 .unlock = spi_disable_blockprotect,
10392 .write = spi_chip_write_256,
10393 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10394 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10395 },
10396
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010397 {
10398 .vendor = "PMC",
10399 .name = "Pm25LQ020",
10400 .bustype = BUS_SPI,
10401 .manufacture_id = PMC_ID,
10402 .model_id = PMC_PM25LQ020,
10403 .total_size = 256,
10404 .page_size = 256,
10405 /* OTP: 256B total; read 0x4B, write 0xB1 */
10406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10407 .tested = TEST_UNTESTED,
10408 .probe = probe_spi_rdid,
10409 .probe_timing = TIMING_ZERO,
10410 .block_erasers =
10411 {
10412 {
10413 .eraseblocks = { {4 * 1024, 64} },
10414 .block_erase = spi_block_erase_20,
10415 }, {
10416 .eraseblocks = { {4 * 1024, 64} },
10417 .block_erase = spi_block_erase_d7,
10418 }, {
10419 .eraseblocks = { {64 * 1024, 4} },
10420 .block_erase = spi_block_erase_d8,
10421 }, {
10422 .eraseblocks = { {256 * 1024, 1} },
10423 .block_erase = spi_block_erase_60,
10424 }, {
10425 .eraseblocks = { {256 * 1024, 1} },
10426 .block_erase = spi_block_erase_c7,
10427 }
10428 },
10429 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10430 .unlock = spi_disable_blockprotect_bp3_srwd,
10431 .write = spi_chip_write_256,
10432 .read = spi_chip_read,
10433 .voltage = {2300, 3600},
10434 },
10435
10436 {
10437 .vendor = "PMC",
10438 .name = "Pm25LQ040",
10439 .bustype = BUS_SPI,
10440 .manufacture_id = PMC_ID,
10441 .model_id = PMC_PM25LQ040,
10442 .total_size = 512,
10443 .page_size = 256,
10444 /* OTP: 256B total; read 0x4B, write 0xB1 */
10445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10446 .tested = TEST_UNTESTED,
10447 .probe = probe_spi_rdid,
10448 .probe_timing = TIMING_ZERO,
10449 .block_erasers =
10450 {
10451 {
10452 .eraseblocks = { {4 * 1024, 128} },
10453 .block_erase = spi_block_erase_20,
10454 }, {
10455 .eraseblocks = { {4 * 1024, 128} },
10456 .block_erase = spi_block_erase_d7,
10457 }, {
10458 .eraseblocks = { {64 * 1024, 8} },
10459 .block_erase = spi_block_erase_d8,
10460 }, {
10461 .eraseblocks = { {512 * 1024, 1} },
10462 .block_erase = spi_block_erase_60,
10463 }, {
10464 .eraseblocks = { {512 * 1024, 1} },
10465 .block_erase = spi_block_erase_c7,
10466 }
10467 },
10468 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10469 .unlock = spi_disable_blockprotect_bp3_srwd,
10470 .write = spi_chip_write_256,
10471 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10472 .voltage = {2300, 3600},
10473 },
10474
10475 {
10476 .vendor = "PMC",
10477 .name = "Pm25LQ080",
10478 .bustype = BUS_SPI,
10479 .manufacture_id = PMC_ID,
10480 .model_id = PMC_PM25LQ080,
10481 .total_size = 1024,
10482 .page_size = 256,
10483 /* OTP: 64B total; read 0x4B, write 0xB1 */
10484 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10485 .tested = TEST_UNTESTED,
10486 .probe = probe_spi_rdid,
10487 .probe_timing = TIMING_ZERO,
10488 .block_erasers =
10489 {
10490 {
10491 .eraseblocks = { {4 * 1024, 256} },
10492 .block_erase = spi_block_erase_20,
10493 }, {
10494 .eraseblocks = { {4 * 1024, 256} },
10495 .block_erase = spi_block_erase_d7,
10496 }, {
10497 .eraseblocks = { {64 * 1024, 16} },
10498 .block_erase = spi_block_erase_d8,
10499 }, {
10500 .eraseblocks = { {1024 * 1024, 1} },
10501 .block_erase = spi_block_erase_60,
10502 }, {
10503 .eraseblocks = { {1024 * 1024, 1} },
10504 .block_erase = spi_block_erase_c7,
10505 }
10506 },
10507 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10508 .unlock = spi_disable_blockprotect_bp3_srwd,
10509 .write = spi_chip_write_256,
10510 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10511 .voltage = {2300, 3600},
10512 },
10513
10514 {
10515 .vendor = "PMC",
10516 .name = "Pm25LQ016",
10517 .bustype = BUS_SPI,
10518 .manufacture_id = PMC_ID,
10519 .model_id = PMC_PM25LQ016,
10520 .total_size = 2048,
10521 .page_size = 256,
10522 /* OTP: 256B total; read 0x4B, write 0xB1 */
10523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10524 .tested = TEST_UNTESTED,
10525 .probe = probe_spi_rdid,
10526 .probe_timing = TIMING_ZERO,
10527 .block_erasers =
10528 {
10529 {
10530 .eraseblocks = { {4 * 1024, 512} },
10531 .block_erase = spi_block_erase_20,
10532 }, {
10533 .eraseblocks = { {4 * 1024, 512} },
10534 .block_erase = spi_block_erase_d7,
10535 }, {
10536 .eraseblocks = { {64 * 1024, 32} },
10537 .block_erase = spi_block_erase_d8,
10538 }, {
10539 .eraseblocks = { {2048 * 1024, 1} },
10540 .block_erase = spi_block_erase_60,
10541 }, {
10542 .eraseblocks = { {2048 * 1024, 1} },
10543 .block_erase = spi_block_erase_c7,
10544 }
10545 },
10546 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10547 .unlock = spi_disable_blockprotect_bp3_srwd,
10548 .write = spi_chip_write_256,
10549 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10550 .voltage = {2300, 3600},
10551 },
10552
10553 {
10554 .vendor = "PMC",
10555 .name = "Pm25LQ032C",
10556 .bustype = BUS_SPI,
10557 .manufacture_id = PMC_ID,
10558 .model_id = PMC_PM25LQ032C,
10559 .total_size = 4096,
10560 .page_size = 256,
10561 /* OTP: 64B total; read 0x4B, write 0xB1 */
10562 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010563 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010564 .probe = probe_spi_rdid,
10565 .probe_timing = TIMING_ZERO,
10566 .block_erasers =
10567 {
10568 {
10569 .eraseblocks = { {4 * 1024, 1024} },
10570 .block_erase = spi_block_erase_20,
10571 }, {
10572 .eraseblocks = { {4 * 1024, 1024} },
10573 .block_erase = spi_block_erase_d7,
10574 }, {
10575 .eraseblocks = { {64 * 1024, 64} },
10576 .block_erase = spi_block_erase_d8,
10577 }, {
10578 .eraseblocks = { {4096 * 1024, 1} },
10579 .block_erase = spi_block_erase_60,
10580 }, {
10581 .eraseblocks = { {4096 * 1024, 1} },
10582 .block_erase = spi_block_erase_c7,
10583 }
10584 },
10585 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10586 .unlock = spi_disable_blockprotect_bp3_srwd,
10587 .write = spi_chip_write_256,
10588 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10589 .voltage = {2700, 3600},
10590 },
10591
10592 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010593 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010594 .name = "Pm25LV512(A)",
10595 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010596 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010597 .model_id = PMC_PM25LV512,
10598 .total_size = 64,
10599 .page_size = 256,
10600 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010601 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010602 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010603 .probe_timing = TIMING_ZERO,
10604 .block_erasers =
10605 {
10606 {
10607 .eraseblocks = { {4 * 1024, 16} },
10608 .block_erase = spi_block_erase_d7,
10609 }, {
10610 .eraseblocks = { {32 * 1024, 2} },
10611 .block_erase = spi_block_erase_d8,
10612 }, {
10613 .eraseblocks = { {64 * 1024, 1} },
10614 .block_erase = spi_block_erase_c7,
10615 }
10616 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010617 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010618 .unlock = spi_disable_blockprotect,
10619 .write = spi_chip_write_256,
10620 .read = spi_chip_read, /* Fast read (0x0B) supported */
10621 .voltage = {2700, 3600},
10622 },
10623
10624 {
10625 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010626 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010627 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010628 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010629 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010630 .total_size = 128,
10631 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010632 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010633 .tested = TEST_OK_PREW,
10634 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010635 .probe_timing = TIMING_ZERO,
10636 .block_erasers =
10637 {
10638 {
10639 .eraseblocks = { {4 * 1024, 32} },
10640 .block_erase = spi_block_erase_d7,
10641 }, {
10642 .eraseblocks = { {32 * 1024, 4} },
10643 .block_erase = spi_block_erase_d8,
10644 }, {
10645 .eraseblocks = { {128 * 1024, 1} },
10646 .block_erase = spi_block_erase_c7,
10647 }
10648 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010649 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010650 .unlock = spi_disable_blockprotect,
10651 .write = spi_chip_write_256,
10652 .read = spi_chip_read, /* Fast read (0x0B) supported */
10653 .voltage = {2700, 3600},
10654 },
10655
10656 {
10657 .vendor = "PMC",
10658 .name = "Pm25LV010A",
10659 .bustype = BUS_SPI,
10660 .manufacture_id = PMC_ID,
10661 .model_id = PMC_PM25LV010,
10662 .total_size = 128,
10663 .page_size = 256,
10664 .feature_bits = FEATURE_WRSR_WREN,
10665 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010667 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010668 .block_erasers =
10669 {
10670 {
10671 .eraseblocks = { {4 * 1024, 32} },
10672 .block_erase = spi_block_erase_d7,
10673 }, {
10674 .eraseblocks = { {32 * 1024, 4} },
10675 .block_erase = spi_block_erase_d8,
10676 }, {
10677 .eraseblocks = { {128 * 1024, 1} },
10678 .block_erase = spi_block_erase_c7,
10679 }
10680 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010681 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010682 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010683 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010684 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010685 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010686 },
10687
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010688 {
10689 .vendor = "PMC",
10690 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010692 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010693 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010694 .total_size = 256,
10695 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010696 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010697 .tested = TEST_UNTESTED,
10698 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010699 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010700 .block_erasers =
10701 {
10702 {
10703 .eraseblocks = { {4 * 1024, 64} },
10704 .block_erase = spi_block_erase_d7,
10705 }, {
10706 .eraseblocks = { {64 * 1024, 4} },
10707 .block_erase = spi_block_erase_d8,
10708 }, {
10709 .eraseblocks = { {256 * 1024, 1} },
10710 .block_erase = spi_block_erase_c7,
10711 }
10712 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010713 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010714 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010715 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010716 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010717 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010718 },
10719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010720 {
10721 .vendor = "PMC",
10722 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010724 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010725 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010726 .total_size = 512,
10727 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010728 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000010729 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010730 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010731 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010732 .block_erasers =
10733 {
10734 {
10735 .eraseblocks = { {4 * 1024, 128} },
10736 .block_erase = spi_block_erase_d7,
10737 }, {
10738 .eraseblocks = { {64 * 1024, 8} },
10739 .block_erase = spi_block_erase_d8,
10740 }, {
10741 .eraseblocks = { {512 * 1024, 1} },
10742 .block_erase = spi_block_erase_c7,
10743 }
10744 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010745 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010747 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010748 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010749 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010750 },
10751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010752 {
10753 .vendor = "PMC",
10754 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010755 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010756 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010757 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010758 .total_size = 1024,
10759 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010760 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010761 .tested = TEST_UNTESTED,
10762 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010763 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010764 .block_erasers =
10765 {
10766 {
10767 .eraseblocks = { {4 * 1024, 256} },
10768 .block_erase = spi_block_erase_d7,
10769 }, {
10770 .eraseblocks = { {4 * 1024, 256} },
10771 .block_erase = spi_block_erase_20,
10772 }, {
10773 .eraseblocks = { {64 * 1024, 16} },
10774 .block_erase = spi_block_erase_d8,
10775 }, {
10776 .eraseblocks = { {1024 * 1024, 1} },
10777 .block_erase = spi_block_erase_60,
10778 }, {
10779 .eraseblocks = { {1024 * 1024, 1} },
10780 .block_erase = spi_block_erase_c7,
10781 }
10782 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010783 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010784 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010785 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010786 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010787 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010788 },
10789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010790 {
10791 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010792 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010793 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010794 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010795 .model_id = PMC_PM25LV016B,
10796 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010797 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010798 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010799 .tested = TEST_UNTESTED,
10800 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010801 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010802 .block_erasers =
10803 {
10804 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010805 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000010806 .block_erase = spi_block_erase_d7,
10807 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010808 .eraseblocks = { {4 * 1024, 512} },
10809 .block_erase = spi_block_erase_20,
10810 }, {
10811 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000010812 .block_erase = spi_block_erase_d8,
10813 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010814 .eraseblocks = { {2 * 1024 * 1024, 1} },
10815 .block_erase = spi_block_erase_60,
10816 }, {
10817 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010818 .block_erase = spi_block_erase_c7,
10819 }
10820 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010821 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010822 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010823 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010824 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010825 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010826 },
10827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010828 {
10829 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010830 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010831 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010832 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010833 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010834 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010835 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010836 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010837 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010838 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010839 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010840 .block_erasers =
10841 {
10842 {
10843 .eraseblocks = {
10844 {128 * 1024, 1},
10845 {96 * 1024, 1},
10846 {8 * 1024, 2},
10847 {16 * 1024, 1},
10848 },
Sean Nelson35727f72010-01-28 23:55:12 +000010849 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010850 }, {
10851 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010852 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010853 },
10854 },
Sean Nelson35727f72010-01-28 23:55:12 +000010855 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010857 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010858 },
10859
10860 {
10861 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010862 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010863 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010864 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010865 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010866 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010867 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010868 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010869 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010870 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010871 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010872 .block_erasers =
10873 {
10874 {
10875 .eraseblocks = {
10876 {16 * 1024, 1},
10877 {8 * 1024, 2},
10878 {96 * 1024, 1},
10879 {128 * 1024, 1},
10880 },
Sean Nelson35727f72010-01-28 23:55:12 +000010881 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010882 }, {
10883 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010884 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010885 },
10886 },
Sean Nelson35727f72010-01-28 23:55:12 +000010887 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010889 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010890 },
10891
10892 {
10893 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010894 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010895 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010896 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010897 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010898 .total_size = 128,
10899 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010900 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010901 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010902 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010903 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000010904 .block_erasers =
10905 {
10906 {
10907 .eraseblocks = { {4 * 1024, 32} },
10908 .block_erase = erase_sector_jedec,
10909 }, {
10910 .eraseblocks = { {64 * 1024, 2} },
10911 .block_erase = erase_block_jedec,
10912 }, {
10913 .eraseblocks = { {128 * 1024, 1} },
10914 .block_erase = erase_chip_block_jedec,
10915 }
10916 },
Sean Nelson35727f72010-01-28 23:55:12 +000010917 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010919 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010920 },
10921
10922 {
10923 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010924 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010925 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010926 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010927 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010928 .total_size = 256,
10929 .page_size = 4096,
10930 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10931 .tested = TEST_UNTESTED,
10932 .probe = probe_jedec,
10933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10934 .block_erasers =
10935 {
10936 {
10937 .eraseblocks = { {4 * 1024, 64} },
10938 .block_erase = erase_sector_jedec,
10939 }, {
10940 .eraseblocks = { {64 * 1024, 4} },
10941 .block_erase = erase_block_jedec,
10942 }, {
10943 .eraseblocks = { {256 * 1024, 1} },
10944 .block_erase = erase_chip_block_jedec,
10945 }
10946 },
10947 .write = write_jedec_1,
10948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010949 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010950 },
10951
10952 {
10953 .vendor = "PMC",
10954 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010955 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010956 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010957 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010958 .total_size = 512,
10959 .page_size = 4096,
10960 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010961 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010962 .probe = probe_jedec,
10963 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10964 .block_erasers =
10965 {
10966 {
10967 .eraseblocks = { {4 * 1024, 128} },
10968 .block_erase = erase_sector_jedec,
10969 }, {
10970 .eraseblocks = { {64 * 1024, 8} },
10971 .block_erase = erase_block_jedec,
10972 }, {
10973 .eraseblocks = { {512 * 1024, 1} },
10974 .block_erase = erase_chip_block_jedec,
10975 }
10976 },
10977 .write = write_jedec_1,
10978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010979 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010980 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000010981
10982 {
10983 .vendor = "PMC",
10984 .name = "Pm39LV512",
10985 .bustype = BUS_PARALLEL,
10986 .manufacture_id = PMC_ID_NOPREFIX,
10987 .model_id = PMC_PM39LV512,
10988 .total_size = 64,
10989 .page_size = 4096,
10990 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10991 .tested = TEST_OK_PREW,
10992 .probe = probe_jedec,
10993 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10994 .block_erasers =
10995 {
10996 {
10997 .eraseblocks = { {4 * 1024, 16} },
10998 .block_erase = erase_sector_jedec,
10999 }, {
11000 .eraseblocks = { {64 * 1024, 1} },
11001 .block_erase = erase_block_jedec,
11002 }, {
11003 .eraseblocks = { {64 * 1024, 1} },
11004 .block_erase = erase_chip_block_jedec,
11005 }
11006 },
11007 .write = write_jedec_1,
11008 .read = read_memmapped,
11009 .voltage = {2700, 3600},
11010 },
11011
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011012 {
11013 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011014 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011015 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011016 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011017 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011018 .total_size = 256,
11019 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011020 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011021 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011022 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011023 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011024 .block_erasers =
11025 {
11026 {
11027 .eraseblocks = { {4 * 1024, 64} },
11028 .block_erase = erase_sector_jedec,
11029 }, {
11030 .eraseblocks = { {16 * 1024, 16} },
11031 .block_erase = erase_block_jedec,
11032 }, {
11033 .eraseblocks = { {256 * 1024, 1} },
11034 .block_erase = erase_chip_block_jedec,
11035 }
11036 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011037 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011038 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011039 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011040 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011041 },
11042
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011043 {
11044 .vendor = "PMC",
11045 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011046 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011047 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011048 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011049 .total_size = 512,
11050 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011051 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011052 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011053 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011054 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011055 .block_erasers =
11056 {
11057 {
11058 .eraseblocks = { {4 * 1024, 128} },
11059 .block_erase = erase_sector_jedec,
11060 }, {
11061 .eraseblocks = { {64 * 1024, 8} },
11062 .block_erase = erase_block_jedec,
11063 }, {
11064 .eraseblocks = { {512 * 1024, 1} },
11065 .block_erase = erase_chip_block_jedec,
11066 }
11067 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011068 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011069 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011071 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011072 },
11073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011074 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011075 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011076 .name = "LE25FW106",
11077 .bustype = BUS_SPI,
11078 .manufacture_id = SANYO_ID,
11079 .model_id = SANYO_LE25FW106,
11080 .total_size = 128,
11081 .page_size = 256,
11082 .feature_bits = FEATURE_WRSR_WREN,
11083 .tested = TEST_OK_PREW,
11084 .probe = probe_spi_res2,
11085 .probe_timing = TIMING_ZERO,
11086 .block_erasers = {
11087 {
11088 .eraseblocks = { {2 * 1024, 64} },
11089 .block_erase = spi_block_erase_d7,
11090 }, {
11091 .eraseblocks = { {32 * 1024, 4} },
11092 .block_erase = spi_block_erase_d8,
11093 }, {
11094 .eraseblocks = { {128 * 1024, 1} },
11095 .block_erase = spi_block_erase_c7,
11096 }
11097 },
11098 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11099 .unlock = spi_disable_blockprotect_bp1_srwd,
11100 .write = spi_chip_write_256,
11101 .read = spi_chip_read,
11102 .voltage = {2700, 3600},
11103 },
11104
11105 {
11106 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011107 .name = "LE25FW406A",
11108 .bustype = BUS_SPI,
11109 .manufacture_id = SANYO_ID,
11110 .model_id = SANYO_LE25FW406A,
11111 .total_size = 512,
11112 .page_size = 256,
11113 .feature_bits = FEATURE_WRSR_WREN,
11114 .tested = TEST_OK_PREW,
11115 .probe = probe_spi_res2,
11116 .probe_timing = TIMING_ZERO,
11117 .block_erasers = {
11118 {
11119 .eraseblocks = { {4 * 1024, 128} },
11120 .block_erase = spi_block_erase_d7,
11121 }, {
11122 .eraseblocks = { {64 * 1024, 8} },
11123 .block_erase = spi_block_erase_d8,
11124 }, {
11125 .eraseblocks = { {512 * 1024, 1} },
11126 .block_erase = spi_block_erase_c7,
11127 }
11128 },
11129 .printlock = spi_prettyprint_status_register_plain,
11130 .unlock = spi_disable_blockprotect,
11131 .write = spi_chip_write_256,
11132 .read = spi_chip_read,
11133 .voltage = {2700, 3600},
11134 },
11135
11136 {
11137 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011138 .name = "LE25FU406B",
11139 .bustype = BUS_SPI,
11140 .manufacture_id = SANYO_ID,
11141 .model_id = SANYO_LE25FU406B,
11142 .total_size = 512,
11143 .page_size = 256,
11144 .feature_bits = FEATURE_WRSR_WREN,
11145 .tested = TEST_OK_PREW,
11146 .probe = probe_spi_res2,
11147 .probe_timing = TIMING_ZERO,
11148 .block_erasers = {
11149 {
11150 .eraseblocks = { {4 * 1024, 128} },
11151 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011152 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011153 .eraseblocks = { {64 * 1024, 8} },
11154 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011155 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011156 .eraseblocks = { {512 * 1024, 1} },
11157 .block_erase = spi_block_erase_c7,
11158 }
11159 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011160 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011161 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11162 .write = spi_chip_write_256,
11163 .read = spi_chip_read,
11164 .voltage = {2300, 3600},
11165 },
11166
11167 {
11168 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011169 .name = "LE25FU406C/LE25U40CMC",
11170 .bustype = BUS_SPI,
11171 .manufacture_id = SANYO_ID,
11172 .model_id = SANYO_LE25FU406C,
11173 .total_size = 512,
11174 .page_size = 256,
11175 .feature_bits = FEATURE_WRSR_WREN,
11176 .tested = TEST_OK_PR,
11177 .probe = probe_spi_rdid,
11178 .probe_timing = TIMING_ZERO,
11179 .block_erasers = {
11180 {
11181 .eraseblocks = { {4 * 1024, 128} },
11182 .block_erase = spi_block_erase_20,
11183 }, {
11184 .eraseblocks = { {4 * 1024, 128} },
11185 .block_erase = spi_block_erase_d7,
11186 }, {
11187 .eraseblocks = { {64 * 1024, 8} },
11188 .block_erase = spi_block_erase_d8,
11189 }, {
11190 .eraseblocks = { {512 * 1024, 1} },
11191 .block_erase = spi_block_erase_60,
11192 }, {
11193 .eraseblocks = { {512 * 1024, 1} },
11194 .block_erase = spi_block_erase_c7,
11195 }
11196 },
11197 .printlock = spi_prettyprint_status_register_bp2_srwd,
11198 .unlock = spi_disable_blockprotect_bp2_srwd,
11199 .write = spi_chip_write_256,
11200 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11201 .voltage = {2300, 3600},
11202 },
11203
11204 {
11205 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011206 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011207 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011208 .manufacture_id = SANYO_ID,
11209 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011210 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011211 .page_size = 256,
11212 .tested = TEST_UNTESTED,
11213 .probe = probe_spi_rdid,
11214 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011215 .block_erasers =
11216 {
11217 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011218 .eraseblocks = { {256, 1024} },
11219 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011220 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011221 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011222 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011223 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011224 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011225 .block_erase = spi_block_erase_c7,
11226 }
11227 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011228 .printlock = spi_prettyprint_status_register_default_welwip,
11229 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011230 .write = spi_chip_write_256,
11231 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011232 .voltage = {2700, 3600},
11233 },
11234
11235 {
11236 .vendor = "Sanyo",
11237 .name = "LE25FW403A",
11238 .bustype = BUS_SPI,
11239 .manufacture_id = SANYO_ID,
11240 .model_id = SANYO_LE25FW403A,
11241 .total_size = 512,
11242 .page_size = 256,
11243 .tested = TEST_UNTESTED,
11244 .probe = probe_spi_rdid,
11245 .probe_timing = TIMING_ZERO,
11246 .block_erasers = {
11247 {
11248 .eraseblocks = { {256, 2 * 1024} },
11249 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011250 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011251 .eraseblocks = { {64 * 1024, 8} },
11252 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011253 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011254 .eraseblocks = { {512 * 1024, 1} },
11255 .block_erase = spi_block_erase_c7,
11256 }
11257 },
11258 .printlock = spi_prettyprint_status_register_default_welwip,
11259 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11260 .write = spi_chip_write_256,
11261 .read = spi_chip_read,
11262 .voltage = {2700, 3600},
11263 },
11264
11265 {
11266 .vendor = "Sanyo",
11267 .name = "LE25FW418A",
11268 .bustype = BUS_SPI,
11269 .manufacture_id = SANYO_ID,
11270 .model_id = SANYO_LE25FW418A,
11271 .total_size = 512,
11272 .page_size = 256,
11273 .feature_bits = FEATURE_WRSR_WREN,
11274 .tested = TEST_UNTESTED,
11275 .probe = probe_spi_res2,
11276 .probe_timing = TIMING_ZERO,
11277 .block_erasers = {
11278 {
11279 .eraseblocks = { {4 * 1024, 128} },
11280 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011281 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011282 .eraseblocks = { {64 * 1024, 8} },
11283 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011284 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011285 .eraseblocks = { {512 * 1024, 1} },
11286 .block_erase = spi_block_erase_c7,
11287 }
11288 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011289 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011290 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11291 .write = spi_chip_write_256,
11292 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11293 .voltage = {2700, 3600},
11294 },
11295
11296 {
11297 .vendor = "Sanyo",
11298 .name = "LE25FW806",
11299 .bustype = BUS_SPI,
11300 .manufacture_id = SANYO_ID,
11301 .model_id = SANYO_LE25FW806,
11302 .total_size = 1024,
11303 .page_size = 256,
11304 .feature_bits = FEATURE_WRSR_WREN,
11305 .tested = TEST_UNTESTED,
11306 .probe = probe_spi_res2,
11307 .probe_timing = TIMING_ZERO,
11308 .block_erasers = {
11309 {
11310 .eraseblocks = { {4 * 1024, 256} },
11311 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011312 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011313 .eraseblocks = { {4 * 1024, 256} },
11314 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011315 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011316 .eraseblocks = { {64 * 1024, 16} },
11317 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011318 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011319 .eraseblocks = { {1024 * 1024, 1} },
11320 .block_erase = spi_block_erase_c7,
11321 }
11322 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011323 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011324 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11325 .write = spi_chip_write_256,
11326 .read = spi_chip_read,
11327 .voltage = {2700, 3600},
11328 },
11329
11330 {
11331 .vendor = "Sanyo",
11332 .name = "LE25FW808",
11333 .bustype = BUS_SPI,
11334 .manufacture_id = SANYO_ID,
11335 .model_id = SANYO_LE25FW808,
11336 .total_size = 1024,
11337 .page_size = 256,
11338 .feature_bits = FEATURE_WRSR_WREN,
11339 .tested = TEST_UNTESTED,
11340 .probe = probe_spi_res2,
11341 .probe_timing = TIMING_ZERO,
11342 .block_erasers = {
11343 {
11344 .eraseblocks = { {8 * 1024, 128} },
11345 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011346 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011347 .eraseblocks = { {64 * 1024, 16} },
11348 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011349 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011350 .eraseblocks = { {1024 * 1024, 1} },
11351 .block_erase = spi_block_erase_c7,
11352 }
11353 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011354 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011355 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11356 .write = spi_chip_write_256,
11357 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11358 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011359 },
11360
11361 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011362 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011363 .name = "LH28F008BJT-BTLZ1",
11364 .bustype = BUS_PARALLEL,
11365 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011366 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011367 .total_size = 1024,
11368 .page_size = 64 * 1024,
11369 .tested = TEST_OK_PREW,
11370 .probe = probe_82802ab,
11371 .probe_timing = TIMING_ZERO,
11372 .block_erasers =
11373 {
11374 {
11375 .eraseblocks = {
11376 {8 * 1024, 8},
11377 {64 * 1024, 15}
11378 },
11379 .block_erase = erase_block_82802ab,
11380 }, {
11381 .eraseblocks = { {1024 * 1024, 1} },
11382 .block_erase = erase_sector_49lfxxxc,
11383 }
11384 },
11385 .unlock = unlock_lh28f008bjt,
11386 .write = write_82802ab,
11387 .read = read_memmapped,
11388 .voltage = {2700, 3600},
11389 },
11390
11391 {
11392 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011393 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011394 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011395 .manufacture_id = SHARP_ID,
11396 .model_id = SHARP_LHF00L04,
11397 .total_size = 1024,
11398 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011399 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011400 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011401 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011402 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011403 .block_erasers =
11404 {
11405 {
11406 .eraseblocks = {
11407 {64 * 1024, 15},
11408 {8 * 1024, 8}
11409 },
Sean Nelson28accc22010-03-19 18:47:06 +000011410 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011411 }, {
11412 .eraseblocks = {
11413 {1024 * 1024, 1}
11414 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011415 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011416 },
11417 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011418 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011419 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011420 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011421 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011422 },
11423
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011424 {
11425 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011426 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011427 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011428 .manufacture_id = SPANSION_ID,
11429 .model_id = SPANSION_S25FL004A,
11430 .total_size = 512,
11431 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011432 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011433 .tested = TEST_UNTESTED,
11434 .probe = probe_spi_rdid,
11435 .probe_timing = TIMING_ZERO,
11436 .block_erasers =
11437 {
11438 {
11439 .eraseblocks = { {64 * 1024, 8} },
11440 .block_erase = spi_block_erase_d8,
11441 }, {
11442 .eraseblocks = { {512 * 1024, 1} },
11443 .block_erase = spi_block_erase_c7,
11444 }
11445 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011447 .unlock = spi_disable_blockprotect,
11448 .write = spi_chip_write_256,
11449 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011450 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011451 },
11452
11453 {
11454 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011455 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011456 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011457 .manufacture_id = SPANSION_ID,
11458 .model_id = SPANSION_S25FL008A,
11459 .total_size = 1024,
11460 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011461 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011462 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011463 .probe = probe_spi_rdid,
11464 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011465 .block_erasers =
11466 {
11467 {
11468 .eraseblocks = { {64 * 1024, 16} },
11469 .block_erase = spi_block_erase_d8,
11470 }, {
11471 .eraseblocks = { {1024 * 1024, 1} },
11472 .block_erase = spi_block_erase_c7,
11473 }
11474 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011475 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011476 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011477 .write = spi_chip_write_256,
11478 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011479 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011480 },
11481
11482 {
11483 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011484 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011485 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 .manufacture_id = SPANSION_ID,
11487 .model_id = SPANSION_S25FL016A,
11488 .total_size = 2048,
11489 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011490 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011491 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011493 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011494 .block_erasers =
11495 {
11496 {
11497 .eraseblocks = { {64 * 1024, 32} },
11498 .block_erase = spi_block_erase_d8,
11499 }, {
11500 .eraseblocks = { {2 * 1024 * 1024, 1} },
11501 .block_erase = spi_block_erase_c7,
11502 }
11503 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011505 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011506 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011507 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011508 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011509 },
11510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011511 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011512 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011513 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011514 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011515 .manufacture_id = SPANSION_ID,
11516 .model_id = SPANSION_S25FL032A,
11517 .total_size = 4096,
11518 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011519 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011520 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011521 .probe = probe_spi_rdid,
11522 .probe_timing = TIMING_ZERO,
11523 .block_erasers =
11524 {
11525 {
11526 .eraseblocks = { {64 * 1024, 64} },
11527 .block_erase = spi_block_erase_d8,
11528 }, {
11529 .eraseblocks = { {4 * 1024 * 1024, 1} },
11530 .block_erase = spi_block_erase_c7,
11531 }
11532 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011533 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011534 .unlock = spi_disable_blockprotect,
11535 .write = spi_chip_write_256,
11536 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011537 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011538 },
11539
11540 {
11541 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011542 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011543 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011544 .manufacture_id = SPANSION_ID,
11545 .model_id = SPANSION_S25FL064A,
11546 .total_size = 8192,
11547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011548 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011549 .tested = TEST_OK_PREW,
11550 .probe = probe_spi_rdid,
11551 .probe_timing = TIMING_ZERO,
11552 .block_erasers =
11553 {
11554 {
11555 .eraseblocks = { {64 * 1024, 128} },
11556 .block_erase = spi_block_erase_d8,
11557 }, {
11558 .eraseblocks = { {8 * 1024 * 1024, 1} },
11559 .block_erase = spi_block_erase_c7,
11560 }
11561 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011563 .unlock = spi_disable_blockprotect,
11564 .write = spi_chip_write_256,
11565 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011566 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011567 },
11568
11569 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011570 .vendor = "Spansion",
11571 .name = "S25FL204K",
11572 .bustype = BUS_SPI,
11573 .manufacture_id = SPANSION_ID,
11574 .model_id = SPANSION_S25FL204,
11575 .total_size = 512,
11576 .page_size = 256,
11577 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011578 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011579 .probe = probe_spi_rdid,
11580 .probe_timing = TIMING_ZERO,
11581 .block_erasers = {
11582 {
11583 .eraseblocks = { {4 * 1024, 128} },
11584 .block_erase = spi_block_erase_20,
11585 }, {
11586 .eraseblocks = { {64 * 1024, 8} },
11587 .block_erase = spi_block_erase_d8,
11588 }, {
11589 .eraseblocks = { { 512 * 1024, 1} },
11590 .block_erase = spi_block_erase_60,
11591 }, {
11592 .eraseblocks = { { 512 * 1024, 1} },
11593 .block_erase = spi_block_erase_c7,
11594 }
11595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011596 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011597 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011598 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011599 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011600 .voltage = {2700, 3600},
11601 },
11602
11603 {
11604 .vendor = "Spansion",
11605 .name = "S25FL208K",
11606 .bustype = BUS_SPI,
11607 .manufacture_id = SPANSION_ID,
11608 .model_id = SPANSION_S25FL208,
11609 .total_size = 1024,
11610 .page_size = 256,
11611 .feature_bits = FEATURE_WRSR_WREN,
11612 .tested = TEST_UNTESTED,
11613 .probe = probe_spi_rdid,
11614 .probe_timing = TIMING_ZERO,
11615 .block_erasers = {
11616 {
11617 .eraseblocks = { {4 * 1024, 256} },
11618 .block_erase = spi_block_erase_20,
11619 }, {
11620 .eraseblocks = { {64 * 1024, 16} },
11621 .block_erase = spi_block_erase_d8,
11622 }, {
11623 .eraseblocks = { { 1024 * 1024, 1} },
11624 .block_erase = spi_block_erase_60,
11625 }, {
11626 .eraseblocks = { { 1024 * 1024, 1} },
11627 .block_erase = spi_block_erase_c7,
11628 }
11629 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011630 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011631 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011632 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011633 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011634 .voltage = {2700, 3600},
11635 },
11636
11637 {
11638 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011639 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011640 .bustype = BUS_SPI,
11641 .manufacture_id = SPANSION_ID,
11642 .model_id = SPANSION_S25FL216,
11643 .total_size = 2048,
11644 .page_size = 256,
11645 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11646 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11647 .tested = TEST_UNTESTED,
11648 .probe = probe_spi_rdid,
11649 .probe_timing = TIMING_ZERO,
11650 .block_erasers = {
11651 {
11652 .eraseblocks = { {4 * 1024, 512} },
11653 .block_erase = spi_block_erase_20,
11654 }, {
11655 .eraseblocks = { {64 * 1024, 32} },
11656 .block_erase = spi_block_erase_d8,
11657 }, {
11658 .eraseblocks = { { 2048 * 1024, 1} },
11659 .block_erase = spi_block_erase_60,
11660 }, {
11661 .eraseblocks = { { 2048 * 1024, 1} },
11662 .block_erase = spi_block_erase_c7,
11663 }
11664 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011665 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011666 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011667 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011668 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011669 .voltage = {2700, 3600},
11670 },
11671
11672 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011673 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011674 .name = "S25FL132K",
11675 .bustype = BUS_SPI,
11676 .manufacture_id = SPANSION_ID,
11677 .model_id = SPANSION_S25FL132K,
11678 .total_size = 4096,
11679 .page_size = 256,
11680 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11682 .tested = TEST_UNTESTED,
11683 .probe = probe_spi_rdid,
11684 .probe_timing = TIMING_ZERO,
11685 .block_erasers = {
11686 {
11687 .eraseblocks = { {4 * 1024, 1024} },
11688 .block_erase = spi_block_erase_20,
11689 }, {
11690 .eraseblocks = { {64 * 1024, 64} },
11691 .block_erase = spi_block_erase_d8,
11692 }, {
11693 .eraseblocks = { { 4096 * 1024, 1} },
11694 .block_erase = spi_block_erase_60,
11695 }, {
11696 .eraseblocks = { { 4096 * 1024, 1} },
11697 .block_erase = spi_block_erase_c7,
11698 }
11699 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011700 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011701 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11702 .write = spi_chip_write_256,
11703 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11704 .voltage = {2700, 3600},
11705 },
11706
11707 {
11708 .vendor = "Spansion",
11709 .name = "S25FL164K",
11710 .bustype = BUS_SPI,
11711 .manufacture_id = SPANSION_ID,
11712 .model_id = SPANSION_S25FL164K,
11713 .total_size = 8192,
11714 .page_size = 256,
11715 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11716 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11717 .tested = TEST_OK_PREW,
11718 .probe = probe_spi_rdid,
11719 .probe_timing = TIMING_ZERO,
11720 .block_erasers = {
11721 {
11722 .eraseblocks = { {4 * 1024, 2048} },
11723 .block_erase = spi_block_erase_20,
11724 }, {
11725 .eraseblocks = { {64 * 1024, 128} },
11726 .block_erase = spi_block_erase_d8,
11727 }, {
11728 .eraseblocks = { { 8192 * 1024, 1} },
11729 .block_erase = spi_block_erase_60,
11730 }, {
11731 .eraseblocks = { { 8192 * 1024, 1} },
11732 .block_erase = spi_block_erase_c7,
11733 }
11734 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011735 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011736 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11737 .write = spi_chip_write_256,
11738 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11739 .voltage = {2700, 3600},
11740 },
11741
11742 {
11743 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000011744 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11745 .bustype = BUS_SPI,
11746 .manufacture_id = SPANSION_ID,
11747 .model_id = SPANSION_S25FL128,
11748 .total_size = 16384,
11749 .page_size = 256,
11750 /* supports 4B addressing */
11751 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11753 .tested = TEST_OK_PREW,
11754 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
11755 .probe = probe_spi_rdid,
11756 .probe_timing = TIMING_ZERO,
11757 .block_erasers = {
11758 {
11759 /* This chip supports erasing of 32 so-called "parameter sectors" with
11760 * opcode 0x20 which may be configured to be on top or bottom of the address
11761 * space. Trying to access an address outside these 4kB blocks does have no
11762 * effect on the memory contents, e.g.
11763 .eraseblocks = {
11764 {4 * 1024, 32},
11765 {64 * 1024, 254} // inaccessible
11766 },
11767 .block_erase = spi_block_erase_20,
11768 }, { */
11769 .eraseblocks = { { 64 * 1024, 256} },
11770 .block_erase = spi_block_erase_d8,
11771 }, {
11772 .eraseblocks = { { 16384 * 1024, 1} },
11773 .block_erase = spi_block_erase_60,
11774 }, {
11775 .eraseblocks = { { 16384 * 1024, 1} },
11776 .block_erase = spi_block_erase_c7,
11777 }
11778 },
11779 .printlock = spi_prettyprint_status_register_bp2_srwd,
11780 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11781 .write = spi_chip_write_256, /* Multi I/O supported */
11782 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11783 .voltage = {2700, 3600},
11784 },
11785
11786 {
11787 .vendor = "Spansion",
11788 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
11789 .bustype = BUS_SPI,
11790 .manufacture_id = SPANSION_ID,
11791 .model_id = SPANSION_S25FL128,
11792 .total_size = 16384,
11793 .page_size = 512,
11794 /* supports 4B addressing */
11795 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11797 .tested = TEST_UNTESTED,
11798 .probe = probe_spi_rdid,
11799 .probe_timing = TIMING_ZERO,
11800 .block_erasers = {
11801 {
11802 .eraseblocks = { {256 * 1024, 64} },
11803 .block_erase = spi_block_erase_d8,
11804 }, {
11805 .eraseblocks = { { 16384 * 1024, 1} },
11806 .block_erase = spi_block_erase_60,
11807 }, {
11808 .eraseblocks = { { 16384 * 1024, 1} },
11809 .block_erase = spi_block_erase_c7,
11810 }
11811 },
11812 .printlock = spi_prettyprint_status_register_bp2_srwd,
11813 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11814 .write = spi_chip_write_256, /* Multi I/O supported */
11815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11816 .voltage = {2700, 3600},
11817 },
11818
11819 {
11820 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000011821 .name = "S25FL128P......0", /* uniform 64 kB sectors */
11822 .bustype = BUS_SPI,
11823 .manufacture_id = SPANSION_ID,
11824 .model_id = SPANSION_S25FL128,
11825 .total_size = 16384,
11826 .page_size = 256,
11827 .feature_bits = FEATURE_WRSR_WREN,
11828 .tested = TEST_UNTESTED,
11829 .probe = probe_spi_rdid,
11830 .probe_timing = TIMING_ZERO,
11831 .block_erasers = {
11832 {
11833 .eraseblocks = { {64 * 1024, 256} },
11834 .block_erase = spi_block_erase_20,
11835 }, {
11836 .eraseblocks = { {64 * 1024, 256} },
11837 .block_erase = spi_block_erase_d8,
11838 }, {
11839 .eraseblocks = { { 16384 * 1024, 1} },
11840 .block_erase = spi_block_erase_60,
11841 }, {
11842 .eraseblocks = { { 16384 * 1024, 1} },
11843 .block_erase = spi_block_erase_c7,
11844 }
11845 },
11846 .printlock = spi_prettyprint_status_register_bp3_srwd,
11847 .unlock = spi_disable_blockprotect_bp3_srwd,
11848 .write = spi_chip_write_256,
11849 .read = spi_chip_read, /* Fast read (0x0B) supported */
11850 .voltage = {2700, 3600},
11851 },
11852
11853 {
11854 .vendor = "Spansion",
11855 .name = "S25FL128P......1", /* uniform 256kB sectors */
11856 .bustype = BUS_SPI,
11857 .manufacture_id = SPANSION_ID,
11858 .model_id = SPANSION_S25FL128,
11859 .total_size = 16384,
11860 .page_size = 256,
11861 .feature_bits = FEATURE_WRSR_WREN,
11862 .tested = TEST_UNTESTED,
11863 .probe = probe_spi_rdid,
11864 .probe_timing = TIMING_ZERO,
11865 .block_erasers = {
11866 {
11867 .eraseblocks = { {256 * 1024, 64} },
11868 .block_erase = spi_block_erase_d8,
11869 }, {
11870 .eraseblocks = { { 16384 * 1024, 1} },
11871 .block_erase = spi_block_erase_c7,
11872 }
11873 },
11874 .printlock = spi_prettyprint_status_register_bp2_srwd,
11875 .unlock = spi_disable_blockprotect_bp2_srwd,
11876 .write = spi_chip_write_256,
11877 .read = spi_chip_read, /* Fast read (0x0B) supported */
11878 .voltage = {2700, 3600},
11879 },
11880
11881 {
11882 .vendor = "Spansion",
11883 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011884 .bustype = BUS_SPI,
11885 .manufacture_id = SPANSION_ID,
11886 .model_id = SPANSION_S25FL128,
11887 .total_size = 16384,
11888 .page_size = 256,
11889 /* supports 4B addressing */
11890 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011892 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011893 .probe = probe_spi_rdid,
11894 .probe_timing = TIMING_ZERO,
11895 .block_erasers = {
11896 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011897 /* This chip supports erasing of the 32 so-called "parameter sectors" with
11898 * opcode 0x20. Trying to access an address outside these 4kB blocks does
11899 * have no effect on the memory contents, but sets a flag in the SR.
11900 .eraseblocks = {
11901 {4 * 1024, 32},
11902 {64 * 1024, 254} // inaccessible
11903 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011904 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000011905 }, { */
11906 .eraseblocks = { { 64 * 1024, 256} },
11907 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011908 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000011909 .eraseblocks = { { 16384 * 1024, 1} },
11910 .block_erase = spi_block_erase_60,
11911 }, {
11912 .eraseblocks = { { 16384 * 1024, 1} },
11913 .block_erase = spi_block_erase_c7,
11914 }
11915 },
11916 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11917 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11918 .write = spi_chip_write_256, /* Multi I/O supported */
11919 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11920 .voltage = {2700, 3600},
11921 },
11922
11923 {
11924 .vendor = "Spansion",
11925 .name = "S25FL128S......1", /* uniform 256 kB sectors */
11926 .bustype = BUS_SPI,
11927 .manufacture_id = SPANSION_ID,
11928 .model_id = SPANSION_S25FL128,
11929 .total_size = 16384,
11930 .page_size = 512,
11931 /* supports 4B addressing */
11932 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11933 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11934 .tested = TEST_UNTESTED,
11935 .probe = probe_spi_rdid,
11936 .probe_timing = TIMING_ZERO,
11937 .block_erasers = {
11938 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011939 .eraseblocks = { {256 * 1024, 64} },
11940 .block_erase = spi_block_erase_d8,
11941 }, {
11942 .eraseblocks = { { 16384 * 1024, 1} },
11943 .block_erase = spi_block_erase_60,
11944 }, {
11945 .eraseblocks = { { 16384 * 1024, 1} },
11946 .block_erase = spi_block_erase_c7,
11947 }
11948 },
11949 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11950 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11951 .write = spi_chip_write_256, /* Multi I/O supported */
11952 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11953 .voltage = {2700, 3600},
11954 },
11955
11956 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011957 .vendor = "Spansion",
11958 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11959 .bustype = BUS_SPI,
11960 .manufacture_id = SPANSION_ID,
11961 .model_id = SPANSION_S25FL128,
11962 .total_size = 16384,
11963 .page_size = 256,
11964 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11965 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11966 .tested = TEST_OK_PREW,
11967 .probe = probe_spi_rdid,
11968 .probe_timing = TIMING_ZERO,
11969 .block_erasers = {
11970 {
11971 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
11972 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
11973 * effect on the memory contents, but sets a flag in the SR.
11974 .eraseblocks = {
11975 {4 * 1024, 32},
11976 {64 * 1024, 254} // inaccessible
11977 },
11978 .block_erase = spi_block_erase_20,
11979 }, { */
11980 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
11981 .eraseblocks = {
11982 {8 * 1024, 16},
11983 {64 * 1024, 254} // inaccessible
11984 },
11985 .block_erase = spi_block_erase_40,
11986 }, { */
11987 .eraseblocks = { { 64 * 1024, 256} },
11988 .block_erase = spi_block_erase_d8,
11989 }, {
11990 .eraseblocks = { { 16384 * 1024, 1} },
11991 .block_erase = spi_block_erase_60,
11992 }, {
11993 .eraseblocks = { { 16384 * 1024, 1} },
11994 .block_erase = spi_block_erase_c7,
11995 }
11996 },
11997 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11998 .unlock = spi_disable_blockprotect_bp2_srwd,
11999 .write = spi_chip_write_256, /* Multi I/O supported */
12000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12001 .voltage = {2700, 3600},
12002 },
12003
12004 {
12005 .vendor = "Spansion",
12006 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12007 .bustype = BUS_SPI,
12008 .manufacture_id = SPANSION_ID,
12009 .model_id = SPANSION_S25FL128,
12010 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012011 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012012 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12014 .tested = TEST_UNTESTED,
12015 .probe = probe_spi_rdid,
12016 .probe_timing = TIMING_ZERO,
12017 .block_erasers = {
12018 {
12019 .eraseblocks = { {256 * 1024, 64} },
12020 .block_erase = spi_block_erase_d8,
12021 }, {
12022 .eraseblocks = { { 16384 * 1024, 1} },
12023 .block_erase = spi_block_erase_60,
12024 }, {
12025 .eraseblocks = { { 16384 * 1024, 1} },
12026 .block_erase = spi_block_erase_c7,
12027 }
12028 },
12029 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12030 .unlock = spi_disable_blockprotect_bp2_srwd,
12031 .write = spi_chip_write_256, /* Multi I/O supported */
12032 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12033 .voltage = {2700, 3600},
12034 },
12035
12036 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012037 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012038 .name = "SST25LF020A",
12039 .bustype = BUS_SPI,
12040 .manufacture_id = SST_ID,
12041 .model_id = SST_SST25VF020_REMS,
12042 .total_size = 256,
12043 .page_size = 256,
12044 .feature_bits = FEATURE_WRSR_EWSR,
12045 .tested = TEST_OK_PREW,
12046 .probe = probe_spi_rems,
12047 .probe_timing = TIMING_ZERO,
12048 .block_erasers =
12049 {
12050 {
12051 .eraseblocks = { {4 * 1024, 64} },
12052 .block_erase = spi_block_erase_20,
12053 }, {
12054 .eraseblocks = { {32 * 1024, 8} },
12055 .block_erase = spi_block_erase_52,
12056 }, {
12057 .eraseblocks = { {256 * 1024, 1} },
12058 .block_erase = spi_block_erase_60,
12059 },
12060 },
12061 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12062 .unlock = spi_disable_blockprotect,
12063 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12064 .read = spi_chip_read, /* Fast read (0x0B) supported */
12065 .voltage = {2700, 3600},
12066 },
12067
12068 {
12069 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012070 .name = "SST25LF040A",
12071 .bustype = BUS_SPI,
12072 .manufacture_id = SST_ID,
12073 .model_id = SST_SST25VF040_REMS,
12074 .total_size = 512,
12075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012076 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012077 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012078 .probe = probe_spi_res2,
12079 .probe_timing = TIMING_ZERO,
12080 .block_erasers =
12081 {
12082 {
12083 .eraseblocks = { {4 * 1024, 128} },
12084 .block_erase = spi_block_erase_20,
12085 }, {
12086 .eraseblocks = { {32 * 1024, 16} },
12087 .block_erase = spi_block_erase_52,
12088 }, {
12089 .eraseblocks = { {512 * 1024, 1} },
12090 .block_erase = spi_block_erase_60,
12091 },
12092 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012093 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012094 .unlock = spi_disable_blockprotect,
12095 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12096 .read = spi_chip_read,
12097 .voltage = {3000, 3600},
12098 },
12099
12100 {
12101 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012102 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012103 .bustype = BUS_SPI,
12104 .manufacture_id = SST_ID,
12105 .model_id = SST_SST25VF080_REMS,
12106 .total_size = 1024,
12107 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012108 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012109 .tested = TEST_UNTESTED,
12110 .probe = probe_spi_res2,
12111 .probe_timing = TIMING_ZERO,
12112 .block_erasers =
12113 {
12114 {
12115 .eraseblocks = { {4 * 1024, 256} },
12116 .block_erase = spi_block_erase_20,
12117 }, {
12118 .eraseblocks = { {32 * 1024, 32} },
12119 .block_erase = spi_block_erase_52,
12120 }, {
12121 .eraseblocks = { {1024 * 1024, 1} },
12122 .block_erase = spi_block_erase_60,
12123 },
12124 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012125 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012126 .unlock = spi_disable_blockprotect,
12127 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12128 .read = spi_chip_read,
12129 .voltage = {3000, 3600},
12130 },
12131
12132 {
12133 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012134 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012135 .bustype = BUS_SPI,
12136 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012137 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012138 .total_size = 64,
12139 .page_size = 256,
12140 .feature_bits = FEATURE_WRSR_EWSR,
12141 .tested = TEST_OK_PREW,
12142 .probe = probe_spi_rems,
12143 .probe_timing = TIMING_ZERO,
12144 .block_erasers =
12145 {
12146 {
12147 .eraseblocks = { {4 * 1024, 16} },
12148 .block_erase = spi_block_erase_20,
12149 }, {
12150 .eraseblocks = { {32 * 1024, 2} },
12151 .block_erase = spi_block_erase_52,
12152 }, {
12153 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012154 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012155 }, {
12156 .eraseblocks = { {64 * 1024, 1} },
12157 .block_erase = spi_block_erase_60,
12158 }, {
12159 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012160 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012161 },
12162 },
12163 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12164 .unlock = spi_disable_blockprotect,
12165 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012166 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012167 .voltage = {2700, 3600},
12168 },
12169
12170 {
12171 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012172 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012173 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012174 .manufacture_id = SST_ID,
12175 .model_id = SST_SST25VF010_REMS,
12176 .total_size = 128,
12177 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012178 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012179 .tested = TEST_OK_PREW,
12180 .probe = probe_spi_rems,
12181 .probe_timing = TIMING_ZERO,
12182 .block_erasers =
12183 {
12184 {
12185 .eraseblocks = { {4 * 1024, 32} },
12186 .block_erase = spi_block_erase_20,
12187 }, {
12188 .eraseblocks = { {32 * 1024, 4} },
12189 .block_erase = spi_block_erase_52,
12190 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012191 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012192 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012193 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012194 .eraseblocks = { {128 * 1024, 1} },
12195 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012196 }, {
12197 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012198 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012199 },
12200 },
12201 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12202 .unlock = spi_disable_blockprotect,
12203 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012204 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012205 .voltage = {2700, 3600},
12206 },
12207
12208 {
12209 .vendor = "SST",
12210 .name = "SST25VF020",
12211 .bustype = BUS_SPI,
12212 .manufacture_id = SST_ID,
12213 .model_id = SST_SST25VF020_REMS,
12214 .total_size = 256,
12215 .page_size = 256,
12216 .feature_bits = FEATURE_WRSR_EWSR,
12217 .tested = TEST_UNTESTED,
12218 .probe = probe_spi_rems,
12219 .probe_timing = TIMING_ZERO,
12220 .block_erasers =
12221 {
12222 {
12223 .eraseblocks = { {4 * 1024, 64} },
12224 .block_erase = spi_block_erase_20,
12225 }, {
12226 .eraseblocks = { {32 * 1024, 8} },
12227 .block_erase = spi_block_erase_52,
12228 }, {
12229 .eraseblocks = { {256 * 1024, 1} },
12230 .block_erase = spi_block_erase_60,
12231 },
12232 },
12233 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12234 .unlock = spi_disable_blockprotect,
12235 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12236 .read = spi_chip_read, /* only */
12237 .voltage = {2700, 3600},
12238 },
12239
12240 {
12241 .vendor = "SST",
12242 .name = "SST25VF020B",
12243 .bustype = BUS_SPI,
12244 .manufacture_id = SST_ID,
12245 .model_id = SST_SST25VF020B,
12246 .total_size = 256,
12247 .page_size = 256,
12248 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012249 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012250 .probe = probe_spi_rdid,
12251 .probe_timing = TIMING_ZERO,
12252 .block_erasers =
12253 {
12254 {
12255 .eraseblocks = { {4 * 1024, 64} },
12256 .block_erase = spi_block_erase_20,
12257 }, {
12258 .eraseblocks = { {32 * 1024, 8} },
12259 .block_erase = spi_block_erase_52,
12260 }, {
12261 .eraseblocks = { {64 * 1024, 4} },
12262 .block_erase = spi_block_erase_d8,
12263 }, {
12264 .eraseblocks = { {256 * 1024, 1} },
12265 .block_erase = spi_block_erase_60,
12266 }, {
12267 .eraseblocks = { {256 * 1024, 1} },
12268 .block_erase = spi_block_erase_c7,
12269 },
12270 },
12271 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12272 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12273 .write = spi_aai_write, /* AAI supported (0xAD) */
12274 .read = spi_chip_read, /* Fast read (0x0B) supported */
12275 .voltage = {2700, 3600},
12276 },
12277
12278 {
12279 .vendor = "SST",
12280 .name = "SST25VF040",
12281 .bustype = BUS_SPI,
12282 .manufacture_id = SST_ID,
12283 .model_id = SST_SST25VF040_REMS,
12284 .total_size = 512,
12285 .page_size = 256,
12286 .feature_bits = FEATURE_WRSR_EWSR,
12287 .tested = TEST_OK_PR,
12288 .probe = probe_spi_rems,
12289 .probe_timing = TIMING_ZERO,
12290 .block_erasers =
12291 {
12292 {
12293 .eraseblocks = { {4 * 1024, 128} },
12294 .block_erase = spi_block_erase_20,
12295 }, {
12296 .eraseblocks = { {32 * 1024, 16} },
12297 .block_erase = spi_block_erase_52,
12298 }, {
12299 .eraseblocks = { {512 * 1024, 1} },
12300 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012301 },
12302 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012303 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012304 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012305 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12306 .read = spi_chip_read,
12307 .voltage = {2700, 3600},
12308 },
12309
12310 {
12311 .vendor = "SST",
12312 .name = "SST25VF040B",
12313 .bustype = BUS_SPI,
12314 .manufacture_id = SST_ID,
12315 .model_id = SST_SST25VF040B,
12316 .total_size = 512,
12317 .page_size = 256,
12318 .feature_bits = FEATURE_WRSR_EWSR,
12319 .tested = TEST_OK_PREW,
12320 .probe = probe_spi_rdid,
12321 .probe_timing = TIMING_ZERO,
12322 .block_erasers =
12323 {
12324 {
12325 .eraseblocks = { {4 * 1024, 128} },
12326 .block_erase = spi_block_erase_20,
12327 }, {
12328 .eraseblocks = { {32 * 1024, 16} },
12329 .block_erase = spi_block_erase_52,
12330 }, {
12331 .eraseblocks = { {64 * 1024, 8} },
12332 .block_erase = spi_block_erase_d8,
12333 }, {
12334 .eraseblocks = { {512 * 1024, 1} },
12335 .block_erase = spi_block_erase_60,
12336 }, {
12337 .eraseblocks = { {512 * 1024, 1} },
12338 .block_erase = spi_block_erase_c7,
12339 },
12340 },
12341 .printlock = spi_prettyprint_status_register_sst25vf040b,
12342 .unlock = spi_disable_blockprotect,
12343 .write = spi_aai_write, /* AAI supported (0xAD) */
12344 .read = spi_chip_read, /* Fast read (0x0B) supported */
12345 .voltage = {2700, 3600},
12346 },
12347
12348 {
12349 .vendor = "SST",
12350 .name = "SST25VF040B.REMS",
12351 .bustype = BUS_SPI,
12352 .manufacture_id = SST_ID,
12353 .model_id = SST_SST25VF040B_REMS,
12354 .total_size = 512,
12355 .page_size = 256,
12356 .feature_bits = FEATURE_WRSR_EWSR,
12357 .tested = TEST_OK_PREW,
12358 .probe = probe_spi_rems,
12359 .probe_timing = TIMING_ZERO,
12360 .block_erasers =
12361 {
12362 {
12363 .eraseblocks = { {4 * 1024, 128} },
12364 .block_erase = spi_block_erase_20,
12365 }, {
12366 .eraseblocks = { {32 * 1024, 16} },
12367 .block_erase = spi_block_erase_52,
12368 }, {
12369 .eraseblocks = { {64 * 1024, 8} },
12370 .block_erase = spi_block_erase_d8,
12371 }, {
12372 .eraseblocks = { {512 * 1024, 1} },
12373 .block_erase = spi_block_erase_60,
12374 }, {
12375 .eraseblocks = { {512 * 1024, 1} },
12376 .block_erase = spi_block_erase_c7,
12377 },
12378 },
12379 .printlock = spi_prettyprint_status_register_sst25vf040b,
12380 .unlock = spi_disable_blockprotect,
12381 .write = spi_aai_write,
12382 .read = spi_chip_read,
12383 .voltage = {2700, 3600},
12384 },
12385
12386 {
12387 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012388 .name = "SST25WF020A",
12389 .bustype = BUS_SPI,
12390 .manufacture_id = SANYO_ID, /* See flashchips.h */
12391 .model_id = SST_SST25WF020A,
12392 .total_size = 256,
12393 .page_size = 256,
12394 .feature_bits = FEATURE_WRSR_WREN,
12395 .tested = TEST_UNTESTED,
12396 .probe = probe_spi_rdid,
12397 .probe_timing = TIMING_ZERO,
12398 .block_erasers =
12399 {
12400 {
12401 .eraseblocks = { {4 * 1024, 64} },
12402 .block_erase = spi_block_erase_20,
12403 }, {
12404 .eraseblocks = { {64 * 1024, 4} },
12405 .block_erase = spi_block_erase_d8,
12406 }, {
12407 .eraseblocks = { {256 * 1024, 1} },
12408 .block_erase = spi_block_erase_60,
12409 }, {
12410 .eraseblocks = { {256 * 1024, 1} },
12411 .block_erase = spi_block_erase_c7,
12412 },
12413 },
12414 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12415 .unlock = spi_disable_blockprotect_bp2_srwd,
12416 .write = spi_chip_write_256,
12417 .read = spi_chip_read, /* Fast read (0x0B) supported */
12418 .voltage = {1650, 1950},
12419 },
12420
12421 {
12422 .vendor = "SST",
12423 .name = "SST25WF040B",
12424 .bustype = BUS_SPI,
12425 .manufacture_id = SANYO_ID, /* See flashchips.h */
12426 .model_id = SST_SST25WF040B,
12427 .total_size = 512,
12428 .page_size = 256,
12429 .feature_bits = FEATURE_WRSR_WREN,
12430 .tested = TEST_UNTESTED,
12431 .probe = probe_spi_rdid,
12432 .probe_timing = TIMING_ZERO,
12433 .block_erasers =
12434 {
12435 {
12436 .eraseblocks = { {4 * 1024, 128} },
12437 .block_erase = spi_block_erase_20,
12438 }, {
12439 .eraseblocks = { {64 * 1024, 8} },
12440 .block_erase = spi_block_erase_d8,
12441 }, {
12442 .eraseblocks = { {512 * 1024, 1} },
12443 .block_erase = spi_block_erase_60,
12444 }, {
12445 .eraseblocks = { {512 * 1024, 1} },
12446 .block_erase = spi_block_erase_c7,
12447 },
12448 },
12449 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12450 .unlock = spi_disable_blockprotect_bp2_srwd,
12451 .write = spi_chip_write_256,
12452 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12453 .voltage = {1650, 1950},
12454 },
12455
12456 {
12457 .vendor = "SST",
12458 .name = "SST25WF080B",
12459 .bustype = BUS_SPI,
12460 .manufacture_id = SANYO_ID, /* See flashchips.h */
12461 .model_id = SST_SST25WF080B,
12462 .total_size = 1024,
12463 .page_size = 256,
12464 .feature_bits = FEATURE_WRSR_WREN,
12465 .tested = TEST_OK_PREW,
12466 .probe = probe_spi_rdid,
12467 .probe_timing = TIMING_ZERO,
12468 .block_erasers =
12469 {
12470 {
12471 .eraseblocks = { {4 * 1024, 256} },
12472 .block_erase = spi_block_erase_20,
12473 }, {
12474 .eraseblocks = { {64 * 1024, 16} },
12475 .block_erase = spi_block_erase_d8,
12476 }, {
12477 .eraseblocks = { {1024 * 1024, 1} },
12478 .block_erase = spi_block_erase_60,
12479 }, {
12480 .eraseblocks = { {1024 * 1024, 1} },
12481 .block_erase = spi_block_erase_c7,
12482 },
12483 },
12484 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12485 .unlock = spi_disable_blockprotect_bp2_srwd,
12486 .write = spi_chip_write_256,
12487 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12488 .voltage = {1650, 1950},
12489 },
12490
12491 {
12492 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012493 .name = "SST25VF080B",
12494 .bustype = BUS_SPI,
12495 .manufacture_id = SST_ID,
12496 .model_id = SST_SST25VF080B,
12497 .total_size = 1024,
12498 .page_size = 256,
12499 .feature_bits = FEATURE_WRSR_EWSR,
12500 .tested = TEST_OK_PREW,
12501 .probe = probe_spi_rdid,
12502 .probe_timing = TIMING_ZERO,
12503 .block_erasers =
12504 {
12505 {
12506 .eraseblocks = { {4 * 1024, 256} },
12507 .block_erase = spi_block_erase_20,
12508 }, {
12509 .eraseblocks = { {32 * 1024, 32} },
12510 .block_erase = spi_block_erase_52,
12511 }, {
12512 .eraseblocks = { {64 * 1024, 16} },
12513 .block_erase = spi_block_erase_d8,
12514 }, {
12515 .eraseblocks = { {1024 * 1024, 1} },
12516 .block_erase = spi_block_erase_60,
12517 }, {
12518 .eraseblocks = { {1024 * 1024, 1} },
12519 .block_erase = spi_block_erase_c7,
12520 },
12521 },
12522 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12523 .unlock = spi_disable_blockprotect,
12524 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012525 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012526 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012527 },
12528
12529 {
12530 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012531 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012532 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012533 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012534 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012535 .total_size = 2048,
12536 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012537 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012538 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012539 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012540 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012541 .block_erasers =
12542 {
12543 {
12544 .eraseblocks = { {4 * 1024, 512} },
12545 .block_erase = spi_block_erase_20,
12546 }, {
12547 .eraseblocks = { {32 * 1024, 64} },
12548 .block_erase = spi_block_erase_52,
12549 }, {
12550 .eraseblocks = { {64 * 1024, 32} },
12551 .block_erase = spi_block_erase_d8,
12552 }, {
12553 .eraseblocks = { {2 * 1024 * 1024, 1} },
12554 .block_erase = spi_block_erase_60,
12555 }, {
12556 .eraseblocks = { {2 * 1024 * 1024, 1} },
12557 .block_erase = spi_block_erase_c7,
12558 },
12559 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012560 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012561 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012562 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012563 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012564 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012565 },
12566
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012567 {
12568 .vendor = "SST",
12569 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012570 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012571 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012572 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012573 .total_size = 4096,
12574 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012575 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012576 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012577 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012578 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012579 .block_erasers =
12580 {
12581 {
12582 .eraseblocks = { {4 * 1024, 1024} },
12583 .block_erase = spi_block_erase_20,
12584 }, {
12585 .eraseblocks = { {32 * 1024, 128} },
12586 .block_erase = spi_block_erase_52,
12587 }, {
12588 .eraseblocks = { {64 * 1024, 64} },
12589 .block_erase = spi_block_erase_d8,
12590 }, {
12591 .eraseblocks = { {4 * 1024 * 1024, 1} },
12592 .block_erase = spi_block_erase_60,
12593 }, {
12594 .eraseblocks = { {4 * 1024 * 1024, 1} },
12595 .block_erase = spi_block_erase_c7,
12596 },
12597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012598 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012599 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012600 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012601 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012602 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012603 },
12604
12605 {
12606 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012607 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012608 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012609 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012610 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012611 .total_size = 8192,
12612 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012613 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012614 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012615 .probe = probe_spi_rdid,
12616 .probe_timing = TIMING_ZERO,
12617 .block_erasers =
12618 {
12619 {
12620 .eraseblocks = { {4 * 1024, 2048} },
12621 .block_erase = spi_block_erase_20,
12622 }, {
12623 .eraseblocks = { {32 * 1024, 256} },
12624 .block_erase = spi_block_erase_52,
12625 }, {
12626 .eraseblocks = { {64 * 1024, 128} },
12627 .block_erase = spi_block_erase_d8,
12628 }, {
12629 .eraseblocks = { {8 * 1024 * 1024, 1} },
12630 .block_erase = spi_block_erase_60,
12631 }, {
12632 .eraseblocks = { {8 * 1024 * 1024, 1} },
12633 .block_erase = spi_block_erase_c7,
12634 },
12635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012636 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012637 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012638 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012640 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012641 },
12642
12643 {
12644 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000012645 .name = "SST25WF512",
12646 .bustype = BUS_SPI,
12647 .manufacture_id = SST_ID,
12648 .model_id = SST_SST25WF512,
12649 .total_size = 64,
12650 .page_size = 256,
12651 .feature_bits = FEATURE_WRSR_EITHER,
12652 .tested = TEST_UNTESTED,
12653 .probe = probe_spi_rdid,
12654 .probe_timing = TIMING_ZERO,
12655 .block_erasers =
12656 {
12657 {
12658 .eraseblocks = { {4 * 1024, 16} },
12659 .block_erase = spi_block_erase_20,
12660 }, {
12661 .eraseblocks = { {32 * 1024, 2} },
12662 .block_erase = spi_block_erase_52,
12663 }, {
12664 .eraseblocks = { {1024 * 64, 1} },
12665 .block_erase = spi_block_erase_60,
12666 }, {
12667 .eraseblocks = { {1024 * 64, 1} },
12668 .block_erase = spi_block_erase_c7,
12669 },
12670 },
Jason Harper43ddef02014-05-04 00:55:24 +000012671 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12672 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012673 .write = spi_aai_write,
12674 .read = spi_chip_read, /* Fast read (0x0B) supported */
12675 .voltage = {1650, 1950},
12676 },
12677
12678 {
12679 .vendor = "SST",
12680 .name = "SST25WF010",
12681 .bustype = BUS_SPI,
12682 .manufacture_id = SST_ID,
12683 .model_id = SST_SST25WF010,
12684 .total_size = 128,
12685 .page_size = 256,
12686 .feature_bits = FEATURE_WRSR_EITHER,
12687 .tested = TEST_UNTESTED,
12688 .probe = probe_spi_rdid,
12689 .probe_timing = TIMING_ZERO,
12690 .block_erasers =
12691 {
12692 {
12693 .eraseblocks = { {4 * 1024, 32} },
12694 .block_erase = spi_block_erase_20,
12695 }, {
12696 .eraseblocks = { {32 * 1024, 4} },
12697 .block_erase = spi_block_erase_52,
12698 }, {
12699 .eraseblocks = { {1024 * 128, 1} },
12700 .block_erase = spi_block_erase_60,
12701 }, {
12702 .eraseblocks = { {1024 * 128, 1} },
12703 .block_erase = spi_block_erase_c7,
12704 },
12705 },
Jason Harper43ddef02014-05-04 00:55:24 +000012706 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12707 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012708 .write = spi_aai_write,
12709 .read = spi_chip_read, /* Fast read (0x0B) supported */
12710 .voltage = {1650, 1950},
12711 },
12712
12713 {
12714 .vendor = "SST",
12715 .name = "SST25WF020",
12716 .bustype = BUS_SPI,
12717 .manufacture_id = SST_ID,
12718 .model_id = SST_SST25WF020,
12719 .total_size = 256,
12720 .page_size = 256,
12721 .feature_bits = FEATURE_WRSR_EITHER,
12722 .tested = TEST_UNTESTED,
12723 .probe = probe_spi_rdid,
12724 .probe_timing = TIMING_ZERO,
12725 .block_erasers =
12726 {
12727 {
12728 .eraseblocks = { {4 * 1024, 64} },
12729 .block_erase = spi_block_erase_20,
12730 }, {
12731 .eraseblocks = { {32 * 1024, 8} },
12732 .block_erase = spi_block_erase_52,
12733 }, {
12734 .eraseblocks = { {64 * 1024, 4} },
12735 .block_erase = spi_block_erase_d8,
12736 }, {
12737 .eraseblocks = { {1024 * 256, 1} },
12738 .block_erase = spi_block_erase_60,
12739 }, {
12740 .eraseblocks = { {1024 * 256, 1} },
12741 .block_erase = spi_block_erase_c7,
12742 },
12743 },
Jason Harper43ddef02014-05-04 00:55:24 +000012744 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12745 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012746 .write = spi_aai_write,
12747 .read = spi_chip_read, /* Fast read (0x0B) supported */
12748 .voltage = {1650, 1950},
12749 },
12750
12751 {
12752 .vendor = "SST",
12753 .name = "SST25WF040",
12754 .bustype = BUS_SPI,
12755 .manufacture_id = SST_ID,
12756 .model_id = SST_SST25WF040,
12757 .total_size = 512,
12758 .page_size = 256,
12759 .feature_bits = FEATURE_WRSR_EITHER,
12760 .tested = TEST_UNTESTED,
12761 .probe = probe_spi_rdid,
12762 .probe_timing = TIMING_ZERO,
12763 .block_erasers =
12764 {
12765 {
12766 .eraseblocks = { {4 * 1024, 128} },
12767 .block_erase = spi_block_erase_20,
12768 }, {
12769 .eraseblocks = { {32 * 1024, 16} },
12770 .block_erase = spi_block_erase_52,
12771 }, {
12772 .eraseblocks = { {64 * 1024, 8} },
12773 .block_erase = spi_block_erase_d8,
12774 }, {
12775 .eraseblocks = { {1024 * 512, 1} },
12776 .block_erase = spi_block_erase_60,
12777 }, {
12778 .eraseblocks = { {1024 * 512, 1} },
12779 .block_erase = spi_block_erase_c7,
12780 },
12781 },
Jason Harper43ddef02014-05-04 00:55:24 +000012782 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12783 .unlock = spi_disable_blockprotect_bp2_srwd,
12784 .write = spi_aai_write,
12785 .read = spi_chip_read, /* Fast read (0x0B) supported */
12786 .voltage = {1650, 1950},
12787 },
12788
12789 {
12790 .vendor = "SST",
12791 .name = "SST25WF080",
12792 .bustype = BUS_SPI,
12793 .manufacture_id = SST_ID,
12794 .model_id = SST_SST25WF080,
12795 .total_size = 1024,
12796 .page_size = 256,
12797 .feature_bits = FEATURE_WRSR_EITHER,
12798 .tested = TEST_OK_PREW,
12799 .probe = probe_spi_rdid,
12800 .probe_timing = TIMING_ZERO,
12801 .block_erasers =
12802 {
12803 {
12804 .eraseblocks = { {4 * 1024, 256} },
12805 .block_erase = spi_block_erase_20,
12806 }, {
12807 .eraseblocks = { {32 * 1024, 32} },
12808 .block_erase = spi_block_erase_52,
12809 }, {
12810 .eraseblocks = { {64 * 1024, 16} },
12811 .block_erase = spi_block_erase_d8,
12812 }, {
12813 .eraseblocks = { {1024 * 1024, 1} },
12814 .block_erase = spi_block_erase_60,
12815 }, {
12816 .eraseblocks = { {1024 * 1024, 1} },
12817 .block_erase = spi_block_erase_c7,
12818 },
12819 },
12820 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12821 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012822 .write = spi_aai_write,
12823 .read = spi_chip_read, /* Fast read (0x0B) supported */
12824 .voltage = {1650, 1950},
12825 },
12826
12827 {
12828 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012829 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012830 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012831 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012832 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012833 .total_size = 512,
12834 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012835 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012836 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012837 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012838 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012839 .block_erasers =
12840 {
12841 {
12842 .eraseblocks = { {128, 4096} },
12843 .block_erase = erase_sector_28sf040,
12844 }, {
12845 .eraseblocks = { {512 * 1024, 1} },
12846 .block_erase = erase_chip_28sf040,
12847 }
12848 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012849 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012850 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012851 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012852 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012853 },
12854
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012855 {
12856 .vendor = "SST",
12857 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012858 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012859 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012860 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012861 .total_size = 128,
12862 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012863 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012864 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012865 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012866 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012867 .block_erasers =
12868 {
12869 {
12870 .eraseblocks = { {128 * 1024, 1} },
12871 .block_erase = erase_chip_block_jedec,
12872 }
12873 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012874 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012876 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012877 },
12878
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012879 {
12880 .vendor = "SST",
12881 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012882 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012883 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012884 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012885 .total_size = 128,
12886 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012887 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012888 .tested = TEST_UNTESTED,
12889 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012890 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012891 .block_erasers =
12892 {
12893 {
12894 .eraseblocks = { {128 * 1024, 1} },
12895 .block_erase = erase_chip_block_jedec,
12896 }
12897 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012898 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012899 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012900 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012901 },
12902
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012903 {
12904 .vendor = "SST",
12905 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012906 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012907 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012908 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012909 .total_size = 256,
12910 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012911 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012912 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012913 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012914 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012915 .block_erasers =
12916 {
12917 {
12918 .eraseblocks = { {256 * 1024, 1} },
12919 .block_erase = erase_chip_block_jedec,
12920 }
12921 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012922 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012924 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012925 },
12926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012927 {
12928 .vendor = "SST",
12929 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012930 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012931 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012932 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012933 .total_size = 256,
12934 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012935 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012936 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012937 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012938 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012939 .block_erasers =
12940 {
12941 {
12942 .eraseblocks = { {256 * 1024, 1} },
12943 .block_erase = erase_chip_block_jedec,
12944 }
12945 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012946 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012948 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012949 },
12950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012951 {
12952 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000012953 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012954 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012955 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012956 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012957 .total_size = 64,
12958 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012959 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000012960 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012961 .probe = probe_jedec,
12962 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000012963 .block_erasers =
12964 {
12965 {
12966 .eraseblocks = { {4 * 1024, 16} },
12967 .block_erase = erase_sector_jedec,
12968 }, {
12969 .eraseblocks = { {64 * 1024, 1} },
12970 .block_erase = erase_chip_block_jedec,
12971 }
12972 },
Sean Nelson35727f72010-01-28 23:55:12 +000012973 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012975 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000012976 },
12977
12978 {
12979 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012980 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012981 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012982 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012983 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012984 .total_size = 128,
12985 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012986 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012987 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012988 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012989 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012990 .block_erasers =
12991 {
12992 {
12993 .eraseblocks = { {4 * 1024, 32} },
12994 .block_erase = erase_sector_jedec,
12995 }, {
12996 .eraseblocks = { {128 * 1024, 1} },
12997 .block_erase = erase_chip_block_jedec,
12998 }
12999 },
Sean Nelson35727f72010-01-28 23:55:12 +000013000 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013002 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013003 },
13004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013005 {
13006 .vendor = "SST",
13007 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013008 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013009 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013010 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013011 .total_size = 256,
13012 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013013 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013015 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013016 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013017 .block_erasers =
13018 {
13019 {
13020 .eraseblocks = { {4 * 1024, 64} },
13021 .block_erase = erase_sector_jedec,
13022 }, {
13023 .eraseblocks = { {256 * 1024, 1} },
13024 .block_erase = erase_chip_block_jedec,
13025 }
13026 },
Sean Nelson35727f72010-01-28 23:55:12 +000013027 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013029 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013030 },
13031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013032 {
13033 .vendor = "SST",
13034 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013035 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013036 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013037 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013038 .total_size = 512,
13039 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013040 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013041 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013042 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013043 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013044 .block_erasers =
13045 {
13046 {
13047 .eraseblocks = { {4 * 1024, 128} },
13048 .block_erase = erase_sector_jedec,
13049 }, {
13050 .eraseblocks = { {512 * 1024, 1} },
13051 .block_erase = erase_chip_block_jedec,
13052 }
13053 },
Sean Nelson35727f72010-01-28 23:55:12 +000013054 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013055 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013056 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013057 },
13058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013059 {
13060 .vendor = "SST",
13061 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013063 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013064 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013065 .total_size = 64,
13066 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013067 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013068 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013069 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013070 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013071 .block_erasers =
13072 {
13073 {
13074 .eraseblocks = { {4 * 1024, 16} },
13075 .block_erase = erase_sector_jedec,
13076 }, {
13077 .eraseblocks = { {64 * 1024, 1} },
13078 .block_erase = erase_chip_block_jedec,
13079 }
13080 },
Sean Nelson35727f72010-01-28 23:55:12 +000013081 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013082 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013083 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013084 },
13085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013086 {
13087 .vendor = "SST",
13088 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013089 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013090 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013091 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013092 .total_size = 128,
13093 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013094 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013095 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013096 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013097 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013098 .block_erasers =
13099 {
13100 {
13101 .eraseblocks = { {4 * 1024, 32} },
13102 .block_erase = erase_sector_jedec,
13103 }, {
13104 .eraseblocks = { {128 * 1024, 1} },
13105 .block_erase = erase_chip_block_jedec,
13106 }
13107 },
Sean Nelson35727f72010-01-28 23:55:12 +000013108 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013109 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013110 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013111 },
13112
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013113 {
13114 .vendor = "SST",
13115 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013116 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013117 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013118 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013119 .total_size = 256,
13120 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013121 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013122 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013123 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013124 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013125 .block_erasers =
13126 {
13127 {
13128 .eraseblocks = { {4 * 1024, 64} },
13129 .block_erase = erase_sector_jedec,
13130 }, {
13131 .eraseblocks = { {256 * 1024, 1} },
13132 .block_erase = erase_chip_block_jedec,
13133 }
13134 },
Sean Nelson35727f72010-01-28 23:55:12 +000013135 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013136 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013138 },
13139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013140 {
13141 .vendor = "SST",
13142 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013143 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013144 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013145 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013146 .total_size = 512,
13147 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013148 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013149 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013150 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013151 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013152 .block_erasers =
13153 {
13154 {
13155 .eraseblocks = { {4 * 1024, 128} },
13156 .block_erase = erase_sector_jedec,
13157 }, {
13158 .eraseblocks = { {512 * 1024, 1} },
13159 .block_erase = erase_chip_block_jedec,
13160 }
13161 },
Sean Nelson35727f72010-01-28 23:55:12 +000013162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013164 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013165 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013167 {
13168 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013169 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013170 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013172 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013173 .total_size = 1024,
13174 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013175 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013176 .tested = TEST_UNTESTED,
13177 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013178 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013179 .block_erasers =
13180 {
13181 {
13182 .eraseblocks = { {4 * 1024, 256} },
13183 .block_erase = erase_sector_jedec,
13184 }, {
13185 .eraseblocks = { {64 * 1024, 16} },
13186 .block_erase = erase_block_jedec,
13187 }, {
13188 .eraseblocks = { {1024 * 1024, 1} },
13189 .block_erase = erase_chip_block_jedec,
13190 }
13191 },
Sean Nelson35727f72010-01-28 23:55:12 +000013192 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013193 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013194 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013195 },
13196
13197 {
13198 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013199 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013200 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013201 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013202 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013203 .total_size = 256,
13204 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013205 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013206 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013207 .probe = probe_jedec,
13208 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013209 .block_erasers =
13210 {
13211 {
13212 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013213 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013214 }, {
13215 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013216 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013217 }, {
13218 .eraseblocks = { {256 * 1024, 1} },
13219 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13220 }
13221 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013222 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013223 .unlock = unlock_sst_fwhub,
13224 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013226 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013227 },
13228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013229 {
13230 .vendor = "SST",
13231 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013232 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013233 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013234 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013235 .total_size = 384,
13236 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013237 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013238 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013239 .probe = probe_jedec,
13240 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013241 .block_erasers =
13242 {
13243 {
13244 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013245 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013246 }, {
13247 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013248 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013249 }, {
13250 .eraseblocks = { {384 * 1024, 1} },
13251 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13252 }
13253 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013254 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013255 .unlock = unlock_sst_fwhub,
13256 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013258 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013259 },
13260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013261 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013262 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13263 * and is only honored for 64k block erase, but not 4k sector erase.
13264 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013265 .vendor = "SST",
13266 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013267 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013268 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013269 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013270 .total_size = 512,
13271 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013272 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013273 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013274 .probe = probe_jedec,
13275 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013276 .block_erasers =
13277 {
13278 {
13279 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013280 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013281 }, {
13282 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013283 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013284 }, {
13285 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013286 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013287 },
13288 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013289 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013290 .unlock = unlock_sst_fwhub,
13291 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013293 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013294 },
13295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013296 {
13297 .vendor = "SST",
13298 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013299 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013300 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013301 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013302 .total_size = 512,
13303 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013304 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013305 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013306 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013307 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013308 .block_erasers =
13309 {
13310 {
13311 .eraseblocks = { {4 * 1024, 128} },
13312 .block_erase = erase_sector_49lfxxxc,
13313 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013314 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013315 {64 * 1024, 7},
13316 {32 * 1024, 1},
13317 {8 * 1024, 2},
13318 {16 * 1024, 1},
13319 },
Sean Nelson69e58112010-03-23 17:10:28 +000013320 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013321 }
13322 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013323 .printlock = printlock_regspace2_block_eraser_1,
13324 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013325 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013326 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013327 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013328 },
13329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013330 {
13331 .vendor = "SST",
13332 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013333 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013334 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013335 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013336 .total_size = 1024,
13337 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013338 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013339 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013340 .probe = probe_jedec,
13341 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013342 .block_erasers =
13343 {
13344 {
13345 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013346 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013347 }, {
13348 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013349 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013350 }, {
13351 .eraseblocks = { {1024 * 1024, 1} },
13352 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13353 }
13354 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013355 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013356 .unlock = unlock_sst_fwhub,
13357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013358 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013359 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013360 },
13361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013362 {
13363 .vendor = "SST",
13364 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013365 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013366 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013367 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013368 .total_size = 1024,
13369 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013370 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013371 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013372 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013373 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013374 .block_erasers =
13375 {
13376 {
13377 .eraseblocks = { {4 * 1024, 256} },
13378 .block_erase = erase_sector_49lfxxxc,
13379 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013380 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013381 {64 * 1024, 15},
13382 {32 * 1024, 1},
13383 {8 * 1024, 2},
13384 {16 * 1024, 1},
13385 },
Sean Nelson69e58112010-03-23 17:10:28 +000013386 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013387 }
13388 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013389 .printlock = printlock_regspace2_block_eraser_1,
13390 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013391 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013392 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013393 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013394 },
13395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013396 {
13397 .vendor = "SST",
13398 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013399 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013400 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013401 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013402 .total_size = 2048,
13403 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013404 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013405 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013406 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013407 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013408 .block_erasers =
13409 {
13410 {
13411 .eraseblocks = { {4 * 1024, 512} },
13412 .block_erase = erase_sector_49lfxxxc,
13413 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013414 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013415 {64 * 1024, 31},
13416 {32 * 1024, 1},
13417 {8 * 1024, 2},
13418 {16 * 1024, 1},
13419 },
Sean Nelson69e58112010-03-23 17:10:28 +000013420 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013421 }
13422 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013423 .printlock = printlock_regspace2_block_eraser_1,
13424 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013425 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013427 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013428 },
13429
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013430 {
13431 .vendor = "SST",
13432 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013433 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013434 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013435 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013436 .total_size = 256,
13437 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013438 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013440 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013441 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013442 .block_erasers =
13443 {
13444 {
13445 .eraseblocks = { {4 * 1024, 64} },
13446 .block_erase = erase_sector_jedec,
13447 }, {
13448 .eraseblocks = { {16 * 1024, 16} },
13449 .block_erase = erase_block_jedec,
13450 }, {
13451 .eraseblocks = { {256 * 1024, 1} },
13452 .block_erase = NULL,
13453 }
13454 },
Sean Nelson35727f72010-01-28 23:55:12 +000013455 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013457 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013458 },
13459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013460 {
13461 .vendor = "SST",
13462 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013463 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013464 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013465 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013466 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013467 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013468 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013469 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013470 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013471 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013472 .block_erasers =
13473 {
13474 {
13475 .eraseblocks = { {4 * 1024, 64} },
13476 .block_erase = erase_sector_jedec,
13477 }, {
13478 .eraseblocks = { {16 * 1024, 16} },
13479 .block_erase = erase_block_jedec,
13480 }, {
13481 .eraseblocks = { {256 * 1024, 1} },
13482 .block_erase = NULL,
13483 }
13484 },
Sean Nelson35727f72010-01-28 23:55:12 +000013485 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013486 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013487 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013488 },
13489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013490 {
13491 .vendor = "SST",
13492 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013493 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013494 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013495 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013496 .total_size = 512,
13497 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013498 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013499 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013500 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013501 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013502 .block_erasers =
13503 {
13504 {
13505 .eraseblocks = { {4 * 1024, 128} },
13506 .block_erase = erase_sector_jedec,
13507 }, {
13508 .eraseblocks = { {64 * 1024, 8} },
13509 .block_erase = erase_block_jedec,
13510 }, {
13511 .eraseblocks = { {512 * 1024, 1} },
13512 .block_erase = NULL,
13513 }
13514 },
Sean Nelson35727f72010-01-28 23:55:12 +000013515 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013517 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013518 },
13519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013520 {
13521 .vendor = "SST",
13522 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013523 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013524 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013525 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013526 .total_size = 512,
13527 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013528 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013529 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013530 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013531 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013532 .block_erasers =
13533 {
13534 {
13535 .eraseblocks = { {4 * 1024, 128} },
13536 .block_erase = erase_sector_jedec,
13537 }, {
13538 .eraseblocks = { {64 * 1024, 8} },
13539 .block_erase = erase_block_jedec,
13540 }, {
13541 .eraseblocks = { {512 * 1024, 1} },
13542 .block_erase = NULL,
13543 }
13544 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013545 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013546 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013547 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013548 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013549 },
13550
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013551 {
13552 .vendor = "SST",
13553 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013554 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013555 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013556 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013557 .total_size = 1024,
13558 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013559 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013560 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013561 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013562 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013563 .block_erasers =
13564 {
13565 {
13566 .eraseblocks = { {4 * 1024, 256} },
13567 .block_erase = erase_sector_jedec,
13568 }, {
13569 .eraseblocks = { {64 * 1024, 16} },
13570 .block_erase = erase_block_jedec,
13571 }, {
13572 .eraseblocks = { {1024 * 1024, 1} },
13573 .block_erase = NULL,
13574 }
13575 },
Sean Nelson35727f72010-01-28 23:55:12 +000013576 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013578 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013579 },
13580
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013581 {
13582 .vendor = "SST",
13583 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013584 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013585 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013586 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013587 .total_size = 2048,
13588 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013589 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013590 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013591 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013592 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013593 .block_erasers =
13594 {
13595 {
13596 .eraseblocks = { {4 * 1024, 512} },
13597 .block_erase = erase_sector_49lfxxxc,
13598 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013599 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013600 {64 * 1024, 31},
13601 {32 * 1024, 1},
13602 {8 * 1024, 2},
13603 {16 * 1024, 1},
13604 },
Sean Nelson69e58112010-03-23 17:10:28 +000013605 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013606 }
13607 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013608 .printlock = printlock_regspace2_block_eraser_1,
13609 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013610 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013612 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013613 },
13614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013615 {
13616 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013617 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013618 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013619 .manufacture_id = ST_ID,
13620 .model_id = ST_M29F002B,
13621 .total_size = 256,
13622 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013623 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013624 .tested = TEST_UNTESTED,
13625 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013627 .block_erasers =
13628 {
13629 {
13630 .eraseblocks = {
13631 {16 * 1024, 1},
13632 {8 * 1024, 2},
13633 {32 * 1024, 1},
13634 {64 * 1024, 3},
13635 },
13636 .block_erase = erase_sector_jedec,
13637 }, {
13638 .eraseblocks = { {256 * 1024, 1} },
13639 .block_erase = erase_chip_block_jedec,
13640 }
13641 },
Sean Nelson35727f72010-01-28 23:55:12 +000013642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013643 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013644 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013645 },
13646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013647 {
13648 .vendor = "ST",
13649 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013651 .manufacture_id = ST_ID,
13652 .model_id = ST_M29F002T,
13653 .total_size = 256,
13654 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013655 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013656 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013659 .block_erasers =
13660 {
13661 {
13662 .eraseblocks = {
13663 {64 * 1024, 3},
13664 {32 * 1024, 1},
13665 {8 * 1024, 2},
13666 {16 * 1024, 1},
13667 },
13668 .block_erase = erase_sector_jedec,
13669 }, {
13670 .eraseblocks = { {256 * 1024, 1} },
13671 .block_erase = erase_chip_block_jedec,
13672 }
13673 },
Sean Nelson35727f72010-01-28 23:55:12 +000013674 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013677 },
13678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013679 {
13680 .vendor = "ST",
13681 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013682 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013683 .manufacture_id = ST_ID,
13684 .model_id = ST_M29F040B,
13685 .total_size = 512,
13686 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013687 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13688 .tested = TEST_UNTESTED,
13689 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013690 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013691 .block_erasers =
13692 {
13693 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013694 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013695 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013696 }, {
13697 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013698 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013699 }
13700 },
Sean Nelson35727f72010-01-28 23:55:12 +000013701 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013702 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013703 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013704 },
13705
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013706 {
Sean Nelson35727f72010-01-28 23:55:12 +000013707 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013708 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013709 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013710 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013711 .manufacture_id = ST_ID,
13712 .model_id = ST_M29F400BB,
13713 .total_size = 512,
13714 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013715 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013716 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013717 .probe = probe_jedec,
13718 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013719 .block_erasers =
13720 {
13721 {
13722 .eraseblocks = {
13723 {16 * 1024, 1},
13724 {8 * 1024, 2},
13725 {32 * 1024, 1},
13726 {64 * 1024, 7},
13727 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013728 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013729 }, {
13730 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013731 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013732 }
13733 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013734 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013736 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013737 },
13738 {
13739 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13740 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013741 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013742 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013743 .manufacture_id = ST_ID,
13744 .model_id = ST_M29F400BT,
13745 .total_size = 512,
13746 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013747 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013748 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013749 .probe = probe_jedec,
13750 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013751 .block_erasers =
13752 {
13753 {
13754 .eraseblocks = {
13755 {64 * 1024, 7},
13756 {32 * 1024, 1},
13757 {8 * 1024, 2},
13758 {16 * 1024, 1},
13759 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013760 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013761 }, {
13762 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013763 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013764 }
13765 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013766 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013768 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013769 },
13770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013771 {
13772 .vendor = "ST",
13773 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013774 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013775 .manufacture_id = ST_ID,
13776 .model_id = ST_M29W010B,
13777 .total_size = 128,
13778 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013779 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013780 .tested = TEST_UNTESTED,
13781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013782 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013783 .block_erasers =
13784 {
13785 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013786 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013787 .block_erase = erase_sector_jedec,
13788 }, {
13789 .eraseblocks = { {128 * 1024, 1} },
13790 .block_erase = erase_chip_block_jedec,
13791 }
13792 },
Sean Nelson35727f72010-01-28 23:55:12 +000013793 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013795 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013796 },
13797
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013798 {
13799 .vendor = "ST",
13800 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013801 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013802 .manufacture_id = ST_ID,
13803 .model_id = ST_M29W040B,
13804 .total_size = 512,
13805 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013807 .tested = TEST_UNTESTED,
13808 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013809 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013810 .block_erasers =
13811 {
13812 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013813 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013814 .block_erase = erase_sector_jedec,
13815 }, {
13816 .eraseblocks = { {512 * 1024, 1} },
13817 .block_erase = erase_chip_block_jedec,
13818 }
13819 },
Sean Nelson35727f72010-01-28 23:55:12 +000013820 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013821 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013822 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013823 },
13824
Stefan Taunereb582572012-09-21 12:52:50 +000013825 {
13826 .vendor = "ST",
13827 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013828 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000013829 .manufacture_id = ST_ID,
13830 .model_id = ST_M29W512B,
13831 .total_size = 64,
13832 .page_size = 64 * 1024,
13833 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013834 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013835 .probe = probe_jedec,
13836 .probe_timing = TIMING_ZERO,
13837 .block_erasers =
13838 {
13839 {
13840 .eraseblocks = { {64 * 1024, 1} },
13841 .block_erase = erase_chip_block_jedec,
13842 }
13843 },
13844 .write = write_jedec_1,
13845 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013846 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013847 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000013848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013849 {
13850 .vendor = "ST",
13851 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013852 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013853 .manufacture_id = ST_ID,
13854 .model_id = ST_M50FLW040A,
13855 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013856 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013857 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013858 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013859 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013860 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013861 .block_erasers =
13862 {
13863 {
Sean Nelson329bde72010-01-19 16:39:19 +000013864 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013865 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013866 {64 * 1024, 5}, /* block */
13867 {4 * 1024, 16}, /* sector */
13868 {4 * 1024, 16}, /* sector */
13869 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013870 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013871 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013872 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013873 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013874 }
13875 },
Sean Nelson28accc22010-03-19 18:47:06 +000013876 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013877 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013878 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013879 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013880 },
13881
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013882 {
13883 .vendor = "ST",
13884 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013885 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013886 .manufacture_id = ST_ID,
13887 .model_id = ST_M50FLW040B,
13888 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013889 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013890 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013891 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013892 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013893 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013894 .block_erasers =
13895 {
13896 {
Sean Nelson329bde72010-01-19 16:39:19 +000013897 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013898 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013899 {4 * 1024, 16}, /* sector */
13900 {64 * 1024, 5}, /* block */
13901 {4 * 1024, 16}, /* sector */
13902 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013903 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013904 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013905 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013906 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013907 }
13908 },
Sean Nelson28accc22010-03-19 18:47:06 +000013909 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013910 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013911 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013912 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013913 },
13914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013915 {
13916 .vendor = "ST",
13917 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013918 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013919 .manufacture_id = ST_ID,
13920 .model_id = ST_M50FLW080A,
13921 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013922 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013923 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013924 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013925 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013926 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013927 .block_erasers =
13928 {
13929 {
Sean Nelson329bde72010-01-19 16:39:19 +000013930 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013931 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013932 {64 * 1024, 13}, /* block */
13933 {4 * 1024, 16}, /* sector */
13934 {4 * 1024, 16}, /* sector */
13935 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013936 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013937 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013938 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013939 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013940 }
13941 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013942 .printlock = printlock_regspace2_block_eraser_0,
13943 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013944 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013946 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013947 },
13948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013949 {
13950 .vendor = "ST",
13951 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013952 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013953 .manufacture_id = ST_ID,
13954 .model_id = ST_M50FLW080B,
13955 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013956 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013957 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013958 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013959 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013960 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013961 .block_erasers =
13962 {
13963 {
Sean Nelson329bde72010-01-19 16:39:19 +000013964 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013965 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013966 {4 * 1024, 16}, /* sector */
13967 {64 * 1024, 13}, /* block */
13968 {4 * 1024, 16}, /* sector */
13969 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013970 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013971 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013972 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013973 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013974 }
13975 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013976 .printlock = printlock_regspace2_block_eraser_0,
13977 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013978 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013980 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013981 },
13982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013983 {
13984 .vendor = "ST",
13985 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013986 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013987 .manufacture_id = ST_ID,
13988 .model_id = ST_M50FW002,
13989 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000013990 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013991 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013992 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013993 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013994 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013995 .block_erasers =
13996 {
13997 {
13998 .eraseblocks = {
13999 {64 * 1024, 3},
14000 {32 * 1024, 1},
14001 {8 * 1024, 2},
14002 {16 * 1024, 1},
14003 },
Sean Nelson28accc22010-03-19 18:47:06 +000014004 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014005 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014006 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014007 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014008 }
14009 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014010 .printlock = printlock_regspace2_block_eraser_0,
14011 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014012 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014013 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014014 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014015 },
14016
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014017 {
14018 .vendor = "ST",
14019 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014020 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014021 .manufacture_id = ST_ID,
14022 .model_id = ST_M50FW016,
14023 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014024 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014025 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014026 .tested = TEST_UNTESTED,
14027 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014028 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014029 .block_erasers =
14030 {
14031 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014032 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014033 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014034 }
14035 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014036 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014037 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014038 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014039 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014040 },
14041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014042 {
14043 .vendor = "ST",
14044 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014045 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014046 .manufacture_id = ST_ID,
14047 .model_id = ST_M50FW040,
14048 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014049 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014050 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014051 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014052 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014053 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014054 .block_erasers =
14055 {
14056 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014057 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014058 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014059 }
14060 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014061 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014062 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014064 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014065 },
14066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014067 {
14068 .vendor = "ST",
14069 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014070 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .manufacture_id = ST_ID,
14072 .model_id = ST_M50FW080,
14073 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014074 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014075 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014076 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014077 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014078 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014079 .block_erasers =
14080 {
14081 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014082 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014083 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014084 }
14085 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014086 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014087 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014089 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014090 },
14091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014092 {
14093 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014094 .name = "M50LPW080",
14095 .bustype = BUS_LPC, /* A/A Mux */
14096 .manufacture_id = ST_ID,
14097 .model_id = ST_M50LPW080,
14098 .total_size = 1024,
14099 .page_size = 0,
14100 .feature_bits = FEATURE_REGISTERMAP,
14101 .tested = TEST_UNTESTED,
14102 .probe = probe_82802ab,
14103 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14104 .block_erasers =
14105 {
14106 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014107 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014108 .block_erase = erase_block_82802ab,
14109 }
14110 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014111 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014112 .write = write_82802ab,
14113 .read = read_memmapped,
14114 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14115 },
14116
14117 {
14118 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014119 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014120 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014121 .manufacture_id = ST_ID,
14122 .model_id = ST_M50LPW116,
14123 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014124 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014125 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014126 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014127 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014128 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014129 .block_erasers =
14130 {
14131 {
14132 .eraseblocks = {
14133 {4 * 1024, 16},
14134 {64 * 1024, 30},
14135 {32 * 1024, 1},
14136 {8 * 1024, 2},
14137 {16 * 1024, 1},
14138 },
Sean Nelson28accc22010-03-19 18:47:06 +000014139 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014140 }
14141 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014142 .printlock = printlock_regspace2_block_eraser_0,
14143 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014144 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014145 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014146 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014147 },
14148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014149 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014150 .vendor = "SyncMOS/MoselVitelic",
14151 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014152 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014153 .manufacture_id = SYNCMOS_MVC_ID,
14154 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014155 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014156 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014157 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014158 .tested = TEST_UNTESTED,
14159 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014160 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014161 .block_erasers =
14162 {
14163 {
14164 .eraseblocks = { {512, 256} },
14165 .block_erase = erase_sector_jedec,
14166 }, {
14167 .eraseblocks = { {128 * 1024, 1} },
14168 .block_erase = erase_chip_block_jedec,
14169 },
14170 },
Sean Nelson35727f72010-01-28 23:55:12 +000014171 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014172 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014173 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014174 },
14175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014176 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014177 .vendor = "SyncMOS/MoselVitelic",
14178 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014179 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014180 .manufacture_id = SYNCMOS_MVC_ID,
14181 .model_id = SM_MVC_29C51001T,
14182 .total_size = 128,
14183 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014184 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014185 .tested = TEST_UNTESTED,
14186 .probe = probe_jedec,
14187 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14188 .block_erasers =
14189 {
14190 {
14191 .eraseblocks = { {512, 256} },
14192 .block_erase = erase_sector_jedec,
14193 }, {
14194 .eraseblocks = { {128 * 1024, 1} },
14195 .block_erase = erase_chip_block_jedec,
14196 },
14197 },
14198 .write = write_jedec_1,
14199 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014200 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014201 },
14202
14203 {
14204 .vendor = "SyncMOS/MoselVitelic",
14205 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014206 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014207 .manufacture_id = SYNCMOS_MVC_ID,
14208 .model_id = SM_MVC_29C51002B,
14209 .total_size = 256,
14210 .page_size = 512,
14211 .feature_bits = FEATURE_EITHER_RESET,
14212 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014215 .block_erasers =
14216 {
14217 {
14218 .eraseblocks = { {512, 512} },
14219 .block_erase = erase_sector_jedec,
14220 }, {
14221 .eraseblocks = { {256 * 1024, 1} },
14222 .block_erase = erase_chip_block_jedec,
14223 },
14224 },
Sean Nelson35727f72010-01-28 23:55:12 +000014225 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014226 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014227 },
14228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014229 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014230 .vendor = "SyncMOS/MoselVitelic",
14231 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014232 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014233 .manufacture_id = SYNCMOS_MVC_ID,
14234 .model_id = SM_MVC_29C51002T,
14235 .total_size = 256,
14236 .page_size = 512,
14237 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014238 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014239 .probe = probe_jedec,
14240 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14241 .block_erasers =
14242 {
14243 {
14244 .eraseblocks = { {512, 512} },
14245 .block_erase = erase_sector_jedec,
14246 }, {
14247 .eraseblocks = { {256 * 1024, 1} },
14248 .block_erase = erase_chip_block_jedec,
14249 },
14250 },
14251 .write = write_jedec_1,
14252 .read = read_memmapped,
14253 },
14254
14255 {
14256 .vendor = "SyncMOS/MoselVitelic",
14257 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014258 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014259 .manufacture_id = SYNCMOS_MVC_ID,
14260 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014261 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014262 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014263 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014264 .tested = TEST_UNTESTED,
14265 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014266 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014267 .block_erasers =
14268 {
14269 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014270 .eraseblocks = { {1024, 512} },
14271 .block_erase = erase_sector_jedec,
14272 }, {
14273 .eraseblocks = { {512 * 1024, 1} },
14274 .block_erase = erase_chip_block_jedec,
14275 },
14276 },
14277 .write = write_jedec_1,
14278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014279 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014280 },
14281
14282 {
14283 .vendor = "SyncMOS/MoselVitelic",
14284 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014285 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014286 .manufacture_id = SYNCMOS_MVC_ID,
14287 .model_id = SM_MVC_29C51004T,
14288 .total_size = 512,
14289 .page_size = 1024,
14290 .feature_bits = FEATURE_EITHER_RESET,
14291 .tested = TEST_UNTESTED,
14292 .probe = probe_jedec,
14293 .probe_timing = TIMING_ZERO,
14294 .block_erasers =
14295 {
14296 {
14297 .eraseblocks = { {1024, 512} },
14298 .block_erase = erase_sector_jedec,
14299 }, {
14300 .eraseblocks = { {512 * 1024, 1} },
14301 .block_erase = erase_chip_block_jedec,
14302 },
14303 },
14304 .write = write_jedec_1,
14305 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014306 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014307 },
14308
14309 {
14310 .vendor = "SyncMOS/MoselVitelic",
14311 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014312 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014313 .manufacture_id = SYNCMOS_MVC_ID,
14314 .model_id = SM_MVC_29C31004B,
14315 .total_size = 512,
14316 .page_size = 1024,
14317 .feature_bits = FEATURE_EITHER_RESET,
14318 .tested = TEST_UNTESTED,
14319 .probe = probe_jedec,
14320 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14321 .block_erasers =
14322 {
14323 {
14324 .eraseblocks = { {1024, 512} },
14325 .block_erase = erase_sector_jedec,
14326 }, {
14327 .eraseblocks = { {512 * 1024, 1} },
14328 .block_erase = erase_chip_block_jedec,
14329 },
14330 },
14331 .write = write_jedec_1,
14332 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014333 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014334 },
14335
14336 {
14337 .vendor = "SyncMOS/MoselVitelic",
14338 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014339 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014340 .manufacture_id = SYNCMOS_MVC_ID,
14341 .model_id = SM_MVC_29C31004T,
14342 .total_size = 512,
14343 .page_size = 1024,
14344 .feature_bits = FEATURE_EITHER_RESET,
14345 .tested = TEST_UNTESTED,
14346 .probe = probe_jedec,
14347 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14348 .block_erasers =
14349 {
14350 {
14351 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014352 .block_erase = erase_sector_jedec,
14353 }, {
14354 .eraseblocks = { {512 * 1024, 1} },
14355 .block_erase = erase_chip_block_jedec,
14356 },
14357 },
Sean Nelson35727f72010-01-28 23:55:12 +000014358 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014359 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014360 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014361 },
14362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014363 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014364 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014365 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014366 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014367 .manufacture_id = TI_OLD_ID,
14368 .model_id = TI_TMS29F002RB,
14369 .total_size = 256,
14370 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014371 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014372 .tested = TEST_UNTESTED,
14373 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014374 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014375 .block_erasers =
14376 {
14377 {
14378 .eraseblocks = {
14379 {16 * 1024, 1},
14380 {8 * 1024, 2},
14381 {32 * 1024, 1},
14382 {64 * 1024, 3},
14383 },
14384 .block_erase = erase_sector_jedec,
14385 }, {
14386 .eraseblocks = { {256 * 1024, 1} },
14387 .block_erase = erase_chip_block_jedec,
14388 },
14389 },
Sean Nelson35727f72010-01-28 23:55:12 +000014390 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014392 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014393 },
14394
14395 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014396 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014397 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014398 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014399 .manufacture_id = TI_OLD_ID,
14400 .model_id = TI_TMS29F002RT,
14401 .total_size = 256,
14402 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014403 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014404 .tested = TEST_UNTESTED,
14405 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014406 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014407 .block_erasers =
14408 {
14409 {
14410 .eraseblocks = {
14411 {64 * 1024, 3},
14412 {32 * 1024, 1},
14413 {8 * 1024, 2},
14414 {16 * 1024, 1},
14415 },
14416 .block_erase = erase_sector_jedec,
14417 }, {
14418 .eraseblocks = { {256 * 1024, 1} },
14419 .block_erase = erase_chip_block_jedec,
14420 },
14421 },
Sean Nelson35727f72010-01-28 23:55:12 +000014422 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014423 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014424 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014425 },
14426
14427 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014428 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014429 .name = "W25Q40.V",
14430 .bustype = BUS_SPI,
14431 .manufacture_id = WINBOND_NEX_ID,
14432 .model_id = WINBOND_NEX_W25Q40_V,
14433 .total_size = 512,
14434 .page_size = 256,
14435 /* supports SFDP */
14436 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014438 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014439 .probe = probe_spi_rdid,
14440 .probe_timing = TIMING_ZERO,
14441 .block_erasers =
14442 {
14443 {
14444 .eraseblocks = { {4 * 1024, 128} },
14445 .block_erase = spi_block_erase_20,
14446 }, {
14447 .eraseblocks = { {32 * 1024, 16} },
14448 .block_erase = spi_block_erase_52,
14449 }, {
14450 .eraseblocks = { {64 * 1024, 8} },
14451 .block_erase = spi_block_erase_d8,
14452 }, {
14453 .eraseblocks = { {512 * 1024, 1} },
14454 .block_erase = spi_block_erase_60,
14455 }, {
14456 .eraseblocks = { {512 * 1024, 1} },
14457 .block_erase = spi_block_erase_c7,
14458 }
14459 },
14460 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14461 .unlock = spi_disable_blockprotect,
14462 .write = spi_chip_write_256, /* Multi I/O supported */
14463 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14464 .voltage = {2700, 3600},
14465 },
14466
14467 {
14468 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014469 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014470 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014471 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014472 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014473 .total_size = 1024,
14474 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014475 /* supports SFDP */
14476 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014477 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014478 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014479 .probe = probe_spi_rdid,
14480 .probe_timing = TIMING_ZERO,
14481 .block_erasers =
14482 {
14483 {
14484 .eraseblocks = { {4 * 1024, 256} },
14485 .block_erase = spi_block_erase_20,
14486 }, {
14487 .eraseblocks = { {32 * 1024, 32} },
14488 .block_erase = spi_block_erase_52,
14489 }, {
14490 .eraseblocks = { {64 * 1024, 16} },
14491 .block_erase = spi_block_erase_d8,
14492 }, {
14493 .eraseblocks = { {1024 * 1024, 1} },
14494 .block_erase = spi_block_erase_60,
14495 }, {
14496 .eraseblocks = { {1024 * 1024, 1} },
14497 .block_erase = spi_block_erase_c7,
14498 }
14499 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014500 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014501 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014502 .write = spi_chip_write_256,
14503 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014504 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014505 },
14506
14507 {
14508 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014509 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014510 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014511 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014512 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014513 .total_size = 2048,
14514 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014515 /* supports SFDP */
14516 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014518 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014519 .probe = probe_spi_rdid,
14520 .probe_timing = TIMING_ZERO,
14521 .block_erasers =
14522 {
14523 {
14524 .eraseblocks = { {4 * 1024, 512} },
14525 .block_erase = spi_block_erase_20,
14526 }, {
14527 .eraseblocks = { {32 * 1024, 64} },
14528 .block_erase = spi_block_erase_52,
14529 }, {
14530 .eraseblocks = { {64 * 1024, 32} },
14531 .block_erase = spi_block_erase_d8,
14532 }, {
14533 .eraseblocks = { {2 * 1024 * 1024, 1} },
14534 .block_erase = spi_block_erase_60,
14535 }, {
14536 .eraseblocks = { {2 * 1024 * 1024, 1} },
14537 .block_erase = spi_block_erase_c7,
14538 }
14539 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014540 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014541 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014542 .write = spi_chip_write_256,
14543 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014544 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014545 },
14546
14547 {
14548 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014549 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014550 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014551 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014552 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014553 .total_size = 4096,
14554 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014555 /* supports SFDP */
14556 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014558 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014559 .probe = probe_spi_rdid,
14560 .probe_timing = TIMING_ZERO,
14561 .block_erasers =
14562 {
14563 {
14564 .eraseblocks = { {4 * 1024, 1024} },
14565 .block_erase = spi_block_erase_20,
14566 }, {
14567 .eraseblocks = { {32 * 1024, 128} },
14568 .block_erase = spi_block_erase_52,
14569 }, {
14570 .eraseblocks = { {64 * 1024, 64} },
14571 .block_erase = spi_block_erase_d8,
14572 }, {
14573 .eraseblocks = { {4 * 1024 * 1024, 1} },
14574 .block_erase = spi_block_erase_60,
14575 }, {
14576 .eraseblocks = { {4 * 1024 * 1024, 1} },
14577 .block_erase = spi_block_erase_c7,
14578 }
14579 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014580 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014581 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014582 .write = spi_chip_write_256,
14583 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014584 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014585 },
14586
14587 {
14588 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014589 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014590 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000014591 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014592 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000014593 .total_size = 8192,
14594 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014595 /* supports SFDP */
14596 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014597 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014598 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000014599 .probe = probe_spi_rdid,
14600 .probe_timing = TIMING_ZERO,
14601 .block_erasers =
14602 {
14603 {
14604 .eraseblocks = { {4 * 1024, 2048} },
14605 .block_erase = spi_block_erase_20,
14606 }, {
14607 .eraseblocks = { {32 * 1024, 256} },
14608 .block_erase = spi_block_erase_52,
14609 }, {
14610 .eraseblocks = { {64 * 1024, 128} },
14611 .block_erase = spi_block_erase_d8,
14612 }, {
14613 .eraseblocks = { {8 * 1024 * 1024, 1} },
14614 .block_erase = spi_block_erase_60,
14615 }, {
14616 .eraseblocks = { {8 * 1024 * 1024, 1} },
14617 .block_erase = spi_block_erase_c7,
14618 }
14619 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014621 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000014622 .write = spi_chip_write_256,
14623 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014624 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000014625 },
14626
14627 {
14628 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014629 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014630 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014631 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014632 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014633 .total_size = 16384,
14634 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014635 /* supports SFDP */
14636 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014637 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014638 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014639 .probe = probe_spi_rdid,
14640 .probe_timing = TIMING_ZERO,
14641 .block_erasers =
14642 {
14643 {
14644 .eraseblocks = { {4 * 1024, 4096} },
14645 .block_erase = spi_block_erase_20,
14646 }, {
14647 .eraseblocks = { {32 * 1024, 512} },
14648 .block_erase = spi_block_erase_52,
14649 }, {
14650 .eraseblocks = { {64 * 1024, 256} },
14651 .block_erase = spi_block_erase_d8,
14652 }, {
14653 .eraseblocks = { {16 * 1024 * 1024, 1} },
14654 .block_erase = spi_block_erase_60,
14655 }, {
14656 .eraseblocks = { {16 * 1024 * 1024, 1} },
14657 .block_erase = spi_block_erase_c7,
14658 }
14659 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014660 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014661 .unlock = spi_disable_blockprotect,
14662 .write = spi_chip_write_256,
14663 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014664 .voltage = {2700, 3600},
14665 },
14666
14667 {
14668 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020014669 .name = "W25Q256.V",
14670 .bustype = BUS_SPI,
14671 .manufacture_id = WINBOND_NEX_ID,
14672 .model_id = WINBOND_NEX_W25Q256_V,
14673 .total_size = 32768,
14674 .page_size = 256,
14675 /* supports SFDP */
14676 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14677 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Ed Swierkcc20a9b2017-07-03 13:17:18 -070014678 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014679 .four_bytes_addr_funcs =
14680 {
Ed Swierkcc20a9b2017-07-03 13:17:18 -070014681 .set_4ba = spi_enter_4ba_b7_we, /* enter 4-bytes addressing mode by CMD B7 + WREN */
Boris Baykov7fe85692016-06-11 18:29:03 +020014682 .read_nbyte = spi_nbyte_read_4ba_direct, /* read directly from any mode, no need to enter 4ba */
Boris Baykovaa6c3742016-06-11 18:29:01 +020014683 .program_byte = spi_byte_program_4ba, /* write from 4-bytes addressing mode */
14684 .program_nbyte = spi_nbyte_program_4ba /* write from 4-bytes addressing mode */
14685 },
14686 .tested = TEST_OK_PREW,
14687 .probe = probe_spi_rdid,
14688 .probe_timing = TIMING_ZERO,
14689 .block_erasers =
14690 {
14691 {
14692 .eraseblocks = { {4 * 1024, 8192} },
14693 .block_erase = spi_block_erase_20_4ba, /* erases 4k from 4-bytes addressing mode */
14694 }, {
14695 .eraseblocks = { {32 * 1024, 1024} },
14696 .block_erase = spi_block_erase_52_4ba, /* erases 32k from 4-bytes addressing mode */
14697 }, {
14698 .eraseblocks = { {64 * 1024, 512} },
14699 .block_erase = spi_block_erase_d8_4ba, /* erases 64k from 4-bytes addressing mode */
14700 }, {
14701 .eraseblocks = { {32 * 1024 * 1024, 1} },
14702 .block_erase = spi_block_erase_60,
14703 }, {
14704 .eraseblocks = { {32 * 1024 * 1024, 1} },
14705 .block_erase = spi_block_erase_c7,
14706 }
14707 },
14708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14709 .unlock = spi_disable_blockprotect,
14710 .write = spi_chip_write_256,
14711 .read = spi_chip_read,
14712 .voltage = {2700, 3600},
14713 },
14714
14715 {
14716 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014717 .name = "W25Q20.W",
14718 .bustype = BUS_SPI,
14719 .manufacture_id = WINBOND_NEX_ID,
14720 .model_id = WINBOND_NEX_W25Q20_W,
14721 .total_size = 256,
14722 .page_size = 256,
14723 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14724 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14725 .tested = TEST_UNTESTED,
14726 .probe = probe_spi_rdid,
14727 .probe_timing = TIMING_ZERO,
14728 .block_erasers =
14729 {
14730 {
14731 .eraseblocks = { {4 * 1024, 64} },
14732 .block_erase = spi_block_erase_20,
14733 }, {
14734 .eraseblocks = { {32 * 1024, 8} },
14735 .block_erase = spi_block_erase_52,
14736 }, {
14737 .eraseblocks = { {64 * 1024, 4} },
14738 .block_erase = spi_block_erase_d8,
14739 }, {
14740 .eraseblocks = { {256 * 1024, 1} },
14741 .block_erase = spi_block_erase_60,
14742 }, {
14743 .eraseblocks = { {256 * 1024, 1} },
14744 .block_erase = spi_block_erase_c7,
14745 }
14746 },
14747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14748 .unlock = spi_disable_blockprotect,
14749 .write = spi_chip_write_256,
14750 .read = spi_chip_read,
14751 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14752 },
14753
14754 {
14755 .vendor = "Winbond",
14756 .name = "W25Q40.W",
14757 .bustype = BUS_SPI,
14758 .manufacture_id = WINBOND_NEX_ID,
14759 .model_id = WINBOND_NEX_W25Q40_W,
14760 .total_size = 512,
14761 .page_size = 256,
14762 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14764 .tested = TEST_UNTESTED,
14765 .probe = probe_spi_rdid,
14766 .probe_timing = TIMING_ZERO,
14767 .block_erasers =
14768 {
14769 {
14770 .eraseblocks = { {4 * 1024, 128} },
14771 .block_erase = spi_block_erase_20,
14772 }, {
14773 .eraseblocks = { {32 * 1024, 16} },
14774 .block_erase = spi_block_erase_52,
14775 }, {
14776 .eraseblocks = { {64 * 1024, 8} },
14777 .block_erase = spi_block_erase_d8,
14778 }, {
14779 .eraseblocks = { {512 * 1024, 1} },
14780 .block_erase = spi_block_erase_60,
14781 }, {
14782 .eraseblocks = { {512 * 1024, 1} },
14783 .block_erase = spi_block_erase_c7,
14784 }
14785 },
14786 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14787 .unlock = spi_disable_blockprotect,
14788 .write = spi_chip_write_256,
14789 .read = spi_chip_read,
14790 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14791 },
14792
14793 {
14794 .vendor = "Winbond",
14795 .name = "W25Q80.W",
14796 .bustype = BUS_SPI,
14797 .manufacture_id = WINBOND_NEX_ID,
14798 .model_id = WINBOND_NEX_W25Q80_W,
14799 .total_size = 1024,
14800 .page_size = 256,
14801 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14802 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014803 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014804 .probe = probe_spi_rdid,
14805 .probe_timing = TIMING_ZERO,
14806 .block_erasers =
14807 {
14808 {
14809 .eraseblocks = { {4 * 1024, 256} },
14810 .block_erase = spi_block_erase_20,
14811 }, {
14812 .eraseblocks = { {32 * 1024, 32} },
14813 .block_erase = spi_block_erase_52,
14814 }, {
14815 .eraseblocks = { {64 * 1024, 16} },
14816 .block_erase = spi_block_erase_d8,
14817 }, {
14818 .eraseblocks = { {1 * 1024 * 1024, 1} },
14819 .block_erase = spi_block_erase_60,
14820 }, {
14821 .eraseblocks = { {1 * 1024 * 1024, 1} },
14822 .block_erase = spi_block_erase_c7,
14823 }
14824 },
14825 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14826 .unlock = spi_disable_blockprotect,
14827 .write = spi_chip_write_256,
14828 .read = spi_chip_read,
14829 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14830 },
14831
14832 {
14833 .vendor = "Winbond",
14834 .name = "W25Q16.W",
14835 .bustype = BUS_SPI,
14836 .manufacture_id = WINBOND_NEX_ID,
14837 .model_id = WINBOND_NEX_W25Q16_W,
14838 .total_size = 2048,
14839 .page_size = 256,
14840 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14841 /* QPI enable 0x38, disable 0xFF */
14842 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14843 .tested = TEST_UNTESTED,
14844 .probe = probe_spi_rdid,
14845 .probe_timing = TIMING_ZERO,
14846 .block_erasers =
14847 {
14848 {
14849 .eraseblocks = { {4 * 1024, 512} },
14850 .block_erase = spi_block_erase_20,
14851 }, {
14852 .eraseblocks = { {32 * 1024, 64} },
14853 .block_erase = spi_block_erase_52,
14854 }, {
14855 .eraseblocks = { {64 * 1024, 32} },
14856 .block_erase = spi_block_erase_d8,
14857 }, {
14858 .eraseblocks = { {2 * 1024 * 1024, 1} },
14859 .block_erase = spi_block_erase_60,
14860 }, {
14861 .eraseblocks = { {2 * 1024 * 1024, 1} },
14862 .block_erase = spi_block_erase_c7,
14863 }
14864 },
14865 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14866 .unlock = spi_disable_blockprotect,
14867 .write = spi_chip_write_256,
14868 .read = spi_chip_read,
14869 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14870 },
14871
14872 {
14873 .vendor = "Winbond",
14874 .name = "W25Q32.W",
14875 .bustype = BUS_SPI,
14876 .manufacture_id = WINBOND_NEX_ID,
14877 .model_id = WINBOND_NEX_W25Q32_W,
14878 .total_size = 4096,
14879 .page_size = 256,
14880 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14881 /* QPI enable 0x38, disable 0xFF */
14882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14883 .tested = TEST_OK_PREW,
14884 .probe = probe_spi_rdid,
14885 .probe_timing = TIMING_ZERO,
14886 .block_erasers =
14887 {
14888 {
14889 .eraseblocks = { {4 * 1024, 1024} },
14890 .block_erase = spi_block_erase_20,
14891 }, {
14892 .eraseblocks = { {32 * 1024, 128} },
14893 .block_erase = spi_block_erase_52,
14894 }, {
14895 .eraseblocks = { {64 * 1024, 64} },
14896 .block_erase = spi_block_erase_d8,
14897 }, {
14898 .eraseblocks = { {4 * 1024 * 1024, 1} },
14899 .block_erase = spi_block_erase_60,
14900 }, {
14901 .eraseblocks = { {4 * 1024 * 1024, 1} },
14902 .block_erase = spi_block_erase_c7,
14903 }
14904 },
14905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14906 .unlock = spi_disable_blockprotect,
14907 .write = spi_chip_write_256,
14908 .read = spi_chip_read,
14909 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14910 },
14911
14912 {
14913 .vendor = "Winbond",
14914 .name = "W25Q64.W",
14915 .bustype = BUS_SPI,
14916 .manufacture_id = WINBOND_NEX_ID,
14917 .model_id = WINBOND_NEX_W25Q64_W,
14918 .total_size = 8192,
14919 .page_size = 256,
14920 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14921 /* QPI enable 0x38, disable 0xFF */
14922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014923 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014924 .probe = probe_spi_rdid,
14925 .probe_timing = TIMING_ZERO,
14926 .block_erasers =
14927 {
14928 {
14929 .eraseblocks = { {4 * 1024, 2048} },
14930 .block_erase = spi_block_erase_20,
14931 }, {
14932 .eraseblocks = { {32 * 1024, 256} },
14933 .block_erase = spi_block_erase_52,
14934 }, {
14935 .eraseblocks = { {64 * 1024, 128} },
14936 .block_erase = spi_block_erase_d8,
14937 }, {
14938 .eraseblocks = { {8 * 1024 * 1024, 1} },
14939 .block_erase = spi_block_erase_60,
14940 }, {
14941 .eraseblocks = { {8 * 1024 * 1024, 1} },
14942 .block_erase = spi_block_erase_c7,
14943 }
14944 },
14945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14946 .unlock = spi_disable_blockprotect,
14947 .write = spi_chip_write_256,
14948 .read = spi_chip_read,
14949 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014950 },
14951
14952 {
14953 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020014954 .name = "W25Q128.W",
14955 .bustype = BUS_SPI,
14956 .manufacture_id = WINBOND_NEX_ID,
14957 .model_id = WINBOND_NEX_W25Q128_W,
14958 .total_size = 16384,
14959 .page_size = 256,
14960 /* supports SFDP */
14961 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14963 .tested = TEST_UNTESTED,
14964 .probe = probe_spi_rdid,
14965 .probe_timing = TIMING_ZERO,
14966 .block_erasers =
14967 {
14968 {
14969 .eraseblocks = { {4 * 1024, 4096} },
14970 .block_erase = spi_block_erase_20,
14971 }, {
14972 .eraseblocks = { {32 * 1024, 512} },
14973 .block_erase = spi_block_erase_52,
14974 }, {
14975 .eraseblocks = { {64 * 1024, 256} },
14976 .block_erase = spi_block_erase_d8,
14977 }, {
14978 .eraseblocks = { {16 * 1024 * 1024, 1} },
14979 .block_erase = spi_block_erase_60,
14980 }, {
14981 .eraseblocks = { {16 * 1024 * 1024, 1} },
14982 .block_erase = spi_block_erase_c7,
14983 }
14984 },
14985 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14986 .unlock = spi_disable_blockprotect,
14987 .write = spi_chip_write_256,
14988 .read = spi_chip_read,
14989 .voltage = {1650, 1950},
14990 },
14991
14992 {
14993 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014994 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014995 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014996 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014997 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014998 .total_size = 128,
14999 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015000 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015002 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015003 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015004 .block_erasers =
15005 {
15006 {
15007 .eraseblocks = { {4 * 1024, 32} },
15008 .block_erase = spi_block_erase_20,
15009 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015010 .eraseblocks = { {64 * 1024, 2} },
15011 .block_erase = spi_block_erase_d8,
15012 }, {
15013 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015014 .block_erase = spi_block_erase_c7,
15015 }
15016 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015018 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015019 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015020 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015021 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015022 },
15023
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015024 {
15025 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015026 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015027 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015028 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015029 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015030 .total_size = 256,
15031 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015032 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015033 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015034 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015035 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015036 .block_erasers =
15037 {
15038 {
15039 .eraseblocks = { {4 * 1024, 64} },
15040 .block_erase = spi_block_erase_20,
15041 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015042 .eraseblocks = { {64 * 1024, 4} },
15043 .block_erase = spi_block_erase_d8,
15044 }, {
15045 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015046 .block_erase = spi_block_erase_c7,
15047 }
15048 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015049 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015050 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015051 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015052 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015053 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015054 },
15055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015056 {
15057 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015058 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015059 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015060 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015061 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015062 .total_size = 512,
15063 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015064 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015065 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015067 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015068 .block_erasers =
15069 {
15070 {
15071 .eraseblocks = { {4 * 1024, 128} },
15072 .block_erase = spi_block_erase_20,
15073 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015074 .eraseblocks = { {64 * 1024, 8} },
15075 .block_erase = spi_block_erase_d8,
15076 }, {
15077 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015078 .block_erase = spi_block_erase_c7,
15079 }
15080 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015081 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015082 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015083 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015084 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015085 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015086 },
15087
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015088 {
15089 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015090 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015091 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015092 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015093 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015094 .total_size = 1024,
15095 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015096 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000015097 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015099 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015100 .block_erasers =
15101 {
15102 {
15103 .eraseblocks = { {4 * 1024, 256} },
15104 .block_erase = spi_block_erase_20,
15105 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015106 .eraseblocks = { {64 * 1024, 16} },
15107 .block_erase = spi_block_erase_d8,
15108 }, {
15109 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015110 .block_erase = spi_block_erase_c7,
15111 }
15112 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015115 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015116 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015117 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015118 },
15119
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015120 {
15121 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015122 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015123 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000015124 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015125 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000015126 .total_size = 2048,
15127 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015128 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000015129 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000015130 .probe = probe_spi_rdid,
15131 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015132 .block_erasers =
15133 {
15134 {
15135 .eraseblocks = { {4 * 1024, 512} },
15136 .block_erase = spi_block_erase_20,
15137 }, {
15138 .eraseblocks = { {32 * 1024, 64} },
15139 .block_erase = spi_block_erase_52,
15140 }, {
15141 .eraseblocks = { {64 * 1024, 32} },
15142 .block_erase = spi_block_erase_d8,
15143 }, {
15144 .eraseblocks = { {2 * 1024 * 1024, 1} },
15145 .block_erase = spi_block_erase_60,
15146 }, {
15147 .eraseblocks = { {2 * 1024 * 1024, 1} },
15148 .block_erase = spi_block_erase_c7,
15149 }
15150 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015151 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015152 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000015153 .write = spi_chip_write_256,
15154 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015155 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000015156 },
15157
15158 {
15159 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015160 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015161 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015162 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015163 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000015164 .total_size = 4096,
15165 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015166 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015167 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015168 .probe = probe_spi_rdid,
15169 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015170 .block_erasers =
15171 {
15172 {
15173 .eraseblocks = { {4 * 1024, 1024} },
15174 .block_erase = spi_block_erase_20,
15175 }, {
15176 .eraseblocks = { {32 * 1024, 128} },
15177 .block_erase = spi_block_erase_52,
15178 }, {
15179 .eraseblocks = { {64 * 1024, 64} },
15180 .block_erase = spi_block_erase_d8,
15181 }, {
15182 .eraseblocks = { {4 * 1024 * 1024, 1} },
15183 .block_erase = spi_block_erase_60,
15184 }, {
15185 .eraseblocks = { {4 * 1024 * 1024, 1} },
15186 .block_erase = spi_block_erase_c7,
15187 }
15188 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015189 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015190 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015191 .write = spi_chip_write_256,
15192 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015193 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015194 },
15195
15196 {
15197 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015198 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015199 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015200 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015201 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000015202 .total_size = 8192,
15203 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015204 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015205 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015206 .probe = probe_spi_rdid,
15207 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015208 .block_erasers =
15209 {
15210 {
15211 .eraseblocks = { {4 * 1024, 2048} },
15212 .block_erase = spi_block_erase_20,
15213 }, {
15214 .eraseblocks = { {32 * 1024, 256} },
15215 .block_erase = spi_block_erase_52,
15216 }, {
15217 .eraseblocks = { {64 * 1024, 128} },
15218 .block_erase = spi_block_erase_d8,
15219 }, {
15220 .eraseblocks = { {8 * 1024 * 1024, 1} },
15221 .block_erase = spi_block_erase_60,
15222 }, {
15223 .eraseblocks = { {8 * 1024 * 1024, 1} },
15224 .block_erase = spi_block_erase_c7,
15225 }
15226 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015227 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015228 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015229 .write = spi_chip_write_256,
15230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015231 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015232 },
15233
15234 {
15235 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000015236 .name = "W29C512A/W29EE512",
15237 .bustype = BUS_PARALLEL,
15238 .manufacture_id = WINBOND_ID,
15239 .model_id = WINBOND_W29C512A,
15240 .total_size = 64,
15241 .page_size = 128,
15242 .feature_bits = FEATURE_LONG_RESET,
15243 .tested = TEST_OK_PREW,
15244 .probe = probe_jedec,
15245 .probe_timing = 10,
15246 .block_erasers =
15247 {
15248 {
15249 .eraseblocks = { {64 * 1024, 1} },
15250 .block_erase = erase_chip_block_jedec,
15251 }
15252 },
15253 .write = write_jedec,
15254 .read = read_memmapped,
15255 .voltage = {4500, 5500},
15256 },
15257
15258 {
15259 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015260 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015261 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015262 .manufacture_id = WINBOND_ID,
15263 .model_id = WINBOND_W29C010,
15264 .total_size = 128,
15265 .page_size = 128,
15266 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015267 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015268 .probe = probe_w29ee011,
15269 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
15270 .block_erasers =
15271 {
15272 {
15273 .eraseblocks = { {128 * 1024, 1} },
15274 .block_erase = erase_chip_block_jedec,
15275 }
15276 },
15277 .write = write_jedec,
15278 .read = read_memmapped,
15279 },
15280
15281 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
15282 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015283 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015284 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015285 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015286 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015287 .total_size = 128,
15288 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015289 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000015290 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015291 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015292 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015293 .block_erasers =
15294 {
15295 {
15296 .eraseblocks = { {128 * 1024, 1} },
15297 .block_erase = erase_chip_block_jedec,
15298 }
15299 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015300 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015301 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015302 },
15303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015304 {
15305 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015306 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015307 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015308 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015309 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015310 .total_size = 256,
15311 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015312 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015313 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015314 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015315 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015316 .block_erasers =
15317 {
15318 {
15319 .eraseblocks = { {256 * 1024, 1} },
15320 .block_erase = erase_chip_block_jedec,
15321 }
15322 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015323 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015325 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015326 },
15327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015328 {
15329 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015330 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015331 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015332 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015333 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015334 .total_size = 512,
15335 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000015336 .feature_bits = FEATURE_LONG_RESET,
15337 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015338 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015339 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015340 .block_erasers =
15341 {
15342 {
15343 .eraseblocks = { {512 * 1024, 1} },
15344 .block_erase = erase_chip_block_jedec,
15345 }
15346 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015347 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015349 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015350 },
15351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015352 {
15353 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000015354 .name = "W29GL032CB",
15355 .bustype = BUS_PARALLEL,
15356 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15357 .model_id = WINBOND_W29GL032CB,
15358 .total_size = 4096,
15359 .page_size = 128 * 1024, /* actual page size is 16 */
15360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15361 .tested = TEST_UNTESTED,
15362 .probe = probe_jedec_29gl,
15363 .probe_timing = TIMING_ZERO,
15364 .block_erasers =
15365 {
15366 {
15367 .eraseblocks = {
15368 {8 * 1024, 8},
15369 {64 * 1024, 63},
15370 },
15371 .block_erase = erase_sector_jedec,
15372 }, {
15373 .eraseblocks = { {4 * 1024 * 1024, 1} },
15374 .block_erase = erase_chip_block_jedec,
15375 },
15376 },
15377 .write = write_jedec_1,
15378 .read = read_memmapped,
15379 .voltage = {2700, 3600},
15380 },
15381
15382 {
15383 .vendor = "Winbond",
15384 .name = "W29GL032CT",
15385 .bustype = BUS_PARALLEL,
15386 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15387 .model_id = WINBOND_W29GL032CT,
15388 .total_size = 4096,
15389 .page_size = 128 * 1024, /* actual page size is 16 */
15390 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15391 .tested = TEST_UNTESTED,
15392 .probe = probe_jedec_29gl,
15393 .probe_timing = TIMING_ZERO,
15394 .block_erasers =
15395 {
15396 {
15397 .eraseblocks = {
15398 {64 * 1024, 63},
15399 {8 * 1024, 8},
15400 },
15401 .block_erase = erase_sector_jedec,
15402 }, {
15403 .eraseblocks = { {4 * 1024 * 1024, 1} },
15404 .block_erase = erase_chip_block_jedec,
15405 },
15406 },
15407 .write = write_jedec_1,
15408 .read = read_memmapped,
15409 .voltage = {2700, 3600},
15410 },
15411
15412 {
15413 .vendor = "Winbond",
15414 .name = "W29GL032CH/L",
15415 .bustype = BUS_PARALLEL,
15416 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15417 .model_id = WINBOND_W29GL032CHL,
15418 .total_size = 4096,
15419 .page_size = 128 * 1024, /* actual page size is 16 */
15420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15421 .tested = TEST_UNTESTED,
15422 .probe = probe_jedec_29gl,
15423 .probe_timing = TIMING_ZERO,
15424 .block_erasers =
15425 {
15426 {
15427 .eraseblocks = { {64 * 1024, 64} },
15428 .block_erase = erase_sector_jedec,
15429 }, {
15430 .eraseblocks = { {4 * 1024 * 1024, 1} },
15431 .block_erase = erase_chip_block_jedec,
15432 },
15433 },
15434 .write = write_jedec_1,
15435 .read = read_memmapped,
15436 .voltage = {2700, 3600},
15437 },
15438
15439 {
15440 .vendor = "Winbond",
15441 .name = "W29GL064CB",
15442 .bustype = BUS_PARALLEL,
15443 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15444 .model_id = WINBOND_W29GL064CB,
15445 .total_size = 8192,
15446 .page_size = 128 * 1024, /* actual page size is 16 */
15447 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15448 .tested = TEST_UNTESTED,
15449 .probe = probe_jedec_29gl,
15450 .probe_timing = TIMING_ZERO,
15451 .block_erasers =
15452 {
15453 {
15454 .eraseblocks = {
15455 {8 * 1024, 8},
15456 {64 * 1024, 127},
15457 },
15458 .block_erase = erase_sector_jedec,
15459 }, {
15460 .eraseblocks = { {8 * 1024 * 1024, 1} },
15461 .block_erase = erase_chip_block_jedec,
15462 },
15463 },
15464 .write = write_jedec_1,
15465 .read = read_memmapped,
15466 .voltage = {2700, 3600},
15467 },
15468
15469 {
15470 .vendor = "Winbond",
15471 .name = "W29GL064CT",
15472 .bustype = BUS_PARALLEL,
15473 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15474 .model_id = WINBOND_W29GL064CT,
15475 .total_size = 8192,
15476 .page_size = 128 * 1024, /* actual page size is 16 */
15477 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15478 .tested = TEST_UNTESTED,
15479 .probe = probe_jedec_29gl,
15480 .probe_timing = TIMING_ZERO,
15481 .block_erasers =
15482 {
15483 {
15484 .eraseblocks = {
15485 {64 * 1024, 127},
15486 {8 * 1024, 8},
15487 },
15488 .block_erase = erase_sector_jedec,
15489 }, {
15490 .eraseblocks = { {8 * 1024 * 1024, 1} },
15491 .block_erase = erase_chip_block_jedec,
15492 },
15493 },
15494 .write = write_jedec_1,
15495 .read = read_memmapped,
15496 .voltage = {2700, 3600},
15497 },
15498
15499 {
15500 .vendor = "Winbond",
15501 .name = "W29GL064CH/L",
15502 .bustype = BUS_PARALLEL,
15503 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15504 .model_id = WINBOND_W29GL064CHL,
15505 .total_size = 8192,
15506 .page_size = 128 * 1024, /* actual page size is 16 */
15507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15508 .tested = TEST_UNTESTED,
15509 .probe = probe_jedec_29gl,
15510 .probe_timing = TIMING_ZERO,
15511 .block_erasers =
15512 {
15513 {
15514 .eraseblocks = { {64 * 1024, 128} },
15515 .block_erase = erase_sector_jedec,
15516 }, {
15517 .eraseblocks = { {8 * 1024 * 1024, 1} },
15518 .block_erase = erase_chip_block_jedec,
15519 },
15520 },
15521 .write = write_jedec_1,
15522 .read = read_memmapped,
15523 .voltage = {2700, 3600},
15524 },
15525
15526 {
15527 .vendor = "Winbond",
15528 .name = "W29GL128C",
15529 .bustype = BUS_PARALLEL,
15530 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15531 .model_id = WINBOND_W29GL128CHL,
15532 .total_size = 16384,
15533 .page_size = 128 * 1024, /* actual page size is 16 */
15534 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15535 .tested = TEST_UNTESTED,
15536 .probe = probe_jedec_29gl,
15537 .probe_timing = TIMING_ZERO,
15538 .block_erasers =
15539 {
15540 {
15541 .eraseblocks = { {128 * 1024, 128} },
15542 .block_erase = erase_sector_jedec,
15543 }, {
15544 .eraseblocks = { {16 * 1024 * 1024, 1} },
15545 .block_erase = erase_chip_block_jedec,
15546 },
15547 },
15548 .write = write_jedec_1,
15549 .read = read_memmapped,
15550 .voltage = {2700, 3600},
15551 },
15552
15553 {
15554 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000015555 .name = "W39F010",
15556 .bustype = BUS_PARALLEL,
15557 .manufacture_id = WINBOND_ID,
15558 .model_id = WINBOND_W39F010,
15559 .total_size = 128,
15560 .page_size = 4 * 1024,
15561 .feature_bits = FEATURE_EITHER_RESET,
15562 .tested = TEST_OK_PREW,
15563 .probe = probe_jedec,
15564 .probe_timing = 10,
15565 .block_erasers =
15566 {
15567 {
15568 .eraseblocks = { {4 * 1024, 32} },
15569 .block_erase = erase_block_jedec,
15570 }, {
15571 .eraseblocks = { {128 * 1024, 1} },
15572 .block_erase = erase_chip_block_jedec,
15573 }
15574 },
15575 .printlock = printlock_w39f010,
15576 .write = write_jedec_1,
15577 .read = read_memmapped,
15578 .voltage = {4500, 5500},
15579 },
15580
15581 {
15582 .vendor = "Winbond",
15583 .name = "W39L010",
15584 .bustype = BUS_PARALLEL,
15585 .manufacture_id = WINBOND_ID,
15586 .model_id = WINBOND_W39L010,
15587 .total_size = 128,
15588 .page_size = 4 * 1024,
15589 .feature_bits = FEATURE_EITHER_RESET,
15590 .tested = TEST_UNTESTED,
15591 .probe = probe_jedec,
15592 .probe_timing = 10,
15593 .block_erasers =
15594 {
15595 {
15596 .eraseblocks = { {4 * 1024, 32} },
15597 .block_erase = erase_block_jedec,
15598 }, {
15599 .eraseblocks = { {128 * 1024, 1} },
15600 .block_erase = erase_chip_block_jedec,
15601 }
15602 },
15603 .printlock = printlock_w39l010,
15604 .write = write_jedec_1,
15605 .read = read_memmapped,
15606 .voltage = {3000, 3600},
15607 },
15608
15609 {
15610 .vendor = "Winbond",
15611 .name = "W39L020",
15612 .bustype = BUS_PARALLEL,
15613 .manufacture_id = WINBOND_ID,
15614 .model_id = WINBOND_W39L020,
15615 .total_size = 256,
15616 .page_size = 4 * 1024,
15617 .feature_bits = FEATURE_EITHER_RESET,
15618 .tested = TEST_UNTESTED,
15619 .probe = probe_jedec,
15620 .probe_timing = 10,
15621 .block_erasers =
15622 {
15623 {
15624 .eraseblocks = { {4 * 1024, 64} },
15625 .block_erase = erase_block_jedec,
15626 }, {
15627 .eraseblocks = { {64 * 1024, 4} },
15628 .block_erase = erase_sector_jedec,
15629 }, {
15630 .eraseblocks = { {256 * 1024, 1} },
15631 .block_erase = erase_chip_block_jedec,
15632 }
15633 },
15634 .printlock = printlock_w39l020,
15635 .write = write_jedec_1,
15636 .read = read_memmapped,
15637 .voltage = {3000, 3600},
15638 },
15639
15640 {
15641 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000015642 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015643 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000015644 .manufacture_id = WINBOND_ID,
15645 .model_id = WINBOND_W39L040,
15646 .total_size = 512,
15647 .page_size = 64 * 1024,
15648 .feature_bits = FEATURE_EITHER_RESET,
15649 .tested = TEST_OK_PR,
15650 .probe = probe_jedec,
15651 .probe_timing = 10,
15652 .block_erasers =
15653 {
15654 {
15655 .eraseblocks = { {4 * 1024, 128} },
15656 .block_erase = erase_block_jedec,
15657 }, {
15658 .eraseblocks = { {64 * 1024, 8} },
15659 .block_erase = erase_sector_jedec,
15660 }, {
15661 .eraseblocks = { {512 * 1024, 1} },
15662 .block_erase = erase_chip_block_jedec,
15663 }
15664 },
15665 .printlock = printlock_w39l040,
15666 .write = write_jedec_1,
15667 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015668 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000015669 },
15670
15671 {
15672 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015673 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015674 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015675 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015676 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015677 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015678 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015679 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015681 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000015682 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015683 .block_erasers =
15684 {
15685 {
15686 .eraseblocks = { {64 * 1024, 8} },
15687 .block_erase = erase_sector_jedec,
15688 }, {
15689 .eraseblocks = { {512 * 1024, 1} },
15690 .block_erase = erase_chip_block_jedec,
15691 }
15692 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015693 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000015694 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015696 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015697 },
15698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015699 {
15700 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015701 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015702 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015703 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015704 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015705 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015706 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015707 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015708 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015709 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000015710 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015711 .block_erasers =
15712 {
15713 {
15714 .eraseblocks = { {64 * 1024, 8} },
15715 .block_erase = erase_sector_jedec,
15716 }, {
15717 .eraseblocks = { {512 * 1024, 1} },
15718 .block_erase = erase_chip_block_jedec,
15719 }
15720 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015721 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000015722 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015724 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015725 },
15726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015727 {
15728 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015729 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015730 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015731 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015732 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015733 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015734 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015735 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015736 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000015737 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015738 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015739 .block_erasers =
15740 {
15741 {
15742 .eraseblocks = { {64 * 1024, 8} },
15743 .block_erase = erase_sector_jedec,
15744 }, {
15745 .eraseblocks = { {512 * 1024, 1} },
15746 .block_erase = erase_chip_block_jedec,
15747 }
15748 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000015749 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000015750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015753 },
15754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015755 {
15756 .vendor = "Winbond",
15757 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015758 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015759 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015760 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015761 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015762 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000015763 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015765 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015766 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015767 .block_erasers =
15768 {
15769 {
15770 .eraseblocks = { {4 * 1024, 128} },
15771 .block_erase = erase_block_jedec,
15772 }, {
15773 .eraseblocks = { {64 * 1024, 8} },
15774 .block_erase = erase_sector_jedec,
15775 }, {
15776 .eraseblocks = { {512 * 1024, 1} },
15777 .block_erase = erase_chip_block_jedec,
15778 }
15779 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015780 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015781 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015782 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015784 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015785 },
15786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015787 {
15788 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015789 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015790 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015791 .manufacture_id = WINBOND_ID,
15792 .model_id = WINBOND_W39V040B,
15793 .total_size = 512,
15794 .page_size = 64 * 1024,
15795 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000015796 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015797 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015798 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015799 .block_erasers =
15800 {
15801 {
15802 .eraseblocks = { {64 * 1024, 8} },
15803 .block_erase = erase_sector_jedec,
15804 }, {
15805 .eraseblocks = { {512 * 1024, 1} },
15806 .block_erase = erase_chip_block_jedec,
15807 }
15808 },
15809 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015810 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015811 .write = write_jedec_1,
15812 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015813 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015814 },
15815
15816 {
15817 .vendor = "Winbond",
15818 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015819 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015820 .manufacture_id = WINBOND_ID,
15821 .model_id = WINBOND_W39V040C,
15822 .total_size = 512,
15823 .page_size = 64 * 1024,
15824 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000015825 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015826 .probe = probe_jedec,
15827 .probe_timing = 10,
15828 .block_erasers =
15829 {
15830 {
15831 .eraseblocks = { {64 * 1024, 8} },
15832 .block_erase = erase_sector_jedec,
15833 }, {
15834 .eraseblocks = { {512 * 1024, 1} },
15835 .block_erase = erase_chip_block_jedec,
15836 }
15837 },
15838 .printlock = printlock_w39v040fc,
15839 .write = write_jedec_1,
15840 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015841 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015842 },
15843
15844 {
15845 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015846 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015847 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015848 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015849 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015850 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015851 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015852 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000015853 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015854 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000015855 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015856 .block_erasers =
15857 {
15858 {
15859 .eraseblocks = { {64 * 1024, 16} },
15860 .block_erase = erase_sector_jedec,
15861 }, {
15862 .eraseblocks = { {1024 * 1024, 1} },
15863 .block_erase = erase_chip_block_jedec,
15864 }
15865 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015866 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000015867 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015869 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015870 },
15871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015872 {
15873 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015874 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015875 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015876 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015877 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015878 .total_size = 256,
15879 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015880 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015881 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015882 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015883 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015884 .block_erasers =
15885 {
15886 {
15887 .eraseblocks = {
15888 {128 * 1024, 1},
15889 {96 * 1024, 1},
15890 {8 * 1024, 2},
15891 {16 * 1024, 1},
15892 },
15893 .block_erase = erase_sector_jedec,
15894 }, {
15895 .eraseblocks = { {256 * 1024, 1} },
15896 .block_erase = erase_chip_block_jedec,
15897 }
15898 },
Sean Nelson35727f72010-01-28 23:55:12 +000015899 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015900 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015901 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015902 },
15903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015904 {
15905 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015906 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015907 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015908 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015909 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015910 .total_size = 256,
15911 .page_size = 128,
15912 .feature_bits = FEATURE_EITHER_RESET,
15913 .tested = TEST_OK_PROBE,
15914 .probe = probe_jedec,
15915 .probe_timing = 10,
15916 .block_erasers =
15917 {
15918 {
15919 .eraseblocks = { {256 * 1024, 1} },
15920 .block_erase = erase_chip_block_jedec,
15921 }
15922 },
15923 .write = write_jedec_1,
15924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015925 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015926 },
15927
15928 {
15929 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015930 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015931 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015932 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015933 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015934 .total_size = 256,
15935 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015936 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015937 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015938 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015939 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015940 .block_erasers =
15941 {
15942 {
15943 .eraseblocks = {
15944 {64 * 1024, 3},
15945 {32 * 1024, 1},
15946 {8 * 1024, 2},
15947 {16 * 1024, 1},
15948 },
15949 .block_erase = erase_sector_jedec,
15950 }, {
15951 .eraseblocks = { {256 * 1024, 1} },
15952 .block_erase = erase_chip_block_jedec,
15953 }
15954 },
Sean Nelson35727f72010-01-28 23:55:12 +000015955 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015957 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015958 },
15959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015960 {
15961 .vendor = "Winbond",
15962 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015963 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015964 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015965 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015966 .total_size = 256,
15967 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015968 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015969 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015970 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015971 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015972 .block_erasers =
15973 {
15974 {
15975 .eraseblocks = {
15976 {64 * 1024, 3},
15977 {32 * 1024, 1},
15978 {8 * 1024, 2},
15979 {16 * 1024, 1},
15980 },
15981 .block_erase = erase_sector_jedec,
15982 }, {
15983 .eraseblocks = { {256 * 1024, 1} },
15984 .block_erase = erase_chip_block_jedec,
15985 }
15986 },
Sean Nelson35727f72010-01-28 23:55:12 +000015987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015990 },
15991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015992 {
15993 .vendor = "Winbond",
15994 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015995 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015996 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015997 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015998 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015999 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016000 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016001 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016002 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016003 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016004 .block_erasers =
16005 {
16006 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016007 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016008 .block_erase = erase_sector_jedec,
16009 }, {
16010 .eraseblocks = { {1024 * 1024, 1} },
16011 .block_erase = erase_chip_block_jedec,
16012 }
16013 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016014 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016015 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016016 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016017 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016018 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016019 },
16020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016021 {
16022 .vendor = "Winbond",
16023 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016024 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016025 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016026 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016027 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016028 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016029 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016030 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016031 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016032 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016033 .block_erasers =
16034 {
16035 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016036 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016037 .block_erase = erase_sector_jedec,
16038 }, {
16039 .eraseblocks = { {512 * 1024, 1} },
16040 .block_erase = erase_chip_block_jedec,
16041 }
16042 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016043 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000016044 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016045 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016046 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016047 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016048
16049 {
16050 .vendor = "Unknown",
16051 .name = "SFDP-capable chip",
16052 .bustype = BUS_SPI,
16053 .manufacture_id = GENERIC_MANUF_ID,
16054 .model_id = SFDP_DEVICE_ID,
16055 /* We present our own "report this" text hence we do not
16056 * want the default "This flash part has status UNTESTED..."
16057 * text to be printed. */
16058 .tested = TEST_OK_PREW,
16059 .probe = probe_spi_sfdp,
16060 .unlock = spi_disable_blockprotect, /* is this safe? */
16061 .read = spi_chip_read,
16062 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000016063 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016064 /* Everything below will be set by the probing function. */
16065 .write = NULL,
16066 .total_size = 0,
16067 .page_size = 0,
16068 .feature_bits = 0,
16069 .block_erasers = {},
16070 },
FENG yu ningff692fb2008-12-08 18:15:10 +000016071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016072 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000016073 .vendor = "Programmer",
16074 .name = "Opaque flash chip",
16075 .bustype = BUS_PROG,
16076 .manufacture_id = PROGMANUF_ID,
16077 .model_id = PROGDEV_ID,
16078 .total_size = 0,
16079 .page_size = 256,
16080 /* probe is assumed to work, rest will be filled in by probe */
16081 .tested = TEST_OK_PROBE,
16082 .probe = probe_opaque,
16083 /* eraseblock sizes will be set by the probing function */
16084 .block_erasers =
16085 {
16086 {
16087 .block_erase = erase_opaque,
16088 }
16089 },
16090 .write = write_opaque,
16091 .read = read_opaque,
16092 },
16093
16094 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016095 .vendor = "AMIC",
16096 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016097 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016098 .manufacture_id = AMIC_ID,
16099 .model_id = GENERIC_DEVICE_ID,
16100 .total_size = 0,
16101 .page_size = 256,
16102 .tested = TEST_BAD_PREW,
16103 .probe = probe_spi_rdid4,
16104 .probe_timing = TIMING_ZERO,
16105 .write = NULL,
16106 .read = NULL,
16107 },
16108
16109 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016110 .vendor = "Atmel",
16111 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016112 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016113 .manufacture_id = ATMEL_ID,
16114 .model_id = GENERIC_DEVICE_ID,
16115 .total_size = 0,
16116 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016117 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016119 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016120 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016121 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016122 },
16123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016124 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000016125 .vendor = "Eon",
16126 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016127 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016128 .manufacture_id = EON_ID_NOPREFIX,
16129 .model_id = GENERIC_DEVICE_ID,
16130 .total_size = 0,
16131 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016132 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016133 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016134 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016135 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016136 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016137 },
16138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016139 {
16140 .vendor = "Macronix",
16141 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016142 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000016143 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016144 .model_id = GENERIC_DEVICE_ID,
16145 .total_size = 0,
16146 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016147 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016148 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016149 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016150 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016151 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016152 },
16153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016154 {
16155 .vendor = "PMC",
16156 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016157 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016158 .manufacture_id = PMC_ID,
16159 .model_id = GENERIC_DEVICE_ID,
16160 .total_size = 0,
16161 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016162 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016163 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016164 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016165 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016166 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016167 },
16168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016169 {
16170 .vendor = "SST",
16171 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016173 .manufacture_id = SST_ID,
16174 .model_id = GENERIC_DEVICE_ID,
16175 .total_size = 0,
16176 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016177 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016178 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016179 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016180 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016181 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016182 },
16183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016184 {
16185 .vendor = "ST",
16186 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016188 .manufacture_id = ST_ID,
16189 .model_id = GENERIC_DEVICE_ID,
16190 .total_size = 0,
16191 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016192 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016193 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016194 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016195 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016196 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016197 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000016198
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016199 {
Sean Nelson118e1d62009-11-24 02:08:11 +000016200 .vendor = "Sanyo",
16201 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016202 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000016203 .manufacture_id = SANYO_ID,
16204 .model_id = GENERIC_DEVICE_ID,
16205 .total_size = 0,
16206 .page_size = 256,
16207 .tested = TEST_BAD_PREW,
16208 .probe = probe_spi_rdid,
16209 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000016210 .write = NULL,
16211 .read = NULL,
16212 },
16213
16214 {
Stefan Taunereb582572012-09-21 12:52:50 +000016215 .vendor = "Winbond",
16216 .name = "unknown Winbond (ex Nexcom) SPI chip",
16217 .bustype = BUS_SPI,
16218 .manufacture_id = WINBOND_NEX_ID,
16219 .model_id = GENERIC_DEVICE_ID,
16220 .total_size = 0,
16221 .page_size = 256,
16222 .tested = TEST_BAD_PREW,
16223 .probe = probe_spi_rdid,
16224 .probe_timing = TIMING_ZERO,
16225 .write = NULL,
16226 .read = NULL,
16227 },
16228
16229 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016230 .vendor = "Generic",
16231 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016232 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016233 .manufacture_id = GENERIC_MANUF_ID,
16234 .model_id = GENERIC_DEVICE_ID,
16235 .total_size = 0,
16236 .page_size = 256,
16237 .tested = TEST_BAD_PREW,
16238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016239 .write = NULL,
16240 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000016241
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016242 {
16243 .vendor = "Generic",
16244 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016245 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016246 .manufacture_id = GENERIC_MANUF_ID,
16247 .model_id = GENERIC_DEVICE_ID,
16248 .total_size = 0,
16249 .page_size = 256,
16250 .tested = TEST_BAD_PREW,
16251 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016252 .write = NULL,
16253 },
16254
Stefan Tauner96658be2014-05-26 22:05:31 +000016255 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000016256};
Stefan Tauner96658be2014-05-26 22:05:31 +000016257
16258const unsigned int flashchips_size = ARRAY_SIZE(flashchips);