blob: 98a41a9d0e05701666b96e1f9076ad2bbe42e4a6 [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",
jvma3ab6c62018-03-08 15:43:20 +01002180 .name = "AT25SF041",
2181 .bustype = BUS_SPI,
2182 .manufacture_id = ATMEL_ID,
2183 .model_id = ATMEL_AT25SF041,
2184 .total_size = 512,
2185 .page_size = 256,
2186 .feature_bits = FEATURE_WRSR_WREN,
2187 .tested = TEST_OK_PREW,
2188 .probe = probe_spi_rdid,
2189 .probe_timing = TIMING_ZERO,
2190 .block_erasers =
2191 {
2192 {
2193 .eraseblocks = { {4 * 1024, 128} },
2194 .block_erase = spi_block_erase_20,
2195 }, {
2196 .eraseblocks = { {32 * 1024, 16} },
2197 .block_erase = spi_block_erase_52,
2198 }, {
2199 .eraseblocks = { {64 * 1024, 8} },
2200 .block_erase = spi_block_erase_d8,
2201 }, {
2202 .eraseblocks = { {512 * 1024, 1} },
2203 .block_erase = spi_block_erase_60,
2204 }, {
2205 .eraseblocks = { {512 * 1024, 1} },
2206 .block_erase = spi_block_erase_c7,
2207 }
2208 },
2209 .printlock = spi_prettyprint_status_register_plain,
2210 .unlock = spi_disable_blockprotect,
2211 .write = spi_chip_write_256,
2212 .read = spi_chip_read,
2213 .voltage = {2500, 3600},
2214 },
2215
2216 {
2217 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002218 .name = "AT25SF161",
2219 .bustype = BUS_SPI,
2220 .manufacture_id = ATMEL_ID,
2221 .model_id = ATMEL_AT25SF161,
2222 .total_size = 2048,
2223 .page_size = 256,
2224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2225 .tested = TEST_OK_PREW,
2226 .probe = probe_spi_rdid,
2227 .probe_timing = TIMING_ZERO,
2228 .block_erasers =
2229 {
2230 {
2231 .eraseblocks = { {4 * 1024, 512} },
2232 .block_erase = spi_block_erase_20,
2233 }, {
2234 .eraseblocks = { {32 * 1024, 64} },
2235 .block_erase = spi_block_erase_52,
2236 }, {
2237 .eraseblocks = { {64 * 1024, 32} },
2238 .block_erase = spi_block_erase_d8,
2239 }, {
2240 .eraseblocks = { {2048 * 1024, 1} },
2241 .block_erase = spi_block_erase_60,
2242 }, {
2243 .eraseblocks = { {2048 * 1024, 1} },
2244 .block_erase = spi_block_erase_c7,
2245 }
2246 },
2247 .printlock = spi_prettyprint_status_register_plain,
2248 .unlock = spi_disable_blockprotect,
2249 .write = spi_chip_write_256,
2250 .read = spi_chip_read,
2251 .voltage = {2500, 3600},
2252 },
2253
2254 {
2255 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002257 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002259 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .total_size = 512,
2261 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002262 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002263 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002264 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002265 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002266 .block_erasers =
2267 {
2268 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002269 .eraseblocks = { {256, 2048} },
2270 .block_erase = spi_block_erase_81,
2271 }, {
2272 .eraseblocks = { {2 * 1024, 256} },
2273 .block_erase = spi_block_erase_50,
2274 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002275 .eraseblocks = { {4 * 1024, 128} },
2276 .block_erase = spi_block_erase_20,
2277 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002278 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002279 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002280 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002281 .write = spi_chip_write_1,
2282 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002283 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT26DF081A",
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_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 1024,
2293 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002294 .feature_bits = FEATURE_WRSR_WREN,
2295 .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, 256} },
2302 .block_erase = spi_block_erase_20,
2303 }, {
2304 .eraseblocks = { {32 * 1024, 32} },
2305 .block_erase = spi_block_erase_52,
2306 }, {
2307 .eraseblocks = { {64 * 1024, 16} },
2308 .block_erase = spi_block_erase_d8,
2309 }, {
2310 .eraseblocks = { {1024 * 1024, 1} },
2311 .block_erase = spi_block_erase_60,
2312 }, {
2313 .eraseblocks = { {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
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002324 {
2325 .vendor = "Atmel",
2326 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002327 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002328 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002329 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002330 .total_size = 2048,
2331 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002332 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002333 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002335 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002336 .block_erasers =
2337 {
2338 {
2339 .eraseblocks = { {4 * 1024, 512} },
2340 .block_erase = spi_block_erase_20,
2341 }, {
2342 .eraseblocks = { {32 * 1024, 64} },
2343 .block_erase = spi_block_erase_52,
2344 }, {
2345 .eraseblocks = { {64 * 1024, 32} },
2346 .block_erase = spi_block_erase_d8,
2347 }, {
2348 .eraseblocks = { {2 * 1024 * 1024, 1} },
2349 .block_erase = spi_block_erase_60,
2350 }, {
2351 .eraseblocks = { {2 * 1024 * 1024, 1} },
2352 .block_erase = spi_block_erase_c7,
2353 }
2354 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002355 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002356 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002358 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002359 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002360 },
2361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002362 {
2363 .vendor = "Atmel",
2364 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002367 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 .total_size = 2048,
2369 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002370 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002371 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002373 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002374 .block_erasers =
2375 {
2376 {
2377 .eraseblocks = { {4 * 1024, 512} },
2378 .block_erase = spi_block_erase_20,
2379 }, {
2380 .eraseblocks = { {32 * 1024, 64} },
2381 .block_erase = spi_block_erase_52,
2382 }, {
2383 .eraseblocks = { {64 * 1024, 32} },
2384 .block_erase = spi_block_erase_d8,
2385 }, {
2386 .eraseblocks = { {2 * 1024 * 1024, 1} },
2387 .block_erase = spi_block_erase_60,
2388 }, {
2389 .eraseblocks = { {2 * 1024 * 1024, 1} },
2390 .block_erase = spi_block_erase_c7,
2391 }
2392 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002393 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002394 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002396 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002397 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002398 },
2399
2400 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002401 /*{
2402 .vendor = "Atmel",
2403 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002404 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002405 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002406 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .total_size = 4096,
2408 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002409 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002410 .tested = TEST_UNTESTED,
2411 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002412 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002413 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002414 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002415 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002416 .read = spi_chip_read,
2417 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 {
2420 .vendor = "Atmel",
2421 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002424 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002425 .total_size = 512,
2426 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002427 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002428 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002430 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002431 .block_erasers =
2432 {
2433 {
2434 .eraseblocks = { {4 * 1024, 128} },
2435 .block_erase = spi_block_erase_20,
2436 }, {
2437 .eraseblocks = { {32 * 1024, 16} },
2438 .block_erase = spi_block_erase_52,
2439 }, {
2440 .eraseblocks = { {64 * 1024, 8} },
2441 .block_erase = spi_block_erase_d8,
2442 }, {
2443 .eraseblocks = { {512 * 1024, 1} },
2444 .block_erase = spi_block_erase_60,
2445 }, {
2446 .eraseblocks = { {512 * 1024, 1} },
2447 .block_erase = spi_block_erase_c7,
2448 }
2449 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002450 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .write = NULL /* Incompatible Page write */,
2452 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002453 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002454 },
2455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002456 {
2457 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002458 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002459 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002460 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002461 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002462 .total_size = 64,
2463 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002464 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002465 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002466 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002467 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002468 .block_erasers =
2469 {
2470 {
2471 .eraseblocks = { {64 * 1024, 1} },
2472 .block_erase = erase_chip_block_jedec,
2473 }
2474 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002475 .write = write_jedec,
2476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002477 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002478 },
2479
2480 {
2481 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002482 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002483 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002484 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002485 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002486 .total_size = 128,
2487 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002488 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002489 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002490 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002491 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002492 .block_erasers =
2493 {
2494 {
2495 .eraseblocks = { {128 * 1024, 1} },
2496 .block_erase = erase_chip_block_jedec,
2497 }
2498 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002499 .write = write_jedec, /* FIXME */
2500 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002501 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002502 },
2503
2504 {
2505 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002506 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002507 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002508 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002509 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002510 .total_size = 256,
2511 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002512 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002513 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002514 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002515 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002516 .block_erasers =
2517 {
2518 {
2519 .eraseblocks = { {256 * 1024, 1} },
2520 .block_erase = erase_chip_block_jedec,
2521 }
2522 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002524 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002525 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002526 },
2527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002528 {
2529 .vendor = "Atmel",
2530 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002531 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002532 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002533 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002534 .total_size = 512,
2535 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002536 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002537 .tested = TEST_UNTESTED,
2538 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002539 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002540 .block_erasers =
2541 {
2542 {
2543 .eraseblocks = { {512 * 1024, 1} },
2544 .block_erase = erase_chip_block_jedec,
2545 }
2546 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002547 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002549 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002550 },
2551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002552 {
2553 .vendor = "Atmel",
2554 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002555 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002556 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002557 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002558 .total_size = 16896 /* No power of two sizes */,
2559 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002560 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002561 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2562 .feature_bits = FEATURE_OTP,
2563 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002565 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002566 .block_erasers =
2567 {
2568 {
2569 .eraseblocks = {
2570 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2571 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2572 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2573 },
2574 .block_erase = spi_erase_at45cs_sector,
2575 }
2576 },
2577 .printlock = spi_prettyprint_status_register_plain,
2578 .gran = write_gran_1056bytes,
2579 .write = spi_write_at45db,
2580 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002581 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002582 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002584 {
2585 .vendor = "Atmel",
2586 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002587 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002589 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002590 .total_size = 128 /* or 132, determined from status register */,
2591 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002592 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002593 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2594 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002595 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002596 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002597 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002598 .block_erasers =
2599 {
2600 {
2601 .eraseblocks = { {256, 512} },
2602 .block_erase = spi_erase_at45db_page,
2603 }, {
2604 .eraseblocks = { {8 * 256, 512/8} },
2605 .block_erase = spi_erase_at45db_block,
2606 }, {
2607 .eraseblocks = {
2608 {8 * 256, 1},
2609 {120 * 256, 1},
2610 {128 * 256, 3},
2611 },
2612 .block_erase = spi_erase_at45db_sector
2613 }, {
2614 .eraseblocks = { {128 * 1024, 1} },
2615 .block_erase = spi_erase_at45db_chip,
2616 }
2617 },
2618 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2619 .printlock = spi_prettyprint_status_register_at45db,
2620 /* granularity will be set by the probing function. */
2621 .write = spi_write_at45db,
2622 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002624 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 {
2627 .vendor = "Atmel",
2628 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002629 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002630 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002631 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002632 .total_size = 256 /* or 264, determined from status register */,
2633 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002634 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002635 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2636 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002637 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002638 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002639 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002640 .block_erasers =
2641 {
2642 {
2643 .eraseblocks = { {256, 1024} },
2644 .block_erase = spi_erase_at45db_page,
2645 }, {
2646 .eraseblocks = { {8 * 256, 1024/8} },
2647 .block_erase = spi_erase_at45db_block,
2648 }, {
2649 .eraseblocks = {
2650 {8 * 256, 1},
2651 {120 * 256, 1},
2652 {128 * 256, 7},
2653 },
2654 .block_erase = spi_erase_at45db_sector
2655 }, {
2656 .eraseblocks = { {256 * 1024, 1} },
2657 .block_erase = spi_erase_at45db_chip,
2658 }
2659 },
2660 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2661 .printlock = spi_prettyprint_status_register_at45db,
2662 /* granularity will be set by the probing function. */
2663 .write = spi_write_at45db,
2664 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002665 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002666 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002668 {
2669 .vendor = "Atmel",
2670 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002672 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002673 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002674 .total_size = 512 /* or 528, determined from status register */,
2675 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002676 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002677 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2678 .feature_bits = FEATURE_OTP,
2679 .tested = TEST_OK_PREW,
2680 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002681 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002682 .block_erasers =
2683 {
2684 {
2685 .eraseblocks = { {256, 2048} },
2686 .block_erase = spi_erase_at45db_page,
2687 }, {
2688 .eraseblocks = { {8 * 256, 2048/8} },
2689 .block_erase = spi_erase_at45db_block,
2690 }, {
2691 .eraseblocks = {
2692 {8 * 256, 1},
2693 {248 * 256, 1},
2694 {256 * 256, 7},
2695 },
2696 .block_erase = spi_erase_at45db_sector
2697 }, {
2698 .eraseblocks = { {512 * 1024, 1} },
2699 .block_erase = spi_erase_at45db_chip,
2700 }
2701 },
2702 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2703 .printlock = spi_prettyprint_status_register_at45db,
2704 /* granularity will be set by the probing function. */
2705 .write = spi_write_at45db,
2706 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2707 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002708 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002710 {
2711 .vendor = "Atmel",
2712 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002715 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002716 .total_size = 1024 /* or 1056, determined from status register */,
2717 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002718 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002719 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2720 .feature_bits = FEATURE_OTP,
2721 .tested = TEST_UNTESTED,
2722 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002723 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002724 .block_erasers =
2725 {
2726 {
2727 .eraseblocks = { {256, 4096} },
2728 .block_erase = spi_erase_at45db_page,
2729 }, {
2730 .eraseblocks = { {8 * 256, 4096/8} },
2731 .block_erase = spi_erase_at45db_block,
2732 }, {
2733 .eraseblocks = {
2734 {8 * 256, 1},
2735 {248 * 256, 1},
2736 {256 * 256, 15},
2737 },
2738 .block_erase = spi_erase_at45db_sector
2739 }, {
2740 .eraseblocks = { {1024 * 1024, 1} },
2741 .block_erase = spi_erase_at45db_chip,
2742 }
2743 },
2744 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2745 .printlock = spi_prettyprint_status_register_at45db,
2746 /* granularity will be set by the probing function. */
2747 .write = spi_write_at45db,
2748 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002749 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002750 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002752 {
2753 .vendor = "Atmel",
2754 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002758 .total_size = 2048 /* or 2112, determined from status register */,
2759 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002760 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002761 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2762 .feature_bits = FEATURE_OTP,
2763 .tested = TEST_OK_PREW,
2764 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002765 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002766 .block_erasers =
2767 {
2768 {
2769 .eraseblocks = { {512, 4096} },
2770 .block_erase = spi_erase_at45db_page,
2771 }, {
2772 .eraseblocks = { {8 * 512, 4096/8} },
2773 .block_erase = spi_erase_at45db_block,
2774 }, {
2775 .eraseblocks = {
2776 {8 * 512, 1},
2777 {248 * 512, 1},
2778 {256 * 512, 15},
2779 },
2780 .block_erase = spi_erase_at45db_sector
2781 }, {
2782 .eraseblocks = { {2048 * 1024, 1} },
2783 .block_erase = spi_erase_at45db_chip,
2784 }
2785 },
2786 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2787 .printlock = spi_prettyprint_status_register_at45db,
2788 /* granularity will be set by the probing function. */
2789 .write = spi_write_at45db,
2790 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002791 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002792 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 {
2795 .vendor = "Atmel",
2796 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002797 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002798 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002799 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002800 .total_size = 4224 /* No power of two sizes */,
2801 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002802 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002803 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2804 .feature_bits = FEATURE_OTP,
2805 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002807 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002808 .block_erasers =
2809 {
2810 {
2811 .eraseblocks = { {528, 8192} },
2812 .block_erase = spi_erase_at45db_page,
2813 }, {
2814 .eraseblocks = { {8 * 528, 8192/8} },
2815 .block_erase = spi_erase_at45db_block,
2816 }, /* Although the datasheets describes sectors (which can be write protected)
2817 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002818 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002819 .eraseblocks = {
2820 {8 * 528, 1},
2821 {120 * 528, 1},
2822 {128 * 528, 63},
2823 },
2824 .block_erase = spi_erase_at45db_sector
2825 }, */ {
2826 .eraseblocks = { {4224 * 1024, 1} },
2827 .block_erase = spi_erase_at45db_chip,
2828 }
2829 },
2830 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2831 .gran = write_gran_528bytes,
2832 .write = spi_write_at45db,
2833 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002834 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002835 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002837 {
2838 .vendor = "Atmel",
2839 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002840 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002841 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002842 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002843 .total_size = 4096 /* or 4224, determined from status register */,
2844 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002845 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002846 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002847 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002848 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002849 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002850 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002851 .block_erasers =
2852 {
2853 {
2854 .eraseblocks = { {512, 8192} },
2855 .block_erase = spi_erase_at45db_page,
2856 }, {
2857 .eraseblocks = { {8 * 512, 8192/8} },
2858 .block_erase = spi_erase_at45db_block,
2859 }, {
2860 .eraseblocks = {
2861 {8 * 512, 1},
2862 {120 * 512, 1},
2863 {128 * 512, 63},
2864 },
2865 .block_erase = spi_erase_at45db_sector
2866 }, {
2867 .eraseblocks = { {4096 * 1024, 1} },
2868 .block_erase = spi_erase_at45db_chip,
2869 }
2870 },
2871 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2872 .printlock = spi_prettyprint_status_register_at45db,
2873 /* granularity will be set by the probing function. */
2874 .write = spi_write_at45db,
2875 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2876 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2877 },
2878
2879 {
2880 .vendor = "Atmel",
2881 .name = "AT45DB321E",
2882 .bustype = BUS_SPI,
2883 .manufacture_id = ATMEL_ID,
2884 .model_id = ATMEL_AT45DB321C,
2885 .total_size = 4096 /* or 4224, determined from status register */,
2886 .page_size = 512 /* or 528, determined from status register */,
2887 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2888 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2889 .feature_bits = FEATURE_OTP,
2890 .tested = TEST_UNTESTED,
2891 .probe = probe_spi_at45db,
2892 .probe_timing = TIMING_ZERO,
2893 .block_erasers =
2894 {
2895 {
2896 .eraseblocks = { {512, 8192} },
2897 .block_erase = spi_erase_at45db_page,
2898 }, {
2899 .eraseblocks = { {8 * 512, 8192/8} },
2900 .block_erase = spi_erase_at45db_block,
2901 }, {
2902 .eraseblocks = {
2903 {8 * 512, 1},
2904 {120 * 512, 1},
2905 {128 * 512, 63},
2906 },
2907 .block_erase = spi_erase_at45db_sector
2908 }, {
2909 .eraseblocks = { {4096 * 1024, 1} },
2910 .block_erase = spi_erase_at45db_chip,
2911 }
2912 },
2913 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2914 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2915 /* granularity will be set by the probing function. */
2916 .write = spi_write_at45db,
2917 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2918 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002919 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002921 {
2922 .vendor = "Atmel",
2923 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002924 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002925 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002926 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002927 .total_size = 8192 /* or 8448, determined from status register */,
2928 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002929 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002930 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2931 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002932 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002933 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002934 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002935 .block_erasers =
2936 {
2937 {
2938 .eraseblocks = { {1024, 8192} },
2939 .block_erase = spi_erase_at45db_page,
2940 }, {
2941 .eraseblocks = { {8 * 1024, 8192/8} },
2942 .block_erase = spi_erase_at45db_block,
2943 }, {
2944 .eraseblocks = {
2945 {8 * 1024, 1},
2946 {248 * 1024, 1},
2947 {256 * 1024, 31},
2948 },
2949 .block_erase = spi_erase_at45db_sector
2950 }, {
2951 .eraseblocks = { {8192 * 1024, 1} },
2952 .block_erase = spi_erase_at45db_chip,
2953 }
2954 },
2955 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2956 .printlock = spi_prettyprint_status_register_at45db,
2957 /* granularity will be set by the probing function. */
2958 .write = spi_write_at45db,
2959 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002960 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002961 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002963 {
2964 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002965 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002966 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002967 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002968 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002969 .total_size = 64,
2970 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002971 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002972 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002973 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002974 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002975 .block_erasers =
2976 {
2977 {
2978 .eraseblocks = { {64 * 1024, 1} },
2979 .block_erase = erase_chip_block_jedec,
2980 }
2981 },
Sean Nelson35727f72010-01-28 23:55:12 +00002982 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002984 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002985 },
2986
2987 {
2988 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002989 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002990 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002991 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002992 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002993 .total_size = 256,
2994 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002995 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002996 .tested = TEST_UNTESTED,
2997 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002998 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002999 .block_erasers =
3000 {
3001 {
3002 .eraseblocks = {
3003 {16 * 1024, 1},
3004 {8 * 1024, 2},
3005 {96 * 1024, 1},
3006 {128 * 1024, 1},
3007 },
3008 .block_erase = erase_sector_jedec,
3009 }, {
3010 .eraseblocks = { {256 * 1024, 1} },
3011 .block_erase = erase_chip_block_jedec,
3012 }
3013 },
Sean Nelson35727f72010-01-28 23:55:12 +00003014 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003016 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003017 },
3018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003019 {
3020 .vendor = "Atmel",
3021 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003022 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003024 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003025 .total_size = 256,
3026 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003027 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003028 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003029 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003030 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003031 .block_erasers =
3032 {
3033 {
3034 .eraseblocks = {
3035 {128 * 1024, 1},
3036 {96 * 1024, 1},
3037 {8 * 1024, 2},
3038 {16 * 1024, 1},
3039 },
3040 .block_erase = erase_sector_jedec,
3041 }, {
3042 .eraseblocks = { {256 * 1024, 1} },
3043 .block_erase = erase_chip_block_jedec,
3044 }
3045 },
Sean Nelson35727f72010-01-28 23:55:12 +00003046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003049 },
3050
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003051 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003052 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003053 .name = "AT49(H)F010",
3054 .bustype = BUS_PARALLEL,
3055 .manufacture_id = ATMEL_ID,
3056 .model_id = ATMEL_AT49F010,
3057 .total_size = 128,
3058 .page_size = 0, /* unused */
3059 .feature_bits = FEATURE_EITHER_RESET,
3060 .tested = TEST_OK_PREW,
3061 .probe = probe_jedec,
3062 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3063 .block_erasers =
3064 {
3065 {
3066 .eraseblocks = { {128 * 1024, 1} },
3067 .block_erase = erase_chip_block_jedec,
3068 }
3069 },
3070 .printlock = printlock_at49f,
Elyes HAOUAS124ef382018-03-27 12:15:09 +02003071 .write = write_jedec_1,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003072 .read = read_memmapped,
3073 .voltage = {4500, 5500},
3074 },
3075
3076 {
3077 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003078 .name = "AT49F020",
3079 .bustype = BUS_PARALLEL,
3080 .manufacture_id = ATMEL_ID,
3081 .model_id = ATMEL_AT49F020,
3082 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003083 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003084 .feature_bits = FEATURE_EITHER_RESET,
3085 .tested = TEST_OK_PRE,
3086 .probe = probe_jedec,
3087 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3088 .block_erasers =
3089 {
3090 {
3091 .eraseblocks = { {256 * 1024, 1} },
3092 .block_erase = erase_chip_block_jedec,
3093 }
3094 /* Chip features an optional permanent write protection
3095 * of the first 8 kB. The erase function is the same as
3096 * above, but 00000H to 01FFFH will not be erased.
3097 * FIXME: add another eraser when partial erasers are
3098 * supported.
3099 */
3100 },
3101 .printlock = printlock_at49f,
3102 .write = write_jedec_1,
3103 .read = read_memmapped,
3104 .voltage = {4500, 5500},
3105 },
3106
3107 {
3108 .vendor = "Atmel",
3109 .name = "AT49F040",
3110 .bustype = BUS_PARALLEL,
3111 .manufacture_id = ATMEL_ID,
3112 .model_id = ATMEL_AT49F040,
3113 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003114 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003115 .feature_bits = FEATURE_EITHER_RESET,
3116 .tested = TEST_UNTESTED,
3117 .probe = probe_jedec,
3118 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3119 .block_erasers =
3120 {
3121 {
3122 .eraseblocks = { {512 * 1024, 1} },
3123 .block_erase = erase_chip_block_jedec,
3124 }
3125 /* Chip features an optional permanent write protection
3126 * of the first 16 kB. The erase function is the same as
3127 * above, but 00000H to 03FFFH will not be erased.
3128 * FIXME: add another eraser when partial erasers are
3129 * supported.
3130 */
3131 },
3132 .printlock = printlock_at49f,
3133 .write = write_jedec_1,
3134 .read = read_memmapped,
3135 .voltage = {4500, 5500},
3136 },
3137
3138 {
3139 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003140 .name = "AT49F080",
3141 .bustype = BUS_PARALLEL,
3142 .manufacture_id = ATMEL_ID,
3143 .model_id = ATMEL_AT49F080,
3144 .total_size = 1024,
3145 .page_size = 0, /* unused */
3146 .feature_bits = FEATURE_EITHER_RESET,
3147 .tested = TEST_UNTESTED,
3148 .probe = probe_jedec,
3149 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3150 .block_erasers =
3151 {
3152 {
3153 .eraseblocks = { {1024 * 1024, 1} },
3154 .block_erase = erase_chip_block_jedec,
3155 }
3156 /* Chip features an optional permanent write protection
3157 * of the first 16 kB. The erase function is the same as
3158 * above, but 00000H to 03FFFH will not be erased.
3159 * FIXME: add another eraser when partial erasers are
3160 * supported.
3161 */
3162 },
3163 .printlock = printlock_at49f,
3164 .write = write_jedec_1,
3165 .read = read_memmapped,
3166 .voltage = {4500, 5500},
3167 },
3168
3169 {
3170 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3171 .vendor = "Atmel",
3172 .name = "AT49F080T",
3173 .bustype = BUS_PARALLEL,
3174 .manufacture_id = ATMEL_ID,
3175 .model_id = ATMEL_AT49F080T,
3176 .total_size = 1024,
3177 .page_size = 0, /* unused */
3178 .feature_bits = FEATURE_EITHER_RESET,
3179 .tested = TEST_UNTESTED,
3180 .probe = probe_jedec,
3181 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3182 .block_erasers =
3183 {
3184 {
3185 .eraseblocks = { {1024 * 1024, 1} },
3186 .block_erase = erase_chip_block_jedec,
3187 }
3188 /* Chip features an optional permanent write protection
3189 * of the first 16 kB. The erase function is the same as
3190 * above, but FC000H to FFFFFH will not be erased.
3191 * FIXME: add another eraser when partial erasers are
3192 * supported.
3193 */
3194 },
3195 .printlock = printlock_at49f,
3196 .write = write_jedec_1,
3197 .read = read_memmapped,
3198 .voltage = {4500, 5500},
3199 },
3200
3201 {
3202 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003203 .name = "AT49LH002",
3204 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3205 .manufacture_id = ATMEL_ID,
3206 .model_id = ATMEL_AT49LH002,
3207 .total_size = 256,
3208 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003209 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003210 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003211 .probe = probe_82802ab,
3212 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .block_erasers =
3214 {
3215 {
3216 .eraseblocks = {
3217 {64 * 1024, 3},
3218 {32 * 1024, 1},
3219 {8 * 1024, 2},
3220 {16 * 1024, 1},
3221 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003222 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 }, {
3224 .eraseblocks = {
3225 {64 * 1024, 4},
3226 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003227 .block_erase = erase_block_82802ab,
3228 },
3229 },
3230 .printlock = printlock_regspace2_block_eraser_0,
3231 .unlock = unlock_regspace2_block_eraser_0,
3232 .write = write_82802ab,
3233 .read = read_memmapped,
3234 .voltage = {3000, 3600},
3235 },
3236
3237 {
3238 .vendor = "Atmel",
3239 .name = "AT49LH00B4",
3240 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3241 .manufacture_id = ATMEL_ID,
3242 .model_id = ATMEL_AT49LH00B4,
3243 .total_size = 512,
3244 .page_size = 0, /* unused */
3245 .feature_bits = FEATURE_REGISTERMAP,
3246 .tested = TEST_UNTESTED,
3247 .probe = probe_82802ab,
3248 .probe_timing = TIMING_ZERO,
3249 .block_erasers =
3250 {
3251 {
3252 .eraseblocks = {
3253 {8 * 1024, 2},
3254 {16 * 1024, 1},
3255 {32 * 1024, 1},
3256 {64 * 1024, 7},
3257 },
3258 .block_erase = NULL, /* TODO: Implement. */
3259 }, {
3260 .eraseblocks = {
3261 {64 * 1024, 8},
3262 },
3263 .block_erase = erase_block_82802ab,
3264 },
3265 },
3266 .printlock = printlock_regspace2_block_eraser_0,
3267 .unlock = unlock_regspace2_block_eraser_0,
3268 .write = write_82802ab,
3269 .read = read_memmapped,
3270 .voltage = {3000, 3600},
3271 },
3272
3273 {
3274 .vendor = "Atmel",
3275 .name = "AT49LH004",
3276 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3277 .manufacture_id = ATMEL_ID,
3278 .model_id = ATMEL_AT49LH004,
3279 .total_size = 512,
3280 .page_size = 0, /* unused */
3281 .feature_bits = FEATURE_REGISTERMAP,
3282 .tested = TEST_UNTESTED,
3283 .probe = probe_82802ab,
3284 .probe_timing = TIMING_ZERO,
3285 .block_erasers =
3286 {
3287 {
3288 .eraseblocks = {
3289 {64 * 1024, 7},
3290 {32 * 1024, 1},
3291 {8 * 1024, 2},
3292 {16 * 1024, 1},
3293 },
3294 .block_erase = erase_block_82802ab,
3295 }, {
3296 .eraseblocks = {
3297 {64 * 1024, 8},
3298 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003299 .block_erase = NULL, /* TODO: Implement. */
3300 },
3301 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003302 .printlock = printlock_regspace2_block_eraser_0,
3303 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003304 .write = write_82802ab,
3305 .read = read_memmapped,
3306 .voltage = {3000, 3600},
3307 },
3308
3309 {
Andrew Morganca081462011-09-13 22:05:44 +00003310 .vendor = "Catalyst",
3311 .name = "CAT28F512",
3312 .bustype = BUS_PARALLEL,
3313 .manufacture_id = CATALYST_ID,
3314 .model_id = CATALYST_CAT28F512,
3315 .total_size = 64,
3316 .page_size = 0, /* unused */
3317 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003318 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003319 .probe = probe_jedec, /* FIXME! */
3320 .probe_timing = TIMING_ZERO,
3321 .block_erasers =
3322 {
3323 {
3324 .eraseblocks = { {64 * 1024, 1} },
3325 .block_erase = NULL, /* TODO */
3326 },
3327 },
3328 .write = NULL, /* TODO */
3329 .read = read_memmapped,
3330 .voltage = {4500, 5500},
3331 },
3332
3333 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003334 .vendor = "Bright",
3335 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003336 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003337 .manufacture_id = BRIGHT_ID,
3338 .model_id = BRIGHT_BM29F040,
3339 .total_size = 512,
3340 .page_size = 64 * 1024,
3341 .feature_bits = FEATURE_EITHER_RESET,
3342 .tested = TEST_OK_PR,
3343 .probe = probe_jedec,
3344 .probe_timing = TIMING_ZERO,
3345 .block_erasers =
3346 {
3347 {
3348 .eraseblocks = { {64 * 1024, 8} },
3349 .block_erase = erase_sector_jedec,
3350 }, {
3351 .eraseblocks = { {512 * 1024, 1} },
3352 .block_erase = erase_chip_block_jedec,
3353 },
3354 },
3355 .write = write_jedec_1,
3356 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003357 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003358 },
3359
3360 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003361 .vendor = "ENE",
3362 .name = "KB9012 (EDI)",
3363 .bustype = BUS_SPI,
3364 .spi_cmd_set = SPI_EDI,
3365 .total_size = 128,
3366 .page_size = 128,
3367 .feature_bits = FEATURE_ERASED_ZERO,
3368 .tested = TEST_OK_PREW,
3369 .probe = edi_probe_kb9012,
3370 .probe_timing = TIMING_ZERO,
3371 .block_erasers =
3372 {
3373 {
3374 .eraseblocks = { {128, 1024} },
3375 .block_erase = edi_chip_block_erase,
3376 },
3377 },
3378 .gran = write_gran_128bytes,
3379 .write = edi_chip_write,
3380 .read = edi_chip_read,
3381 .voltage = {2700, 3600},
3382 },
3383
3384 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003385 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003386 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003387 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003388 .manufacture_id = ESMT_ID,
3389 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003390 .total_size = 256,
3391 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003392 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003393 .tested = TEST_UNTESTED,
3394 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003395 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003396 .block_erasers =
3397 {
3398 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003399 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003400 {128 * 1024, 1},
3401 {96 * 1024, 1},
3402 {8 * 1024, 2},
3403 {16 * 1024, 1},
3404 },
3405 .block_erase = erase_sector_jedec,
3406 }, {
3407 .eraseblocks = { {256 * 1024, 1} },
3408 .block_erase = erase_chip_block_jedec,
3409 }
3410 },
Sean Nelson35727f72010-01-28 23:55:12 +00003411 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003413 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003414 },
3415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003416 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003417 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003418 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003419 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003420 .manufacture_id = ESMT_ID,
3421 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003422 .total_size = 1024,
3423 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003424 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003425 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003426 .probe = probe_spi_rdid,
3427 .probe_timing = TIMING_ZERO,
3428 .block_erasers =
3429 {
3430 {
3431 .eraseblocks = { {4 * 1024, 256} },
3432 .block_erase = spi_block_erase_20,
3433 }, {
3434 .eraseblocks = { {64 * 1024, 16} },
3435 .block_erase = spi_block_erase_d8,
3436 }, {
3437 .eraseblocks = { {1024 * 1024, 1} },
3438 .block_erase = spi_block_erase_60,
3439 }, {
3440 .eraseblocks = { {1024 * 1024, 1} },
3441 .block_erase = spi_block_erase_c7,
3442 }
3443 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003444 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003445 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003446 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003447 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003448 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003449 },
3450
3451 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003452 .vendor = "ESMT",
3453 .name = "F25L32PA",
3454 .bustype = BUS_SPI,
3455 .manufacture_id = ESMT_ID,
3456 .model_id = ESMT_F25L32PA,
3457 .total_size = 4096,
3458 .page_size = 256,
3459 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3460 .tested = TEST_UNTESTED,
3461 .probe = probe_spi_rdid,
3462 .probe_timing = TIMING_ZERO,
3463 .block_erasers =
3464 {
3465 {
3466 .eraseblocks = { {4 * 1024, 1024} },
3467 .block_erase = spi_block_erase_20,
3468 }, {
3469 .eraseblocks = { {64 * 1024, 64} },
3470 .block_erase = spi_block_erase_d8,
3471 }, {
3472 .eraseblocks = { {4 * 1024 * 1024, 1} },
3473 .block_erase = spi_block_erase_60,
3474 }, {
3475 .eraseblocks = { {4 * 1024 * 1024, 1} },
3476 .block_erase = spi_block_erase_c7,
3477 }
3478 },
3479 .printlock = spi_prettyprint_status_register_bp2_bpl,
3480 .unlock = spi_disable_blockprotect,
3481 .write = spi_chip_write_256,
3482 .read = spi_chip_read,
3483 .voltage = {2700, 3600},
3484 },
3485
3486 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003487 .vendor = "Eon",
3488 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003489 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003490 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003491 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003492 .total_size = 64,
3493 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003494 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003495 .tested = TEST_UNTESTED,
3496 .probe = probe_spi_rdid,
3497 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003498 .block_erasers =
3499 {
3500 {
3501 .eraseblocks = {
3502 {4 * 1024, 2},
3503 {8 * 1024, 1},
3504 {16 * 1024, 1},
3505 {32 * 1024, 1},
3506 },
3507 .block_erase = spi_block_erase_d8,
3508 }, {
3509 .eraseblocks = { {64 * 1024, 1} },
3510 .block_erase = spi_block_erase_c7,
3511 }
3512 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003513 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003514 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003515 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003516 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003517 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003518 },
3519
3520 {
3521 .vendor = "Eon",
3522 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003523 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003524 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003525 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003526 .total_size = 64,
3527 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003528 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003529 .tested = TEST_UNTESTED,
3530 .probe = probe_spi_rdid,
3531 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003532 .block_erasers =
3533 {
3534 {
3535 .eraseblocks = {
3536 {32 * 1024, 1},
3537 {16 * 1024, 1},
3538 {8 * 1024, 1},
3539 {4 * 1024, 2},
3540 },
3541 .block_erase = spi_block_erase_d8,
3542 }, {
3543 .eraseblocks = { {64 * 1024, 1} },
3544 .block_erase = spi_block_erase_c7,
3545 }
3546 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003547 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003548 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003549 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003550 .read = spi_chip_read, /* Fast read (0x0B) supported */
3551 .voltage = {2700, 3600},
3552 },
3553
3554 {
3555 .vendor = "Eon",
3556 .name = "EN25P05",
3557 .bustype = BUS_SPI,
3558 .manufacture_id = EON_ID_NOPREFIX,
3559 .model_id = EON_EN25B05,
3560 .total_size = 64,
3561 .page_size = 256,
3562 .feature_bits = FEATURE_WRSR_WREN,
3563 .tested = TEST_UNTESTED,
3564 .probe = probe_spi_rdid,
3565 .probe_timing = TIMING_ZERO,
3566 .block_erasers =
3567 {
3568 {
3569 .eraseblocks = {
3570 {32 * 1024, 2} },
3571 .block_erase = spi_block_erase_d8,
3572 }, {
3573 .eraseblocks = { {64 * 1024, 1} },
3574 .block_erase = spi_block_erase_c7,
3575 }
3576 },
3577 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3578 .unlock = spi_disable_blockprotect,
3579 .write = spi_chip_write_256,
3580 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003581 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003582 },
3583
3584 {
3585 .vendor = "Eon",
3586 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003587 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003588 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003589 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .total_size = 128,
3591 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003592 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003593 .tested = TEST_UNTESTED,
3594 .probe = probe_spi_rdid,
3595 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = {
3600 {4 * 1024, 2},
3601 {8 * 1024, 1},
3602 {16 * 1024, 1},
3603 {32 * 1024, 3},
3604 },
3605 .block_erase = spi_block_erase_d8,
3606 }, {
3607 .eraseblocks = { {128 * 1024, 1} },
3608 .block_erase = spi_block_erase_c7,
3609 }
3610 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003611 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003612 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003613 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003614 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003615 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003616 },
3617
3618 {
3619 .vendor = "Eon",
3620 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003621 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003623 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003624 .total_size = 128,
3625 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003626 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003627 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .probe = probe_spi_rdid,
3629 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003630 .block_erasers =
3631 {
3632 {
3633 .eraseblocks = {
3634 {32 * 1024, 3},
3635 {16 * 1024, 1},
3636 {8 * 1024, 1},
3637 {4 * 1024, 2},
3638 },
3639 .block_erase = spi_block_erase_d8,
3640 }, {
3641 .eraseblocks = { {128 * 1024, 1} },
3642 .block_erase = spi_block_erase_c7,
3643 }
3644 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003646 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003647 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003648 .read = spi_chip_read, /* Fast read (0x0B) supported */
3649 .voltage = {2700, 3600},
3650 },
3651
3652 {
3653 .vendor = "Eon",
3654 .name = "EN25P10",
3655 .bustype = BUS_SPI,
3656 .manufacture_id = EON_ID_NOPREFIX,
3657 .model_id = EON_EN25B10,
3658 .total_size = 128,
3659 .page_size = 256,
3660 .feature_bits = FEATURE_WRSR_WREN,
3661 .tested = TEST_UNTESTED,
3662 .probe = probe_spi_rdid,
3663 .probe_timing = TIMING_ZERO,
3664 .block_erasers =
3665 {
3666 {
3667 .eraseblocks = { {32 * 1024, 4} },
3668 .block_erase = spi_block_erase_d8,
3669 }, {
3670 .eraseblocks = { {128 * 1024, 1} },
3671 .block_erase = spi_block_erase_c7,
3672 }
3673 },
3674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3675 .unlock = spi_disable_blockprotect,
3676 .write = spi_chip_write_256,
3677 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003678 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003679 },
3680
3681 {
3682 .vendor = "Eon",
3683 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003684 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003685 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003686 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003687 .total_size = 256,
3688 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003689 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003690 .tested = TEST_UNTESTED,
3691 .probe = probe_spi_rdid,
3692 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003693 .block_erasers =
3694 {
3695 {
3696 .eraseblocks = {
3697 {4 * 1024, 2},
3698 {8 * 1024, 1},
3699 {16 * 1024, 1},
3700 {32 * 1024, 1},
3701 {64 * 1024, 3}
3702 },
3703 .block_erase = spi_block_erase_d8,
3704 }, {
3705 .eraseblocks = { {256 * 1024, 1} },
3706 .block_erase = spi_block_erase_c7,
3707 }
3708 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003709 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003710 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003711 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003712 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003713 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003714 },
3715
3716 {
3717 .vendor = "Eon",
3718 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003719 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003720 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003721 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003722 .total_size = 256,
3723 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003724 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003725 .tested = TEST_UNTESTED,
3726 .probe = probe_spi_rdid,
3727 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003728 .block_erasers =
3729 {
3730 {
3731 .eraseblocks = {
3732 {64 * 1024, 3},
3733 {32 * 1024, 1},
3734 {16 * 1024, 1},
3735 {8 * 1024, 1},
3736 {4 * 1024, 2},
3737 },
3738 .block_erase = spi_block_erase_d8,
3739 }, {
3740 .eraseblocks = { {256 * 1024, 1} },
3741 .block_erase = spi_block_erase_c7,
3742 }
3743 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003744 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003745 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003746 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003747 .read = spi_chip_read, /* Fast read (0x0B) supported */
3748 .voltage = {2700, 3600},
3749 },
3750
3751 {
3752 .vendor = "Eon",
3753 .name = "EN25P20",
3754 .bustype = BUS_SPI,
3755 .manufacture_id = EON_ID_NOPREFIX,
3756 .model_id = EON_EN25B20,
3757 .total_size = 256,
3758 .page_size = 256,
3759 .feature_bits = FEATURE_WRSR_WREN,
3760 .tested = TEST_UNTESTED,
3761 .probe = probe_spi_rdid,
3762 .probe_timing = TIMING_ZERO,
3763 .block_erasers =
3764 {
3765 {
3766 .eraseblocks = { {64 * 1024, 4} },
3767 .block_erase = spi_block_erase_d8,
3768 }, {
3769 .eraseblocks = { {256 * 1024, 1} },
3770 .block_erase = spi_block_erase_c7,
3771 }
3772 },
3773 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3774 .unlock = spi_disable_blockprotect,
3775 .write = spi_chip_write_256,
3776 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003777 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003778 },
3779
3780 {
3781 .vendor = "Eon",
3782 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003783 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003784 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003785 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003786 .total_size = 512,
3787 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003788 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 .tested = TEST_UNTESTED,
3790 .probe = probe_spi_rdid,
3791 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003792 .block_erasers =
3793 {
3794 {
3795 .eraseblocks = {
3796 {4 * 1024, 2},
3797 {8 * 1024, 1},
3798 {16 * 1024, 1},
3799 {32 * 1024, 1},
3800 {64 * 1024, 7}
3801 },
3802 .block_erase = spi_block_erase_d8,
3803 }, {
3804 .eraseblocks = { {512 * 1024, 1} },
3805 .block_erase = spi_block_erase_c7,
3806 }
3807 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003808 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003809 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003810 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003811 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003812 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003813 },
3814
3815 {
3816 .vendor = "Eon",
3817 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003818 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003819 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003820 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .total_size = 512,
3822 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003823 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003824 .tested = TEST_UNTESTED,
3825 .probe = probe_spi_rdid,
3826 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003827 .block_erasers =
3828 {
3829 {
3830 .eraseblocks = {
3831 {64 * 1024, 7},
3832 {32 * 1024, 1},
3833 {16 * 1024, 1},
3834 {8 * 1024, 1},
3835 {4 * 1024, 2},
3836 },
3837 .block_erase = spi_block_erase_d8,
3838 }, {
3839 .eraseblocks = { {512 * 1024, 1} },
3840 .block_erase = spi_block_erase_c7,
3841 }
3842 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003844 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003845 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003846 .read = spi_chip_read, /* Fast read (0x0B) supported */
3847 .voltage = {2700, 3600},
3848 },
3849
3850 {
3851 .vendor = "Eon",
3852 .name = "EN25P40",
3853 .bustype = BUS_SPI,
3854 .manufacture_id = EON_ID_NOPREFIX,
3855 .model_id = EON_EN25B40,
3856 .total_size = 512,
3857 .page_size = 256,
3858 .feature_bits = FEATURE_WRSR_WREN,
3859 .tested = TEST_UNTESTED,
3860 .probe = probe_spi_rdid,
3861 .probe_timing = TIMING_ZERO,
3862 .block_erasers =
3863 {
3864 {
3865 .eraseblocks = { {64 * 1024, 8} },
3866 .block_erase = spi_block_erase_d8,
3867 }, {
3868 .eraseblocks = { {512 * 1024, 1} },
3869 .block_erase = spi_block_erase_c7,
3870 }
3871 },
3872 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3873 .unlock = spi_disable_blockprotect,
3874 .write = spi_chip_write_256,
3875 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003876 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003877 },
3878
3879 {
3880 .vendor = "Eon",
3881 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003882 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003883 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003884 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003885 .total_size = 1024,
3886 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003887 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003888 .tested = TEST_UNTESTED,
3889 .probe = probe_spi_rdid,
3890 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003891 .block_erasers =
3892 {
3893 {
3894 .eraseblocks = {
3895 {4 * 1024, 2},
3896 {8 * 1024, 1},
3897 {16 * 1024, 1},
3898 {32 * 1024, 1},
3899 {64 * 1024, 15}
3900 },
3901 .block_erase = spi_block_erase_d8,
3902 }, {
3903 .eraseblocks = { {1024 * 1024, 1} },
3904 .block_erase = spi_block_erase_c7,
3905 }
3906 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003907 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003908 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003909 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003910 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003911 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003912 },
3913
3914 {
3915 .vendor = "Eon",
3916 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003917 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003918 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003919 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003920 .total_size = 1024,
3921 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003922 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003923 .tested = TEST_UNTESTED,
3924 .probe = probe_spi_rdid,
3925 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003926 .block_erasers =
3927 {
3928 {
3929 .eraseblocks = {
3930 {64 * 1024, 15},
3931 {32 * 1024, 1},
3932 {16 * 1024, 1},
3933 {8 * 1024, 1},
3934 {4 * 1024, 2},
3935 },
3936 .block_erase = spi_block_erase_d8,
3937 }, {
3938 .eraseblocks = { {1024 * 1024, 1} },
3939 .block_erase = spi_block_erase_c7,
3940 }
3941 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003942 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003943 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003944 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003945 .read = spi_chip_read, /* Fast read (0x0B) supported */
3946 .voltage = {2700, 3600},
3947 },
3948
3949 {
3950 .vendor = "Eon",
3951 .name = "EN25P80",
3952 .bustype = BUS_SPI,
3953 .manufacture_id = EON_ID_NOPREFIX,
3954 .model_id = EON_EN25B80,
3955 .total_size = 1024,
3956 .page_size = 256,
3957 .feature_bits = FEATURE_WRSR_WREN,
3958 .tested = TEST_UNTESTED,
3959 .probe = probe_spi_rdid,
3960 .probe_timing = TIMING_ZERO,
3961 .block_erasers =
3962 {
3963 {
3964 .eraseblocks = { {64 * 1024, 16} },
3965 .block_erase = spi_block_erase_d8,
3966 }, {
3967 .eraseblocks = { {1024 * 1024, 1} },
3968 .block_erase = spi_block_erase_c7,
3969 }
3970 },
3971 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3972 .unlock = spi_disable_blockprotect,
3973 .write = spi_chip_write_256,
3974 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003975 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003976 },
3977
3978 {
3979 .vendor = "Eon",
3980 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003981 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003982 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003983 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003984 .total_size = 2048,
3985 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003986 .feature_bits = FEATURE_WRSR_WREN,
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, 31},
3999 },
4000 .block_erase = spi_block_erase_d8,
4001 }, {
4002 .eraseblocks = { {2 * 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 = "EN25B16T",
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_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004019 .total_size = 2048,
4020 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004021 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .tested = TEST_UNTESTED,
4023 .probe = probe_spi_rdid,
4024 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004025 .block_erasers =
4026 {
4027 {
4028 .eraseblocks = {
4029 {64 * 1024, 31},
4030 {32 * 1024, 1},
4031 {16 * 1024, 1},
4032 {8 * 1024, 1},
4033 {4 * 1024, 2},
4034 },
4035 .block_erase = spi_block_erase_d8,
4036 }, {
4037 .eraseblocks = { {2 * 1024 * 1024, 1} },
4038 .block_erase = spi_block_erase_c7,
4039 }
4040 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004041 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004042 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004043 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004044 .read = spi_chip_read, /* Fast read (0x0B) supported */
4045 .voltage = {2700, 3600},
4046 },
4047
4048 {
4049 .vendor = "Eon",
4050 .name = "EN25P16",
4051 .bustype = BUS_SPI,
4052 .manufacture_id = EON_ID_NOPREFIX,
4053 .model_id = EON_EN25B16,
4054 .total_size = 2048,
4055 .page_size = 256,
4056 .feature_bits = FEATURE_WRSR_WREN,
4057 .tested = TEST_UNTESTED,
4058 .probe = probe_spi_rdid,
4059 .probe_timing = TIMING_ZERO,
4060 .block_erasers =
4061 {
4062 {
4063 .eraseblocks = { {64 * 1024, 32} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {2 * 1024 * 1024, 1} },
4067 .block_erase = spi_block_erase_c7,
4068 }
4069 },
4070 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4071 .unlock = spi_disable_blockprotect,
4072 .write = spi_chip_write_256,
4073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004074 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 },
4076
4077 {
4078 .vendor = "Eon",
4079 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004080 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004082 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004083 .total_size = 4096,
4084 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 /* OTP: 512B total; enter 0x3A */
4086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004087 .tested = TEST_UNTESTED,
4088 .probe = probe_spi_rdid,
4089 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004090 .block_erasers =
4091 {
4092 {
4093 .eraseblocks = {
4094 {4 * 1024, 2},
4095 {8 * 1024, 1},
4096 {16 * 1024, 1},
4097 {32 * 1024, 1},
4098 {64 * 1024, 63},
4099 },
4100 .block_erase = spi_block_erase_d8,
4101 }, {
4102 .eraseblocks = { {4 * 1024 * 1024, 1} },
4103 .block_erase = spi_block_erase_c7,
4104 }
4105 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004107 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004108 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004109 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004110 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004111 },
4112
4113 {
4114 .vendor = "Eon",
4115 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004116 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004117 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004118 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .total_size = 4096,
4120 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004121 /* OTP: 512B total; enter 0x3A */
4122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004123 .tested = TEST_UNTESTED,
4124 .probe = probe_spi_rdid,
4125 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004126 .block_erasers =
4127 {
4128 {
4129 .eraseblocks = {
4130 {64 * 1024, 63},
4131 {32 * 1024, 1},
4132 {16 * 1024, 1},
4133 {8 * 1024, 1},
4134 {4 * 1024, 2},
4135 },
4136 .block_erase = spi_block_erase_d8,
4137 }, {
4138 .eraseblocks = { {4 * 1024 * 1024, 1} },
4139 .block_erase = spi_block_erase_c7,
4140 }
4141 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004142 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004143 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004144 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004145 .read = spi_chip_read, /* Fast read (0x0B) supported */
4146 .voltage = {2700, 3600},
4147 },
4148
4149 {
4150 .vendor = "Eon",
4151 .name = "EN25P32", /* Uniform version of EN25B32 */
4152 .bustype = BUS_SPI,
4153 .manufacture_id = EON_ID_NOPREFIX,
4154 .model_id = EON_EN25B32,
4155 .total_size = 4096,
4156 .page_size = 256,
4157 /* OTP: 512B total; enter 0x3A */
4158 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4159 .tested = TEST_UNTESTED,
4160 .probe = probe_spi_rdid,
4161 .probe_timing = TIMING_ZERO,
4162 .block_erasers =
4163 {
4164 {
4165 .eraseblocks = { {64 * 1024, 64} },
4166 .block_erase = spi_block_erase_d8,
4167 }, {
4168 .eraseblocks = { {4 * 1024 * 1024, 1} },
4169 .block_erase = spi_block_erase_c7,
4170 }
4171 },
4172 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4173 .unlock = spi_disable_blockprotect,
4174 .write = spi_chip_write_256,
4175 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004176 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004177 },
4178
4179 {
4180 .vendor = "Eon",
4181 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004182 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004183 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004184 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004185 .total_size = 8192,
4186 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004187 /* OTP: 512B total; enter 0x3A */
4188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004189 .tested = TEST_UNTESTED,
4190 .probe = probe_spi_rdid,
4191 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004192 .block_erasers =
4193 {
4194 {
4195 .eraseblocks = {
4196 {4 * 1024, 2},
4197 {8 * 1024, 1},
4198 {16 * 1024, 1},
4199 {32 * 1024, 1},
4200 {64 * 1024, 127},
4201 },
4202 .block_erase = spi_block_erase_d8,
4203 }, {
4204 .eraseblocks = { {8 * 1024 * 1024, 1} },
4205 .block_erase = spi_block_erase_c7,
4206 }
4207 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004209 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004210 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004211 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004212 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004213 },
4214
4215 {
4216 .vendor = "Eon",
4217 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004218 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004219 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004220 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004221 .total_size = 8192,
4222 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004223 /* OTP: 512B total; enter 0x3A */
4224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004225 .tested = TEST_UNTESTED,
4226 .probe = probe_spi_rdid,
4227 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004228 .block_erasers =
4229 {
4230 {
4231 .eraseblocks = {
4232 {64 * 1024, 127},
4233 {32 * 1024, 1},
4234 {16 * 1024, 1},
4235 {8 * 1024, 1},
4236 {4 * 1024, 2},
4237 },
4238 .block_erase = spi_block_erase_d8,
4239 }, {
4240 .eraseblocks = { {8 * 1024 * 1024, 1} },
4241 .block_erase = spi_block_erase_c7,
4242 }
4243 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004244 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004245 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004246 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004247 .read = spi_chip_read, /* Fast read (0x0B) supported */
4248 .voltage = {2700, 3600},
4249 },
4250
4251 {
4252 .vendor = "Eon",
4253 .name = "EN25P64",
4254 .bustype = BUS_SPI,
4255 .manufacture_id = EON_ID_NOPREFIX,
4256 .model_id = EON_EN25B64,
4257 .total_size = 8192,
4258 .page_size = 256,
4259 /* OTP: 512B total; enter 0x3A */
4260 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4261 .tested = TEST_UNTESTED,
4262 .probe = probe_spi_rdid,
4263 .probe_timing = TIMING_ZERO,
4264 .block_erasers =
4265 {
4266 {
4267 .eraseblocks = { {64 * 1024, 128} },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {8 * 1024 * 1024, 1} },
4271 .block_erase = spi_block_erase_c7,
4272 }
4273 },
4274 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4275 .unlock = spi_disable_blockprotect,
4276 .write = spi_chip_write_256,
4277 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004278 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004279 },
4280
4281 {
4282 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004283 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004284 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004285 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004286 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004287 .total_size = 64,
4288 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004289 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004290 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004291 .probe = probe_spi_rdid,
4292 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004293 .block_erasers =
4294 {
4295 {
4296 .eraseblocks = { {4 * 1024, 16} },
4297 .block_erase = spi_block_erase_20,
4298 }, {
4299 .eraseblocks = { {32 * 1024, 2} },
4300 .block_erase = spi_block_erase_d8,
4301 }, {
4302 .eraseblocks = { {32 * 1024, 2} },
4303 .block_erase = spi_block_erase_52,
4304 }, {
4305 .eraseblocks = { {64 * 1024, 1} },
4306 .block_erase = spi_block_erase_60,
4307 }, {
4308 .eraseblocks = { {64 * 1024, 1} },
4309 .block_erase = spi_block_erase_c7,
4310 }
4311 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004312 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004313 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004314 .write = spi_chip_write_256,
4315 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004316 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004317 },
4318
4319 {
4320 .vendor = "Eon",
4321 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004322 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004323 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004324 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004325 .total_size = 128,
4326 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004327 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004328 .tested = TEST_UNTESTED,
4329 .probe = probe_spi_rdid,
4330 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004331 .block_erasers =
4332 {
4333 {
4334 .eraseblocks = { {4 * 1024, 32} },
4335 .block_erase = spi_block_erase_20,
4336 }, {
4337 .eraseblocks = { {32 * 1024, 4} },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {32 * 1024, 4} },
4341 .block_erase = spi_block_erase_52,
4342 }, {
4343 .eraseblocks = { {128 * 1024, 1} },
4344 .block_erase = spi_block_erase_60,
4345 }, {
4346 .eraseblocks = { {128 * 1024, 1} },
4347 .block_erase = spi_block_erase_c7,
4348 }
4349 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004350 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004351 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004352 .write = spi_chip_write_256,
4353 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004354 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004355 },
4356
4357 {
4358 .vendor = "Eon",
4359 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004360 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004361 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004362 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004363 .total_size = 256,
4364 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004365 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004366 .tested = TEST_UNTESTED,
4367 .probe = probe_spi_rdid,
4368 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004369 .block_erasers =
4370 {
4371 {
4372 .eraseblocks = { {4 * 1024, 64} },
4373 .block_erase = spi_block_erase_20,
4374 }, {
4375 .eraseblocks = { {64 * 1024, 4} },
4376 .block_erase = spi_block_erase_d8,
4377 }, {
4378 .eraseblocks = { {64 * 1024, 4} },
4379 .block_erase = spi_block_erase_52,
4380 }, {
4381 .eraseblocks = { {256 * 1024, 1} },
4382 .block_erase = spi_block_erase_60,
4383 }, {
4384 .eraseblocks = { {256 * 1024, 1} },
4385 .block_erase = spi_block_erase_c7,
4386 }
4387 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004388 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004389 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004390 .write = spi_chip_write_256,
4391 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004392 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004393 },
4394
4395 {
4396 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004397 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004398 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004399 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004400 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004401 .total_size = 512,
4402 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004403 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004404 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004405 .probe = probe_spi_rdid,
4406 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004407 .block_erasers =
4408 {
4409 {
Sean Nelson54596372010-01-09 05:30:14 +00004410 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004411 .block_erase = spi_block_erase_20,
4412 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004413 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004414 .block_erase = spi_block_erase_d8,
4415 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004416 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004417 .block_erase = spi_block_erase_60,
4418 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004419 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004420 .block_erase = spi_block_erase_c7,
4421 },
4422 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004423 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004424 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004425 .write = spi_chip_write_256,
4426 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004427 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004428 },
4429
4430 {
4431 .vendor = "Eon",
4432 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004433 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004434 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004435 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004436 .total_size = 1024,
4437 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004438 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004440 .probe = probe_spi_rdid,
4441 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004442 .block_erasers =
4443 {
4444 {
4445 .eraseblocks = { {4 * 1024, 256} },
4446 .block_erase = spi_block_erase_20,
4447 }, {
4448 .eraseblocks = { {64 * 1024, 16} },
4449 .block_erase = spi_block_erase_d8,
4450 }, {
4451 .eraseblocks = { {1024 * 1024, 1} },
4452 .block_erase = spi_block_erase_60,
4453 }, {
4454 .eraseblocks = { {1024 * 1024, 1} },
4455 .block_erase = spi_block_erase_c7,
4456 }
4457 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004458 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004459 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004460 .write = spi_chip_write_256,
4461 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004462 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004463 },
4464
4465 {
4466 .vendor = "Eon",
4467 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004468 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004469 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004470 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004471 .total_size = 2048,
4472 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004473 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004474 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004475 .probe = probe_spi_rdid,
4476 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004477 .block_erasers =
4478 {
4479 {
4480 .eraseblocks = { {4 * 1024, 512} },
4481 .block_erase = spi_block_erase_20,
4482 }, {
4483 .eraseblocks = { {64 * 1024, 32} },
4484 .block_erase = spi_block_erase_d8,
4485 }, {
4486 .eraseblocks = { {2 * 1024 * 1024, 1} },
4487 .block_erase = spi_block_erase_60,
4488 }, {
4489 .eraseblocks = { {2 * 1024 * 1024, 1} },
4490 .block_erase = spi_block_erase_c7,
4491 }
4492 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004494 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004495 .write = spi_chip_write_256,
4496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004497 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004498 },
4499
4500 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004501 .vendor = "Eon",
4502 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004503 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004504 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004505 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004506 .total_size = 4096,
4507 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004509 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004510 .probe = probe_spi_rdid,
4511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004512 .block_erasers =
4513 {
4514 {
4515 .eraseblocks = { {4 * 1024, 1024} },
4516 .block_erase = spi_block_erase_20,
4517 }, {
4518 .eraseblocks = { {64 * 1024, 64} },
4519 .block_erase = spi_block_erase_d8,
4520 }, {
4521 .eraseblocks = { {4 * 1024 * 1024, 1} },
4522 .block_erase = spi_block_erase_60,
4523 }, {
4524 .eraseblocks = { {4 * 1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004530 .write = spi_chip_write_256,
4531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004532 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004533 },
4534
4535 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004536 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004537 .name = "EN25F64",
4538 .bustype = BUS_SPI,
4539 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004540 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004541 .total_size = 8192,
4542 .page_size = 256,
4543 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004544 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004545 .probe = probe_spi_rdid,
4546 .probe_timing = TIMING_ZERO,
4547 .block_erasers =
4548 {
4549 {
4550 .eraseblocks = { {4 * 1024, 2048} },
4551 .block_erase = spi_block_erase_20,
4552 }, {
4553 .eraseblocks = { {64 * 1024, 128} },
4554 .block_erase = spi_block_erase_d8,
4555 }, {
4556 .eraseblocks = { {8 * 1024 * 1024, 1} },
4557 .block_erase = spi_block_erase_60,
4558 }, {
4559 .eraseblocks = { {8 * 1024 * 1024, 1} },
4560 .block_erase = spi_block_erase_c7,
4561 }
4562 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004563 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004564 .unlock = spi_disable_blockprotect,
4565 .write = spi_chip_write_256,
4566 .read = spi_chip_read,
4567 .voltage = {2700, 3600},
4568 },
4569
4570 {
4571 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004572 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004573 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004574 .manufacture_id = EON_ID_NOPREFIX,
4575 .model_id = EON_EN25Q40,
4576 .total_size = 512,
4577 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004578 /* OTP: 256B total; enter 0x3A */
4579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004580 .tested = TEST_UNTESTED,
4581 .probe = probe_spi_rdid,
4582 .probe_timing = TIMING_ZERO,
4583 .block_erasers =
4584 {
4585 {
4586 .eraseblocks = { {4 * 1024, 128} },
4587 .block_erase = spi_block_erase_20,
4588 }, {
4589 .eraseblocks = { {64 * 1024, 8} },
4590 .block_erase = spi_block_erase_d8,
4591 }, {
4592 .eraseblocks = { {512 * 1024, 1} },
4593 .block_erase = spi_block_erase_60,
4594 }, {
4595 .eraseblocks = { {512 * 1024, 1} },
4596 .block_erase = spi_block_erase_c7,
4597 }
4598 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004599 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004600 .unlock = spi_disable_blockprotect,
4601 .write = spi_chip_write_256,
4602 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004603 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004604 },
4605
4606 {
4607 .vendor = "Eon",
4608 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004609 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004610 .manufacture_id = EON_ID_NOPREFIX,
4611 .model_id = EON_EN25Q80,
4612 .total_size = 1024,
4613 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004614 /* OTP: 256B total; enter 0x3A */
4615 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004616 .tested = TEST_UNTESTED,
4617 .probe = probe_spi_rdid,
4618 .probe_timing = TIMING_ZERO,
4619 .block_erasers =
4620 {
4621 {
4622 .eraseblocks = { {4 * 1024, 256} },
4623 .block_erase = spi_block_erase_20,
4624 }, {
4625 .eraseblocks = { {64 * 1024, 16} },
4626 .block_erase = spi_block_erase_d8,
4627 }, {
4628 .eraseblocks = { {1024 * 1024, 1} },
4629 .block_erase = spi_block_erase_60,
4630 }, {
4631 .eraseblocks = { {1024 * 1024, 1} },
4632 .block_erase = spi_block_erase_c7,
4633 }
4634 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004635 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004636 .unlock = spi_disable_blockprotect,
4637 .write = spi_chip_write_256,
4638 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004639 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004640 },
4641
4642 {
4643 /* Note: EN25D16 is an evil twin which shares the model ID
4644 but has different write protection capabilities */
4645 .vendor = "Eon",
4646 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004647 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004648 .manufacture_id = EON_ID_NOPREFIX,
4649 .model_id = EON_EN25Q16,
4650 .total_size = 2048,
4651 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004652 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4653 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004654 .tested = TEST_UNTESTED,
4655 .probe = probe_spi_rdid,
4656 .probe_timing = TIMING_ZERO,
4657 .block_erasers =
4658 {
4659 {
4660 .eraseblocks = { {4 * 1024, 512} },
4661 .block_erase = spi_block_erase_20,
4662 }, {
4663 .eraseblocks = { {64 * 1024, 32} },
4664 .block_erase = spi_block_erase_d8,
4665 }, {
4666 /* not supported by Q16 version */
4667 .eraseblocks = { {64 * 1024, 32} },
4668 .block_erase = spi_block_erase_52,
4669 }, {
4670 .eraseblocks = { {2 * 1024 * 1024, 1} },
4671 .block_erase = spi_block_erase_60,
4672 }, {
4673 .eraseblocks = { {2 * 1024 * 1024, 1} },
4674 .block_erase = spi_block_erase_c7,
4675 }
4676 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004677 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004678 .unlock = spi_disable_blockprotect,
4679 .write = spi_chip_write_256,
4680 .read = spi_chip_read,
4681 .voltage = {2700, 3600},
4682 },
4683
4684 {
4685 .vendor = "Eon",
4686 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004687 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004688 .manufacture_id = EON_ID_NOPREFIX,
4689 .model_id = EON_EN25Q32,
4690 .total_size = 4096,
4691 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004692 /* OTP: 512B total; enter 0x3A */
4693 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004694 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004695 .probe = probe_spi_rdid,
4696 .probe_timing = TIMING_ZERO,
4697 .block_erasers =
4698 {
4699 {
4700 .eraseblocks = { {4 * 1024, 1024} },
4701 .block_erase = spi_block_erase_20,
4702 }, {
4703 .eraseblocks = { {64 * 1024, 64} },
4704 .block_erase = spi_block_erase_d8,
4705 }, {
4706 .eraseblocks = { {4 * 1024 * 1024, 1} },
4707 .block_erase = spi_block_erase_60,
4708 }, {
4709 .eraseblocks = { {4 * 1024 * 1024, 1} },
4710 .block_erase = spi_block_erase_c7,
4711 }
4712 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004713 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004714 .unlock = spi_disable_blockprotect,
4715 .write = spi_chip_write_256,
4716 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004717 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004718 },
4719
4720 {
4721 .vendor = "Eon",
4722 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004723 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004724 .manufacture_id = EON_ID_NOPREFIX,
4725 .model_id = EON_EN25Q64,
4726 .total_size = 8192,
4727 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004728 /* OTP: 512B total; enter 0x3A */
4729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004730 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004731 .probe = probe_spi_rdid,
4732 .probe_timing = TIMING_ZERO,
4733 .block_erasers =
4734 {
4735 {
4736 .eraseblocks = { {4 * 1024, 2048} },
4737 .block_erase = spi_block_erase_20,
4738 }, {
4739 .eraseblocks = { {64 * 1024, 128} },
4740 .block_erase = spi_block_erase_d8,
4741 }, {
4742 .eraseblocks = { {8 * 1024 * 1024, 1} },
4743 .block_erase = spi_block_erase_60,
4744 }, {
4745 .eraseblocks = { {8 * 1024 * 1024, 1} },
4746 .block_erase = spi_block_erase_c7,
4747 }
4748 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004749 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004750 .unlock = spi_disable_blockprotect,
4751 .write = spi_chip_write_256,
4752 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004753 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004754 },
4755
4756 {
4757 .vendor = "Eon",
4758 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004759 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004760 .manufacture_id = EON_ID_NOPREFIX,
4761 .model_id = EON_EN25Q128,
4762 .total_size = 16384,
4763 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004764 /* OTP: 512B total; enter 0x3A */
4765 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004766 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004767 .probe = probe_spi_rdid,
4768 .probe_timing = TIMING_ZERO,
4769 .block_erasers =
4770 {
4771 {
4772 .eraseblocks = { {4 * 1024, 4096} },
4773 .block_erase = spi_block_erase_20,
4774 }, {
4775 .eraseblocks = { {64 * 1024, 256} },
4776 .block_erase = spi_block_erase_d8,
4777 }, {
4778 .eraseblocks = { {16 * 1024 * 1024, 1} },
4779 .block_erase = spi_block_erase_60,
4780 }, {
4781 .eraseblocks = { {16 * 1024 * 1024, 1} },
4782 .block_erase = spi_block_erase_c7,
4783 }
4784 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004785 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004786 .unlock = spi_disable_blockprotect,
4787 .write = spi_chip_write_256,
4788 .read = spi_chip_read,
4789 },
4790
4791 {
4792 .vendor = "Eon",
4793 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004794 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004795 .manufacture_id = EON_ID_NOPREFIX,
4796 .model_id = EON_EN25QH16,
4797 .total_size = 2048,
4798 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004799 /* supports SFDP */
4800 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004801 /* QPI enable 0x38, disable 0xFF */
4802 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004803 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004804 .probe = probe_spi_rdid,
4805 .probe_timing = TIMING_ZERO,
4806 .block_erasers =
4807 {
4808 {
4809 .eraseblocks = { {4 * 1024, 512} },
4810 .block_erase = spi_block_erase_20,
4811 }, {
4812 .eraseblocks = { {64 * 1024, 32} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {1024 * 2048, 1} },
4816 .block_erase = spi_block_erase_60,
4817 }, {
4818 .eraseblocks = { {1024 * 2048, 1} },
4819 .block_erase = spi_block_erase_c7,
4820 }
4821 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004822 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004823 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004824 .write = spi_chip_write_256,
4825 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004826 .voltage = {2700, 3600},
4827 },
4828
4829 {
4830 .vendor = "Eon",
4831 .name = "EN25QH32",
4832 .bustype = BUS_SPI,
4833 .manufacture_id = EON_ID_NOPREFIX,
4834 .model_id = EON_EN25QH32,
4835 .total_size = 4096,
4836 .page_size = 256,
4837 /* supports SFDP */
4838 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004839 /* QPI enable 0x38, disable 0xFF */
4840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004841 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004842 .probe = probe_spi_rdid,
4843 .probe_timing = TIMING_ZERO,
4844 .block_erasers =
4845 {
4846 {
4847 .eraseblocks = { {4 * 1024, 1024} },
4848 .block_erase = spi_block_erase_20,
4849 }, {
4850 .eraseblocks = { {64 * 1024, 64} },
4851 .block_erase = spi_block_erase_d8,
4852 }, {
4853 .eraseblocks = { {1024 * 4096, 1} },
4854 .block_erase = spi_block_erase_60,
4855 }, {
4856 .eraseblocks = { {1024 * 4096, 1} },
4857 .block_erase = spi_block_erase_c7,
4858 }
4859 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004861 .unlock = spi_disable_blockprotect_bp3_srwd,
4862 .write = spi_chip_write_256,
4863 .read = spi_chip_read,
4864 .voltage = {2700, 3600},
4865 },
4866
4867 {
4868 .vendor = "Eon",
4869 .name = "EN25QH64",
4870 .bustype = BUS_SPI,
4871 .manufacture_id = EON_ID_NOPREFIX,
4872 .model_id = EON_EN25QH64,
4873 .total_size = 8192,
4874 .page_size = 256,
4875 /* supports SFDP */
4876 /* OTP: 512B total; enter 0x3A */
4877 /* QPI enable 0x38, disable 0xFF */
4878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004879 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004880 .probe = probe_spi_rdid,
4881 .probe_timing = TIMING_ZERO,
4882 .block_erasers = {
4883 {
4884 .eraseblocks = { {4 * 1024, 2048} },
4885 .block_erase = spi_block_erase_20,
4886 }, {
4887 .eraseblocks = { {64 * 1024, 128} },
4888 .block_erase = spi_block_erase_d8,
4889 }, {
4890 .eraseblocks = { { 8192 * 1024, 1} },
4891 .block_erase = spi_block_erase_60,
4892 }, {
4893 .eraseblocks = { { 8192 * 1024, 1} },
4894 .block_erase = spi_block_erase_c7,
4895 }
4896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004897 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004898 .unlock = spi_disable_blockprotect_bp3_srwd,
4899 .write = spi_chip_write_256,
4900 .read = spi_chip_read,
4901 .voltage = {2700, 3600},
4902 },
4903
4904 {
4905 .vendor = "Eon",
4906 .name = "EN25QH128",
4907 .bustype = BUS_SPI,
4908 .manufacture_id = EON_ID_NOPREFIX,
4909 .model_id = EON_EN25QH128,
4910 .total_size = 16384,
4911 .page_size = 256,
4912 /* supports SFDP */
4913 /* OTP: 512B total; enter 0x3A */
4914 /* QPI enable 0x38, disable 0xFF */
4915 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4916 .tested = TEST_UNTESTED,
4917 .probe = probe_spi_rdid,
4918 .probe_timing = TIMING_ZERO,
4919 .block_erasers = {
4920 {
4921 .eraseblocks = { {4 * 1024, 4096} },
4922 .block_erase = spi_block_erase_20,
4923 }, {
4924 .eraseblocks = { {64 * 1024, 256} },
4925 .block_erase = spi_block_erase_d8,
4926 }, {
4927 .eraseblocks = { { 16384 * 1024, 1} },
4928 .block_erase = spi_block_erase_60,
4929 }, {
4930 .eraseblocks = { { 16384 * 1024, 1} },
4931 .block_erase = spi_block_erase_c7,
4932 }
4933 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004934 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004935 .unlock = spi_disable_blockprotect_bp3_srwd,
4936 .write = spi_chip_write_256,
4937 .read = spi_chip_read,
4938 .voltage = {2700, 3600},
4939 },
4940
4941 {
4942 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004943 .name = "EN25S10",
4944 .bustype = BUS_SPI,
4945 .manufacture_id = EON_ID_NOPREFIX,
4946 .model_id = EON_EN25S10,
4947 .total_size = 128,
4948 .page_size = 256,
4949 /* OTP: 256B total; enter 0x3A */
4950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4951 .tested = TEST_UNTESTED,
4952 .probe = probe_spi_rdid,
4953 .probe_timing = TIMING_ZERO,
4954 .block_erasers = {
4955 {
4956 .eraseblocks = { {4 * 1024, 32} },
4957 .block_erase = spi_block_erase_20,
4958 }, {
4959 .eraseblocks = { {32 * 1024, 4} },
4960 .block_erase = spi_block_erase_52,
4961 }, {
4962 .eraseblocks = { {128 * 1024, 1} },
4963 .block_erase = spi_block_erase_60,
4964 }, {
4965 .eraseblocks = { {128 * 1024, 1} },
4966 .block_erase = spi_block_erase_c7,
4967 }
4968 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004969 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004970 .unlock = spi_disable_blockprotect,
4971 .write = spi_chip_write_256,
4972 .read = spi_chip_read,
4973 .voltage = {1650, 1950},
4974 },
4975
4976 {
4977 .vendor = "Eon",
4978 .name = "EN25S20",
4979 .bustype = BUS_SPI,
4980 .manufacture_id = EON_ID_NOPREFIX,
4981 .model_id = EON_EN25S20,
4982 .total_size = 256,
4983 .page_size = 256,
4984 /* OTP: 256B total; enter 0x3A */
4985 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4986 .tested = TEST_UNTESTED,
4987 .probe = probe_spi_rdid,
4988 .probe_timing = TIMING_ZERO,
4989 .block_erasers = {
4990 {
4991 .eraseblocks = { {4 * 1024, 64} },
4992 .block_erase = spi_block_erase_20,
4993 }, {
4994 .eraseblocks = { {64 * 1024, 4} },
4995 .block_erase = spi_block_erase_d8,
4996 }, {
4997 .eraseblocks = { {256 * 1024, 1} },
4998 .block_erase = spi_block_erase_60,
4999 }, {
5000 .eraseblocks = { {256 * 1024, 1} },
5001 .block_erase = spi_block_erase_c7,
5002 }
5003 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005004 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005005 .unlock = spi_disable_blockprotect,
5006 .write = spi_chip_write_256,
5007 .read = spi_chip_read,
5008 .voltage = {1650, 1950},
5009 },
5010
5011 {
5012 .vendor = "Eon",
5013 .name = "EN25S40",
5014 .bustype = BUS_SPI,
5015 .manufacture_id = EON_ID_NOPREFIX,
5016 .model_id = EON_EN25S40,
5017 .total_size = 512,
5018 .page_size = 256,
5019 /* OTP: 256B total; enter 0x3A */
5020 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5021 .tested = TEST_UNTESTED,
5022 .probe = probe_spi_rdid,
5023 .probe_timing = TIMING_ZERO,
5024 .block_erasers = {
5025 {
5026 .eraseblocks = { {4 * 1024, 128} },
5027 .block_erase = spi_block_erase_20,
5028 }, {
5029 .eraseblocks = { {64 * 1024, 8} },
5030 .block_erase = spi_block_erase_d8,
5031 }, {
5032 .eraseblocks = { {512 * 1024, 1} },
5033 .block_erase = spi_block_erase_60,
5034 }, {
5035 .eraseblocks = { {512 * 1024, 1} },
5036 .block_erase = spi_block_erase_c7,
5037 }
5038 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005039 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005040 .unlock = spi_disable_blockprotect,
5041 .write = spi_chip_write_256,
5042 .read = spi_chip_read,
5043 .voltage = {1650, 1950},
5044 },
5045
5046 {
5047 .vendor = "Eon",
5048 .name = "EN25S80",
5049 .bustype = BUS_SPI,
5050 .manufacture_id = EON_ID_NOPREFIX,
5051 .model_id = EON_EN25S80,
5052 .total_size = 1024,
5053 .page_size = 256,
5054 /* OTP: 256B total; enter 0x3A */
5055 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5056 .tested = TEST_UNTESTED,
5057 .probe = probe_spi_rdid,
5058 .probe_timing = TIMING_ZERO,
5059 .block_erasers = {
5060 {
5061 .eraseblocks = { {4 * 1024, 256} },
5062 .block_erase = spi_block_erase_20,
5063 }, {
5064 .eraseblocks = { {64 * 1024, 16} },
5065 .block_erase = spi_block_erase_d8,
5066 }, {
5067 .eraseblocks = { {1024 * 1024, 1} },
5068 .block_erase = spi_block_erase_60,
5069 }, {
5070 .eraseblocks = { {1024 * 1024, 1} },
5071 .block_erase = spi_block_erase_c7,
5072 }
5073 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005074 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005075 .unlock = spi_disable_blockprotect,
5076 .write = spi_chip_write_256,
5077 .read = spi_chip_read,
5078 .voltage = {1650, 1950},
5079 },
5080
5081 {
5082 .vendor = "Eon",
5083 .name = "EN25S16",
5084 .bustype = BUS_SPI,
5085 .manufacture_id = EON_ID_NOPREFIX,
5086 .model_id = EON_EN25S16,
5087 .total_size = 2048,
5088 .page_size = 256,
5089 /* OTP: 512B total; enter 0x3A */
5090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5091 .tested = TEST_UNTESTED,
5092 .probe = probe_spi_rdid,
5093 .probe_timing = TIMING_ZERO,
5094 .block_erasers = {
5095 {
5096 .eraseblocks = { {4 * 1024, 512} },
5097 .block_erase = spi_block_erase_20,
5098 }, {
5099 .eraseblocks = { {64 * 1024, 32} },
5100 .block_erase = spi_block_erase_52,
5101 }, {
5102 .eraseblocks = { {32 * 1024, 64} },
5103 .block_erase = spi_block_erase_d8,
5104 }, {
5105 .eraseblocks = { {2048 * 1024, 1} },
5106 .block_erase = spi_block_erase_60,
5107 }, {
5108 .eraseblocks = { {2048 * 1024, 1} },
5109 .block_erase = spi_block_erase_c7,
5110 }
5111 },
5112 .printlock = spi_prettyprint_status_register_en25s_wp,
5113 .unlock = spi_disable_blockprotect_bp3_srwd,
5114 .write = spi_chip_write_256,
5115 .read = spi_chip_read,
5116 .voltage = {1650, 1950},
5117 },
5118
5119 {
5120 .vendor = "Eon",
5121 .name = "EN25S32",
5122 .bustype = BUS_SPI,
5123 .manufacture_id = EON_ID_NOPREFIX,
5124 .model_id = EON_EN25S32,
5125 .total_size = 4096,
5126 .page_size = 256,
5127 /* OTP: 512B total; enter 0x3A */
5128 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5129 .tested = TEST_UNTESTED,
5130 .probe = probe_spi_rdid,
5131 .probe_timing = TIMING_ZERO,
5132 .block_erasers = {
5133 {
5134 .eraseblocks = { {4 * 1024, 1024} },
5135 .block_erase = spi_block_erase_20,
5136 }, {
5137 .eraseblocks = { {32 * 1024, 128} },
5138 .block_erase = spi_block_erase_52,
5139 }, {
5140 .eraseblocks = { {64 * 1024, 64} },
5141 .block_erase = spi_block_erase_d8,
5142 }, {
5143 .eraseblocks = { {4096 * 1024, 1} },
5144 .block_erase = spi_block_erase_60,
5145 }, {
5146 .eraseblocks = { {4096 * 1024, 1} },
5147 .block_erase = spi_block_erase_c7,
5148 }
5149 },
5150 .printlock = spi_prettyprint_status_register_en25s_wp,
5151 .unlock = spi_disable_blockprotect_bp3_srwd,
5152 .write = spi_chip_write_256,
5153 .read = spi_chip_read,
5154 .voltage = {1650, 1950},
5155 },
5156
5157 {
5158 .vendor = "Eon",
5159 .name = "EN25S64",
5160 .bustype = BUS_SPI,
5161 .manufacture_id = EON_ID_NOPREFIX,
5162 .model_id = EON_EN25S64,
5163 .total_size = 8192,
5164 .page_size = 256,
5165 /* OTP: 512B total; enter 0x3A */
5166 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5167 .tested = TEST_UNTESTED,
5168 .probe = probe_spi_rdid,
5169 .probe_timing = TIMING_ZERO,
5170 .block_erasers = {
5171 {
5172 .eraseblocks = { {4 * 1024, 2048} },
5173 .block_erase = spi_block_erase_20,
5174 }, {
5175 .eraseblocks = { {64 * 1024, 128} },
5176 .block_erase = spi_block_erase_d8,
5177 }, {
5178 .eraseblocks = { {8192 * 1024, 1} },
5179 .block_erase = spi_block_erase_60,
5180 }, {
5181 .eraseblocks = { {8192 * 1024, 1} },
5182 .block_erase = spi_block_erase_c7,
5183 }
5184 },
5185 .printlock = spi_prettyprint_status_register_en25s_wp,
5186 .unlock = spi_disable_blockprotect_bp3_srwd,
5187 .write = spi_chip_write_256,
5188 .read = spi_chip_read,
5189 .voltage = {1650, 1950},
5190 },
5191
5192 {
5193 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005194 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005195 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005196 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005197 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005198 .total_size = 128,
5199 .page_size = 128,
5200 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005201 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005202 .probe = probe_jedec,
5203 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5204 .block_erasers =
5205 {
5206 {
5207 .eraseblocks = { {16 * 1024, 8} },
5208 .block_erase = erase_sector_jedec,
5209 },
5210 {
5211 .eraseblocks = { {128 * 1024, 1} },
5212 .block_erase = erase_chip_block_jedec,
5213 },
5214 },
5215 .write = write_jedec_1,
5216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005217 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005218 },
5219
5220 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005221 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005222 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005223 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005224 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005225 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005226 .total_size = 256,
5227 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005228 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005229 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005230 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005231 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005232 .block_erasers =
5233 {
5234 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005235 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005236 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005237 {8 * 1024, 2},
5238 {32 * 1024, 1},
5239 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005240 },
5241 .block_erase = erase_sector_jedec,
5242 }, {
5243 .eraseblocks = { {256 * 1024, 1} },
5244 .block_erase = erase_chip_block_jedec,
5245 },
5246 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005247 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005248 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005249 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005250 },
5251
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005252 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005253 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005254 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005255 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005256 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005257 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005258 .total_size = 256,
5259 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005260 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005261 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005262 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005263 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005264 .block_erasers =
5265 {
5266 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005267 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005268 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005269 {32 * 1024, 1},
5270 {8 * 1024, 2},
5271 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005272 },
5273 .block_erase = erase_sector_jedec,
5274 }, {
5275 .eraseblocks = { {256 * 1024, 1} },
5276 .block_erase = erase_chip_block_jedec,
5277 },
5278 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005279 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005281 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005282 },
5283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005284 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005285 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005286 .name = "EN29LV040(A)",
5287 .bustype = BUS_PARALLEL,
5288 .manufacture_id = EON_ID,
5289 .model_id = EON_EN29LV040,
5290 .total_size = 512,
5291 .page_size = 4 * 1024,
5292 .tested = TEST_OK_PREW,
5293 .probe = probe_jedec,
5294 .probe_timing = TIMING_ZERO,
5295 .block_erasers =
5296 {
5297 {
5298 .eraseblocks = { {64 * 1024, 8} },
5299 .block_erase = erase_sector_jedec,
5300 },
5301 {
5302 .eraseblocks = { {512 * 1024, 1} },
5303 .block_erase = erase_chip_block_jedec,
5304 },
5305 },
5306 .write = write_jedec_1,
5307 .read = read_memmapped,
5308 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5309 },
5310
5311 {
5312 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005313 .name = "EN29LV640B",
5314 .bustype = BUS_PARALLEL,
5315 .manufacture_id = EON_ID,
5316 .model_id = EON_EN29LV640B,
5317 .total_size = 8192,
5318 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005319 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005320 .tested = TEST_OK_PREW,
5321 .probe = probe_en29lv640b,
5322 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5323 .block_erasers =
5324 {
5325 {
5326 .eraseblocks = {
5327 {8 * 1024, 8},
5328 {64 * 1024, 127},
5329 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005330 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005331 }, {
5332 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005333 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005334 },
5335 },
5336 .write = write_en29lv640b,
5337 .read = read_memmapped,
5338 .voltage = {2700, 3600},
5339 },
5340
5341 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005342 .vendor = "Eon",
5343 .name = "EN29GL064(A)B",
5344 .bustype = BUS_PARALLEL,
5345 .manufacture_id = EON_ID,
5346 .model_id = EON_EN29GL064B,
5347 .total_size = 8192,
5348 .page_size = 128 * 1024, /* actual page size is 16 */
5349 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5350 .tested = TEST_UNTESTED,
5351 .probe = probe_jedec_29gl,
5352 .probe_timing = TIMING_ZERO,
5353 .block_erasers =
5354 {
5355 {
5356 .eraseblocks = {
5357 {8 * 1024, 8},
5358 {64 * 1024, 127},
5359 },
5360 .block_erase = erase_sector_jedec,
5361 }, {
5362 .eraseblocks = { {8 * 1024 * 1024, 1} },
5363 .block_erase = erase_chip_block_jedec,
5364 },
5365 },
5366 .write = write_jedec_1,
5367 .read = read_memmapped,
5368 .voltage = {2700, 3600},
5369 },
5370
5371 {
5372 .vendor = "Eon",
5373 .name = "EN29GL064(A)T",
5374 .bustype = BUS_PARALLEL,
5375 .manufacture_id = EON_ID,
5376 .model_id = EON_EN29GL064T,
5377 .total_size = 8192,
5378 .page_size = 128 * 1024, /* actual page size is 16 */
5379 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5380 .tested = TEST_UNTESTED,
5381 .probe = probe_jedec_29gl,
5382 .probe_timing = TIMING_ZERO,
5383 .block_erasers =
5384 {
5385 {
5386 .eraseblocks = {
5387 {64 * 1024, 127},
5388 {8 * 1024, 8},
5389 },
5390 .block_erase = erase_sector_jedec,
5391 }, {
5392 .eraseblocks = { {8 * 1024 * 1024, 1} },
5393 .block_erase = erase_chip_block_jedec,
5394 },
5395 },
5396 .write = write_jedec_1,
5397 .read = read_memmapped,
5398 .voltage = {2700, 3600},
5399 },
5400
5401 {
5402 .vendor = "Eon",
5403 .name = "EN29GL064H/L",
5404 .bustype = BUS_PARALLEL,
5405 .manufacture_id = EON_ID,
5406 .model_id = EON_EN29GL064HL,
5407 .total_size = 8192,
5408 .page_size = 128 * 1024, /* actual page size is 16 */
5409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5410 .tested = TEST_UNTESTED,
5411 .probe = probe_jedec_29gl,
5412 .probe_timing = TIMING_ZERO,
5413 .block_erasers =
5414 {
5415 {
5416 .eraseblocks = { {64 * 1024, 128} },
5417 .block_erase = erase_sector_jedec,
5418 }, {
5419 .eraseblocks = { {8 * 1024 * 1024, 1} },
5420 .block_erase = erase_chip_block_jedec,
5421 },
5422 },
5423 .write = write_jedec_1,
5424 .read = read_memmapped,
5425 .voltage = {2700, 3600},
5426 },
5427
5428 {
5429 .vendor = "Eon",
5430 .name = "EN29GL128",
5431 .bustype = BUS_PARALLEL,
5432 .manufacture_id = EON_ID,
5433 .model_id = EON_EN29GL128HL,
5434 .total_size = 16384,
5435 .page_size = 128 * 1024, /* actual page size is 16 */
5436 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5437 .tested = TEST_UNTESTED,
5438 .probe = probe_jedec_29gl,
5439 .probe_timing = TIMING_ZERO,
5440 .block_erasers =
5441 {
5442 {
5443 .eraseblocks = { {128 * 1024, 128} },
5444 .block_erase = erase_sector_jedec,
5445 }, {
5446 .eraseblocks = { {16 * 1024 * 1024, 1} },
5447 .block_erase = erase_chip_block_jedec,
5448 },
5449 },
5450 .write = write_jedec_1,
5451 .read = read_memmapped,
5452 .voltage = {2700, 3600},
5453 },
5454
5455 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005456 .vendor = "ESI",
5457 .name = "ES25P40",
5458 .bustype = BUS_SPI,
5459 .manufacture_id = EXCEL_ID_NOPREFIX,
5460 .model_id = EXCEL_ES25P40,
5461 .total_size = 512,
5462 .page_size = 256,
5463 /* 256-byte paramter page separate from memory array:
5464 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5465 .feature_bits = FEATURE_WRSR_WREN,
5466 .tested = TEST_UNTESTED,
5467 .probe = probe_spi_rdid,
5468 .probe_timing = TIMING_ZERO,
5469 .block_erasers =
5470 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005471 {
5472 .eraseblocks = { {64 * 1024, 8} },
5473 .block_erase = spi_block_erase_d8,
5474 }, {
5475 .eraseblocks = { {512 * 1024, 1} },
5476 .block_erase = spi_block_erase_c7,
5477 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005478 },
5479 .printlock = spi_prettyprint_status_register_bp2_srwd,
5480 .unlock = spi_disable_blockprotect_bp2_srwd,
5481 .write = spi_chip_write_256,
5482 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5483 .voltage = {2700, 3600},
5484 },
5485
5486 {
5487 .vendor = "ESI",
5488 .name = "ES25P80",
5489 .bustype = BUS_SPI,
5490 .manufacture_id = EXCEL_ID_NOPREFIX,
5491 .model_id = EXCEL_ES25P80,
5492 .total_size = 1024,
5493 .page_size = 256,
5494 /* 256-byte paramter page separate from memory array:
5495 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5496 .feature_bits = FEATURE_WRSR_WREN,
5497 .tested = TEST_UNTESTED,
5498 .probe = probe_spi_rdid,
5499 .probe_timing = TIMING_ZERO,
5500 .block_erasers =
5501 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005502 {
5503 .eraseblocks = { {64 * 1024, 16} },
5504 .block_erase = spi_block_erase_d8,
5505 }, {
5506 .eraseblocks = { {1024 * 1024, 1} },
5507 .block_erase = spi_block_erase_c7,
5508 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005509 },
5510 .printlock = spi_prettyprint_status_register_bp2_srwd,
5511 .unlock = spi_disable_blockprotect_bp2_srwd,
5512 .write = spi_chip_write_256,
5513 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5514 .voltage = {2700, 3600},
5515 },
5516
5517 {
5518 .vendor = "ESI",
5519 .name = "ES25P16",
5520 .bustype = BUS_SPI,
5521 .manufacture_id = EXCEL_ID_NOPREFIX,
5522 .model_id = EXCEL_ES25P16,
5523 .total_size = 2 * 1024,
5524 .page_size = 256,
5525 /* 256-byte paramter page separate from memory array:
5526 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5527 .feature_bits = FEATURE_WRSR_WREN,
5528 .tested = TEST_UNTESTED,
5529 .probe = probe_spi_rdid,
5530 .probe_timing = TIMING_ZERO,
5531 .block_erasers =
5532 {
5533 {
5534 .eraseblocks = { {64 * 1024, 32} },
5535 .block_erase = spi_block_erase_d8,
5536 }, {
5537 .eraseblocks = { {2 * 1024 * 1024, 1} },
5538 .block_erase = spi_block_erase_c7,
5539 }
5540 },
5541 .printlock = spi_prettyprint_status_register_bp2_srwd,
5542 .unlock = spi_disable_blockprotect_bp2_srwd,
5543 .write = spi_chip_write_256,
5544 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5545 .voltage = {2700, 3600},
5546 },
5547
5548 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 .vendor = "Fujitsu",
5550 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005551 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005552 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005553 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 .total_size = 512,
5555 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005556 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005557 .tested = TEST_UNTESTED,
5558 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005559 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005560 .block_erasers =
5561 {
5562 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005563 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005564 {16 * 1024, 1},
5565 {8 * 1024, 2},
5566 {32 * 1024, 1},
5567 {64 * 1024, 7},
5568 },
Sean Nelson35727f72010-01-28 23:55:12 +00005569 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005570 }, {
5571 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005572 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005573 },
5574 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005575 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005577 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005578 },
5579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 {
5581 .vendor = "Fujitsu",
5582 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005583 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005585 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005586 .total_size = 512,
5587 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005588 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005589 .tested = TEST_UNTESTED,
5590 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005591 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005592 .block_erasers =
5593 {
5594 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005595 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005596 {64 * 1024, 7},
5597 {32 * 1024, 1},
5598 {8 * 1024, 2},
5599 {16 * 1024, 1},
5600 },
Sean Nelson35727f72010-01-28 23:55:12 +00005601 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005602 }, {
5603 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005604 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005605 },
5606 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005607 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005609 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005610 },
5611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005612 {
Sean Nelson35727f72010-01-28 23:55:12 +00005613 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005614 .vendor = "Fujitsu",
5615 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005616 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005617 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005618 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005619 .total_size = 512,
5620 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005621 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005622 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005623 .probe = probe_jedec,
5624 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005625 .block_erasers =
5626 {
5627 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005628 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005629 {16 * 1024, 1},
5630 {8 * 1024, 2},
5631 {32 * 1024, 1},
5632 {64 * 1024, 7},
5633 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005634 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005635 }, {
5636 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005637 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005638 },
5639 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005640 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005641 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005642 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005643 },
5644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005645 {
5646 .vendor = "Fujitsu",
5647 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005648 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005649 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005650 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 .total_size = 512,
5652 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005653 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005654 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005655 .probe = probe_jedec,
5656 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005657 .block_erasers =
5658 {
5659 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005660 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005661 {64 * 1024, 7},
5662 {32 * 1024, 1},
5663 {8 * 1024, 2},
5664 {16 * 1024, 1},
5665 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005666 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005667 }, {
5668 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005669 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005670 },
5671 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005672 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005673 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005674 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005675 },
5676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005677 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005678 .vendor = "Fujitsu",
5679 .name = "MBM29LV160BE",
5680 .bustype = BUS_PARALLEL,
5681 .manufacture_id = FUJITSU_ID,
5682 .model_id = FUJITSU_MBM29LV160BE,
5683 .total_size = 2 * 1024,
5684 .page_size = 0,
5685 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5686 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005687 .probe = probe_jedec,
5688 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005689 .block_erasers =
5690 {
5691 {
5692 .eraseblocks = {
5693 {16 * 1024, 1},
5694 {8 * 1024, 2},
5695 {32 * 1024, 1},
5696 {64 * 1024, 31},
5697 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005698 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005699 }, {
5700 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005701 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005702 },
5703 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005704 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005705 .read = read_memmapped,
5706 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5707 },
5708
5709 {
5710 .vendor = "Fujitsu",
5711 .name = "MBM29LV160TE",
5712 .bustype = BUS_PARALLEL,
5713 .manufacture_id = FUJITSU_ID,
5714 .model_id = FUJITSU_MBM29LV160TE,
5715 .total_size = 2 * 1024,
5716 .page_size = 0,
5717 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5718 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005719 .probe = probe_jedec,
5720 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005721 .block_erasers =
5722 {
5723 {
5724 .eraseblocks = {
5725 {64 * 1024, 31},
5726 {32 * 1024, 1},
5727 {8 * 1024, 2},
5728 {16 * 1024, 1},
5729 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005730 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005731 }, {
5732 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005733 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005734 },
5735 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005736 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005737 .read = read_memmapped,
5738 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5739 },
5740
5741 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005742 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005743 .name = "GD25LQ40",
5744 .bustype = BUS_SPI,
5745 .manufacture_id = GIGADEVICE_ID,
5746 .model_id = GIGADEVICE_GD25LQ40,
5747 .total_size = 512,
5748 .page_size = 256,
5749 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5751 .tested = TEST_UNTESTED,
5752 .probe = probe_spi_rdid,
5753 .probe_timing = TIMING_ZERO,
5754 .block_erasers =
5755 {
5756 {
5757 .eraseblocks = { {4 * 1024, 128} },
5758 .block_erase = spi_block_erase_20,
5759 }, {
5760 .eraseblocks = { {32 * 1024, 16} },
5761 .block_erase = spi_block_erase_52,
5762 }, {
5763 .eraseblocks = { {64 * 1024, 8} },
5764 .block_erase = spi_block_erase_d8,
5765 }, {
5766 .eraseblocks = { {512 * 1024, 1} },
5767 .block_erase = spi_block_erase_60,
5768 }, {
5769 .eraseblocks = { {512 * 1024, 1} },
5770 .block_erase = spi_block_erase_c7,
5771 }
5772 },
5773 .printlock = spi_prettyprint_status_register_bp4_srwd,
5774 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5775 .write = spi_chip_write_256,
5776 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5777 .voltage = {1695, 1950},
5778 },
5779
5780 {
5781 .vendor = "GigaDevice",
5782 .name = "GD25LQ80",
5783 .bustype = BUS_SPI,
5784 .manufacture_id = GIGADEVICE_ID,
5785 .model_id = GIGADEVICE_GD25LQ80,
5786 .total_size = 1024,
5787 .page_size = 256,
5788 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5790 .tested = TEST_UNTESTED,
5791 .probe = probe_spi_rdid,
5792 .probe_timing = TIMING_ZERO,
5793 .block_erasers =
5794 {
5795 {
5796 .eraseblocks = { {4 * 1024, 256} },
5797 .block_erase = spi_block_erase_20,
5798 }, {
5799 .eraseblocks = { {32 * 1024, 32} },
5800 .block_erase = spi_block_erase_52,
5801 }, {
5802 .eraseblocks = { {64 * 1024, 16} },
5803 .block_erase = spi_block_erase_d8,
5804 }, {
5805 .eraseblocks = { {1 * 1024 * 1024, 1} },
5806 .block_erase = spi_block_erase_60,
5807 }, {
5808 .eraseblocks = { {1 * 1024 * 1024, 1} },
5809 .block_erase = spi_block_erase_c7,
5810 }
5811 },
5812 .printlock = spi_prettyprint_status_register_bp4_srwd,
5813 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5814 .write = spi_chip_write_256,
5815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5816 .voltage = {1695, 1950},
5817 },
5818
5819 {
5820 .vendor = "GigaDevice",
5821 .name = "GD25LQ16",
5822 .bustype = BUS_SPI,
5823 .manufacture_id = GIGADEVICE_ID,
5824 .model_id = GIGADEVICE_GD25LQ16,
5825 .total_size = 2048,
5826 .page_size = 256,
5827 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5829 .tested = TEST_UNTESTED,
5830 .probe = probe_spi_rdid,
5831 .probe_timing = TIMING_ZERO,
5832 .block_erasers =
5833 {
5834 {
5835 .eraseblocks = { {4 * 1024, 512} },
5836 .block_erase = spi_block_erase_20,
5837 }, {
5838 .eraseblocks = { {32 * 1024, 64} },
5839 .block_erase = spi_block_erase_52,
5840 }, {
5841 .eraseblocks = { {64 * 1024, 32} },
5842 .block_erase = spi_block_erase_d8,
5843 }, {
5844 .eraseblocks = { {2 * 1024 * 1024, 1} },
5845 .block_erase = spi_block_erase_60,
5846 }, {
5847 .eraseblocks = { {2 * 1024 * 1024, 1} },
5848 .block_erase = spi_block_erase_c7,
5849 }
5850 },
5851 .printlock = spi_prettyprint_status_register_bp4_srwd,
5852 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5853 .write = spi_chip_write_256,
5854 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5855 .voltage = {1695, 1950},
5856 },
5857
5858 {
5859 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005860 .name = "GD25LQ32",
5861 .bustype = BUS_SPI,
5862 .manufacture_id = GIGADEVICE_ID,
5863 .model_id = GIGADEVICE_GD25LQ32,
5864 .total_size = 4096,
5865 .page_size = 256,
5866 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5868 .tested = TEST_OK_PREW,
5869 .probe = probe_spi_rdid,
5870 .probe_timing = TIMING_ZERO,
5871 .block_erasers =
5872 {
5873 {
5874 .eraseblocks = { {4 * 1024, 1024} },
5875 .block_erase = spi_block_erase_20,
5876 }, {
5877 .eraseblocks = { {32 * 1024, 128} },
5878 .block_erase = spi_block_erase_52,
5879 }, {
5880 .eraseblocks = { {64 * 1024, 64} },
5881 .block_erase = spi_block_erase_d8,
5882 }, {
5883 .eraseblocks = { {4 * 1024 * 1024, 1} },
5884 .block_erase = spi_block_erase_60,
5885 }, {
5886 .eraseblocks = { {4 * 1024 * 1024, 1} },
5887 .block_erase = spi_block_erase_c7,
5888 }
5889 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005890 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005891 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5892 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005893 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5894 .voltage = {1695, 1950},
5895 },
5896
5897 {
5898 .vendor = "GigaDevice",
5899 .name = "GD25LQ64(B)",
5900 .bustype = BUS_SPI,
5901 .manufacture_id = GIGADEVICE_ID,
5902 .model_id = GIGADEVICE_GD25LQ64,
5903 .total_size = 8192,
5904 .page_size = 256,
5905 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005907 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005908 .probe = probe_spi_rdid,
5909 .probe_timing = TIMING_ZERO,
5910 .block_erasers =
5911 {
5912 {
5913 .eraseblocks = { {4 * 1024, 2048} },
5914 .block_erase = spi_block_erase_20,
5915 }, {
5916 .eraseblocks = { {32 * 1024, 256} },
5917 .block_erase = spi_block_erase_52,
5918 }, {
5919 .eraseblocks = { {64 * 1024, 128} },
5920 .block_erase = spi_block_erase_d8,
5921 }, {
5922 .eraseblocks = { {8 * 1024 * 1024, 1} },
5923 .block_erase = spi_block_erase_60,
5924 }, {
5925 .eraseblocks = { {8 * 1024 * 1024, 1} },
5926 .block_erase = spi_block_erase_c7,
5927 }
5928 },
5929 .printlock = spi_prettyprint_status_register_bp4_srwd,
5930 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5931 .write = spi_chip_write_256,
5932 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5933 .voltage = {1695, 1950},
5934 },
5935
5936 {
5937 .vendor = "GigaDevice",
5938 .name = "GD25LQ128",
5939 .bustype = BUS_SPI,
5940 .manufacture_id = GIGADEVICE_ID,
5941 .model_id = GIGADEVICE_GD25LQ128,
5942 .total_size = 16384,
5943 .page_size = 256,
5944 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5946 .tested = TEST_UNTESTED,
5947 .probe = probe_spi_rdid,
5948 .probe_timing = TIMING_ZERO,
5949 .block_erasers =
5950 {
5951 {
5952 .eraseblocks = { {4 * 1024, 4096} },
5953 .block_erase = spi_block_erase_20,
5954 }, {
5955 .eraseblocks = { {32 * 1024, 512} },
5956 .block_erase = spi_block_erase_52,
5957 }, {
5958 .eraseblocks = { {64 * 1024, 256} },
5959 .block_erase = spi_block_erase_d8,
5960 }, {
5961 .eraseblocks = { {16 * 1024 * 1024, 1} },
5962 .block_erase = spi_block_erase_60,
5963 }, {
5964 .eraseblocks = { {16 * 1024 * 1024, 1} },
5965 .block_erase = spi_block_erase_c7,
5966 }
5967 },
5968 .printlock = spi_prettyprint_status_register_bp4_srwd,
5969 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5970 .write = spi_chip_write_256,
5971 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5972 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005973 },
5974
5975 {
5976 .vendor = "GigaDevice",
5977 .name = "GD25Q512",
5978 .bustype = BUS_SPI,
5979 .manufacture_id = GIGADEVICE_ID,
5980 .model_id = GIGADEVICE_GD25Q512,
5981 .total_size = 64,
5982 .page_size = 256,
5983 .feature_bits = FEATURE_WRSR_WREN,
5984 .tested = TEST_UNTESTED,
5985 .probe = probe_spi_rdid,
5986 .probe_timing = TIMING_ZERO,
5987 .block_erasers = {
5988 {
5989 .eraseblocks = { {4 * 1024, 16} },
5990 .block_erase = spi_block_erase_20,
5991 }, {
5992 .eraseblocks = { {32 * 1024, 2} },
5993 .block_erase = spi_block_erase_52,
5994 }, {
5995 .eraseblocks = { {64 * 1024, 1} },
5996 .block_erase = spi_block_erase_60,
5997 }, {
5998 .eraseblocks = { {64 * 1024, 1} },
5999 .block_erase = spi_block_erase_c7,
6000 }
6001 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006002 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006003 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6004 .write = spi_chip_write_256,
6005 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6006 .voltage = {2700, 3600},
6007 },
6008
6009 {
6010 .vendor = "GigaDevice",
6011 .name = "GD25Q10",
6012 .bustype = BUS_SPI,
6013 .manufacture_id = GIGADEVICE_ID,
6014 .model_id = GIGADEVICE_GD25Q10,
6015 .total_size = 128,
6016 .page_size = 256,
6017 .feature_bits = FEATURE_WRSR_WREN,
6018 .tested = TEST_UNTESTED,
6019 .probe = probe_spi_rdid,
6020 .probe_timing = TIMING_ZERO,
6021 .block_erasers = {
6022 {
6023 .eraseblocks = { {4 * 1024, 32} },
6024 .block_erase = spi_block_erase_20,
6025 }, {
6026 .eraseblocks = { {32 * 1024, 4} },
6027 .block_erase = spi_block_erase_52,
6028 }, {
6029 .eraseblocks = { {64 * 1024, 2} },
6030 .block_erase = spi_block_erase_d8,
6031 }, {
6032 .eraseblocks = { {128 * 1024, 1} },
6033 .block_erase = spi_block_erase_60,
6034 }, {
6035 .eraseblocks = { {128 * 1024, 1} },
6036 .block_erase = spi_block_erase_c7,
6037 }
6038 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006039 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006040 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6041 .write = spi_chip_write_256,
6042 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6043 .voltage = {2700, 3600},
6044 },
6045
6046 {
6047 .vendor = "GigaDevice",
6048 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006049 .bustype = BUS_SPI,
6050 .manufacture_id = GIGADEVICE_ID,
6051 .model_id = GIGADEVICE_GD25Q20,
6052 .total_size = 256,
6053 .page_size = 256,
6054 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00006055 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006056 .probe = probe_spi_rdid,
6057 .probe_timing = TIMING_ZERO,
6058 .block_erasers =
6059 {
6060 {
6061 .eraseblocks = { {4 * 1024, 64} },
6062 .block_erase = spi_block_erase_20,
6063 }, {
6064 .eraseblocks = { {32 * 1024, 8} },
6065 .block_erase = spi_block_erase_52,
6066 }, {
6067 .eraseblocks = { {64 * 1024, 4} },
6068 .block_erase = spi_block_erase_d8,
6069 }, {
6070 .eraseblocks = { {256 * 1024, 1} },
6071 .block_erase = spi_block_erase_60,
6072 }, {
6073 .eraseblocks = { {256 * 1024, 1} },
6074 .block_erase = spi_block_erase_c7,
6075 }
6076 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006077 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006078 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006079 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006080 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006081 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006082 },
6083
6084 {
6085 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006086 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006087 .bustype = BUS_SPI,
6088 .manufacture_id = GIGADEVICE_ID,
6089 .model_id = GIGADEVICE_GD25Q40,
6090 .total_size = 512,
6091 .page_size = 256,
6092 .feature_bits = FEATURE_WRSR_WREN,
6093 .tested = TEST_UNTESTED,
6094 .probe = probe_spi_rdid,
6095 .probe_timing = TIMING_ZERO,
6096 .block_erasers =
6097 {
6098 {
6099 .eraseblocks = { {4 * 1024, 128} },
6100 .block_erase = spi_block_erase_20,
6101 }, {
6102 .eraseblocks = { {32 * 1024, 16} },
6103 .block_erase = spi_block_erase_52,
6104 }, {
6105 .eraseblocks = { {64 * 1024, 8} },
6106 .block_erase = spi_block_erase_d8,
6107 }, {
6108 .eraseblocks = { {512 * 1024, 1} },
6109 .block_erase = spi_block_erase_60,
6110 }, {
6111 .eraseblocks = { {512 * 1024, 1} },
6112 .block_erase = spi_block_erase_c7,
6113 }
6114 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006115 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006116 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006117 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006118 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006119 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006120 },
6121
6122 {
6123 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006124 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006125 .bustype = BUS_SPI,
6126 .manufacture_id = GIGADEVICE_ID,
6127 .model_id = GIGADEVICE_GD25Q80,
6128 .total_size = 1024,
6129 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006130 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006131 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6132 .tested = TEST_OK_PREW,
6133 .probe = probe_spi_rdid,
6134 .probe_timing = TIMING_ZERO,
6135 .block_erasers =
6136 {
6137 {
6138 .eraseblocks = { {4 * 1024, 256} },
6139 .block_erase = spi_block_erase_20,
6140 }, {
6141 .eraseblocks = { {32 * 1024, 32} },
6142 .block_erase = spi_block_erase_52,
6143 }, {
6144 .eraseblocks = { {64 * 1024, 16} },
6145 .block_erase = spi_block_erase_d8,
6146 }, {
6147 .eraseblocks = { {1024 * 1024, 1} },
6148 .block_erase = spi_block_erase_60,
6149 }, {
6150 .eraseblocks = { {1024 * 1024, 1} },
6151 .block_erase = spi_block_erase_c7,
6152 }
6153 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006154 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006155 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006156 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006157 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006158 .voltage = {2700, 3600},
6159 },
6160
6161 {
6162 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006163 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006164 .bustype = BUS_SPI,
6165 .manufacture_id = GIGADEVICE_ID,
6166 .model_id = GIGADEVICE_GD25Q16,
6167 .total_size = 2048,
6168 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006169 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006170 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006171 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006172 .probe = probe_spi_rdid,
6173 .probe_timing = TIMING_ZERO,
6174 .block_erasers =
6175 {
6176 {
6177 .eraseblocks = { {4 * 1024, 512} },
6178 .block_erase = spi_block_erase_20,
6179 }, {
6180 .eraseblocks = { {32 * 1024, 64} },
6181 .block_erase = spi_block_erase_52,
6182 }, {
6183 .eraseblocks = { {64 * 1024, 32} },
6184 .block_erase = spi_block_erase_d8,
6185 }, {
6186 .eraseblocks = { {2 * 1024 * 1024, 1} },
6187 .block_erase = spi_block_erase_60,
6188 }, {
6189 .eraseblocks = { {2 * 1024 * 1024, 1} },
6190 .block_erase = spi_block_erase_c7,
6191 }
6192 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006193 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006194 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006195 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006197 .voltage = {2700, 3600},
6198 },
6199
6200 {
6201 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006202 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006203 .bustype = BUS_SPI,
6204 .manufacture_id = GIGADEVICE_ID,
6205 .model_id = GIGADEVICE_GD25Q32,
6206 .total_size = 4096,
6207 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006208 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006210 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006211 .probe = probe_spi_rdid,
6212 .probe_timing = TIMING_ZERO,
6213 .block_erasers =
6214 {
6215 {
6216 .eraseblocks = { {4 * 1024, 1024} },
6217 .block_erase = spi_block_erase_20,
6218 }, {
6219 .eraseblocks = { {32 * 1024, 128} },
6220 .block_erase = spi_block_erase_52,
6221 }, {
6222 .eraseblocks = { {64 * 1024, 64} },
6223 .block_erase = spi_block_erase_d8,
6224 }, {
6225 .eraseblocks = { {4 * 1024 * 1024, 1} },
6226 .block_erase = spi_block_erase_60,
6227 }, {
6228 .eraseblocks = { {4 * 1024 * 1024, 1} },
6229 .block_erase = spi_block_erase_c7,
6230 }
6231 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006232 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006233 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006234 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006236 .voltage = {2700, 3600},
6237 },
6238
6239 {
6240 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006241 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006242 .bustype = BUS_SPI,
6243 .manufacture_id = GIGADEVICE_ID,
6244 .model_id = GIGADEVICE_GD25Q64,
6245 .total_size = 8192,
6246 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006247 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006249 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006250 .probe = probe_spi_rdid,
6251 .probe_timing = TIMING_ZERO,
6252 .block_erasers =
6253 {
6254 {
6255 .eraseblocks = { {4 * 1024, 2048} },
6256 .block_erase = spi_block_erase_20,
6257 }, {
6258 .eraseblocks = { {32 * 1024, 256} },
6259 .block_erase = spi_block_erase_52,
6260 }, {
6261 .eraseblocks = { {64 * 1024, 128} },
6262 .block_erase = spi_block_erase_d8,
6263 }, {
6264 .eraseblocks = { {8 * 1024 * 1024, 1} },
6265 .block_erase = spi_block_erase_60,
6266 }, {
6267 .eraseblocks = { {8 * 1024 * 1024, 1} },
6268 .block_erase = spi_block_erase_c7,
6269 }
6270 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006271 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006272 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006273 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006274 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006275 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006276 },
6277
6278 {
6279 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006280 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006281 .bustype = BUS_SPI,
6282 .manufacture_id = GIGADEVICE_ID,
6283 .model_id = GIGADEVICE_GD25Q128,
6284 .total_size = 16384,
6285 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006286 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006287 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6288 .tested = TEST_UNTESTED,
6289 .probe = probe_spi_rdid,
6290 .probe_timing = TIMING_ZERO,
6291 .block_erasers =
6292 {
6293 {
6294 .eraseblocks = { {4 * 1024, 4096} },
6295 .block_erase = spi_block_erase_20,
6296 }, {
6297 .eraseblocks = { {32 * 1024, 512} },
6298 .block_erase = spi_block_erase_52,
6299 }, {
6300 .eraseblocks = { {64 * 1024, 256} },
6301 .block_erase = spi_block_erase_d8,
6302 }, {
6303 .eraseblocks = { {16 * 1024 * 1024, 1} },
6304 .block_erase = spi_block_erase_60,
6305 }, {
6306 .eraseblocks = { {16 * 1024 * 1024, 1} },
6307 .block_erase = spi_block_erase_c7,
6308 }
6309 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006310 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006311 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6312 .write = spi_chip_write_256,
6313 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6314 .voltage = {2700, 3600},
6315 },
6316
6317 {
6318 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006319 .name = "GD25Q128C",
6320 .bustype = BUS_SPI,
6321 .manufacture_id = GIGADEVICE_ID,
6322 .model_id = GIGADEVICE_GD25Q128,
6323 .total_size = 16384,
6324 .page_size = 256,
6325 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6326 /* QPI: enable 0x38, disable 0xFF */
6327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6328 .tested = TEST_UNTESTED,
6329 .probe = probe_spi_rdid,
6330 .probe_timing = TIMING_ZERO,
6331 .block_erasers =
6332 {
6333 {
6334 .eraseblocks = { {4 * 1024, 4096} },
6335 .block_erase = spi_block_erase_20,
6336 }, {
6337 .eraseblocks = { {32 * 1024, 512} },
6338 .block_erase = spi_block_erase_52,
6339 }, {
6340 .eraseblocks = { {64 * 1024, 256} },
6341 .block_erase = spi_block_erase_d8,
6342 }, {
6343 .eraseblocks = { {16 * 1024 * 1024, 1} },
6344 .block_erase = spi_block_erase_60,
6345 }, {
6346 .eraseblocks = { {16 * 1024 * 1024, 1} },
6347 .block_erase = spi_block_erase_c7,
6348 }
6349 },
6350 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6351 .printlock = spi_prettyprint_status_register_bp4_srwd,
6352 .unlock = spi_disable_blockprotect_bp4_srwd,
6353 .write = spi_chip_write_256,
6354 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6355 .voltage = {2700, 3600},
6356 },
6357
6358 {
6359 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006360 .name = "GD25T80",
6361 .bustype = BUS_SPI,
6362 .manufacture_id = GIGADEVICE_ID,
6363 .model_id = GIGADEVICE_GD25T80,
6364 .total_size = 1024,
6365 .page_size = 256,
6366 /* OTP: 256B total; enter 0x3A */
6367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6368 .tested = TEST_UNTESTED,
6369 .probe = probe_spi_rdid,
6370 .probe_timing = TIMING_ZERO,
6371 .block_erasers = {
6372 {
6373 .eraseblocks = { {4 * 1024, 256} },
6374 .block_erase = spi_block_erase_20,
6375 }, {
6376 .eraseblocks = { {64 * 1024, 16} },
6377 .block_erase = spi_block_erase_52,
6378 }, {
6379 .eraseblocks = { {64 * 1024, 16} },
6380 .block_erase = spi_block_erase_d8,
6381 }, {
6382 .eraseblocks = { {1024 * 1024, 1} },
6383 .block_erase = spi_block_erase_60,
6384 }, {
6385 .eraseblocks = { {1024 * 1024, 1} },
6386 .block_erase = spi_block_erase_c7,
6387 }
6388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006389 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006390 .unlock = spi_disable_blockprotect,
6391 .write = spi_chip_write_256,
6392 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006393 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006394 },
6395
6396 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006397 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006398 .name = "GD25VQ21B",
6399 .bustype = BUS_SPI,
6400 .manufacture_id = GIGADEVICE_ID,
6401 .model_id = GIGADEVICE_GD25VQ21B,
6402 .total_size = 256,
6403 .page_size = 256,
6404 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6406 .tested = TEST_UNTESTED,
6407 .probe = probe_spi_rdid,
6408 .probe_timing = TIMING_ZERO,
6409 .block_erasers =
6410 {
6411 {
6412 .eraseblocks = { { 4 * 1024, 64} },
6413 .block_erase = spi_block_erase_20,
6414 }, {
6415 .eraseblocks = { { 32 * 1024, 8} },
6416 .block_erase = spi_block_erase_52,
6417 }, {
6418 .eraseblocks = { { 64 * 1024, 4} },
6419 .block_erase = spi_block_erase_d8,
6420 }, {
6421 .eraseblocks = { {256 * 1024, 1} },
6422 .block_erase = spi_block_erase_60,
6423 }, {
6424 .eraseblocks = { {256 * 1024, 1} },
6425 .block_erase = spi_block_erase_c7,
6426 }
6427 },
6428 .printlock = spi_prettyprint_status_register_bp4_srwd,
6429 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6430 .write = spi_chip_write_256,
6431 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6432 .voltage = {2300, 3600},
6433 },
6434
6435 {
6436 .vendor = "GigaDevice",
6437 .name = "GD25VQ40C",
6438 .bustype = BUS_SPI,
6439 .manufacture_id = GIGADEVICE_ID,
6440 .model_id = GIGADEVICE_GD25VQ41B,
6441 .total_size = 512,
6442 .page_size = 256,
6443 /* Supports SFDP */
6444 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6446 .tested = TEST_UNTESTED,
6447 .probe = probe_spi_rdid,
6448 .probe_timing = TIMING_ZERO,
6449 .block_erasers =
6450 {
6451 {
6452 .eraseblocks = { { 4 * 1024, 128} },
6453 .block_erase = spi_block_erase_20,
6454 }, {
6455 .eraseblocks = { { 32 * 1024, 16} },
6456 .block_erase = spi_block_erase_52,
6457 }, {
6458 .eraseblocks = { { 64 * 1024, 8} },
6459 .block_erase = spi_block_erase_d8,
6460 }, {
6461 .eraseblocks = { {512 * 1024, 1} },
6462 .block_erase = spi_block_erase_60,
6463 }, {
6464 .eraseblocks = { {512 * 1024, 1} },
6465 .block_erase = spi_block_erase_c7,
6466 }
6467 },
6468 .printlock = spi_prettyprint_status_register_bp4_srwd,
6469 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6470 .write = spi_chip_write_256,
6471 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6472 .voltage = {2300, 3600},
6473 },
6474
6475 {
6476 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006477 .name = "GD25VQ41B",
6478 .bustype = BUS_SPI,
6479 .manufacture_id = GIGADEVICE_ID,
6480 .model_id = GIGADEVICE_GD25VQ41B,
6481 .total_size = 512,
6482 .page_size = 256,
6483 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6484 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006485 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006486 .probe = probe_spi_rdid,
6487 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006488 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006489 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006490 {
6491 .eraseblocks = { { 4 * 1024, 128} },
6492 .block_erase = spi_block_erase_20,
6493 }, {
6494 .eraseblocks = { { 32 * 1024, 16} },
6495 .block_erase = spi_block_erase_52,
6496 }, {
6497 .eraseblocks = { { 64 * 1024, 8} },
6498 .block_erase = spi_block_erase_d8,
6499 }, {
6500 .eraseblocks = { {512 * 1024, 1} },
6501 .block_erase = spi_block_erase_60,
6502 }, {
6503 .eraseblocks = { {512 * 1024, 1} },
6504 .block_erase = spi_block_erase_c7,
6505 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006506 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006507 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006508 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6509 .write = spi_chip_write_256,
6510 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6511 .voltage = {2300, 3600},
6512 },
6513
6514 {
6515 .vendor = "GigaDevice",
6516 .name = "GD25VQ80C",
6517 .bustype = BUS_SPI,
6518 .manufacture_id = GIGADEVICE_ID,
6519 .model_id = GIGADEVICE_GD25VQ80C,
6520 .total_size = 1024,
6521 .page_size = 256,
6522 /* Supports SFDP */
6523 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6525 .tested = TEST_UNTESTED,
6526 .probe = probe_spi_rdid,
6527 .probe_timing = TIMING_ZERO,
6528 .block_erasers =
6529 {
6530 {
6531 .eraseblocks = { { 4 * 1024, 256} },
6532 .block_erase = spi_block_erase_20,
6533 }, {
6534 .eraseblocks = { { 32 * 1024, 32} },
6535 .block_erase = spi_block_erase_52,
6536 }, {
6537 .eraseblocks = { { 64 * 1024, 16} },
6538 .block_erase = spi_block_erase_d8,
6539 }, {
6540 .eraseblocks = { {1024 * 1024, 1} },
6541 .block_erase = spi_block_erase_60,
6542 }, {
6543 .eraseblocks = { {1024 * 1024, 1} },
6544 .block_erase = spi_block_erase_c7,
6545 }
6546 },
6547 .printlock = spi_prettyprint_status_register_bp4_srwd,
6548 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6549 .write = spi_chip_write_256,
6550 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6551 .voltage = {2300, 3600},
6552 },
6553
6554 {
6555 .vendor = "GigaDevice",
6556 .name = "GD25VQ16C",
6557 .bustype = BUS_SPI,
6558 .manufacture_id = GIGADEVICE_ID,
6559 .model_id = GIGADEVICE_GD25VQ16C,
6560 .total_size = 2 * 1024,
6561 .page_size = 256,
6562 /* Supports SFDP */
6563 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6565 .tested = TEST_UNTESTED,
6566 .probe = probe_spi_rdid,
6567 .probe_timing = TIMING_ZERO,
6568 .block_erasers =
6569 {
6570 {
6571 .eraseblocks = { { 4 * 1024, 512} },
6572 .block_erase = spi_block_erase_20,
6573 }, {
6574 .eraseblocks = { { 32 * 1024, 64} },
6575 .block_erase = spi_block_erase_52,
6576 }, {
6577 .eraseblocks = { { 64 * 1024, 32} },
6578 .block_erase = spi_block_erase_d8,
6579 }, {
6580 .eraseblocks = { {2 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_60,
6582 }, {
6583 .eraseblocks = { {2 * 1024 * 1024, 1} },
6584 .block_erase = spi_block_erase_c7,
6585 }
6586 },
6587 .printlock = spi_prettyprint_status_register_bp4_srwd,
6588 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006589 .write = spi_chip_write_256,
6590 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6591 .voltage = {2300, 3600},
6592 },
6593
6594 {
David Borgc96a8bd2010-06-21 16:12:22 +00006595 .vendor = "Hyundai",
6596 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006597 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006598 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006599 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006600 .total_size = 256,
6601 .page_size = 256 * 1024,
6602 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006603 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006604 .probe = probe_jedec,
6605 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6606 .block_erasers =
6607 {
6608 {
6609 .eraseblocks = {
6610 {64 * 1024, 3},
6611 {32 * 1024, 1},
6612 {8 * 1024, 2},
6613 {16 * 1024, 1},
6614 },
6615 .block_erase = erase_sector_jedec,
6616 }, {
6617 .eraseblocks = { {256 * 1024, 1} },
6618 .block_erase = erase_chip_block_jedec,
6619 },
6620 },
6621 .write = write_jedec_1,
6622 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006623 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006624 },
6625
6626 {
6627 .vendor = "Hyundai",
6628 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006629 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006630 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006631 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006632 .total_size = 256,
6633 .page_size = 256 * 1024,
6634 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6635 .tested = TEST_UNTESTED,
6636 .probe = probe_jedec,
6637 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6638 .block_erasers =
6639 {
6640 {
6641 .eraseblocks = {
6642 {16 * 1024, 1},
6643 {8 * 1024, 2},
6644 {32 * 1024, 1},
6645 {64 * 1024, 3},
6646 },
6647 .block_erase = erase_sector_jedec,
6648 }, {
6649 .eraseblocks = { {256 * 1024, 1} },
6650 .block_erase = erase_chip_block_jedec,
6651 },
6652 },
6653 .write = write_jedec_1,
6654 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006655 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006656 },
6657
6658 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006659 .vendor = "Hyundai",
6660 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006661 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006662 .manufacture_id = HYUNDAI_ID,
6663 .model_id = HYUNDAI_HY29F040A,
6664 .total_size = 512,
6665 .page_size = 64 * 1024,
6666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6667 .tested = TEST_UNTESTED,
6668 .probe = probe_jedec,
6669 .probe_timing = TIMING_ZERO,
6670 .block_erasers =
6671 {
6672 {
6673 .eraseblocks = { {64 * 1024, 8} },
6674 .block_erase = erase_sector_jedec,
6675 }, {
6676 .eraseblocks = { {512 * 1024, 1} },
6677 .block_erase = erase_chip_block_jedec,
6678 },
6679 },
6680 .write = write_jedec_1,
6681 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006682 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006683 },
6684
6685 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006686 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006687 .name = "25F160S33B8",
6688 .bustype = BUS_SPI,
6689 .manufacture_id = INTEL_ID,
6690 .model_id = INTEL_25F160S33B8,
6691 .total_size = 2048,
6692 .page_size = 256,
6693 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6694 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6695 .tested = TEST_UNTESTED,
6696 .probe = probe_spi_rdid,
6697 .probe_timing = TIMING_ZERO,
6698 .block_erasers =
6699 {
6700 {
6701 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6702 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6703 * have no effect on the memory contents, but sets a flag in the SR.
6704 .eraseblocks = {
6705 {8 * 1024, 8},
6706 {64 * 1024, 31} // inaccessible
6707 },
6708 .block_erase = spi_block_erase_40,
6709 }, { */
6710 .eraseblocks = { {64 * 1024, 32} },
6711 .block_erase = spi_block_erase_d8,
6712 }, {
6713 .eraseblocks = { {2 * 1024 * 1024, 1} },
6714 .block_erase = spi_block_erase_c7,
6715 }
6716 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006717 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6718 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006719 .write = spi_chip_write_256,
6720 .read = spi_chip_read, /* also fast read 0x0B */
6721 .voltage = {2700, 3600},
6722 },
6723
6724 {
6725 .vendor = "Intel",
6726 .name = "25F160S33T8",
6727 .bustype = BUS_SPI,
6728 .manufacture_id = INTEL_ID,
6729 .model_id = INTEL_25F160S33T8,
6730 .total_size = 2048,
6731 .page_size = 256,
6732 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6733 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6734 .tested = TEST_UNTESTED,
6735 .probe = probe_spi_rdid,
6736 .probe_timing = TIMING_ZERO,
6737 .block_erasers =
6738 {
6739 {
6740 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6741 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6742 * have no effect on the memory contents, but sets a flag in the SR.
6743 .eraseblocks = {
6744 {64 * 1024, 31}, // inaccessible
6745 {8 * 1024, 8}
6746 },
6747 .block_erase = spi_block_erase_40,
6748 }, { */
6749 .eraseblocks = { {64 * 1024, 32} },
6750 .block_erase = spi_block_erase_d8,
6751 }, {
6752 .eraseblocks = { {2 * 1024 * 1024, 1} },
6753 .block_erase = spi_block_erase_c7,
6754 }
6755 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006756 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6757 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006758 .write = spi_chip_write_256,
6759 .read = spi_chip_read, /* also fast read 0x0B */
6760 .voltage = {2700, 3600},
6761 },
6762
6763 {
6764 .vendor = "Intel",
6765 .name = "25F320S33B8",
6766 .bustype = BUS_SPI,
6767 .manufacture_id = INTEL_ID,
6768 .model_id = INTEL_25F320S33B8,
6769 .total_size = 4096,
6770 .page_size = 256,
6771 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6772 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6773 .tested = TEST_UNTESTED,
6774 .probe = probe_spi_rdid,
6775 .probe_timing = TIMING_ZERO,
6776 .block_erasers =
6777 {
6778 {
6779 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6780 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6781 * have no effect on the memory contents, but sets a flag in the SR.
6782 .eraseblocks = {
6783 {8 * 1024, 8},
6784 {64 * 1024, 63} // inaccessible
6785 },
6786 .block_erase = spi_block_erase_40,
6787 }, { */
6788 .eraseblocks = { {64 * 1024, 64} },
6789 .block_erase = spi_block_erase_d8,
6790 }, {
6791 .eraseblocks = { {4 * 1024 * 1024, 1} },
6792 .block_erase = spi_block_erase_c7,
6793 }
6794 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006795 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6796 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006797 .write = spi_chip_write_256,
6798 .read = spi_chip_read, /* also fast read 0x0B */
6799 .voltage = {2700, 3600},
6800 },
6801
6802 {
6803 .vendor = "Intel",
6804 .name = "25F320S33T8",
6805 .bustype = BUS_SPI,
6806 .manufacture_id = INTEL_ID,
6807 .model_id = INTEL_25F320S33T8,
6808 .total_size = 4096,
6809 .page_size = 256,
6810 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6812 .tested = TEST_UNTESTED,
6813 .probe = probe_spi_rdid,
6814 .probe_timing = TIMING_ZERO,
6815 .block_erasers =
6816 {
6817 {
6818 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6819 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6820 * have no effect on the memory contents, but sets a flag in the SR.
6821 .eraseblocks = {
6822 {64 * 1024, 63}, // inaccessible
6823 {8 * 1024, 8}
6824 },
6825 .block_erase = spi_block_erase_40,
6826 }, { */
6827 .eraseblocks = { {64 * 1024, 64} },
6828 .block_erase = spi_block_erase_d8,
6829 }, {
6830 .eraseblocks = { {4 * 1024 * 1024, 1} },
6831 .block_erase = spi_block_erase_c7,
6832 }
6833 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006834 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6835 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006836 .write = spi_chip_write_256,
6837 .read = spi_chip_read, /* also fast read 0x0B */
6838 .voltage = {2700, 3600},
6839 },
6840
6841 {
6842 .vendor = "Intel",
6843 .name = "25F640S33B8",
6844 .bustype = BUS_SPI,
6845 .manufacture_id = INTEL_ID,
6846 .model_id = INTEL_25F640S33B8,
6847 .total_size = 8192,
6848 .page_size = 256,
6849 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6850 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6851 .tested = TEST_UNTESTED,
6852 .probe = probe_spi_rdid,
6853 .probe_timing = TIMING_ZERO,
6854 .block_erasers =
6855 {
6856 {
6857 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6858 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6859 * have no effect on the memory contents, but sets a flag in the SR.
6860 .eraseblocks = {
6861 {8 * 1024, 8},
6862 {64 * 1024, 127} // inaccessible
6863 },
6864 .block_erase = spi_block_erase_40,
6865 }, { */
6866 .eraseblocks = { {64 * 1024, 128} },
6867 .block_erase = spi_block_erase_d8,
6868 }, {
6869 .eraseblocks = { {8 * 1024 * 1024, 1} },
6870 .block_erase = spi_block_erase_c7,
6871 }
6872 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006873 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6874 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006875 .write = spi_chip_write_256,
6876 .read = spi_chip_read, /* also fast read 0x0B */
6877 .voltage = {2700, 3600},
6878 },
6879
6880 {
6881 .vendor = "Intel",
6882 .name = "25F640S33T8",
6883 .bustype = BUS_SPI,
6884 .manufacture_id = INTEL_ID,
6885 .model_id = INTEL_25F640S33T8,
6886 .total_size = 8192,
6887 .page_size = 256,
6888 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6889 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6890 .tested = TEST_UNTESTED,
6891 .probe = probe_spi_rdid,
6892 .probe_timing = TIMING_ZERO,
6893 .block_erasers =
6894 {
6895 {
6896 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6897 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6898 * have no effect on the memory contents, but sets a flag in the SR.
6899 .eraseblocks = {
6900 {64 * 1024, 127}, // inaccessible
6901 {8 * 1024, 8}
6902 },
6903 .block_erase = spi_block_erase_40,
6904 }, { */
6905 .eraseblocks = { {64 * 1024, 128} },
6906 .block_erase = spi_block_erase_d8,
6907 }, {
6908 .eraseblocks = { {8 * 1024 * 1024, 1} },
6909 .block_erase = spi_block_erase_c7,
6910 }
6911 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006912 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6913 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006914 .write = spi_chip_write_256,
6915 .read = spi_chip_read, /* also fast read 0x0B */
6916 .voltage = {2700, 3600},
6917 },
6918
6919 {
6920 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006921 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006922 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006923 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006924 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006925 .total_size = 128,
6926 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006927 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006928 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006929 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006930 .block_erasers =
6931 {
6932 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006933 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006934 {8 * 1024, 1},
6935 {4 * 1024, 2},
6936 {112 * 1024, 1},
6937 },
Sean Nelson28accc22010-03-19 18:47:06 +00006938 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006939 },
6940 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006941 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006943 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006944 },
6945
6946 {
6947 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006948 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006949 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006950 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006951 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006952 .total_size = 128,
6953 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006954 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006955 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006957 .block_erasers =
6958 {
6959 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006960 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006961 {112 * 1024, 1},
6962 {4 * 1024, 2},
6963 {8 * 1024, 1},
6964 },
Sean Nelson28accc22010-03-19 18:47:06 +00006965 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006966 },
6967 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006968 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006971 },
6972
6973 {
6974 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006975 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006976 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006977 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006978 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006979 .total_size = 256,
6980 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006981 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006982 .probe = probe_82802ab,
6983 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6984 .block_erasers =
6985 {
6986 {
6987 .eraseblocks = {
6988 {128 * 1024, 1},
6989 {96 * 1024, 1},
6990 {8 * 1024, 2},
6991 {16 * 1024, 1},
6992 },
6993 .block_erase = erase_block_82802ab,
6994 },
6995 },
6996 .write = write_82802ab,
6997 .read = read_memmapped,
6998 },
6999
7000 {
7001 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007002 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007003 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007004 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007005 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007006 .total_size = 512,
7007 .page_size = 256,
7008 .tested = TEST_UNTESTED,
7009 .probe = probe_82802ab,
7010 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007011 .block_erasers =
7012 {
7013 {
7014 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007015 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007016 },
7017 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007018 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007019 .write = write_82802ab,
7020 .read = read_memmapped,
7021 },
7022
7023 {
7024 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007025 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007026 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007027 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007028 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007029 .total_size = 512,
7030 .page_size = 128 * 1024, /* maximal block size */
7031 .tested = TEST_UNTESTED,
7032 .probe = probe_82802ab,
7033 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7034 .block_erasers =
7035 {
7036 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007037 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007038 {16 * 1024, 1},
7039 {8 * 1024, 2},
7040 {96 * 1024, 1},
7041 {128 * 1024, 3},
7042 },
7043 .block_erase = erase_block_82802ab,
7044 },
7045 },
7046 .write = write_82802ab,
7047 .read = read_memmapped,
7048 },
7049
7050 {
7051 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007052 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007053 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007054 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007055 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007056 .total_size = 512,
7057 .page_size = 128 * 1024, /* maximal block size */
7058 .tested = TEST_UNTESTED,
7059 .probe = probe_82802ab,
7060 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7061 .block_erasers =
7062 {
7063 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007064 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007065 {128 * 1024, 3},
7066 {96 * 1024, 1},
7067 {8 * 1024, 2},
7068 {16 * 1024, 1},
7069 },
7070 .block_erase = erase_block_82802ab,
7071 },
7072 },
7073 .write = write_82802ab,
7074 .read = read_memmapped,
7075 },
7076
7077 {
7078 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007079 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007080 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007081 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007082 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007083 .total_size = 512,
7084 .page_size = 128 * 1024, /* maximal block size */
7085 .feature_bits = FEATURE_ADDR_SHIFTED,
7086 .tested = TEST_UNTESTED,
7087 .probe = probe_82802ab,
7088 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7089 .block_erasers =
7090 {
7091 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007092 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007093 {16 * 1024, 1},
7094 {8 * 1024, 2},
7095 {96 * 1024, 1},
7096 {128 * 1024, 3},
7097 },
7098 .block_erase = erase_block_82802ab,
7099 },
7100 },
7101 .write = write_82802ab,
7102 .read = read_memmapped,
7103 },
7104
7105 {
7106 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007107 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007108 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007109 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007110 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007111 .total_size = 512,
7112 .page_size = 128 * 1024, /* maximal block size */
7113 .feature_bits = FEATURE_ADDR_SHIFTED,
7114 .tested = TEST_UNTESTED,
7115 .probe = probe_82802ab,
7116 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7117 .block_erasers =
7118 {
7119 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007120 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007121 {128 * 1024, 3},
7122 {96 * 1024, 1},
7123 {8 * 1024, 2},
7124 {16 * 1024, 1},
7125 },
7126 .block_erase = erase_block_82802ab,
7127 },
7128 },
7129 .write = write_82802ab,
7130 .read = read_memmapped,
7131 },
7132
7133 {
7134 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007135 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007136 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007137 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007138 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007139 .total_size = 512,
7140 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007141 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007142 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007143 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007144 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007145 .block_erasers =
7146 {
7147 {
7148 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007149 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007150 },
7151 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007152 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007153 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007155 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007156 },
7157
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007158 {
7159 .vendor = "Intel",
7160 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007161 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007162 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007163 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007164 .total_size = 1024,
7165 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007166 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007167 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007168 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007169 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007170 .block_erasers =
7171 {
7172 {
7173 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007174 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007175 },
7176 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007177 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007178 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007180 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007181 },
7182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007183 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007184 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007185 .name = "IS25LP128",
7186 .bustype = BUS_SPI,
7187 .manufacture_id = ISSI_ID_SPI,
7188 .model_id = ISSI_IS25LP128,
7189 .total_size = 16384,
7190 .page_size = 256,
7191 /* OTP: 1024B total; read 0x48; write 0x42 */
7192 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7193 .tested = TEST_OK_PREW,
7194 .probe = probe_spi_rdid,
7195 .probe_timing = TIMING_ZERO,
7196 .block_erasers =
7197 {
7198 {
7199 .eraseblocks = { {4 * 1024, 4096} },
7200 .block_erase = spi_block_erase_20,
7201 }, {
7202 .eraseblocks = { {4 * 1024, 4096} },
7203 .block_erase = spi_block_erase_d7,
7204 }, {
7205 .eraseblocks = { {32 * 1024, 512} },
7206 .block_erase = spi_block_erase_52,
7207 }, {
7208 .eraseblocks = { {64 * 1024, 256} },
7209 .block_erase = spi_block_erase_d8,
7210 }, {
7211 .eraseblocks = { {16 * 1024 * 1024, 1} },
7212 .block_erase = spi_block_erase_60,
7213 }, {
7214 .eraseblocks = { {16 * 1024 * 1024, 1} },
7215 .block_erase = spi_block_erase_c7,
7216 }
7217 },
7218 .unlock = spi_disable_blockprotect,
7219 .write = spi_chip_write_256,
7220 .read = spi_chip_read,
7221 .voltage = {2300, 3600},
7222 },
7223
7224 {
7225 .vendor = "ISSI",
7226 .name = "IS25WP128",
7227 .bustype = BUS_SPI,
7228 .manufacture_id = ISSI_ID_SPI,
7229 .model_id = ISSI_IS25WP128,
7230 .total_size = 16384,
7231 .page_size = 256,
7232 /* OTP: 1024B total; read 0x48; write 0x42 */
7233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7234 .tested = TEST_OK_PREW,
7235 .probe = probe_spi_rdid,
7236 .probe_timing = TIMING_ZERO,
7237 .block_erasers =
7238 {
7239 {
7240 .eraseblocks = { {4 * 1024, 4096} },
7241 .block_erase = spi_block_erase_20,
7242 }, {
7243 .eraseblocks = { {4 * 1024, 4096} },
7244 .block_erase = spi_block_erase_d7,
7245 }, {
7246 .eraseblocks = { {32 * 1024, 512} },
7247 .block_erase = spi_block_erase_52,
7248 }, {
7249 .eraseblocks = { {64 * 1024, 256} },
7250 .block_erase = spi_block_erase_d8,
7251 }, {
7252 .eraseblocks = { {16 * 1024 * 1024, 1} },
7253 .block_erase = spi_block_erase_60,
7254 }, {
7255 .eraseblocks = { {16 * 1024 * 1024, 1} },
7256 .block_erase = spi_block_erase_c7,
7257 }
7258 },
7259 .unlock = spi_disable_blockprotect,
7260 .write = spi_chip_write_256,
7261 .read = spi_chip_read,
7262 .voltage = {1650, 1950},
7263 },
7264
7265 {
7266 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007267 .name = "IS29GL064B",
7268 .bustype = BUS_PARALLEL,
7269 .manufacture_id = ISSI_ID,
7270 .model_id = ISSI_PMC_IS29GL064B,
7271 .total_size = 8192,
7272 .page_size = 128 * 1024, /* actual page size is 16 */
7273 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7274 .tested = TEST_UNTESTED,
7275 .probe = probe_jedec_29gl,
7276 .probe_timing = TIMING_ZERO,
7277 .block_erasers =
7278 {
7279 {
7280 .eraseblocks = {
7281 {8 * 1024, 8},
7282 {64 * 1024, 127},
7283 },
7284 .block_erase = erase_sector_jedec,
7285 }, {
7286 .eraseblocks = { {8 * 1024 * 1024, 1} },
7287 .block_erase = erase_chip_block_jedec,
7288 },
7289 },
7290 .write = write_jedec_1,
7291 .read = read_memmapped,
7292 .voltage = {2700, 3600},
7293 },
7294
7295 {
7296 .vendor = "ISSI",
7297 .name = "IS29GL064T",
7298 .bustype = BUS_PARALLEL,
7299 .manufacture_id = ISSI_ID,
7300 .model_id = ISSI_PMC_IS29GL064T,
7301 .total_size = 8192,
7302 .page_size = 128 * 1024, /* actual page size is 16 */
7303 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7304 .tested = TEST_UNTESTED,
7305 .probe = probe_jedec_29gl,
7306 .probe_timing = TIMING_ZERO,
7307 .block_erasers =
7308 {
7309 {
7310 .eraseblocks = {
7311 {64 * 1024, 127},
7312 {8 * 1024, 8},
7313 },
7314 .block_erase = erase_sector_jedec,
7315 }, {
7316 .eraseblocks = { {8 * 1024 * 1024, 1} },
7317 .block_erase = erase_chip_block_jedec,
7318 },
7319 },
7320 .write = write_jedec_1,
7321 .read = read_memmapped,
7322 .voltage = {2700, 3600},
7323 },
7324
7325 {
7326 .vendor = "ISSI",
7327 .name = "IS29GL064H/L",
7328 .bustype = BUS_PARALLEL,
7329 .manufacture_id = ISSI_ID,
7330 .model_id = ISSI_PMC_IS29GL064HL,
7331 .total_size = 8192,
7332 .page_size = 128 * 1024, /* actual page size is 16 */
7333 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7334 .tested = TEST_UNTESTED,
7335 .probe = probe_jedec_29gl,
7336 .probe_timing = TIMING_ZERO,
7337 .block_erasers =
7338 {
7339 {
7340 .eraseblocks = { {64 * 1024, 128} },
7341 .block_erase = erase_sector_jedec,
7342 }, {
7343 .eraseblocks = { {8 * 1024 * 1024, 1} },
7344 .block_erase = erase_chip_block_jedec,
7345 },
7346 },
7347 .write = write_jedec_1,
7348 .read = read_memmapped,
7349 .voltage = {2700, 3600},
7350 },
7351
7352 {
7353 .vendor = "ISSI",
7354 .name = "IS29GL128H/L",
7355 .bustype = BUS_PARALLEL,
7356 .manufacture_id = ISSI_ID,
7357 .model_id = ISSI_PMC_IS29GL128HL,
7358 .total_size = 16384,
7359 .page_size = 128 * 1024, /* actual page size is 16 */
7360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7361 .tested = TEST_UNTESTED,
7362 .probe = probe_jedec_29gl,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {128 * 1024, 128} },
7368 .block_erase = erase_sector_jedec,
7369 }, {
7370 .eraseblocks = { {16 * 1024 * 1024, 1} },
7371 .block_erase = erase_chip_block_jedec,
7372 },
7373 },
7374 .write = write_jedec_1,
7375 .read = read_memmapped,
7376 .voltage = {2700, 3600},
7377 },
7378
7379 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007380 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007381 .name = "MX23L1654",
7382 .bustype = BUS_SPI,
7383 .manufacture_id = MACRONIX_ID,
7384 .model_id = MACRONIX_MX23L1654,
7385 .total_size = 2048,
7386 .page_size = 256,
7387 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7388 .probe = probe_spi_rdid,
7389 .probe_timing = TIMING_ZERO,
7390 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7391 .read = spi_chip_read, /* Fast read (0x0B) supported */
7392 .voltage = {3000, 3600},
7393 },
7394
7395 {
7396 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007397 .name = "MX23L3254",
7398 .bustype = BUS_SPI,
7399 .manufacture_id = MACRONIX_ID,
7400 .model_id = MACRONIX_MX23L3254,
7401 .total_size = 4096,
7402 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007403 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007404 .probe = probe_spi_rdid,
7405 .probe_timing = TIMING_ZERO,
7406 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7407 .read = spi_chip_read, /* Fast read (0x0B) supported */
7408 .voltage = {3000, 3600},
7409 },
7410
7411 {
7412 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007413 .name = "MX23L6454",
7414 .bustype = BUS_SPI,
7415 .manufacture_id = MACRONIX_ID,
7416 .model_id = MACRONIX_MX23L6454,
7417 .total_size = 8192,
7418 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007419 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007420 .probe = probe_spi_rdid,
7421 .probe_timing = TIMING_ZERO,
7422 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7423 .read = spi_chip_read, /* Fast read (0x0B) supported */
7424 .voltage = {3000, 3600},
7425 },
7426
7427 {
7428 .vendor = "Macronix",
7429 .name = "MX23L12854",
7430 .bustype = BUS_SPI,
7431 .manufacture_id = MACRONIX_ID,
7432 .model_id = MACRONIX_MX23L12854,
7433 .total_size = 16384,
7434 .page_size = 256,
7435 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7436 .probe = probe_spi_rdid,
7437 .probe_timing = TIMING_ZERO,
7438 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7439 .read = spi_chip_read, /* Fast read (0x0B) supported */
7440 .voltage = {3000, 3600},
7441 },
7442
7443 {
7444 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007445 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007446 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007447 .manufacture_id = MACRONIX_ID,
7448 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007449 .total_size = 64,
7450 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007451 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007452 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007453 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007454 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007455 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { {4 * 1024, 16} },
7460 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007461 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007462 .eraseblocks = { {64 * 1024, 1} },
7463 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007464 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007465 .eraseblocks = { {64 * 1024, 1} },
7466 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007467 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007468 .eraseblocks = { {64 * 1024, 1} },
7469 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007470 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007471 .eraseblocks = { {64 * 1024, 1} },
7472 .block_erase = spi_block_erase_c7,
7473 },
7474 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007475 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007476 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007477 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007478 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7479 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007480 },
7481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007482 {
7483 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007484 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007485 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007486 .manufacture_id = MACRONIX_ID,
7487 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007488 .total_size = 128,
7489 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007490 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007491 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007492 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007493 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007494 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007495 .block_erasers =
7496 {
7497 {
7498 .eraseblocks = { {4 * 1024, 32} },
7499 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007500 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007501 .eraseblocks = { {64 * 1024, 2} },
7502 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007503 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007504 .eraseblocks = { {128 * 1024, 1} },
7505 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007506 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007507 .eraseblocks = { {128 * 1024, 1} },
7508 .block_erase = spi_block_erase_c7,
7509 },
7510 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007511 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007512 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007513 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007514 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007515 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007516 },
7517
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007518 {
7519 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007520 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007521 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007522 .manufacture_id = MACRONIX_ID,
7523 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007524 .total_size = 256,
7525 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007526 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007527 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007528 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007529 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007530 .block_erasers =
7531 {
7532 {
7533 .eraseblocks = { {4 * 1024, 64} },
7534 .block_erase = spi_block_erase_20,
7535 }, {
7536 .eraseblocks = { {64 * 1024, 4} },
7537 .block_erase = spi_block_erase_52,
7538 }, {
7539 .eraseblocks = { {64 * 1024, 4} },
7540 .block_erase = spi_block_erase_d8,
7541 }, {
7542 .eraseblocks = { {256 * 1024, 1} },
7543 .block_erase = spi_block_erase_60,
7544 }, {
7545 .eraseblocks = { {256 * 1024, 1} },
7546 .block_erase = spi_block_erase_c7,
7547 },
7548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007549 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007550 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007551 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007552 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007553 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007554 },
7555
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007556 {
7557 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007558 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007559 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007560 .manufacture_id = MACRONIX_ID,
7561 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007562 .total_size = 512,
7563 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007564 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007565 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007566 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007567 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007568 .block_erasers =
7569 {
7570 {
7571 .eraseblocks = { {4 * 1024, 128} },
7572 .block_erase = spi_block_erase_20,
7573 }, {
7574 .eraseblocks = { {64 * 1024, 8} },
7575 .block_erase = spi_block_erase_52,
7576 }, {
7577 .eraseblocks = { {64 * 1024, 8} },
7578 .block_erase = spi_block_erase_d8,
7579 }, {
7580 .eraseblocks = { {512 * 1024, 1} },
7581 .block_erase = spi_block_erase_60,
7582 }, {
7583 .eraseblocks = { {512 * 1024, 1} },
7584 .block_erase = spi_block_erase_c7,
7585 },
7586 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007587 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007588 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007589 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007590 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007591 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007592 },
7593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007594 {
7595 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007596 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007597 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007598 .manufacture_id = MACRONIX_ID,
7599 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .total_size = 1024,
7601 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007602 /* MX25L8006E, MX25L8008E support SFDP */
7603 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007604 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007605 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007606 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007607 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007608 .block_erasers =
7609 {
7610 {
7611 .eraseblocks = { {4 * 1024, 256} },
7612 .block_erase = spi_block_erase_20,
7613 }, {
7614 .eraseblocks = { {64 * 1024, 16} },
7615 .block_erase = spi_block_erase_52,
7616 }, {
7617 .eraseblocks = { {64 * 1024, 16} },
7618 .block_erase = spi_block_erase_d8,
7619 }, {
7620 .eraseblocks = { {1024 * 1024, 1} },
7621 .block_erase = spi_block_erase_60,
7622 }, {
7623 .eraseblocks = { {1024 * 1024, 1} },
7624 .block_erase = spi_block_erase_c7,
7625 },
7626 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007627 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007628 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007629 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007630 .read = spi_chip_read, /* Fast read (0x0B) supported */
7631 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007632 },
7633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007634 {
7635 .vendor = "Macronix",
7636 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007637 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007638 .manufacture_id = MACRONIX_ID,
7639 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007640 .total_size = 2048,
7641 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007642 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007645 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007646 .block_erasers =
7647 {
7648 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007649 .eraseblocks = { {64 * 1024, 32} },
7650 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007651 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007652 .eraseblocks = { {64 * 1024, 32} },
7653 .block_erase = spi_block_erase_d8,
7654 }, {
7655 .eraseblocks = { {2 * 1024 * 1024, 1} },
7656 .block_erase = spi_block_erase_60,
7657 }, {
7658 .eraseblocks = { {2 * 1024 * 1024, 1} },
7659 .block_erase = spi_block_erase_c7,
7660 },
7661 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007662 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007663 .unlock = spi_disable_blockprotect,
7664 .write = spi_chip_write_256,
7665 .read = spi_chip_read, /* Fast read (0x0B) supported */
7666 .voltage = {2700, 3600},
7667 },
7668
7669 {
7670 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007671 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007672 .bustype = BUS_SPI,
7673 .manufacture_id = MACRONIX_ID,
7674 .model_id = MACRONIX_MX25L1605,
7675 .total_size = 2048,
7676 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007677 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007678 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7679 .tested = TEST_OK_PREW,
7680 .probe = probe_spi_rdid,
7681 .probe_timing = TIMING_ZERO,
7682 .block_erasers =
7683 {
7684 {
7685 .eraseblocks = { {4 * 1024, 512} },
7686 .block_erase = spi_block_erase_20,
7687 }, {
7688 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007689 .block_erase = spi_block_erase_52,
7690 }, {
7691 .eraseblocks = { {64 * 1024, 32} },
7692 .block_erase = spi_block_erase_d8,
7693 }, {
7694 .eraseblocks = { {2 * 1024 * 1024, 1} },
7695 .block_erase = spi_block_erase_60,
7696 }, {
7697 .eraseblocks = { {2 * 1024 * 1024, 1} },
7698 .block_erase = spi_block_erase_c7,
7699 },
7700 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007701 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007702 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007703 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007704 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007705 .voltage = {2700, 3600},
7706 },
7707
7708 {
7709 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007710 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007711 .bustype = BUS_SPI,
7712 .manufacture_id = MACRONIX_ID,
7713 .model_id = MACRONIX_MX25L1605,
7714 .total_size = 2048,
7715 .page_size = 256,
7716 .feature_bits = FEATURE_WRSR_WREN,
7717 .tested = TEST_OK_PREW,
7718 .probe = probe_spi_rdid,
7719 .probe_timing = TIMING_ZERO,
7720 .block_erasers =
7721 {
7722 {
7723 .eraseblocks = { {4 * 1024, 512} },
7724 .block_erase = spi_block_erase_20,
7725 }, {
7726 .eraseblocks = { {64 * 1024, 32} },
7727 .block_erase = spi_block_erase_d8,
7728 }, {
7729 .eraseblocks = { {2 * 1024 * 1024, 1} },
7730 .block_erase = spi_block_erase_60,
7731 }, {
7732 .eraseblocks = { {2 * 1024 * 1024, 1} },
7733 .block_erase = spi_block_erase_c7,
7734 },
7735 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007736 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
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), 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",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007745 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007746 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007747 .manufacture_id = MACRONIX_ID,
7748 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007749 .total_size = 2048,
7750 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007751 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007753 .tested = TEST_UNTESTED,
7754 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007755 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007756 .block_erasers =
7757 {
7758 {
7759 .eraseblocks = { {4 * 1024, 512} },
7760 .block_erase = spi_block_erase_20,
7761 }, {
7762 .eraseblocks = { {64 * 1024, 32} },
7763 .block_erase = spi_block_erase_d8,
7764 }, {
7765 .eraseblocks = { {2 * 1024 * 1024, 1} },
7766 .block_erase = spi_block_erase_60,
7767 }, {
7768 .eraseblocks = { {2 * 1024 * 1024, 1} },
7769 .block_erase = spi_block_erase_c7,
7770 }
7771 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007772 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007773 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007774 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007775 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007776 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007777 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007778
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007779 {
7780 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007781 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007782 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007783 .manufacture_id = MACRONIX_ID,
7784 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007785 .total_size = 2048,
7786 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007787 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7788 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007789 .tested = TEST_UNTESTED,
7790 .probe = probe_spi_rdid,
7791 .probe_timing = TIMING_ZERO,
7792 .block_erasers =
7793 {
7794 {
7795 .eraseblocks = { {4 * 1024, 512} },
7796 .block_erase = spi_block_erase_20,
7797 }, {
7798 .eraseblocks = { {64 * 1024, 32} },
7799 .block_erase = spi_block_erase_d8,
7800 }, {
7801 .eraseblocks = { {2 * 1024 * 1024, 1} },
7802 .block_erase = spi_block_erase_60,
7803 }, {
7804 .eraseblocks = { {2 * 1024 * 1024, 1} },
7805 .block_erase = spi_block_erase_c7,
7806 }
7807 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007808 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007809 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007810 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007811 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007812 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007813 },
7814
7815 {
7816 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007817 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007819 .manufacture_id = MACRONIX_ID,
7820 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007821 .total_size = 4096,
7822 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007823 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007824 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007825 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007826 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007827 .block_erasers =
7828 {
7829 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007830 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007831 .block_erase = spi_block_erase_20,
7832 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007833 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007834 .block_erase = spi_block_erase_d8,
7835 }, {
7836 .eraseblocks = { {4 * 1024 * 1024, 1} },
7837 .block_erase = spi_block_erase_60,
7838 }, {
7839 .eraseblocks = { {4 * 1024 * 1024, 1} },
7840 .block_erase = spi_block_erase_c7,
7841 },
7842 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007843 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007844 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007845 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007846 .read = spi_chip_read, /* Fast read (0x0B) supported */
7847 .voltage = {2700, 3600},
7848 },
7849
7850 {
7851 .vendor = "Macronix",
7852 .name = "MX25L3205D/MX25L3208D",
7853 .bustype = BUS_SPI,
7854 .manufacture_id = MACRONIX_ID,
7855 .model_id = MACRONIX_MX25L3205,
7856 .total_size = 4096,
7857 .page_size = 256,
7858 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7859 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7860 .tested = TEST_OK_PREW,
7861 .probe = probe_spi_rdid,
7862 .probe_timing = TIMING_ZERO,
7863 .block_erasers =
7864 {
7865 {
7866 .eraseblocks = { {4 * 1024, 1024} },
7867 .block_erase = spi_block_erase_20,
7868 }, {
7869 .eraseblocks = { {64 * 1024, 64} },
7870 .block_erase = spi_block_erase_d8,
7871 }, {
7872 .eraseblocks = { {4 * 1024 * 1024, 1} },
7873 .block_erase = spi_block_erase_60,
7874 }, {
7875 .eraseblocks = { {4 * 1024 * 1024, 1} },
7876 .block_erase = spi_block_erase_c7,
7877 },
7878 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007879 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007880 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007881 .write = spi_chip_write_256,
7882 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7883 .voltage = {2700, 3600},
7884 },
7885
7886 {
7887 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007888 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007889 .bustype = BUS_SPI,
7890 .manufacture_id = MACRONIX_ID,
7891 .model_id = MACRONIX_MX25L3205,
7892 .total_size = 4096,
7893 .page_size = 256,
7894 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7896 .tested = TEST_OK_PREW,
7897 .probe = probe_spi_rdid,
7898 .probe_timing = TIMING_ZERO,
7899 .block_erasers =
7900 {
7901 {
7902 .eraseblocks = { {4 * 1024, 1024} },
7903 .block_erase = spi_block_erase_20,
7904 }, {
7905 .eraseblocks = { {64 * 1024, 64} },
7906 .block_erase = spi_block_erase_d8,
7907 }, {
7908 .eraseblocks = { {64 * 1024, 64} },
7909 .block_erase = spi_block_erase_52,
7910 }, {
7911 .eraseblocks = { {4 * 1024 * 1024, 1} },
7912 .block_erase = spi_block_erase_60,
7913 }, {
7914 .eraseblocks = { {4 * 1024 * 1024, 1} },
7915 .block_erase = spi_block_erase_c7,
7916 },
7917 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007918 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007919 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007920 .write = spi_chip_write_256,
7921 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007922 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007923 },
7924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007925 {
7926 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007927 .name = "MX25L3273E",
7928 .bustype = BUS_SPI,
7929 .manufacture_id = MACRONIX_ID,
7930 .model_id = MACRONIX_MX25L3205,
7931 .total_size = 4096,
7932 .page_size = 256,
7933 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007935 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007936 .probe = probe_spi_rdid,
7937 .probe_timing = TIMING_ZERO,
7938 .block_erasers =
7939 {
7940 {
7941 .eraseblocks = { {4 * 1024, 1024} },
7942 .block_erase = spi_block_erase_20,
7943 }, {
7944 .eraseblocks = { {32 * 1024, 128} },
7945 .block_erase = spi_block_erase_52,
7946 }, {
7947 .eraseblocks = { {64 * 1024, 64} },
7948 .block_erase = spi_block_erase_d8,
7949 }, {
7950 .eraseblocks = { {4 * 1024 * 1024, 1} },
7951 .block_erase = spi_block_erase_60,
7952 }, {
7953 .eraseblocks = { {4 * 1024 * 1024, 1} },
7954 .block_erase = spi_block_erase_c7,
7955 },
7956 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007957 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007958 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007959 .write = spi_chip_write_256,
7960 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7961 .voltage = {2700, 3600},
7962 },
7963
7964 {
7965 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007966 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007967 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007968 .manufacture_id = MACRONIX_ID,
7969 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007970 .total_size = 4096,
7971 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007972 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007974 .tested = TEST_UNTESTED,
7975 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007976 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007977 .block_erasers =
7978 {
7979 {
7980 .eraseblocks = { {4 * 1024, 1024} },
7981 .block_erase = spi_block_erase_20,
7982 }, {
7983 .eraseblocks = { {64 * 1024, 64} },
7984 .block_erase = spi_block_erase_d8,
7985 }, {
7986 .eraseblocks = { {4 * 1024 * 1024, 1} },
7987 .block_erase = spi_block_erase_60,
7988 }, {
7989 .eraseblocks = { {4 * 1024 * 1024, 1} },
7990 .block_erase = spi_block_erase_c7,
7991 }
7992 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007993 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007994 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007995 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007996 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007997 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007998 },
7999
8000 {
8001 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008002 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008003 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008004 .manufacture_id = MACRONIX_ID,
8005 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008006 .total_size = 8192,
8007 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008008 /* Has an additional 512B EEPROM sector */
8009 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008012 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008013 .block_erasers =
8014 {
8015 {
8016 .eraseblocks = { {64 * 1024, 128} },
8017 .block_erase = spi_block_erase_20,
8018 }, {
8019 .eraseblocks = { {64 * 1024, 128} },
8020 .block_erase = spi_block_erase_d8,
8021 }, {
8022 .eraseblocks = { {8 * 1024 * 1024, 1} },
8023 .block_erase = spi_block_erase_60,
8024 }, {
8025 .eraseblocks = { {8 * 1024 * 1024, 1} },
8026 .block_erase = spi_block_erase_c7,
8027 }
8028 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008029 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008030 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008031 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008032 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008033 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008034 },
8035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008036 {
8037 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008038 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008039 .bustype = BUS_SPI,
8040 .manufacture_id = MACRONIX_ID,
8041 .model_id = MACRONIX_MX25L6405,
8042 .total_size = 8192,
8043 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008044 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008045 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8046 .tested = TEST_OK_PREW,
8047 .probe = probe_spi_rdid,
8048 .probe_timing = TIMING_ZERO,
8049 .block_erasers =
8050 {
8051 {
8052 .eraseblocks = { {4 * 1024, 2048} },
8053 .block_erase = spi_block_erase_20,
8054 }, {
8055 .eraseblocks = { {64 * 1024, 128} },
8056 .block_erase = spi_block_erase_d8,
8057 }, {
8058 .eraseblocks = { {8 * 1024 * 1024, 1} },
8059 .block_erase = spi_block_erase_60,
8060 }, {
8061 .eraseblocks = { {8 * 1024 * 1024, 1} },
8062 .block_erase = spi_block_erase_c7,
8063 }
8064 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008065 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008066 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008067 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008068 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008069 .voltage = {2700, 3600},
8070 },
8071
8072 {
8073 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008074 .name = "MX25L6406E/MX25L6408E",
8075 .bustype = BUS_SPI,
8076 .manufacture_id = MACRONIX_ID,
8077 .model_id = MACRONIX_MX25L6405,
8078 .total_size = 8192,
8079 .page_size = 256,
8080 /* MX25L6406E supports SFDP */
8081 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8083 .tested = TEST_OK_PREW,
8084 .probe = probe_spi_rdid,
8085 .probe_timing = TIMING_ZERO,
8086 .block_erasers =
8087 {
8088 {
8089 .eraseblocks = { {4 * 1024, 2048} },
8090 .block_erase = spi_block_erase_20,
8091 }, {
8092 .eraseblocks = { {64 * 1024, 128} },
8093 .block_erase = spi_block_erase_52,
8094 }, {
8095 .eraseblocks = { {64 * 1024, 128} },
8096 .block_erase = spi_block_erase_d8,
8097 }, {
8098 .eraseblocks = { {8 * 1024 * 1024, 1} },
8099 .block_erase = spi_block_erase_60,
8100 }, {
8101 .eraseblocks = { {8 * 1024 * 1024, 1} },
8102 .block_erase = spi_block_erase_c7,
8103 }
8104 },
8105 .printlock = spi_prettyprint_status_register_bp3_srwd,
8106 .unlock = spi_disable_blockprotect_bp3_srwd,
8107 .write = spi_chip_write_256,
8108 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8109 .voltage = {2700, 3600},
8110 },
8111
8112 {
8113 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008114 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008115 .bustype = BUS_SPI,
8116 .manufacture_id = MACRONIX_ID,
8117 .model_id = MACRONIX_MX25L6405,
8118 .total_size = 8192,
8119 .page_size = 256,
8120 /* supports SFDP */
8121 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8123 .tested = TEST_OK_PREW,
8124 .probe = probe_spi_rdid,
8125 .probe_timing = TIMING_ZERO,
8126 .block_erasers =
8127 {
8128 {
8129 .eraseblocks = { {4 * 1024, 2048} },
8130 .block_erase = spi_block_erase_20,
8131 }, {
8132 .eraseblocks = { {32 * 1024, 256} },
8133 .block_erase = spi_block_erase_52,
8134 }, {
8135 .eraseblocks = { {64 * 1024, 128} },
8136 .block_erase = spi_block_erase_d8,
8137 }, {
8138 .eraseblocks = { {8 * 1024 * 1024, 1} },
8139 .block_erase = spi_block_erase_60,
8140 }, {
8141 .eraseblocks = { {8 * 1024 * 1024, 1} },
8142 .block_erase = spi_block_erase_c7,
8143 }
8144 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008145 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008146 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008147 .write = spi_chip_write_256,
8148 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8149 .voltage = {2700, 3600},
8150 },
8151
8152 {
8153 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008154 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008155 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008156 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008157 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008158 .total_size = 16384,
8159 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008160 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008162 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008163 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008164 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008165 .block_erasers =
8166 {
8167 {
8168 .eraseblocks = { {4 * 1024, 4096} },
8169 .block_erase = spi_block_erase_20,
8170 }, {
8171 .eraseblocks = { {64 * 1024, 256} },
8172 .block_erase = spi_block_erase_d8,
8173 }, {
8174 .eraseblocks = { {16 * 1024 * 1024, 1} },
8175 .block_erase = spi_block_erase_60,
8176 }, {
8177 .eraseblocks = { {16 * 1024 * 1024, 1} },
8178 .block_erase = spi_block_erase_c7,
8179 }
8180 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008181 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008182 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008183 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008184 .read = spi_chip_read, /* Fast read (0x0B) supported */
8185 .voltage = {2700, 3600},
8186 },
8187
8188 {
8189 .vendor = "Macronix",
8190 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8191 .bustype = BUS_SPI,
8192 .manufacture_id = MACRONIX_ID,
8193 .model_id = MACRONIX_MX25L12805D,
8194 .total_size = 16384,
8195 .page_size = 256,
8196 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8198 .tested = TEST_OK_PREW,
8199 .probe = probe_spi_rdid,
8200 .probe_timing = TIMING_ZERO,
8201 .block_erasers =
8202 {
8203 {
8204 .eraseblocks = { {4 * 1024, 4096} },
8205 .block_erase = spi_block_erase_20,
8206 }, {
8207 .eraseblocks = { {32 * 1024, 512} },
8208 .block_erase = spi_block_erase_52,
8209 }, {
8210 .eraseblocks = { {64 * 1024, 256} },
8211 .block_erase = spi_block_erase_d8,
8212 }, {
8213 .eraseblocks = { {16 * 1024 * 1024, 1} },
8214 .block_erase = spi_block_erase_60,
8215 }, {
8216 .eraseblocks = { {16 * 1024 * 1024, 1} },
8217 .block_erase = spi_block_erase_c7,
8218 }
8219 },
8220 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8221 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8222 .unlock = spi_disable_blockprotect_bp3_srwd,
8223 .write = spi_chip_write_256,
8224 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008225 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008226 },
8227
8228 {
8229 .vendor = "Macronix",
Nico Huberaac81422017-11-10 22:54:13 +01008230 .name = "MX25L25635F",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008231 .bustype = BUS_SPI,
8232 .manufacture_id = MACRONIX_ID,
8233 .model_id = MACRONIX_MX25L25635F,
8234 .total_size = 32768,
8235 .page_size = 256,
8236 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8238 .tested = TEST_UNTESTED,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008239 .probe = probe_spi_rdid,
8240 .probe_timing = TIMING_ZERO,
8241 .block_erasers =
8242 {
8243 {
8244 .eraseblocks = { {4 * 1024, 8192} },
Nico Huberaac81422017-11-10 22:54:13 +01008245 .block_erase = spi_block_erase_21,
8246 }, {
8247 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008248 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008249 }, {
8250 .eraseblocks = { {32 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008251 .block_erase = spi_block_erase_5c,
8252 }, {
8253 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008254 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008255 }, {
8256 .eraseblocks = { {64 * 1024, 512} },
Nico Huberaac81422017-11-10 22:54:13 +01008257 .block_erase = spi_block_erase_dc,
8258 }, {
8259 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008260 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008261 }, {
8262 .eraseblocks = { {32 * 1024 * 1024, 1} },
8263 .block_erase = spi_block_erase_60,
8264 }, {
8265 .eraseblocks = { {32 * 1024 * 1024, 1} },
8266 .block_erase = spi_block_erase_c7,
8267 }
8268 },
8269 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8270 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8271 .unlock = spi_disable_blockprotect_bp3_srwd,
8272 .write = spi_chip_write_256,
8273 .read = spi_chip_read, /* Fast read (0x0B) supported */
8274 .voltage = {2700, 3600},
8275 },
8276
8277 {
8278 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008279 .name = "MX66L51235F",
8280 .bustype = BUS_SPI,
8281 .manufacture_id = MACRONIX_ID,
8282 .model_id = MACRONIX_MX66L51235F,
8283 .total_size = 65536,
8284 .page_size = 256,
8285 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008286 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8287 .tested = TEST_UNTESTED,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008288 .probe = probe_spi_rdid,
8289 .probe_timing = TIMING_ZERO,
8290 .block_erasers =
8291 {
8292 {
8293 .eraseblocks = { {4 * 1024, 16384} },
Nico Huberaac81422017-11-10 22:54:13 +01008294 .block_erase = spi_block_erase_21,
8295 }, {
8296 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008297 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008298 }, {
8299 .eraseblocks = { {32 * 1024, 2048} },
Nico Huberaac81422017-11-10 22:54:13 +01008300 .block_erase = spi_block_erase_5c,
8301 }, {
8302 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008303 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008304 }, {
8305 .eraseblocks = { {64 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008306 .block_erase = spi_block_erase_dc,
8307 }, {
8308 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008309 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008310 }, {
8311 .eraseblocks = { {64 * 1024 * 1024, 1} },
8312 .block_erase = spi_block_erase_60,
8313 }, {
8314 .eraseblocks = { {64 * 1024 * 1024, 1} },
8315 .block_erase = spi_block_erase_c7,
8316 }
8317 },
8318 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8319 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8320 .unlock = spi_disable_blockprotect_bp3_srwd,
8321 .write = spi_chip_write_256,
8322 .read = spi_chip_read, /* Fast read (0x0B) supported */
8323 .voltage = {2700, 3600},
8324 },
8325
8326 {
8327 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008328 .name = "MX25U1635E",
8329 .bustype = BUS_SPI,
8330 .manufacture_id = MACRONIX_ID,
8331 .model_id = MACRONIX_MX25U1635E,
8332 .total_size = 2048,
8333 .page_size = 256,
8334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8335 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008337 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008338 .probe = probe_spi_rdid,
8339 .probe_timing = TIMING_ZERO,
8340 .block_erasers =
8341 {
8342 {
8343 .eraseblocks = { {4 * 1024, 512} },
8344 .block_erase = spi_block_erase_20,
8345 }, {
8346 .eraseblocks = { {32 * 1024, 64} },
8347 .block_erase = spi_block_erase_52,
8348 }, {
8349 .eraseblocks = { {64 * 1024, 32} },
8350 .block_erase = spi_block_erase_d8,
8351 }, {
8352 .eraseblocks = { {2 * 1024 * 1024, 1} },
8353 .block_erase = spi_block_erase_60,
8354 }, {
8355 .eraseblocks = { {2 * 1024 * 1024, 1} },
8356 .block_erase = spi_block_erase_c7,
8357 }
8358 },
8359 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008360 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008361 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008362 .write = spi_chip_write_256,
8363 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8364 .voltage = {1650, 2000},
8365 },
8366
8367 {
8368 .vendor = "Macronix",
8369 .name = "MX25U3235E/F",
8370 .bustype = BUS_SPI,
8371 .manufacture_id = MACRONIX_ID,
8372 .model_id = MACRONIX_MX25U3235E,
8373 .total_size = 4096,
8374 .page_size = 256,
8375 /* F model supports SFDP */
8376 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8377 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8378 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8379 .tested = TEST_OK_PREW,
8380 .probe = probe_spi_rdid,
8381 .probe_timing = TIMING_ZERO,
8382 .block_erasers =
8383 {
8384 {
8385 .eraseblocks = { {4 * 1024, 1024} },
8386 .block_erase = spi_block_erase_20,
8387 }, {
8388 .eraseblocks = { {32 * 1024, 128} },
8389 .block_erase = spi_block_erase_52,
8390 }, {
8391 .eraseblocks = { {64 * 1024, 64} },
8392 .block_erase = spi_block_erase_d8,
8393 }, {
8394 .eraseblocks = { {4 * 1024 * 1024, 1} },
8395 .block_erase = spi_block_erase_60,
8396 }, {
8397 .eraseblocks = { {4 * 1024 * 1024, 1} },
8398 .block_erase = spi_block_erase_c7,
8399 }
8400 },
8401 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008403 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008404 .write = spi_chip_write_256,
8405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8406 .voltage = {1650, 2000},
8407 },
8408
8409 {
8410 .vendor = "Macronix",
8411 .name = "MX25U6435E/F",
8412 .bustype = BUS_SPI,
8413 .manufacture_id = MACRONIX_ID,
8414 .model_id = MACRONIX_MX25U6435E,
8415 .total_size = 8192,
8416 .page_size = 256,
8417 /* F model supports SFDP */
8418 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8419 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008421 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008422 .probe = probe_spi_rdid,
8423 .probe_timing = TIMING_ZERO,
8424 .block_erasers =
8425 {
8426 {
8427 .eraseblocks = { {4 * 1024, 2048} },
8428 .block_erase = spi_block_erase_20,
8429 }, {
8430 .eraseblocks = { {32 * 1024, 256} },
8431 .block_erase = spi_block_erase_52,
8432 }, {
8433 .eraseblocks = { {64 * 1024, 128} },
8434 .block_erase = spi_block_erase_d8,
8435 }, {
8436 .eraseblocks = { {8 * 1024 * 1024, 1} },
8437 .block_erase = spi_block_erase_60,
8438 }, {
8439 .eraseblocks = { {8 * 1024 * 1024, 1} },
8440 .block_erase = spi_block_erase_c7,
8441 }
8442 },
8443 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008444 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008445 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008446 .write = spi_chip_write_256,
8447 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8448 .voltage = {1650, 2000},
8449 },
8450
8451 {
8452 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008453 .name = "MX25U12835F",
8454 .bustype = BUS_SPI,
8455 .manufacture_id = MACRONIX_ID,
8456 .model_id = MACRONIX_MX25U12835E,
8457 .total_size = 16384,
8458 .page_size = 256,
8459 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8461 .tested = TEST_UNTESTED,
8462 .probe = probe_spi_rdid,
8463 .probe_timing = TIMING_ZERO,
8464 .block_erasers =
8465 {
8466 {
8467 .eraseblocks = { {4 * 1024, 4096} },
8468 .block_erase = spi_block_erase_20,
8469 }, {
8470 .eraseblocks = { {32 * 1024, 512} },
8471 .block_erase = spi_block_erase_52,
8472 }, {
8473 .eraseblocks = { {64 * 1024, 256} },
8474 .block_erase = spi_block_erase_d8,
8475 }, {
8476 .eraseblocks = { {16 * 1024 * 1024, 1} },
8477 .block_erase = spi_block_erase_60,
8478 }, {
8479 .eraseblocks = { {16 * 1024 * 1024, 1} },
8480 .block_erase = spi_block_erase_c7,
8481 }
8482 },
8483 /* TODO: security register */
8484 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8485 .unlock = spi_disable_blockprotect_bp3_srwd,
8486 .write = spi_chip_write_256, /* Multi I/O supported */
8487 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8488 .voltage = {1650, 2000},
8489 },
8490
8491 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008492 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008493 .name = "MX25L6495F",
8494 .bustype = BUS_SPI,
8495 .manufacture_id = MACRONIX_ID,
8496 .model_id = MACRONIX_MX25L6495F,
8497 .total_size = 8192,
8498 .page_size = 256,
8499 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8500 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8501 .tested = TEST_OK_PREW,
8502 .probe = probe_spi_rdid,
8503 .probe_timing = TIMING_ZERO,
8504 .block_erasers =
8505 {
8506 {
8507 .eraseblocks = { {4 * 1024, 2048} },
8508 .block_erase = spi_block_erase_20,
8509 }, {
8510 .eraseblocks = { {64 * 1024, 128} },
8511 .block_erase = spi_block_erase_d8,
8512 }, {
8513 .eraseblocks = { {32 * 1024, 256} },
8514 .block_erase = spi_block_erase_52,
8515 }, {
8516 .eraseblocks = { {8 * 1024 * 1024, 1} },
8517 .block_erase = spi_block_erase_60,
8518 }, {
8519 .eraseblocks = { {8 * 1024 * 1024, 1} },
8520 .block_erase = spi_block_erase_c7,
8521 }
8522 },
8523 .unlock = spi_disable_blockprotect,
8524 .write = spi_chip_write_256,
8525 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8526 .voltage = {2700, 3600},
8527 },
8528
8529 {
Martin Roth440057a2014-07-13 00:05:07 +00008530 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008531 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008532 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008533 .manufacture_id = MACRONIX_ID,
8534 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008535 .total_size = 128,
8536 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008537 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8538 .tested = TEST_UNTESTED,
8539 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008540 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008541 .block_erasers =
8542 {
8543 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008544 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008545 {8 * 1024, 1},
8546 {4 * 1024, 2},
8547 {8 * 1024, 2},
8548 {32 * 1024, 1},
8549 {64 * 1024, 1},
8550 },
Sean Nelson35727f72010-01-28 23:55:12 +00008551 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008552 }, {
8553 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008554 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008555 }
8556 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008557 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008559 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008560 },
8561
8562 {
8563 .vendor = "Macronix",
8564 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008565 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008566 .manufacture_id = MACRONIX_ID,
8567 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008568 .total_size = 128,
8569 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008570 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008571 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008572 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008574 .block_erasers =
8575 {
8576 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008577 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008578 {64 * 1024, 1},
8579 {32 * 1024, 1},
8580 {8 * 1024, 2},
8581 {4 * 1024, 2},
8582 {8 * 1024, 1},
8583 },
Sean Nelson35727f72010-01-28 23:55:12 +00008584 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008585 }, {
8586 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008587 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008588 }
8589 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008590 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008592 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008593 },
8594
8595 {
8596 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008597 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008598 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008599 .manufacture_id = MACRONIX_ID,
8600 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008601 .total_size = 256,
8602 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008603 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008604 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008605 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008606 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008607 .block_erasers =
8608 {
8609 {
8610 .eraseblocks = {
8611 {16 * 1024, 1},
8612 {8 * 1024, 2},
8613 {32 * 1024, 1},
8614 {64 * 1024, 3},
8615 },
Sean Nelson35727f72010-01-28 23:55:12 +00008616 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008617 }, {
8618 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008619 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008620 },
8621 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008622 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008623 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008624 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008625 },
8626
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008627 {
8628 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008629 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008630 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008631 .manufacture_id = MACRONIX_ID,
8632 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .total_size = 256,
8634 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008635 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008636 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008637 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008638 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008639 .block_erasers =
8640 {
8641 {
8642 .eraseblocks = {
8643 {64 * 1024, 3},
8644 {32 * 1024, 1},
8645 {8 * 1024, 2},
8646 {16 * 1024, 1},
8647 },
Sean Nelson35727f72010-01-28 23:55:12 +00008648 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008649 }, {
8650 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008651 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008652 },
8653 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008654 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008656 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008657 },
8658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 {
8660 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008661 .name = "MX29F022(N)B",
8662 .bustype = BUS_PARALLEL,
8663 .manufacture_id = MACRONIX_ID,
8664 .model_id = MACRONIX_MX29F022B,
8665 .total_size = 256,
8666 .page_size = 0, /* unused */
8667 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8668 .tested = TEST_UNTESTED,
8669 .probe = probe_jedec,
8670 .probe_timing = TIMING_ZERO,
8671 .block_erasers =
8672 {
8673 {
8674 .eraseblocks = {
8675 {16 * 1024, 1},
8676 {8 * 1024, 2},
8677 {32 * 1024, 1},
8678 {64 * 1024, 3},
8679 },
8680 .block_erase = erase_sector_jedec,
8681 }, {
8682 .eraseblocks = { {256 * 1024, 1} },
8683 .block_erase = erase_chip_block_jedec,
8684 }
8685 },
8686 .write = write_jedec_1,
8687 .read = read_memmapped,
8688 .voltage = {4500, 5500},
8689 },
8690
8691 {
8692 .vendor = "Macronix",
8693 .name = "MX29F022(N)T",
8694 .bustype = BUS_PARALLEL,
8695 .manufacture_id = MACRONIX_ID,
8696 .model_id = MACRONIX_MX29F022T,
8697 .total_size = 256,
8698 .page_size = 0, /* unused */
8699 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8700 .tested = TEST_OK_PREW,
8701 .probe = probe_jedec,
8702 .probe_timing = TIMING_ZERO,
8703 .block_erasers =
8704 {
8705 {
8706 .eraseblocks = {
8707 {64 * 1024, 3},
8708 {32 * 1024, 1},
8709 {8 * 1024, 2},
8710 {16 * 1024, 1},
8711 },
8712 .block_erase = erase_sector_jedec,
8713 }, {
8714 .eraseblocks = { {256 * 1024, 1} },
8715 .block_erase = erase_chip_block_jedec,
8716 }
8717 },
8718 .write = write_jedec_1,
8719 .read = read_memmapped,
8720 .voltage = {4500, 5500},
8721 },
8722
8723 {
8724 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008725 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008726 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008727 .manufacture_id = MACRONIX_ID,
8728 .model_id = MACRONIX_MX29F040,
8729 .total_size = 512,
8730 .page_size = 64 * 1024,
8731 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8732 .tested = TEST_UNTESTED,
8733 .probe = probe_jedec,
8734 .probe_timing = TIMING_ZERO,
8735 .block_erasers =
8736 {
8737 {
8738 .eraseblocks = { {64 * 1024, 8} },
8739 .block_erase = erase_sector_jedec,
8740 }, {
8741 .eraseblocks = { {512 * 1024, 1} },
8742 .block_erase = erase_chip_block_jedec,
8743 },
8744 },
8745 .write = write_jedec_1,
8746 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008747 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008748 },
8749
8750 {
8751 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008752 .name = "MX29GL320EB",
8753 .bustype = BUS_PARALLEL,
8754 .manufacture_id = MACRONIX_ID,
8755 .model_id = MACRONIX_MX29GL320EB,
8756 .total_size = 4096,
8757 .page_size = 128 * 1024, /* actual page size is 16 */
8758 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8759 .tested = TEST_UNTESTED,
8760 .probe = probe_jedec_29gl,
8761 .probe_timing = TIMING_ZERO,
8762 .block_erasers =
8763 {
8764 {
8765 .eraseblocks = {
8766 {8 * 1024, 8},
8767 {64 * 1024, 63},
8768 },
8769 .block_erase = erase_sector_jedec,
8770 }, {
8771 .eraseblocks = { {4 * 1024 * 1024, 1} },
8772 .block_erase = erase_chip_block_jedec,
8773 },
8774 },
8775 .write = write_jedec_1,
8776 .read = read_memmapped,
8777 .voltage = {2700, 3600},
8778 },
8779
8780 {
8781 .vendor = "Macronix",
8782 .name = "MX29GL320ET",
8783 .bustype = BUS_PARALLEL,
8784 .manufacture_id = MACRONIX_ID,
8785 .model_id = MACRONIX_MX29GL320ET,
8786 .total_size = 4096,
8787 .page_size = 128 * 1024, /* actual page size is 16 */
8788 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8789 .tested = TEST_UNTESTED,
8790 .probe = probe_jedec_29gl,
8791 .probe_timing = TIMING_ZERO,
8792 .block_erasers =
8793 {
8794 {
8795 .eraseblocks = {
8796 {64 * 1024, 63},
8797 {8 * 1024, 8},
8798 },
8799 .block_erase = erase_sector_jedec,
8800 }, {
8801 .eraseblocks = { {4 * 1024 * 1024, 1} },
8802 .block_erase = erase_chip_block_jedec,
8803 },
8804 },
8805 .write = write_jedec_1,
8806 .read = read_memmapped,
8807 .voltage = {2700, 3600},
8808 },
8809
8810 {
8811 .vendor = "Macronix",
8812 .name = "MX29GL320EH/L",
8813 .bustype = BUS_PARALLEL,
8814 .manufacture_id = MACRONIX_ID,
8815 .model_id = MACRONIX_MX29GL320EHL,
8816 .total_size = 4096,
8817 .page_size = 128 * 1024, /* actual page size is 16 */
8818 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8819 .tested = TEST_UNTESTED,
8820 .probe = probe_jedec_29gl,
8821 .probe_timing = TIMING_ZERO,
8822 .block_erasers =
8823 {
8824 {
8825 .eraseblocks = { {64 * 1024, 64} },
8826 .block_erase = erase_sector_jedec,
8827 }, {
8828 .eraseblocks = { {4 * 1024 * 1024, 1} },
8829 .block_erase = erase_chip_block_jedec,
8830 },
8831 },
8832 .write = write_jedec_1,
8833 .read = read_memmapped,
8834 .voltage = {2700, 3600},
8835 },
8836
8837 {
8838 .vendor = "Macronix",
8839 .name = "MX29GL640EB",
8840 .bustype = BUS_PARALLEL,
8841 .manufacture_id = MACRONIX_ID,
8842 .model_id = MACRONIX_MX29GL640EB,
8843 .total_size = 8192,
8844 .page_size = 128 * 1024, /* actual page size is 16 */
8845 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8846 .tested = TEST_UNTESTED,
8847 .probe = probe_jedec_29gl,
8848 .probe_timing = TIMING_ZERO,
8849 .block_erasers =
8850 {
8851 {
8852 .eraseblocks = {
8853 {8 * 1024, 8},
8854 {64 * 1024, 127},
8855 },
8856 .block_erase = erase_sector_jedec,
8857 }, {
8858 .eraseblocks = { {8 * 1024 * 1024, 1} },
8859 .block_erase = erase_chip_block_jedec,
8860 },
8861 },
8862 .write = write_jedec_1,
8863 .read = read_memmapped,
8864 .voltage = {2700, 3600},
8865 },
8866
8867 {
8868 .vendor = "Macronix",
8869 .name = "MX29GL640ET",
8870 .bustype = BUS_PARALLEL,
8871 .manufacture_id = MACRONIX_ID,
8872 .model_id = MACRONIX_MX29GL640ET,
8873 .total_size = 8192,
8874 .page_size = 128 * 1024, /* actual page size is 16 */
8875 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8876 .tested = TEST_UNTESTED,
8877 .probe = probe_jedec_29gl,
8878 .probe_timing = TIMING_ZERO,
8879 .block_erasers =
8880 {
8881 {
8882 .eraseblocks = {
8883 {64 * 1024, 127},
8884 {8 * 1024, 8},
8885 },
8886 .block_erase = erase_sector_jedec,
8887 }, {
8888 .eraseblocks = { {8 * 1024 * 1024, 1} },
8889 .block_erase = erase_chip_block_jedec,
8890 },
8891 },
8892 .write = write_jedec_1,
8893 .read = read_memmapped,
8894 .voltage = {2700, 3600},
8895 },
8896
8897 {
8898 .vendor = "Macronix",
8899 .name = "MX29GL640EH/L",
8900 .bustype = BUS_PARALLEL,
8901 .manufacture_id = MACRONIX_ID,
8902 .model_id = MACRONIX_MX29GL640EHL,
8903 .total_size = 8192,
8904 .page_size = 128 * 1024, /* actual page size is 16 */
8905 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8906 .tested = TEST_UNTESTED,
8907 .probe = probe_jedec_29gl,
8908 .probe_timing = TIMING_ZERO,
8909 .block_erasers =
8910 {
8911 {
8912 .eraseblocks = { {64 * 1024, 128} },
8913 .block_erase = erase_sector_jedec,
8914 }, {
8915 .eraseblocks = { {8 * 1024 * 1024, 1} },
8916 .block_erase = erase_chip_block_jedec,
8917 },
8918 },
8919 .write = write_jedec_1,
8920 .read = read_memmapped,
8921 .voltage = {2700, 3600},
8922 },
8923
8924 {
8925 .vendor = "Macronix",
8926 .name = "MX29GL128F",
8927 .bustype = BUS_PARALLEL,
8928 .manufacture_id = MACRONIX_ID,
8929 .model_id = MACRONIX_MX29GL128F,
8930 .total_size = 16384,
8931 .page_size = 128 * 1024, /* actual page size is 16 */
8932 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8933 .tested = TEST_UNTESTED,
8934 .probe = probe_jedec_29gl,
8935 .probe_timing = TIMING_ZERO,
8936 .block_erasers =
8937 {
8938 {
8939 .eraseblocks = { {128 * 1024, 128} },
8940 .block_erase = erase_sector_jedec,
8941 }, {
8942 .eraseblocks = { {16 * 1024 * 1024, 1} },
8943 .block_erase = erase_chip_block_jedec,
8944 },
8945 },
8946 .write = write_jedec_1,
8947 .read = read_memmapped,
8948 .voltage = {2700, 3600},
8949 },
8950
8951 {
8952 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008953 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008954 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008955 .manufacture_id = MACRONIX_ID,
8956 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008957 .total_size = 512,
8958 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008959 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8960 .tested = TEST_UNTESTED,
8961 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008962 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008963 .block_erasers =
8964 {
8965 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008966 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008967 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008968 }, {
8969 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008970 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008971 },
8972 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008973 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008975 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008976 },
8977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008978 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008979 .vendor = "Micron/Numonyx/ST",
8980 .name = "M25P05-A",
8981 .bustype = BUS_SPI,
8982 .manufacture_id = ST_ID,
8983 .model_id = ST_M25P05A,
8984 .total_size = 64,
8985 .page_size = 256,
8986 .feature_bits = FEATURE_WRSR_WREN,
8987 .tested = TEST_OK_PREW,
8988 .probe = probe_spi_rdid,
8989 .probe_timing = TIMING_ZERO,
8990 .block_erasers =
8991 {
8992 {
8993 .eraseblocks = { {32 * 1024, 2} },
8994 .block_erase = spi_block_erase_d8,
8995 }, {
8996 .eraseblocks = { {64 * 1024, 1} },
8997 .block_erase = spi_block_erase_c7,
8998 }
8999 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009000 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009001 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009002 .write = spi_chip_write_256,
9003 .read = spi_chip_read,
9004 .voltage = {2700, 3600},
9005 },
9006
9007 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9008 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9009 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9010 * only is successful if RDID does not work.
9011 */
9012 {
9013 .vendor = "Micron/Numonyx/ST",
9014 .name = "M25P05",
9015 .bustype = BUS_SPI,
9016 .manufacture_id = 0, /* Not used. */
9017 .model_id = ST_M25P05_RES,
9018 .total_size = 64,
9019 .page_size = 256,
9020 .feature_bits = FEATURE_WRSR_WREN,
9021 .tested = TEST_UNTESTED,
9022 .probe = probe_spi_res1,
9023 .probe_timing = TIMING_ZERO,
9024 .block_erasers =
9025 {
9026 {
9027 .eraseblocks = { {32 * 1024, 2} },
9028 .block_erase = spi_block_erase_d8,
9029 }, {
9030 .eraseblocks = { {64 * 1024, 1} },
9031 .block_erase = spi_block_erase_c7,
9032 }
9033 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009034 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009035 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009036 .write = spi_chip_write_1, /* 128 */
9037 .read = spi_chip_read,
9038 .voltage = {2700, 3600},
9039 },
9040
9041 {
9042 .vendor = "Micron/Numonyx/ST",
9043 .name = "M25P10-A",
9044 .bustype = BUS_SPI,
9045 .manufacture_id = ST_ID,
9046 .model_id = ST_M25P10A,
9047 .total_size = 128,
9048 .page_size = 256,
9049 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009050 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009051 .probe = probe_spi_rdid,
9052 .probe_timing = TIMING_ZERO,
9053 .block_erasers =
9054 {
9055 {
9056 .eraseblocks = { {32 * 1024, 4} },
9057 .block_erase = spi_block_erase_d8,
9058 }, {
9059 .eraseblocks = { {128 * 1024, 1} },
9060 .block_erase = spi_block_erase_c7,
9061 }
9062 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009063 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009064 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009065 .write = spi_chip_write_256,
9066 .read = spi_chip_read,
9067 .voltage = {2700, 3600},
9068 },
9069
9070 /* The ST M25P10 has the same problem as the M25P05. */
9071 {
9072 .vendor = "Micron/Numonyx/ST",
9073 .name = "M25P10",
9074 .bustype = BUS_SPI,
9075 .manufacture_id = 0, /* Not used. */
9076 .model_id = ST_M25P10_RES,
9077 .total_size = 128,
9078 .page_size = 256,
9079 .feature_bits = FEATURE_WRSR_WREN,
9080 .tested = TEST_UNTESTED,
9081 .probe = probe_spi_res1,
9082 .probe_timing = TIMING_ZERO,
9083 .block_erasers =
9084 {
9085 {
9086 .eraseblocks = { {32 * 1024, 4} },
9087 .block_erase = spi_block_erase_d8,
9088 }, {
9089 .eraseblocks = { {128 * 1024, 1} },
9090 .block_erase = spi_block_erase_c7,
9091 }
9092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009093 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009094 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009095 .write = spi_chip_write_1, /* 128 */
9096 .read = spi_chip_read,
9097 .voltage = {2700, 3600},
9098 },
9099
9100 {
9101 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9102 .name = "M25P20",
9103 .bustype = BUS_SPI,
9104 .manufacture_id = ST_ID,
9105 .model_id = ST_M25P20,
9106 .total_size = 256,
9107 .page_size = 256,
9108 .feature_bits = FEATURE_WRSR_WREN,
9109 .tested = TEST_UNTESTED,
9110 .probe = probe_spi_rdid,
9111 .probe_timing = TIMING_ZERO,
9112 .block_erasers =
9113 {
9114 {
9115 .eraseblocks = { {64 * 1024, 4} },
9116 .block_erase = spi_block_erase_d8,
9117 }, {
9118 .eraseblocks = { {256 * 1024, 1} },
9119 .block_erase = spi_block_erase_c7,
9120 }
9121 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009122 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009123 .unlock = spi_disable_blockprotect,
9124 .write = spi_chip_write_256,
9125 .read = spi_chip_read, /* Fast read (0x0B) supported */
9126 .voltage = {2700, 3600},
9127 },
9128
9129 {
9130 .vendor = "Micron/Numonyx/ST",
9131 .name = "M25P20-old",
9132 .bustype = BUS_SPI,
9133 .manufacture_id = 0, /* Not used. */
9134 .model_id = ST_M25P20_RES,
9135 .total_size = 256,
9136 .page_size = 256,
9137 .feature_bits = FEATURE_WRSR_WREN,
9138 .tested = TEST_OK_PREW,
9139 .probe = probe_spi_res1,
9140 .probe_timing = TIMING_ZERO,
9141 .block_erasers =
9142 {
9143 {
9144 .eraseblocks = { {64 * 1024, 4} },
9145 .block_erase = spi_block_erase_d8,
9146 }, {
9147 .eraseblocks = { {256 * 1024, 1} },
9148 .block_erase = spi_block_erase_c7,
9149 }
9150 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009151 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009152 .unlock = spi_disable_blockprotect,
9153 .write = spi_chip_write_256,
9154 .read = spi_chip_read, /* Fast read (0x0B) supported */
9155 .voltage = {2700, 3600},
9156 },
9157
9158 {
9159 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9160 .name = "M25P40",
9161 .bustype = BUS_SPI,
9162 .manufacture_id = ST_ID,
9163 .model_id = ST_M25P40,
9164 .total_size = 512,
9165 .page_size = 256,
9166 .feature_bits = FEATURE_WRSR_WREN,
9167 .tested = TEST_OK_PREW,
9168 .probe = probe_spi_rdid,
9169 .probe_timing = TIMING_ZERO,
9170 .block_erasers =
9171 {
9172 {
9173 .eraseblocks = { {64 * 1024, 8} },
9174 .block_erase = spi_block_erase_d8,
9175 }, {
9176 .eraseblocks = { {512 * 1024, 1} },
9177 .block_erase = spi_block_erase_c7,
9178 }
9179 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009180 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009181 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009182 .write = spi_chip_write_256,
9183 .read = spi_chip_read,
9184 .voltage = {2700, 3600},
9185 },
9186
9187 {
9188 .vendor = "Micron/Numonyx/ST",
9189 .name = "M25P40-old",
9190 .bustype = BUS_SPI,
9191 .manufacture_id = 0, /* Not used. */
9192 .model_id = ST_M25P40_RES,
9193 .total_size = 512,
9194 .page_size = 256,
9195 .feature_bits = FEATURE_WRSR_WREN,
9196 .tested = TEST_UNTESTED,
9197 .probe = probe_spi_res1,
9198 .probe_timing = TIMING_ZERO,
9199 .block_erasers =
9200 {
9201 {
9202 .eraseblocks = { {64 * 1024, 8} },
9203 .block_erase = spi_block_erase_d8,
9204 }, {
9205 .eraseblocks = { {512 * 1024, 1} },
9206 .block_erase = spi_block_erase_c7,
9207 }
9208 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009209 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009210 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009211 .write = spi_chip_write_256,
9212 .read = spi_chip_read,
9213 },
9214
9215 {
9216 .vendor = "Micron/Numonyx/ST",
9217 .name = "M25P80",
9218 .bustype = BUS_SPI,
9219 .manufacture_id = ST_ID,
9220 .model_id = ST_M25P80,
9221 .total_size = 1024,
9222 .page_size = 256,
9223 .feature_bits = FEATURE_WRSR_WREN,
9224 .tested = TEST_OK_PREW,
9225 .probe = probe_spi_rdid,
9226 .probe_timing = TIMING_ZERO,
9227 .block_erasers =
9228 {
9229 {
9230 .eraseblocks = { {64 * 1024, 16} },
9231 .block_erase = spi_block_erase_d8,
9232 }, {
9233 .eraseblocks = { {1024 * 1024, 1} },
9234 .block_erase = spi_block_erase_c7,
9235 }
9236 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009237 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009238 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009239 .write = spi_chip_write_256,
9240 .read = spi_chip_read,
9241 .voltage = {2700, 3600},
9242 },
9243
9244 {
9245 .vendor = "Micron/Numonyx/ST",
9246 .name = "M25P16",
9247 .bustype = BUS_SPI,
9248 .manufacture_id = ST_ID,
9249 .model_id = ST_M25P16,
9250 .total_size = 2048,
9251 .page_size = 256,
9252 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009253 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009254 .probe = probe_spi_rdid,
9255 .probe_timing = TIMING_ZERO,
9256 .block_erasers =
9257 {
9258 {
9259 .eraseblocks = { {64 * 1024, 32} },
9260 .block_erase = spi_block_erase_d8,
9261 }, {
9262 .eraseblocks = { {2 * 1024 * 1024, 1} },
9263 .block_erase = spi_block_erase_c7,
9264 }
9265 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009266 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009267 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009268 .write = spi_chip_write_256,
9269 .read = spi_chip_read,
9270 .voltage = {2700, 3600},
9271 },
9272
9273 {
9274 .vendor = "Micron/Numonyx/ST",
9275 .name = "M25P32",
9276 .bustype = BUS_SPI,
9277 .manufacture_id = ST_ID,
9278 .model_id = ST_M25P32,
9279 .total_size = 4096,
9280 .page_size = 256,
9281 .feature_bits = FEATURE_WRSR_WREN,
9282 .tested = TEST_OK_PREW,
9283 .probe = probe_spi_rdid,
9284 .probe_timing = TIMING_ZERO,
9285 .block_erasers =
9286 {
9287 {
9288 .eraseblocks = { {64 * 1024, 64} },
9289 .block_erase = spi_block_erase_d8,
9290 }, {
9291 .eraseblocks = { {4 * 1024 * 1024, 1} },
9292 .block_erase = spi_block_erase_c7,
9293 }
9294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009295 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009296 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009297 .write = spi_chip_write_256,
9298 .read = spi_chip_read,
9299 .voltage = {2700, 3600},
9300 },
9301
9302 {
9303 .vendor = "Micron/Numonyx/ST",
9304 .name = "M25P64",
9305 .bustype = BUS_SPI,
9306 .manufacture_id = ST_ID,
9307 .model_id = ST_M25P64,
9308 .total_size = 8192,
9309 .page_size = 256,
9310 .feature_bits = FEATURE_WRSR_WREN,
9311 .tested = TEST_OK_PREW,
9312 .probe = probe_spi_rdid,
9313 .probe_timing = TIMING_ZERO,
9314 .block_erasers =
9315 {
9316 {
9317 .eraseblocks = { {64 * 1024, 128} },
9318 .block_erase = spi_block_erase_d8,
9319 }, {
9320 .eraseblocks = { {8 * 1024 * 1024, 1} },
9321 .block_erase = spi_block_erase_c7,
9322 }
9323 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009324 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009325 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009326 .write = spi_chip_write_256,
9327 .read = spi_chip_read,
9328 .voltage = {2700, 3600},
9329 },
9330
9331 {
9332 .vendor = "Micron/Numonyx/ST",
9333 .name = "M25P128",
9334 .bustype = BUS_SPI,
9335 .manufacture_id = ST_ID,
9336 .model_id = ST_M25P128,
9337 .total_size = 16384,
9338 .page_size = 256,
9339 .feature_bits = FEATURE_WRSR_WREN,
9340 .tested = TEST_OK_PREW,
9341 .probe = probe_spi_rdid,
9342 .probe_timing = TIMING_ZERO,
9343 .block_erasers =
9344 {
9345 {
9346 .eraseblocks = { {256 * 1024, 64} },
9347 .block_erase = spi_block_erase_d8,
9348 }, {
9349 .eraseblocks = { {16 * 1024 * 1024, 1} },
9350 .block_erase = spi_block_erase_c7,
9351 }
9352 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009353 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009354 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009355 .write = spi_chip_write_256,
9356 .read = spi_chip_read,
9357 .voltage = {2700, 3600},
9358 },
9359
9360 {
9361 .vendor = "Micron/Numonyx/ST",
9362 .name = "M25PE10",
9363 .bustype = BUS_SPI,
9364 .manufacture_id = ST_ID,
9365 .model_id = ST_M25PE10,
9366 .total_size = 128,
9367 .page_size = 256,
9368 .feature_bits = FEATURE_WRSR_WREN,
9369 .tested = TEST_UNTESTED,
9370 .probe = probe_spi_rdid,
9371 .probe_timing = TIMING_ZERO,
9372 .block_erasers =
9373 {
9374 {
9375 .eraseblocks = { {4 * 1024, 32} },
9376 .block_erase = spi_block_erase_20,
9377 }, {
9378 .eraseblocks = { {64 * 1024, 2} },
9379 .block_erase = spi_block_erase_d8,
9380 }, {
9381 .eraseblocks = { {128 * 1024, 1} },
9382 .block_erase = spi_block_erase_c7,
9383 }
9384 },
9385 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9386 .unlock = spi_disable_blockprotect,
9387 .write = spi_chip_write_256,
9388 .read = spi_chip_read,
9389 .voltage = {2700, 3600},
9390 },
9391
9392 {
9393 .vendor = "Micron/Numonyx/ST",
9394 .name = "M25PE20",
9395 .bustype = BUS_SPI,
9396 .manufacture_id = ST_ID,
9397 .model_id = ST_M25PE20,
9398 .total_size = 256,
9399 .page_size = 256,
9400 .feature_bits = FEATURE_WRSR_WREN,
9401 .tested = TEST_UNTESTED,
9402 .probe = probe_spi_rdid,
9403 .probe_timing = TIMING_ZERO,
9404 .block_erasers =
9405 {
9406 {
9407 .eraseblocks = { {4 * 1024, 64} },
9408 .block_erase = spi_block_erase_20,
9409 }, {
9410 .eraseblocks = { {64 * 1024, 4} },
9411 .block_erase = spi_block_erase_d8,
9412 }, {
9413 .eraseblocks = { {256 * 1024, 1} },
9414 .block_erase = spi_block_erase_c7,
9415 }
9416 },
9417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9418 .unlock = spi_disable_blockprotect,
9419 .write = spi_chip_write_256,
9420 .read = spi_chip_read,
9421 .voltage = {2700, 3600},
9422 },
9423
9424 {
9425 .vendor = "Micron/Numonyx/ST",
9426 .name = "M25PE40",
9427 .bustype = BUS_SPI,
9428 .manufacture_id = ST_ID,
9429 .model_id = ST_M25PE40,
9430 .total_size = 512,
9431 .page_size = 256,
9432 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009433 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009434 .probe = probe_spi_rdid,
9435 .probe_timing = TIMING_ZERO,
9436 .block_erasers =
9437 {
9438 {
9439 .eraseblocks = { {4 * 1024, 128} },
9440 .block_erase = spi_block_erase_20,
9441 }, {
9442 .eraseblocks = { {64 * 1024, 8} },
9443 .block_erase = spi_block_erase_d8,
9444 }, {
9445 .eraseblocks = { {512 * 1024, 1} },
9446 .block_erase = spi_block_erase_c7,
9447 }
9448 },
9449 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9450 .unlock = spi_disable_blockprotect,
9451 .write = spi_chip_write_256,
9452 .read = spi_chip_read,
9453 .voltage = {2700, 3600},
9454 },
9455
9456 {
9457 .vendor = "Micron/Numonyx/ST",
9458 .name = "M25PE80",
9459 .bustype = BUS_SPI,
9460 .manufacture_id = ST_ID,
9461 .model_id = ST_M25PE80,
9462 .total_size = 1024,
9463 .page_size = 256,
9464 .feature_bits = FEATURE_WRSR_WREN,
9465 .tested = TEST_OK_PREW,
9466 .probe = probe_spi_rdid,
9467 .probe_timing = TIMING_ZERO,
9468 .block_erasers =
9469 {
9470 {
9471 .eraseblocks = { {4 * 1024, 256} },
9472 .block_erase = spi_block_erase_20,
9473 }, {
9474 .eraseblocks = { {64 * 1024, 16} },
9475 .block_erase = spi_block_erase_d8,
9476 }, {
9477 .eraseblocks = { {1024 * 1024, 1} },
9478 .block_erase = spi_block_erase_c7,
9479 }
9480 },
9481 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9482 .unlock = spi_disable_blockprotect,
9483 .write = spi_chip_write_256,
9484 .read = spi_chip_read,
9485 .voltage = {2700, 3600},
9486 },
9487
9488 {
9489 .vendor = "Micron/Numonyx/ST",
9490 .name = "M25PE16",
9491 .bustype = BUS_SPI,
9492 .manufacture_id = ST_ID,
9493 .model_id = ST_M25PE16,
9494 .total_size = 2048,
9495 .page_size = 256,
9496 .feature_bits = FEATURE_WRSR_WREN,
9497 .tested = TEST_UNTESTED,
9498 .probe = probe_spi_rdid,
9499 .probe_timing = TIMING_ZERO,
9500 .block_erasers =
9501 {
9502 {
9503 .eraseblocks = { {4 * 1024, 512} },
9504 .block_erase = spi_block_erase_20,
9505 }, {
9506 .eraseblocks = { {64 * 1024, 32} },
9507 .block_erase = spi_block_erase_d8,
9508 }, {
9509 .eraseblocks = { {2 * 1024 * 1024, 1} },
9510 .block_erase = spi_block_erase_c7,
9511 }
9512 },
9513 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9514 .unlock = spi_disable_blockprotect,
9515 .write = spi_chip_write_256,
9516 .read = spi_chip_read,
9517 .voltage = {2700, 3600},
9518 },
9519
9520 {
9521 .vendor = "Micron/Numonyx/ST",
9522 .name = "M25PX80",
9523 .bustype = BUS_SPI,
9524 .manufacture_id = ST_ID,
9525 .model_id = ST_M25PX80,
9526 .total_size = 1024,
9527 .page_size = 256,
9528 /* OTP: 64B total; read 0x4B, write 0x42 */
9529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9530 .tested = TEST_OK_PREW,
9531 .probe = probe_spi_rdid,
9532 .probe_timing = TIMING_ZERO,
9533 .block_erasers = {
9534 {
9535 .eraseblocks = { { 4 * 1024, 256 } },
9536 .block_erase = spi_block_erase_20,
9537 }, {
9538 .eraseblocks = { {64 * 1024, 16} },
9539 .block_erase = spi_block_erase_d8,
9540 }, {
9541 .eraseblocks = { {1024 * 1024, 1} },
9542 .block_erase = spi_block_erase_c7,
9543 }
9544 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009545 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009546 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9547 .write = spi_chip_write_256,
9548 .read = spi_chip_read,
9549 .voltage = {2700, 3600},
9550 },
9551
9552 {
9553 .vendor = "Micron/Numonyx/ST",
9554 .name = "M25PX16",
9555 .bustype = BUS_SPI,
9556 .manufacture_id = ST_ID,
9557 .model_id = ST_M25PX16,
9558 .total_size = 2048,
9559 .page_size = 256,
9560 /* OTP: 64B total; read 0x4B; write 0x42 */
9561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9562 .tested = TEST_OK_PREW,
9563 .probe = probe_spi_rdid,
9564 .probe_timing = TIMING_ZERO,
9565 .block_erasers =
9566 {
9567 {
9568 .eraseblocks = { { 4 * 1024, 512 } },
9569 .block_erase = spi_block_erase_20,
9570 }, {
9571 .eraseblocks = { {64 * 1024, 32} },
9572 .block_erase = spi_block_erase_d8,
9573 }, {
9574 .eraseblocks = { {2 * 1024 * 1024, 1} },
9575 .block_erase = spi_block_erase_c7,
9576 }
9577 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009578 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009579 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9580 .write = spi_chip_write_256,
9581 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009582 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009583 },
9584
9585 {
9586 .vendor = "Micron/Numonyx/ST",
9587 .name = "M25PX32",
9588 .bustype = BUS_SPI,
9589 .manufacture_id = ST_ID,
9590 .model_id = ST_M25PX32,
9591 .total_size = 4096,
9592 .page_size = 256,
9593 /* OTP: 64B total; read 0x4B; write 0x42 */
9594 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9595 .tested = TEST_OK_PRE,
9596 .probe = probe_spi_rdid,
9597 .probe_timing = TIMING_ZERO,
9598 .block_erasers =
9599 {
9600 {
9601 .eraseblocks = { { 4 * 1024, 1024 } },
9602 .block_erase = spi_block_erase_20,
9603 }, {
9604 .eraseblocks = { {64 * 1024, 64} },
9605 .block_erase = spi_block_erase_d8,
9606 }, {
9607 .eraseblocks = { {4 * 1024 * 1024, 1} },
9608 .block_erase = spi_block_erase_c7,
9609 }
9610 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009611 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009612 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9613 .write = spi_chip_write_256,
9614 .read = spi_chip_read,
9615 .voltage = {2700, 3600},
9616 },
9617
9618 {
9619 .vendor = "Micron/Numonyx/ST",
9620 .name = "M25PX64",
9621 .bustype = BUS_SPI,
9622 .manufacture_id = ST_ID,
9623 .model_id = ST_M25PX64,
9624 .total_size = 8192,
9625 .page_size = 256,
9626 /* OTP: 64B total; read 0x4B; write 0x42 */
9627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009628 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009629 .probe = probe_spi_rdid,
9630 .probe_timing = TIMING_ZERO,
9631 .block_erasers =
9632 {
9633 {
9634 .eraseblocks = { { 4 * 1024, 2048 } },
9635 .block_erase = spi_block_erase_20,
9636 }, {
9637 .eraseblocks = { {64 * 1024, 128} },
9638 .block_erase = spi_block_erase_d8,
9639 }, {
9640 .eraseblocks = { {8 * 1024 * 1024, 1} },
9641 .block_erase = spi_block_erase_c7,
9642 }
9643 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009644 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009645 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9646 .write = spi_chip_write_256,
9647 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009648 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009649 },
9650
9651 {
9652 .vendor = "Micron/Numonyx/ST",
9653 .name = "M45PE10",
9654 .bustype = BUS_SPI,
9655 .manufacture_id = ST_ID,
9656 .model_id = ST_M45PE10,
9657 .total_size = 128,
9658 .page_size = 256,
9659 .tested = TEST_UNTESTED,
9660 .probe = probe_spi_rdid,
9661 .probe_timing = TIMING_ZERO,
9662 .block_erasers = {
9663 {
9664 .eraseblocks = { {256, 512} },
9665 .block_erase = spi_block_erase_db,
9666 }, {
9667 .eraseblocks = { {64 * 1024, 2} },
9668 .block_erase = spi_block_erase_d8,
9669 }
9670 },
9671 .printlock = spi_prettyprint_status_register_default_welwip,
9672 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9673 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9674 .read = spi_chip_read, /* Fast read (0x0B) supported */
9675 .voltage = {2700, 3600},
9676 },
9677
9678 {
9679 .vendor = "Micron/Numonyx/ST",
9680 .name = "M45PE20",
9681 .bustype = BUS_SPI,
9682 .manufacture_id = ST_ID,
9683 .model_id = ST_M45PE20,
9684 .total_size = 256,
9685 .page_size = 256,
9686 .tested = TEST_UNTESTED,
9687 .probe = probe_spi_rdid,
9688 .probe_timing = TIMING_ZERO,
9689 .block_erasers = {
9690 {
9691 .eraseblocks = { {256, 1024} },
9692 .block_erase = spi_block_erase_db,
9693 }, {
9694 .eraseblocks = { {64 * 1024, 4} },
9695 .block_erase = spi_block_erase_d8,
9696 }
9697 },
9698 .printlock = spi_prettyprint_status_register_default_welwip,
9699 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9700 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9701 .read = spi_chip_read, /* Fast read (0x0B) supported */
9702 .voltage = {2700, 3600},
9703 },
9704
9705 {
9706 .vendor = "Micron/Numonyx/ST",
9707 .name = "M45PE40",
9708 .bustype = BUS_SPI,
9709 .manufacture_id = ST_ID,
9710 .model_id = ST_M45PE40,
9711 .total_size = 512,
9712 .page_size = 256,
9713 .tested = TEST_UNTESTED,
9714 .probe = probe_spi_rdid,
9715 .probe_timing = TIMING_ZERO,
9716 .block_erasers = {
9717 {
9718 .eraseblocks = { {256, 2048} },
9719 .block_erase = spi_block_erase_db,
9720 }, {
9721 .eraseblocks = { {64 * 1024, 8} },
9722 .block_erase = spi_block_erase_d8,
9723 }
9724 },
9725 .printlock = spi_prettyprint_status_register_default_welwip,
9726 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009727 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009728 .read = spi_chip_read, /* Fast read (0x0B) supported */
9729 .voltage = {2700, 3600},
9730 },
9731
9732 {
9733 .vendor = "Micron/Numonyx/ST",
9734 .name = "M45PE80",
9735 .bustype = BUS_SPI,
9736 .manufacture_id = ST_ID,
9737 .model_id = ST_M45PE80,
9738 .total_size = 1024,
9739 .page_size = 256,
9740 .tested = TEST_UNTESTED,
9741 .probe = probe_spi_rdid,
9742 .probe_timing = TIMING_ZERO,
9743 .block_erasers = {
9744 {
9745 .eraseblocks = { {256, 4096} },
9746 .block_erase = spi_block_erase_db,
9747 }, {
9748 .eraseblocks = { {64 * 1024, 16} },
9749 .block_erase = spi_block_erase_d8,
9750 }
9751 },
9752 .printlock = spi_prettyprint_status_register_default_welwip,
9753 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9754 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9755 .read = spi_chip_read, /* Fast read (0x0B) supported */
9756 .voltage = {2700, 3600},
9757 },
9758
9759 {
9760 .vendor = "Micron/Numonyx/ST",
9761 .name = "M45PE16",
9762 .bustype = BUS_SPI,
9763 .manufacture_id = ST_ID,
9764 .model_id = ST_M45PE16,
9765 .total_size = 2048,
9766 .page_size = 256,
9767 .tested = TEST_UNTESTED,
9768 .probe = probe_spi_rdid,
9769 .probe_timing = TIMING_ZERO,
9770 .block_erasers = {
9771 {
9772 .eraseblocks = { {256, 8192} },
9773 .block_erase = spi_block_erase_db,
9774 }, {
9775 .eraseblocks = { {64 * 1024, 32} },
9776 .block_erase = spi_block_erase_d8,
9777 }
9778 },
9779 .printlock = spi_prettyprint_status_register_default_welwip,
9780 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9781 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9782 .read = spi_chip_read, /* Fast read (0x0B) supported */
9783 .voltage = {2700, 3600},
9784 },
9785
9786 {
9787 .vendor = "Micron/Numonyx/ST",
9788 .name = "N25Q016",
9789 .bustype = BUS_SPI,
9790 .manufacture_id = ST_ID,
9791 .model_id = ST_N25Q016__1E,
9792 .total_size = 2048,
9793 .page_size = 256,
9794 /* supports SFDP */
9795 /* OTP: 64B total; read 0x4B, write 0x42 */
9796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9797 .tested = TEST_UNTESTED,
9798 .probe = probe_spi_rdid,
9799 .probe_timing = TIMING_ZERO,
9800 .block_erasers =
9801 {
9802 {
9803 .eraseblocks = { {4 * 1024, 512} },
9804 .block_erase = spi_block_erase_20,
9805 }, {
9806 .eraseblocks = { {32 * 1024, 64} },
9807 .block_erase = spi_block_erase_52,
9808 }, {
9809 .eraseblocks = { {64 * 1024, 32} },
9810 .block_erase = spi_block_erase_d8,
9811 }, {
9812 .eraseblocks = { {2 * 1024 * 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 = {1700, 2000},
9821 },
9822
9823 {
9824 .vendor = "Micron/Numonyx/ST",
9825 .name = "N25Q032..1E",
9826 .bustype = BUS_SPI,
9827 .manufacture_id = ST_ID,
9828 .model_id = ST_N25Q032__1E,
9829 .total_size = 4096,
9830 .page_size = 256,
9831 /* supports SFDP */
9832 /* OTP: 64B total; read 0x4B, write 0x42 */
9833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9834 .tested = TEST_UNTESTED,
9835 .probe = probe_spi_rdid,
9836 .probe_timing = TIMING_ZERO,
9837 .block_erasers =
9838 {
9839 {
9840 .eraseblocks = { {4 * 1024, 1024} },
9841 .block_erase = spi_block_erase_20,
9842 }, {
9843 .eraseblocks = { {64 * 1024, 64} },
9844 .block_erase = spi_block_erase_d8,
9845 }, {
9846 .eraseblocks = { {4 * 1024 * 1024, 1} },
9847 .block_erase = spi_block_erase_c7,
9848 }
9849 },
9850 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9851 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9852 .write = spi_chip_write_256, /* Multi I/O supported */
9853 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9854 .voltage = {1700, 2000},
9855 },
9856
9857 {
9858 .vendor = "Micron/Numonyx/ST",
9859 .name = "N25Q032..3E",
9860 .bustype = BUS_SPI,
9861 .manufacture_id = ST_ID,
9862 .model_id = ST_N25Q032__3E,
9863 .total_size = 4096,
9864 .page_size = 256,
9865 /* supports SFDP */
9866 /* OTP: 64B total; read 0x4B, write 0x42 */
9867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9868 .tested = TEST_OK_PREW,
9869 .probe = probe_spi_rdid,
9870 .probe_timing = TIMING_ZERO,
9871 .block_erasers =
9872 {
9873 {
9874 .eraseblocks = { {4 * 1024, 1024} },
9875 .block_erase = spi_block_erase_20,
9876 }, {
9877 .eraseblocks = { {64 * 1024, 64} },
9878 .block_erase = spi_block_erase_d8,
9879 }, {
9880 .eraseblocks = { {4 * 1024 * 1024, 1} },
9881 .block_erase = spi_block_erase_c7,
9882 }
9883 },
9884 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9885 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9886 .write = spi_chip_write_256, /* Multi I/O supported */
9887 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9888 .voltage = {2700, 3600},
9889 },
9890
9891 {
9892 .vendor = "Micron/Numonyx/ST",
9893 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9894 .bustype = BUS_SPI,
9895 .manufacture_id = ST_ID,
9896 .model_id = ST_N25Q064__1E,
9897 .total_size = 8192,
9898 .page_size = 256,
9899 /* supports SFDP */
9900 /* OTP: 64B total; read 0x4B, write 0x42 */
9901 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009902 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009903 .probe = probe_spi_rdid,
9904 .probe_timing = TIMING_ZERO,
9905 .block_erasers =
9906 {
9907 {
9908 .eraseblocks = { {4 * 1024, 2048 } },
9909 .block_erase = spi_block_erase_20,
9910 }, {
9911 .eraseblocks = { {64 * 1024, 128} },
9912 .block_erase = spi_block_erase_d8,
9913 }, {
9914 .eraseblocks = { {8 * 1024 * 1024, 1} },
9915 .block_erase = spi_block_erase_c7,
9916 }
9917 },
9918 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9919 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9920 .write = spi_chip_write_256, /* Multi I/O supported */
9921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9922 .voltage = {1700, 2000},
9923 },
9924
9925 {
9926 .vendor = "Micron/Numonyx/ST",
9927 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9928 .bustype = BUS_SPI,
9929 .manufacture_id = ST_ID,
9930 .model_id = ST_N25Q064__3E,
9931 .total_size = 8192,
9932 .page_size = 256,
9933 /* supports SFDP */
9934 /* OTP: 64B total; read 0x4B, write 0x42 */
9935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9936 .tested = TEST_OK_PREW,
9937 .probe = probe_spi_rdid,
9938 .probe_timing = TIMING_ZERO,
9939 .block_erasers =
9940 {
9941 {
9942 .eraseblocks = { {4 * 1024, 2048 } },
9943 .block_erase = spi_block_erase_20,
9944 }, {
9945 .eraseblocks = { {64 * 1024, 128} },
9946 .block_erase = spi_block_erase_d8,
9947 }, {
9948 .eraseblocks = { {8 * 1024 * 1024, 1} },
9949 .block_erase = spi_block_erase_c7,
9950 }
9951 },
9952 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9953 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9954 .write = spi_chip_write_256, /* Multi I/O supported */
9955 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9956 .voltage = {2700, 3600},
9957 },
9958
9959 {
9960 .vendor = "Micron/Numonyx/ST",
9961 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9962 .bustype = BUS_SPI,
9963 .manufacture_id = ST_ID,
9964 .model_id = ST_N25Q128__1E,
9965 .total_size = 16384,
9966 .page_size = 256,
9967 /* supports SFDP */
9968 /* OTP: 64B total; read 0x4B, write 0x42 */
9969 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009970 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009971 .probe = probe_spi_rdid,
9972 .probe_timing = TIMING_ZERO,
9973 .block_erasers = {
9974 {
9975 .eraseblocks = { {4 * 1024, 4096 } },
9976 .block_erase = spi_block_erase_20,
9977 }, {
9978 .eraseblocks = { {64 * 1024, 256} },
9979 .block_erase = spi_block_erase_d8,
9980 }, {
9981 .eraseblocks = { {16384 * 1024, 1} },
9982 .block_erase = spi_block_erase_c7,
9983 }
9984 },
9985 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9986 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9987 .write = spi_chip_write_256, /* Multi I/O supported */
9988 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9989 .voltage = {1700, 2000},
9990 },
9991
9992 {
9993 .vendor = "Micron/Numonyx/ST",
9994 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9995 .bustype = BUS_SPI,
9996 .manufacture_id = ST_ID,
9997 .model_id = ST_N25Q128__3E,
9998 .total_size = 16384,
9999 .page_size = 256,
10000 /* supports SFDP */
10001 /* OTP: 64B total; read 0x4B, write 0x42 */
10002 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10003 .tested = TEST_OK_PREW,
10004 .probe = probe_spi_rdid,
10005 .probe_timing = TIMING_ZERO,
10006 .block_erasers = {
10007 {
10008 .eraseblocks = { {4 * 1024, 4096 } },
10009 .block_erase = spi_block_erase_20,
10010 }, {
10011 .eraseblocks = { {64 * 1024, 256} },
10012 .block_erase = spi_block_erase_d8,
10013 }, {
10014 .eraseblocks = { {16384 * 1024, 1} },
10015 .block_erase = spi_block_erase_c7,
10016 }
10017 },
10018 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10019 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10020 .write = spi_chip_write_256, /* Multi I/O supported */
10021 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10022 .voltage = {2700, 3600},
10023 },
10024
10025 {
Ed Swierk199ab392017-07-03 13:33:44 -070010026 .vendor = "Micron",
10027 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10028 .bustype = BUS_SPI,
10029 .manufacture_id = ST_ID,
10030 .model_id = ST_N25Q256__3E,
10031 .total_size = 32768,
10032 .page_size = 256,
10033 /* supports SFDP */
10034 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010035 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10036 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010037 .probe = probe_spi_rdid,
10038 .probe_timing = TIMING_ZERO,
10039 .block_erasers = {
10040 {
10041 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010042 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010043 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010044 .eraseblocks = { {4 * 1024, 8192} },
10045 .block_erase = spi_block_erase_20,
10046 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010047 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010048 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010049 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010050 .eraseblocks = { {64 * 1024, 512} },
10051 .block_erase = spi_block_erase_d8,
10052 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010053 .eraseblocks = { {32768 * 1024, 1} },
10054 .block_erase = spi_block_erase_c7,
10055 }
10056 },
10057 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10058 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10059 .write = spi_chip_write_256, /* Multi I/O supported */
10060 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10061 .voltage = {2700, 3600},
10062 },
10063
10064 {
10065 .vendor = "Micron",
10066 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10067 .bustype = BUS_SPI,
10068 .manufacture_id = ST_ID,
10069 .model_id = ST_N25Q512__3E,
10070 .total_size = 65536,
10071 .page_size = 256,
10072 /* supports SFDP */
10073 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010074 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10075 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010076 .probe = probe_spi_rdid,
10077 .probe_timing = TIMING_ZERO,
10078 .block_erasers = {
10079 {
10080 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010081 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010082 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010083 .eraseblocks = { {4 * 1024, 16384} },
10084 .block_erase = spi_block_erase_20,
10085 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010086 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010087 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010088 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010089 .eraseblocks = { {64 * 1024, 1024} },
10090 .block_erase = spi_block_erase_d8,
10091 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010092 .eraseblocks = { {65536 * 1024, 1} },
10093 .block_erase = spi_block_erase_c7,
10094 }
10095 },
10096 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10097 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10098 .write = spi_chip_write_256, /* Multi I/O supported */
10099 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10100 .voltage = {2700, 3600},
10101 },
10102
10103 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010104 .vendor = "MoselVitelic",
10105 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010106 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010107 .manufacture_id = SYNCMOS_MVC_ID,
10108 .model_id = MVC_V29C51000B,
10109 .total_size = 64,
10110 .page_size = 512,
10111 .feature_bits = FEATURE_EITHER_RESET,
10112 .tested = TEST_UNTESTED,
10113 .probe = probe_jedec,
10114 .probe_timing = TIMING_ZERO,
10115 .block_erasers =
10116 {
10117 {
10118 .eraseblocks = { {512, 128} },
10119 .block_erase = erase_sector_jedec,
10120 }, {
10121 .eraseblocks = { {64 * 1024, 1} },
10122 .block_erase = erase_chip_block_jedec,
10123 },
10124 },
10125 .write = write_jedec_1,
10126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010127 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010128 },
10129
10130 {
10131 .vendor = "MoselVitelic",
10132 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010133 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010134 .manufacture_id = SYNCMOS_MVC_ID,
10135 .model_id = MVC_V29C51000T,
10136 .total_size = 64,
10137 .page_size = 512,
10138 .feature_bits = FEATURE_EITHER_RESET,
10139 .tested = TEST_UNTESTED,
10140 .probe = probe_jedec,
10141 .probe_timing = TIMING_ZERO,
10142 .block_erasers =
10143 {
10144 {
10145 .eraseblocks = { {512, 128} },
10146 .block_erase = erase_sector_jedec,
10147 }, {
10148 .eraseblocks = { {64 * 1024, 1} },
10149 .block_erase = erase_chip_block_jedec,
10150 },
10151 },
10152 .write = write_jedec_1,
10153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010154 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010155 },
10156
10157 {
10158 .vendor = "MoselVitelic",
10159 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010160 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010161 .manufacture_id = SYNCMOS_MVC_ID,
10162 .model_id = MVC_V29C51400B,
10163 .total_size = 512,
10164 .page_size = 1024,
10165 .feature_bits = FEATURE_EITHER_RESET,
10166 .tested = TEST_UNTESTED,
10167 .probe = probe_jedec,
10168 .probe_timing = TIMING_ZERO,
10169 .block_erasers =
10170 {
10171 {
10172 .eraseblocks = { {1024, 512} },
10173 .block_erase = erase_sector_jedec,
10174 }, {
10175 .eraseblocks = { {512 * 1024, 1} },
10176 .block_erase = erase_chip_block_jedec,
10177 },
10178 },
10179 .write = write_jedec_1,
10180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010181 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010182 },
10183
10184 {
10185 .vendor = "MoselVitelic",
10186 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010187 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010188 .manufacture_id = SYNCMOS_MVC_ID,
10189 .model_id = MVC_V29C51400T,
10190 .total_size = 512,
10191 .page_size = 1024,
10192 .feature_bits = FEATURE_EITHER_RESET,
10193 .tested = TEST_UNTESTED,
10194 .probe = probe_jedec,
10195 .probe_timing = TIMING_ZERO,
10196 .block_erasers =
10197 {
10198 {
10199 .eraseblocks = { {1024, 512} },
10200 .block_erase = erase_sector_jedec,
10201 }, {
10202 .eraseblocks = { {512 * 1024, 1} },
10203 .block_erase = erase_chip_block_jedec,
10204 },
10205 },
10206 .write = write_jedec_1,
10207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010208 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010209 },
10210
10211 {
10212 .vendor = "MoselVitelic",
10213 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010214 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010215 .manufacture_id = SYNCMOS_MVC_ID,
10216 .model_id = MVC_V29LC51000,
10217 .total_size = 64,
10218 .page_size = 512,
10219 .feature_bits = FEATURE_EITHER_RESET,
10220 .tested = TEST_UNTESTED,
10221 .probe = probe_jedec,
10222 .probe_timing = TIMING_ZERO,
10223 .block_erasers =
10224 {
10225 {
10226 .eraseblocks = { {512, 128} },
10227 .block_erase = erase_sector_jedec,
10228 }, {
10229 .eraseblocks = { {64 * 1024, 1} },
10230 .block_erase = erase_chip_block_jedec,
10231 },
10232 },
10233 .write = write_jedec_1,
10234 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010235 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010236 },
10237
10238 {
10239 .vendor = "MoselVitelic",
10240 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010241 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010242 .manufacture_id = SYNCMOS_MVC_ID,
10243 .model_id = MVC_V29LC51001,
10244 .total_size = 128,
10245 .page_size = 512,
10246 .feature_bits = FEATURE_EITHER_RESET,
10247 .tested = TEST_UNTESTED,
10248 .probe = probe_jedec,
10249 .probe_timing = TIMING_ZERO,
10250 .block_erasers =
10251 {
10252 {
10253 .eraseblocks = { {512, 256} },
10254 .block_erase = erase_sector_jedec,
10255 }, {
10256 .eraseblocks = { {128 * 1024, 1} },
10257 .block_erase = erase_chip_block_jedec,
10258 },
10259 },
10260 .write = write_jedec_1,
10261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010262 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010263 },
10264
10265 {
10266 .vendor = "MoselVitelic",
10267 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010268 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010269 .manufacture_id = SYNCMOS_MVC_ID,
10270 .model_id = MVC_V29LC51002,
10271 .total_size = 256,
10272 .page_size = 512,
10273 .feature_bits = FEATURE_EITHER_RESET,
10274 .tested = TEST_UNTESTED,
10275 .probe = probe_jedec,
10276 .probe_timing = TIMING_ZERO,
10277 .block_erasers =
10278 {
10279 {
10280 .eraseblocks = { {512, 512} },
10281 .block_erase = erase_sector_jedec,
10282 }, {
10283 .eraseblocks = { {256 * 1024, 1} },
10284 .block_erase = erase_chip_block_jedec,
10285 },
10286 },
10287 .write = write_jedec_1,
10288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010289 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010290 },
10291
10292 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010293 .vendor = "Nantronics",
10294 .name = "N25S10",
10295 .bustype = BUS_SPI,
10296 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10297 .model_id = NANTRONICS_N25S10,
10298 .total_size = 128,
10299 .page_size = 256,
10300 .feature_bits = FEATURE_WRSR_WREN,
10301 .tested = TEST_UNTESTED,
10302 .probe = probe_spi_rdid,
10303 .probe_timing = TIMING_ZERO,
10304 .block_erasers =
10305 {
10306 {
10307 .eraseblocks = { {4 * 1024, 32} },
10308 .block_erase = spi_block_erase_20,
10309 }, {
10310 .eraseblocks = { {4 * 1024, 32} },
10311 .block_erase = spi_block_erase_d7,
10312 }, {
10313 .eraseblocks = { {32 * 1024, 4} },
10314 .block_erase = spi_block_erase_52,
10315 }, {
10316 .eraseblocks = { {64 * 1024, 2} },
10317 .block_erase = spi_block_erase_d8,
10318 }, {
10319 .eraseblocks = { {128 * 1024, 1} },
10320 .block_erase = spi_block_erase_60,
10321 }, {
10322 .eraseblocks = { {128 * 1024, 1} },
10323 .block_erase = spi_block_erase_c7,
10324 }
10325 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010326 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010327 .unlock = spi_disable_blockprotect_bp3_srwd,
10328 .write = spi_chip_write_256,
10329 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10330 .voltage = {2700, 3600},
10331 },
10332
10333 {
10334 .vendor = "Nantronics",
10335 .name = "N25S20",
10336 .bustype = BUS_SPI,
10337 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10338 .model_id = NANTRONICS_N25S20,
10339 .total_size = 256,
10340 .page_size = 256,
10341 .feature_bits = FEATURE_WRSR_WREN,
10342 .tested = TEST_UNTESTED,
10343 .probe = probe_spi_rdid,
10344 .probe_timing = TIMING_ZERO,
10345 .block_erasers =
10346 {
10347 {
10348 .eraseblocks = { {4 * 1024, 64} },
10349 .block_erase = spi_block_erase_20,
10350 }, {
10351 .eraseblocks = { {4 * 1024, 64} },
10352 .block_erase = spi_block_erase_d7,
10353 }, {
10354 .eraseblocks = { {32 * 1024, 8} },
10355 .block_erase = spi_block_erase_52,
10356 }, {
10357 .eraseblocks = { {64 * 1024, 4} },
10358 .block_erase = spi_block_erase_d8,
10359 }, {
10360 .eraseblocks = { {256 * 1024, 1} },
10361 .block_erase = spi_block_erase_60,
10362 }, {
10363 .eraseblocks = { {256 * 1024, 1} },
10364 .block_erase = spi_block_erase_c7,
10365 }
10366 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010367 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010368 .unlock = spi_disable_blockprotect_bp3_srwd,
10369 .write = spi_chip_write_256,
10370 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10371 .voltage = {2700, 3600},
10372 },
10373
10374 {
10375 .vendor = "Nantronics",
10376 .name = "N25S40",
10377 .bustype = BUS_SPI,
10378 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10379 .model_id = NANTRONICS_N25S40,
10380 .total_size = 512,
10381 .page_size = 256,
10382 .feature_bits = FEATURE_WRSR_WREN,
10383 .tested = TEST_UNTESTED,
10384 .probe = probe_spi_rdid,
10385 .probe_timing = TIMING_ZERO,
10386 .block_erasers =
10387 {
10388 {
10389 .eraseblocks = { {4 * 1024, 128} },
10390 .block_erase = spi_block_erase_20,
10391 }, {
10392 .eraseblocks = { {4 * 1024, 128} },
10393 .block_erase = spi_block_erase_d7,
10394 }, {
10395 .eraseblocks = { {32 * 1024, 16} },
10396 .block_erase = spi_block_erase_52,
10397 }, {
10398 .eraseblocks = { {64 * 1024, 8} },
10399 .block_erase = spi_block_erase_d8,
10400 }, {
10401 .eraseblocks = { {512 * 1024, 1} },
10402 .block_erase = spi_block_erase_60,
10403 }, {
10404 .eraseblocks = { {512 * 1024, 1} },
10405 .block_erase = spi_block_erase_c7,
10406 }
10407 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010408 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010409 .unlock = spi_disable_blockprotect_bp3_srwd,
10410 .write = spi_chip_write_256,
10411 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10412 .voltage = {2700, 3600},
10413 },
10414
10415 {
10416 .vendor = "Nantronics",
10417 .name = "N25S80",
10418 .bustype = BUS_SPI,
10419 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10420 .model_id = NANTRONICS_N25S80,
10421 .total_size = 1024,
10422 .page_size = 256,
10423 .feature_bits = FEATURE_WRSR_WREN,
10424 .tested = TEST_UNTESTED,
10425 .probe = probe_spi_rdid,
10426 .probe_timing = TIMING_ZERO,
10427 .block_erasers =
10428 {
10429 {
10430 .eraseblocks = { {4 * 1024, 256} },
10431 .block_erase = spi_block_erase_20,
10432 }, {
10433 .eraseblocks = { {32 * 1024, 32} },
10434 .block_erase = spi_block_erase_52,
10435 }, {
10436 .eraseblocks = { {64 * 1024, 16} },
10437 .block_erase = spi_block_erase_d8,
10438 }, {
10439 .eraseblocks = { {1024 * 1024, 1} },
10440 .block_erase = spi_block_erase_60,
10441 }, {
10442 .eraseblocks = { {1024 * 1024, 1} },
10443 .block_erase = spi_block_erase_c7,
10444 }
10445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010446 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010447 .unlock = spi_disable_blockprotect_bp3_srwd,
10448 .write = spi_chip_write_256,
10449 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10450 .voltage = {2700, 3600},
10451 },
10452
10453 {
10454 .vendor = "Nantronics",
10455 .name = "N25S16",
10456 .bustype = BUS_SPI,
10457 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10458 .model_id = NANTRONICS_N25S16,
10459 .total_size = 2048,
10460 .page_size = 256,
10461 .feature_bits = FEATURE_WRSR_WREN,
10462 .tested = TEST_UNTESTED,
10463 .probe = probe_spi_rdid,
10464 .probe_timing = TIMING_ZERO,
10465 .block_erasers =
10466 {
10467 {
10468 .eraseblocks = { {4 * 1024, 512} },
10469 .block_erase = spi_block_erase_20,
10470 }, {
10471 .eraseblocks = { {64 * 1024, 32} },
10472 .block_erase = spi_block_erase_d8,
10473 }, {
10474 .eraseblocks = { {2048 * 1024, 1} },
10475 .block_erase = spi_block_erase_60,
10476 }, {
10477 .eraseblocks = { {2048 * 1024, 1} },
10478 .block_erase = spi_block_erase_c7,
10479 }
10480 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010481 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010482 .unlock = spi_disable_blockprotect_bp3_srwd,
10483 .write = spi_chip_write_256,
10484 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10485 .voltage = {2700, 3600},
10486 },
10487
10488 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010489 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010490 .name = "Pm25LD256C",
10491 .bustype = BUS_SPI,
10492 .manufacture_id = PMC_ID,
10493 .model_id = PMC_PM25LD256C,
10494 .total_size = 32,
10495 .page_size = 256,
10496 .feature_bits = FEATURE_WRSR_WREN,
10497 .tested = TEST_UNTESTED,
10498 .probe = probe_spi_rdid,
10499 .probe_timing = TIMING_ZERO,
10500 .block_erasers =
10501 {
10502 {
10503 .eraseblocks = { {4 * 1024, 8} },
10504 .block_erase = spi_block_erase_20,
10505 }, {
10506 .eraseblocks = { {4 * 1024, 8} },
10507 .block_erase = spi_block_erase_d7,
10508 }, {
10509 .eraseblocks = { {32 * 1024, 1} },
10510 .block_erase = spi_block_erase_d8,
10511 }, {
10512 .eraseblocks = { {32 * 1024, 1} },
10513 .block_erase = spi_block_erase_60,
10514 }, {
10515 .eraseblocks = { {32 * 1024, 1} },
10516 .block_erase = spi_block_erase_c7,
10517 }
10518 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010519 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010520 .unlock = spi_disable_blockprotect,
10521 .write = spi_chip_write_256,
10522 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10523 .voltage = {2700, 3600},
10524 },
10525 {
10526 .vendor = "PMC",
10527 .name = "Pm25LD512(C)",
10528 .bustype = BUS_SPI,
10529 .manufacture_id = PMC_ID,
10530 .model_id = PMC_PM25LD512,
10531 .total_size = 64,
10532 .page_size = 256,
10533 .feature_bits = FEATURE_WRSR_WREN,
10534 .tested = TEST_OK_PREW,
10535 .probe = probe_spi_rdid,
10536 .probe_timing = TIMING_ZERO,
10537 .block_erasers =
10538 {
10539 {
10540 .eraseblocks = { {4 * 1024, 16} },
10541 .block_erase = spi_block_erase_20,
10542 }, {
10543 .eraseblocks = { {4 * 1024, 16} },
10544 .block_erase = spi_block_erase_d7,
10545 }, {
10546 .eraseblocks = { {32 * 1024, 2} },
10547 .block_erase = spi_block_erase_d8,
10548 }, {
10549 .eraseblocks = { {64 * 1024, 1} },
10550 .block_erase = spi_block_erase_60,
10551 }, {
10552 .eraseblocks = { {64 * 1024, 1} },
10553 .block_erase = spi_block_erase_c7,
10554 }
10555 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010556 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010557 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10558 .write = spi_chip_write_256,
10559 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10560 .voltage = {2300, 3600},
10561 },
10562
10563 {
10564 .vendor = "PMC",
10565 .name = "Pm25LD010(C)",
10566 .bustype = BUS_SPI,
10567 .manufacture_id = PMC_ID,
10568 .model_id = PMC_PM25LD010,
10569 .total_size = 128,
10570 .page_size = 256,
10571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010572 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010573 .probe = probe_spi_rdid,
10574 .probe_timing = TIMING_ZERO,
10575 .block_erasers =
10576 {
10577 {
10578 .eraseblocks = { {4 * 1024, 32} },
10579 .block_erase = spi_block_erase_20,
10580 }, {
10581 .eraseblocks = { {4 * 1024, 32} },
10582 .block_erase = spi_block_erase_d7,
10583 }, {
10584 .eraseblocks = { {32 * 1024, 4} },
10585 .block_erase = spi_block_erase_d8,
10586 }, {
10587 .eraseblocks = { {128 * 1024, 1} },
10588 .block_erase = spi_block_erase_60,
10589 }, {
10590 .eraseblocks = { {128 * 1024, 1} },
10591 .block_erase = spi_block_erase_c7,
10592 }
10593 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010594 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010595 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10596 .write = spi_chip_write_256,
10597 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10598 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10599 },
10600
10601 {
10602 .vendor = "PMC",
10603 .name = "Pm25LD020(C)",
10604 .bustype = BUS_SPI,
10605 .manufacture_id = PMC_ID,
10606 .model_id = PMC_PM25LD020,
10607 .total_size = 256,
10608 .page_size = 256,
10609 .feature_bits = FEATURE_WRSR_WREN,
10610 .tested = TEST_UNTESTED,
10611 .probe = probe_spi_rdid,
10612 .probe_timing = TIMING_ZERO,
10613 .block_erasers =
10614 {
10615 {
10616 .eraseblocks = { {4 * 1024, 64} },
10617 .block_erase = spi_block_erase_20,
10618 }, {
10619 .eraseblocks = { {4 * 1024, 64} },
10620 .block_erase = spi_block_erase_d7,
10621 }, {
10622 .eraseblocks = { {64 * 1024, 4} },
10623 .block_erase = spi_block_erase_d8,
10624 }, {
10625 .eraseblocks = { {256 * 1024, 1} },
10626 .block_erase = spi_block_erase_60,
10627 }, {
10628 .eraseblocks = { {256 * 1024, 1} },
10629 .block_erase = spi_block_erase_c7,
10630 }
10631 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010632 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010633 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10634 .write = spi_chip_write_256,
10635 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10636 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
10637 },
10638
10639 {
10640 .vendor = "PMC",
10641 .name = "Pm25LD040(C)",
10642 .bustype = BUS_SPI,
10643 .manufacture_id = PMC_ID,
10644 .model_id = PMC_PM25LV040,
10645 .total_size = 512,
10646 .page_size = 256,
10647 .feature_bits = FEATURE_WRSR_WREN,
10648 .tested = TEST_UNTESTED,
10649 .probe = probe_spi_rdid,
10650 .probe_timing = TIMING_ZERO,
10651 .block_erasers =
10652 {
10653 {
10654 .eraseblocks = { {4 * 1024, 128} },
10655 .block_erase = spi_block_erase_20,
10656 }, {
10657 .eraseblocks = { {4 * 1024, 128} },
10658 .block_erase = spi_block_erase_d7,
10659 }, {
10660 .eraseblocks = { {64 * 1024, 8} },
10661 .block_erase = spi_block_erase_d8,
10662 }, {
10663 .eraseblocks = { {512 * 1024, 1} },
10664 .block_erase = spi_block_erase_60,
10665 }, {
10666 .eraseblocks = { {512 * 1024, 1} },
10667 .block_erase = spi_block_erase_c7,
10668 }
10669 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010670 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010671 .unlock = spi_disable_blockprotect,
10672 .write = spi_chip_write_256,
10673 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10674 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10675 },
10676
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010677 {
10678 .vendor = "PMC",
10679 .name = "Pm25LQ020",
10680 .bustype = BUS_SPI,
10681 .manufacture_id = PMC_ID,
10682 .model_id = PMC_PM25LQ020,
10683 .total_size = 256,
10684 .page_size = 256,
10685 /* OTP: 256B total; read 0x4B, write 0xB1 */
10686 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10687 .tested = TEST_UNTESTED,
10688 .probe = probe_spi_rdid,
10689 .probe_timing = TIMING_ZERO,
10690 .block_erasers =
10691 {
10692 {
10693 .eraseblocks = { {4 * 1024, 64} },
10694 .block_erase = spi_block_erase_20,
10695 }, {
10696 .eraseblocks = { {4 * 1024, 64} },
10697 .block_erase = spi_block_erase_d7,
10698 }, {
10699 .eraseblocks = { {64 * 1024, 4} },
10700 .block_erase = spi_block_erase_d8,
10701 }, {
10702 .eraseblocks = { {256 * 1024, 1} },
10703 .block_erase = spi_block_erase_60,
10704 }, {
10705 .eraseblocks = { {256 * 1024, 1} },
10706 .block_erase = spi_block_erase_c7,
10707 }
10708 },
10709 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10710 .unlock = spi_disable_blockprotect_bp3_srwd,
10711 .write = spi_chip_write_256,
10712 .read = spi_chip_read,
10713 .voltage = {2300, 3600},
10714 },
10715
10716 {
10717 .vendor = "PMC",
10718 .name = "Pm25LQ040",
10719 .bustype = BUS_SPI,
10720 .manufacture_id = PMC_ID,
10721 .model_id = PMC_PM25LQ040,
10722 .total_size = 512,
10723 .page_size = 256,
10724 /* OTP: 256B total; read 0x4B, write 0xB1 */
10725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10726 .tested = TEST_UNTESTED,
10727 .probe = probe_spi_rdid,
10728 .probe_timing = TIMING_ZERO,
10729 .block_erasers =
10730 {
10731 {
10732 .eraseblocks = { {4 * 1024, 128} },
10733 .block_erase = spi_block_erase_20,
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_60,
10743 }, {
10744 .eraseblocks = { {512 * 1024, 1} },
10745 .block_erase = spi_block_erase_c7,
10746 }
10747 },
10748 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10749 .unlock = spi_disable_blockprotect_bp3_srwd,
10750 .write = spi_chip_write_256,
10751 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10752 .voltage = {2300, 3600},
10753 },
10754
10755 {
10756 .vendor = "PMC",
10757 .name = "Pm25LQ080",
10758 .bustype = BUS_SPI,
10759 .manufacture_id = PMC_ID,
10760 .model_id = PMC_PM25LQ080,
10761 .total_size = 1024,
10762 .page_size = 256,
10763 /* OTP: 64B total; read 0x4B, write 0xB1 */
10764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10765 .tested = TEST_UNTESTED,
10766 .probe = probe_spi_rdid,
10767 .probe_timing = TIMING_ZERO,
10768 .block_erasers =
10769 {
10770 {
10771 .eraseblocks = { {4 * 1024, 256} },
10772 .block_erase = spi_block_erase_20,
10773 }, {
10774 .eraseblocks = { {4 * 1024, 256} },
10775 .block_erase = spi_block_erase_d7,
10776 }, {
10777 .eraseblocks = { {64 * 1024, 16} },
10778 .block_erase = spi_block_erase_d8,
10779 }, {
10780 .eraseblocks = { {1024 * 1024, 1} },
10781 .block_erase = spi_block_erase_60,
10782 }, {
10783 .eraseblocks = { {1024 * 1024, 1} },
10784 .block_erase = spi_block_erase_c7,
10785 }
10786 },
10787 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10788 .unlock = spi_disable_blockprotect_bp3_srwd,
10789 .write = spi_chip_write_256,
10790 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10791 .voltage = {2300, 3600},
10792 },
10793
10794 {
10795 .vendor = "PMC",
10796 .name = "Pm25LQ016",
10797 .bustype = BUS_SPI,
10798 .manufacture_id = PMC_ID,
10799 .model_id = PMC_PM25LQ016,
10800 .total_size = 2048,
10801 .page_size = 256,
10802 /* OTP: 256B total; read 0x4B, write 0xB1 */
10803 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10804 .tested = TEST_UNTESTED,
10805 .probe = probe_spi_rdid,
10806 .probe_timing = TIMING_ZERO,
10807 .block_erasers =
10808 {
10809 {
10810 .eraseblocks = { {4 * 1024, 512} },
10811 .block_erase = spi_block_erase_20,
10812 }, {
10813 .eraseblocks = { {4 * 1024, 512} },
10814 .block_erase = spi_block_erase_d7,
10815 }, {
10816 .eraseblocks = { {64 * 1024, 32} },
10817 .block_erase = spi_block_erase_d8,
10818 }, {
10819 .eraseblocks = { {2048 * 1024, 1} },
10820 .block_erase = spi_block_erase_60,
10821 }, {
10822 .eraseblocks = { {2048 * 1024, 1} },
10823 .block_erase = spi_block_erase_c7,
10824 }
10825 },
10826 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10827 .unlock = spi_disable_blockprotect_bp3_srwd,
10828 .write = spi_chip_write_256,
10829 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10830 .voltage = {2300, 3600},
10831 },
10832
10833 {
10834 .vendor = "PMC",
10835 .name = "Pm25LQ032C",
10836 .bustype = BUS_SPI,
10837 .manufacture_id = PMC_ID,
10838 .model_id = PMC_PM25LQ032C,
10839 .total_size = 4096,
10840 .page_size = 256,
10841 /* OTP: 64B total; read 0x4B, write 0xB1 */
10842 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010843 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010844 .probe = probe_spi_rdid,
10845 .probe_timing = TIMING_ZERO,
10846 .block_erasers =
10847 {
10848 {
10849 .eraseblocks = { {4 * 1024, 1024} },
10850 .block_erase = spi_block_erase_20,
10851 }, {
10852 .eraseblocks = { {4 * 1024, 1024} },
10853 .block_erase = spi_block_erase_d7,
10854 }, {
10855 .eraseblocks = { {64 * 1024, 64} },
10856 .block_erase = spi_block_erase_d8,
10857 }, {
10858 .eraseblocks = { {4096 * 1024, 1} },
10859 .block_erase = spi_block_erase_60,
10860 }, {
10861 .eraseblocks = { {4096 * 1024, 1} },
10862 .block_erase = spi_block_erase_c7,
10863 }
10864 },
10865 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10866 .unlock = spi_disable_blockprotect_bp3_srwd,
10867 .write = spi_chip_write_256,
10868 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10869 .voltage = {2700, 3600},
10870 },
10871
10872 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010873 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010874 .name = "Pm25LV512(A)",
10875 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010876 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010877 .model_id = PMC_PM25LV512,
10878 .total_size = 64,
10879 .page_size = 256,
10880 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010881 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010882 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010883 .probe_timing = TIMING_ZERO,
10884 .block_erasers =
10885 {
10886 {
10887 .eraseblocks = { {4 * 1024, 16} },
10888 .block_erase = spi_block_erase_d7,
10889 }, {
10890 .eraseblocks = { {32 * 1024, 2} },
10891 .block_erase = spi_block_erase_d8,
10892 }, {
10893 .eraseblocks = { {64 * 1024, 1} },
10894 .block_erase = spi_block_erase_c7,
10895 }
10896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010897 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010898 .unlock = spi_disable_blockprotect,
10899 .write = spi_chip_write_256,
10900 .read = spi_chip_read, /* Fast read (0x0B) supported */
10901 .voltage = {2700, 3600},
10902 },
10903
10904 {
10905 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010906 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010907 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010908 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010909 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010910 .total_size = 128,
10911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010912 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010913 .tested = TEST_OK_PREW,
10914 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010915 .probe_timing = TIMING_ZERO,
10916 .block_erasers =
10917 {
10918 {
10919 .eraseblocks = { {4 * 1024, 32} },
10920 .block_erase = spi_block_erase_d7,
10921 }, {
10922 .eraseblocks = { {32 * 1024, 4} },
10923 .block_erase = spi_block_erase_d8,
10924 }, {
10925 .eraseblocks = { {128 * 1024, 1} },
10926 .block_erase = spi_block_erase_c7,
10927 }
10928 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010929 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010930 .unlock = spi_disable_blockprotect,
10931 .write = spi_chip_write_256,
10932 .read = spi_chip_read, /* Fast read (0x0B) supported */
10933 .voltage = {2700, 3600},
10934 },
10935
10936 {
10937 .vendor = "PMC",
10938 .name = "Pm25LV010A",
10939 .bustype = BUS_SPI,
10940 .manufacture_id = PMC_ID,
10941 .model_id = PMC_PM25LV010,
10942 .total_size = 128,
10943 .page_size = 256,
10944 .feature_bits = FEATURE_WRSR_WREN,
10945 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010946 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010947 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010948 .block_erasers =
10949 {
10950 {
10951 .eraseblocks = { {4 * 1024, 32} },
10952 .block_erase = spi_block_erase_d7,
10953 }, {
10954 .eraseblocks = { {32 * 1024, 4} },
10955 .block_erase = spi_block_erase_d8,
10956 }, {
10957 .eraseblocks = { {128 * 1024, 1} },
10958 .block_erase = spi_block_erase_c7,
10959 }
10960 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010961 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010962 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010963 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010964 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010965 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010966 },
10967
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010968 {
10969 .vendor = "PMC",
10970 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010971 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010972 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010973 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010974 .total_size = 256,
10975 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010976 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010977 .tested = TEST_UNTESTED,
10978 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010979 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010980 .block_erasers =
10981 {
10982 {
10983 .eraseblocks = { {4 * 1024, 64} },
10984 .block_erase = spi_block_erase_d7,
10985 }, {
10986 .eraseblocks = { {64 * 1024, 4} },
10987 .block_erase = spi_block_erase_d8,
10988 }, {
10989 .eraseblocks = { {256 * 1024, 1} },
10990 .block_erase = spi_block_erase_c7,
10991 }
10992 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010993 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010994 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010995 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010996 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010997 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010998 },
10999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011000 {
11001 .vendor = "PMC",
11002 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011003 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011004 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011005 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011006 .total_size = 512,
11007 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011008 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011009 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011010 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011011 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011012 .block_erasers =
11013 {
11014 {
11015 .eraseblocks = { {4 * 1024, 128} },
11016 .block_erase = spi_block_erase_d7,
11017 }, {
11018 .eraseblocks = { {64 * 1024, 8} },
11019 .block_erase = spi_block_erase_d8,
11020 }, {
11021 .eraseblocks = { {512 * 1024, 1} },
11022 .block_erase = spi_block_erase_c7,
11023 }
11024 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011025 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011026 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011027 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011028 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011029 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011030 },
11031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011032 {
11033 .vendor = "PMC",
11034 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011035 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011036 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011037 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011038 .total_size = 1024,
11039 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011040 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011041 .tested = TEST_UNTESTED,
11042 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011043 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011044 .block_erasers =
11045 {
11046 {
11047 .eraseblocks = { {4 * 1024, 256} },
11048 .block_erase = spi_block_erase_d7,
11049 }, {
11050 .eraseblocks = { {4 * 1024, 256} },
11051 .block_erase = spi_block_erase_20,
11052 }, {
11053 .eraseblocks = { {64 * 1024, 16} },
11054 .block_erase = spi_block_erase_d8,
11055 }, {
11056 .eraseblocks = { {1024 * 1024, 1} },
11057 .block_erase = spi_block_erase_60,
11058 }, {
11059 .eraseblocks = { {1024 * 1024, 1} },
11060 .block_erase = spi_block_erase_c7,
11061 }
11062 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011063 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011064 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011065 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011066 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011067 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011068 },
11069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011070 {
11071 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011072 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011073 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011074 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011075 .model_id = PMC_PM25LV016B,
11076 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011077 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011078 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011079 .tested = TEST_UNTESTED,
11080 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011081 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011082 .block_erasers =
11083 {
11084 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011085 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000011086 .block_erase = spi_block_erase_d7,
11087 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011088 .eraseblocks = { {4 * 1024, 512} },
11089 .block_erase = spi_block_erase_20,
11090 }, {
11091 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000011092 .block_erase = spi_block_erase_d8,
11093 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011094 .eraseblocks = { {2 * 1024 * 1024, 1} },
11095 .block_erase = spi_block_erase_60,
11096 }, {
11097 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011098 .block_erase = spi_block_erase_c7,
11099 }
11100 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011101 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011103 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011104 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011106 },
11107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011108 {
11109 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011110 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011111 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011112 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011113 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011114 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011115 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011116 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011117 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011118 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011119 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011120 .block_erasers =
11121 {
11122 {
11123 .eraseblocks = {
11124 {128 * 1024, 1},
11125 {96 * 1024, 1},
11126 {8 * 1024, 2},
11127 {16 * 1024, 1},
11128 },
Sean Nelson35727f72010-01-28 23:55:12 +000011129 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011130 }, {
11131 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011132 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011133 },
11134 },
Sean Nelson35727f72010-01-28 23:55:12 +000011135 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011136 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011137 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011138 },
11139
11140 {
11141 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011142 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011143 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011144 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011145 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011146 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011147 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011148 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011149 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011150 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011151 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011152 .block_erasers =
11153 {
11154 {
11155 .eraseblocks = {
11156 {16 * 1024, 1},
11157 {8 * 1024, 2},
11158 {96 * 1024, 1},
11159 {128 * 1024, 1},
11160 },
Sean Nelson35727f72010-01-28 23:55:12 +000011161 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011162 }, {
11163 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011164 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011165 },
11166 },
Sean Nelson35727f72010-01-28 23:55:12 +000011167 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011168 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011169 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011170 },
11171
11172 {
11173 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011174 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011175 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011176 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011177 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011178 .total_size = 128,
11179 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011180 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011181 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011182 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011183 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011184 .block_erasers =
11185 {
11186 {
11187 .eraseblocks = { {4 * 1024, 32} },
11188 .block_erase = erase_sector_jedec,
11189 }, {
11190 .eraseblocks = { {64 * 1024, 2} },
11191 .block_erase = erase_block_jedec,
11192 }, {
11193 .eraseblocks = { {128 * 1024, 1} },
11194 .block_erase = erase_chip_block_jedec,
11195 }
11196 },
Sean Nelson35727f72010-01-28 23:55:12 +000011197 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011199 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011200 },
11201
11202 {
11203 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011204 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011205 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011206 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011207 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011208 .total_size = 256,
11209 .page_size = 4096,
11210 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11211 .tested = TEST_UNTESTED,
11212 .probe = probe_jedec,
11213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11214 .block_erasers =
11215 {
11216 {
11217 .eraseblocks = { {4 * 1024, 64} },
11218 .block_erase = erase_sector_jedec,
11219 }, {
11220 .eraseblocks = { {64 * 1024, 4} },
11221 .block_erase = erase_block_jedec,
11222 }, {
11223 .eraseblocks = { {256 * 1024, 1} },
11224 .block_erase = erase_chip_block_jedec,
11225 }
11226 },
11227 .write = write_jedec_1,
11228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011229 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011230 },
11231
11232 {
11233 .vendor = "PMC",
11234 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011235 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011236 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011237 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011238 .total_size = 512,
11239 .page_size = 4096,
11240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011241 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011242 .probe = probe_jedec,
11243 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11244 .block_erasers =
11245 {
11246 {
11247 .eraseblocks = { {4 * 1024, 128} },
11248 .block_erase = erase_sector_jedec,
11249 }, {
11250 .eraseblocks = { {64 * 1024, 8} },
11251 .block_erase = erase_block_jedec,
11252 }, {
11253 .eraseblocks = { {512 * 1024, 1} },
11254 .block_erase = erase_chip_block_jedec,
11255 }
11256 },
11257 .write = write_jedec_1,
11258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011259 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011260 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011261
11262 {
11263 .vendor = "PMC",
11264 .name = "Pm39LV512",
11265 .bustype = BUS_PARALLEL,
11266 .manufacture_id = PMC_ID_NOPREFIX,
11267 .model_id = PMC_PM39LV512,
11268 .total_size = 64,
11269 .page_size = 4096,
11270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11271 .tested = TEST_OK_PREW,
11272 .probe = probe_jedec,
11273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11274 .block_erasers =
11275 {
11276 {
11277 .eraseblocks = { {4 * 1024, 16} },
11278 .block_erase = erase_sector_jedec,
11279 }, {
11280 .eraseblocks = { {64 * 1024, 1} },
11281 .block_erase = erase_block_jedec,
11282 }, {
11283 .eraseblocks = { {64 * 1024, 1} },
11284 .block_erase = erase_chip_block_jedec,
11285 }
11286 },
11287 .write = write_jedec_1,
11288 .read = read_memmapped,
11289 .voltage = {2700, 3600},
11290 },
11291
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011292 {
11293 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011294 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011295 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011296 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011297 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011298 .total_size = 256,
11299 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011300 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011301 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011302 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011303 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011304 .block_erasers =
11305 {
11306 {
11307 .eraseblocks = { {4 * 1024, 64} },
11308 .block_erase = erase_sector_jedec,
11309 }, {
11310 .eraseblocks = { {16 * 1024, 16} },
11311 .block_erase = erase_block_jedec,
11312 }, {
11313 .eraseblocks = { {256 * 1024, 1} },
11314 .block_erase = erase_chip_block_jedec,
11315 }
11316 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011317 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011321 },
11322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011323 {
11324 .vendor = "PMC",
11325 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011326 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011327 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011328 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011329 .total_size = 512,
11330 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011331 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011332 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011333 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011334 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011335 .block_erasers =
11336 {
11337 {
11338 .eraseblocks = { {4 * 1024, 128} },
11339 .block_erase = erase_sector_jedec,
11340 }, {
11341 .eraseblocks = { {64 * 1024, 8} },
11342 .block_erase = erase_block_jedec,
11343 }, {
11344 .eraseblocks = { {512 * 1024, 1} },
11345 .block_erase = erase_chip_block_jedec,
11346 }
11347 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011348 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011349 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011350 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011351 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011352 },
11353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011354 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011355 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011356 .name = "LE25FW106",
11357 .bustype = BUS_SPI,
11358 .manufacture_id = SANYO_ID,
11359 .model_id = SANYO_LE25FW106,
11360 .total_size = 128,
11361 .page_size = 256,
11362 .feature_bits = FEATURE_WRSR_WREN,
11363 .tested = TEST_OK_PREW,
11364 .probe = probe_spi_res2,
11365 .probe_timing = TIMING_ZERO,
11366 .block_erasers = {
11367 {
11368 .eraseblocks = { {2 * 1024, 64} },
11369 .block_erase = spi_block_erase_d7,
11370 }, {
11371 .eraseblocks = { {32 * 1024, 4} },
11372 .block_erase = spi_block_erase_d8,
11373 }, {
11374 .eraseblocks = { {128 * 1024, 1} },
11375 .block_erase = spi_block_erase_c7,
11376 }
11377 },
11378 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11379 .unlock = spi_disable_blockprotect_bp1_srwd,
11380 .write = spi_chip_write_256,
11381 .read = spi_chip_read,
11382 .voltage = {2700, 3600},
11383 },
11384
11385 {
11386 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011387 .name = "LE25FW406A",
11388 .bustype = BUS_SPI,
11389 .manufacture_id = SANYO_ID,
11390 .model_id = SANYO_LE25FW406A,
11391 .total_size = 512,
11392 .page_size = 256,
11393 .feature_bits = FEATURE_WRSR_WREN,
11394 .tested = TEST_OK_PREW,
11395 .probe = probe_spi_res2,
11396 .probe_timing = TIMING_ZERO,
11397 .block_erasers = {
11398 {
11399 .eraseblocks = { {4 * 1024, 128} },
11400 .block_erase = spi_block_erase_d7,
11401 }, {
11402 .eraseblocks = { {64 * 1024, 8} },
11403 .block_erase = spi_block_erase_d8,
11404 }, {
11405 .eraseblocks = { {512 * 1024, 1} },
11406 .block_erase = spi_block_erase_c7,
11407 }
11408 },
11409 .printlock = spi_prettyprint_status_register_plain,
11410 .unlock = spi_disable_blockprotect,
11411 .write = spi_chip_write_256,
11412 .read = spi_chip_read,
11413 .voltage = {2700, 3600},
11414 },
11415
11416 {
11417 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011418 .name = "LE25FU406B",
11419 .bustype = BUS_SPI,
11420 .manufacture_id = SANYO_ID,
11421 .model_id = SANYO_LE25FU406B,
11422 .total_size = 512,
11423 .page_size = 256,
11424 .feature_bits = FEATURE_WRSR_WREN,
11425 .tested = TEST_OK_PREW,
11426 .probe = probe_spi_res2,
11427 .probe_timing = TIMING_ZERO,
11428 .block_erasers = {
11429 {
11430 .eraseblocks = { {4 * 1024, 128} },
11431 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011432 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011433 .eraseblocks = { {64 * 1024, 8} },
11434 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011435 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011436 .eraseblocks = { {512 * 1024, 1} },
11437 .block_erase = spi_block_erase_c7,
11438 }
11439 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011440 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011441 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11442 .write = spi_chip_write_256,
11443 .read = spi_chip_read,
11444 .voltage = {2300, 3600},
11445 },
11446
11447 {
11448 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011449 .name = "LE25FU406C/LE25U40CMC",
11450 .bustype = BUS_SPI,
11451 .manufacture_id = SANYO_ID,
11452 .model_id = SANYO_LE25FU406C,
11453 .total_size = 512,
11454 .page_size = 256,
11455 .feature_bits = FEATURE_WRSR_WREN,
11456 .tested = TEST_OK_PR,
11457 .probe = probe_spi_rdid,
11458 .probe_timing = TIMING_ZERO,
11459 .block_erasers = {
11460 {
11461 .eraseblocks = { {4 * 1024, 128} },
11462 .block_erase = spi_block_erase_20,
11463 }, {
11464 .eraseblocks = { {4 * 1024, 128} },
11465 .block_erase = spi_block_erase_d7,
11466 }, {
11467 .eraseblocks = { {64 * 1024, 8} },
11468 .block_erase = spi_block_erase_d8,
11469 }, {
11470 .eraseblocks = { {512 * 1024, 1} },
11471 .block_erase = spi_block_erase_60,
11472 }, {
11473 .eraseblocks = { {512 * 1024, 1} },
11474 .block_erase = spi_block_erase_c7,
11475 }
11476 },
11477 .printlock = spi_prettyprint_status_register_bp2_srwd,
11478 .unlock = spi_disable_blockprotect_bp2_srwd,
11479 .write = spi_chip_write_256,
11480 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11481 .voltage = {2300, 3600},
11482 },
11483
11484 {
11485 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011486 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011487 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011488 .manufacture_id = SANYO_ID,
11489 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011490 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011491 .page_size = 256,
11492 .tested = TEST_UNTESTED,
11493 .probe = probe_spi_rdid,
11494 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011495 .block_erasers =
11496 {
11497 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011498 .eraseblocks = { {256, 1024} },
11499 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011500 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011501 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011502 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011503 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011504 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011505 .block_erase = spi_block_erase_c7,
11506 }
11507 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011508 .printlock = spi_prettyprint_status_register_default_welwip,
11509 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011510 .write = spi_chip_write_256,
11511 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011512 .voltage = {2700, 3600},
11513 },
11514
11515 {
11516 .vendor = "Sanyo",
11517 .name = "LE25FW403A",
11518 .bustype = BUS_SPI,
11519 .manufacture_id = SANYO_ID,
11520 .model_id = SANYO_LE25FW403A,
11521 .total_size = 512,
11522 .page_size = 256,
11523 .tested = TEST_UNTESTED,
11524 .probe = probe_spi_rdid,
11525 .probe_timing = TIMING_ZERO,
11526 .block_erasers = {
11527 {
11528 .eraseblocks = { {256, 2 * 1024} },
11529 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011530 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011531 .eraseblocks = { {64 * 1024, 8} },
11532 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011533 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011534 .eraseblocks = { {512 * 1024, 1} },
11535 .block_erase = spi_block_erase_c7,
11536 }
11537 },
11538 .printlock = spi_prettyprint_status_register_default_welwip,
11539 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11540 .write = spi_chip_write_256,
11541 .read = spi_chip_read,
11542 .voltage = {2700, 3600},
11543 },
11544
11545 {
11546 .vendor = "Sanyo",
11547 .name = "LE25FW418A",
11548 .bustype = BUS_SPI,
11549 .manufacture_id = SANYO_ID,
11550 .model_id = SANYO_LE25FW418A,
11551 .total_size = 512,
11552 .page_size = 256,
11553 .feature_bits = FEATURE_WRSR_WREN,
11554 .tested = TEST_UNTESTED,
11555 .probe = probe_spi_res2,
11556 .probe_timing = TIMING_ZERO,
11557 .block_erasers = {
11558 {
11559 .eraseblocks = { {4 * 1024, 128} },
11560 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011561 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011562 .eraseblocks = { {64 * 1024, 8} },
11563 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011564 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011565 .eraseblocks = { {512 * 1024, 1} },
11566 .block_erase = spi_block_erase_c7,
11567 }
11568 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011569 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011570 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11571 .write = spi_chip_write_256,
11572 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11573 .voltage = {2700, 3600},
11574 },
11575
11576 {
11577 .vendor = "Sanyo",
11578 .name = "LE25FW806",
11579 .bustype = BUS_SPI,
11580 .manufacture_id = SANYO_ID,
11581 .model_id = SANYO_LE25FW806,
11582 .total_size = 1024,
11583 .page_size = 256,
11584 .feature_bits = FEATURE_WRSR_WREN,
11585 .tested = TEST_UNTESTED,
11586 .probe = probe_spi_res2,
11587 .probe_timing = TIMING_ZERO,
11588 .block_erasers = {
11589 {
11590 .eraseblocks = { {4 * 1024, 256} },
11591 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011592 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011593 .eraseblocks = { {4 * 1024, 256} },
11594 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011595 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011596 .eraseblocks = { {64 * 1024, 16} },
11597 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011598 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011599 .eraseblocks = { {1024 * 1024, 1} },
11600 .block_erase = spi_block_erase_c7,
11601 }
11602 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011603 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011604 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11605 .write = spi_chip_write_256,
11606 .read = spi_chip_read,
11607 .voltage = {2700, 3600},
11608 },
11609
11610 {
11611 .vendor = "Sanyo",
11612 .name = "LE25FW808",
11613 .bustype = BUS_SPI,
11614 .manufacture_id = SANYO_ID,
11615 .model_id = SANYO_LE25FW808,
11616 .total_size = 1024,
11617 .page_size = 256,
11618 .feature_bits = FEATURE_WRSR_WREN,
11619 .tested = TEST_UNTESTED,
11620 .probe = probe_spi_res2,
11621 .probe_timing = TIMING_ZERO,
11622 .block_erasers = {
11623 {
11624 .eraseblocks = { {8 * 1024, 128} },
11625 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011626 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011627 .eraseblocks = { {64 * 1024, 16} },
11628 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011629 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011630 .eraseblocks = { {1024 * 1024, 1} },
11631 .block_erase = spi_block_erase_c7,
11632 }
11633 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011634 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011635 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11636 .write = spi_chip_write_256,
11637 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11638 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011639 },
11640
11641 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011642 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011643 .name = "LH28F008BJT-BTLZ1",
11644 .bustype = BUS_PARALLEL,
11645 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011646 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011647 .total_size = 1024,
11648 .page_size = 64 * 1024,
11649 .tested = TEST_OK_PREW,
11650 .probe = probe_82802ab,
11651 .probe_timing = TIMING_ZERO,
11652 .block_erasers =
11653 {
11654 {
11655 .eraseblocks = {
11656 {8 * 1024, 8},
11657 {64 * 1024, 15}
11658 },
11659 .block_erase = erase_block_82802ab,
11660 }, {
11661 .eraseblocks = { {1024 * 1024, 1} },
11662 .block_erase = erase_sector_49lfxxxc,
11663 }
11664 },
11665 .unlock = unlock_lh28f008bjt,
11666 .write = write_82802ab,
11667 .read = read_memmapped,
11668 .voltage = {2700, 3600},
11669 },
11670
11671 {
11672 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011673 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011674 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011675 .manufacture_id = SHARP_ID,
11676 .model_id = SHARP_LHF00L04,
11677 .total_size = 1024,
11678 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011679 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011680 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011681 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011682 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011683 .block_erasers =
11684 {
11685 {
11686 .eraseblocks = {
11687 {64 * 1024, 15},
11688 {8 * 1024, 8}
11689 },
Sean Nelson28accc22010-03-19 18:47:06 +000011690 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011691 }, {
11692 .eraseblocks = {
11693 {1024 * 1024, 1}
11694 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011695 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011696 },
11697 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011698 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011699 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011700 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011701 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011702 },
11703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011704 {
11705 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011706 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011707 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011708 .manufacture_id = SPANSION_ID,
11709 .model_id = SPANSION_S25FL004A,
11710 .total_size = 512,
11711 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011712 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011713 .tested = TEST_UNTESTED,
11714 .probe = probe_spi_rdid,
11715 .probe_timing = TIMING_ZERO,
11716 .block_erasers =
11717 {
11718 {
11719 .eraseblocks = { {64 * 1024, 8} },
11720 .block_erase = spi_block_erase_d8,
11721 }, {
11722 .eraseblocks = { {512 * 1024, 1} },
11723 .block_erase = spi_block_erase_c7,
11724 }
11725 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011726 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011727 .unlock = spi_disable_blockprotect,
11728 .write = spi_chip_write_256,
11729 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011730 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011731 },
11732
11733 {
11734 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011735 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011736 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011737 .manufacture_id = SPANSION_ID,
11738 .model_id = SPANSION_S25FL008A,
11739 .total_size = 1024,
11740 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011741 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011742 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011743 .probe = probe_spi_rdid,
11744 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011745 .block_erasers =
11746 {
11747 {
11748 .eraseblocks = { {64 * 1024, 16} },
11749 .block_erase = spi_block_erase_d8,
11750 }, {
11751 .eraseblocks = { {1024 * 1024, 1} },
11752 .block_erase = spi_block_erase_c7,
11753 }
11754 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011755 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011756 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011757 .write = spi_chip_write_256,
11758 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011759 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011760 },
11761
11762 {
11763 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011764 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011766 .manufacture_id = SPANSION_ID,
11767 .model_id = SPANSION_S25FL016A,
11768 .total_size = 2048,
11769 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011770 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011771 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011772 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011773 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011774 .block_erasers =
11775 {
11776 {
11777 .eraseblocks = { {64 * 1024, 32} },
11778 .block_erase = spi_block_erase_d8,
11779 }, {
11780 .eraseblocks = { {2 * 1024 * 1024, 1} },
11781 .block_erase = spi_block_erase_c7,
11782 }
11783 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011786 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011788 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011789 },
11790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011791 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011792 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011793 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011794 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011795 .manufacture_id = SPANSION_ID,
11796 .model_id = SPANSION_S25FL032A,
11797 .total_size = 4096,
11798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011799 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011800 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011801 .probe = probe_spi_rdid,
11802 .probe_timing = TIMING_ZERO,
11803 .block_erasers =
11804 {
11805 {
11806 .eraseblocks = { {64 * 1024, 64} },
11807 .block_erase = spi_block_erase_d8,
11808 }, {
11809 .eraseblocks = { {4 * 1024 * 1024, 1} },
11810 .block_erase = spi_block_erase_c7,
11811 }
11812 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011813 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011814 .unlock = spi_disable_blockprotect,
11815 .write = spi_chip_write_256,
11816 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011817 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011818 },
11819
11820 {
11821 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011822 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011823 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011824 .manufacture_id = SPANSION_ID,
11825 .model_id = SPANSION_S25FL064A,
11826 .total_size = 8192,
11827 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011828 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011829 .tested = TEST_OK_PREW,
11830 .probe = probe_spi_rdid,
11831 .probe_timing = TIMING_ZERO,
11832 .block_erasers =
11833 {
11834 {
11835 .eraseblocks = { {64 * 1024, 128} },
11836 .block_erase = spi_block_erase_d8,
11837 }, {
11838 .eraseblocks = { {8 * 1024 * 1024, 1} },
11839 .block_erase = spi_block_erase_c7,
11840 }
11841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011843 .unlock = spi_disable_blockprotect,
11844 .write = spi_chip_write_256,
11845 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011846 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011847 },
11848
11849 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011850 .vendor = "Spansion",
11851 .name = "S25FL204K",
11852 .bustype = BUS_SPI,
11853 .manufacture_id = SPANSION_ID,
11854 .model_id = SPANSION_S25FL204,
11855 .total_size = 512,
11856 .page_size = 256,
11857 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011858 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011859 .probe = probe_spi_rdid,
11860 .probe_timing = TIMING_ZERO,
11861 .block_erasers = {
11862 {
11863 .eraseblocks = { {4 * 1024, 128} },
11864 .block_erase = spi_block_erase_20,
11865 }, {
11866 .eraseblocks = { {64 * 1024, 8} },
11867 .block_erase = spi_block_erase_d8,
11868 }, {
11869 .eraseblocks = { { 512 * 1024, 1} },
11870 .block_erase = spi_block_erase_60,
11871 }, {
11872 .eraseblocks = { { 512 * 1024, 1} },
11873 .block_erase = spi_block_erase_c7,
11874 }
11875 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011876 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011877 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011878 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011879 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011880 .voltage = {2700, 3600},
11881 },
11882
11883 {
11884 .vendor = "Spansion",
11885 .name = "S25FL208K",
11886 .bustype = BUS_SPI,
11887 .manufacture_id = SPANSION_ID,
11888 .model_id = SPANSION_S25FL208,
11889 .total_size = 1024,
11890 .page_size = 256,
11891 .feature_bits = FEATURE_WRSR_WREN,
11892 .tested = TEST_UNTESTED,
11893 .probe = probe_spi_rdid,
11894 .probe_timing = TIMING_ZERO,
11895 .block_erasers = {
11896 {
11897 .eraseblocks = { {4 * 1024, 256} },
11898 .block_erase = spi_block_erase_20,
11899 }, {
11900 .eraseblocks = { {64 * 1024, 16} },
11901 .block_erase = spi_block_erase_d8,
11902 }, {
11903 .eraseblocks = { { 1024 * 1024, 1} },
11904 .block_erase = spi_block_erase_60,
11905 }, {
11906 .eraseblocks = { { 1024 * 1024, 1} },
11907 .block_erase = spi_block_erase_c7,
11908 }
11909 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011910 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011911 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011912 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011913 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011914 .voltage = {2700, 3600},
11915 },
11916
11917 {
11918 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011919 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011920 .bustype = BUS_SPI,
11921 .manufacture_id = SPANSION_ID,
11922 .model_id = SPANSION_S25FL216,
11923 .total_size = 2048,
11924 .page_size = 256,
11925 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11926 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11927 .tested = TEST_UNTESTED,
11928 .probe = probe_spi_rdid,
11929 .probe_timing = TIMING_ZERO,
11930 .block_erasers = {
11931 {
11932 .eraseblocks = { {4 * 1024, 512} },
11933 .block_erase = spi_block_erase_20,
11934 }, {
11935 .eraseblocks = { {64 * 1024, 32} },
11936 .block_erase = spi_block_erase_d8,
11937 }, {
11938 .eraseblocks = { { 2048 * 1024, 1} },
11939 .block_erase = spi_block_erase_60,
11940 }, {
11941 .eraseblocks = { { 2048 * 1024, 1} },
11942 .block_erase = spi_block_erase_c7,
11943 }
11944 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011945 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011946 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011947 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011948 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011949 .voltage = {2700, 3600},
11950 },
11951
11952 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011953 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011954 .name = "S25FL132K",
11955 .bustype = BUS_SPI,
11956 .manufacture_id = SPANSION_ID,
11957 .model_id = SPANSION_S25FL132K,
11958 .total_size = 4096,
11959 .page_size = 256,
11960 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11962 .tested = TEST_UNTESTED,
11963 .probe = probe_spi_rdid,
11964 .probe_timing = TIMING_ZERO,
11965 .block_erasers = {
11966 {
11967 .eraseblocks = { {4 * 1024, 1024} },
11968 .block_erase = spi_block_erase_20,
11969 }, {
11970 .eraseblocks = { {64 * 1024, 64} },
11971 .block_erase = spi_block_erase_d8,
11972 }, {
11973 .eraseblocks = { { 4096 * 1024, 1} },
11974 .block_erase = spi_block_erase_60,
11975 }, {
11976 .eraseblocks = { { 4096 * 1024, 1} },
11977 .block_erase = spi_block_erase_c7,
11978 }
11979 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011980 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011981 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11982 .write = spi_chip_write_256,
11983 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11984 .voltage = {2700, 3600},
11985 },
11986
11987 {
11988 .vendor = "Spansion",
11989 .name = "S25FL164K",
11990 .bustype = BUS_SPI,
11991 .manufacture_id = SPANSION_ID,
11992 .model_id = SPANSION_S25FL164K,
11993 .total_size = 8192,
11994 .page_size = 256,
11995 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11996 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11997 .tested = TEST_OK_PREW,
11998 .probe = probe_spi_rdid,
11999 .probe_timing = TIMING_ZERO,
12000 .block_erasers = {
12001 {
12002 .eraseblocks = { {4 * 1024, 2048} },
12003 .block_erase = spi_block_erase_20,
12004 }, {
12005 .eraseblocks = { {64 * 1024, 128} },
12006 .block_erase = spi_block_erase_d8,
12007 }, {
12008 .eraseblocks = { { 8192 * 1024, 1} },
12009 .block_erase = spi_block_erase_60,
12010 }, {
12011 .eraseblocks = { { 8192 * 1024, 1} },
12012 .block_erase = spi_block_erase_c7,
12013 }
12014 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012015 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012016 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12017 .write = spi_chip_write_256,
12018 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12019 .voltage = {2700, 3600},
12020 },
12021
12022 {
12023 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000012024 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12025 .bustype = BUS_SPI,
12026 .manufacture_id = SPANSION_ID,
12027 .model_id = SPANSION_S25FL128,
12028 .total_size = 16384,
12029 .page_size = 256,
12030 /* supports 4B addressing */
12031 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12032 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12033 .tested = TEST_OK_PREW,
12034 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
12035 .probe = probe_spi_rdid,
12036 .probe_timing = TIMING_ZERO,
12037 .block_erasers = {
12038 {
12039 /* This chip supports erasing of 32 so-called "parameter sectors" with
12040 * opcode 0x20 which may be configured to be on top or bottom of the address
12041 * space. Trying to access an address outside these 4kB blocks does have no
12042 * effect on the memory contents, e.g.
12043 .eraseblocks = {
12044 {4 * 1024, 32},
12045 {64 * 1024, 254} // inaccessible
12046 },
12047 .block_erase = spi_block_erase_20,
12048 }, { */
12049 .eraseblocks = { { 64 * 1024, 256} },
12050 .block_erase = spi_block_erase_d8,
12051 }, {
12052 .eraseblocks = { { 16384 * 1024, 1} },
12053 .block_erase = spi_block_erase_60,
12054 }, {
12055 .eraseblocks = { { 16384 * 1024, 1} },
12056 .block_erase = spi_block_erase_c7,
12057 }
12058 },
12059 .printlock = spi_prettyprint_status_register_bp2_srwd,
12060 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12061 .write = spi_chip_write_256, /* Multi I/O supported */
12062 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12063 .voltage = {2700, 3600},
12064 },
12065
12066 {
12067 .vendor = "Spansion",
12068 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
12069 .bustype = BUS_SPI,
12070 .manufacture_id = SPANSION_ID,
12071 .model_id = SPANSION_S25FL128,
12072 .total_size = 16384,
12073 .page_size = 512,
12074 /* supports 4B addressing */
12075 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12077 .tested = TEST_UNTESTED,
12078 .probe = probe_spi_rdid,
12079 .probe_timing = TIMING_ZERO,
12080 .block_erasers = {
12081 {
12082 .eraseblocks = { {256 * 1024, 64} },
12083 .block_erase = spi_block_erase_d8,
12084 }, {
12085 .eraseblocks = { { 16384 * 1024, 1} },
12086 .block_erase = spi_block_erase_60,
12087 }, {
12088 .eraseblocks = { { 16384 * 1024, 1} },
12089 .block_erase = spi_block_erase_c7,
12090 }
12091 },
12092 .printlock = spi_prettyprint_status_register_bp2_srwd,
12093 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12094 .write = spi_chip_write_256, /* Multi I/O supported */
12095 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12096 .voltage = {2700, 3600},
12097 },
12098
12099 {
12100 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000012101 .name = "S25FL128P......0", /* uniform 64 kB sectors */
12102 .bustype = BUS_SPI,
12103 .manufacture_id = SPANSION_ID,
12104 .model_id = SPANSION_S25FL128,
12105 .total_size = 16384,
12106 .page_size = 256,
12107 .feature_bits = FEATURE_WRSR_WREN,
12108 .tested = TEST_UNTESTED,
12109 .probe = probe_spi_rdid,
12110 .probe_timing = TIMING_ZERO,
12111 .block_erasers = {
12112 {
12113 .eraseblocks = { {64 * 1024, 256} },
12114 .block_erase = spi_block_erase_20,
12115 }, {
12116 .eraseblocks = { {64 * 1024, 256} },
12117 .block_erase = spi_block_erase_d8,
12118 }, {
12119 .eraseblocks = { { 16384 * 1024, 1} },
12120 .block_erase = spi_block_erase_60,
12121 }, {
12122 .eraseblocks = { { 16384 * 1024, 1} },
12123 .block_erase = spi_block_erase_c7,
12124 }
12125 },
12126 .printlock = spi_prettyprint_status_register_bp3_srwd,
12127 .unlock = spi_disable_blockprotect_bp3_srwd,
12128 .write = spi_chip_write_256,
12129 .read = spi_chip_read, /* Fast read (0x0B) supported */
12130 .voltage = {2700, 3600},
12131 },
12132
12133 {
12134 .vendor = "Spansion",
12135 .name = "S25FL128P......1", /* uniform 256kB sectors */
12136 .bustype = BUS_SPI,
12137 .manufacture_id = SPANSION_ID,
12138 .model_id = SPANSION_S25FL128,
12139 .total_size = 16384,
12140 .page_size = 256,
12141 .feature_bits = FEATURE_WRSR_WREN,
12142 .tested = TEST_UNTESTED,
12143 .probe = probe_spi_rdid,
12144 .probe_timing = TIMING_ZERO,
12145 .block_erasers = {
12146 {
12147 .eraseblocks = { {256 * 1024, 64} },
12148 .block_erase = spi_block_erase_d8,
12149 }, {
12150 .eraseblocks = { { 16384 * 1024, 1} },
12151 .block_erase = spi_block_erase_c7,
12152 }
12153 },
12154 .printlock = spi_prettyprint_status_register_bp2_srwd,
12155 .unlock = spi_disable_blockprotect_bp2_srwd,
12156 .write = spi_chip_write_256,
12157 .read = spi_chip_read, /* Fast read (0x0B) supported */
12158 .voltage = {2700, 3600},
12159 },
12160
12161 {
12162 .vendor = "Spansion",
12163 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012164 .bustype = BUS_SPI,
12165 .manufacture_id = SPANSION_ID,
12166 .model_id = SPANSION_S25FL128,
12167 .total_size = 16384,
12168 .page_size = 256,
12169 /* supports 4B addressing */
12170 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012172 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012173 .probe = probe_spi_rdid,
12174 .probe_timing = TIMING_ZERO,
12175 .block_erasers = {
12176 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012177 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12178 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12179 * have no effect on the memory contents, but sets a flag in the SR.
12180 .eraseblocks = {
12181 {4 * 1024, 32},
12182 {64 * 1024, 254} // inaccessible
12183 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012184 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012185 }, { */
12186 .eraseblocks = { { 64 * 1024, 256} },
12187 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012188 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012189 .eraseblocks = { { 16384 * 1024, 1} },
12190 .block_erase = spi_block_erase_60,
12191 }, {
12192 .eraseblocks = { { 16384 * 1024, 1} },
12193 .block_erase = spi_block_erase_c7,
12194 }
12195 },
12196 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12197 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12198 .write = spi_chip_write_256, /* Multi I/O supported */
12199 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12200 .voltage = {2700, 3600},
12201 },
12202
12203 {
12204 .vendor = "Spansion",
12205 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12206 .bustype = BUS_SPI,
12207 .manufacture_id = SPANSION_ID,
12208 .model_id = SPANSION_S25FL128,
12209 .total_size = 16384,
12210 .page_size = 512,
12211 /* supports 4B addressing */
12212 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12213 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12214 .tested = TEST_UNTESTED,
12215 .probe = probe_spi_rdid,
12216 .probe_timing = TIMING_ZERO,
12217 .block_erasers = {
12218 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012219 .eraseblocks = { {256 * 1024, 64} },
12220 .block_erase = spi_block_erase_d8,
12221 }, {
12222 .eraseblocks = { { 16384 * 1024, 1} },
12223 .block_erase = spi_block_erase_60,
12224 }, {
12225 .eraseblocks = { { 16384 * 1024, 1} },
12226 .block_erase = spi_block_erase_c7,
12227 }
12228 },
12229 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12230 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12231 .write = spi_chip_write_256, /* Multi I/O supported */
12232 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12233 .voltage = {2700, 3600},
12234 },
12235
12236 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012237 .vendor = "Spansion",
12238 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12239 .bustype = BUS_SPI,
12240 .manufacture_id = SPANSION_ID,
12241 .model_id = SPANSION_S25FL128,
12242 .total_size = 16384,
12243 .page_size = 256,
12244 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12245 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12246 .tested = TEST_OK_PREW,
12247 .probe = probe_spi_rdid,
12248 .probe_timing = TIMING_ZERO,
12249 .block_erasers = {
12250 {
12251 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12252 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12253 * effect on the memory contents, but sets a flag in the SR.
12254 .eraseblocks = {
12255 {4 * 1024, 32},
12256 {64 * 1024, 254} // inaccessible
12257 },
12258 .block_erase = spi_block_erase_20,
12259 }, { */
12260 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12261 .eraseblocks = {
12262 {8 * 1024, 16},
12263 {64 * 1024, 254} // inaccessible
12264 },
12265 .block_erase = spi_block_erase_40,
12266 }, { */
12267 .eraseblocks = { { 64 * 1024, 256} },
12268 .block_erase = spi_block_erase_d8,
12269 }, {
12270 .eraseblocks = { { 16384 * 1024, 1} },
12271 .block_erase = spi_block_erase_60,
12272 }, {
12273 .eraseblocks = { { 16384 * 1024, 1} },
12274 .block_erase = spi_block_erase_c7,
12275 }
12276 },
12277 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12278 .unlock = spi_disable_blockprotect_bp2_srwd,
12279 .write = spi_chip_write_256, /* Multi I/O supported */
12280 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12281 .voltage = {2700, 3600},
12282 },
12283
12284 {
12285 .vendor = "Spansion",
12286 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12287 .bustype = BUS_SPI,
12288 .manufacture_id = SPANSION_ID,
12289 .model_id = SPANSION_S25FL128,
12290 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012291 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012292 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12294 .tested = TEST_UNTESTED,
12295 .probe = probe_spi_rdid,
12296 .probe_timing = TIMING_ZERO,
12297 .block_erasers = {
12298 {
12299 .eraseblocks = { {256 * 1024, 64} },
12300 .block_erase = spi_block_erase_d8,
12301 }, {
12302 .eraseblocks = { { 16384 * 1024, 1} },
12303 .block_erase = spi_block_erase_60,
12304 }, {
12305 .eraseblocks = { { 16384 * 1024, 1} },
12306 .block_erase = spi_block_erase_c7,
12307 }
12308 },
12309 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12310 .unlock = spi_disable_blockprotect_bp2_srwd,
12311 .write = spi_chip_write_256, /* Multi I/O supported */
12312 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12313 .voltage = {2700, 3600},
12314 },
12315
12316 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012317 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012318 .name = "SST25LF020A",
12319 .bustype = BUS_SPI,
12320 .manufacture_id = SST_ID,
12321 .model_id = SST_SST25VF020_REMS,
12322 .total_size = 256,
12323 .page_size = 256,
12324 .feature_bits = FEATURE_WRSR_EWSR,
12325 .tested = TEST_OK_PREW,
12326 .probe = probe_spi_rems,
12327 .probe_timing = TIMING_ZERO,
12328 .block_erasers =
12329 {
12330 {
12331 .eraseblocks = { {4 * 1024, 64} },
12332 .block_erase = spi_block_erase_20,
12333 }, {
12334 .eraseblocks = { {32 * 1024, 8} },
12335 .block_erase = spi_block_erase_52,
12336 }, {
12337 .eraseblocks = { {256 * 1024, 1} },
12338 .block_erase = spi_block_erase_60,
12339 },
12340 },
12341 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12342 .unlock = spi_disable_blockprotect,
12343 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12344 .read = spi_chip_read, /* Fast read (0x0B) supported */
12345 .voltage = {2700, 3600},
12346 },
12347
12348 {
12349 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012350 .name = "SST25LF040A",
12351 .bustype = BUS_SPI,
12352 .manufacture_id = SST_ID,
12353 .model_id = SST_SST25VF040_REMS,
12354 .total_size = 512,
12355 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012356 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012357 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012358 .probe = probe_spi_res2,
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 = { {512 * 1024, 1} },
12370 .block_erase = spi_block_erase_60,
12371 },
12372 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012373 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012374 .unlock = spi_disable_blockprotect,
12375 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12376 .read = spi_chip_read,
12377 .voltage = {3000, 3600},
12378 },
12379
12380 {
12381 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012382 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012383 .bustype = BUS_SPI,
12384 .manufacture_id = SST_ID,
12385 .model_id = SST_SST25VF080_REMS,
12386 .total_size = 1024,
12387 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012388 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012389 .tested = TEST_UNTESTED,
12390 .probe = probe_spi_res2,
12391 .probe_timing = TIMING_ZERO,
12392 .block_erasers =
12393 {
12394 {
12395 .eraseblocks = { {4 * 1024, 256} },
12396 .block_erase = spi_block_erase_20,
12397 }, {
12398 .eraseblocks = { {32 * 1024, 32} },
12399 .block_erase = spi_block_erase_52,
12400 }, {
12401 .eraseblocks = { {1024 * 1024, 1} },
12402 .block_erase = spi_block_erase_60,
12403 },
12404 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012405 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012406 .unlock = spi_disable_blockprotect,
12407 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12408 .read = spi_chip_read,
12409 .voltage = {3000, 3600},
12410 },
12411
12412 {
12413 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012414 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012415 .bustype = BUS_SPI,
12416 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012417 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012418 .total_size = 64,
12419 .page_size = 256,
12420 .feature_bits = FEATURE_WRSR_EWSR,
12421 .tested = TEST_OK_PREW,
12422 .probe = probe_spi_rems,
12423 .probe_timing = TIMING_ZERO,
12424 .block_erasers =
12425 {
12426 {
12427 .eraseblocks = { {4 * 1024, 16} },
12428 .block_erase = spi_block_erase_20,
12429 }, {
12430 .eraseblocks = { {32 * 1024, 2} },
12431 .block_erase = spi_block_erase_52,
12432 }, {
12433 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012434 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012435 }, {
12436 .eraseblocks = { {64 * 1024, 1} },
12437 .block_erase = spi_block_erase_60,
12438 }, {
12439 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012440 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012441 },
12442 },
12443 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12444 .unlock = spi_disable_blockprotect,
12445 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012446 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012447 .voltage = {2700, 3600},
12448 },
12449
12450 {
12451 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012452 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012453 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012454 .manufacture_id = SST_ID,
12455 .model_id = SST_SST25VF010_REMS,
12456 .total_size = 128,
12457 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012458 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012459 .tested = TEST_OK_PREW,
12460 .probe = probe_spi_rems,
12461 .probe_timing = TIMING_ZERO,
12462 .block_erasers =
12463 {
12464 {
12465 .eraseblocks = { {4 * 1024, 32} },
12466 .block_erase = spi_block_erase_20,
12467 }, {
12468 .eraseblocks = { {32 * 1024, 4} },
12469 .block_erase = spi_block_erase_52,
12470 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012471 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012472 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012473 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012474 .eraseblocks = { {128 * 1024, 1} },
12475 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012476 }, {
12477 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012478 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012479 },
12480 },
12481 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12482 .unlock = spi_disable_blockprotect,
12483 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012484 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012485 .voltage = {2700, 3600},
12486 },
12487
12488 {
12489 .vendor = "SST",
12490 .name = "SST25VF020",
12491 .bustype = BUS_SPI,
12492 .manufacture_id = SST_ID,
12493 .model_id = SST_SST25VF020_REMS,
12494 .total_size = 256,
12495 .page_size = 256,
12496 .feature_bits = FEATURE_WRSR_EWSR,
12497 .tested = TEST_UNTESTED,
12498 .probe = probe_spi_rems,
12499 .probe_timing = TIMING_ZERO,
12500 .block_erasers =
12501 {
12502 {
12503 .eraseblocks = { {4 * 1024, 64} },
12504 .block_erase = spi_block_erase_20,
12505 }, {
12506 .eraseblocks = { {32 * 1024, 8} },
12507 .block_erase = spi_block_erase_52,
12508 }, {
12509 .eraseblocks = { {256 * 1024, 1} },
12510 .block_erase = spi_block_erase_60,
12511 },
12512 },
12513 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12514 .unlock = spi_disable_blockprotect,
12515 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12516 .read = spi_chip_read, /* only */
12517 .voltage = {2700, 3600},
12518 },
12519
12520 {
12521 .vendor = "SST",
12522 .name = "SST25VF020B",
12523 .bustype = BUS_SPI,
12524 .manufacture_id = SST_ID,
12525 .model_id = SST_SST25VF020B,
12526 .total_size = 256,
12527 .page_size = 256,
12528 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012529 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012530 .probe = probe_spi_rdid,
12531 .probe_timing = TIMING_ZERO,
12532 .block_erasers =
12533 {
12534 {
12535 .eraseblocks = { {4 * 1024, 64} },
12536 .block_erase = spi_block_erase_20,
12537 }, {
12538 .eraseblocks = { {32 * 1024, 8} },
12539 .block_erase = spi_block_erase_52,
12540 }, {
12541 .eraseblocks = { {64 * 1024, 4} },
12542 .block_erase = spi_block_erase_d8,
12543 }, {
12544 .eraseblocks = { {256 * 1024, 1} },
12545 .block_erase = spi_block_erase_60,
12546 }, {
12547 .eraseblocks = { {256 * 1024, 1} },
12548 .block_erase = spi_block_erase_c7,
12549 },
12550 },
12551 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12552 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12553 .write = spi_aai_write, /* AAI supported (0xAD) */
12554 .read = spi_chip_read, /* Fast read (0x0B) supported */
12555 .voltage = {2700, 3600},
12556 },
12557
12558 {
12559 .vendor = "SST",
12560 .name = "SST25VF040",
12561 .bustype = BUS_SPI,
12562 .manufacture_id = SST_ID,
12563 .model_id = SST_SST25VF040_REMS,
12564 .total_size = 512,
12565 .page_size = 256,
12566 .feature_bits = FEATURE_WRSR_EWSR,
12567 .tested = TEST_OK_PR,
12568 .probe = probe_spi_rems,
12569 .probe_timing = TIMING_ZERO,
12570 .block_erasers =
12571 {
12572 {
12573 .eraseblocks = { {4 * 1024, 128} },
12574 .block_erase = spi_block_erase_20,
12575 }, {
12576 .eraseblocks = { {32 * 1024, 16} },
12577 .block_erase = spi_block_erase_52,
12578 }, {
12579 .eraseblocks = { {512 * 1024, 1} },
12580 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012581 },
12582 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012583 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012584 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012585 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12586 .read = spi_chip_read,
12587 .voltage = {2700, 3600},
12588 },
12589
12590 {
12591 .vendor = "SST",
12592 .name = "SST25VF040B",
12593 .bustype = BUS_SPI,
12594 .manufacture_id = SST_ID,
12595 .model_id = SST_SST25VF040B,
12596 .total_size = 512,
12597 .page_size = 256,
12598 .feature_bits = FEATURE_WRSR_EWSR,
12599 .tested = TEST_OK_PREW,
12600 .probe = probe_spi_rdid,
12601 .probe_timing = TIMING_ZERO,
12602 .block_erasers =
12603 {
12604 {
12605 .eraseblocks = { {4 * 1024, 128} },
12606 .block_erase = spi_block_erase_20,
12607 }, {
12608 .eraseblocks = { {32 * 1024, 16} },
12609 .block_erase = spi_block_erase_52,
12610 }, {
12611 .eraseblocks = { {64 * 1024, 8} },
12612 .block_erase = spi_block_erase_d8,
12613 }, {
12614 .eraseblocks = { {512 * 1024, 1} },
12615 .block_erase = spi_block_erase_60,
12616 }, {
12617 .eraseblocks = { {512 * 1024, 1} },
12618 .block_erase = spi_block_erase_c7,
12619 },
12620 },
12621 .printlock = spi_prettyprint_status_register_sst25vf040b,
12622 .unlock = spi_disable_blockprotect,
12623 .write = spi_aai_write, /* AAI supported (0xAD) */
12624 .read = spi_chip_read, /* Fast read (0x0B) supported */
12625 .voltage = {2700, 3600},
12626 },
12627
12628 {
12629 .vendor = "SST",
12630 .name = "SST25VF040B.REMS",
12631 .bustype = BUS_SPI,
12632 .manufacture_id = SST_ID,
12633 .model_id = SST_SST25VF040B_REMS,
12634 .total_size = 512,
12635 .page_size = 256,
12636 .feature_bits = FEATURE_WRSR_EWSR,
12637 .tested = TEST_OK_PREW,
12638 .probe = probe_spi_rems,
12639 .probe_timing = TIMING_ZERO,
12640 .block_erasers =
12641 {
12642 {
12643 .eraseblocks = { {4 * 1024, 128} },
12644 .block_erase = spi_block_erase_20,
12645 }, {
12646 .eraseblocks = { {32 * 1024, 16} },
12647 .block_erase = spi_block_erase_52,
12648 }, {
12649 .eraseblocks = { {64 * 1024, 8} },
12650 .block_erase = spi_block_erase_d8,
12651 }, {
12652 .eraseblocks = { {512 * 1024, 1} },
12653 .block_erase = spi_block_erase_60,
12654 }, {
12655 .eraseblocks = { {512 * 1024, 1} },
12656 .block_erase = spi_block_erase_c7,
12657 },
12658 },
12659 .printlock = spi_prettyprint_status_register_sst25vf040b,
12660 .unlock = spi_disable_blockprotect,
12661 .write = spi_aai_write,
12662 .read = spi_chip_read,
12663 .voltage = {2700, 3600},
12664 },
12665
12666 {
12667 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012668 .name = "SST25WF020A",
12669 .bustype = BUS_SPI,
12670 .manufacture_id = SANYO_ID, /* See flashchips.h */
12671 .model_id = SST_SST25WF020A,
12672 .total_size = 256,
12673 .page_size = 256,
12674 .feature_bits = FEATURE_WRSR_WREN,
12675 .tested = TEST_UNTESTED,
12676 .probe = probe_spi_rdid,
12677 .probe_timing = TIMING_ZERO,
12678 .block_erasers =
12679 {
12680 {
12681 .eraseblocks = { {4 * 1024, 64} },
12682 .block_erase = spi_block_erase_20,
12683 }, {
12684 .eraseblocks = { {64 * 1024, 4} },
12685 .block_erase = spi_block_erase_d8,
12686 }, {
12687 .eraseblocks = { {256 * 1024, 1} },
12688 .block_erase = spi_block_erase_60,
12689 }, {
12690 .eraseblocks = { {256 * 1024, 1} },
12691 .block_erase = spi_block_erase_c7,
12692 },
12693 },
12694 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12695 .unlock = spi_disable_blockprotect_bp2_srwd,
12696 .write = spi_chip_write_256,
12697 .read = spi_chip_read, /* Fast read (0x0B) supported */
12698 .voltage = {1650, 1950},
12699 },
12700
12701 {
12702 .vendor = "SST",
12703 .name = "SST25WF040B",
12704 .bustype = BUS_SPI,
12705 .manufacture_id = SANYO_ID, /* See flashchips.h */
12706 .model_id = SST_SST25WF040B,
12707 .total_size = 512,
12708 .page_size = 256,
12709 .feature_bits = FEATURE_WRSR_WREN,
12710 .tested = TEST_UNTESTED,
12711 .probe = probe_spi_rdid,
12712 .probe_timing = TIMING_ZERO,
12713 .block_erasers =
12714 {
12715 {
12716 .eraseblocks = { {4 * 1024, 128} },
12717 .block_erase = spi_block_erase_20,
12718 }, {
12719 .eraseblocks = { {64 * 1024, 8} },
12720 .block_erase = spi_block_erase_d8,
12721 }, {
12722 .eraseblocks = { {512 * 1024, 1} },
12723 .block_erase = spi_block_erase_60,
12724 }, {
12725 .eraseblocks = { {512 * 1024, 1} },
12726 .block_erase = spi_block_erase_c7,
12727 },
12728 },
12729 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12730 .unlock = spi_disable_blockprotect_bp2_srwd,
12731 .write = spi_chip_write_256,
12732 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12733 .voltage = {1650, 1950},
12734 },
12735
12736 {
12737 .vendor = "SST",
12738 .name = "SST25WF080B",
12739 .bustype = BUS_SPI,
12740 .manufacture_id = SANYO_ID, /* See flashchips.h */
12741 .model_id = SST_SST25WF080B,
12742 .total_size = 1024,
12743 .page_size = 256,
12744 .feature_bits = FEATURE_WRSR_WREN,
12745 .tested = TEST_OK_PREW,
12746 .probe = probe_spi_rdid,
12747 .probe_timing = TIMING_ZERO,
12748 .block_erasers =
12749 {
12750 {
12751 .eraseblocks = { {4 * 1024, 256} },
12752 .block_erase = spi_block_erase_20,
12753 }, {
12754 .eraseblocks = { {64 * 1024, 16} },
12755 .block_erase = spi_block_erase_d8,
12756 }, {
12757 .eraseblocks = { {1024 * 1024, 1} },
12758 .block_erase = spi_block_erase_60,
12759 }, {
12760 .eraseblocks = { {1024 * 1024, 1} },
12761 .block_erase = spi_block_erase_c7,
12762 },
12763 },
12764 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12765 .unlock = spi_disable_blockprotect_bp2_srwd,
12766 .write = spi_chip_write_256,
12767 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12768 .voltage = {1650, 1950},
12769 },
12770
12771 {
12772 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012773 .name = "SST25VF080B",
12774 .bustype = BUS_SPI,
12775 .manufacture_id = SST_ID,
12776 .model_id = SST_SST25VF080B,
12777 .total_size = 1024,
12778 .page_size = 256,
12779 .feature_bits = FEATURE_WRSR_EWSR,
12780 .tested = TEST_OK_PREW,
12781 .probe = probe_spi_rdid,
12782 .probe_timing = TIMING_ZERO,
12783 .block_erasers =
12784 {
12785 {
12786 .eraseblocks = { {4 * 1024, 256} },
12787 .block_erase = spi_block_erase_20,
12788 }, {
12789 .eraseblocks = { {32 * 1024, 32} },
12790 .block_erase = spi_block_erase_52,
12791 }, {
12792 .eraseblocks = { {64 * 1024, 16} },
12793 .block_erase = spi_block_erase_d8,
12794 }, {
12795 .eraseblocks = { {1024 * 1024, 1} },
12796 .block_erase = spi_block_erase_60,
12797 }, {
12798 .eraseblocks = { {1024 * 1024, 1} },
12799 .block_erase = spi_block_erase_c7,
12800 },
12801 },
12802 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12803 .unlock = spi_disable_blockprotect,
12804 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012805 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012806 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012807 },
12808
12809 {
12810 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012811 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012812 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012813 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012814 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012815 .total_size = 2048,
12816 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012817 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012818 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012820 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012821 .block_erasers =
12822 {
12823 {
12824 .eraseblocks = { {4 * 1024, 512} },
12825 .block_erase = spi_block_erase_20,
12826 }, {
12827 .eraseblocks = { {32 * 1024, 64} },
12828 .block_erase = spi_block_erase_52,
12829 }, {
12830 .eraseblocks = { {64 * 1024, 32} },
12831 .block_erase = spi_block_erase_d8,
12832 }, {
12833 .eraseblocks = { {2 * 1024 * 1024, 1} },
12834 .block_erase = spi_block_erase_60,
12835 }, {
12836 .eraseblocks = { {2 * 1024 * 1024, 1} },
12837 .block_erase = spi_block_erase_c7,
12838 },
12839 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012840 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012841 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012842 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012843 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012844 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012845 },
12846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012847 {
12848 .vendor = "SST",
12849 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012850 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012851 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012852 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012853 .total_size = 4096,
12854 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012855 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012856 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012857 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012858 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012859 .block_erasers =
12860 {
12861 {
12862 .eraseblocks = { {4 * 1024, 1024} },
12863 .block_erase = spi_block_erase_20,
12864 }, {
12865 .eraseblocks = { {32 * 1024, 128} },
12866 .block_erase = spi_block_erase_52,
12867 }, {
12868 .eraseblocks = { {64 * 1024, 64} },
12869 .block_erase = spi_block_erase_d8,
12870 }, {
12871 .eraseblocks = { {4 * 1024 * 1024, 1} },
12872 .block_erase = spi_block_erase_60,
12873 }, {
12874 .eraseblocks = { {4 * 1024 * 1024, 1} },
12875 .block_erase = spi_block_erase_c7,
12876 },
12877 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012878 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012879 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012880 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012881 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012882 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012883 },
12884
12885 {
12886 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012887 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012888 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012889 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012890 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012891 .total_size = 8192,
12892 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012893 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012894 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012895 .probe = probe_spi_rdid,
12896 .probe_timing = TIMING_ZERO,
12897 .block_erasers =
12898 {
12899 {
12900 .eraseblocks = { {4 * 1024, 2048} },
12901 .block_erase = spi_block_erase_20,
12902 }, {
12903 .eraseblocks = { {32 * 1024, 256} },
12904 .block_erase = spi_block_erase_52,
12905 }, {
12906 .eraseblocks = { {64 * 1024, 128} },
12907 .block_erase = spi_block_erase_d8,
12908 }, {
12909 .eraseblocks = { {8 * 1024 * 1024, 1} },
12910 .block_erase = spi_block_erase_60,
12911 }, {
12912 .eraseblocks = { {8 * 1024 * 1024, 1} },
12913 .block_erase = spi_block_erase_c7,
12914 },
12915 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012916 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012917 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012918 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012919 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012920 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012921 },
12922
12923 {
12924 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000012925 .name = "SST25WF512",
12926 .bustype = BUS_SPI,
12927 .manufacture_id = SST_ID,
12928 .model_id = SST_SST25WF512,
12929 .total_size = 64,
12930 .page_size = 256,
12931 .feature_bits = FEATURE_WRSR_EITHER,
12932 .tested = TEST_UNTESTED,
12933 .probe = probe_spi_rdid,
12934 .probe_timing = TIMING_ZERO,
12935 .block_erasers =
12936 {
12937 {
12938 .eraseblocks = { {4 * 1024, 16} },
12939 .block_erase = spi_block_erase_20,
12940 }, {
12941 .eraseblocks = { {32 * 1024, 2} },
12942 .block_erase = spi_block_erase_52,
12943 }, {
12944 .eraseblocks = { {1024 * 64, 1} },
12945 .block_erase = spi_block_erase_60,
12946 }, {
12947 .eraseblocks = { {1024 * 64, 1} },
12948 .block_erase = spi_block_erase_c7,
12949 },
12950 },
Jason Harper43ddef02014-05-04 00:55:24 +000012951 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12952 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012953 .write = spi_aai_write,
12954 .read = spi_chip_read, /* Fast read (0x0B) supported */
12955 .voltage = {1650, 1950},
12956 },
12957
12958 {
12959 .vendor = "SST",
12960 .name = "SST25WF010",
12961 .bustype = BUS_SPI,
12962 .manufacture_id = SST_ID,
12963 .model_id = SST_SST25WF010,
12964 .total_size = 128,
12965 .page_size = 256,
12966 .feature_bits = FEATURE_WRSR_EITHER,
12967 .tested = TEST_UNTESTED,
12968 .probe = probe_spi_rdid,
12969 .probe_timing = TIMING_ZERO,
12970 .block_erasers =
12971 {
12972 {
12973 .eraseblocks = { {4 * 1024, 32} },
12974 .block_erase = spi_block_erase_20,
12975 }, {
12976 .eraseblocks = { {32 * 1024, 4} },
12977 .block_erase = spi_block_erase_52,
12978 }, {
12979 .eraseblocks = { {1024 * 128, 1} },
12980 .block_erase = spi_block_erase_60,
12981 }, {
12982 .eraseblocks = { {1024 * 128, 1} },
12983 .block_erase = spi_block_erase_c7,
12984 },
12985 },
Jason Harper43ddef02014-05-04 00:55:24 +000012986 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12987 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012988 .write = spi_aai_write,
12989 .read = spi_chip_read, /* Fast read (0x0B) supported */
12990 .voltage = {1650, 1950},
12991 },
12992
12993 {
12994 .vendor = "SST",
12995 .name = "SST25WF020",
12996 .bustype = BUS_SPI,
12997 .manufacture_id = SST_ID,
12998 .model_id = SST_SST25WF020,
12999 .total_size = 256,
13000 .page_size = 256,
13001 .feature_bits = FEATURE_WRSR_EITHER,
13002 .tested = TEST_UNTESTED,
13003 .probe = probe_spi_rdid,
13004 .probe_timing = TIMING_ZERO,
13005 .block_erasers =
13006 {
13007 {
13008 .eraseblocks = { {4 * 1024, 64} },
13009 .block_erase = spi_block_erase_20,
13010 }, {
13011 .eraseblocks = { {32 * 1024, 8} },
13012 .block_erase = spi_block_erase_52,
13013 }, {
13014 .eraseblocks = { {64 * 1024, 4} },
13015 .block_erase = spi_block_erase_d8,
13016 }, {
13017 .eraseblocks = { {1024 * 256, 1} },
13018 .block_erase = spi_block_erase_60,
13019 }, {
13020 .eraseblocks = { {1024 * 256, 1} },
13021 .block_erase = spi_block_erase_c7,
13022 },
13023 },
Jason Harper43ddef02014-05-04 00:55:24 +000013024 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13025 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013026 .write = spi_aai_write,
13027 .read = spi_chip_read, /* Fast read (0x0B) supported */
13028 .voltage = {1650, 1950},
13029 },
13030
13031 {
13032 .vendor = "SST",
13033 .name = "SST25WF040",
13034 .bustype = BUS_SPI,
13035 .manufacture_id = SST_ID,
13036 .model_id = SST_SST25WF040,
13037 .total_size = 512,
13038 .page_size = 256,
13039 .feature_bits = FEATURE_WRSR_EITHER,
13040 .tested = TEST_UNTESTED,
13041 .probe = probe_spi_rdid,
13042 .probe_timing = TIMING_ZERO,
13043 .block_erasers =
13044 {
13045 {
13046 .eraseblocks = { {4 * 1024, 128} },
13047 .block_erase = spi_block_erase_20,
13048 }, {
13049 .eraseblocks = { {32 * 1024, 16} },
13050 .block_erase = spi_block_erase_52,
13051 }, {
13052 .eraseblocks = { {64 * 1024, 8} },
13053 .block_erase = spi_block_erase_d8,
13054 }, {
13055 .eraseblocks = { {1024 * 512, 1} },
13056 .block_erase = spi_block_erase_60,
13057 }, {
13058 .eraseblocks = { {1024 * 512, 1} },
13059 .block_erase = spi_block_erase_c7,
13060 },
13061 },
Jason Harper43ddef02014-05-04 00:55:24 +000013062 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13063 .unlock = spi_disable_blockprotect_bp2_srwd,
13064 .write = spi_aai_write,
13065 .read = spi_chip_read, /* Fast read (0x0B) supported */
13066 .voltage = {1650, 1950},
13067 },
13068
13069 {
13070 .vendor = "SST",
13071 .name = "SST25WF080",
13072 .bustype = BUS_SPI,
13073 .manufacture_id = SST_ID,
13074 .model_id = SST_SST25WF080,
13075 .total_size = 1024,
13076 .page_size = 256,
13077 .feature_bits = FEATURE_WRSR_EITHER,
13078 .tested = TEST_OK_PREW,
13079 .probe = probe_spi_rdid,
13080 .probe_timing = TIMING_ZERO,
13081 .block_erasers =
13082 {
13083 {
13084 .eraseblocks = { {4 * 1024, 256} },
13085 .block_erase = spi_block_erase_20,
13086 }, {
13087 .eraseblocks = { {32 * 1024, 32} },
13088 .block_erase = spi_block_erase_52,
13089 }, {
13090 .eraseblocks = { {64 * 1024, 16} },
13091 .block_erase = spi_block_erase_d8,
13092 }, {
13093 .eraseblocks = { {1024 * 1024, 1} },
13094 .block_erase = spi_block_erase_60,
13095 }, {
13096 .eraseblocks = { {1024 * 1024, 1} },
13097 .block_erase = spi_block_erase_c7,
13098 },
13099 },
13100 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13101 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013102 .write = spi_aai_write,
13103 .read = spi_chip_read, /* Fast read (0x0B) supported */
13104 .voltage = {1650, 1950},
13105 },
13106
13107 {
13108 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013109 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013110 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013111 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013112 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013113 .total_size = 512,
13114 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013115 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013116 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013117 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013118 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013119 .block_erasers =
13120 {
13121 {
13122 .eraseblocks = { {128, 4096} },
13123 .block_erase = erase_sector_28sf040,
13124 }, {
13125 .eraseblocks = { {512 * 1024, 1} },
13126 .block_erase = erase_chip_28sf040,
13127 }
13128 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013129 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013130 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013132 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013133 },
13134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013135 {
13136 .vendor = "SST",
13137 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013138 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013139 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013140 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013141 .total_size = 128,
13142 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013143 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013144 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013145 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013146 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013147 .block_erasers =
13148 {
13149 {
13150 .eraseblocks = { {128 * 1024, 1} },
13151 .block_erase = erase_chip_block_jedec,
13152 }
13153 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013154 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013155 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013156 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013157 },
13158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013159 {
13160 .vendor = "SST",
13161 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013162 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013163 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013164 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013165 .total_size = 128,
13166 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013167 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013168 .tested = TEST_UNTESTED,
13169 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013170 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013171 .block_erasers =
13172 {
13173 {
13174 .eraseblocks = { {128 * 1024, 1} },
13175 .block_erase = erase_chip_block_jedec,
13176 }
13177 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013178 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013180 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013181 },
13182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013183 {
13184 .vendor = "SST",
13185 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013186 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013187 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013188 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013189 .total_size = 256,
13190 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013191 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013192 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013193 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013194 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013195 .block_erasers =
13196 {
13197 {
13198 .eraseblocks = { {256 * 1024, 1} },
13199 .block_erase = erase_chip_block_jedec,
13200 }
13201 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013202 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013204 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013205 },
13206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013207 {
13208 .vendor = "SST",
13209 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013210 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013211 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013212 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013213 .total_size = 256,
13214 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013215 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013216 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013217 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013218 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013219 .block_erasers =
13220 {
13221 {
13222 .eraseblocks = { {256 * 1024, 1} },
13223 .block_erase = erase_chip_block_jedec,
13224 }
13225 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013226 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013228 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013229 },
13230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013231 {
13232 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000013233 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013234 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013235 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013236 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013237 .total_size = 64,
13238 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013239 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000013240 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013241 .probe = probe_jedec,
13242 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000013243 .block_erasers =
13244 {
13245 {
13246 .eraseblocks = { {4 * 1024, 16} },
13247 .block_erase = erase_sector_jedec,
13248 }, {
13249 .eraseblocks = { {64 * 1024, 1} },
13250 .block_erase = erase_chip_block_jedec,
13251 }
13252 },
Sean Nelson35727f72010-01-28 23:55:12 +000013253 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013255 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000013256 },
13257
13258 {
13259 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013260 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013261 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013263 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013264 .total_size = 128,
13265 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013266 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013267 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013268 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013269 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013270 .block_erasers =
13271 {
13272 {
13273 .eraseblocks = { {4 * 1024, 32} },
13274 .block_erase = erase_sector_jedec,
13275 }, {
13276 .eraseblocks = { {128 * 1024, 1} },
13277 .block_erase = erase_chip_block_jedec,
13278 }
13279 },
Sean Nelson35727f72010-01-28 23:55:12 +000013280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013282 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013283 },
13284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013285 {
13286 .vendor = "SST",
13287 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013288 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013289 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013290 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013291 .total_size = 256,
13292 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013293 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013294 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013295 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013296 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013297 .block_erasers =
13298 {
13299 {
13300 .eraseblocks = { {4 * 1024, 64} },
13301 .block_erase = erase_sector_jedec,
13302 }, {
13303 .eraseblocks = { {256 * 1024, 1} },
13304 .block_erase = erase_chip_block_jedec,
13305 }
13306 },
Sean Nelson35727f72010-01-28 23:55:12 +000013307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013309 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013310 },
13311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013312 {
13313 .vendor = "SST",
13314 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013315 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013316 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013317 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013318 .total_size = 512,
13319 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013320 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013321 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013322 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013323 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013324 .block_erasers =
13325 {
13326 {
13327 .eraseblocks = { {4 * 1024, 128} },
13328 .block_erase = erase_sector_jedec,
13329 }, {
13330 .eraseblocks = { {512 * 1024, 1} },
13331 .block_erase = erase_chip_block_jedec,
13332 }
13333 },
Sean Nelson35727f72010-01-28 23:55:12 +000013334 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013336 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013337 },
13338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013339 {
13340 .vendor = "SST",
13341 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013342 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013343 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013344 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013345 .total_size = 64,
13346 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013347 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013348 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013349 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013350 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013351 .block_erasers =
13352 {
13353 {
13354 .eraseblocks = { {4 * 1024, 16} },
13355 .block_erase = erase_sector_jedec,
13356 }, {
13357 .eraseblocks = { {64 * 1024, 1} },
13358 .block_erase = erase_chip_block_jedec,
13359 }
13360 },
Sean Nelson35727f72010-01-28 23:55:12 +000013361 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013362 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013363 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013364 },
13365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013366 {
13367 .vendor = "SST",
13368 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013369 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013370 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013371 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013372 .total_size = 128,
13373 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013374 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013375 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013376 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013377 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013378 .block_erasers =
13379 {
13380 {
13381 .eraseblocks = { {4 * 1024, 32} },
13382 .block_erase = erase_sector_jedec,
13383 }, {
13384 .eraseblocks = { {128 * 1024, 1} },
13385 .block_erase = erase_chip_block_jedec,
13386 }
13387 },
Sean Nelson35727f72010-01-28 23:55:12 +000013388 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013389 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013390 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013391 },
13392
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013393 {
13394 .vendor = "SST",
13395 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013396 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013397 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013398 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013399 .total_size = 256,
13400 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013401 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013402 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013403 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013404 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013405 .block_erasers =
13406 {
13407 {
13408 .eraseblocks = { {4 * 1024, 64} },
13409 .block_erase = erase_sector_jedec,
13410 }, {
13411 .eraseblocks = { {256 * 1024, 1} },
13412 .block_erase = erase_chip_block_jedec,
13413 }
13414 },
Sean Nelson35727f72010-01-28 23:55:12 +000013415 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013417 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013418 },
13419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013420 {
13421 .vendor = "SST",
13422 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013423 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013424 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013425 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013426 .total_size = 512,
13427 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013428 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013429 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013430 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013431 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013432 .block_erasers =
13433 {
13434 {
13435 .eraseblocks = { {4 * 1024, 128} },
13436 .block_erase = erase_sector_jedec,
13437 }, {
13438 .eraseblocks = { {512 * 1024, 1} },
13439 .block_erase = erase_chip_block_jedec,
13440 }
13441 },
Sean Nelson35727f72010-01-28 23:55:12 +000013442 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013444 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013445 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013447 {
13448 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013449 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013450 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013451 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013452 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013453 .total_size = 1024,
13454 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013455 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013456 .tested = TEST_UNTESTED,
13457 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013458 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013459 .block_erasers =
13460 {
13461 {
13462 .eraseblocks = { {4 * 1024, 256} },
13463 .block_erase = erase_sector_jedec,
13464 }, {
13465 .eraseblocks = { {64 * 1024, 16} },
13466 .block_erase = erase_block_jedec,
13467 }, {
13468 .eraseblocks = { {1024 * 1024, 1} },
13469 .block_erase = erase_chip_block_jedec,
13470 }
13471 },
Sean Nelson35727f72010-01-28 23:55:12 +000013472 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013474 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013475 },
13476
13477 {
13478 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013479 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013480 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013481 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013482 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013483 .total_size = 256,
13484 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013485 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013486 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013487 .probe = probe_jedec,
13488 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013489 .block_erasers =
13490 {
13491 {
13492 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013493 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013494 }, {
13495 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013496 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013497 }, {
13498 .eraseblocks = { {256 * 1024, 1} },
13499 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13500 }
13501 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013502 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013503 .unlock = unlock_sst_fwhub,
13504 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013505 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013506 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013507 },
13508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013509 {
13510 .vendor = "SST",
13511 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013512 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013513 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013514 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013515 .total_size = 384,
13516 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013517 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013518 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013519 .probe = probe_jedec,
13520 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013521 .block_erasers =
13522 {
13523 {
13524 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013525 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013526 }, {
13527 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013528 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013529 }, {
13530 .eraseblocks = { {384 * 1024, 1} },
13531 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13532 }
13533 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013534 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013535 .unlock = unlock_sst_fwhub,
13536 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013538 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013539 },
13540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013541 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013542 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13543 * and is only honored for 64k block erase, but not 4k sector erase.
13544 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013545 .vendor = "SST",
13546 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013547 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013548 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013549 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013550 .total_size = 512,
13551 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013552 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013553 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013554 .probe = probe_jedec,
13555 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013556 .block_erasers =
13557 {
13558 {
13559 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013560 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013561 }, {
13562 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013563 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013564 }, {
13565 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013566 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013567 },
13568 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013569 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013570 .unlock = unlock_sst_fwhub,
13571 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013573 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013574 },
13575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013576 {
13577 .vendor = "SST",
13578 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013579 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013580 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013581 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013582 .total_size = 512,
13583 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013584 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013585 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013586 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013587 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013588 .block_erasers =
13589 {
13590 {
13591 .eraseblocks = { {4 * 1024, 128} },
13592 .block_erase = erase_sector_49lfxxxc,
13593 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013594 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013595 {64 * 1024, 7},
13596 {32 * 1024, 1},
13597 {8 * 1024, 2},
13598 {16 * 1024, 1},
13599 },
Sean Nelson69e58112010-03-23 17:10:28 +000013600 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013601 }
13602 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013603 .printlock = printlock_regspace2_block_eraser_1,
13604 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013605 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013606 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013607 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013608 },
13609
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013610 {
13611 .vendor = "SST",
13612 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013613 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013614 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013615 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013616 .total_size = 1024,
13617 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013618 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013619 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013620 .probe = probe_jedec,
13621 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013622 .block_erasers =
13623 {
13624 {
13625 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013626 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013627 }, {
13628 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013629 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013630 }, {
13631 .eraseblocks = { {1024 * 1024, 1} },
13632 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13633 }
13634 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013635 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013636 .unlock = unlock_sst_fwhub,
13637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013639 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013640 },
13641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013642 {
13643 .vendor = "SST",
13644 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013645 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013646 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013647 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013648 .total_size = 1024,
13649 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013650 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013651 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013652 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013653 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013654 .block_erasers =
13655 {
13656 {
13657 .eraseblocks = { {4 * 1024, 256} },
13658 .block_erase = erase_sector_49lfxxxc,
13659 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013660 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013661 {64 * 1024, 15},
13662 {32 * 1024, 1},
13663 {8 * 1024, 2},
13664 {16 * 1024, 1},
13665 },
Sean Nelson69e58112010-03-23 17:10:28 +000013666 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013667 }
13668 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013669 .printlock = printlock_regspace2_block_eraser_1,
13670 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013671 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013673 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013674 },
13675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013676 {
13677 .vendor = "SST",
13678 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013679 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013680 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013681 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013682 .total_size = 2048,
13683 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013684 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013685 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013686 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013687 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013688 .block_erasers =
13689 {
13690 {
13691 .eraseblocks = { {4 * 1024, 512} },
13692 .block_erase = erase_sector_49lfxxxc,
13693 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013694 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013695 {64 * 1024, 31},
13696 {32 * 1024, 1},
13697 {8 * 1024, 2},
13698 {16 * 1024, 1},
13699 },
Sean Nelson69e58112010-03-23 17:10:28 +000013700 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013701 }
13702 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013703 .printlock = printlock_regspace2_block_eraser_1,
13704 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013705 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013707 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013708 },
13709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013710 {
13711 .vendor = "SST",
13712 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013713 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013714 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013715 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013716 .total_size = 256,
13717 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013718 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013719 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013720 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013721 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013722 .block_erasers =
13723 {
13724 {
13725 .eraseblocks = { {4 * 1024, 64} },
13726 .block_erase = erase_sector_jedec,
13727 }, {
13728 .eraseblocks = { {16 * 1024, 16} },
13729 .block_erase = erase_block_jedec,
13730 }, {
13731 .eraseblocks = { {256 * 1024, 1} },
13732 .block_erase = NULL,
13733 }
13734 },
Sean Nelson35727f72010-01-28 23:55:12 +000013735 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013736 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013737 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013738 },
13739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013740 {
13741 .vendor = "SST",
13742 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013743 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013744 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013745 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013746 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013747 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013748 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013749 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013750 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013751 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013752 .block_erasers =
13753 {
13754 {
13755 .eraseblocks = { {4 * 1024, 64} },
13756 .block_erase = erase_sector_jedec,
13757 }, {
13758 .eraseblocks = { {16 * 1024, 16} },
13759 .block_erase = erase_block_jedec,
13760 }, {
13761 .eraseblocks = { {256 * 1024, 1} },
13762 .block_erase = NULL,
13763 }
13764 },
Sean Nelson35727f72010-01-28 23:55:12 +000013765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013767 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013768 },
13769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013770 {
13771 .vendor = "SST",
13772 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013773 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013774 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013775 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013776 .total_size = 512,
13777 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013778 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013779 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013780 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013781 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013782 .block_erasers =
13783 {
13784 {
13785 .eraseblocks = { {4 * 1024, 128} },
13786 .block_erase = erase_sector_jedec,
13787 }, {
13788 .eraseblocks = { {64 * 1024, 8} },
13789 .block_erase = erase_block_jedec,
13790 }, {
13791 .eraseblocks = { {512 * 1024, 1} },
13792 .block_erase = NULL,
13793 }
13794 },
Sean Nelson35727f72010-01-28 23:55:12 +000013795 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013797 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013798 },
13799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013800 {
13801 .vendor = "SST",
13802 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013803 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013804 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013805 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013806 .total_size = 512,
13807 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013808 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013809 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013810 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013811 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013812 .block_erasers =
13813 {
13814 {
13815 .eraseblocks = { {4 * 1024, 128} },
13816 .block_erase = erase_sector_jedec,
13817 }, {
13818 .eraseblocks = { {64 * 1024, 8} },
13819 .block_erase = erase_block_jedec,
13820 }, {
13821 .eraseblocks = { {512 * 1024, 1} },
13822 .block_erase = NULL,
13823 }
13824 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013825 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013828 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013829 },
13830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013831 {
13832 .vendor = "SST",
13833 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013834 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013835 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020013836 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013837 .total_size = 1024,
13838 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013839 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013840 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013841 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013842 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013843 .block_erasers =
13844 {
13845 {
13846 .eraseblocks = { {4 * 1024, 256} },
13847 .block_erase = erase_sector_jedec,
13848 }, {
13849 .eraseblocks = { {64 * 1024, 16} },
13850 .block_erase = erase_block_jedec,
13851 }, {
13852 .eraseblocks = { {1024 * 1024, 1} },
13853 .block_erase = NULL,
13854 }
13855 },
Sean Nelson35727f72010-01-28 23:55:12 +000013856 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013857 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013858 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013859 },
13860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013861 {
13862 .vendor = "SST",
13863 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013864 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013865 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013866 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013867 .total_size = 2048,
13868 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013869 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013870 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013871 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013872 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013873 .block_erasers =
13874 {
13875 {
13876 .eraseblocks = { {4 * 1024, 512} },
13877 .block_erase = erase_sector_49lfxxxc,
13878 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013879 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013880 {64 * 1024, 31},
13881 {32 * 1024, 1},
13882 {8 * 1024, 2},
13883 {16 * 1024, 1},
13884 },
Sean Nelson69e58112010-03-23 17:10:28 +000013885 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013886 }
13887 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013888 .printlock = printlock_regspace2_block_eraser_1,
13889 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013890 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013892 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013893 },
13894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013895 {
13896 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013897 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013898 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013899 .manufacture_id = ST_ID,
13900 .model_id = ST_M29F002B,
13901 .total_size = 256,
13902 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013903 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013904 .tested = TEST_UNTESTED,
13905 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013906 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013907 .block_erasers =
13908 {
13909 {
13910 .eraseblocks = {
13911 {16 * 1024, 1},
13912 {8 * 1024, 2},
13913 {32 * 1024, 1},
13914 {64 * 1024, 3},
13915 },
13916 .block_erase = erase_sector_jedec,
13917 }, {
13918 .eraseblocks = { {256 * 1024, 1} },
13919 .block_erase = erase_chip_block_jedec,
13920 }
13921 },
Sean Nelson35727f72010-01-28 23:55:12 +000013922 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013923 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013924 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013925 },
13926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013927 {
13928 .vendor = "ST",
13929 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013930 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013931 .manufacture_id = ST_ID,
13932 .model_id = ST_M29F002T,
13933 .total_size = 256,
13934 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013935 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013937 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013938 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013939 .block_erasers =
13940 {
13941 {
13942 .eraseblocks = {
13943 {64 * 1024, 3},
13944 {32 * 1024, 1},
13945 {8 * 1024, 2},
13946 {16 * 1024, 1},
13947 },
13948 .block_erase = erase_sector_jedec,
13949 }, {
13950 .eraseblocks = { {256 * 1024, 1} },
13951 .block_erase = erase_chip_block_jedec,
13952 }
13953 },
Sean Nelson35727f72010-01-28 23:55:12 +000013954 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013955 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013956 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013957 },
13958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013959 {
13960 .vendor = "ST",
13961 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013962 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013963 .manufacture_id = ST_ID,
13964 .model_id = ST_M29F040B,
13965 .total_size = 512,
13966 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013967 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13968 .tested = TEST_UNTESTED,
13969 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013970 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013971 .block_erasers =
13972 {
13973 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013974 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013975 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013976 }, {
13977 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013978 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013979 }
13980 },
Sean Nelson35727f72010-01-28 23:55:12 +000013981 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013982 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013983 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013984 },
13985
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013986 {
Sean Nelson35727f72010-01-28 23:55:12 +000013987 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013988 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013989 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013990 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013991 .manufacture_id = ST_ID,
13992 .model_id = ST_M29F400BB,
13993 .total_size = 512,
13994 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013995 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013996 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013997 .probe = probe_jedec,
13998 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013999 .block_erasers =
14000 {
14001 {
14002 .eraseblocks = {
14003 {16 * 1024, 1},
14004 {8 * 1024, 2},
14005 {32 * 1024, 1},
14006 {64 * 1024, 7},
14007 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014008 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014009 }, {
14010 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014011 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014012 }
14013 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014014 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014016 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014017 },
14018 {
14019 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14020 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014021 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014022 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014023 .manufacture_id = ST_ID,
14024 .model_id = ST_M29F400BT,
14025 .total_size = 512,
14026 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014027 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014028 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014029 .probe = probe_jedec,
14030 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014031 .block_erasers =
14032 {
14033 {
14034 .eraseblocks = {
14035 {64 * 1024, 7},
14036 {32 * 1024, 1},
14037 {8 * 1024, 2},
14038 {16 * 1024, 1},
14039 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014040 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014041 }, {
14042 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014043 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014044 }
14045 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014049 },
14050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014051 {
14052 .vendor = "ST",
14053 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014054 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014055 .manufacture_id = ST_ID,
14056 .model_id = ST_M29W010B,
14057 .total_size = 128,
14058 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014059 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014060 .tested = TEST_UNTESTED,
14061 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014062 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014063 .block_erasers =
14064 {
14065 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014066 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014067 .block_erase = erase_sector_jedec,
14068 }, {
14069 .eraseblocks = { {128 * 1024, 1} },
14070 .block_erase = erase_chip_block_jedec,
14071 }
14072 },
Sean Nelson35727f72010-01-28 23:55:12 +000014073 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014074 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014075 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014076 },
14077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014078 {
14079 .vendor = "ST",
14080 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014081 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014082 .manufacture_id = ST_ID,
14083 .model_id = ST_M29W040B,
14084 .total_size = 512,
14085 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014086 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014087 .tested = TEST_UNTESTED,
14088 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014089 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014090 .block_erasers =
14091 {
14092 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014093 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014094 .block_erase = erase_sector_jedec,
14095 }, {
14096 .eraseblocks = { {512 * 1024, 1} },
14097 .block_erase = erase_chip_block_jedec,
14098 }
14099 },
Sean Nelson35727f72010-01-28 23:55:12 +000014100 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014102 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014103 },
14104
Stefan Taunereb582572012-09-21 12:52:50 +000014105 {
14106 .vendor = "ST",
14107 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014108 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000014109 .manufacture_id = ST_ID,
14110 .model_id = ST_M29W512B,
14111 .total_size = 64,
14112 .page_size = 64 * 1024,
14113 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014114 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014115 .probe = probe_jedec,
14116 .probe_timing = TIMING_ZERO,
14117 .block_erasers =
14118 {
14119 {
14120 .eraseblocks = { {64 * 1024, 1} },
14121 .block_erase = erase_chip_block_jedec,
14122 }
14123 },
14124 .write = write_jedec_1,
14125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014126 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014127 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014129 {
14130 .vendor = "ST",
14131 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014132 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014133 .manufacture_id = ST_ID,
14134 .model_id = ST_M50FLW040A,
14135 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014136 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014137 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014138 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014139 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014140 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014141 .block_erasers =
14142 {
14143 {
Sean Nelson329bde72010-01-19 16:39:19 +000014144 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014145 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014146 {64 * 1024, 5}, /* block */
14147 {4 * 1024, 16}, /* sector */
14148 {4 * 1024, 16}, /* sector */
14149 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014150 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014151 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014152 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014153 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014154 }
14155 },
Sean Nelson28accc22010-03-19 18:47:06 +000014156 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014157 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014159 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014160 },
14161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014162 {
14163 .vendor = "ST",
14164 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014165 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014166 .manufacture_id = ST_ID,
14167 .model_id = ST_M50FLW040B,
14168 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014169 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014170 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014171 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014172 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014173 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014174 .block_erasers =
14175 {
14176 {
Sean Nelson329bde72010-01-19 16:39:19 +000014177 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014178 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014179 {4 * 1024, 16}, /* sector */
14180 {64 * 1024, 5}, /* block */
14181 {4 * 1024, 16}, /* sector */
14182 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014183 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014184 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014185 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014186 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014187 }
14188 },
Sean Nelson28accc22010-03-19 18:47:06 +000014189 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014190 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014192 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014193 },
14194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014195 {
14196 .vendor = "ST",
14197 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014198 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014199 .manufacture_id = ST_ID,
14200 .model_id = ST_M50FLW080A,
14201 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014202 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014203 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014204 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014205 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014206 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014207 .block_erasers =
14208 {
14209 {
Sean Nelson329bde72010-01-19 16:39:19 +000014210 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014211 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014212 {64 * 1024, 13}, /* block */
14213 {4 * 1024, 16}, /* sector */
14214 {4 * 1024, 16}, /* sector */
14215 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014216 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014217 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014218 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014219 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014220 }
14221 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014222 .printlock = printlock_regspace2_block_eraser_0,
14223 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014224 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014226 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014227 },
14228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014229 {
14230 .vendor = "ST",
14231 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014232 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014233 .manufacture_id = ST_ID,
14234 .model_id = ST_M50FLW080B,
14235 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014236 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014237 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014238 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014239 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014240 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014241 .block_erasers =
14242 {
14243 {
Sean Nelson329bde72010-01-19 16:39:19 +000014244 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014245 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014246 {4 * 1024, 16}, /* sector */
14247 {64 * 1024, 13}, /* block */
14248 {4 * 1024, 16}, /* sector */
14249 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014250 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014251 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014252 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014253 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014254 }
14255 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014256 .printlock = printlock_regspace2_block_eraser_0,
14257 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014258 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014260 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014261 },
14262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014263 {
14264 .vendor = "ST",
14265 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014266 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014267 .manufacture_id = ST_ID,
14268 .model_id = ST_M50FW002,
14269 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014270 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014271 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014272 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014273 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014274 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014275 .block_erasers =
14276 {
14277 {
14278 .eraseblocks = {
14279 {64 * 1024, 3},
14280 {32 * 1024, 1},
14281 {8 * 1024, 2},
14282 {16 * 1024, 1},
14283 },
Sean Nelson28accc22010-03-19 18:47:06 +000014284 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014285 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014286 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014287 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014288 }
14289 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014290 .printlock = printlock_regspace2_block_eraser_0,
14291 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014292 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014293 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014294 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014295 },
14296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014297 {
14298 .vendor = "ST",
14299 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014300 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014301 .manufacture_id = ST_ID,
14302 .model_id = ST_M50FW016,
14303 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014304 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014305 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014306 .tested = TEST_UNTESTED,
14307 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014308 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014309 .block_erasers =
14310 {
14311 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014312 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014313 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014314 }
14315 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014316 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014317 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014319 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014320 },
14321
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014322 {
14323 .vendor = "ST",
14324 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014325 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014326 .manufacture_id = ST_ID,
14327 .model_id = ST_M50FW040,
14328 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014329 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014330 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014331 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014332 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014333 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014334 .block_erasers =
14335 {
14336 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014337 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014338 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014339 }
14340 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014341 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014342 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014344 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014345 },
14346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014347 {
14348 .vendor = "ST",
14349 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014350 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014351 .manufacture_id = ST_ID,
14352 .model_id = ST_M50FW080,
14353 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014354 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014355 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014356 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014358 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014359 .block_erasers =
14360 {
14361 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014362 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014363 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014364 }
14365 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014366 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014367 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014369 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014370 },
14371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014372 {
14373 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014374 .name = "M50LPW080",
14375 .bustype = BUS_LPC, /* A/A Mux */
14376 .manufacture_id = ST_ID,
14377 .model_id = ST_M50LPW080,
14378 .total_size = 1024,
14379 .page_size = 0,
14380 .feature_bits = FEATURE_REGISTERMAP,
14381 .tested = TEST_UNTESTED,
14382 .probe = probe_82802ab,
14383 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14384 .block_erasers =
14385 {
14386 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014387 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014388 .block_erase = erase_block_82802ab,
14389 }
14390 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014391 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014392 .write = write_82802ab,
14393 .read = read_memmapped,
14394 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14395 },
14396
14397 {
14398 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014399 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014400 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014401 .manufacture_id = ST_ID,
14402 .model_id = ST_M50LPW116,
14403 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014404 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014405 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014406 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014407 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014408 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014409 .block_erasers =
14410 {
14411 {
14412 .eraseblocks = {
14413 {4 * 1024, 16},
14414 {64 * 1024, 30},
14415 {32 * 1024, 1},
14416 {8 * 1024, 2},
14417 {16 * 1024, 1},
14418 },
Sean Nelson28accc22010-03-19 18:47:06 +000014419 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014420 }
14421 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014422 .printlock = printlock_regspace2_block_eraser_0,
14423 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014424 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014425 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014426 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014427 },
14428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014429 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014430 .vendor = "SyncMOS/MoselVitelic",
14431 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014432 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014433 .manufacture_id = SYNCMOS_MVC_ID,
14434 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014435 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014436 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014437 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014438 .tested = TEST_UNTESTED,
14439 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014440 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014441 .block_erasers =
14442 {
14443 {
14444 .eraseblocks = { {512, 256} },
14445 .block_erase = erase_sector_jedec,
14446 }, {
14447 .eraseblocks = { {128 * 1024, 1} },
14448 .block_erase = erase_chip_block_jedec,
14449 },
14450 },
Sean Nelson35727f72010-01-28 23:55:12 +000014451 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014453 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014454 },
14455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014456 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014457 .vendor = "SyncMOS/MoselVitelic",
14458 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014459 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014460 .manufacture_id = SYNCMOS_MVC_ID,
14461 .model_id = SM_MVC_29C51001T,
14462 .total_size = 128,
14463 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014464 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014465 .tested = TEST_UNTESTED,
14466 .probe = probe_jedec,
14467 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14468 .block_erasers =
14469 {
14470 {
14471 .eraseblocks = { {512, 256} },
14472 .block_erase = erase_sector_jedec,
14473 }, {
14474 .eraseblocks = { {128 * 1024, 1} },
14475 .block_erase = erase_chip_block_jedec,
14476 },
14477 },
14478 .write = write_jedec_1,
14479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014480 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014481 },
14482
14483 {
14484 .vendor = "SyncMOS/MoselVitelic",
14485 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014486 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014487 .manufacture_id = SYNCMOS_MVC_ID,
14488 .model_id = SM_MVC_29C51002B,
14489 .total_size = 256,
14490 .page_size = 512,
14491 .feature_bits = FEATURE_EITHER_RESET,
14492 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014493 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014494 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014495 .block_erasers =
14496 {
14497 {
14498 .eraseblocks = { {512, 512} },
14499 .block_erase = erase_sector_jedec,
14500 }, {
14501 .eraseblocks = { {256 * 1024, 1} },
14502 .block_erase = erase_chip_block_jedec,
14503 },
14504 },
Sean Nelson35727f72010-01-28 23:55:12 +000014505 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014506 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014507 },
14508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014510 .vendor = "SyncMOS/MoselVitelic",
14511 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014512 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014513 .manufacture_id = SYNCMOS_MVC_ID,
14514 .model_id = SM_MVC_29C51002T,
14515 .total_size = 256,
14516 .page_size = 512,
14517 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014518 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014519 .probe = probe_jedec,
14520 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14521 .block_erasers =
14522 {
14523 {
14524 .eraseblocks = { {512, 512} },
14525 .block_erase = erase_sector_jedec,
14526 }, {
14527 .eraseblocks = { {256 * 1024, 1} },
14528 .block_erase = erase_chip_block_jedec,
14529 },
14530 },
14531 .write = write_jedec_1,
14532 .read = read_memmapped,
14533 },
14534
14535 {
14536 .vendor = "SyncMOS/MoselVitelic",
14537 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014538 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014539 .manufacture_id = SYNCMOS_MVC_ID,
14540 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014541 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014542 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014543 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014544 .tested = TEST_UNTESTED,
14545 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014546 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014547 .block_erasers =
14548 {
14549 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014550 .eraseblocks = { {1024, 512} },
14551 .block_erase = erase_sector_jedec,
14552 }, {
14553 .eraseblocks = { {512 * 1024, 1} },
14554 .block_erase = erase_chip_block_jedec,
14555 },
14556 },
14557 .write = write_jedec_1,
14558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014559 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014560 },
14561
14562 {
14563 .vendor = "SyncMOS/MoselVitelic",
14564 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014565 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014566 .manufacture_id = SYNCMOS_MVC_ID,
14567 .model_id = SM_MVC_29C51004T,
14568 .total_size = 512,
14569 .page_size = 1024,
14570 .feature_bits = FEATURE_EITHER_RESET,
14571 .tested = TEST_UNTESTED,
14572 .probe = probe_jedec,
14573 .probe_timing = TIMING_ZERO,
14574 .block_erasers =
14575 {
14576 {
14577 .eraseblocks = { {1024, 512} },
14578 .block_erase = erase_sector_jedec,
14579 }, {
14580 .eraseblocks = { {512 * 1024, 1} },
14581 .block_erase = erase_chip_block_jedec,
14582 },
14583 },
14584 .write = write_jedec_1,
14585 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014586 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014587 },
14588
14589 {
14590 .vendor = "SyncMOS/MoselVitelic",
14591 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014592 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014593 .manufacture_id = SYNCMOS_MVC_ID,
14594 .model_id = SM_MVC_29C31004B,
14595 .total_size = 512,
14596 .page_size = 1024,
14597 .feature_bits = FEATURE_EITHER_RESET,
14598 .tested = TEST_UNTESTED,
14599 .probe = probe_jedec,
14600 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14601 .block_erasers =
14602 {
14603 {
14604 .eraseblocks = { {1024, 512} },
14605 .block_erase = erase_sector_jedec,
14606 }, {
14607 .eraseblocks = { {512 * 1024, 1} },
14608 .block_erase = erase_chip_block_jedec,
14609 },
14610 },
14611 .write = write_jedec_1,
14612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014613 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014614 },
14615
14616 {
14617 .vendor = "SyncMOS/MoselVitelic",
14618 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014619 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014620 .manufacture_id = SYNCMOS_MVC_ID,
14621 .model_id = SM_MVC_29C31004T,
14622 .total_size = 512,
14623 .page_size = 1024,
14624 .feature_bits = FEATURE_EITHER_RESET,
14625 .tested = TEST_UNTESTED,
14626 .probe = probe_jedec,
14627 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14628 .block_erasers =
14629 {
14630 {
14631 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014632 .block_erase = erase_sector_jedec,
14633 }, {
14634 .eraseblocks = { {512 * 1024, 1} },
14635 .block_erase = erase_chip_block_jedec,
14636 },
14637 },
Sean Nelson35727f72010-01-28 23:55:12 +000014638 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014640 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014641 },
14642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014643 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014644 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014645 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014646 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014647 .manufacture_id = TI_OLD_ID,
14648 .model_id = TI_TMS29F002RB,
14649 .total_size = 256,
14650 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014651 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014652 .tested = TEST_UNTESTED,
14653 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014654 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014655 .block_erasers =
14656 {
14657 {
14658 .eraseblocks = {
14659 {16 * 1024, 1},
14660 {8 * 1024, 2},
14661 {32 * 1024, 1},
14662 {64 * 1024, 3},
14663 },
14664 .block_erase = erase_sector_jedec,
14665 }, {
14666 .eraseblocks = { {256 * 1024, 1} },
14667 .block_erase = erase_chip_block_jedec,
14668 },
14669 },
Sean Nelson35727f72010-01-28 23:55:12 +000014670 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014672 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014673 },
14674
14675 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014676 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014677 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014678 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014679 .manufacture_id = TI_OLD_ID,
14680 .model_id = TI_TMS29F002RT,
14681 .total_size = 256,
14682 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014683 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014684 .tested = TEST_UNTESTED,
14685 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014686 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014687 .block_erasers =
14688 {
14689 {
14690 .eraseblocks = {
14691 {64 * 1024, 3},
14692 {32 * 1024, 1},
14693 {8 * 1024, 2},
14694 {16 * 1024, 1},
14695 },
14696 .block_erase = erase_sector_jedec,
14697 }, {
14698 .eraseblocks = { {256 * 1024, 1} },
14699 .block_erase = erase_chip_block_jedec,
14700 },
14701 },
Sean Nelson35727f72010-01-28 23:55:12 +000014702 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014704 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014705 },
14706
14707 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014708 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014709 .name = "W25Q40.V",
14710 .bustype = BUS_SPI,
14711 .manufacture_id = WINBOND_NEX_ID,
14712 .model_id = WINBOND_NEX_W25Q40_V,
14713 .total_size = 512,
14714 .page_size = 256,
14715 /* supports SFDP */
14716 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14717 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014718 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014719 .probe = probe_spi_rdid,
14720 .probe_timing = TIMING_ZERO,
14721 .block_erasers =
14722 {
14723 {
14724 .eraseblocks = { {4 * 1024, 128} },
14725 .block_erase = spi_block_erase_20,
14726 }, {
14727 .eraseblocks = { {32 * 1024, 16} },
14728 .block_erase = spi_block_erase_52,
14729 }, {
14730 .eraseblocks = { {64 * 1024, 8} },
14731 .block_erase = spi_block_erase_d8,
14732 }, {
14733 .eraseblocks = { {512 * 1024, 1} },
14734 .block_erase = spi_block_erase_60,
14735 }, {
14736 .eraseblocks = { {512 * 1024, 1} },
14737 .block_erase = spi_block_erase_c7,
14738 }
14739 },
14740 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14741 .unlock = spi_disable_blockprotect,
14742 .write = spi_chip_write_256, /* Multi I/O supported */
14743 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14744 .voltage = {2700, 3600},
14745 },
14746
14747 {
14748 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014749 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014750 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014751 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014752 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014753 .total_size = 1024,
14754 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014755 /* supports SFDP */
14756 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014758 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014759 .probe = probe_spi_rdid,
14760 .probe_timing = TIMING_ZERO,
14761 .block_erasers =
14762 {
14763 {
14764 .eraseblocks = { {4 * 1024, 256} },
14765 .block_erase = spi_block_erase_20,
14766 }, {
14767 .eraseblocks = { {32 * 1024, 32} },
14768 .block_erase = spi_block_erase_52,
14769 }, {
14770 .eraseblocks = { {64 * 1024, 16} },
14771 .block_erase = spi_block_erase_d8,
14772 }, {
14773 .eraseblocks = { {1024 * 1024, 1} },
14774 .block_erase = spi_block_erase_60,
14775 }, {
14776 .eraseblocks = { {1024 * 1024, 1} },
14777 .block_erase = spi_block_erase_c7,
14778 }
14779 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014781 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014782 .write = spi_chip_write_256,
14783 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014784 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014785 },
14786
14787 {
14788 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014789 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014790 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014791 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014792 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014793 .total_size = 2048,
14794 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014795 /* supports SFDP */
14796 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014798 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014799 .probe = probe_spi_rdid,
14800 .probe_timing = TIMING_ZERO,
14801 .block_erasers =
14802 {
14803 {
14804 .eraseblocks = { {4 * 1024, 512} },
14805 .block_erase = spi_block_erase_20,
14806 }, {
14807 .eraseblocks = { {32 * 1024, 64} },
14808 .block_erase = spi_block_erase_52,
14809 }, {
14810 .eraseblocks = { {64 * 1024, 32} },
14811 .block_erase = spi_block_erase_d8,
14812 }, {
14813 .eraseblocks = { {2 * 1024 * 1024, 1} },
14814 .block_erase = spi_block_erase_60,
14815 }, {
14816 .eraseblocks = { {2 * 1024 * 1024, 1} },
14817 .block_erase = spi_block_erase_c7,
14818 }
14819 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014821 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014822 .write = spi_chip_write_256,
14823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014824 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014825 },
14826
14827 {
14828 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014829 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014830 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014831 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014832 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014833 .total_size = 4096,
14834 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014835 /* supports SFDP */
14836 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014838 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014839 .probe = probe_spi_rdid,
14840 .probe_timing = TIMING_ZERO,
14841 .block_erasers =
14842 {
14843 {
14844 .eraseblocks = { {4 * 1024, 1024} },
14845 .block_erase = spi_block_erase_20,
14846 }, {
14847 .eraseblocks = { {32 * 1024, 128} },
14848 .block_erase = spi_block_erase_52,
14849 }, {
14850 .eraseblocks = { {64 * 1024, 64} },
14851 .block_erase = spi_block_erase_d8,
14852 }, {
14853 .eraseblocks = { {4 * 1024 * 1024, 1} },
14854 .block_erase = spi_block_erase_60,
14855 }, {
14856 .eraseblocks = { {4 * 1024 * 1024, 1} },
14857 .block_erase = spi_block_erase_c7,
14858 }
14859 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014860 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014861 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014862 .write = spi_chip_write_256,
14863 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014864 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014865 },
14866
14867 {
14868 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014869 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014870 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000014871 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014872 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000014873 .total_size = 8192,
14874 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014875 /* supports SFDP */
14876 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014877 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014878 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000014879 .probe = probe_spi_rdid,
14880 .probe_timing = TIMING_ZERO,
14881 .block_erasers =
14882 {
14883 {
14884 .eraseblocks = { {4 * 1024, 2048} },
14885 .block_erase = spi_block_erase_20,
14886 }, {
14887 .eraseblocks = { {32 * 1024, 256} },
14888 .block_erase = spi_block_erase_52,
14889 }, {
14890 .eraseblocks = { {64 * 1024, 128} },
14891 .block_erase = spi_block_erase_d8,
14892 }, {
14893 .eraseblocks = { {8 * 1024 * 1024, 1} },
14894 .block_erase = spi_block_erase_60,
14895 }, {
14896 .eraseblocks = { {8 * 1024 * 1024, 1} },
14897 .block_erase = spi_block_erase_c7,
14898 }
14899 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014900 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014901 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000014902 .write = spi_chip_write_256,
14903 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014904 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000014905 },
14906
14907 {
14908 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014909 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014910 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014911 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014912 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014913 .total_size = 16384,
14914 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014915 /* supports SFDP */
14916 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014917 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014918 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014919 .probe = probe_spi_rdid,
14920 .probe_timing = TIMING_ZERO,
14921 .block_erasers =
14922 {
14923 {
14924 .eraseblocks = { {4 * 1024, 4096} },
14925 .block_erase = spi_block_erase_20,
14926 }, {
14927 .eraseblocks = { {32 * 1024, 512} },
14928 .block_erase = spi_block_erase_52,
14929 }, {
14930 .eraseblocks = { {64 * 1024, 256} },
14931 .block_erase = spi_block_erase_d8,
14932 }, {
14933 .eraseblocks = { {16 * 1024 * 1024, 1} },
14934 .block_erase = spi_block_erase_60,
14935 }, {
14936 .eraseblocks = { {16 * 1024 * 1024, 1} },
14937 .block_erase = spi_block_erase_c7,
14938 }
14939 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014940 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014941 .unlock = spi_disable_blockprotect,
14942 .write = spi_chip_write_256,
14943 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014944 .voltage = {2700, 3600},
14945 },
14946
14947 {
14948 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020014949 .name = "W25Q256.V",
14950 .bustype = BUS_SPI,
14951 .manufacture_id = WINBOND_NEX_ID,
14952 .model_id = WINBOND_NEX_W25Q256_V,
14953 .total_size = 32768,
14954 .page_size = 256,
14955 /* supports SFDP */
14956 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14957 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010014958 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
14959 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
14960 .tested = TEST_UNTESTED,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014961 .probe = probe_spi_rdid,
14962 .probe_timing = TIMING_ZERO,
14963 .block_erasers =
14964 {
14965 {
14966 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020014967 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014968 }, {
14969 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020014970 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014971 }, {
14972 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020014973 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014974 }, {
14975 .eraseblocks = { {32 * 1024 * 1024, 1} },
14976 .block_erase = spi_block_erase_60,
14977 }, {
14978 .eraseblocks = { {32 * 1024 * 1024, 1} },
14979 .block_erase = spi_block_erase_c7,
14980 }
14981 },
14982 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14983 .unlock = spi_disable_blockprotect,
14984 .write = spi_chip_write_256,
14985 .read = spi_chip_read,
14986 .voltage = {2700, 3600},
14987 },
14988
14989 {
14990 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014991 .name = "W25Q20.W",
14992 .bustype = BUS_SPI,
14993 .manufacture_id = WINBOND_NEX_ID,
14994 .model_id = WINBOND_NEX_W25Q20_W,
14995 .total_size = 256,
14996 .page_size = 256,
14997 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14998 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14999 .tested = TEST_UNTESTED,
15000 .probe = probe_spi_rdid,
15001 .probe_timing = TIMING_ZERO,
15002 .block_erasers =
15003 {
15004 {
15005 .eraseblocks = { {4 * 1024, 64} },
15006 .block_erase = spi_block_erase_20,
15007 }, {
15008 .eraseblocks = { {32 * 1024, 8} },
15009 .block_erase = spi_block_erase_52,
15010 }, {
15011 .eraseblocks = { {64 * 1024, 4} },
15012 .block_erase = spi_block_erase_d8,
15013 }, {
15014 .eraseblocks = { {256 * 1024, 1} },
15015 .block_erase = spi_block_erase_60,
15016 }, {
15017 .eraseblocks = { {256 * 1024, 1} },
15018 .block_erase = spi_block_erase_c7,
15019 }
15020 },
15021 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15022 .unlock = spi_disable_blockprotect,
15023 .write = spi_chip_write_256,
15024 .read = spi_chip_read,
15025 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15026 },
15027
15028 {
15029 .vendor = "Winbond",
15030 .name = "W25Q40.W",
15031 .bustype = BUS_SPI,
15032 .manufacture_id = WINBOND_NEX_ID,
15033 .model_id = WINBOND_NEX_W25Q40_W,
15034 .total_size = 512,
15035 .page_size = 256,
15036 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15037 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15038 .tested = TEST_UNTESTED,
15039 .probe = probe_spi_rdid,
15040 .probe_timing = TIMING_ZERO,
15041 .block_erasers =
15042 {
15043 {
15044 .eraseblocks = { {4 * 1024, 128} },
15045 .block_erase = spi_block_erase_20,
15046 }, {
15047 .eraseblocks = { {32 * 1024, 16} },
15048 .block_erase = spi_block_erase_52,
15049 }, {
15050 .eraseblocks = { {64 * 1024, 8} },
15051 .block_erase = spi_block_erase_d8,
15052 }, {
15053 .eraseblocks = { {512 * 1024, 1} },
15054 .block_erase = spi_block_erase_60,
15055 }, {
15056 .eraseblocks = { {512 * 1024, 1} },
15057 .block_erase = spi_block_erase_c7,
15058 }
15059 },
15060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15061 .unlock = spi_disable_blockprotect,
15062 .write = spi_chip_write_256,
15063 .read = spi_chip_read,
15064 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15065 },
15066
15067 {
15068 .vendor = "Winbond",
David Hendricksc699f5c2018-03-11 17:29:49 -070015069 .name = "W25Q80BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015070 .bustype = BUS_SPI,
15071 .manufacture_id = WINBOND_NEX_ID,
David Hendricksc699f5c2018-03-11 17:29:49 -070015072 .model_id = WINBOND_NEX_W25Q80BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015073 .total_size = 1024,
15074 .page_size = 256,
15075 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015077 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015078 .probe = probe_spi_rdid,
15079 .probe_timing = TIMING_ZERO,
15080 .block_erasers =
15081 {
15082 {
15083 .eraseblocks = { {4 * 1024, 256} },
15084 .block_erase = spi_block_erase_20,
15085 }, {
15086 .eraseblocks = { {32 * 1024, 32} },
15087 .block_erase = spi_block_erase_52,
15088 }, {
15089 .eraseblocks = { {64 * 1024, 16} },
15090 .block_erase = spi_block_erase_d8,
15091 }, {
15092 .eraseblocks = { {1 * 1024 * 1024, 1} },
15093 .block_erase = spi_block_erase_60,
15094 }, {
15095 .eraseblocks = { {1 * 1024 * 1024, 1} },
15096 .block_erase = spi_block_erase_c7,
15097 }
15098 },
15099 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15100 .unlock = spi_disable_blockprotect,
15101 .write = spi_chip_write_256,
15102 .read = spi_chip_read,
15103 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15104 },
Stanislav Sedovf5775442018-03-07 14:16:51 -080015105 {
15106 .vendor = "Winbond",
15107 .name = "W25Q80EW",
15108 .bustype = BUS_SPI,
15109 .manufacture_id = WINBOND_NEX_ID,
15110 .model_id = WINBOND_NEX_W25Q80EW,
15111 .total_size = 1024,
15112 .page_size = 256,
15113 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15114 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15115 .tested = TEST_OK_PREW,
15116 .probe = probe_spi_rdid,
15117 .probe_timing = TIMING_ZERO,
15118 .block_erasers =
15119 {
15120 {
15121 .eraseblocks = { {4 * 1024, 256} },
15122 .block_erase = spi_block_erase_20,
15123 }, {
15124 .eraseblocks = { {32 * 1024, 32} },
15125 .block_erase = spi_block_erase_52,
15126 }, {
15127 .eraseblocks = { {64 * 1024, 16} },
15128 .block_erase = spi_block_erase_d8,
15129 }, {
15130 .eraseblocks = { {1 * 1024 * 1024, 1} },
15131 .block_erase = spi_block_erase_60,
15132 }, {
15133 .eraseblocks = { {1 * 1024 * 1024, 1} },
15134 .block_erase = spi_block_erase_c7,
15135 }
15136 },
15137 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15138 .unlock = spi_disable_blockprotect,
15139 .write = spi_chip_write_256,
15140 .read = spi_chip_read,
15141 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15142 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015143
15144 {
15145 .vendor = "Winbond",
15146 .name = "W25Q16.W",
15147 .bustype = BUS_SPI,
15148 .manufacture_id = WINBOND_NEX_ID,
15149 .model_id = WINBOND_NEX_W25Q16_W,
15150 .total_size = 2048,
15151 .page_size = 256,
15152 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15153 /* QPI enable 0x38, disable 0xFF */
15154 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15155 .tested = TEST_UNTESTED,
15156 .probe = probe_spi_rdid,
15157 .probe_timing = TIMING_ZERO,
15158 .block_erasers =
15159 {
15160 {
15161 .eraseblocks = { {4 * 1024, 512} },
15162 .block_erase = spi_block_erase_20,
15163 }, {
15164 .eraseblocks = { {32 * 1024, 64} },
15165 .block_erase = spi_block_erase_52,
15166 }, {
15167 .eraseblocks = { {64 * 1024, 32} },
15168 .block_erase = spi_block_erase_d8,
15169 }, {
15170 .eraseblocks = { {2 * 1024 * 1024, 1} },
15171 .block_erase = spi_block_erase_60,
15172 }, {
15173 .eraseblocks = { {2 * 1024 * 1024, 1} },
15174 .block_erase = spi_block_erase_c7,
15175 }
15176 },
15177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15178 .unlock = spi_disable_blockprotect,
15179 .write = spi_chip_write_256,
15180 .read = spi_chip_read,
15181 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15182 },
15183
15184 {
15185 .vendor = "Winbond",
15186 .name = "W25Q32.W",
15187 .bustype = BUS_SPI,
15188 .manufacture_id = WINBOND_NEX_ID,
15189 .model_id = WINBOND_NEX_W25Q32_W,
15190 .total_size = 4096,
15191 .page_size = 256,
15192 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15193 /* QPI enable 0x38, disable 0xFF */
15194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15195 .tested = TEST_OK_PREW,
15196 .probe = probe_spi_rdid,
15197 .probe_timing = TIMING_ZERO,
15198 .block_erasers =
15199 {
15200 {
15201 .eraseblocks = { {4 * 1024, 1024} },
15202 .block_erase = spi_block_erase_20,
15203 }, {
15204 .eraseblocks = { {32 * 1024, 128} },
15205 .block_erase = spi_block_erase_52,
15206 }, {
15207 .eraseblocks = { {64 * 1024, 64} },
15208 .block_erase = spi_block_erase_d8,
15209 }, {
15210 .eraseblocks = { {4 * 1024 * 1024, 1} },
15211 .block_erase = spi_block_erase_60,
15212 }, {
15213 .eraseblocks = { {4 * 1024 * 1024, 1} },
15214 .block_erase = spi_block_erase_c7,
15215 }
15216 },
15217 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15218 .unlock = spi_disable_blockprotect,
15219 .write = spi_chip_write_256,
15220 .read = spi_chip_read,
15221 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15222 },
15223
15224 {
15225 .vendor = "Winbond",
15226 .name = "W25Q64.W",
15227 .bustype = BUS_SPI,
15228 .manufacture_id = WINBOND_NEX_ID,
15229 .model_id = WINBOND_NEX_W25Q64_W,
15230 .total_size = 8192,
15231 .page_size = 256,
15232 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15233 /* QPI enable 0x38, disable 0xFF */
15234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015235 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015236 .probe = probe_spi_rdid,
15237 .probe_timing = TIMING_ZERO,
15238 .block_erasers =
15239 {
15240 {
15241 .eraseblocks = { {4 * 1024, 2048} },
15242 .block_erase = spi_block_erase_20,
15243 }, {
15244 .eraseblocks = { {32 * 1024, 256} },
15245 .block_erase = spi_block_erase_52,
15246 }, {
15247 .eraseblocks = { {64 * 1024, 128} },
15248 .block_erase = spi_block_erase_d8,
15249 }, {
15250 .eraseblocks = { {8 * 1024 * 1024, 1} },
15251 .block_erase = spi_block_erase_60,
15252 }, {
15253 .eraseblocks = { {8 * 1024 * 1024, 1} },
15254 .block_erase = spi_block_erase_c7,
15255 }
15256 },
15257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15258 .unlock = spi_disable_blockprotect,
15259 .write = spi_chip_write_256,
15260 .read = spi_chip_read,
15261 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015262 },
15263
15264 {
15265 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020015266 .name = "W25Q128.W",
15267 .bustype = BUS_SPI,
15268 .manufacture_id = WINBOND_NEX_ID,
15269 .model_id = WINBOND_NEX_W25Q128_W,
15270 .total_size = 16384,
15271 .page_size = 256,
15272 /* supports SFDP */
15273 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15274 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080015275 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020015276 .probe = probe_spi_rdid,
15277 .probe_timing = TIMING_ZERO,
15278 .block_erasers =
15279 {
15280 {
15281 .eraseblocks = { {4 * 1024, 4096} },
15282 .block_erase = spi_block_erase_20,
15283 }, {
15284 .eraseblocks = { {32 * 1024, 512} },
15285 .block_erase = spi_block_erase_52,
15286 }, {
15287 .eraseblocks = { {64 * 1024, 256} },
15288 .block_erase = spi_block_erase_d8,
15289 }, {
15290 .eraseblocks = { {16 * 1024 * 1024, 1} },
15291 .block_erase = spi_block_erase_60,
15292 }, {
15293 .eraseblocks = { {16 * 1024 * 1024, 1} },
15294 .block_erase = spi_block_erase_c7,
15295 }
15296 },
15297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15298 .unlock = spi_disable_blockprotect,
15299 .write = spi_chip_write_256,
15300 .read = spi_chip_read,
15301 .voltage = {1650, 1950},
15302 },
15303
15304 {
15305 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015306 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015307 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015308 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015309 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015310 .total_size = 128,
15311 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015312 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015313 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015314 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015315 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015316 .block_erasers =
15317 {
15318 {
15319 .eraseblocks = { {4 * 1024, 32} },
15320 .block_erase = spi_block_erase_20,
15321 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015322 .eraseblocks = { {64 * 1024, 2} },
15323 .block_erase = spi_block_erase_d8,
15324 }, {
15325 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015326 .block_erase = spi_block_erase_c7,
15327 }
15328 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015330 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015331 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015332 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015333 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015334 },
15335
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015336 {
15337 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015338 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015339 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015340 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015341 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015342 .total_size = 256,
15343 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015344 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015345 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015346 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015347 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015348 .block_erasers =
15349 {
15350 {
15351 .eraseblocks = { {4 * 1024, 64} },
15352 .block_erase = spi_block_erase_20,
15353 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015354 .eraseblocks = { {64 * 1024, 4} },
15355 .block_erase = spi_block_erase_d8,
15356 }, {
15357 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015358 .block_erase = spi_block_erase_c7,
15359 }
15360 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015361 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015362 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015363 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015364 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015365 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015366 },
15367
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015368 {
15369 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015370 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015371 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015372 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015373 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015374 .total_size = 512,
15375 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015376 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015377 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015378 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015379 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015380 .block_erasers =
15381 {
15382 {
15383 .eraseblocks = { {4 * 1024, 128} },
15384 .block_erase = spi_block_erase_20,
15385 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015386 .eraseblocks = { {64 * 1024, 8} },
15387 .block_erase = spi_block_erase_d8,
15388 }, {
15389 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015390 .block_erase = spi_block_erase_c7,
15391 }
15392 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015394 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015396 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015397 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015398 },
15399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015400 {
15401 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015402 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015403 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015404 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015405 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015406 .total_size = 1024,
15407 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015408 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000015409 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015411 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015412 .block_erasers =
15413 {
15414 {
15415 .eraseblocks = { {4 * 1024, 256} },
15416 .block_erase = spi_block_erase_20,
15417 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015418 .eraseblocks = { {64 * 1024, 16} },
15419 .block_erase = spi_block_erase_d8,
15420 }, {
15421 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015422 .block_erase = spi_block_erase_c7,
15423 }
15424 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015425 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015426 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015427 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015428 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015429 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015430 },
15431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015432 {
15433 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015434 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015435 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000015436 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015437 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000015438 .total_size = 2048,
15439 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015440 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000015441 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000015442 .probe = probe_spi_rdid,
15443 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015444 .block_erasers =
15445 {
15446 {
15447 .eraseblocks = { {4 * 1024, 512} },
15448 .block_erase = spi_block_erase_20,
15449 }, {
15450 .eraseblocks = { {32 * 1024, 64} },
15451 .block_erase = spi_block_erase_52,
15452 }, {
15453 .eraseblocks = { {64 * 1024, 32} },
15454 .block_erase = spi_block_erase_d8,
15455 }, {
15456 .eraseblocks = { {2 * 1024 * 1024, 1} },
15457 .block_erase = spi_block_erase_60,
15458 }, {
15459 .eraseblocks = { {2 * 1024 * 1024, 1} },
15460 .block_erase = spi_block_erase_c7,
15461 }
15462 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015463 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015464 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000015465 .write = spi_chip_write_256,
15466 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015467 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000015468 },
15469
15470 {
15471 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015472 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015473 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015474 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015475 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000015476 .total_size = 4096,
15477 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015478 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015479 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015480 .probe = probe_spi_rdid,
15481 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015482 .block_erasers =
15483 {
15484 {
15485 .eraseblocks = { {4 * 1024, 1024} },
15486 .block_erase = spi_block_erase_20,
15487 }, {
15488 .eraseblocks = { {32 * 1024, 128} },
15489 .block_erase = spi_block_erase_52,
15490 }, {
15491 .eraseblocks = { {64 * 1024, 64} },
15492 .block_erase = spi_block_erase_d8,
15493 }, {
15494 .eraseblocks = { {4 * 1024 * 1024, 1} },
15495 .block_erase = spi_block_erase_60,
15496 }, {
15497 .eraseblocks = { {4 * 1024 * 1024, 1} },
15498 .block_erase = spi_block_erase_c7,
15499 }
15500 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015501 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015502 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015503 .write = spi_chip_write_256,
15504 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015505 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015506 },
15507
15508 {
15509 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015510 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015511 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015512 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015513 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000015514 .total_size = 8192,
15515 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015516 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015517 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015518 .probe = probe_spi_rdid,
15519 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015520 .block_erasers =
15521 {
15522 {
15523 .eraseblocks = { {4 * 1024, 2048} },
15524 .block_erase = spi_block_erase_20,
15525 }, {
15526 .eraseblocks = { {32 * 1024, 256} },
15527 .block_erase = spi_block_erase_52,
15528 }, {
15529 .eraseblocks = { {64 * 1024, 128} },
15530 .block_erase = spi_block_erase_d8,
15531 }, {
15532 .eraseblocks = { {8 * 1024 * 1024, 1} },
15533 .block_erase = spi_block_erase_60,
15534 }, {
15535 .eraseblocks = { {8 * 1024 * 1024, 1} },
15536 .block_erase = spi_block_erase_c7,
15537 }
15538 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015540 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015541 .write = spi_chip_write_256,
15542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015543 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015544 },
15545
15546 {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080015547 .vendor = "Winbond",
15548 .name = "W25P80",
15549 .bustype = BUS_SPI,
15550 .manufacture_id = WINBOND_NEX_ID,
15551 .model_id = WINBOND_NEX_W25P80,
15552 .total_size = 1024,
15553 .page_size = 256,
15554 .feature_bits = FEATURE_WRSR_WREN,
15555 .tested = TEST_UNTESTED,
15556 .probe = probe_spi_rdid,
15557 .probe_timing = TIMING_ZERO,
15558 .block_erasers =
15559 {
15560 {
15561 .eraseblocks = { {64 * 1024, 16} },
15562 .block_erase = spi_block_erase_d8,
15563 }, {
15564 .eraseblocks = { {1024 * 1024, 1} },
15565 .block_erase = spi_block_erase_c7,
15566 }
15567 },
15568 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15569 .unlock = spi_disable_blockprotect,
15570 .write = spi_chip_write_256,
15571 .read = spi_chip_read, /* Fast read (0x0B) supported */
15572 .voltage = {2700, 3600},
15573 },
15574
15575 {
15576 .vendor = "Winbond",
15577 .name = "W25P16",
15578 .bustype = BUS_SPI,
15579 .manufacture_id = WINBOND_NEX_ID,
15580 .model_id = WINBOND_NEX_W25P16,
15581 .total_size = 2048,
15582 .page_size = 256,
15583 .feature_bits = FEATURE_WRSR_WREN,
15584 .tested = TEST_UNTESTED,
15585 .probe = probe_spi_rdid,
15586 .probe_timing = TIMING_ZERO,
15587 .block_erasers =
15588 {
15589 {
15590 .eraseblocks = { {64 * 1024, 32} },
15591 .block_erase = spi_block_erase_d8,
15592 }, {
15593 .eraseblocks = { {2048 * 1024, 1} },
15594 .block_erase = spi_block_erase_c7,
15595 }
15596 },
15597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15598 .unlock = spi_disable_blockprotect,
15599 .write = spi_chip_write_256,
15600 .read = spi_chip_read, /* Fast read (0x0B) supported */
15601 .voltage = {2700, 3600},
15602 },
15603
15604 {
15605 .vendor = "Winbond",
15606 .name = "W25P32",
15607 .bustype = BUS_SPI,
15608 .manufacture_id = WINBOND_NEX_ID,
15609 .model_id = WINBOND_NEX_W25P32,
15610 .total_size = 4096,
15611 .page_size = 256,
15612 .feature_bits = FEATURE_WRSR_WREN,
15613 .tested = TEST_UNTESTED,
15614 .probe = probe_spi_rdid,
15615 .probe_timing = TIMING_ZERO,
15616 .block_erasers =
15617 {
15618 {
15619 .eraseblocks = { {64 * 1024, 64} },
15620 .block_erase = spi_block_erase_d8,
15621 }, {
15622 .eraseblocks = { {4096 * 1024, 1} },
15623 .block_erase = spi_block_erase_c7,
15624 }
15625 },
15626 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15627 .unlock = spi_disable_blockprotect,
15628 .write = spi_chip_write_256,
15629 .read = spi_chip_read, /* Fast read (0x0B) supported */
15630 .voltage = {2700, 3600},
15631 },
15632 {
Zheng Bao1db2b752009-11-26 11:05:01 +000015633 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000015634 .name = "W29C512A/W29EE512",
15635 .bustype = BUS_PARALLEL,
15636 .manufacture_id = WINBOND_ID,
15637 .model_id = WINBOND_W29C512A,
15638 .total_size = 64,
15639 .page_size = 128,
15640 .feature_bits = FEATURE_LONG_RESET,
15641 .tested = TEST_OK_PREW,
15642 .probe = probe_jedec,
15643 .probe_timing = 10,
15644 .block_erasers =
15645 {
15646 {
15647 .eraseblocks = { {64 * 1024, 1} },
15648 .block_erase = erase_chip_block_jedec,
15649 }
15650 },
15651 .write = write_jedec,
15652 .read = read_memmapped,
15653 .voltage = {4500, 5500},
15654 },
15655
15656 {
15657 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015658 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015659 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015660 .manufacture_id = WINBOND_ID,
15661 .model_id = WINBOND_W29C010,
15662 .total_size = 128,
15663 .page_size = 128,
15664 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015665 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015666 .probe = probe_w29ee011,
15667 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
15668 .block_erasers =
15669 {
15670 {
15671 .eraseblocks = { {128 * 1024, 1} },
15672 .block_erase = erase_chip_block_jedec,
15673 }
15674 },
15675 .write = write_jedec,
15676 .read = read_memmapped,
15677 },
15678
15679 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
15680 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015681 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015682 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015683 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015684 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015685 .total_size = 128,
15686 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015687 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000015688 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015689 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015690 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015691 .block_erasers =
15692 {
15693 {
15694 .eraseblocks = { {128 * 1024, 1} },
15695 .block_erase = erase_chip_block_jedec,
15696 }
15697 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015698 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015699 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015700 },
15701
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015702 {
15703 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015704 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015705 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015706 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015707 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015708 .total_size = 256,
15709 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015710 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015711 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015712 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015713 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015714 .block_erasers =
15715 {
15716 {
15717 .eraseblocks = { {256 * 1024, 1} },
15718 .block_erase = erase_chip_block_jedec,
15719 }
15720 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015721 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015723 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015724 },
15725
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015726 {
15727 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015728 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015729 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015730 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015731 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015732 .total_size = 512,
15733 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000015734 .feature_bits = FEATURE_LONG_RESET,
15735 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015736 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015737 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015738 .block_erasers =
15739 {
15740 {
15741 .eraseblocks = { {512 * 1024, 1} },
15742 .block_erase = erase_chip_block_jedec,
15743 }
15744 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015745 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015746 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015747 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015748 },
15749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015750 {
15751 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000015752 .name = "W29GL032CB",
15753 .bustype = BUS_PARALLEL,
15754 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15755 .model_id = WINBOND_W29GL032CB,
15756 .total_size = 4096,
15757 .page_size = 128 * 1024, /* actual page size is 16 */
15758 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15759 .tested = TEST_UNTESTED,
15760 .probe = probe_jedec_29gl,
15761 .probe_timing = TIMING_ZERO,
15762 .block_erasers =
15763 {
15764 {
15765 .eraseblocks = {
15766 {8 * 1024, 8},
15767 {64 * 1024, 63},
15768 },
15769 .block_erase = erase_sector_jedec,
15770 }, {
15771 .eraseblocks = { {4 * 1024 * 1024, 1} },
15772 .block_erase = erase_chip_block_jedec,
15773 },
15774 },
15775 .write = write_jedec_1,
15776 .read = read_memmapped,
15777 .voltage = {2700, 3600},
15778 },
15779
15780 {
15781 .vendor = "Winbond",
15782 .name = "W29GL032CT",
15783 .bustype = BUS_PARALLEL,
15784 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15785 .model_id = WINBOND_W29GL032CT,
15786 .total_size = 4096,
15787 .page_size = 128 * 1024, /* actual page size is 16 */
15788 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15789 .tested = TEST_UNTESTED,
15790 .probe = probe_jedec_29gl,
15791 .probe_timing = TIMING_ZERO,
15792 .block_erasers =
15793 {
15794 {
15795 .eraseblocks = {
15796 {64 * 1024, 63},
15797 {8 * 1024, 8},
15798 },
15799 .block_erase = erase_sector_jedec,
15800 }, {
15801 .eraseblocks = { {4 * 1024 * 1024, 1} },
15802 .block_erase = erase_chip_block_jedec,
15803 },
15804 },
15805 .write = write_jedec_1,
15806 .read = read_memmapped,
15807 .voltage = {2700, 3600},
15808 },
15809
15810 {
15811 .vendor = "Winbond",
15812 .name = "W29GL032CH/L",
15813 .bustype = BUS_PARALLEL,
15814 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15815 .model_id = WINBOND_W29GL032CHL,
15816 .total_size = 4096,
15817 .page_size = 128 * 1024, /* actual page size is 16 */
15818 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15819 .tested = TEST_UNTESTED,
15820 .probe = probe_jedec_29gl,
15821 .probe_timing = TIMING_ZERO,
15822 .block_erasers =
15823 {
15824 {
15825 .eraseblocks = { {64 * 1024, 64} },
15826 .block_erase = erase_sector_jedec,
15827 }, {
15828 .eraseblocks = { {4 * 1024 * 1024, 1} },
15829 .block_erase = erase_chip_block_jedec,
15830 },
15831 },
15832 .write = write_jedec_1,
15833 .read = read_memmapped,
15834 .voltage = {2700, 3600},
15835 },
15836
15837 {
15838 .vendor = "Winbond",
15839 .name = "W29GL064CB",
15840 .bustype = BUS_PARALLEL,
15841 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15842 .model_id = WINBOND_W29GL064CB,
15843 .total_size = 8192,
15844 .page_size = 128 * 1024, /* actual page size is 16 */
15845 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15846 .tested = TEST_UNTESTED,
15847 .probe = probe_jedec_29gl,
15848 .probe_timing = TIMING_ZERO,
15849 .block_erasers =
15850 {
15851 {
15852 .eraseblocks = {
15853 {8 * 1024, 8},
15854 {64 * 1024, 127},
15855 },
15856 .block_erase = erase_sector_jedec,
15857 }, {
15858 .eraseblocks = { {8 * 1024 * 1024, 1} },
15859 .block_erase = erase_chip_block_jedec,
15860 },
15861 },
15862 .write = write_jedec_1,
15863 .read = read_memmapped,
15864 .voltage = {2700, 3600},
15865 },
15866
15867 {
15868 .vendor = "Winbond",
15869 .name = "W29GL064CT",
15870 .bustype = BUS_PARALLEL,
15871 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15872 .model_id = WINBOND_W29GL064CT,
15873 .total_size = 8192,
15874 .page_size = 128 * 1024, /* actual page size is 16 */
15875 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15876 .tested = TEST_UNTESTED,
15877 .probe = probe_jedec_29gl,
15878 .probe_timing = TIMING_ZERO,
15879 .block_erasers =
15880 {
15881 {
15882 .eraseblocks = {
15883 {64 * 1024, 127},
15884 {8 * 1024, 8},
15885 },
15886 .block_erase = erase_sector_jedec,
15887 }, {
15888 .eraseblocks = { {8 * 1024 * 1024, 1} },
15889 .block_erase = erase_chip_block_jedec,
15890 },
15891 },
15892 .write = write_jedec_1,
15893 .read = read_memmapped,
15894 .voltage = {2700, 3600},
15895 },
15896
15897 {
15898 .vendor = "Winbond",
15899 .name = "W29GL064CH/L",
15900 .bustype = BUS_PARALLEL,
15901 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15902 .model_id = WINBOND_W29GL064CHL,
15903 .total_size = 8192,
15904 .page_size = 128 * 1024, /* actual page size is 16 */
15905 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15906 .tested = TEST_UNTESTED,
15907 .probe = probe_jedec_29gl,
15908 .probe_timing = TIMING_ZERO,
15909 .block_erasers =
15910 {
15911 {
15912 .eraseblocks = { {64 * 1024, 128} },
15913 .block_erase = erase_sector_jedec,
15914 }, {
15915 .eraseblocks = { {8 * 1024 * 1024, 1} },
15916 .block_erase = erase_chip_block_jedec,
15917 },
15918 },
15919 .write = write_jedec_1,
15920 .read = read_memmapped,
15921 .voltage = {2700, 3600},
15922 },
15923
15924 {
15925 .vendor = "Winbond",
15926 .name = "W29GL128C",
15927 .bustype = BUS_PARALLEL,
15928 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15929 .model_id = WINBOND_W29GL128CHL,
15930 .total_size = 16384,
15931 .page_size = 128 * 1024, /* actual page size is 16 */
15932 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15933 .tested = TEST_UNTESTED,
15934 .probe = probe_jedec_29gl,
15935 .probe_timing = TIMING_ZERO,
15936 .block_erasers =
15937 {
15938 {
15939 .eraseblocks = { {128 * 1024, 128} },
15940 .block_erase = erase_sector_jedec,
15941 }, {
15942 .eraseblocks = { {16 * 1024 * 1024, 1} },
15943 .block_erase = erase_chip_block_jedec,
15944 },
15945 },
15946 .write = write_jedec_1,
15947 .read = read_memmapped,
15948 .voltage = {2700, 3600},
15949 },
15950
15951 {
15952 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000015953 .name = "W39F010",
15954 .bustype = BUS_PARALLEL,
15955 .manufacture_id = WINBOND_ID,
15956 .model_id = WINBOND_W39F010,
15957 .total_size = 128,
15958 .page_size = 4 * 1024,
15959 .feature_bits = FEATURE_EITHER_RESET,
15960 .tested = TEST_OK_PREW,
15961 .probe = probe_jedec,
15962 .probe_timing = 10,
15963 .block_erasers =
15964 {
15965 {
15966 .eraseblocks = { {4 * 1024, 32} },
15967 .block_erase = erase_block_jedec,
15968 }, {
15969 .eraseblocks = { {128 * 1024, 1} },
15970 .block_erase = erase_chip_block_jedec,
15971 }
15972 },
15973 .printlock = printlock_w39f010,
15974 .write = write_jedec_1,
15975 .read = read_memmapped,
15976 .voltage = {4500, 5500},
15977 },
15978
15979 {
15980 .vendor = "Winbond",
15981 .name = "W39L010",
15982 .bustype = BUS_PARALLEL,
15983 .manufacture_id = WINBOND_ID,
15984 .model_id = WINBOND_W39L010,
15985 .total_size = 128,
15986 .page_size = 4 * 1024,
15987 .feature_bits = FEATURE_EITHER_RESET,
15988 .tested = TEST_UNTESTED,
15989 .probe = probe_jedec,
15990 .probe_timing = 10,
15991 .block_erasers =
15992 {
15993 {
15994 .eraseblocks = { {4 * 1024, 32} },
15995 .block_erase = erase_block_jedec,
15996 }, {
15997 .eraseblocks = { {128 * 1024, 1} },
15998 .block_erase = erase_chip_block_jedec,
15999 }
16000 },
16001 .printlock = printlock_w39l010,
16002 .write = write_jedec_1,
16003 .read = read_memmapped,
16004 .voltage = {3000, 3600},
16005 },
16006
16007 {
16008 .vendor = "Winbond",
16009 .name = "W39L020",
16010 .bustype = BUS_PARALLEL,
16011 .manufacture_id = WINBOND_ID,
16012 .model_id = WINBOND_W39L020,
16013 .total_size = 256,
16014 .page_size = 4 * 1024,
16015 .feature_bits = FEATURE_EITHER_RESET,
16016 .tested = TEST_UNTESTED,
16017 .probe = probe_jedec,
16018 .probe_timing = 10,
16019 .block_erasers =
16020 {
16021 {
16022 .eraseblocks = { {4 * 1024, 64} },
16023 .block_erase = erase_block_jedec,
16024 }, {
16025 .eraseblocks = { {64 * 1024, 4} },
16026 .block_erase = erase_sector_jedec,
16027 }, {
16028 .eraseblocks = { {256 * 1024, 1} },
16029 .block_erase = erase_chip_block_jedec,
16030 }
16031 },
16032 .printlock = printlock_w39l020,
16033 .write = write_jedec_1,
16034 .read = read_memmapped,
16035 .voltage = {3000, 3600},
16036 },
16037
16038 {
16039 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000016040 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016041 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000016042 .manufacture_id = WINBOND_ID,
16043 .model_id = WINBOND_W39L040,
16044 .total_size = 512,
16045 .page_size = 64 * 1024,
16046 .feature_bits = FEATURE_EITHER_RESET,
16047 .tested = TEST_OK_PR,
16048 .probe = probe_jedec,
16049 .probe_timing = 10,
16050 .block_erasers =
16051 {
16052 {
16053 .eraseblocks = { {4 * 1024, 128} },
16054 .block_erase = erase_block_jedec,
16055 }, {
16056 .eraseblocks = { {64 * 1024, 8} },
16057 .block_erase = erase_sector_jedec,
16058 }, {
16059 .eraseblocks = { {512 * 1024, 1} },
16060 .block_erase = erase_chip_block_jedec,
16061 }
16062 },
16063 .printlock = printlock_w39l040,
16064 .write = write_jedec_1,
16065 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016066 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000016067 },
16068
16069 {
16070 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016071 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016072 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016073 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016074 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016075 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016076 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016077 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016078 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016079 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000016080 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016081 .block_erasers =
16082 {
16083 {
16084 .eraseblocks = { {64 * 1024, 8} },
16085 .block_erase = erase_sector_jedec,
16086 }, {
16087 .eraseblocks = { {512 * 1024, 1} },
16088 .block_erase = erase_chip_block_jedec,
16089 }
16090 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016091 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000016092 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016093 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016094 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016095 },
16096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016097 {
16098 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016099 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016100 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016101 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016102 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016103 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016104 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016105 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016107 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000016108 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016109 .block_erasers =
16110 {
16111 {
16112 .eraseblocks = { {64 * 1024, 8} },
16113 .block_erase = erase_sector_jedec,
16114 }, {
16115 .eraseblocks = { {512 * 1024, 1} },
16116 .block_erase = erase_chip_block_jedec,
16117 }
16118 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016119 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000016120 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016122 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016123 },
16124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016125 {
16126 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016127 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016128 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016129 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016130 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016131 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016132 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016133 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016134 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000016135 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016136 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016137 .block_erasers =
16138 {
16139 {
16140 .eraseblocks = { {64 * 1024, 8} },
16141 .block_erase = erase_sector_jedec,
16142 }, {
16143 .eraseblocks = { {512 * 1024, 1} },
16144 .block_erase = erase_chip_block_jedec,
16145 }
16146 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000016147 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000016148 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016149 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016150 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016151 },
16152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016153 {
16154 .vendor = "Winbond",
16155 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016156 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016157 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016158 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016159 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016160 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000016161 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016162 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016163 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016164 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016165 .block_erasers =
16166 {
16167 {
16168 .eraseblocks = { {4 * 1024, 128} },
16169 .block_erase = erase_block_jedec,
16170 }, {
16171 .eraseblocks = { {64 * 1024, 8} },
16172 .block_erase = erase_sector_jedec,
16173 }, {
16174 .eraseblocks = { {512 * 1024, 1} },
16175 .block_erase = erase_chip_block_jedec,
16176 }
16177 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016178 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016179 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016180 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016181 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016182 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016183 },
16184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016185 {
16186 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016187 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016188 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016189 .manufacture_id = WINBOND_ID,
16190 .model_id = WINBOND_W39V040B,
16191 .total_size = 512,
16192 .page_size = 64 * 1024,
16193 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000016194 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016195 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016196 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016197 .block_erasers =
16198 {
16199 {
16200 .eraseblocks = { {64 * 1024, 8} },
16201 .block_erase = erase_sector_jedec,
16202 }, {
16203 .eraseblocks = { {512 * 1024, 1} },
16204 .block_erase = erase_chip_block_jedec,
16205 }
16206 },
16207 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016208 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016209 .write = write_jedec_1,
16210 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016211 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016212 },
16213
16214 {
16215 .vendor = "Winbond",
16216 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016217 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016218 .manufacture_id = WINBOND_ID,
16219 .model_id = WINBOND_W39V040C,
16220 .total_size = 512,
16221 .page_size = 64 * 1024,
16222 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000016223 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016224 .probe = probe_jedec,
16225 .probe_timing = 10,
16226 .block_erasers =
16227 {
16228 {
16229 .eraseblocks = { {64 * 1024, 8} },
16230 .block_erase = erase_sector_jedec,
16231 }, {
16232 .eraseblocks = { {512 * 1024, 1} },
16233 .block_erase = erase_chip_block_jedec,
16234 }
16235 },
16236 .printlock = printlock_w39v040fc,
16237 .write = write_jedec_1,
16238 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016239 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016240 },
16241
16242 {
16243 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016244 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016245 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016246 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016247 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016248 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016249 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016250 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000016251 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016252 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000016253 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016254 .block_erasers =
16255 {
16256 {
16257 .eraseblocks = { {64 * 1024, 16} },
16258 .block_erase = erase_sector_jedec,
16259 }, {
16260 .eraseblocks = { {1024 * 1024, 1} },
16261 .block_erase = erase_chip_block_jedec,
16262 }
16263 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016264 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000016265 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016267 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016268 },
16269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016270 {
16271 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016272 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016273 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016274 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016275 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016276 .total_size = 256,
16277 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016278 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016279 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016280 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016281 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016282 .block_erasers =
16283 {
16284 {
16285 .eraseblocks = {
16286 {128 * 1024, 1},
16287 {96 * 1024, 1},
16288 {8 * 1024, 2},
16289 {16 * 1024, 1},
16290 },
16291 .block_erase = erase_sector_jedec,
16292 }, {
16293 .eraseblocks = { {256 * 1024, 1} },
16294 .block_erase = erase_chip_block_jedec,
16295 }
16296 },
Sean Nelson35727f72010-01-28 23:55:12 +000016297 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016298 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016299 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016300 },
16301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016302 {
16303 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016304 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016305 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016306 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016307 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016308 .total_size = 256,
16309 .page_size = 128,
16310 .feature_bits = FEATURE_EITHER_RESET,
16311 .tested = TEST_OK_PROBE,
16312 .probe = probe_jedec,
16313 .probe_timing = 10,
16314 .block_erasers =
16315 {
16316 {
16317 .eraseblocks = { {256 * 1024, 1} },
16318 .block_erase = erase_chip_block_jedec,
16319 }
16320 },
16321 .write = write_jedec_1,
16322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016323 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016324 },
16325
16326 {
16327 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016328 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016329 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016330 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016331 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016332 .total_size = 256,
16333 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016334 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016335 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016336 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016337 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016338 .block_erasers =
16339 {
16340 {
16341 .eraseblocks = {
16342 {64 * 1024, 3},
16343 {32 * 1024, 1},
16344 {8 * 1024, 2},
16345 {16 * 1024, 1},
16346 },
16347 .block_erase = erase_sector_jedec,
16348 }, {
16349 .eraseblocks = { {256 * 1024, 1} },
16350 .block_erase = erase_chip_block_jedec,
16351 }
16352 },
Sean Nelson35727f72010-01-28 23:55:12 +000016353 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016355 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016356 },
16357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016358 {
16359 .vendor = "Winbond",
16360 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016361 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016362 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016363 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016364 .total_size = 256,
16365 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016366 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000016367 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016368 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016369 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016370 .block_erasers =
16371 {
16372 {
16373 .eraseblocks = {
16374 {64 * 1024, 3},
16375 {32 * 1024, 1},
16376 {8 * 1024, 2},
16377 {16 * 1024, 1},
16378 },
16379 .block_erase = erase_sector_jedec,
16380 }, {
16381 .eraseblocks = { {256 * 1024, 1} },
16382 .block_erase = erase_chip_block_jedec,
16383 }
16384 },
Sean Nelson35727f72010-01-28 23:55:12 +000016385 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016386 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016387 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016388 },
16389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016390 {
16391 .vendor = "Winbond",
16392 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016393 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016394 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016395 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016396 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016397 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016398 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016399 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016400 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016401 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016402 .block_erasers =
16403 {
16404 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016405 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016406 .block_erase = erase_sector_jedec,
16407 }, {
16408 .eraseblocks = { {1024 * 1024, 1} },
16409 .block_erase = erase_chip_block_jedec,
16410 }
16411 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016412 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016413 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016414 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016415 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016416 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016417 },
16418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016419 {
16420 .vendor = "Winbond",
16421 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016422 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016423 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016424 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016425 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016426 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016427 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016428 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016429 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016430 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016431 .block_erasers =
16432 {
16433 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016434 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016435 .block_erase = erase_sector_jedec,
16436 }, {
16437 .eraseblocks = { {512 * 1024, 1} },
16438 .block_erase = erase_chip_block_jedec,
16439 }
16440 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016441 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000016442 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016443 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016444 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016445 },
nybashcbb46e22018-02-11 17:53:49 -080016446
16447 {
16448 .vendor = "Zetta Device",
David Hendricksa72d5a92018-02-11 17:58:44 -080016449 .name = "ZD25D20",
16450 .bustype = BUS_SPI,
16451 .manufacture_id = ZETTADEVICE_ID,
16452 .model_id = ZETTADEVICE_ZD25D20,
16453 .total_size = 256,
16454 .page_size = 256,
16455 .feature_bits = FEATURE_WRSR_WREN,
16456 .tested = TEST_UNTESTED,
16457 .probe = probe_spi_rdid,
16458 .probe_timing = TIMING_ZERO,
16459 .block_erasers =
16460 {
16461 {
16462 .eraseblocks = { {4 * 1024, 64} },
16463 .block_erase = spi_block_erase_20,
16464 }, {
16465 .eraseblocks = { {32 * 1024, 8} },
16466 .block_erase = spi_block_erase_52,
16467 }, {
16468 .eraseblocks = { {64 * 1024, 4} },
16469 .block_erase = spi_block_erase_d8,
16470 }, {
16471 .eraseblocks = { {256 * 1024, 1} },
16472 .block_erase = spi_block_erase_60,
16473 }, {
16474 .eraseblocks = { {256 * 1024, 1} },
16475 .block_erase = spi_block_erase_c7,
16476 }
16477 },
16478 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16479 .unlock = spi_disable_blockprotect,
16480 .write = spi_chip_write_256,
16481 .read = spi_chip_read,
16482 .voltage = {2700, 3600},
16483 },
16484
16485 {
16486 .vendor = "Zetta Device",
nybashcbb46e22018-02-11 17:53:49 -080016487 .name = "ZD25D40",
16488 .bustype = BUS_SPI,
16489 .manufacture_id = ZETTADEVICE_ID,
16490 .model_id = ZETTADEVICE_ZD25D40,
16491 .total_size = 512,
16492 .page_size = 256,
16493 .feature_bits = FEATURE_WRSR_WREN,
16494 .tested = TEST_UNTESTED,
16495 .probe = probe_spi_rdid,
16496 .probe_timing = TIMING_ZERO,
16497 .block_erasers =
16498 {
16499 {
16500 .eraseblocks = { {4 * 1024, 128} },
16501 .block_erase = spi_block_erase_20,
16502 }, {
16503 .eraseblocks = { {32 * 1024, 16} },
16504 .block_erase = spi_block_erase_52,
16505 }, {
16506 .eraseblocks = { {64 * 1024, 8} },
16507 .block_erase = spi_block_erase_d8,
16508 }, {
16509 .eraseblocks = { {512 * 1024, 1} },
16510 .block_erase = spi_block_erase_60,
16511 }, {
16512 .eraseblocks = { {512 * 1024, 1} },
16513 .block_erase = spi_block_erase_c7,
16514 }
16515 },
16516 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16517 .unlock = spi_disable_blockprotect,
16518 .write = spi_chip_write_256,
16519 .read = spi_chip_read,
16520 .voltage = {2700, 3600},
16521 },
16522
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016523 {
16524 .vendor = "Unknown",
16525 .name = "SFDP-capable chip",
16526 .bustype = BUS_SPI,
16527 .manufacture_id = GENERIC_MANUF_ID,
16528 .model_id = SFDP_DEVICE_ID,
16529 /* We present our own "report this" text hence we do not
16530 * want the default "This flash part has status UNTESTED..."
16531 * text to be printed. */
16532 .tested = TEST_OK_PREW,
16533 .probe = probe_spi_sfdp,
16534 .unlock = spi_disable_blockprotect, /* is this safe? */
16535 .read = spi_chip_read,
16536 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000016537 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016538 /* Everything below will be set by the probing function. */
16539 .write = NULL,
16540 .total_size = 0,
16541 .page_size = 0,
16542 .feature_bits = 0,
16543 .block_erasers = {},
16544 },
FENG yu ningff692fb2008-12-08 18:15:10 +000016545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016546 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000016547 .vendor = "Programmer",
16548 .name = "Opaque flash chip",
16549 .bustype = BUS_PROG,
16550 .manufacture_id = PROGMANUF_ID,
16551 .model_id = PROGDEV_ID,
16552 .total_size = 0,
16553 .page_size = 256,
16554 /* probe is assumed to work, rest will be filled in by probe */
16555 .tested = TEST_OK_PROBE,
16556 .probe = probe_opaque,
16557 /* eraseblock sizes will be set by the probing function */
16558 .block_erasers =
16559 {
16560 {
16561 .block_erase = erase_opaque,
16562 }
16563 },
16564 .write = write_opaque,
16565 .read = read_opaque,
16566 },
16567
16568 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016569 .vendor = "AMIC",
16570 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016571 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016572 .manufacture_id = AMIC_ID,
16573 .model_id = GENERIC_DEVICE_ID,
16574 .total_size = 0,
16575 .page_size = 256,
16576 .tested = TEST_BAD_PREW,
16577 .probe = probe_spi_rdid4,
16578 .probe_timing = TIMING_ZERO,
16579 .write = NULL,
16580 .read = NULL,
16581 },
16582
16583 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016584 .vendor = "Atmel",
16585 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016586 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016587 .manufacture_id = ATMEL_ID,
16588 .model_id = GENERIC_DEVICE_ID,
16589 .total_size = 0,
16590 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016591 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016592 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016593 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016594 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016595 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016596 },
16597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016598 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000016599 .vendor = "Eon",
16600 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016601 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016602 .manufacture_id = EON_ID_NOPREFIX,
16603 .model_id = GENERIC_DEVICE_ID,
16604 .total_size = 0,
16605 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016606 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016607 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016608 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016609 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016610 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016611 },
16612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016613 {
16614 .vendor = "Macronix",
16615 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016616 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000016617 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016618 .model_id = GENERIC_DEVICE_ID,
16619 .total_size = 0,
16620 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016621 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016622 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016623 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016624 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016625 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016626 },
16627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016628 {
16629 .vendor = "PMC",
16630 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016631 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016632 .manufacture_id = PMC_ID,
16633 .model_id = GENERIC_DEVICE_ID,
16634 .total_size = 0,
16635 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016636 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016637 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016638 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016639 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016640 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016641 },
16642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016643 {
16644 .vendor = "SST",
16645 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016646 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016647 .manufacture_id = SST_ID,
16648 .model_id = GENERIC_DEVICE_ID,
16649 .total_size = 0,
16650 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016651 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016652 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016653 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016654 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016655 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016656 },
16657
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016658 {
16659 .vendor = "ST",
16660 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016661 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016662 .manufacture_id = ST_ID,
16663 .model_id = GENERIC_DEVICE_ID,
16664 .total_size = 0,
16665 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016666 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016667 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016668 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016669 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016670 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016671 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000016672
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016673 {
Sean Nelson118e1d62009-11-24 02:08:11 +000016674 .vendor = "Sanyo",
16675 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016676 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000016677 .manufacture_id = SANYO_ID,
16678 .model_id = GENERIC_DEVICE_ID,
16679 .total_size = 0,
16680 .page_size = 256,
16681 .tested = TEST_BAD_PREW,
16682 .probe = probe_spi_rdid,
16683 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000016684 .write = NULL,
16685 .read = NULL,
16686 },
16687
16688 {
Stefan Taunereb582572012-09-21 12:52:50 +000016689 .vendor = "Winbond",
16690 .name = "unknown Winbond (ex Nexcom) SPI chip",
16691 .bustype = BUS_SPI,
16692 .manufacture_id = WINBOND_NEX_ID,
16693 .model_id = GENERIC_DEVICE_ID,
16694 .total_size = 0,
16695 .page_size = 256,
16696 .tested = TEST_BAD_PREW,
16697 .probe = probe_spi_rdid,
16698 .probe_timing = TIMING_ZERO,
16699 .write = NULL,
16700 .read = NULL,
16701 },
16702
16703 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016704 .vendor = "Generic",
16705 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016706 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016707 .manufacture_id = GENERIC_MANUF_ID,
16708 .model_id = GENERIC_DEVICE_ID,
16709 .total_size = 0,
16710 .page_size = 256,
16711 .tested = TEST_BAD_PREW,
16712 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016713 .write = NULL,
16714 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000016715
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016716 {
16717 .vendor = "Generic",
16718 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016719 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016720 .manufacture_id = GENERIC_MANUF_ID,
16721 .model_id = GENERIC_DEVICE_ID,
16722 .total_size = 0,
16723 .page_size = 256,
16724 .tested = TEST_BAD_PREW,
16725 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016726 .write = NULL,
16727 },
16728
Stefan Tauner96658be2014-05-26 22:05:31 +000016729 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000016730};
Stefan Tauner96658be2014-05-26 22:05:31 +000016731
16732const unsigned int flashchips_size = ARRAY_SIZE(flashchips);