blob: 6fa64463794e0ba2fe6d7009101cb8596e402cee [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000062 .name = "Am29F010",
63 .bustype = BUS_PARALLEL,
64 .manufacture_id = AMD_ID,
65 .model_id = AMD_AM29F010,
66 .total_size = 128,
67 .page_size = 16 * 1024,
68 .feature_bits = FEATURE_SHORT_RESET,
69 .tested = TEST_UNTESTED,
70 .probe = probe_jedec,
71 .probe_timing = TIMING_ZERO,
72 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
76 .block_erase = erase_sector_jedec,
77 }, {
78 .eraseblocks = { {128 * 1024, 1} },
79 .block_erase = erase_chip_block_jedec,
80 },
81 },
82 .write = write_jedec_1,
83 .read = read_memmapped,
84 .voltage = {4500, 5500},
85 },
86
87 {
88 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000089 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000091 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000092 .model_id = AMD_AM29F010,
Uwe Hermanna8b37272009-06-19 15:54:39 +000093 .total_size = 128,
94 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000096 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000097 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000103 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000104 }, {
105 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000106 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000107 },
108 },
Sean Nelson35727f72010-01-28 23:55:12 +0000109 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +0000110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000111 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +0000112 },
113
114 {
115 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000117 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000118 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000119 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000120 .total_size = 256,
121 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000122 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .tested = TEST_UNTESTED,
124 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000125 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000126 .block_erasers =
127 {
128 {
129 .eraseblocks = {
130 {16 * 1024, 1},
131 {8 * 1024, 2},
132 {32 * 1024, 1},
133 {64 * 1024, 3},
134 },
135 .block_erase = erase_sector_jedec,
136 }, {
137 .eraseblocks = { {256 * 1024, 1} },
138 .block_erase = erase_chip_block_jedec,
139 },
140 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000142 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000143 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000144 },
145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000146 {
147 .vendor = "AMD",
148 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000149 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000150 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000151 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000152 .total_size = 256,
153 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000154 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
155 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000156 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000157 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000158 .block_erasers =
159 {
160 {
161 .eraseblocks = {
162 {64 * 1024, 3},
163 {32 * 1024, 1},
164 {8 * 1024, 2},
165 {16 * 1024, 1},
166 },
167 .block_erase = erase_sector_jedec,
168 }, {
169 .eraseblocks = { {256 * 1024, 1} },
170 .block_erase = erase_chip_block_jedec,
171 },
172 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000175 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000184 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000187 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000207 .name = "Am29F040",
208 .bustype = BUS_PARALLEL,
209 .manufacture_id = AMD_ID,
210 .model_id = AMD_AM29F040,
211 .total_size = 512,
212 .page_size = 64 * 1024,
213 .feature_bits = FEATURE_EITHER_RESET,
214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
216 .probe_timing = TIMING_ZERO,
217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 8} },
221 .block_erase = erase_sector_jedec,
222 }, {
223 .eraseblocks = { {512 * 1024, 1} },
224 .block_erase = erase_chip_block_jedec,
225 },
226 },
227 .write = write_jedec_1,
228 .read = read_memmapped,
229 .voltage = {4500, 5500},
230 },
231
232 {
233 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000236 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000237 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000238 .total_size = 512,
239 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_UNTESTED,
242 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000243 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000244 .block_erasers =
245 {
246 {
247 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000248 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000249 }, {
250 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000251 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000252 },
253 },
Sean Nelson35727f72010-01-28 23:55:12 +0000254 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000256 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000257 },
258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000259 {
260 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000261 .name = "Am29F080",
262 .bustype = BUS_PARALLEL,
263 .manufacture_id = AMD_ID,
264 .model_id = AMD_AM29F080,
265 .total_size = 1024,
266 .page_size = 64 * 1024,
267 .feature_bits = FEATURE_EITHER_RESET,
268 .tested = TEST_UNTESTED,
269 .probe = probe_jedec,
270 .probe_timing = TIMING_ZERO,
271 .block_erasers =
272 {
273 {
274 .eraseblocks = { {64 * 1024, 16} },
275 .block_erase = erase_sector_jedec,
276 }, {
277 .eraseblocks = { {1024 * 1024, 1} },
278 .block_erase = erase_chip_block_jedec,
279 },
280 },
281 .write = write_jedec_1,
282 .read = read_memmapped,
283 .voltage = {4500, 5500},
284 },
285
286 {
287 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000288 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000289 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000290 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000291 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000292 .total_size = 1024,
293 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000294 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000295 .tested = TEST_UNTESTED,
296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000297 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000298 .block_erasers =
299 {
300 {
301 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000302 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000303 }, {
304 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000305 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000306 },
307 },
Sean Nelson35727f72010-01-28 23:55:12 +0000308 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000309 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000310 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000311 },
312
313 {
314 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000315 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000316 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000317 .manufacture_id = AMD_ID,
318 .model_id = AMD_AM29LV001BB,
319 .total_size = 128,
320 .page_size = 64 * 1024, /* unused */
321 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
322 .tested = TEST_OK_PREW,
323 .probe = probe_jedec,
324 .probe_timing = TIMING_ZERO,
325 .block_erasers =
326 {
327 {
328 .eraseblocks = {
329 {8 * 1024, 1},
330 {4 * 1024, 2},
331 {16 * 1024, 7},
332 },
333 .block_erase = erase_sector_jedec,
334 }, {
335 .eraseblocks = { {128 * 1024, 1} },
336 .block_erase = erase_chip_block_jedec,
337 },
338 },
339 .write = write_jedec_1,
340 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000341 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000342 },
343
344 {
345 .vendor = "AMD",
346 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000347 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000348 .manufacture_id = AMD_ID,
349 .model_id = AMD_AM29LV001BT,
350 .total_size = 128,
351 .page_size = 64 * 1024, /* unused */
352 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
353 .tested = TEST_UNTESTED,
354 .probe = probe_jedec,
355 .probe_timing = TIMING_ZERO,
356 .block_erasers =
357 {
358 {
359 .eraseblocks = {
360 {16 * 1024, 7},
361 {4 * 1024, 2},
362 {8 * 1024, 1},
363 },
364 .block_erase = erase_sector_jedec,
365 }, {
366 .eraseblocks = { {128 * 1024, 1} },
367 .block_erase = erase_chip_block_jedec,
368 },
369 },
370 .write = write_jedec_1,
371 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000372 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000373 },
374
375 {
376 .vendor = "AMD",
377 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000378 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000379 .manufacture_id = AMD_ID,
380 .model_id = AMD_AM29LV002BB,
381 .total_size = 256,
382 .page_size = 64 * 1024, /* unused */
383 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
384 .tested = TEST_UNTESTED,
385 .probe = probe_jedec,
386 .probe_timing = TIMING_ZERO,
387 .block_erasers =
388 {
389 {
390 .eraseblocks = {
391 {16 * 1024, 1},
392 {8 * 1024, 2},
393 {32 * 1024, 1},
394 {64 * 1024, 3},
395 },
396 .block_erase = erase_sector_jedec,
397 }, {
398 .eraseblocks = { {256 * 1024, 1} },
399 .block_erase = erase_chip_block_jedec,
400 },
401 },
402 .write = write_jedec_1,
403 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000404 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000405 },
406
407 {
408 .vendor = "AMD",
409 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000410 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000411 .manufacture_id = AMD_ID,
412 .model_id = AMD_AM29LV002BT,
413 .total_size = 256,
414 .page_size = 64 * 1024, /* unused */
415 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
416 .tested = TEST_UNTESTED,
417 .probe = probe_jedec,
418 .probe_timing = TIMING_ZERO,
419 .block_erasers =
420 {
421 {
422 .eraseblocks = {
423 {64 * 1024, 3},
424 {32 * 1024, 1},
425 {8 * 1024, 2},
426 {16 * 1024, 1},
427 },
428 .block_erase = erase_sector_jedec,
429 }, {
430 .eraseblocks = { {256 * 1024, 1} },
431 .block_erase = erase_chip_block_jedec,
432 },
433 },
434 .write = write_jedec_1,
435 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000436 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000437 },
438
439 {
440 .vendor = "AMD",
441 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000442 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000443 .manufacture_id = AMD_ID,
444 .model_id = AMD_AM29LV004BB,
445 .total_size = 512,
446 .page_size = 64 * 1024, /* unused */
447 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
448 .tested = TEST_UNTESTED,
449 .probe = probe_jedec,
450 .probe_timing = TIMING_ZERO,
451 .block_erasers =
452 {
453 {
454 .eraseblocks = {
455 {16 * 1024, 1},
456 {8 * 1024, 2},
457 {32 * 1024, 1},
458 {64 * 1024, 7},
459 },
460 .block_erase = erase_sector_jedec,
461 }, {
462 .eraseblocks = { {512 * 1024, 1} },
463 .block_erase = erase_chip_block_jedec,
464 },
465 },
466 .write = write_jedec_1,
467 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000468 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000469 },
470
471 {
472 .vendor = "AMD",
473 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000474 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000475 .manufacture_id = AMD_ID,
476 .model_id = AMD_AM29LV004BT,
477 .total_size = 512,
478 .page_size = 64 * 1024, /* unused */
479 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
480 .tested = TEST_UNTESTED,
481 .probe = probe_jedec,
482 .probe_timing = TIMING_ZERO,
483 .block_erasers =
484 {
485 {
486 .eraseblocks = {
487 {64 * 1024, 7},
488 {32 * 1024, 1},
489 {8 * 1024, 2},
490 {16 * 1024, 1},
491 },
492 .block_erase = erase_sector_jedec,
493 }, {
494 .eraseblocks = { {512 * 1024, 1} },
495 .block_erase = erase_chip_block_jedec,
496 },
497 },
498 .write = write_jedec_1,
499 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000500 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000501 },
502
503 {
504 .vendor = "AMD",
505 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000506 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000507 .manufacture_id = AMD_ID,
508 .model_id = AMD_AM29LV008BB,
509 .total_size = 1024,
510 .page_size = 64 * 1024, /* unused */
511 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000512 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000513 .probe = probe_jedec,
514 .probe_timing = TIMING_ZERO,
515 .block_erasers =
516 {
517 {
518 .eraseblocks = {
519 {16 * 1024, 1},
520 {8 * 1024, 2},
521 {32 * 1024, 1},
522 {64 * 1024, 15},
523 },
524 .block_erase = erase_sector_jedec,
525 }, {
526 .eraseblocks = { {1024 * 1024, 1} },
527 .block_erase = erase_chip_block_jedec,
528 },
529 },
530 .write = write_jedec_1,
531 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000532 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000533 },
534
535 {
536 .vendor = "AMD",
537 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000538 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000539 .manufacture_id = AMD_ID,
540 .model_id = AMD_AM29LV008BT,
541 .total_size = 1024,
542 .page_size = 64 * 1024, /* unused */
543 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
544 .tested = TEST_UNTESTED,
545 .probe = probe_jedec,
546 .probe_timing = TIMING_ZERO,
547 .block_erasers =
548 {
549 {
550 .eraseblocks = {
551 {64 * 1024, 15},
552 {32 * 1024, 1},
553 {8 * 1024, 2},
554 {16 * 1024, 1},
555 },
556 .block_erase = erase_sector_jedec,
557 }, {
558 .eraseblocks = { {1024 * 1024, 1} },
559 .block_erase = erase_chip_block_jedec,
560 },
561 },
562 .write = write_jedec_1,
563 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000564 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000565 },
566
567 {
568 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000569 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000570 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000571 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000572 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000573 .total_size = 512,
574 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000575 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000576 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000577 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000578 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000579 .block_erasers =
580 {
581 {
582 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000583 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000584 }, {
585 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000586 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000587 },
588 },
Sean Nelson35727f72010-01-28 23:55:12 +0000589 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000590 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000591 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000592 },
593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000594 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000595 .vendor = "AMD",
596 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000597 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000598 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000599 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000600 .total_size = 1024,
601 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000602 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000603 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000604 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000605 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000606 .block_erasers =
607 {
608 {
609 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000610 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000611 }, {
612 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000613 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000614 },
615 },
Sean Nelson35727f72010-01-28 23:55:12 +0000616 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000617 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000618 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000619 },
620
621 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000622 .vendor = "AMIC",
623 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000624 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000625 .manufacture_id = AMIC_ID,
626 .model_id = AMIC_A25L05PT,
627 .total_size = 64,
628 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000629 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000630 .tested = TEST_UNTESTED,
631 .probe = probe_spi_rdid4,
632 .probe_timing = TIMING_ZERO,
633 .block_erasers =
634 {
635 {
636 .eraseblocks = {
637 {32 * 1024, 1},
638 {16 * 1024, 1},
639 {8 * 1024, 1},
640 {4 * 1024, 2},
641 },
642 .block_erase = spi_block_erase_d8,
643 }, {
644 .eraseblocks = { {64 * 1024, 1} },
645 .block_erase = spi_block_erase_c7,
646 }
647 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000648 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000649 .unlock = spi_disable_blockprotect,
650 .write = spi_chip_write_256,
651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000652 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000653 },
654
655 {
656 .vendor = "AMIC",
657 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000658 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000659 .manufacture_id = AMIC_ID,
660 .model_id = AMIC_A25L05PU,
661 .total_size = 64,
662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000663 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000664 .tested = TEST_UNTESTED,
665 .probe = probe_spi_rdid4,
666 .probe_timing = TIMING_ZERO,
667 .block_erasers =
668 {
669 {
670 .eraseblocks = {
671 {4 * 1024, 2},
672 {8 * 1024, 1},
673 {16 * 1024, 1},
674 {32 * 1024, 1},
675 },
676 .block_erase = spi_block_erase_d8,
677 }, {
678 .eraseblocks = { {64 * 1024, 1} },
679 .block_erase = spi_block_erase_c7,
680 }
681 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000682 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000683 .unlock = spi_disable_blockprotect,
684 .write = spi_chip_write_256,
685 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000686 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 },
688
689 {
690 .vendor = "AMIC",
691 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000692 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000693 .manufacture_id = AMIC_ID,
694 .model_id = AMIC_A25L10PT,
695 .total_size = 128,
696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000697 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000698 .tested = TEST_UNTESTED,
699 .probe = probe_spi_rdid4,
700 .probe_timing = TIMING_ZERO,
701 .block_erasers =
702 {
703 {
704 .eraseblocks = {
705 {64 * 1024, 1},
706 {32 * 1024, 1},
707 {16 * 1024, 1},
708 {8 * 1024, 1},
709 {4 * 1024, 2},
710 },
711 .block_erase = spi_block_erase_d8,
712 }, {
713 .eraseblocks = { {128 * 1024, 1} },
714 .block_erase = spi_block_erase_c7,
715 }
716 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000717 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000718 .unlock = spi_disable_blockprotect,
719 .write = spi_chip_write_256,
720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000721 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 },
723
724 {
725 .vendor = "AMIC",
726 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000727 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000728 .manufacture_id = AMIC_ID,
729 .model_id = AMIC_A25L10PU,
730 .total_size = 128,
731 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000732 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000733 .tested = TEST_UNTESTED,
734 .probe = probe_spi_rdid4,
735 .probe_timing = TIMING_ZERO,
736 .block_erasers =
737 {
738 {
739 .eraseblocks = {
740 {4 * 1024, 2},
741 {8 * 1024, 1},
742 {16 * 1024, 1},
743 {32 * 1024, 1},
744 {64 * 1024, 1},
745 },
746 .block_erase = spi_block_erase_d8,
747 }, {
748 .eraseblocks = { {128 * 1024, 1} },
749 .block_erase = spi_block_erase_c7,
750 }
751 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000752 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000753 .unlock = spi_disable_blockprotect,
754 .write = spi_chip_write_256,
755 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000756 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 },
758
759 {
760 .vendor = "AMIC",
761 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000762 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .manufacture_id = AMIC_ID,
764 .model_id = AMIC_A25L20PT,
765 .total_size = 256,
766 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000767 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000768 .tested = TEST_UNTESTED,
769 .probe = probe_spi_rdid4,
770 .probe_timing = TIMING_ZERO,
771 .block_erasers =
772 {
773 {
774 .eraseblocks = {
775 {64 * 1024, 3},
776 {32 * 1024, 1},
777 {16 * 1024, 1},
778 {8 * 1024, 1},
779 {4 * 1024, 2},
780 },
781 .block_erase = spi_block_erase_d8,
782 }, {
783 .eraseblocks = { {256 * 1024, 1} },
784 .block_erase = spi_block_erase_c7,
785 }
786 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000787 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000788 .unlock = spi_disable_blockprotect,
789 .write = spi_chip_write_256,
790 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000791 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 },
793
794 {
795 .vendor = "AMIC",
796 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000797 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .manufacture_id = AMIC_ID,
799 .model_id = AMIC_A25L20PU,
800 .total_size = 256,
801 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000802 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000803 .tested = TEST_UNTESTED,
804 .probe = probe_spi_rdid4,
805 .probe_timing = TIMING_ZERO,
806 .block_erasers =
807 {
808 {
809 .eraseblocks = {
810 {4 * 1024, 2},
811 {8 * 1024, 1},
812 {16 * 1024, 1},
813 {32 * 1024, 1},
814 {64 * 1024, 3},
815 },
816 .block_erase = spi_block_erase_d8,
817 }, {
818 .eraseblocks = { {256 * 1024, 1} },
819 .block_erase = spi_block_erase_c7,
820 }
821 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000822 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000823 .unlock = spi_disable_blockprotect,
824 .write = spi_chip_write_256,
825 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000826 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 },
828
829 /* The A25L40P{T,U} chips are distinguished by their
830 * erase block layouts, but without any distinction in RDID.
831 * This inexplicable quirk was verified by Rudolf Marek
832 * and discussed on the flashrom mailing list on 2010-07-12.
833 */
834 {
835 .vendor = "AMIC",
836 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000837 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000838 .manufacture_id = AMIC_ID,
839 .model_id = AMIC_A25L40PT,
840 .total_size = 512,
841 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000842 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000843 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000844 .probe = probe_spi_rdid4,
845 .probe_timing = TIMING_ZERO,
846 .block_erasers =
847 {
848 {
849 .eraseblocks = {
850 {64 * 1024, 7},
851 {32 * 1024, 1},
852 {16 * 1024, 1},
853 {8 * 1024, 1},
854 {4 * 1024, 2},
855 },
856 .block_erase = spi_block_erase_d8,
857 }, {
858 .eraseblocks = { {512 * 1024, 1} },
859 .block_erase = spi_block_erase_c7,
860 }
861 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000862 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000863 .unlock = spi_disable_blockprotect,
864 .write = spi_chip_write_256,
865 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000866 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 },
868
869 {
870 .vendor = "AMIC",
871 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000872 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000873 .manufacture_id = AMIC_ID,
874 .model_id = AMIC_A25L40PU,
875 .total_size = 512,
876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000878 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000879 .probe = probe_spi_rdid4,
880 .probe_timing = TIMING_ZERO,
881 .block_erasers =
882 {
883 {
884 .eraseblocks = {
885 {4 * 1024, 2},
886 {8 * 1024, 1},
887 {16 * 1024, 1},
888 {32 * 1024, 1},
889 {64 * 1024, 7},
890 },
891 .block_erase = spi_block_erase_d8,
892 }, {
893 .eraseblocks = { {512 * 1024, 1} },
894 .block_erase = spi_block_erase_c7,
895 }
896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000897 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000898 .unlock = spi_disable_blockprotect,
899 .write = spi_chip_write_256,
900 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000901 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000902 },
903
904 {
905 .vendor = "AMIC",
906 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000907 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000908 .manufacture_id = AMIC_ID,
909 .model_id = AMIC_A25L80P,
910 .total_size = 1024,
911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000912 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000913 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000914 .probe = probe_spi_rdid4,
915 .probe_timing = TIMING_ZERO,
916 .block_erasers =
917 {
918 {
919 .eraseblocks = {
920 {4 * 1024, 2},
921 {8 * 1024, 1},
922 {16 * 1024, 1},
923 {32 * 1024, 1},
924 {64 * 1024, 15},
925 },
926 .block_erase = spi_block_erase_d8,
927 }, {
928 .eraseblocks = { {1024 * 1024, 1} },
929 .block_erase = spi_block_erase_c7,
930 }
931 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000932 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000933 .unlock = spi_disable_blockprotect,
934 .write = spi_chip_write_256,
935 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000936 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000937 },
938
939 {
940 .vendor = "AMIC",
941 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000942 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000943 .manufacture_id = AMIC_ID,
944 .model_id = AMIC_A25L16PT,
945 .total_size = 2048,
946 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000947 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000948 .tested = TEST_UNTESTED,
949 .probe = probe_spi_rdid4,
950 .probe_timing = TIMING_ZERO,
951 .block_erasers =
952 {
953 {
954 .eraseblocks = {
955 {64 * 1024, 31},
956 {32 * 1024, 1},
957 {16 * 1024, 1},
958 {8 * 1024, 1},
959 {4 * 1024, 2},
960 },
961 .block_erase = spi_block_erase_d8,
962 }, {
963 .eraseblocks = { {2048 * 1024, 1} },
964 .block_erase = spi_block_erase_60,
965 }, {
966 .eraseblocks = { {2048 * 1024, 1} },
967 .block_erase = spi_block_erase_c7,
968 }
969 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000970 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000971 .unlock = spi_disable_blockprotect,
972 .write = spi_chip_write_256,
973 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000974 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000975 },
976
977 {
978 .vendor = "AMIC",
979 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000980 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000981 .manufacture_id = AMIC_ID,
982 .model_id = AMIC_A25L16PU,
983 .total_size = 2048,
984 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000985 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000986 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000987 .probe = probe_spi_rdid4,
988 .probe_timing = TIMING_ZERO,
989 .block_erasers =
990 {
991 {
992 .eraseblocks = {
993 {4 * 1024, 2},
994 {8 * 1024, 1},
995 {16 * 1024, 1},
996 {32 * 1024, 1},
997 {64 * 1024, 31},
998 },
999 .block_erase = spi_block_erase_d8,
1000 }, {
1001 .eraseblocks = { {2048 * 1024, 1} },
1002 .block_erase = spi_block_erase_60,
1003 }, {
1004 .eraseblocks = { {2048 * 1024, 1} },
1005 .block_erase = spi_block_erase_c7,
1006 }
1007 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001008 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001009 .unlock = spi_disable_blockprotect,
1010 .write = spi_chip_write_256,
1011 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001012 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001013 },
1014
1015 {
1016 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +00001017 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001018 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001019 .manufacture_id = AMIC_ID_NOPREFIX,
1020 .model_id = AMIC_A25L512,
1021 .total_size = 64,
1022 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001023 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .tested = TEST_UNTESTED,
1025 .probe = probe_spi_rdid,
1026 .probe_timing = TIMING_ZERO,
1027 .block_erasers =
1028 {
1029 {
1030 .eraseblocks = { { 4 * 1024, 16 } },
1031 .block_erase = spi_block_erase_20,
1032 }, {
1033 .eraseblocks = { { 64 * 1024, 1 } },
1034 .block_erase = spi_block_erase_d8,
1035 }, {
1036 .eraseblocks = { { 64 * 1024, 1 } },
1037 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001038 }
Dan Lenski11617122010-07-29 15:00:40 +00001039 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001040 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001041 .unlock = spi_disable_blockprotect,
1042 .write = spi_chip_write_256,
1043 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001044 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001045 },
1046
1047 {
1048 .vendor = "AMIC",
1049 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001050 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001051 .manufacture_id = AMIC_ID_NOPREFIX,
1052 .model_id = AMIC_A25L010,
1053 .total_size = 128,
1054 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001055 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .tested = TEST_UNTESTED,
1057 .probe = probe_spi_rdid,
1058 .probe_timing = TIMING_ZERO,
1059 .block_erasers =
1060 {
1061 {
1062 .eraseblocks = { { 4 * 1024, 32 } },
1063 .block_erase = spi_block_erase_20,
1064 }, {
1065 .eraseblocks = { { 64 * 1024, 2 } },
1066 .block_erase = spi_block_erase_d8,
1067 }, {
1068 .eraseblocks = { { 128 * 1024, 1 } },
1069 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001070 }
Dan Lenski11617122010-07-29 15:00:40 +00001071 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001072 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001073 .unlock = spi_disable_blockprotect,
1074 .write = spi_chip_write_256,
1075 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001076 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001077 },
1078
1079 {
1080 .vendor = "AMIC",
1081 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001082 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001083 .manufacture_id = AMIC_ID_NOPREFIX,
1084 .model_id = AMIC_A25L020,
1085 .total_size = 256,
1086 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001087 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .tested = TEST_UNTESTED,
1089 .probe = probe_spi_rdid,
1090 .probe_timing = TIMING_ZERO,
1091 .block_erasers =
1092 {
1093 {
1094 .eraseblocks = { { 4 * 1024, 64 } },
1095 .block_erase = spi_block_erase_20,
1096 }, {
1097 .eraseblocks = { { 64 * 1024, 4 } },
1098 .block_erase = spi_block_erase_d8,
1099 }, {
1100 .eraseblocks = { { 256 * 1024, 1 } },
1101 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001102 }
Dan Lenski11617122010-07-29 15:00:40 +00001103 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001104 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001105 .unlock = spi_disable_blockprotect,
1106 .write = spi_chip_write_256,
1107 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001108 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001109 },
1110
1111 {
1112 .vendor = "AMIC",
1113 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001114 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001115 .manufacture_id = AMIC_ID_NOPREFIX,
1116 .model_id = AMIC_A25L040,
1117 .total_size = 512,
1118 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001119 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .tested = TEST_UNTESTED,
1121 .probe = probe_spi_rdid,
1122 .probe_timing = TIMING_ZERO,
1123 .block_erasers =
1124 {
1125 {
1126 .eraseblocks = { { 4 * 1024, 128 } },
1127 .block_erase = spi_block_erase_20,
1128 }, {
1129 .eraseblocks = { { 64 * 1024, 8 } },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { { 512 * 1024, 1 } },
1133 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001134 }
Dan Lenski11617122010-07-29 15:00:40 +00001135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001147 .manufacture_id = AMIC_ID_NOPREFIX,
1148 .model_id = AMIC_A25L080,
1149 .total_size = 1024,
1150 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001152 .tested = TEST_UNTESTED,
1153 .probe = probe_spi_rdid,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = { { 4 * 1024, 256 } },
1159 .block_erase = spi_block_erase_20,
1160 }, {
1161 .eraseblocks = { { 64 * 1024, 16 } },
1162 .block_erase = spi_block_erase_d8,
1163 }, {
1164 .eraseblocks = { { 1024 * 1024, 1 } },
1165 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001166 }
Dan Lenski11617122010-07-29 15:00:40 +00001167 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001168 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .unlock = spi_disable_blockprotect,
1170 .write = spi_chip_write_256,
1171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001172 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001173 },
1174
1175 {
1176 .vendor = "AMIC",
1177 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001178 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001179 .manufacture_id = AMIC_ID_NOPREFIX,
1180 .model_id = AMIC_A25L016,
1181 .total_size = 2048,
1182 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001183 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001184 .tested = TEST_UNTESTED,
1185 .probe = probe_spi_rdid,
1186 .probe_timing = TIMING_ZERO,
1187 .block_erasers =
1188 {
1189 {
1190 .eraseblocks = { { 4 * 1024, 512 } },
1191 .block_erase = spi_block_erase_20,
1192 }, {
1193 .eraseblocks = { { 64 * 1024, 32 } },
1194 .block_erase = spi_block_erase_d8,
1195 }, {
1196 .eraseblocks = { { 2048 * 1024, 1 } },
1197 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001198 }
Dan Lenski11617122010-07-29 15:00:40 +00001199 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001200 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001201 .unlock = spi_disable_blockprotect,
1202 .write = spi_chip_write_256,
1203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001204 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001205 },
1206
1207 {
1208 .vendor = "AMIC",
1209 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001210 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001211 .manufacture_id = AMIC_ID_NOPREFIX,
1212 .model_id = AMIC_A25L032,
1213 .total_size = 4096,
1214 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001215 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1216 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001217 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001218 .probe = probe_spi_rdid,
1219 .probe_timing = TIMING_ZERO,
1220 .block_erasers =
1221 {
1222 {
1223 .eraseblocks = { { 4 * 1024, 1024 } },
1224 .block_erase = spi_block_erase_20,
1225 }, {
1226 .eraseblocks = { { 64 * 1024, 64 } },
1227 .block_erase = spi_block_erase_52,
1228 }, {
1229 .eraseblocks = { { 64 * 1024, 64 } },
1230 .block_erase = spi_block_erase_d8,
1231 }, {
1232 .eraseblocks = { { 4096 * 1024, 1 } },
1233 .block_erase = spi_block_erase_60,
1234 }, {
1235 .eraseblocks = { { 4096 * 1024, 1 } },
1236 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001237 }
Dan Lenski11617122010-07-29 15:00:40 +00001238 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001239 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1240 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001241 .write = spi_chip_write_256,
1242 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001243 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001244 },
1245
1246 {
1247 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001248 .name = "A25LQ16",
1249 .bustype = BUS_SPI,
1250 .manufacture_id = AMIC_ID_NOPREFIX,
1251 .model_id = AMIC_A25LQ16,
1252 .total_size = 2048,
1253 .page_size = 256,
1254 /* supports SFDP */
1255 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1257 .tested = TEST_UNTESTED,
1258 .probe = probe_spi_rdid,
1259 .probe_timing = TIMING_ZERO,
1260 .block_erasers = {
1261 {
1262 .eraseblocks = { { 4 * 1024, 512 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 32 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 32 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 2048 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 2048 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
1282 .voltage = {2700, 3600},
1283 },
1284
1285 {
1286 .vendor = "AMIC",
1287 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ032,
1291 .total_size = 4096,
1292 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001293 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
1299 .block_erasers =
1300 {
1301 {
1302 .eraseblocks = { { 4 * 1024, 1024 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 64 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 64 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 4096 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 4096 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001316 }
Dan Lenski11617122010-07-29 15:00:40 +00001317 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
1327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
1526 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001527 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001528 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001529 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001530 .total_size = 512,
1531 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001532 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001533 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001534 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001535 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001536 .block_erasers =
1537 {
1538 {
1539 .eraseblocks = { {4 * 1024, 128} },
1540 .block_erase = spi_block_erase_20,
1541 }, {
1542 .eraseblocks = { {32 * 1024, 16} },
1543 .block_erase = spi_block_erase_52,
1544 }, {
1545 .eraseblocks = { {64 * 1024, 8} },
1546 .block_erase = spi_block_erase_d8,
1547 }, {
1548 .eraseblocks = { {512 * 1024, 1} },
1549 .block_erase = spi_block_erase_60,
1550 }, {
1551 .eraseblocks = { {512 * 1024, 1} },
1552 .block_erase = spi_block_erase_c7,
1553 }
1554 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001555 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001556 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001557 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001559 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001560 },
1561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001562 {
1563 .vendor = "Atmel",
1564 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001565 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001566 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001567 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001568 .total_size = 1024,
1569 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001570 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001571 .tested = TEST_UNTESTED,
1572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001573 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001574 .block_erasers =
1575 {
1576 {
1577 .eraseblocks = { {4 * 1024, 256} },
1578 .block_erase = spi_block_erase_20,
1579 }, {
1580 .eraseblocks = { {32 * 1024, 32} },
1581 .block_erase = spi_block_erase_52,
1582 }, {
1583 .eraseblocks = { {64 * 1024, 16} },
1584 .block_erase = spi_block_erase_d8,
1585 }, {
1586 .eraseblocks = { {1024 * 1024, 1} },
1587 .block_erase = spi_block_erase_60,
1588 }, {
1589 .eraseblocks = { {1024 * 1024, 1} },
1590 .block_erase = spi_block_erase_c7,
1591 }
1592 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001593 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001594 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001595 .write = spi_chip_write_256,
1596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001597 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001598 },
1599
1600 {
1601 .vendor = "Atmel",
1602 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001603 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001604 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001605 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001606 .total_size = 1024,
1607 .page_size = 256,
1608 .feature_bits = FEATURE_WRSR_WREN,
1609 .tested = TEST_UNTESTED,
1610 .probe = probe_spi_rdid,
1611 .probe_timing = TIMING_ZERO,
1612 .block_erasers =
1613 {
1614 {
1615 .eraseblocks = { {4 * 1024, 256} },
1616 .block_erase = spi_block_erase_20,
1617 }, {
1618 .eraseblocks = { {32 * 1024, 32} },
1619 .block_erase = spi_block_erase_52,
1620 }, {
1621 .eraseblocks = { {64 * 1024, 16} },
1622 .block_erase = spi_block_erase_d8,
1623 }, {
1624 .eraseblocks = { {1024 * 1024, 1} },
1625 .block_erase = spi_block_erase_60,
1626 }, {
1627 .eraseblocks = { {1024 * 1024, 1} },
1628 .block_erase = spi_block_erase_c7,
1629 }
1630 },
1631 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001632 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001633 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001634 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001635 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001636 },
1637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001638 {
1639 .vendor = "Atmel",
1640 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001641 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001642 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001643 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .total_size = 2048,
1645 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001646 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001647 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001649 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001650 .block_erasers =
1651 {
1652 {
1653 .eraseblocks = { {4 * 1024, 512} },
1654 .block_erase = spi_block_erase_20,
1655 }, {
1656 .eraseblocks = { {32 * 1024, 64} },
1657 .block_erase = spi_block_erase_52,
1658 }, {
1659 .eraseblocks = { {64 * 1024, 32} },
1660 .block_erase = spi_block_erase_d8,
1661 }, {
1662 .eraseblocks = { {2 * 1024 * 1024, 1} },
1663 .block_erase = spi_block_erase_60,
1664 }, {
1665 .eraseblocks = { {2 * 1024 * 1024, 1} },
1666 .block_erase = spi_block_erase_c7,
1667 }
1668 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001669 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001670 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001671 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001673 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001674 },
1675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 {
1677 .vendor = "Atmel",
1678 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001681 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .total_size = 4096,
1683 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001685 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001687 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001688 .block_erasers =
1689 {
1690 {
1691 .eraseblocks = { {4 * 1024, 1024} },
1692 .block_erase = spi_block_erase_20,
1693 }, {
1694 .eraseblocks = { {32 * 1024, 128} },
1695 .block_erase = spi_block_erase_52,
1696 }, {
1697 .eraseblocks = { {64 * 1024, 64} },
1698 .block_erase = spi_block_erase_d8,
1699 }, {
1700 .eraseblocks = { {4 * 1024 * 1024, 1} },
1701 .block_erase = spi_block_erase_60,
1702 }, {
1703 .eraseblocks = { {4 * 1024 * 1024, 1} },
1704 .block_erase = spi_block_erase_c7,
1705 }
1706 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001707 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001708 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001709 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001711 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001712 },
1713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 {
1715 .vendor = "Atmel",
1716 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001717 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001718 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001719 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .total_size = 4096,
1721 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001722 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001726 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001727 .block_erasers =
1728 {
1729 {
1730 .eraseblocks = { {4 * 1024, 1024} },
1731 .block_erase = spi_block_erase_20,
1732 }, {
1733 .eraseblocks = { {32 * 1024, 128} },
1734 .block_erase = spi_block_erase_52,
1735 }, {
1736 .eraseblocks = { {64 * 1024, 64} },
1737 .block_erase = spi_block_erase_d8,
1738 }, {
1739 .eraseblocks = { {4 * 1024 * 1024, 1} },
1740 .block_erase = spi_block_erase_60,
1741 }, {
1742 .eraseblocks = { {4 * 1024 * 1024, 1} },
1743 .block_erase = spi_block_erase_c7,
1744 }
1745 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001746 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001747 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001748 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001750 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001751 },
1752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001753 {
1754 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001755 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001756 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001758 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001759 .total_size = 8192,
1760 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001761 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001762 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001764 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001765 .block_erasers =
1766 {
1767 {
1768 .eraseblocks = { {4 * 1024, 2048} },
1769 .block_erase = spi_block_erase_20,
1770 }, {
1771 .eraseblocks = { {32 * 1024, 256} },
1772 .block_erase = spi_block_erase_52,
1773 }, {
1774 .eraseblocks = { {64 * 1024, 128} },
1775 .block_erase = spi_block_erase_d8,
1776 }, {
1777 .eraseblocks = { {8 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_60,
1779 }, {
1780 .eraseblocks = { {8 * 1024 * 1024, 1} },
1781 .block_erase = spi_block_erase_c7,
1782 }
1783 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001784 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001785 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .write = spi_chip_write_256,
1787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001788 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001789 },
1790
1791 {
1792 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001793 .name = "AT25DL081",
1794 .bustype = BUS_SPI,
1795 .manufacture_id = ATMEL_ID,
1796 .model_id = ATMEL_AT25DF081,
1797 .total_size = 1024,
1798 .page_size = 256,
1799 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1801 .tested = TEST_UNTESTED,
1802 .probe = probe_spi_rdid,
1803 .probe_timing = TIMING_ZERO,
1804 .block_erasers =
1805 {
1806 {
1807 .eraseblocks = { {4 * 1024, 256} },
1808 .block_erase = spi_block_erase_20,
1809 }, {
1810 .eraseblocks = { {32 * 1024, 32} },
1811 .block_erase = spi_block_erase_52,
1812 }, {
1813 .eraseblocks = { {64 * 1024, 16} },
1814 .block_erase = spi_block_erase_d8,
1815 }, {
1816 .eraseblocks = { {1 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_60,
1818 }, {
1819 .eraseblocks = { {1 * 1024 * 1024, 1} },
1820 .block_erase = spi_block_erase_c7,
1821 }
1822 },
1823 .printlock = spi_prettyprint_status_register_at25df_sec,
1824 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1825 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1827 .voltage = {1650, 1950},
1828 },
1829
1830 {
1831 .vendor = "Atmel",
1832 .name = "AT25DL161",
1833 .bustype = BUS_SPI,
1834 .manufacture_id = ATMEL_ID,
1835 .model_id = ATMEL_AT25DL161,
1836 .total_size = 2048,
1837 .page_size = 256,
1838 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1839 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1840 .tested = TEST_UNTESTED,
1841 .probe = probe_spi_rdid,
1842 .probe_timing = TIMING_ZERO,
1843 .block_erasers =
1844 {
1845 {
1846 .eraseblocks = { {4 * 1024, 512} },
1847 .block_erase = spi_block_erase_20,
1848 }, {
1849 .eraseblocks = { {32 * 1024, 64} },
1850 .block_erase = spi_block_erase_52,
1851 }, {
1852 .eraseblocks = { {64 * 1024, 32} },
1853 .block_erase = spi_block_erase_d8,
1854 }, {
1855 .eraseblocks = { {2 * 1024 * 1024, 1} },
1856 .block_erase = spi_block_erase_60,
1857 }, {
1858 .eraseblocks = { {2 * 1024 * 1024, 1} },
1859 .block_erase = spi_block_erase_c7,
1860 }
1861 },
1862 .printlock = spi_prettyprint_status_register_at25df_sec,
1863 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1864 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1865 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1866 .voltage = {1650, 1950},
1867 },
1868
1869 {
1870 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001871 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001872 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001873 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001874 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001875 .total_size = 2048,
1876 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001877 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001879 .tested = TEST_UNTESTED,
1880 .probe = probe_spi_rdid,
1881 .probe_timing = TIMING_ZERO,
1882 .block_erasers =
1883 {
1884 {
1885 .eraseblocks = { {4 * 1024, 512} },
1886 .block_erase = spi_block_erase_20,
1887 }, {
1888 .eraseblocks = { {32 * 1024, 64} },
1889 .block_erase = spi_block_erase_52,
1890 }, {
1891 .eraseblocks = { {64 * 1024, 32} },
1892 .block_erase = spi_block_erase_d8,
1893 }, {
1894 .eraseblocks = { {2 * 1024 * 1024, 1} },
1895 .block_erase = spi_block_erase_60,
1896 }, {
1897 .eraseblocks = { {2 * 1024 * 1024, 1} },
1898 .block_erase = spi_block_erase_c7,
1899 }
1900 },
1901 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001902 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001903 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001905 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001906 },
1907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001908 {
1909 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001910 .name = "AT25F512",
1911 .bustype = BUS_SPI,
1912 .manufacture_id = ATMEL_ID,
1913 .model_id = ATMEL_AT25F512,
1914 .total_size = 64,
1915 .page_size = 256,
1916 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001917 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001918 .probe = probe_spi_at25f,
1919 .probe_timing = TIMING_ZERO,
1920 .block_erasers =
1921 {
1922 {
1923 .eraseblocks = { {32 * 1024, 2} },
1924 .block_erase = spi_block_erase_52,
1925 }, {
1926 .eraseblocks = { {64 * 1024, 1} },
1927 .block_erase = spi_block_erase_62,
1928 }
1929 },
1930 .printlock = spi_prettyprint_status_register_at25f,
1931 .unlock = spi_disable_blockprotect_at25f,
1932 .write = spi_chip_write_256,
1933 .read = spi_chip_read,
1934 .voltage = {2700, 3600},
1935 },
1936
1937 {
1938 .vendor = "Atmel",
1939 .name = "AT25F512A",
1940 .bustype = BUS_SPI,
1941 .manufacture_id = ATMEL_ID,
1942 .model_id = ATMEL_AT25F512A,
1943 .total_size = 64,
1944 .page_size = 128,
1945 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001946 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001947 .probe = probe_spi_at25f,
1948 .probe_timing = TIMING_ZERO,
1949 .block_erasers =
1950 {
1951 {
1952 .eraseblocks = { {32 * 1024, 2} },
1953 .block_erase = spi_block_erase_52,
1954 }, {
1955 .eraseblocks = { {64 * 1024, 1} },
1956 .block_erase = spi_block_erase_62,
1957 }
1958 },
1959 .printlock = spi_prettyprint_status_register_at25f512a,
1960 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1961 .unlock = spi_disable_blockprotect_at25f512a,
1962 .write = spi_chip_write_256,
1963 .read = spi_chip_read,
1964 .voltage = {2700, 3600},
1965 },
1966
1967 {
1968 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001969 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001970 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001971 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001972 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 .total_size = 64,
1974 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001975 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .tested = TEST_UNTESTED,
1978 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001979 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001980 .block_erasers =
1981 {
1982 {
1983 .eraseblocks = { {4 * 1024, 16} },
1984 .block_erase = spi_block_erase_20,
1985 }, {
1986 .eraseblocks = { {32 * 1024, 2} },
1987 .block_erase = spi_block_erase_52,
1988 }, {
1989 .eraseblocks = { {32 * 1024, 2} },
1990 .block_erase = spi_block_erase_d8,
1991 }, {
1992 .eraseblocks = { {64 * 1024, 1} },
1993 .block_erase = spi_block_erase_60,
1994 }, {
1995 .eraseblocks = { {64 * 1024, 1} },
1996 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001997 }, {
1998 .eraseblocks = { {64 * 1024, 1} },
1999 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002000 }
2001 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002002 .printlock = spi_prettyprint_status_register_at25f512b,
2003 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002004 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002006 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002007 },
2008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 {
2010 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002011 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2012 * All other properties seem to be the same.*/
2013 .name = "AT25F1024(A)",
2014 .bustype = BUS_SPI,
2015 .manufacture_id = ATMEL_ID,
2016 .model_id = ATMEL_AT25F1024,
2017 .total_size = 128,
2018 .page_size = 256,
2019 .feature_bits = FEATURE_WRSR_WREN,
2020 .tested = TEST_OK_PREW,
2021 .probe = probe_spi_at25f,
2022 .probe_timing = TIMING_ZERO,
2023 .block_erasers =
2024 {
2025 {
2026 .eraseblocks = { {32 * 1024, 4} },
2027 .block_erase = spi_block_erase_52,
2028 }, {
2029 .eraseblocks = { {128 * 1024, 1} },
2030 .block_erase = spi_block_erase_62,
2031 }
2032 },
2033 .printlock = spi_prettyprint_status_register_at25f,
2034 .unlock = spi_disable_blockprotect_at25f,
2035 .write = spi_chip_write_256,
2036 .read = spi_chip_read,
2037 .voltage = {2700, 3600},
2038 },
2039
2040 {
2041 .vendor = "Atmel",
2042 .name = "AT25F2048",
2043 .bustype = BUS_SPI,
2044 .manufacture_id = ATMEL_ID,
2045 .model_id = ATMEL_AT25F2048,
2046 .total_size = 256,
2047 .page_size = 256,
2048 .feature_bits = FEATURE_WRSR_WREN,
2049 .tested = TEST_UNTESTED,
2050 .probe = probe_spi_at25f,
2051 .probe_timing = TIMING_ZERO,
2052 .block_erasers =
2053 {
2054 {
2055 .eraseblocks = { {64 * 1024, 4} },
2056 .block_erase = spi_block_erase_52,
2057 }, {
2058 .eraseblocks = { {256 * 1024, 1} },
2059 .block_erase = spi_block_erase_62,
2060 }
2061 },
2062 .printlock = spi_prettyprint_status_register_at25f,
2063 .unlock = spi_disable_blockprotect_at25f,
2064 .write = spi_chip_write_256,
2065 .read = spi_chip_read,
2066 .voltage = {2700, 3600},
2067 },
2068
2069 {
2070 .vendor = "Atmel",
2071 .name = "AT25F4096",
2072 .bustype = BUS_SPI,
2073 .manufacture_id = ATMEL_ID,
2074 .model_id = ATMEL_AT25F4096,
2075 .total_size = 512,
2076 .page_size = 256,
2077 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00002078 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002079 .probe = probe_spi_at25f,
2080 .probe_timing = TIMING_ZERO,
2081 .block_erasers =
2082 {
2083 {
2084 .eraseblocks = { {64 * 1024, 8} },
2085 .block_erase = spi_block_erase_52,
2086 }, {
2087 .eraseblocks = { {512 * 1024, 1} },
2088 .block_erase = spi_block_erase_62,
2089 }
2090 },
2091 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002092 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2093 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002094 .write = spi_chip_write_256,
2095 .read = spi_chip_read,
2096 .voltage = {2700, 3600},
2097 },
2098
2099 {
2100 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002102 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002104 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 .total_size = 128,
2106 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002107 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002108 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002110 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002111 .block_erasers =
2112 {
2113 {
2114 .eraseblocks = { {4 * 1024, 32} },
2115 .block_erase = spi_block_erase_20,
2116 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002117 .eraseblocks = { {4 * 1024, 32} },
2118 .block_erase = spi_block_erase_d7,
2119 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002120 .eraseblocks = { {32 * 1024, 4} },
2121 .block_erase = spi_block_erase_52,
2122 }, {
2123 .eraseblocks = { {32 * 1024, 4} },
2124 .block_erase = spi_block_erase_d8,
2125 }, {
2126 .eraseblocks = { {128 * 1024, 1} },
2127 .block_erase = spi_block_erase_60,
2128 }, {
2129 .eraseblocks = { {128 * 1024, 1} },
2130 .block_erase = spi_block_erase_c7,
2131 }
2132 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002133 .printlock = spi_prettyprint_status_register_at25fs010,
2134 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002135 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002138 },
2139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 {
2141 .vendor = "Atmel",
2142 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002143 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002144 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002145 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002146 .total_size = 512,
2147 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002148 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .tested = TEST_UNTESTED,
2150 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002151 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002152 .block_erasers =
2153 {
2154 {
2155 .eraseblocks = { {4 * 1024, 128} },
2156 .block_erase = spi_block_erase_20,
2157 }, {
2158 .eraseblocks = { {64 * 1024, 8} },
2159 .block_erase = spi_block_erase_52,
2160 }, {
2161 .eraseblocks = { {64 * 1024, 8} },
2162 .block_erase = spi_block_erase_d8,
2163 }, {
2164 .eraseblocks = { {512 * 1024, 1} },
2165 .block_erase = spi_block_erase_60,
2166 }, {
2167 .eraseblocks = { {512 * 1024, 1} },
2168 .block_erase = spi_block_erase_c7,
2169 }
2170 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002171 .printlock = spi_prettyprint_status_register_at25fs040,
2172 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002173 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002175 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002176 },
2177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002178 {
2179 .vendor = "Atmel",
2180 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002181 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002183 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .total_size = 512,
2185 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002186 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002187 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002189 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002190 .block_erasers =
2191 {
2192 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002193 .eraseblocks = { {256, 2048} },
2194 .block_erase = spi_block_erase_81,
2195 }, {
2196 .eraseblocks = { {2 * 1024, 256} },
2197 .block_erase = spi_block_erase_50,
2198 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002202 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002203 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002204 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002205 .write = spi_chip_write_1,
2206 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002207 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002208 },
2209
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002210 {
2211 .vendor = "Atmel",
2212 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002213 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002215 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .total_size = 1024,
2217 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002218 .feature_bits = FEATURE_WRSR_WREN,
2219 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002221 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002222 .block_erasers =
2223 {
2224 {
2225 .eraseblocks = { {4 * 1024, 256} },
2226 .block_erase = spi_block_erase_20,
2227 }, {
2228 .eraseblocks = { {32 * 1024, 32} },
2229 .block_erase = spi_block_erase_52,
2230 }, {
2231 .eraseblocks = { {64 * 1024, 16} },
2232 .block_erase = spi_block_erase_d8,
2233 }, {
2234 .eraseblocks = { {1024 * 1024, 1} },
2235 .block_erase = spi_block_erase_60,
2236 }, {
2237 .eraseblocks = { {1024 * 1024, 1} },
2238 .block_erase = spi_block_erase_c7,
2239 }
2240 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002241 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002242 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002243 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002245 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002246 },
2247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 {
2249 .vendor = "Atmel",
2250 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002251 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002253 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002254 .total_size = 2048,
2255 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002256 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002259 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002260 .block_erasers =
2261 {
2262 {
2263 .eraseblocks = { {4 * 1024, 512} },
2264 .block_erase = spi_block_erase_20,
2265 }, {
2266 .eraseblocks = { {32 * 1024, 64} },
2267 .block_erase = spi_block_erase_52,
2268 }, {
2269 .eraseblocks = { {64 * 1024, 32} },
2270 .block_erase = spi_block_erase_d8,
2271 }, {
2272 .eraseblocks = { {2 * 1024 * 1024, 1} },
2273 .block_erase = spi_block_erase_60,
2274 }, {
2275 .eraseblocks = { {2 * 1024 * 1024, 1} },
2276 .block_erase = spi_block_erase_c7,
2277 }
2278 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002279 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002280 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002281 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 2048,
2293 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002294 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002297 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002298 .block_erasers =
2299 {
2300 {
2301 .eraseblocks = { {4 * 1024, 512} },
2302 .block_erase = spi_block_erase_20,
2303 }, {
2304 .eraseblocks = { {32 * 1024, 64} },
2305 .block_erase = spi_block_erase_52,
2306 }, {
2307 .eraseblocks = { {64 * 1024, 32} },
2308 .block_erase = spi_block_erase_d8,
2309 }, {
2310 .eraseblocks = { {2 * 1024 * 1024, 1} },
2311 .block_erase = spi_block_erase_60,
2312 }, {
2313 .eraseblocks = { {2 * 1024 * 1024, 1} },
2314 .block_erase = spi_block_erase_c7,
2315 }
2316 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002317 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002318 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002319 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002321 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002322 },
2323
2324 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002325 /*{
2326 .vendor = "Atmel",
2327 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002328 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002330 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002331 .total_size = 4096,
2332 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002333 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 .tested = TEST_UNTESTED,
2335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002336 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002337 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002338 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002339 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002340 .read = spi_chip_read,
2341 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002343 {
2344 .vendor = "Atmel",
2345 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002346 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002347 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002348 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .total_size = 512,
2350 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002351 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002352 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002354 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002355 .block_erasers =
2356 {
2357 {
2358 .eraseblocks = { {4 * 1024, 128} },
2359 .block_erase = spi_block_erase_20,
2360 }, {
2361 .eraseblocks = { {32 * 1024, 16} },
2362 .block_erase = spi_block_erase_52,
2363 }, {
2364 .eraseblocks = { {64 * 1024, 8} },
2365 .block_erase = spi_block_erase_d8,
2366 }, {
2367 .eraseblocks = { {512 * 1024, 1} },
2368 .block_erase = spi_block_erase_60,
2369 }, {
2370 .eraseblocks = { {512 * 1024, 1} },
2371 .block_erase = spi_block_erase_c7,
2372 }
2373 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002374 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .write = NULL /* Incompatible Page write */,
2376 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002377 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002378 },
2379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 {
2381 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002382 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002383 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002384 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002385 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002386 .total_size = 64,
2387 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002388 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002389 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002390 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002391 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002392 .block_erasers =
2393 {
2394 {
2395 .eraseblocks = { {64 * 1024, 1} },
2396 .block_erase = erase_chip_block_jedec,
2397 }
2398 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002399 .write = write_jedec,
2400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002401 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002402 },
2403
2404 {
2405 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002406 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002407 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002409 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002410 .total_size = 128,
2411 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002412 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002413 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002414 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002415 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002416 .block_erasers =
2417 {
2418 {
2419 .eraseblocks = { {128 * 1024, 1} },
2420 .block_erase = erase_chip_block_jedec,
2421 }
2422 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002423 .write = write_jedec, /* FIXME */
2424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002425 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002426 },
2427
2428 {
2429 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002430 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002432 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002433 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002434 .total_size = 256,
2435 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002436 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002438 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002439 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002440 .block_erasers =
2441 {
2442 {
2443 .eraseblocks = { {256 * 1024, 1} },
2444 .block_erase = erase_chip_block_jedec,
2445 }
2446 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002449 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002450 },
2451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002452 {
2453 .vendor = "Atmel",
2454 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002456 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002457 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002458 .total_size = 512,
2459 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002460 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002461 .tested = TEST_UNTESTED,
2462 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002463 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002464 .block_erasers =
2465 {
2466 {
2467 .eraseblocks = { {512 * 1024, 1} },
2468 .block_erase = erase_chip_block_jedec,
2469 }
2470 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002471 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002473 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002474 },
2475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002476 {
2477 .vendor = "Atmel",
2478 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002481 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002482 .total_size = 16896 /* No power of two sizes */,
2483 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002484 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002485 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2486 .feature_bits = FEATURE_OTP,
2487 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002489 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002490 .block_erasers =
2491 {
2492 {
2493 .eraseblocks = {
2494 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2495 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2496 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2497 },
2498 .block_erase = spi_erase_at45cs_sector,
2499 }
2500 },
2501 .printlock = spi_prettyprint_status_register_plain,
2502 .gran = write_gran_1056bytes,
2503 .write = spi_write_at45db,
2504 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002505 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002506 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002508 {
2509 .vendor = "Atmel",
2510 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002511 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002512 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002513 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002514 .total_size = 128 /* or 132, determined from status register */,
2515 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002516 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2518 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002519 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002521 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002522 .block_erasers =
2523 {
2524 {
2525 .eraseblocks = { {256, 512} },
2526 .block_erase = spi_erase_at45db_page,
2527 }, {
2528 .eraseblocks = { {8 * 256, 512/8} },
2529 .block_erase = spi_erase_at45db_block,
2530 }, {
2531 .eraseblocks = {
2532 {8 * 256, 1},
2533 {120 * 256, 1},
2534 {128 * 256, 3},
2535 },
2536 .block_erase = spi_erase_at45db_sector
2537 }, {
2538 .eraseblocks = { {128 * 1024, 1} },
2539 .block_erase = spi_erase_at45db_chip,
2540 }
2541 },
2542 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2543 .printlock = spi_prettyprint_status_register_at45db,
2544 /* granularity will be set by the probing function. */
2545 .write = spi_write_at45db,
2546 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002547 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002548 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002550 {
2551 .vendor = "Atmel",
2552 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002553 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002554 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002555 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002556 .total_size = 256 /* or 264, determined from status register */,
2557 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002558 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2560 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002561 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002563 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002564 .block_erasers =
2565 {
2566 {
2567 .eraseblocks = { {256, 1024} },
2568 .block_erase = spi_erase_at45db_page,
2569 }, {
2570 .eraseblocks = { {8 * 256, 1024/8} },
2571 .block_erase = spi_erase_at45db_block,
2572 }, {
2573 .eraseblocks = {
2574 {8 * 256, 1},
2575 {120 * 256, 1},
2576 {128 * 256, 7},
2577 },
2578 .block_erase = spi_erase_at45db_sector
2579 }, {
2580 .eraseblocks = { {256 * 1024, 1} },
2581 .block_erase = spi_erase_at45db_chip,
2582 }
2583 },
2584 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2585 .printlock = spi_prettyprint_status_register_at45db,
2586 /* granularity will be set by the probing function. */
2587 .write = spi_write_at45db,
2588 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002590 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
2594 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002598 .total_size = 512 /* or 528, determined from status register */,
2599 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002600 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2602 .feature_bits = FEATURE_OTP,
2603 .tested = TEST_OK_PREW,
2604 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002605 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002606 .block_erasers =
2607 {
2608 {
2609 .eraseblocks = { {256, 2048} },
2610 .block_erase = spi_erase_at45db_page,
2611 }, {
2612 .eraseblocks = { {8 * 256, 2048/8} },
2613 .block_erase = spi_erase_at45db_block,
2614 }, {
2615 .eraseblocks = {
2616 {8 * 256, 1},
2617 {248 * 256, 1},
2618 {256 * 256, 7},
2619 },
2620 .block_erase = spi_erase_at45db_sector
2621 }, {
2622 .eraseblocks = { {512 * 1024, 1} },
2623 .block_erase = spi_erase_at45db_chip,
2624 }
2625 },
2626 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2627 .printlock = spi_prettyprint_status_register_at45db,
2628 /* granularity will be set by the probing function. */
2629 .write = spi_write_at45db,
2630 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2631 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002632 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002634 {
2635 .vendor = "Atmel",
2636 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002637 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002638 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002639 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002640 .total_size = 1024 /* or 1056, determined from status register */,
2641 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002642 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002643 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2644 .feature_bits = FEATURE_OTP,
2645 .tested = TEST_UNTESTED,
2646 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002647 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002648 .block_erasers =
2649 {
2650 {
2651 .eraseblocks = { {256, 4096} },
2652 .block_erase = spi_erase_at45db_page,
2653 }, {
2654 .eraseblocks = { {8 * 256, 4096/8} },
2655 .block_erase = spi_erase_at45db_block,
2656 }, {
2657 .eraseblocks = {
2658 {8 * 256, 1},
2659 {248 * 256, 1},
2660 {256 * 256, 15},
2661 },
2662 .block_erase = spi_erase_at45db_sector
2663 }, {
2664 .eraseblocks = { {1024 * 1024, 1} },
2665 .block_erase = spi_erase_at45db_chip,
2666 }
2667 },
2668 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2669 .printlock = spi_prettyprint_status_register_at45db,
2670 /* granularity will be set by the probing function. */
2671 .write = spi_write_at45db,
2672 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002673 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002674 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002676 {
2677 .vendor = "Atmel",
2678 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002681 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002682 .total_size = 2048 /* or 2112, determined from status register */,
2683 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002684 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002685 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2686 .feature_bits = FEATURE_OTP,
2687 .tested = TEST_OK_PREW,
2688 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002689 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002690 .block_erasers =
2691 {
2692 {
2693 .eraseblocks = { {512, 4096} },
2694 .block_erase = spi_erase_at45db_page,
2695 }, {
2696 .eraseblocks = { {8 * 512, 4096/8} },
2697 .block_erase = spi_erase_at45db_block,
2698 }, {
2699 .eraseblocks = {
2700 {8 * 512, 1},
2701 {248 * 512, 1},
2702 {256 * 512, 15},
2703 },
2704 .block_erase = spi_erase_at45db_sector
2705 }, {
2706 .eraseblocks = { {2048 * 1024, 1} },
2707 .block_erase = spi_erase_at45db_chip,
2708 }
2709 },
2710 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2711 .printlock = spi_prettyprint_status_register_at45db,
2712 /* granularity will be set by the probing function. */
2713 .write = spi_write_at45db,
2714 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002715 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002716 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 {
2719 .vendor = "Atmel",
2720 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002721 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002722 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002723 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002724 .total_size = 4224 /* No power of two sizes */,
2725 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002726 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002727 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2728 .feature_bits = FEATURE_OTP,
2729 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002730 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002731 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002732 .block_erasers =
2733 {
2734 {
2735 .eraseblocks = { {528, 8192} },
2736 .block_erase = spi_erase_at45db_page,
2737 }, {
2738 .eraseblocks = { {8 * 528, 8192/8} },
2739 .block_erase = spi_erase_at45db_block,
2740 }, /* Although the datasheets describes sectors (which can be write protected)
2741 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002742 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002743 .eraseblocks = {
2744 {8 * 528, 1},
2745 {120 * 528, 1},
2746 {128 * 528, 63},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, */ {
2750 .eraseblocks = { {4224 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
2754 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2755 .gran = write_gran_528bytes,
2756 .write = spi_write_at45db,
2757 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002758 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002759 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 {
2762 .vendor = "Atmel",
2763 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002764 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002765 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002766 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002767 .total_size = 4096 /* or 4224, determined from status register */,
2768 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002769 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002771 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002772 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002774 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002775 .block_erasers =
2776 {
2777 {
2778 .eraseblocks = { {512, 8192} },
2779 .block_erase = spi_erase_at45db_page,
2780 }, {
2781 .eraseblocks = { {8 * 512, 8192/8} },
2782 .block_erase = spi_erase_at45db_block,
2783 }, {
2784 .eraseblocks = {
2785 {8 * 512, 1},
2786 {120 * 512, 1},
2787 {128 * 512, 63},
2788 },
2789 .block_erase = spi_erase_at45db_sector
2790 }, {
2791 .eraseblocks = { {4096 * 1024, 1} },
2792 .block_erase = spi_erase_at45db_chip,
2793 }
2794 },
2795 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2796 .printlock = spi_prettyprint_status_register_at45db,
2797 /* granularity will be set by the probing function. */
2798 .write = spi_write_at45db,
2799 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2800 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2801 },
2802
2803 {
2804 .vendor = "Atmel",
2805 .name = "AT45DB321E",
2806 .bustype = BUS_SPI,
2807 .manufacture_id = ATMEL_ID,
2808 .model_id = ATMEL_AT45DB321C,
2809 .total_size = 4096 /* or 4224, determined from status register */,
2810 .page_size = 512 /* or 528, determined from status register */,
2811 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2812 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2813 .feature_bits = FEATURE_OTP,
2814 .tested = TEST_UNTESTED,
2815 .probe = probe_spi_at45db,
2816 .probe_timing = TIMING_ZERO,
2817 .block_erasers =
2818 {
2819 {
2820 .eraseblocks = { {512, 8192} },
2821 .block_erase = spi_erase_at45db_page,
2822 }, {
2823 .eraseblocks = { {8 * 512, 8192/8} },
2824 .block_erase = spi_erase_at45db_block,
2825 }, {
2826 .eraseblocks = {
2827 {8 * 512, 1},
2828 {120 * 512, 1},
2829 {128 * 512, 63},
2830 },
2831 .block_erase = spi_erase_at45db_sector
2832 }, {
2833 .eraseblocks = { {4096 * 1024, 1} },
2834 .block_erase = spi_erase_at45db_chip,
2835 }
2836 },
2837 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2838 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2839 /* granularity will be set by the probing function. */
2840 .write = spi_write_at45db,
2841 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2842 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002843 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002845 {
2846 .vendor = "Atmel",
2847 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002848 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002849 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002850 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002851 .total_size = 8192 /* or 8448, determined from status register */,
2852 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002853 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002854 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2855 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002856 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002857 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002858 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002859 .block_erasers =
2860 {
2861 {
2862 .eraseblocks = { {1024, 8192} },
2863 .block_erase = spi_erase_at45db_page,
2864 }, {
2865 .eraseblocks = { {8 * 1024, 8192/8} },
2866 .block_erase = spi_erase_at45db_block,
2867 }, {
2868 .eraseblocks = {
2869 {8 * 1024, 1},
2870 {248 * 1024, 1},
2871 {256 * 1024, 31},
2872 },
2873 .block_erase = spi_erase_at45db_sector
2874 }, {
2875 .eraseblocks = { {8192 * 1024, 1} },
2876 .block_erase = spi_erase_at45db_chip,
2877 }
2878 },
2879 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2880 .printlock = spi_prettyprint_status_register_at45db,
2881 /* granularity will be set by the probing function. */
2882 .write = spi_write_at45db,
2883 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002884 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002885 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002887 {
2888 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002889 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002890 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002891 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002892 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002893 .total_size = 64,
2894 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002895 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002896 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002897 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002898 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002899 .block_erasers =
2900 {
2901 {
2902 .eraseblocks = { {64 * 1024, 1} },
2903 .block_erase = erase_chip_block_jedec,
2904 }
2905 },
Sean Nelson35727f72010-01-28 23:55:12 +00002906 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002907 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002908 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002909 },
2910
2911 {
2912 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002913 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002914 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002915 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002916 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002917 .total_size = 256,
2918 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002919 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002920 .tested = TEST_UNTESTED,
2921 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002922 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002923 .block_erasers =
2924 {
2925 {
2926 .eraseblocks = {
2927 {16 * 1024, 1},
2928 {8 * 1024, 2},
2929 {96 * 1024, 1},
2930 {128 * 1024, 1},
2931 },
2932 .block_erase = erase_sector_jedec,
2933 }, {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 },
Sean Nelson35727f72010-01-28 23:55:12 +00002938 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002939 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002940 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002941 },
2942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002943 {
2944 .vendor = "Atmel",
2945 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002946 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002947 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002948 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002949 .total_size = 256,
2950 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002951 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002952 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002953 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002954 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002955 .block_erasers =
2956 {
2957 {
2958 .eraseblocks = {
2959 {128 * 1024, 1},
2960 {96 * 1024, 1},
2961 {8 * 1024, 2},
2962 {16 * 1024, 1},
2963 },
2964 .block_erase = erase_sector_jedec,
2965 }, {
2966 .eraseblocks = { {256 * 1024, 1} },
2967 .block_erase = erase_chip_block_jedec,
2968 }
2969 },
Sean Nelson35727f72010-01-28 23:55:12 +00002970 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002972 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002973 },
2974
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002975 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002976 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002977 .name = "AT49(H)F010",
2978 .bustype = BUS_PARALLEL,
2979 .manufacture_id = ATMEL_ID,
2980 .model_id = ATMEL_AT49F010,
2981 .total_size = 128,
2982 .page_size = 0, /* unused */
2983 .feature_bits = FEATURE_EITHER_RESET,
2984 .tested = TEST_OK_PREW,
2985 .probe = probe_jedec,
2986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {128 * 1024, 1} },
2991 .block_erase = erase_chip_block_jedec,
2992 }
2993 },
2994 .printlock = printlock_at49f,
2995 .write = write_jedec_1,
2996 .read = read_memmapped,
2997 .voltage = {4500, 5500},
2998 },
2999
3000 {
3001 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003002 .name = "AT49F020",
3003 .bustype = BUS_PARALLEL,
3004 .manufacture_id = ATMEL_ID,
3005 .model_id = ATMEL_AT49F020,
3006 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003007 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003008 .feature_bits = FEATURE_EITHER_RESET,
3009 .tested = TEST_OK_PRE,
3010 .probe = probe_jedec,
3011 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3012 .block_erasers =
3013 {
3014 {
3015 .eraseblocks = { {256 * 1024, 1} },
3016 .block_erase = erase_chip_block_jedec,
3017 }
3018 /* Chip features an optional permanent write protection
3019 * of the first 8 kB. The erase function is the same as
3020 * above, but 00000H to 01FFFH will not be erased.
3021 * FIXME: add another eraser when partial erasers are
3022 * supported.
3023 */
3024 },
3025 .printlock = printlock_at49f,
3026 .write = write_jedec_1,
3027 .read = read_memmapped,
3028 .voltage = {4500, 5500},
3029 },
3030
3031 {
3032 .vendor = "Atmel",
3033 .name = "AT49F040",
3034 .bustype = BUS_PARALLEL,
3035 .manufacture_id = ATMEL_ID,
3036 .model_id = ATMEL_AT49F040,
3037 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003038 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003039 .feature_bits = FEATURE_EITHER_RESET,
3040 .tested = TEST_UNTESTED,
3041 .probe = probe_jedec,
3042 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3043 .block_erasers =
3044 {
3045 {
3046 .eraseblocks = { {512 * 1024, 1} },
3047 .block_erase = erase_chip_block_jedec,
3048 }
3049 /* Chip features an optional permanent write protection
3050 * of the first 16 kB. The erase function is the same as
3051 * above, but 00000H to 03FFFH will not be erased.
3052 * FIXME: add another eraser when partial erasers are
3053 * supported.
3054 */
3055 },
3056 .printlock = printlock_at49f,
3057 .write = write_jedec_1,
3058 .read = read_memmapped,
3059 .voltage = {4500, 5500},
3060 },
3061
3062 {
3063 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003064 .name = "AT49F080",
3065 .bustype = BUS_PARALLEL,
3066 .manufacture_id = ATMEL_ID,
3067 .model_id = ATMEL_AT49F080,
3068 .total_size = 1024,
3069 .page_size = 0, /* unused */
3070 .feature_bits = FEATURE_EITHER_RESET,
3071 .tested = TEST_UNTESTED,
3072 .probe = probe_jedec,
3073 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3074 .block_erasers =
3075 {
3076 {
3077 .eraseblocks = { {1024 * 1024, 1} },
3078 .block_erase = erase_chip_block_jedec,
3079 }
3080 /* Chip features an optional permanent write protection
3081 * of the first 16 kB. The erase function is the same as
3082 * above, but 00000H to 03FFFH will not be erased.
3083 * FIXME: add another eraser when partial erasers are
3084 * supported.
3085 */
3086 },
3087 .printlock = printlock_at49f,
3088 .write = write_jedec_1,
3089 .read = read_memmapped,
3090 .voltage = {4500, 5500},
3091 },
3092
3093 {
3094 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3095 .vendor = "Atmel",
3096 .name = "AT49F080T",
3097 .bustype = BUS_PARALLEL,
3098 .manufacture_id = ATMEL_ID,
3099 .model_id = ATMEL_AT49F080T,
3100 .total_size = 1024,
3101 .page_size = 0, /* unused */
3102 .feature_bits = FEATURE_EITHER_RESET,
3103 .tested = TEST_UNTESTED,
3104 .probe = probe_jedec,
3105 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3106 .block_erasers =
3107 {
3108 {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = erase_chip_block_jedec,
3111 }
3112 /* Chip features an optional permanent write protection
3113 * of the first 16 kB. The erase function is the same as
3114 * above, but FC000H to FFFFFH will not be erased.
3115 * FIXME: add another eraser when partial erasers are
3116 * supported.
3117 */
3118 },
3119 .printlock = printlock_at49f,
3120 .write = write_jedec_1,
3121 .read = read_memmapped,
3122 .voltage = {4500, 5500},
3123 },
3124
3125 {
3126 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003127 .name = "AT49LH002",
3128 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3129 .manufacture_id = ATMEL_ID,
3130 .model_id = ATMEL_AT49LH002,
3131 .total_size = 256,
3132 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003133 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003134 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003135 .probe = probe_82802ab,
3136 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003137 .block_erasers =
3138 {
3139 {
3140 .eraseblocks = {
3141 {64 * 1024, 3},
3142 {32 * 1024, 1},
3143 {8 * 1024, 2},
3144 {16 * 1024, 1},
3145 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003146 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 }, {
3148 .eraseblocks = {
3149 {64 * 1024, 4},
3150 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003151 .block_erase = erase_block_82802ab,
3152 },
3153 },
3154 .printlock = printlock_regspace2_block_eraser_0,
3155 .unlock = unlock_regspace2_block_eraser_0,
3156 .write = write_82802ab,
3157 .read = read_memmapped,
3158 .voltage = {3000, 3600},
3159 },
3160
3161 {
3162 .vendor = "Atmel",
3163 .name = "AT49LH00B4",
3164 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3165 .manufacture_id = ATMEL_ID,
3166 .model_id = ATMEL_AT49LH00B4,
3167 .total_size = 512,
3168 .page_size = 0, /* unused */
3169 .feature_bits = FEATURE_REGISTERMAP,
3170 .tested = TEST_UNTESTED,
3171 .probe = probe_82802ab,
3172 .probe_timing = TIMING_ZERO,
3173 .block_erasers =
3174 {
3175 {
3176 .eraseblocks = {
3177 {8 * 1024, 2},
3178 {16 * 1024, 1},
3179 {32 * 1024, 1},
3180 {64 * 1024, 7},
3181 },
3182 .block_erase = NULL, /* TODO: Implement. */
3183 }, {
3184 .eraseblocks = {
3185 {64 * 1024, 8},
3186 },
3187 .block_erase = erase_block_82802ab,
3188 },
3189 },
3190 .printlock = printlock_regspace2_block_eraser_0,
3191 .unlock = unlock_regspace2_block_eraser_0,
3192 .write = write_82802ab,
3193 .read = read_memmapped,
3194 .voltage = {3000, 3600},
3195 },
3196
3197 {
3198 .vendor = "Atmel",
3199 .name = "AT49LH004",
3200 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3201 .manufacture_id = ATMEL_ID,
3202 .model_id = ATMEL_AT49LH004,
3203 .total_size = 512,
3204 .page_size = 0, /* unused */
3205 .feature_bits = FEATURE_REGISTERMAP,
3206 .tested = TEST_UNTESTED,
3207 .probe = probe_82802ab,
3208 .probe_timing = TIMING_ZERO,
3209 .block_erasers =
3210 {
3211 {
3212 .eraseblocks = {
3213 {64 * 1024, 7},
3214 {32 * 1024, 1},
3215 {8 * 1024, 2},
3216 {16 * 1024, 1},
3217 },
3218 .block_erase = erase_block_82802ab,
3219 }, {
3220 .eraseblocks = {
3221 {64 * 1024, 8},
3222 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 .block_erase = NULL, /* TODO: Implement. */
3224 },
3225 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003226 .printlock = printlock_regspace2_block_eraser_0,
3227 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003228 .write = write_82802ab,
3229 .read = read_memmapped,
3230 .voltage = {3000, 3600},
3231 },
3232
3233 {
Andrew Morganca081462011-09-13 22:05:44 +00003234 .vendor = "Catalyst",
3235 .name = "CAT28F512",
3236 .bustype = BUS_PARALLEL,
3237 .manufacture_id = CATALYST_ID,
3238 .model_id = CATALYST_CAT28F512,
3239 .total_size = 64,
3240 .page_size = 0, /* unused */
3241 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003242 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003243 .probe = probe_jedec, /* FIXME! */
3244 .probe_timing = TIMING_ZERO,
3245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = { {64 * 1024, 1} },
3249 .block_erase = NULL, /* TODO */
3250 },
3251 },
3252 .write = NULL, /* TODO */
3253 .read = read_memmapped,
3254 .voltage = {4500, 5500},
3255 },
3256
3257 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003258 .vendor = "Bright",
3259 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003260 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003261 .manufacture_id = BRIGHT_ID,
3262 .model_id = BRIGHT_BM29F040,
3263 .total_size = 512,
3264 .page_size = 64 * 1024,
3265 .feature_bits = FEATURE_EITHER_RESET,
3266 .tested = TEST_OK_PR,
3267 .probe = probe_jedec,
3268 .probe_timing = TIMING_ZERO,
3269 .block_erasers =
3270 {
3271 {
3272 .eraseblocks = { {64 * 1024, 8} },
3273 .block_erase = erase_sector_jedec,
3274 }, {
3275 .eraseblocks = { {512 * 1024, 1} },
3276 .block_erase = erase_chip_block_jedec,
3277 },
3278 },
3279 .write = write_jedec_1,
3280 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003281 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003282 },
3283
3284 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003285 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003286 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003287 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003288 .manufacture_id = ESMT_ID,
3289 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003290 .total_size = 256,
3291 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003292 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003293 .tested = TEST_UNTESTED,
3294 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003296 .block_erasers =
3297 {
3298 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003299 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003300 {128 * 1024, 1},
3301 {96 * 1024, 1},
3302 {8 * 1024, 2},
3303 {16 * 1024, 1},
3304 },
3305 .block_erase = erase_sector_jedec,
3306 }, {
3307 .eraseblocks = { {256 * 1024, 1} },
3308 .block_erase = erase_chip_block_jedec,
3309 }
3310 },
Sean Nelson35727f72010-01-28 23:55:12 +00003311 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003313 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003314 },
3315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003316 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003317 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003318 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003319 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003320 .manufacture_id = ESMT_ID,
3321 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003322 .total_size = 1024,
3323 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003324 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003325 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003326 .probe = probe_spi_rdid,
3327 .probe_timing = TIMING_ZERO,
3328 .block_erasers =
3329 {
3330 {
3331 .eraseblocks = { {4 * 1024, 256} },
3332 .block_erase = spi_block_erase_20,
3333 }, {
3334 .eraseblocks = { {64 * 1024, 16} },
3335 .block_erase = spi_block_erase_d8,
3336 }, {
3337 .eraseblocks = { {1024 * 1024, 1} },
3338 .block_erase = spi_block_erase_60,
3339 }, {
3340 .eraseblocks = { {1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_c7,
3342 }
3343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003346 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003348 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003349 },
3350
3351 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003352 .vendor = "ESMT",
3353 .name = "F25L32PA",
3354 .bustype = BUS_SPI,
3355 .manufacture_id = ESMT_ID,
3356 .model_id = ESMT_F25L32PA,
3357 .total_size = 4096,
3358 .page_size = 256,
3359 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3360 .tested = TEST_UNTESTED,
3361 .probe = probe_spi_rdid,
3362 .probe_timing = TIMING_ZERO,
3363 .block_erasers =
3364 {
3365 {
3366 .eraseblocks = { {4 * 1024, 1024} },
3367 .block_erase = spi_block_erase_20,
3368 }, {
3369 .eraseblocks = { {64 * 1024, 64} },
3370 .block_erase = spi_block_erase_d8,
3371 }, {
3372 .eraseblocks = { {4 * 1024 * 1024, 1} },
3373 .block_erase = spi_block_erase_60,
3374 }, {
3375 .eraseblocks = { {4 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_c7,
3377 }
3378 },
3379 .printlock = spi_prettyprint_status_register_bp2_bpl,
3380 .unlock = spi_disable_blockprotect,
3381 .write = spi_chip_write_256,
3382 .read = spi_chip_read,
3383 .voltage = {2700, 3600},
3384 },
3385
3386 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003387 .vendor = "Eon",
3388 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003391 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003392 .total_size = 64,
3393 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003395 .tested = TEST_UNTESTED,
3396 .probe = probe_spi_rdid,
3397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003398 .block_erasers =
3399 {
3400 {
3401 .eraseblocks = {
3402 {4 * 1024, 2},
3403 {8 * 1024, 1},
3404 {16 * 1024, 1},
3405 {32 * 1024, 1},
3406 },
3407 .block_erase = spi_block_erase_d8,
3408 }, {
3409 .eraseblocks = { {64 * 1024, 1} },
3410 .block_erase = spi_block_erase_c7,
3411 }
3412 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003414 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003415 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003416 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003417 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003418 },
3419
3420 {
3421 .vendor = "Eon",
3422 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003424 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003425 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .total_size = 64,
3427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003428 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003429 .tested = TEST_UNTESTED,
3430 .probe = probe_spi_rdid,
3431 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003432 .block_erasers =
3433 {
3434 {
3435 .eraseblocks = {
3436 {32 * 1024, 1},
3437 {16 * 1024, 1},
3438 {8 * 1024, 1},
3439 {4 * 1024, 2},
3440 },
3441 .block_erase = spi_block_erase_d8,
3442 }, {
3443 .eraseblocks = { {64 * 1024, 1} },
3444 .block_erase = spi_block_erase_c7,
3445 }
3446 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003448 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003449 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003450 .read = spi_chip_read, /* Fast read (0x0B) supported */
3451 .voltage = {2700, 3600},
3452 },
3453
3454 {
3455 .vendor = "Eon",
3456 .name = "EN25P05",
3457 .bustype = BUS_SPI,
3458 .manufacture_id = EON_ID_NOPREFIX,
3459 .model_id = EON_EN25B05,
3460 .total_size = 64,
3461 .page_size = 256,
3462 .feature_bits = FEATURE_WRSR_WREN,
3463 .tested = TEST_UNTESTED,
3464 .probe = probe_spi_rdid,
3465 .probe_timing = TIMING_ZERO,
3466 .block_erasers =
3467 {
3468 {
3469 .eraseblocks = {
3470 {32 * 1024, 2} },
3471 .block_erase = spi_block_erase_d8,
3472 }, {
3473 .eraseblocks = { {64 * 1024, 1} },
3474 .block_erase = spi_block_erase_c7,
3475 }
3476 },
3477 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3478 .unlock = spi_disable_blockprotect,
3479 .write = spi_chip_write_256,
3480 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003481 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003482 },
3483
3484 {
3485 .vendor = "Eon",
3486 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003487 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003488 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003489 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003490 .total_size = 128,
3491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003492 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003493 .tested = TEST_UNTESTED,
3494 .probe = probe_spi_rdid,
3495 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .block_erasers =
3497 {
3498 {
3499 .eraseblocks = {
3500 {4 * 1024, 2},
3501 {8 * 1024, 1},
3502 {16 * 1024, 1},
3503 {32 * 1024, 3},
3504 },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {128 * 1024, 1} },
3508 .block_erase = spi_block_erase_c7,
3509 }
3510 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003511 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003512 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003514 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003515 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003516 },
3517
3518 {
3519 .vendor = "Eon",
3520 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003521 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003522 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003523 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003524 .total_size = 128,
3525 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003526 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003527 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003528 .probe = probe_spi_rdid,
3529 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = {
3534 {32 * 1024, 3},
3535 {16 * 1024, 1},
3536 {8 * 1024, 1},
3537 {4 * 1024, 2},
3538 },
3539 .block_erase = spi_block_erase_d8,
3540 }, {
3541 .eraseblocks = { {128 * 1024, 1} },
3542 .block_erase = spi_block_erase_c7,
3543 }
3544 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003545 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003547 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003548 .read = spi_chip_read, /* Fast read (0x0B) supported */
3549 .voltage = {2700, 3600},
3550 },
3551
3552 {
3553 .vendor = "Eon",
3554 .name = "EN25P10",
3555 .bustype = BUS_SPI,
3556 .manufacture_id = EON_ID_NOPREFIX,
3557 .model_id = EON_EN25B10,
3558 .total_size = 128,
3559 .page_size = 256,
3560 .feature_bits = FEATURE_WRSR_WREN,
3561 .tested = TEST_UNTESTED,
3562 .probe = probe_spi_rdid,
3563 .probe_timing = TIMING_ZERO,
3564 .block_erasers =
3565 {
3566 {
3567 .eraseblocks = { {32 * 1024, 4} },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {128 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
3574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3575 .unlock = spi_disable_blockprotect,
3576 .write = spi_chip_write_256,
3577 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 256,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 3}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {256 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003612 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 256,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 3},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {256 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003647 .read = spi_chip_read, /* Fast read (0x0B) supported */
3648 .voltage = {2700, 3600},
3649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25P20",
3654 .bustype = BUS_SPI,
3655 .manufacture_id = EON_ID_NOPREFIX,
3656 .model_id = EON_EN25B20,
3657 .total_size = 256,
3658 .page_size = 256,
3659 .feature_bits = FEATURE_WRSR_WREN,
3660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
3663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = { {64 * 1024, 4} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {256 * 1024, 1} },
3670 .block_erase = spi_block_erase_c7,
3671 }
3672 },
3673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3674 .unlock = spi_disable_blockprotect,
3675 .write = spi_chip_write_256,
3676 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003678 },
3679
3680 {
3681 .vendor = "Eon",
3682 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003683 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003684 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003685 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003686 .total_size = 512,
3687 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003688 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003689 .tested = TEST_UNTESTED,
3690 .probe = probe_spi_rdid,
3691 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .block_erasers =
3693 {
3694 {
3695 .eraseblocks = {
3696 {4 * 1024, 2},
3697 {8 * 1024, 1},
3698 {16 * 1024, 1},
3699 {32 * 1024, 1},
3700 {64 * 1024, 7}
3701 },
3702 .block_erase = spi_block_erase_d8,
3703 }, {
3704 .eraseblocks = { {512 * 1024, 1} },
3705 .block_erase = spi_block_erase_c7,
3706 }
3707 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003709 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003710 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003711 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003712 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003713 },
3714
3715 {
3716 .vendor = "Eon",
3717 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003721 .total_size = 512,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {64 * 1024, 7},
3732 {32 * 1024, 1},
3733 {16 * 1024, 1},
3734 {8 * 1024, 1},
3735 {4 * 1024, 2},
3736 },
3737 .block_erase = spi_block_erase_d8,
3738 }, {
3739 .eraseblocks = { {512 * 1024, 1} },
3740 .block_erase = spi_block_erase_c7,
3741 }
3742 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003743 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003744 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003745 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003746 .read = spi_chip_read, /* Fast read (0x0B) supported */
3747 .voltage = {2700, 3600},
3748 },
3749
3750 {
3751 .vendor = "Eon",
3752 .name = "EN25P40",
3753 .bustype = BUS_SPI,
3754 .manufacture_id = EON_ID_NOPREFIX,
3755 .model_id = EON_EN25B40,
3756 .total_size = 512,
3757 .page_size = 256,
3758 .feature_bits = FEATURE_WRSR_WREN,
3759 .tested = TEST_UNTESTED,
3760 .probe = probe_spi_rdid,
3761 .probe_timing = TIMING_ZERO,
3762 .block_erasers =
3763 {
3764 {
3765 .eraseblocks = { {64 * 1024, 8} },
3766 .block_erase = spi_block_erase_d8,
3767 }, {
3768 .eraseblocks = { {512 * 1024, 1} },
3769 .block_erase = spi_block_erase_c7,
3770 }
3771 },
3772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3773 .unlock = spi_disable_blockprotect,
3774 .write = spi_chip_write_256,
3775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003776 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003777 },
3778
3779 {
3780 .vendor = "Eon",
3781 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003782 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003783 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003784 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .total_size = 1024,
3786 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003787 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003788 .tested = TEST_UNTESTED,
3789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = {
3795 {4 * 1024, 2},
3796 {8 * 1024, 1},
3797 {16 * 1024, 1},
3798 {32 * 1024, 1},
3799 {64 * 1024, 15}
3800 },
3801 .block_erase = spi_block_erase_d8,
3802 }, {
3803 .eraseblocks = { {1024 * 1024, 1} },
3804 .block_erase = spi_block_erase_c7,
3805 }
3806 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003808 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003809 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003810 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003811 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003812 },
3813
3814 {
3815 .vendor = "Eon",
3816 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003817 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003818 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003819 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .total_size = 1024,
3821 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003822 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .tested = TEST_UNTESTED,
3824 .probe = probe_spi_rdid,
3825 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003826 .block_erasers =
3827 {
3828 {
3829 .eraseblocks = {
3830 {64 * 1024, 15},
3831 {32 * 1024, 1},
3832 {16 * 1024, 1},
3833 {8 * 1024, 1},
3834 {4 * 1024, 2},
3835 },
3836 .block_erase = spi_block_erase_d8,
3837 }, {
3838 .eraseblocks = { {1024 * 1024, 1} },
3839 .block_erase = spi_block_erase_c7,
3840 }
3841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003843 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003844 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003845 .read = spi_chip_read, /* Fast read (0x0B) supported */
3846 .voltage = {2700, 3600},
3847 },
3848
3849 {
3850 .vendor = "Eon",
3851 .name = "EN25P80",
3852 .bustype = BUS_SPI,
3853 .manufacture_id = EON_ID_NOPREFIX,
3854 .model_id = EON_EN25B80,
3855 .total_size = 1024,
3856 .page_size = 256,
3857 .feature_bits = FEATURE_WRSR_WREN,
3858 .tested = TEST_UNTESTED,
3859 .probe = probe_spi_rdid,
3860 .probe_timing = TIMING_ZERO,
3861 .block_erasers =
3862 {
3863 {
3864 .eraseblocks = { {64 * 1024, 16} },
3865 .block_erase = spi_block_erase_d8,
3866 }, {
3867 .eraseblocks = { {1024 * 1024, 1} },
3868 .block_erase = spi_block_erase_c7,
3869 }
3870 },
3871 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3872 .unlock = spi_disable_blockprotect,
3873 .write = spi_chip_write_256,
3874 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003875 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003876 },
3877
3878 {
3879 .vendor = "Eon",
3880 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003881 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003882 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003883 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003884 .total_size = 2048,
3885 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003886 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003887 .tested = TEST_UNTESTED,
3888 .probe = probe_spi_rdid,
3889 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .block_erasers =
3891 {
3892 {
3893 .eraseblocks = {
3894 {4 * 1024, 2},
3895 {8 * 1024, 1},
3896 {16 * 1024, 1},
3897 {32 * 1024, 1},
3898 {64 * 1024, 31},
3899 },
3900 .block_erase = spi_block_erase_d8,
3901 }, {
3902 .eraseblocks = { {2 * 1024 * 1024, 1} },
3903 .block_erase = spi_block_erase_c7,
3904 }
3905 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003907 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003908 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003909 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003910 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003911 },
3912
3913 {
3914 .vendor = "Eon",
3915 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003916 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003917 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003918 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003919 .total_size = 2048,
3920 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003921 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003922 .tested = TEST_UNTESTED,
3923 .probe = probe_spi_rdid,
3924 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003925 .block_erasers =
3926 {
3927 {
3928 .eraseblocks = {
3929 {64 * 1024, 31},
3930 {32 * 1024, 1},
3931 {16 * 1024, 1},
3932 {8 * 1024, 1},
3933 {4 * 1024, 2},
3934 },
3935 .block_erase = spi_block_erase_d8,
3936 }, {
3937 .eraseblocks = { {2 * 1024 * 1024, 1} },
3938 .block_erase = spi_block_erase_c7,
3939 }
3940 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003942 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003944 .read = spi_chip_read, /* Fast read (0x0B) supported */
3945 .voltage = {2700, 3600},
3946 },
3947
3948 {
3949 .vendor = "Eon",
3950 .name = "EN25P16",
3951 .bustype = BUS_SPI,
3952 .manufacture_id = EON_ID_NOPREFIX,
3953 .model_id = EON_EN25B16,
3954 .total_size = 2048,
3955 .page_size = 256,
3956 .feature_bits = FEATURE_WRSR_WREN,
3957 .tested = TEST_UNTESTED,
3958 .probe = probe_spi_rdid,
3959 .probe_timing = TIMING_ZERO,
3960 .block_erasers =
3961 {
3962 {
3963 .eraseblocks = { {64 * 1024, 32} },
3964 .block_erase = spi_block_erase_d8,
3965 }, {
3966 .eraseblocks = { {2 * 1024 * 1024, 1} },
3967 .block_erase = spi_block_erase_c7,
3968 }
3969 },
3970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3971 .unlock = spi_disable_blockprotect,
3972 .write = spi_chip_write_256,
3973 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003974 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003975 },
3976
3977 {
3978 .vendor = "Eon",
3979 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003980 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003981 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003982 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .total_size = 4096,
3984 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003985 /* OTP: 512B total; enter 0x3A */
3986 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003987 .tested = TEST_UNTESTED,
3988 .probe = probe_spi_rdid,
3989 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003990 .block_erasers =
3991 {
3992 {
3993 .eraseblocks = {
3994 {4 * 1024, 2},
3995 {8 * 1024, 1},
3996 {16 * 1024, 1},
3997 {32 * 1024, 1},
3998 {64 * 1024, 63},
3999 },
4000 .block_erase = spi_block_erase_d8,
4001 }, {
4002 .eraseblocks = { {4 * 1024 * 1024, 1} },
4003 .block_erase = spi_block_erase_c7,
4004 }
4005 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004006 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004007 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004008 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004009 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004010 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004011 },
4012
4013 {
4014 .vendor = "Eon",
4015 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004016 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004017 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004018 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004019 .total_size = 4096,
4020 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004021 /* OTP: 512B total; enter 0x3A */
4022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004023 .tested = TEST_UNTESTED,
4024 .probe = probe_spi_rdid,
4025 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004026 .block_erasers =
4027 {
4028 {
4029 .eraseblocks = {
4030 {64 * 1024, 63},
4031 {32 * 1024, 1},
4032 {16 * 1024, 1},
4033 {8 * 1024, 1},
4034 {4 * 1024, 2},
4035 },
4036 .block_erase = spi_block_erase_d8,
4037 }, {
4038 .eraseblocks = { {4 * 1024 * 1024, 1} },
4039 .block_erase = spi_block_erase_c7,
4040 }
4041 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004042 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004043 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004044 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004045 .read = spi_chip_read, /* Fast read (0x0B) supported */
4046 .voltage = {2700, 3600},
4047 },
4048
4049 {
4050 .vendor = "Eon",
4051 .name = "EN25P32", /* Uniform version of EN25B32 */
4052 .bustype = BUS_SPI,
4053 .manufacture_id = EON_ID_NOPREFIX,
4054 .model_id = EON_EN25B32,
4055 .total_size = 4096,
4056 .page_size = 256,
4057 /* OTP: 512B total; enter 0x3A */
4058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4059 .tested = TEST_UNTESTED,
4060 .probe = probe_spi_rdid,
4061 .probe_timing = TIMING_ZERO,
4062 .block_erasers =
4063 {
4064 {
4065 .eraseblocks = { {64 * 1024, 64} },
4066 .block_erase = spi_block_erase_d8,
4067 }, {
4068 .eraseblocks = { {4 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
4072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004076 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004084 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004085 .total_size = 8192,
4086 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = {
4096 {4 * 1024, 2},
4097 {8 * 1024, 1},
4098 {16 * 1024, 1},
4099 {32 * 1024, 1},
4100 {64 * 1024, 127},
4101 },
4102 .block_erase = spi_block_erase_d8,
4103 }, {
4104 .eraseblocks = { {8 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004110 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004120 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004121 .total_size = 8192,
4122 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004125 .tested = TEST_UNTESTED,
4126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = {
4132 {64 * 1024, 127},
4133 {32 * 1024, 1},
4134 {16 * 1024, 1},
4135 {8 * 1024, 1},
4136 {4 * 1024, 2},
4137 },
4138 .block_erase = spi_block_erase_d8,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004145 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004146 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004147 .read = spi_chip_read, /* Fast read (0x0B) supported */
4148 .voltage = {2700, 3600},
4149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25P64",
4154 .bustype = BUS_SPI,
4155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25B64,
4157 .total_size = 8192,
4158 .page_size = 256,
4159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {64 * 1024, 128} },
4168 .block_erase = spi_block_erase_d8,
4169 }, {
4170 .eraseblocks = { {8 * 1024 * 1024, 1} },
4171 .block_erase = spi_block_erase_c7,
4172 }
4173 },
4174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4175 .unlock = spi_disable_blockprotect,
4176 .write = spi_chip_write_256,
4177 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004178 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004179 },
4180
4181 {
4182 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004183 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004184 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004185 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004186 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004187 .total_size = 64,
4188 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004189 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004190 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004191 .probe = probe_spi_rdid,
4192 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004193 .block_erasers =
4194 {
4195 {
4196 .eraseblocks = { {4 * 1024, 16} },
4197 .block_erase = spi_block_erase_20,
4198 }, {
4199 .eraseblocks = { {32 * 1024, 2} },
4200 .block_erase = spi_block_erase_d8,
4201 }, {
4202 .eraseblocks = { {32 * 1024, 2} },
4203 .block_erase = spi_block_erase_52,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 1} },
4206 .block_erase = spi_block_erase_60,
4207 }, {
4208 .eraseblocks = { {64 * 1024, 1} },
4209 .block_erase = spi_block_erase_c7,
4210 }
4211 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004212 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004213 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004214 .write = spi_chip_write_256,
4215 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004217 },
4218
4219 {
4220 .vendor = "Eon",
4221 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004222 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004223 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004224 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004225 .total_size = 128,
4226 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004227 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004228 .tested = TEST_UNTESTED,
4229 .probe = probe_spi_rdid,
4230 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004231 .block_erasers =
4232 {
4233 {
4234 .eraseblocks = { {4 * 1024, 32} },
4235 .block_erase = spi_block_erase_20,
4236 }, {
4237 .eraseblocks = { {32 * 1024, 4} },
4238 .block_erase = spi_block_erase_d8,
4239 }, {
4240 .eraseblocks = { {32 * 1024, 4} },
4241 .block_erase = spi_block_erase_52,
4242 }, {
4243 .eraseblocks = { {128 * 1024, 1} },
4244 .block_erase = spi_block_erase_60,
4245 }, {
4246 .eraseblocks = { {128 * 1024, 1} },
4247 .block_erase = spi_block_erase_c7,
4248 }
4249 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004251 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004252 .write = spi_chip_write_256,
4253 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004254 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004255 },
4256
4257 {
4258 .vendor = "Eon",
4259 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004260 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004261 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004262 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004263 .total_size = 256,
4264 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004265 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004266 .tested = TEST_UNTESTED,
4267 .probe = probe_spi_rdid,
4268 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004269 .block_erasers =
4270 {
4271 {
4272 .eraseblocks = { {4 * 1024, 64} },
4273 .block_erase = spi_block_erase_20,
4274 }, {
4275 .eraseblocks = { {64 * 1024, 4} },
4276 .block_erase = spi_block_erase_d8,
4277 }, {
4278 .eraseblocks = { {64 * 1024, 4} },
4279 .block_erase = spi_block_erase_52,
4280 }, {
4281 .eraseblocks = { {256 * 1024, 1} },
4282 .block_erase = spi_block_erase_60,
4283 }, {
4284 .eraseblocks = { {256 * 1024, 1} },
4285 .block_erase = spi_block_erase_c7,
4286 }
4287 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004288 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004289 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004290 .write = spi_chip_write_256,
4291 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004292 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004293 },
4294
4295 {
4296 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004297 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004298 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004299 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004300 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004301 .total_size = 512,
4302 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004303 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004305 .probe = probe_spi_rdid,
4306 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004307 .block_erasers =
4308 {
4309 {
Sean Nelson54596372010-01-09 05:30:14 +00004310 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004311 .block_erase = spi_block_erase_20,
4312 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004313 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004314 .block_erase = spi_block_erase_d8,
4315 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004316 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004317 .block_erase = spi_block_erase_60,
4318 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004319 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004320 .block_erase = spi_block_erase_c7,
4321 },
4322 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004323 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004324 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004325 .write = spi_chip_write_256,
4326 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004327 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004328 },
4329
4330 {
4331 .vendor = "Eon",
4332 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004333 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004334 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004335 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004336 .total_size = 1024,
4337 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004338 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004339 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004340 .probe = probe_spi_rdid,
4341 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004342 .block_erasers =
4343 {
4344 {
4345 .eraseblocks = { {4 * 1024, 256} },
4346 .block_erase = spi_block_erase_20,
4347 }, {
4348 .eraseblocks = { {64 * 1024, 16} },
4349 .block_erase = spi_block_erase_d8,
4350 }, {
4351 .eraseblocks = { {1024 * 1024, 1} },
4352 .block_erase = spi_block_erase_60,
4353 }, {
4354 .eraseblocks = { {1024 * 1024, 1} },
4355 .block_erase = spi_block_erase_c7,
4356 }
4357 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004358 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004359 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004360 .write = spi_chip_write_256,
4361 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004362 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004363 },
4364
4365 {
4366 .vendor = "Eon",
4367 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004368 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004369 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004370 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004371 .total_size = 2048,
4372 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004373 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004374 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004375 .probe = probe_spi_rdid,
4376 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004377 .block_erasers =
4378 {
4379 {
4380 .eraseblocks = { {4 * 1024, 512} },
4381 .block_erase = spi_block_erase_20,
4382 }, {
4383 .eraseblocks = { {64 * 1024, 32} },
4384 .block_erase = spi_block_erase_d8,
4385 }, {
4386 .eraseblocks = { {2 * 1024 * 1024, 1} },
4387 .block_erase = spi_block_erase_60,
4388 }, {
4389 .eraseblocks = { {2 * 1024 * 1024, 1} },
4390 .block_erase = spi_block_erase_c7,
4391 }
4392 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004394 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004395 .write = spi_chip_write_256,
4396 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004397 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004398 },
4399
4400 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004401 .vendor = "Eon",
4402 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004403 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004404 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004405 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004406 .total_size = 4096,
4407 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004408 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004409 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004410 .probe = probe_spi_rdid,
4411 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004412 .block_erasers =
4413 {
4414 {
4415 .eraseblocks = { {4 * 1024, 1024} },
4416 .block_erase = spi_block_erase_20,
4417 }, {
4418 .eraseblocks = { {64 * 1024, 64} },
4419 .block_erase = spi_block_erase_d8,
4420 }, {
4421 .eraseblocks = { {4 * 1024 * 1024, 1} },
4422 .block_erase = spi_block_erase_60,
4423 }, {
4424 .eraseblocks = { {4 * 1024 * 1024, 1} },
4425 .block_erase = spi_block_erase_c7,
4426 }
4427 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004428 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004429 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .write = spi_chip_write_256,
4431 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004432 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004433 },
4434
4435 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004436 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004437 .name = "EN25F64",
4438 .bustype = BUS_SPI,
4439 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004440 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004441 .total_size = 8192,
4442 .page_size = 256,
4443 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004444 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004445 .probe = probe_spi_rdid,
4446 .probe_timing = TIMING_ZERO,
4447 .block_erasers =
4448 {
4449 {
4450 .eraseblocks = { {4 * 1024, 2048} },
4451 .block_erase = spi_block_erase_20,
4452 }, {
4453 .eraseblocks = { {64 * 1024, 128} },
4454 .block_erase = spi_block_erase_d8,
4455 }, {
4456 .eraseblocks = { {8 * 1024 * 1024, 1} },
4457 .block_erase = spi_block_erase_60,
4458 }, {
4459 .eraseblocks = { {8 * 1024 * 1024, 1} },
4460 .block_erase = spi_block_erase_c7,
4461 }
4462 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004463 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004464 .unlock = spi_disable_blockprotect,
4465 .write = spi_chip_write_256,
4466 .read = spi_chip_read,
4467 .voltage = {2700, 3600},
4468 },
4469
4470 {
4471 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004472 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004473 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004474 .manufacture_id = EON_ID_NOPREFIX,
4475 .model_id = EON_EN25Q40,
4476 .total_size = 512,
4477 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004478 /* OTP: 256B total; enter 0x3A */
4479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004480 .tested = TEST_UNTESTED,
4481 .probe = probe_spi_rdid,
4482 .probe_timing = TIMING_ZERO,
4483 .block_erasers =
4484 {
4485 {
4486 .eraseblocks = { {4 * 1024, 128} },
4487 .block_erase = spi_block_erase_20,
4488 }, {
4489 .eraseblocks = { {64 * 1024, 8} },
4490 .block_erase = spi_block_erase_d8,
4491 }, {
4492 .eraseblocks = { {512 * 1024, 1} },
4493 .block_erase = spi_block_erase_60,
4494 }, {
4495 .eraseblocks = { {512 * 1024, 1} },
4496 .block_erase = spi_block_erase_c7,
4497 }
4498 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004499 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004500 .unlock = spi_disable_blockprotect,
4501 .write = spi_chip_write_256,
4502 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004503 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004504 },
4505
4506 {
4507 .vendor = "Eon",
4508 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004509 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004510 .manufacture_id = EON_ID_NOPREFIX,
4511 .model_id = EON_EN25Q80,
4512 .total_size = 1024,
4513 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004514 /* OTP: 256B total; enter 0x3A */
4515 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004516 .tested = TEST_UNTESTED,
4517 .probe = probe_spi_rdid,
4518 .probe_timing = TIMING_ZERO,
4519 .block_erasers =
4520 {
4521 {
4522 .eraseblocks = { {4 * 1024, 256} },
4523 .block_erase = spi_block_erase_20,
4524 }, {
4525 .eraseblocks = { {64 * 1024, 16} },
4526 .block_erase = spi_block_erase_d8,
4527 }, {
4528 .eraseblocks = { {1024 * 1024, 1} },
4529 .block_erase = spi_block_erase_60,
4530 }, {
4531 .eraseblocks = { {1024 * 1024, 1} },
4532 .block_erase = spi_block_erase_c7,
4533 }
4534 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004535 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004536 .unlock = spi_disable_blockprotect,
4537 .write = spi_chip_write_256,
4538 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004539 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004540 },
4541
4542 {
4543 /* Note: EN25D16 is an evil twin which shares the model ID
4544 but has different write protection capabilities */
4545 .vendor = "Eon",
4546 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004547 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004548 .manufacture_id = EON_ID_NOPREFIX,
4549 .model_id = EON_EN25Q16,
4550 .total_size = 2048,
4551 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004552 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004554 .tested = TEST_UNTESTED,
4555 .probe = probe_spi_rdid,
4556 .probe_timing = TIMING_ZERO,
4557 .block_erasers =
4558 {
4559 {
4560 .eraseblocks = { {4 * 1024, 512} },
4561 .block_erase = spi_block_erase_20,
4562 }, {
4563 .eraseblocks = { {64 * 1024, 32} },
4564 .block_erase = spi_block_erase_d8,
4565 }, {
4566 /* not supported by Q16 version */
4567 .eraseblocks = { {64 * 1024, 32} },
4568 .block_erase = spi_block_erase_52,
4569 }, {
4570 .eraseblocks = { {2 * 1024 * 1024, 1} },
4571 .block_erase = spi_block_erase_60,
4572 }, {
4573 .eraseblocks = { {2 * 1024 * 1024, 1} },
4574 .block_erase = spi_block_erase_c7,
4575 }
4576 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004577 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004578 .unlock = spi_disable_blockprotect,
4579 .write = spi_chip_write_256,
4580 .read = spi_chip_read,
4581 .voltage = {2700, 3600},
4582 },
4583
4584 {
4585 .vendor = "Eon",
4586 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004587 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004588 .manufacture_id = EON_ID_NOPREFIX,
4589 .model_id = EON_EN25Q32,
4590 .total_size = 4096,
4591 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004592 /* OTP: 512B total; enter 0x3A */
4593 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004594 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004595 .probe = probe_spi_rdid,
4596 .probe_timing = TIMING_ZERO,
4597 .block_erasers =
4598 {
4599 {
4600 .eraseblocks = { {4 * 1024, 1024} },
4601 .block_erase = spi_block_erase_20,
4602 }, {
4603 .eraseblocks = { {64 * 1024, 64} },
4604 .block_erase = spi_block_erase_d8,
4605 }, {
4606 .eraseblocks = { {4 * 1024 * 1024, 1} },
4607 .block_erase = spi_block_erase_60,
4608 }, {
4609 .eraseblocks = { {4 * 1024 * 1024, 1} },
4610 .block_erase = spi_block_erase_c7,
4611 }
4612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004614 .unlock = spi_disable_blockprotect,
4615 .write = spi_chip_write_256,
4616 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004617 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004618 },
4619
4620 {
4621 .vendor = "Eon",
4622 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004623 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004624 .manufacture_id = EON_ID_NOPREFIX,
4625 .model_id = EON_EN25Q64,
4626 .total_size = 8192,
4627 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004628 /* OTP: 512B total; enter 0x3A */
4629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004630 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004631 .probe = probe_spi_rdid,
4632 .probe_timing = TIMING_ZERO,
4633 .block_erasers =
4634 {
4635 {
4636 .eraseblocks = { {4 * 1024, 2048} },
4637 .block_erase = spi_block_erase_20,
4638 }, {
4639 .eraseblocks = { {64 * 1024, 128} },
4640 .block_erase = spi_block_erase_d8,
4641 }, {
4642 .eraseblocks = { {8 * 1024 * 1024, 1} },
4643 .block_erase = spi_block_erase_60,
4644 }, {
4645 .eraseblocks = { {8 * 1024 * 1024, 1} },
4646 .block_erase = spi_block_erase_c7,
4647 }
4648 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004650 .unlock = spi_disable_blockprotect,
4651 .write = spi_chip_write_256,
4652 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004653 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004654 },
4655
4656 {
4657 .vendor = "Eon",
4658 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004659 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004660 .manufacture_id = EON_ID_NOPREFIX,
4661 .model_id = EON_EN25Q128,
4662 .total_size = 16384,
4663 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004664 /* OTP: 512B total; enter 0x3A */
4665 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004666 .tested = TEST_UNTESTED,
4667 .probe = probe_spi_rdid,
4668 .probe_timing = TIMING_ZERO,
4669 .block_erasers =
4670 {
4671 {
4672 .eraseblocks = { {4 * 1024, 4096} },
4673 .block_erase = spi_block_erase_20,
4674 }, {
4675 .eraseblocks = { {64 * 1024, 256} },
4676 .block_erase = spi_block_erase_d8,
4677 }, {
4678 .eraseblocks = { {16 * 1024 * 1024, 1} },
4679 .block_erase = spi_block_erase_60,
4680 }, {
4681 .eraseblocks = { {16 * 1024 * 1024, 1} },
4682 .block_erase = spi_block_erase_c7,
4683 }
4684 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004686 .unlock = spi_disable_blockprotect,
4687 .write = spi_chip_write_256,
4688 .read = spi_chip_read,
4689 },
4690
4691 {
4692 .vendor = "Eon",
4693 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004694 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004695 .manufacture_id = EON_ID_NOPREFIX,
4696 .model_id = EON_EN25QH16,
4697 .total_size = 2048,
4698 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004699 /* supports SFDP */
4700 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004701 /* QPI enable 0x38, disable 0xFF */
4702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004703 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004704 .probe = probe_spi_rdid,
4705 .probe_timing = TIMING_ZERO,
4706 .block_erasers =
4707 {
4708 {
4709 .eraseblocks = { {4 * 1024, 512} },
4710 .block_erase = spi_block_erase_20,
4711 }, {
4712 .eraseblocks = { {64 * 1024, 32} },
4713 .block_erase = spi_block_erase_d8,
4714 }, {
4715 .eraseblocks = { {1024 * 2048, 1} },
4716 .block_erase = spi_block_erase_60,
4717 }, {
4718 .eraseblocks = { {1024 * 2048, 1} },
4719 .block_erase = spi_block_erase_c7,
4720 }
4721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004722 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004723 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004724 .write = spi_chip_write_256,
4725 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004726 .voltage = {2700, 3600},
4727 },
4728
4729 {
4730 .vendor = "Eon",
4731 .name = "EN25QH32",
4732 .bustype = BUS_SPI,
4733 .manufacture_id = EON_ID_NOPREFIX,
4734 .model_id = EON_EN25QH32,
4735 .total_size = 4096,
4736 .page_size = 256,
4737 /* supports SFDP */
4738 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004739 /* QPI enable 0x38, disable 0xFF */
4740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004741 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004742 .probe = probe_spi_rdid,
4743 .probe_timing = TIMING_ZERO,
4744 .block_erasers =
4745 {
4746 {
4747 .eraseblocks = { {4 * 1024, 1024} },
4748 .block_erase = spi_block_erase_20,
4749 }, {
4750 .eraseblocks = { {64 * 1024, 64} },
4751 .block_erase = spi_block_erase_d8,
4752 }, {
4753 .eraseblocks = { {1024 * 4096, 1} },
4754 .block_erase = spi_block_erase_60,
4755 }, {
4756 .eraseblocks = { {1024 * 4096, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004760 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004761 .unlock = spi_disable_blockprotect_bp3_srwd,
4762 .write = spi_chip_write_256,
4763 .read = spi_chip_read,
4764 .voltage = {2700, 3600},
4765 },
4766
4767 {
4768 .vendor = "Eon",
4769 .name = "EN25QH64",
4770 .bustype = BUS_SPI,
4771 .manufacture_id = EON_ID_NOPREFIX,
4772 .model_id = EON_EN25QH64,
4773 .total_size = 8192,
4774 .page_size = 256,
4775 /* supports SFDP */
4776 /* OTP: 512B total; enter 0x3A */
4777 /* QPI enable 0x38, disable 0xFF */
4778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004779 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers = {
4783 {
4784 .eraseblocks = { {4 * 1024, 2048} },
4785 .block_erase = spi_block_erase_20,
4786 }, {
4787 .eraseblocks = { {64 * 1024, 128} },
4788 .block_erase = spi_block_erase_d8,
4789 }, {
4790 .eraseblocks = { { 8192 * 1024, 1} },
4791 .block_erase = spi_block_erase_60,
4792 }, {
4793 .eraseblocks = { { 8192 * 1024, 1} },
4794 .block_erase = spi_block_erase_c7,
4795 }
4796 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004797 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004798 .unlock = spi_disable_blockprotect_bp3_srwd,
4799 .write = spi_chip_write_256,
4800 .read = spi_chip_read,
4801 .voltage = {2700, 3600},
4802 },
4803
4804 {
4805 .vendor = "Eon",
4806 .name = "EN25QH128",
4807 .bustype = BUS_SPI,
4808 .manufacture_id = EON_ID_NOPREFIX,
4809 .model_id = EON_EN25QH128,
4810 .total_size = 16384,
4811 .page_size = 256,
4812 /* supports SFDP */
4813 /* OTP: 512B total; enter 0x3A */
4814 /* QPI enable 0x38, disable 0xFF */
4815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4816 .tested = TEST_UNTESTED,
4817 .probe = probe_spi_rdid,
4818 .probe_timing = TIMING_ZERO,
4819 .block_erasers = {
4820 {
4821 .eraseblocks = { {4 * 1024, 4096} },
4822 .block_erase = spi_block_erase_20,
4823 }, {
4824 .eraseblocks = { {64 * 1024, 256} },
4825 .block_erase = spi_block_erase_d8,
4826 }, {
4827 .eraseblocks = { { 16384 * 1024, 1} },
4828 .block_erase = spi_block_erase_60,
4829 }, {
4830 .eraseblocks = { { 16384 * 1024, 1} },
4831 .block_erase = spi_block_erase_c7,
4832 }
4833 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004834 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004835 .unlock = spi_disable_blockprotect_bp3_srwd,
4836 .write = spi_chip_write_256,
4837 .read = spi_chip_read,
4838 .voltage = {2700, 3600},
4839 },
4840
4841 {
4842 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004843 .name = "EN25S10",
4844 .bustype = BUS_SPI,
4845 .manufacture_id = EON_ID_NOPREFIX,
4846 .model_id = EON_EN25S10,
4847 .total_size = 128,
4848 .page_size = 256,
4849 /* OTP: 256B total; enter 0x3A */
4850 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4851 .tested = TEST_UNTESTED,
4852 .probe = probe_spi_rdid,
4853 .probe_timing = TIMING_ZERO,
4854 .block_erasers = {
4855 {
4856 .eraseblocks = { {4 * 1024, 32} },
4857 .block_erase = spi_block_erase_20,
4858 }, {
4859 .eraseblocks = { {32 * 1024, 4} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {128 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {128 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004869 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {1650, 1950},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25S20",
4879 .bustype = BUS_SPI,
4880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25S20,
4882 .total_size = 256,
4883 .page_size = 256,
4884 /* OTP: 256B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4886 .tested = TEST_UNTESTED,
4887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers = {
4890 {
4891 .eraseblocks = { {4 * 1024, 64} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 4} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {256 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {256 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004904 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 .voltage = {1650, 1950},
4909 },
4910
4911 {
4912 .vendor = "Eon",
4913 .name = "EN25S40",
4914 .bustype = BUS_SPI,
4915 .manufacture_id = EON_ID_NOPREFIX,
4916 .model_id = EON_EN25S40,
4917 .total_size = 512,
4918 .page_size = 256,
4919 /* OTP: 256B total; enter 0x3A */
4920 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4921 .tested = TEST_UNTESTED,
4922 .probe = probe_spi_rdid,
4923 .probe_timing = TIMING_ZERO,
4924 .block_erasers = {
4925 {
4926 .eraseblocks = { {4 * 1024, 128} },
4927 .block_erase = spi_block_erase_20,
4928 }, {
4929 .eraseblocks = { {64 * 1024, 8} },
4930 .block_erase = spi_block_erase_d8,
4931 }, {
4932 .eraseblocks = { {512 * 1024, 1} },
4933 .block_erase = spi_block_erase_60,
4934 }, {
4935 .eraseblocks = { {512 * 1024, 1} },
4936 .block_erase = spi_block_erase_c7,
4937 }
4938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004939 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004940 .unlock = spi_disable_blockprotect,
4941 .write = spi_chip_write_256,
4942 .read = spi_chip_read,
4943 .voltage = {1650, 1950},
4944 },
4945
4946 {
4947 .vendor = "Eon",
4948 .name = "EN25S80",
4949 .bustype = BUS_SPI,
4950 .manufacture_id = EON_ID_NOPREFIX,
4951 .model_id = EON_EN25S80,
4952 .total_size = 1024,
4953 .page_size = 256,
4954 /* OTP: 256B total; enter 0x3A */
4955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers = {
4960 {
4961 .eraseblocks = { {4 * 1024, 256} },
4962 .block_erase = spi_block_erase_20,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 16} },
4965 .block_erase = spi_block_erase_d8,
4966 }, {
4967 .eraseblocks = { {1024 * 1024, 1} },
4968 .block_erase = spi_block_erase_60,
4969 }, {
4970 .eraseblocks = { {1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_c7,
4972 }
4973 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004974 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004975 .unlock = spi_disable_blockprotect,
4976 .write = spi_chip_write_256,
4977 .read = spi_chip_read,
4978 .voltage = {1650, 1950},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN25S16",
4984 .bustype = BUS_SPI,
4985 .manufacture_id = EON_ID_NOPREFIX,
4986 .model_id = EON_EN25S16,
4987 .total_size = 2048,
4988 .page_size = 256,
4989 /* OTP: 512B total; enter 0x3A */
4990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4991 .tested = TEST_UNTESTED,
4992 .probe = probe_spi_rdid,
4993 .probe_timing = TIMING_ZERO,
4994 .block_erasers = {
4995 {
4996 .eraseblocks = { {4 * 1024, 512} },
4997 .block_erase = spi_block_erase_20,
4998 }, {
4999 .eraseblocks = { {64 * 1024, 32} },
5000 .block_erase = spi_block_erase_52,
5001 }, {
5002 .eraseblocks = { {32 * 1024, 64} },
5003 .block_erase = spi_block_erase_d8,
5004 }, {
5005 .eraseblocks = { {2048 * 1024, 1} },
5006 .block_erase = spi_block_erase_60,
5007 }, {
5008 .eraseblocks = { {2048 * 1024, 1} },
5009 .block_erase = spi_block_erase_c7,
5010 }
5011 },
5012 .printlock = spi_prettyprint_status_register_en25s_wp,
5013 .unlock = spi_disable_blockprotect_bp3_srwd,
5014 .write = spi_chip_write_256,
5015 .read = spi_chip_read,
5016 .voltage = {1650, 1950},
5017 },
5018
5019 {
5020 .vendor = "Eon",
5021 .name = "EN25S32",
5022 .bustype = BUS_SPI,
5023 .manufacture_id = EON_ID_NOPREFIX,
5024 .model_id = EON_EN25S32,
5025 .total_size = 4096,
5026 .page_size = 256,
5027 /* OTP: 512B total; enter 0x3A */
5028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5029 .tested = TEST_UNTESTED,
5030 .probe = probe_spi_rdid,
5031 .probe_timing = TIMING_ZERO,
5032 .block_erasers = {
5033 {
5034 .eraseblocks = { {4 * 1024, 1024} },
5035 .block_erase = spi_block_erase_20,
5036 }, {
5037 .eraseblocks = { {32 * 1024, 128} },
5038 .block_erase = spi_block_erase_52,
5039 }, {
5040 .eraseblocks = { {64 * 1024, 64} },
5041 .block_erase = spi_block_erase_d8,
5042 }, {
5043 .eraseblocks = { {4096 * 1024, 1} },
5044 .block_erase = spi_block_erase_60,
5045 }, {
5046 .eraseblocks = { {4096 * 1024, 1} },
5047 .block_erase = spi_block_erase_c7,
5048 }
5049 },
5050 .printlock = spi_prettyprint_status_register_en25s_wp,
5051 .unlock = spi_disable_blockprotect_bp3_srwd,
5052 .write = spi_chip_write_256,
5053 .read = spi_chip_read,
5054 .voltage = {1650, 1950},
5055 },
5056
5057 {
5058 .vendor = "Eon",
5059 .name = "EN25S64",
5060 .bustype = BUS_SPI,
5061 .manufacture_id = EON_ID_NOPREFIX,
5062 .model_id = EON_EN25S64,
5063 .total_size = 8192,
5064 .page_size = 256,
5065 /* OTP: 512B total; enter 0x3A */
5066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5067 .tested = TEST_UNTESTED,
5068 .probe = probe_spi_rdid,
5069 .probe_timing = TIMING_ZERO,
5070 .block_erasers = {
5071 {
5072 .eraseblocks = { {4 * 1024, 2048} },
5073 .block_erase = spi_block_erase_20,
5074 }, {
5075 .eraseblocks = { {64 * 1024, 128} },
5076 .block_erase = spi_block_erase_d8,
5077 }, {
5078 .eraseblocks = { {8192 * 1024, 1} },
5079 .block_erase = spi_block_erase_60,
5080 }, {
5081 .eraseblocks = { {8192 * 1024, 1} },
5082 .block_erase = spi_block_erase_c7,
5083 }
5084 },
5085 .printlock = spi_prettyprint_status_register_en25s_wp,
5086 .unlock = spi_disable_blockprotect_bp3_srwd,
5087 .write = spi_chip_write_256,
5088 .read = spi_chip_read,
5089 .voltage = {1650, 1950},
5090 },
5091
5092 {
5093 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005094 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005095 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005096 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005097 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005098 .total_size = 128,
5099 .page_size = 128,
5100 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005101 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005102 .probe = probe_jedec,
5103 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5104 .block_erasers =
5105 {
5106 {
5107 .eraseblocks = { {16 * 1024, 8} },
5108 .block_erase = erase_sector_jedec,
5109 },
5110 {
5111 .eraseblocks = { {128 * 1024, 1} },
5112 .block_erase = erase_chip_block_jedec,
5113 },
5114 },
5115 .write = write_jedec_1,
5116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005117 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005118 },
5119
5120 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005121 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005122 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005123 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005124 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005125 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005126 .total_size = 256,
5127 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005128 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005129 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005130 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005132 .block_erasers =
5133 {
5134 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005135 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005136 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005137 {8 * 1024, 2},
5138 {32 * 1024, 1},
5139 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005140 },
5141 .block_erase = erase_sector_jedec,
5142 }, {
5143 .eraseblocks = { {256 * 1024, 1} },
5144 .block_erase = erase_chip_block_jedec,
5145 },
5146 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005149 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005150 },
5151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005152 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005153 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005154 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005155 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005156 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005157 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 .total_size = 256,
5159 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005160 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005162 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005163 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005164 .block_erasers =
5165 {
5166 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005167 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005168 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005169 {32 * 1024, 1},
5170 {8 * 1024, 2},
5171 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005172 },
5173 .block_erase = erase_sector_jedec,
5174 }, {
5175 .eraseblocks = { {256 * 1024, 1} },
5176 .block_erase = erase_chip_block_jedec,
5177 },
5178 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005179 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005181 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005182 },
5183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005184 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005185 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005186 .name = "EN29LV040(A)",
5187 .bustype = BUS_PARALLEL,
5188 .manufacture_id = EON_ID,
5189 .model_id = EON_EN29LV040,
5190 .total_size = 512,
5191 .page_size = 4 * 1024,
5192 .tested = TEST_OK_PREW,
5193 .probe = probe_jedec,
5194 .probe_timing = TIMING_ZERO,
5195 .block_erasers =
5196 {
5197 {
5198 .eraseblocks = { {64 * 1024, 8} },
5199 .block_erase = erase_sector_jedec,
5200 },
5201 {
5202 .eraseblocks = { {512 * 1024, 1} },
5203 .block_erase = erase_chip_block_jedec,
5204 },
5205 },
5206 .write = write_jedec_1,
5207 .read = read_memmapped,
5208 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5209 },
5210
5211 {
5212 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005213 .name = "EN29LV640B",
5214 .bustype = BUS_PARALLEL,
5215 .manufacture_id = EON_ID,
5216 .model_id = EON_EN29LV640B,
5217 .total_size = 8192,
5218 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005219 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005220 .tested = TEST_OK_PREW,
5221 .probe = probe_en29lv640b,
5222 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5223 .block_erasers =
5224 {
5225 {
5226 .eraseblocks = {
5227 {8 * 1024, 8},
5228 {64 * 1024, 127},
5229 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005230 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005231 }, {
5232 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005233 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005234 },
5235 },
5236 .write = write_en29lv640b,
5237 .read = read_memmapped,
5238 .voltage = {2700, 3600},
5239 },
5240
5241 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005242 .vendor = "Eon",
5243 .name = "EN29GL064(A)B",
5244 .bustype = BUS_PARALLEL,
5245 .manufacture_id = EON_ID,
5246 .model_id = EON_EN29GL064B,
5247 .total_size = 8192,
5248 .page_size = 128 * 1024, /* actual page size is 16 */
5249 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_jedec_29gl,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = {
5257 {8 * 1024, 8},
5258 {64 * 1024, 127},
5259 },
5260 .block_erase = erase_sector_jedec,
5261 }, {
5262 .eraseblocks = { {8 * 1024 * 1024, 1} },
5263 .block_erase = erase_chip_block_jedec,
5264 },
5265 },
5266 .write = write_jedec_1,
5267 .read = read_memmapped,
5268 .voltage = {2700, 3600},
5269 },
5270
5271 {
5272 .vendor = "Eon",
5273 .name = "EN29GL064(A)T",
5274 .bustype = BUS_PARALLEL,
5275 .manufacture_id = EON_ID,
5276 .model_id = EON_EN29GL064T,
5277 .total_size = 8192,
5278 .page_size = 128 * 1024, /* actual page size is 16 */
5279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5280 .tested = TEST_UNTESTED,
5281 .probe = probe_jedec_29gl,
5282 .probe_timing = TIMING_ZERO,
5283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = {
5287 {64 * 1024, 127},
5288 {8 * 1024, 8},
5289 },
5290 .block_erase = erase_sector_jedec,
5291 }, {
5292 .eraseblocks = { {8 * 1024 * 1024, 1} },
5293 .block_erase = erase_chip_block_jedec,
5294 },
5295 },
5296 .write = write_jedec_1,
5297 .read = read_memmapped,
5298 .voltage = {2700, 3600},
5299 },
5300
5301 {
5302 .vendor = "Eon",
5303 .name = "EN29GL064H/L",
5304 .bustype = BUS_PARALLEL,
5305 .manufacture_id = EON_ID,
5306 .model_id = EON_EN29GL064HL,
5307 .total_size = 8192,
5308 .page_size = 128 * 1024, /* actual page size is 16 */
5309 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5310 .tested = TEST_UNTESTED,
5311 .probe = probe_jedec_29gl,
5312 .probe_timing = TIMING_ZERO,
5313 .block_erasers =
5314 {
5315 {
5316 .eraseblocks = { {64 * 1024, 128} },
5317 .block_erase = erase_sector_jedec,
5318 }, {
5319 .eraseblocks = { {8 * 1024 * 1024, 1} },
5320 .block_erase = erase_chip_block_jedec,
5321 },
5322 },
5323 .write = write_jedec_1,
5324 .read = read_memmapped,
5325 .voltage = {2700, 3600},
5326 },
5327
5328 {
5329 .vendor = "Eon",
5330 .name = "EN29GL128",
5331 .bustype = BUS_PARALLEL,
5332 .manufacture_id = EON_ID,
5333 .model_id = EON_EN29GL128HL,
5334 .total_size = 16384,
5335 .page_size = 128 * 1024, /* actual page size is 16 */
5336 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5337 .tested = TEST_UNTESTED,
5338 .probe = probe_jedec_29gl,
5339 .probe_timing = TIMING_ZERO,
5340 .block_erasers =
5341 {
5342 {
5343 .eraseblocks = { {128 * 1024, 128} },
5344 .block_erase = erase_sector_jedec,
5345 }, {
5346 .eraseblocks = { {16 * 1024 * 1024, 1} },
5347 .block_erase = erase_chip_block_jedec,
5348 },
5349 },
5350 .write = write_jedec_1,
5351 .read = read_memmapped,
5352 .voltage = {2700, 3600},
5353 },
5354
5355 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005356 .vendor = "Fujitsu",
5357 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005358 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005359 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005360 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005361 .total_size = 512,
5362 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005363 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005364 .tested = TEST_UNTESTED,
5365 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005366 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005367 .block_erasers =
5368 {
5369 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005370 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005371 {16 * 1024, 1},
5372 {8 * 1024, 2},
5373 {32 * 1024, 1},
5374 {64 * 1024, 7},
5375 },
Sean Nelson35727f72010-01-28 23:55:12 +00005376 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005377 }, {
5378 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005379 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005380 },
5381 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005382 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005383 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005384 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005385 },
5386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005387 {
5388 .vendor = "Fujitsu",
5389 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005390 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005391 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005392 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005393 .total_size = 512,
5394 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005395 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005396 .tested = TEST_UNTESTED,
5397 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005398 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005399 .block_erasers =
5400 {
5401 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005402 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005403 {64 * 1024, 7},
5404 {32 * 1024, 1},
5405 {8 * 1024, 2},
5406 {16 * 1024, 1},
5407 },
Sean Nelson35727f72010-01-28 23:55:12 +00005408 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005409 }, {
5410 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005411 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005412 },
5413 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005414 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005416 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005417 },
5418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005419 {
Sean Nelson35727f72010-01-28 23:55:12 +00005420 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005421 .vendor = "Fujitsu",
5422 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005423 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005424 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005425 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005426 .total_size = 512,
5427 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005428 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005429 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005430 .probe = probe_jedec,
5431 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005432 .block_erasers =
5433 {
5434 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005435 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005436 {16 * 1024, 1},
5437 {8 * 1024, 2},
5438 {32 * 1024, 1},
5439 {64 * 1024, 7},
5440 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005441 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005442 }, {
5443 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005444 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005445 },
5446 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005447 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005448 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005449 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005450 },
5451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 {
5453 .vendor = "Fujitsu",
5454 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005456 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005457 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005458 .total_size = 512,
5459 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005460 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005461 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005462 .probe = probe_jedec,
5463 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005464 .block_erasers =
5465 {
5466 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005467 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005468 {64 * 1024, 7},
5469 {32 * 1024, 1},
5470 {8 * 1024, 2},
5471 {16 * 1024, 1},
5472 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005473 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005474 }, {
5475 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005476 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005477 },
5478 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005480 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005481 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005482 },
5483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005484 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005485 .vendor = "Fujitsu",
5486 .name = "MBM29LV160BE",
5487 .bustype = BUS_PARALLEL,
5488 .manufacture_id = FUJITSU_ID,
5489 .model_id = FUJITSU_MBM29LV160BE,
5490 .total_size = 2 * 1024,
5491 .page_size = 0,
5492 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5493 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005494 .probe = probe_jedec,
5495 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005496 .block_erasers =
5497 {
5498 {
5499 .eraseblocks = {
5500 {16 * 1024, 1},
5501 {8 * 1024, 2},
5502 {32 * 1024, 1},
5503 {64 * 1024, 31},
5504 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005505 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005506 }, {
5507 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005508 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005509 },
5510 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005511 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005512 .read = read_memmapped,
5513 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5514 },
5515
5516 {
5517 .vendor = "Fujitsu",
5518 .name = "MBM29LV160TE",
5519 .bustype = BUS_PARALLEL,
5520 .manufacture_id = FUJITSU_ID,
5521 .model_id = FUJITSU_MBM29LV160TE,
5522 .total_size = 2 * 1024,
5523 .page_size = 0,
5524 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5525 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005526 .probe = probe_jedec,
5527 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005528 .block_erasers =
5529 {
5530 {
5531 .eraseblocks = {
5532 {64 * 1024, 31},
5533 {32 * 1024, 1},
5534 {8 * 1024, 2},
5535 {16 * 1024, 1},
5536 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005537 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005538 }, {
5539 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005540 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005541 },
5542 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005543 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005544 .read = read_memmapped,
5545 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5546 },
5547
5548 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005549 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005550 .name = "GD25LQ40",
5551 .bustype = BUS_SPI,
5552 .manufacture_id = GIGADEVICE_ID,
5553 .model_id = GIGADEVICE_GD25LQ40,
5554 .total_size = 512,
5555 .page_size = 256,
5556 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5558 .tested = TEST_UNTESTED,
5559 .probe = probe_spi_rdid,
5560 .probe_timing = TIMING_ZERO,
5561 .block_erasers =
5562 {
5563 {
5564 .eraseblocks = { {4 * 1024, 128} },
5565 .block_erase = spi_block_erase_20,
5566 }, {
5567 .eraseblocks = { {32 * 1024, 16} },
5568 .block_erase = spi_block_erase_52,
5569 }, {
5570 .eraseblocks = { {64 * 1024, 8} },
5571 .block_erase = spi_block_erase_d8,
5572 }, {
5573 .eraseblocks = { {512 * 1024, 1} },
5574 .block_erase = spi_block_erase_60,
5575 }, {
5576 .eraseblocks = { {512 * 1024, 1} },
5577 .block_erase = spi_block_erase_c7,
5578 }
5579 },
5580 .printlock = spi_prettyprint_status_register_bp4_srwd,
5581 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5582 .write = spi_chip_write_256,
5583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5584 .voltage = {1695, 1950},
5585 },
5586
5587 {
5588 .vendor = "GigaDevice",
5589 .name = "GD25LQ80",
5590 .bustype = BUS_SPI,
5591 .manufacture_id = GIGADEVICE_ID,
5592 .model_id = GIGADEVICE_GD25LQ80,
5593 .total_size = 1024,
5594 .page_size = 256,
5595 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5597 .tested = TEST_UNTESTED,
5598 .probe = probe_spi_rdid,
5599 .probe_timing = TIMING_ZERO,
5600 .block_erasers =
5601 {
5602 {
5603 .eraseblocks = { {4 * 1024, 256} },
5604 .block_erase = spi_block_erase_20,
5605 }, {
5606 .eraseblocks = { {32 * 1024, 32} },
5607 .block_erase = spi_block_erase_52,
5608 }, {
5609 .eraseblocks = { {64 * 1024, 16} },
5610 .block_erase = spi_block_erase_d8,
5611 }, {
5612 .eraseblocks = { {1 * 1024 * 1024, 1} },
5613 .block_erase = spi_block_erase_60,
5614 }, {
5615 .eraseblocks = { {1 * 1024 * 1024, 1} },
5616 .block_erase = spi_block_erase_c7,
5617 }
5618 },
5619 .printlock = spi_prettyprint_status_register_bp4_srwd,
5620 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5621 .write = spi_chip_write_256,
5622 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5623 .voltage = {1695, 1950},
5624 },
5625
5626 {
5627 .vendor = "GigaDevice",
5628 .name = "GD25LQ16",
5629 .bustype = BUS_SPI,
5630 .manufacture_id = GIGADEVICE_ID,
5631 .model_id = GIGADEVICE_GD25LQ16,
5632 .total_size = 2048,
5633 .page_size = 256,
5634 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5636 .tested = TEST_UNTESTED,
5637 .probe = probe_spi_rdid,
5638 .probe_timing = TIMING_ZERO,
5639 .block_erasers =
5640 {
5641 {
5642 .eraseblocks = { {4 * 1024, 512} },
5643 .block_erase = spi_block_erase_20,
5644 }, {
5645 .eraseblocks = { {32 * 1024, 64} },
5646 .block_erase = spi_block_erase_52,
5647 }, {
5648 .eraseblocks = { {64 * 1024, 32} },
5649 .block_erase = spi_block_erase_d8,
5650 }, {
5651 .eraseblocks = { {2 * 1024 * 1024, 1} },
5652 .block_erase = spi_block_erase_60,
5653 }, {
5654 .eraseblocks = { {2 * 1024 * 1024, 1} },
5655 .block_erase = spi_block_erase_c7,
5656 }
5657 },
5658 .printlock = spi_prettyprint_status_register_bp4_srwd,
5659 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5660 .write = spi_chip_write_256,
5661 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5662 .voltage = {1695, 1950},
5663 },
5664
5665 {
5666 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005667 .name = "GD25LQ32",
5668 .bustype = BUS_SPI,
5669 .manufacture_id = GIGADEVICE_ID,
5670 .model_id = GIGADEVICE_GD25LQ32,
5671 .total_size = 4096,
5672 .page_size = 256,
5673 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5675 .tested = TEST_OK_PREW,
5676 .probe = probe_spi_rdid,
5677 .probe_timing = TIMING_ZERO,
5678 .block_erasers =
5679 {
5680 {
5681 .eraseblocks = { {4 * 1024, 1024} },
5682 .block_erase = spi_block_erase_20,
5683 }, {
5684 .eraseblocks = { {32 * 1024, 128} },
5685 .block_erase = spi_block_erase_52,
5686 }, {
5687 .eraseblocks = { {64 * 1024, 64} },
5688 .block_erase = spi_block_erase_d8,
5689 }, {
5690 .eraseblocks = { {4 * 1024 * 1024, 1} },
5691 .block_erase = spi_block_erase_60,
5692 }, {
5693 .eraseblocks = { {4 * 1024 * 1024, 1} },
5694 .block_erase = spi_block_erase_c7,
5695 }
5696 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005697 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005698 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5699 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005700 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5701 .voltage = {1695, 1950},
5702 },
5703
5704 {
5705 .vendor = "GigaDevice",
5706 .name = "GD25LQ64(B)",
5707 .bustype = BUS_SPI,
5708 .manufacture_id = GIGADEVICE_ID,
5709 .model_id = GIGADEVICE_GD25LQ64,
5710 .total_size = 8192,
5711 .page_size = 256,
5712 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5713 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005714 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005715 .probe = probe_spi_rdid,
5716 .probe_timing = TIMING_ZERO,
5717 .block_erasers =
5718 {
5719 {
5720 .eraseblocks = { {4 * 1024, 2048} },
5721 .block_erase = spi_block_erase_20,
5722 }, {
5723 .eraseblocks = { {32 * 1024, 256} },
5724 .block_erase = spi_block_erase_52,
5725 }, {
5726 .eraseblocks = { {64 * 1024, 128} },
5727 .block_erase = spi_block_erase_d8,
5728 }, {
5729 .eraseblocks = { {8 * 1024 * 1024, 1} },
5730 .block_erase = spi_block_erase_60,
5731 }, {
5732 .eraseblocks = { {8 * 1024 * 1024, 1} },
5733 .block_erase = spi_block_erase_c7,
5734 }
5735 },
5736 .printlock = spi_prettyprint_status_register_bp4_srwd,
5737 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5738 .write = spi_chip_write_256,
5739 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5740 .voltage = {1695, 1950},
5741 },
5742
5743 {
5744 .vendor = "GigaDevice",
5745 .name = "GD25LQ128",
5746 .bustype = BUS_SPI,
5747 .manufacture_id = GIGADEVICE_ID,
5748 .model_id = GIGADEVICE_GD25LQ128,
5749 .total_size = 16384,
5750 .page_size = 256,
5751 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5753 .tested = TEST_UNTESTED,
5754 .probe = probe_spi_rdid,
5755 .probe_timing = TIMING_ZERO,
5756 .block_erasers =
5757 {
5758 {
5759 .eraseblocks = { {4 * 1024, 4096} },
5760 .block_erase = spi_block_erase_20,
5761 }, {
5762 .eraseblocks = { {32 * 1024, 512} },
5763 .block_erase = spi_block_erase_52,
5764 }, {
5765 .eraseblocks = { {64 * 1024, 256} },
5766 .block_erase = spi_block_erase_d8,
5767 }, {
5768 .eraseblocks = { {16 * 1024 * 1024, 1} },
5769 .block_erase = spi_block_erase_60,
5770 }, {
5771 .eraseblocks = { {16 * 1024 * 1024, 1} },
5772 .block_erase = spi_block_erase_c7,
5773 }
5774 },
5775 .printlock = spi_prettyprint_status_register_bp4_srwd,
5776 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5777 .write = spi_chip_write_256,
5778 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5779 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005780 },
5781
5782 {
5783 .vendor = "GigaDevice",
5784 .name = "GD25Q512",
5785 .bustype = BUS_SPI,
5786 .manufacture_id = GIGADEVICE_ID,
5787 .model_id = GIGADEVICE_GD25Q512,
5788 .total_size = 64,
5789 .page_size = 256,
5790 .feature_bits = FEATURE_WRSR_WREN,
5791 .tested = TEST_UNTESTED,
5792 .probe = probe_spi_rdid,
5793 .probe_timing = TIMING_ZERO,
5794 .block_erasers = {
5795 {
5796 .eraseblocks = { {4 * 1024, 16} },
5797 .block_erase = spi_block_erase_20,
5798 }, {
5799 .eraseblocks = { {32 * 1024, 2} },
5800 .block_erase = spi_block_erase_52,
5801 }, {
5802 .eraseblocks = { {64 * 1024, 1} },
5803 .block_erase = spi_block_erase_60,
5804 }, {
5805 .eraseblocks = { {64 * 1024, 1} },
5806 .block_erase = spi_block_erase_c7,
5807 }
5808 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005809 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005810 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5811 .write = spi_chip_write_256,
5812 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5813 .voltage = {2700, 3600},
5814 },
5815
5816 {
5817 .vendor = "GigaDevice",
5818 .name = "GD25Q10",
5819 .bustype = BUS_SPI,
5820 .manufacture_id = GIGADEVICE_ID,
5821 .model_id = GIGADEVICE_GD25Q10,
5822 .total_size = 128,
5823 .page_size = 256,
5824 .feature_bits = FEATURE_WRSR_WREN,
5825 .tested = TEST_UNTESTED,
5826 .probe = probe_spi_rdid,
5827 .probe_timing = TIMING_ZERO,
5828 .block_erasers = {
5829 {
5830 .eraseblocks = { {4 * 1024, 32} },
5831 .block_erase = spi_block_erase_20,
5832 }, {
5833 .eraseblocks = { {32 * 1024, 4} },
5834 .block_erase = spi_block_erase_52,
5835 }, {
5836 .eraseblocks = { {64 * 1024, 2} },
5837 .block_erase = spi_block_erase_d8,
5838 }, {
5839 .eraseblocks = { {128 * 1024, 1} },
5840 .block_erase = spi_block_erase_60,
5841 }, {
5842 .eraseblocks = { {128 * 1024, 1} },
5843 .block_erase = spi_block_erase_c7,
5844 }
5845 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005846 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005847 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5848 .write = spi_chip_write_256,
5849 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5850 .voltage = {2700, 3600},
5851 },
5852
5853 {
5854 .vendor = "GigaDevice",
5855 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005856 .bustype = BUS_SPI,
5857 .manufacture_id = GIGADEVICE_ID,
5858 .model_id = GIGADEVICE_GD25Q20,
5859 .total_size = 256,
5860 .page_size = 256,
5861 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005862 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005863 .probe = probe_spi_rdid,
5864 .probe_timing = TIMING_ZERO,
5865 .block_erasers =
5866 {
5867 {
5868 .eraseblocks = { {4 * 1024, 64} },
5869 .block_erase = spi_block_erase_20,
5870 }, {
5871 .eraseblocks = { {32 * 1024, 8} },
5872 .block_erase = spi_block_erase_52,
5873 }, {
5874 .eraseblocks = { {64 * 1024, 4} },
5875 .block_erase = spi_block_erase_d8,
5876 }, {
5877 .eraseblocks = { {256 * 1024, 1} },
5878 .block_erase = spi_block_erase_60,
5879 }, {
5880 .eraseblocks = { {256 * 1024, 1} },
5881 .block_erase = spi_block_erase_c7,
5882 }
5883 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005884 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005885 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005886 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005887 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005888 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005889 },
5890
5891 {
5892 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005893 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005894 .bustype = BUS_SPI,
5895 .manufacture_id = GIGADEVICE_ID,
5896 .model_id = GIGADEVICE_GD25Q40,
5897 .total_size = 512,
5898 .page_size = 256,
5899 .feature_bits = FEATURE_WRSR_WREN,
5900 .tested = TEST_UNTESTED,
5901 .probe = probe_spi_rdid,
5902 .probe_timing = TIMING_ZERO,
5903 .block_erasers =
5904 {
5905 {
5906 .eraseblocks = { {4 * 1024, 128} },
5907 .block_erase = spi_block_erase_20,
5908 }, {
5909 .eraseblocks = { {32 * 1024, 16} },
5910 .block_erase = spi_block_erase_52,
5911 }, {
5912 .eraseblocks = { {64 * 1024, 8} },
5913 .block_erase = spi_block_erase_d8,
5914 }, {
5915 .eraseblocks = { {512 * 1024, 1} },
5916 .block_erase = spi_block_erase_60,
5917 }, {
5918 .eraseblocks = { {512 * 1024, 1} },
5919 .block_erase = spi_block_erase_c7,
5920 }
5921 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005922 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005923 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005924 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005925 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005926 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005927 },
5928
5929 {
5930 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005931 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005932 .bustype = BUS_SPI,
5933 .manufacture_id = GIGADEVICE_ID,
5934 .model_id = GIGADEVICE_GD25Q80,
5935 .total_size = 1024,
5936 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005937 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5939 .tested = TEST_OK_PREW,
5940 .probe = probe_spi_rdid,
5941 .probe_timing = TIMING_ZERO,
5942 .block_erasers =
5943 {
5944 {
5945 .eraseblocks = { {4 * 1024, 256} },
5946 .block_erase = spi_block_erase_20,
5947 }, {
5948 .eraseblocks = { {32 * 1024, 32} },
5949 .block_erase = spi_block_erase_52,
5950 }, {
5951 .eraseblocks = { {64 * 1024, 16} },
5952 .block_erase = spi_block_erase_d8,
5953 }, {
5954 .eraseblocks = { {1024 * 1024, 1} },
5955 .block_erase = spi_block_erase_60,
5956 }, {
5957 .eraseblocks = { {1024 * 1024, 1} },
5958 .block_erase = spi_block_erase_c7,
5959 }
5960 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005961 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005962 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005963 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005964 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005965 .voltage = {2700, 3600},
5966 },
5967
5968 {
5969 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005970 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005971 .bustype = BUS_SPI,
5972 .manufacture_id = GIGADEVICE_ID,
5973 .model_id = GIGADEVICE_GD25Q16,
5974 .total_size = 2048,
5975 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005976 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005977 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00005978 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005979 .probe = probe_spi_rdid,
5980 .probe_timing = TIMING_ZERO,
5981 .block_erasers =
5982 {
5983 {
5984 .eraseblocks = { {4 * 1024, 512} },
5985 .block_erase = spi_block_erase_20,
5986 }, {
5987 .eraseblocks = { {32 * 1024, 64} },
5988 .block_erase = spi_block_erase_52,
5989 }, {
5990 .eraseblocks = { {64 * 1024, 32} },
5991 .block_erase = spi_block_erase_d8,
5992 }, {
5993 .eraseblocks = { {2 * 1024 * 1024, 1} },
5994 .block_erase = spi_block_erase_60,
5995 }, {
5996 .eraseblocks = { {2 * 1024 * 1024, 1} },
5997 .block_erase = spi_block_erase_c7,
5998 }
5999 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006000 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006001 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006002 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006003 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006004 .voltage = {2700, 3600},
6005 },
6006
6007 {
6008 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006009 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006010 .bustype = BUS_SPI,
6011 .manufacture_id = GIGADEVICE_ID,
6012 .model_id = GIGADEVICE_GD25Q32,
6013 .total_size = 4096,
6014 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006015 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006016 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006017 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006018 .probe = probe_spi_rdid,
6019 .probe_timing = TIMING_ZERO,
6020 .block_erasers =
6021 {
6022 {
6023 .eraseblocks = { {4 * 1024, 1024} },
6024 .block_erase = spi_block_erase_20,
6025 }, {
6026 .eraseblocks = { {32 * 1024, 128} },
6027 .block_erase = spi_block_erase_52,
6028 }, {
6029 .eraseblocks = { {64 * 1024, 64} },
6030 .block_erase = spi_block_erase_d8,
6031 }, {
6032 .eraseblocks = { {4 * 1024 * 1024, 1} },
6033 .block_erase = spi_block_erase_60,
6034 }, {
6035 .eraseblocks = { {4 * 1024 * 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) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006041 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006042 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006043 .voltage = {2700, 3600},
6044 },
6045
6046 {
6047 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006048 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006049 .bustype = BUS_SPI,
6050 .manufacture_id = GIGADEVICE_ID,
6051 .model_id = GIGADEVICE_GD25Q64,
6052 .total_size = 8192,
6053 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006054 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006055 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006056 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006057 .probe = probe_spi_rdid,
6058 .probe_timing = TIMING_ZERO,
6059 .block_erasers =
6060 {
6061 {
6062 .eraseblocks = { {4 * 1024, 2048} },
6063 .block_erase = spi_block_erase_20,
6064 }, {
6065 .eraseblocks = { {32 * 1024, 256} },
6066 .block_erase = spi_block_erase_52,
6067 }, {
6068 .eraseblocks = { {64 * 1024, 128} },
6069 .block_erase = spi_block_erase_d8,
6070 }, {
6071 .eraseblocks = { {8 * 1024 * 1024, 1} },
6072 .block_erase = spi_block_erase_60,
6073 }, {
6074 .eraseblocks = { {8 * 1024 * 1024, 1} },
6075 .block_erase = spi_block_erase_c7,
6076 }
6077 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006078 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006079 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006080 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006081 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006082 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006083 },
6084
6085 {
6086 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006087 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006088 .bustype = BUS_SPI,
6089 .manufacture_id = GIGADEVICE_ID,
6090 .model_id = GIGADEVICE_GD25Q128,
6091 .total_size = 16384,
6092 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006093 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6095 .tested = TEST_UNTESTED,
6096 .probe = probe_spi_rdid,
6097 .probe_timing = TIMING_ZERO,
6098 .block_erasers =
6099 {
6100 {
6101 .eraseblocks = { {4 * 1024, 4096} },
6102 .block_erase = spi_block_erase_20,
6103 }, {
6104 .eraseblocks = { {32 * 1024, 512} },
6105 .block_erase = spi_block_erase_52,
6106 }, {
6107 .eraseblocks = { {64 * 1024, 256} },
6108 .block_erase = spi_block_erase_d8,
6109 }, {
6110 .eraseblocks = { {16 * 1024 * 1024, 1} },
6111 .block_erase = spi_block_erase_60,
6112 }, {
6113 .eraseblocks = { {16 * 1024 * 1024, 1} },
6114 .block_erase = spi_block_erase_c7,
6115 }
6116 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006117 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006118 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6119 .write = spi_chip_write_256,
6120 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6121 .voltage = {2700, 3600},
6122 },
6123
6124 {
6125 .vendor = "GigaDevice",
6126 .name = "GD25T80",
6127 .bustype = BUS_SPI,
6128 .manufacture_id = GIGADEVICE_ID,
6129 .model_id = GIGADEVICE_GD25T80,
6130 .total_size = 1024,
6131 .page_size = 256,
6132 /* OTP: 256B total; enter 0x3A */
6133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6134 .tested = TEST_UNTESTED,
6135 .probe = probe_spi_rdid,
6136 .probe_timing = TIMING_ZERO,
6137 .block_erasers = {
6138 {
6139 .eraseblocks = { {4 * 1024, 256} },
6140 .block_erase = spi_block_erase_20,
6141 }, {
6142 .eraseblocks = { {64 * 1024, 16} },
6143 .block_erase = spi_block_erase_52,
6144 }, {
6145 .eraseblocks = { {64 * 1024, 16} },
6146 .block_erase = spi_block_erase_d8,
6147 }, {
6148 .eraseblocks = { {1024 * 1024, 1} },
6149 .block_erase = spi_block_erase_60,
6150 }, {
6151 .eraseblocks = { {1024 * 1024, 1} },
6152 .block_erase = spi_block_erase_c7,
6153 }
6154 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006155 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006156 .unlock = spi_disable_blockprotect,
6157 .write = spi_chip_write_256,
6158 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006159 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006160 },
6161
6162 {
David Borgc96a8bd2010-06-21 16:12:22 +00006163 .vendor = "Hyundai",
6164 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006165 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006166 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006167 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006168 .total_size = 256,
6169 .page_size = 256 * 1024,
6170 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006171 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006172 .probe = probe_jedec,
6173 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6174 .block_erasers =
6175 {
6176 {
6177 .eraseblocks = {
6178 {64 * 1024, 3},
6179 {32 * 1024, 1},
6180 {8 * 1024, 2},
6181 {16 * 1024, 1},
6182 },
6183 .block_erase = erase_sector_jedec,
6184 }, {
6185 .eraseblocks = { {256 * 1024, 1} },
6186 .block_erase = erase_chip_block_jedec,
6187 },
6188 },
6189 .write = write_jedec_1,
6190 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006191 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006192 },
6193
6194 {
6195 .vendor = "Hyundai",
6196 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006197 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006198 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006199 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006200 .total_size = 256,
6201 .page_size = 256 * 1024,
6202 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6203 .tested = TEST_UNTESTED,
6204 .probe = probe_jedec,
6205 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6206 .block_erasers =
6207 {
6208 {
6209 .eraseblocks = {
6210 {16 * 1024, 1},
6211 {8 * 1024, 2},
6212 {32 * 1024, 1},
6213 {64 * 1024, 3},
6214 },
6215 .block_erase = erase_sector_jedec,
6216 }, {
6217 .eraseblocks = { {256 * 1024, 1} },
6218 .block_erase = erase_chip_block_jedec,
6219 },
6220 },
6221 .write = write_jedec_1,
6222 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006223 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006224 },
6225
6226 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006227 .vendor = "Hyundai",
6228 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006229 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006230 .manufacture_id = HYUNDAI_ID,
6231 .model_id = HYUNDAI_HY29F040A,
6232 .total_size = 512,
6233 .page_size = 64 * 1024,
6234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6235 .tested = TEST_UNTESTED,
6236 .probe = probe_jedec,
6237 .probe_timing = TIMING_ZERO,
6238 .block_erasers =
6239 {
6240 {
6241 .eraseblocks = { {64 * 1024, 8} },
6242 .block_erase = erase_sector_jedec,
6243 }, {
6244 .eraseblocks = { {512 * 1024, 1} },
6245 .block_erase = erase_chip_block_jedec,
6246 },
6247 },
6248 .write = write_jedec_1,
6249 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006250 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006251 },
6252
6253 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006254 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006255 .name = "25F160S33B8",
6256 .bustype = BUS_SPI,
6257 .manufacture_id = INTEL_ID,
6258 .model_id = INTEL_25F160S33B8,
6259 .total_size = 2048,
6260 .page_size = 256,
6261 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6262 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6263 .tested = TEST_UNTESTED,
6264 .probe = probe_spi_rdid,
6265 .probe_timing = TIMING_ZERO,
6266 .block_erasers =
6267 {
6268 {
6269 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6270 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6271 * have no effect on the memory contents, but sets a flag in the SR.
6272 .eraseblocks = {
6273 {8 * 1024, 8},
6274 {64 * 1024, 31} // inaccessible
6275 },
6276 .block_erase = spi_block_erase_40,
6277 }, { */
6278 .eraseblocks = { {64 * 1024, 32} },
6279 .block_erase = spi_block_erase_d8,
6280 }, {
6281 .eraseblocks = { {2 * 1024 * 1024, 1} },
6282 .block_erase = spi_block_erase_c7,
6283 }
6284 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006285 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6286 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006287 .write = spi_chip_write_256,
6288 .read = spi_chip_read, /* also fast read 0x0B */
6289 .voltage = {2700, 3600},
6290 },
6291
6292 {
6293 .vendor = "Intel",
6294 .name = "25F160S33T8",
6295 .bustype = BUS_SPI,
6296 .manufacture_id = INTEL_ID,
6297 .model_id = INTEL_25F160S33T8,
6298 .total_size = 2048,
6299 .page_size = 256,
6300 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6302 .tested = TEST_UNTESTED,
6303 .probe = probe_spi_rdid,
6304 .probe_timing = TIMING_ZERO,
6305 .block_erasers =
6306 {
6307 {
6308 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6309 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6310 * have no effect on the memory contents, but sets a flag in the SR.
6311 .eraseblocks = {
6312 {64 * 1024, 31}, // inaccessible
6313 {8 * 1024, 8}
6314 },
6315 .block_erase = spi_block_erase_40,
6316 }, { */
6317 .eraseblocks = { {64 * 1024, 32} },
6318 .block_erase = spi_block_erase_d8,
6319 }, {
6320 .eraseblocks = { {2 * 1024 * 1024, 1} },
6321 .block_erase = spi_block_erase_c7,
6322 }
6323 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006324 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6325 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006326 .write = spi_chip_write_256,
6327 .read = spi_chip_read, /* also fast read 0x0B */
6328 .voltage = {2700, 3600},
6329 },
6330
6331 {
6332 .vendor = "Intel",
6333 .name = "25F320S33B8",
6334 .bustype = BUS_SPI,
6335 .manufacture_id = INTEL_ID,
6336 .model_id = INTEL_25F320S33B8,
6337 .total_size = 4096,
6338 .page_size = 256,
6339 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6341 .tested = TEST_UNTESTED,
6342 .probe = probe_spi_rdid,
6343 .probe_timing = TIMING_ZERO,
6344 .block_erasers =
6345 {
6346 {
6347 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6348 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6349 * have no effect on the memory contents, but sets a flag in the SR.
6350 .eraseblocks = {
6351 {8 * 1024, 8},
6352 {64 * 1024, 63} // inaccessible
6353 },
6354 .block_erase = spi_block_erase_40,
6355 }, { */
6356 .eraseblocks = { {64 * 1024, 64} },
6357 .block_erase = spi_block_erase_d8,
6358 }, {
6359 .eraseblocks = { {4 * 1024 * 1024, 1} },
6360 .block_erase = spi_block_erase_c7,
6361 }
6362 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006363 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6364 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006365 .write = spi_chip_write_256,
6366 .read = spi_chip_read, /* also fast read 0x0B */
6367 .voltage = {2700, 3600},
6368 },
6369
6370 {
6371 .vendor = "Intel",
6372 .name = "25F320S33T8",
6373 .bustype = BUS_SPI,
6374 .manufacture_id = INTEL_ID,
6375 .model_id = INTEL_25F320S33T8,
6376 .total_size = 4096,
6377 .page_size = 256,
6378 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6380 .tested = TEST_UNTESTED,
6381 .probe = probe_spi_rdid,
6382 .probe_timing = TIMING_ZERO,
6383 .block_erasers =
6384 {
6385 {
6386 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6387 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6388 * have no effect on the memory contents, but sets a flag in the SR.
6389 .eraseblocks = {
6390 {64 * 1024, 63}, // inaccessible
6391 {8 * 1024, 8}
6392 },
6393 .block_erase = spi_block_erase_40,
6394 }, { */
6395 .eraseblocks = { {64 * 1024, 64} },
6396 .block_erase = spi_block_erase_d8,
6397 }, {
6398 .eraseblocks = { {4 * 1024 * 1024, 1} },
6399 .block_erase = spi_block_erase_c7,
6400 }
6401 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006402 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6403 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006404 .write = spi_chip_write_256,
6405 .read = spi_chip_read, /* also fast read 0x0B */
6406 .voltage = {2700, 3600},
6407 },
6408
6409 {
6410 .vendor = "Intel",
6411 .name = "25F640S33B8",
6412 .bustype = BUS_SPI,
6413 .manufacture_id = INTEL_ID,
6414 .model_id = INTEL_25F640S33B8,
6415 .total_size = 8192,
6416 .page_size = 256,
6417 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6418 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6419 .tested = TEST_UNTESTED,
6420 .probe = probe_spi_rdid,
6421 .probe_timing = TIMING_ZERO,
6422 .block_erasers =
6423 {
6424 {
6425 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6426 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6427 * have no effect on the memory contents, but sets a flag in the SR.
6428 .eraseblocks = {
6429 {8 * 1024, 8},
6430 {64 * 1024, 127} // inaccessible
6431 },
6432 .block_erase = spi_block_erase_40,
6433 }, { */
6434 .eraseblocks = { {64 * 1024, 128} },
6435 .block_erase = spi_block_erase_d8,
6436 }, {
6437 .eraseblocks = { {8 * 1024 * 1024, 1} },
6438 .block_erase = spi_block_erase_c7,
6439 }
6440 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006441 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6442 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006443 .write = spi_chip_write_256,
6444 .read = spi_chip_read, /* also fast read 0x0B */
6445 .voltage = {2700, 3600},
6446 },
6447
6448 {
6449 .vendor = "Intel",
6450 .name = "25F640S33T8",
6451 .bustype = BUS_SPI,
6452 .manufacture_id = INTEL_ID,
6453 .model_id = INTEL_25F640S33T8,
6454 .total_size = 8192,
6455 .page_size = 256,
6456 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6457 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6458 .tested = TEST_UNTESTED,
6459 .probe = probe_spi_rdid,
6460 .probe_timing = TIMING_ZERO,
6461 .block_erasers =
6462 {
6463 {
6464 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6465 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6466 * have no effect on the memory contents, but sets a flag in the SR.
6467 .eraseblocks = {
6468 {64 * 1024, 127}, // inaccessible
6469 {8 * 1024, 8}
6470 },
6471 .block_erase = spi_block_erase_40,
6472 }, { */
6473 .eraseblocks = { {64 * 1024, 128} },
6474 .block_erase = spi_block_erase_d8,
6475 }, {
6476 .eraseblocks = { {8 * 1024 * 1024, 1} },
6477 .block_erase = spi_block_erase_c7,
6478 }
6479 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006480 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6481 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006482 .write = spi_chip_write_256,
6483 .read = spi_chip_read, /* also fast read 0x0B */
6484 .voltage = {2700, 3600},
6485 },
6486
6487 {
6488 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006489 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006490 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006491 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006492 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006493 .total_size = 128,
6494 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006495 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006496 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006497 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006498 .block_erasers =
6499 {
6500 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006501 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006502 {8 * 1024, 1},
6503 {4 * 1024, 2},
6504 {112 * 1024, 1},
6505 },
Sean Nelson28accc22010-03-19 18:47:06 +00006506 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006507 },
6508 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006509 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006511 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006512 },
6513
6514 {
6515 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006516 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006517 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006518 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006519 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006520 .total_size = 128,
6521 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006522 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006523 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006524 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006525 .block_erasers =
6526 {
6527 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006528 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006529 {112 * 1024, 1},
6530 {4 * 1024, 2},
6531 {8 * 1024, 1},
6532 },
Sean Nelson28accc22010-03-19 18:47:06 +00006533 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006534 },
6535 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006536 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006538 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006539 },
6540
6541 {
6542 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006543 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006544 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006545 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006546 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006547 .total_size = 256,
6548 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006549 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006550 .probe = probe_82802ab,
6551 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6552 .block_erasers =
6553 {
6554 {
6555 .eraseblocks = {
6556 {128 * 1024, 1},
6557 {96 * 1024, 1},
6558 {8 * 1024, 2},
6559 {16 * 1024, 1},
6560 },
6561 .block_erase = erase_block_82802ab,
6562 },
6563 },
6564 .write = write_82802ab,
6565 .read = read_memmapped,
6566 },
6567
6568 {
6569 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006570 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006571 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006572 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006573 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006574 .total_size = 512,
6575 .page_size = 256,
6576 .tested = TEST_UNTESTED,
6577 .probe = probe_82802ab,
6578 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006579 .block_erasers =
6580 {
6581 {
6582 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006583 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006584 },
6585 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006586 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006587 .write = write_82802ab,
6588 .read = read_memmapped,
6589 },
6590
6591 {
6592 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006593 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006594 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006595 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006596 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006597 .total_size = 512,
6598 .page_size = 128 * 1024, /* maximal block size */
6599 .tested = TEST_UNTESTED,
6600 .probe = probe_82802ab,
6601 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6602 .block_erasers =
6603 {
6604 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006605 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006606 {16 * 1024, 1},
6607 {8 * 1024, 2},
6608 {96 * 1024, 1},
6609 {128 * 1024, 3},
6610 },
6611 .block_erase = erase_block_82802ab,
6612 },
6613 },
6614 .write = write_82802ab,
6615 .read = read_memmapped,
6616 },
6617
6618 {
6619 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006620 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006621 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006622 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006623 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006624 .total_size = 512,
6625 .page_size = 128 * 1024, /* maximal block size */
6626 .tested = TEST_UNTESTED,
6627 .probe = probe_82802ab,
6628 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6629 .block_erasers =
6630 {
6631 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006632 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006633 {128 * 1024, 3},
6634 {96 * 1024, 1},
6635 {8 * 1024, 2},
6636 {16 * 1024, 1},
6637 },
6638 .block_erase = erase_block_82802ab,
6639 },
6640 },
6641 .write = write_82802ab,
6642 .read = read_memmapped,
6643 },
6644
6645 {
6646 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006647 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006648 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006649 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006650 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006651 .total_size = 512,
6652 .page_size = 128 * 1024, /* maximal block size */
6653 .feature_bits = FEATURE_ADDR_SHIFTED,
6654 .tested = TEST_UNTESTED,
6655 .probe = probe_82802ab,
6656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6657 .block_erasers =
6658 {
6659 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006660 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006661 {16 * 1024, 1},
6662 {8 * 1024, 2},
6663 {96 * 1024, 1},
6664 {128 * 1024, 3},
6665 },
6666 .block_erase = erase_block_82802ab,
6667 },
6668 },
6669 .write = write_82802ab,
6670 .read = read_memmapped,
6671 },
6672
6673 {
6674 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006675 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006676 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006677 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006678 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006679 .total_size = 512,
6680 .page_size = 128 * 1024, /* maximal block size */
6681 .feature_bits = FEATURE_ADDR_SHIFTED,
6682 .tested = TEST_UNTESTED,
6683 .probe = probe_82802ab,
6684 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6685 .block_erasers =
6686 {
6687 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006688 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006689 {128 * 1024, 3},
6690 {96 * 1024, 1},
6691 {8 * 1024, 2},
6692 {16 * 1024, 1},
6693 },
6694 .block_erase = erase_block_82802ab,
6695 },
6696 },
6697 .write = write_82802ab,
6698 .read = read_memmapped,
6699 },
6700
6701 {
6702 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006703 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006704 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006705 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006706 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006707 .total_size = 512,
6708 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006709 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006710 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006711 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006712 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006713 .block_erasers =
6714 {
6715 {
6716 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006717 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006718 },
6719 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006720 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006721 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006723 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006724 },
6725
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006726 {
6727 .vendor = "Intel",
6728 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006729 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006730 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006731 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006732 .total_size = 1024,
6733 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006734 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006735 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006736 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006737 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006738 .block_erasers =
6739 {
6740 {
6741 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006742 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006743 },
6744 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006745 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006746 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006747 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006748 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006749 },
6750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006751 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006752 .vendor = "ISSI",
6753 .name = "IS29GL064B",
6754 .bustype = BUS_PARALLEL,
6755 .manufacture_id = ISSI_ID,
6756 .model_id = ISSI_PMC_IS29GL064B,
6757 .total_size = 8192,
6758 .page_size = 128 * 1024, /* actual page size is 16 */
6759 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6760 .tested = TEST_UNTESTED,
6761 .probe = probe_jedec_29gl,
6762 .probe_timing = TIMING_ZERO,
6763 .block_erasers =
6764 {
6765 {
6766 .eraseblocks = {
6767 {8 * 1024, 8},
6768 {64 * 1024, 127},
6769 },
6770 .block_erase = erase_sector_jedec,
6771 }, {
6772 .eraseblocks = { {8 * 1024 * 1024, 1} },
6773 .block_erase = erase_chip_block_jedec,
6774 },
6775 },
6776 .write = write_jedec_1,
6777 .read = read_memmapped,
6778 .voltage = {2700, 3600},
6779 },
6780
6781 {
6782 .vendor = "ISSI",
6783 .name = "IS29GL064T",
6784 .bustype = BUS_PARALLEL,
6785 .manufacture_id = ISSI_ID,
6786 .model_id = ISSI_PMC_IS29GL064T,
6787 .total_size = 8192,
6788 .page_size = 128 * 1024, /* actual page size is 16 */
6789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6790 .tested = TEST_UNTESTED,
6791 .probe = probe_jedec_29gl,
6792 .probe_timing = TIMING_ZERO,
6793 .block_erasers =
6794 {
6795 {
6796 .eraseblocks = {
6797 {64 * 1024, 127},
6798 {8 * 1024, 8},
6799 },
6800 .block_erase = erase_sector_jedec,
6801 }, {
6802 .eraseblocks = { {8 * 1024 * 1024, 1} },
6803 .block_erase = erase_chip_block_jedec,
6804 },
6805 },
6806 .write = write_jedec_1,
6807 .read = read_memmapped,
6808 .voltage = {2700, 3600},
6809 },
6810
6811 {
6812 .vendor = "ISSI",
6813 .name = "IS29GL064H/L",
6814 .bustype = BUS_PARALLEL,
6815 .manufacture_id = ISSI_ID,
6816 .model_id = ISSI_PMC_IS29GL064HL,
6817 .total_size = 8192,
6818 .page_size = 128 * 1024, /* actual page size is 16 */
6819 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6820 .tested = TEST_UNTESTED,
6821 .probe = probe_jedec_29gl,
6822 .probe_timing = TIMING_ZERO,
6823 .block_erasers =
6824 {
6825 {
6826 .eraseblocks = { {64 * 1024, 128} },
6827 .block_erase = erase_sector_jedec,
6828 }, {
6829 .eraseblocks = { {8 * 1024 * 1024, 1} },
6830 .block_erase = erase_chip_block_jedec,
6831 },
6832 },
6833 .write = write_jedec_1,
6834 .read = read_memmapped,
6835 .voltage = {2700, 3600},
6836 },
6837
6838 {
6839 .vendor = "ISSI",
6840 .name = "IS29GL128H/L",
6841 .bustype = BUS_PARALLEL,
6842 .manufacture_id = ISSI_ID,
6843 .model_id = ISSI_PMC_IS29GL128HL,
6844 .total_size = 16384,
6845 .page_size = 128 * 1024, /* actual page size is 16 */
6846 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6847 .tested = TEST_UNTESTED,
6848 .probe = probe_jedec_29gl,
6849 .probe_timing = TIMING_ZERO,
6850 .block_erasers =
6851 {
6852 {
6853 .eraseblocks = { {128 * 1024, 128} },
6854 .block_erase = erase_sector_jedec,
6855 }, {
6856 .eraseblocks = { {16 * 1024 * 1024, 1} },
6857 .block_erase = erase_chip_block_jedec,
6858 },
6859 },
6860 .write = write_jedec_1,
6861 .read = read_memmapped,
6862 .voltage = {2700, 3600},
6863 },
6864
6865 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006866 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006867 .name = "MX23L1654",
6868 .bustype = BUS_SPI,
6869 .manufacture_id = MACRONIX_ID,
6870 .model_id = MACRONIX_MX23L1654,
6871 .total_size = 2048,
6872 .page_size = 256,
6873 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6874 .probe = probe_spi_rdid,
6875 .probe_timing = TIMING_ZERO,
6876 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
6877 .read = spi_chip_read, /* Fast read (0x0B) supported */
6878 .voltage = {3000, 3600},
6879 },
6880
6881 {
6882 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006883 .name = "MX23L3254",
6884 .bustype = BUS_SPI,
6885 .manufacture_id = MACRONIX_ID,
6886 .model_id = MACRONIX_MX23L3254,
6887 .total_size = 4096,
6888 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006889 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006890 .probe = probe_spi_rdid,
6891 .probe_timing = TIMING_ZERO,
6892 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6893 .read = spi_chip_read, /* Fast read (0x0B) supported */
6894 .voltage = {3000, 3600},
6895 },
6896
6897 {
6898 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006899 .name = "MX23L6454",
6900 .bustype = BUS_SPI,
6901 .manufacture_id = MACRONIX_ID,
6902 .model_id = MACRONIX_MX23L6454,
6903 .total_size = 8192,
6904 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006905 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00006906 .probe = probe_spi_rdid,
6907 .probe_timing = TIMING_ZERO,
6908 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
6909 .read = spi_chip_read, /* Fast read (0x0B) supported */
6910 .voltage = {3000, 3600},
6911 },
6912
6913 {
6914 .vendor = "Macronix",
6915 .name = "MX23L12854",
6916 .bustype = BUS_SPI,
6917 .manufacture_id = MACRONIX_ID,
6918 .model_id = MACRONIX_MX23L12854,
6919 .total_size = 16384,
6920 .page_size = 256,
6921 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6922 .probe = probe_spi_rdid,
6923 .probe_timing = TIMING_ZERO,
6924 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
6925 .read = spi_chip_read, /* Fast read (0x0B) supported */
6926 .voltage = {3000, 3600},
6927 },
6928
6929 {
6930 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006931 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006932 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006933 .manufacture_id = MACRONIX_ID,
6934 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006935 .total_size = 64,
6936 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006937 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006938 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006939 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006940 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006941 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006942 .block_erasers =
6943 {
6944 {
6945 .eraseblocks = { {4 * 1024, 16} },
6946 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006947 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006948 .eraseblocks = { {64 * 1024, 1} },
6949 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006950 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006951 .eraseblocks = { {64 * 1024, 1} },
6952 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006953 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006954 .eraseblocks = { {64 * 1024, 1} },
6955 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006956 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006957 .eraseblocks = { {64 * 1024, 1} },
6958 .block_erase = spi_block_erase_c7,
6959 },
6960 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006961 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006962 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006963 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006964 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6965 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006966 },
6967
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006968 {
6969 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006970 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006971 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006972 .manufacture_id = MACRONIX_ID,
6973 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006974 .total_size = 128,
6975 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006976 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006977 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006978 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006980 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006981 .block_erasers =
6982 {
6983 {
6984 .eraseblocks = { {4 * 1024, 32} },
6985 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006986 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006987 .eraseblocks = { {64 * 1024, 2} },
6988 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006989 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006990 .eraseblocks = { {128 * 1024, 1} },
6991 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006992 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006993 .eraseblocks = { {128 * 1024, 1} },
6994 .block_erase = spi_block_erase_c7,
6995 },
6996 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006997 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006998 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006999 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007000 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007001 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007002 },
7003
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007004 {
7005 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007006 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007007 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007008 .manufacture_id = MACRONIX_ID,
7009 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007010 .total_size = 256,
7011 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007012 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007013 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007014 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007015 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007016 .block_erasers =
7017 {
7018 {
7019 .eraseblocks = { {4 * 1024, 64} },
7020 .block_erase = spi_block_erase_20,
7021 }, {
7022 .eraseblocks = { {64 * 1024, 4} },
7023 .block_erase = spi_block_erase_52,
7024 }, {
7025 .eraseblocks = { {64 * 1024, 4} },
7026 .block_erase = spi_block_erase_d8,
7027 }, {
7028 .eraseblocks = { {256 * 1024, 1} },
7029 .block_erase = spi_block_erase_60,
7030 }, {
7031 .eraseblocks = { {256 * 1024, 1} },
7032 .block_erase = spi_block_erase_c7,
7033 },
7034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007035 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007037 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007038 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007040 },
7041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007042 {
7043 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007044 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007045 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007046 .manufacture_id = MACRONIX_ID,
7047 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007048 .total_size = 512,
7049 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007050 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007051 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007052 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007053 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007054 .block_erasers =
7055 {
7056 {
7057 .eraseblocks = { {4 * 1024, 128} },
7058 .block_erase = spi_block_erase_20,
7059 }, {
7060 .eraseblocks = { {64 * 1024, 8} },
7061 .block_erase = spi_block_erase_52,
7062 }, {
7063 .eraseblocks = { {64 * 1024, 8} },
7064 .block_erase = spi_block_erase_d8,
7065 }, {
7066 .eraseblocks = { {512 * 1024, 1} },
7067 .block_erase = spi_block_erase_60,
7068 }, {
7069 .eraseblocks = { {512 * 1024, 1} },
7070 .block_erase = spi_block_erase_c7,
7071 },
7072 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007073 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007075 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007076 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007077 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007078 },
7079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007080 {
7081 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007082 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007083 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007084 .manufacture_id = MACRONIX_ID,
7085 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007086 .total_size = 1024,
7087 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007088 /* MX25L8006E, MX25L8008E support SFDP */
7089 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007090 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007091 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007093 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007094 .block_erasers =
7095 {
7096 {
7097 .eraseblocks = { {4 * 1024, 256} },
7098 .block_erase = spi_block_erase_20,
7099 }, {
7100 .eraseblocks = { {64 * 1024, 16} },
7101 .block_erase = spi_block_erase_52,
7102 }, {
7103 .eraseblocks = { {64 * 1024, 16} },
7104 .block_erase = spi_block_erase_d8,
7105 }, {
7106 .eraseblocks = { {1024 * 1024, 1} },
7107 .block_erase = spi_block_erase_60,
7108 }, {
7109 .eraseblocks = { {1024 * 1024, 1} },
7110 .block_erase = spi_block_erase_c7,
7111 },
7112 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007113 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007115 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007116 .read = spi_chip_read, /* Fast read (0x0B) supported */
7117 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007118 },
7119
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007120 {
7121 .vendor = "Macronix",
7122 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007123 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007124 .manufacture_id = MACRONIX_ID,
7125 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007126 .total_size = 2048,
7127 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007128 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007129 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007130 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007131 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007132 .block_erasers =
7133 {
7134 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007135 .eraseblocks = { {64 * 1024, 32} },
7136 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007137 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007138 .eraseblocks = { {64 * 1024, 32} },
7139 .block_erase = spi_block_erase_d8,
7140 }, {
7141 .eraseblocks = { {2 * 1024 * 1024, 1} },
7142 .block_erase = spi_block_erase_60,
7143 }, {
7144 .eraseblocks = { {2 * 1024 * 1024, 1} },
7145 .block_erase = spi_block_erase_c7,
7146 },
7147 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007148 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007149 .unlock = spi_disable_blockprotect,
7150 .write = spi_chip_write_256,
7151 .read = spi_chip_read, /* Fast read (0x0B) supported */
7152 .voltage = {2700, 3600},
7153 },
7154
7155 {
7156 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007157 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007158 .bustype = BUS_SPI,
7159 .manufacture_id = MACRONIX_ID,
7160 .model_id = MACRONIX_MX25L1605,
7161 .total_size = 2048,
7162 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007163 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007164 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7165 .tested = TEST_OK_PREW,
7166 .probe = probe_spi_rdid,
7167 .probe_timing = TIMING_ZERO,
7168 .block_erasers =
7169 {
7170 {
7171 .eraseblocks = { {4 * 1024, 512} },
7172 .block_erase = spi_block_erase_20,
7173 }, {
7174 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007175 .block_erase = spi_block_erase_52,
7176 }, {
7177 .eraseblocks = { {64 * 1024, 32} },
7178 .block_erase = spi_block_erase_d8,
7179 }, {
7180 .eraseblocks = { {2 * 1024 * 1024, 1} },
7181 .block_erase = spi_block_erase_60,
7182 }, {
7183 .eraseblocks = { {2 * 1024 * 1024, 1} },
7184 .block_erase = spi_block_erase_c7,
7185 },
7186 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007187 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007188 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007189 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007190 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007191 .voltage = {2700, 3600},
7192 },
7193
7194 {
7195 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007196 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007197 .bustype = BUS_SPI,
7198 .manufacture_id = MACRONIX_ID,
7199 .model_id = MACRONIX_MX25L1605,
7200 .total_size = 2048,
7201 .page_size = 256,
7202 .feature_bits = FEATURE_WRSR_WREN,
7203 .tested = TEST_OK_PREW,
7204 .probe = probe_spi_rdid,
7205 .probe_timing = TIMING_ZERO,
7206 .block_erasers =
7207 {
7208 {
7209 .eraseblocks = { {4 * 1024, 512} },
7210 .block_erase = spi_block_erase_20,
7211 }, {
7212 .eraseblocks = { {64 * 1024, 32} },
7213 .block_erase = spi_block_erase_d8,
7214 }, {
7215 .eraseblocks = { {2 * 1024 * 1024, 1} },
7216 .block_erase = spi_block_erase_60,
7217 }, {
7218 .eraseblocks = { {2 * 1024 * 1024, 1} },
7219 .block_erase = spi_block_erase_c7,
7220 },
7221 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007222 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007223 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007224 .write = spi_chip_write_256,
7225 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007226 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007227 },
7228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007229 {
7230 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007231 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007232 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007233 .manufacture_id = MACRONIX_ID,
7234 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007235 .total_size = 2048,
7236 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007237 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7238 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007239 .tested = TEST_UNTESTED,
7240 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007241 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007242 .block_erasers =
7243 {
7244 {
7245 .eraseblocks = { {4 * 1024, 512} },
7246 .block_erase = spi_block_erase_20,
7247 }, {
7248 .eraseblocks = { {64 * 1024, 32} },
7249 .block_erase = spi_block_erase_d8,
7250 }, {
7251 .eraseblocks = { {2 * 1024 * 1024, 1} },
7252 .block_erase = spi_block_erase_60,
7253 }, {
7254 .eraseblocks = { {2 * 1024 * 1024, 1} },
7255 .block_erase = spi_block_erase_c7,
7256 }
7257 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007258 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007259 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007260 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007261 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007262 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007263 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007264
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007265 {
7266 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007267 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007268 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007269 .manufacture_id = MACRONIX_ID,
7270 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007271 .total_size = 2048,
7272 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007273 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7274 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007275 .tested = TEST_UNTESTED,
7276 .probe = probe_spi_rdid,
7277 .probe_timing = TIMING_ZERO,
7278 .block_erasers =
7279 {
7280 {
7281 .eraseblocks = { {4 * 1024, 512} },
7282 .block_erase = spi_block_erase_20,
7283 }, {
7284 .eraseblocks = { {64 * 1024, 32} },
7285 .block_erase = spi_block_erase_d8,
7286 }, {
7287 .eraseblocks = { {2 * 1024 * 1024, 1} },
7288 .block_erase = spi_block_erase_60,
7289 }, {
7290 .eraseblocks = { {2 * 1024 * 1024, 1} },
7291 .block_erase = spi_block_erase_c7,
7292 }
7293 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007294 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007295 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007296 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007297 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007298 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007299 },
7300
7301 {
7302 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007303 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007304 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007305 .manufacture_id = MACRONIX_ID,
7306 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007307 .total_size = 4096,
7308 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007309 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007310 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007311 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007312 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007313 .block_erasers =
7314 {
7315 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007316 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007317 .block_erase = spi_block_erase_20,
7318 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007319 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007320 .block_erase = spi_block_erase_d8,
7321 }, {
7322 .eraseblocks = { {4 * 1024 * 1024, 1} },
7323 .block_erase = spi_block_erase_60,
7324 }, {
7325 .eraseblocks = { {4 * 1024 * 1024, 1} },
7326 .block_erase = spi_block_erase_c7,
7327 },
7328 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007329 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007330 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007331 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007332 .read = spi_chip_read, /* Fast read (0x0B) supported */
7333 .voltage = {2700, 3600},
7334 },
7335
7336 {
7337 .vendor = "Macronix",
7338 .name = "MX25L3205D/MX25L3208D",
7339 .bustype = BUS_SPI,
7340 .manufacture_id = MACRONIX_ID,
7341 .model_id = MACRONIX_MX25L3205,
7342 .total_size = 4096,
7343 .page_size = 256,
7344 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7346 .tested = TEST_OK_PREW,
7347 .probe = probe_spi_rdid,
7348 .probe_timing = TIMING_ZERO,
7349 .block_erasers =
7350 {
7351 {
7352 .eraseblocks = { {4 * 1024, 1024} },
7353 .block_erase = spi_block_erase_20,
7354 }, {
7355 .eraseblocks = { {64 * 1024, 64} },
7356 .block_erase = spi_block_erase_d8,
7357 }, {
7358 .eraseblocks = { {4 * 1024 * 1024, 1} },
7359 .block_erase = spi_block_erase_60,
7360 }, {
7361 .eraseblocks = { {4 * 1024 * 1024, 1} },
7362 .block_erase = spi_block_erase_c7,
7363 },
7364 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007365 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007366 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007367 .write = spi_chip_write_256,
7368 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7369 .voltage = {2700, 3600},
7370 },
7371
7372 {
7373 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007374 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007375 .bustype = BUS_SPI,
7376 .manufacture_id = MACRONIX_ID,
7377 .model_id = MACRONIX_MX25L3205,
7378 .total_size = 4096,
7379 .page_size = 256,
7380 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7381 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7382 .tested = TEST_OK_PREW,
7383 .probe = probe_spi_rdid,
7384 .probe_timing = TIMING_ZERO,
7385 .block_erasers =
7386 {
7387 {
7388 .eraseblocks = { {4 * 1024, 1024} },
7389 .block_erase = spi_block_erase_20,
7390 }, {
7391 .eraseblocks = { {64 * 1024, 64} },
7392 .block_erase = spi_block_erase_d8,
7393 }, {
7394 .eraseblocks = { {64 * 1024, 64} },
7395 .block_erase = spi_block_erase_52,
7396 }, {
7397 .eraseblocks = { {4 * 1024 * 1024, 1} },
7398 .block_erase = spi_block_erase_60,
7399 }, {
7400 .eraseblocks = { {4 * 1024 * 1024, 1} },
7401 .block_erase = spi_block_erase_c7,
7402 },
7403 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007404 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007405 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007406 .write = spi_chip_write_256,
7407 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007408 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007409 },
7410
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007411 {
7412 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007413 .name = "MX25L3273E",
7414 .bustype = BUS_SPI,
7415 .manufacture_id = MACRONIX_ID,
7416 .model_id = MACRONIX_MX25L3205,
7417 .total_size = 4096,
7418 .page_size = 256,
7419 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007421 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007422 .probe = probe_spi_rdid,
7423 .probe_timing = TIMING_ZERO,
7424 .block_erasers =
7425 {
7426 {
7427 .eraseblocks = { {4 * 1024, 1024} },
7428 .block_erase = spi_block_erase_20,
7429 }, {
7430 .eraseblocks = { {32 * 1024, 128} },
7431 .block_erase = spi_block_erase_52,
7432 }, {
7433 .eraseblocks = { {64 * 1024, 64} },
7434 .block_erase = spi_block_erase_d8,
7435 }, {
7436 .eraseblocks = { {4 * 1024 * 1024, 1} },
7437 .block_erase = spi_block_erase_60,
7438 }, {
7439 .eraseblocks = { {4 * 1024 * 1024, 1} },
7440 .block_erase = spi_block_erase_c7,
7441 },
7442 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007443 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007444 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007445 .write = spi_chip_write_256,
7446 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7447 .voltage = {2700, 3600},
7448 },
7449
7450 {
7451 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007452 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007453 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007454 .manufacture_id = MACRONIX_ID,
7455 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007456 .total_size = 4096,
7457 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007458 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007460 .tested = TEST_UNTESTED,
7461 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007462 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007463 .block_erasers =
7464 {
7465 {
7466 .eraseblocks = { {4 * 1024, 1024} },
7467 .block_erase = spi_block_erase_20,
7468 }, {
7469 .eraseblocks = { {64 * 1024, 64} },
7470 .block_erase = spi_block_erase_d8,
7471 }, {
7472 .eraseblocks = { {4 * 1024 * 1024, 1} },
7473 .block_erase = spi_block_erase_60,
7474 }, {
7475 .eraseblocks = { {4 * 1024 * 1024, 1} },
7476 .block_erase = spi_block_erase_c7,
7477 }
7478 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007479 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007480 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007481 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007482 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007483 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007484 },
7485
7486 {
7487 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007488 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007489 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007490 .manufacture_id = MACRONIX_ID,
7491 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007492 .total_size = 8192,
7493 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007494 /* Has an additional 512B EEPROM sector */
7495 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007496 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007497 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007498 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007499 .block_erasers =
7500 {
7501 {
7502 .eraseblocks = { {64 * 1024, 128} },
7503 .block_erase = spi_block_erase_20,
7504 }, {
7505 .eraseblocks = { {64 * 1024, 128} },
7506 .block_erase = spi_block_erase_d8,
7507 }, {
7508 .eraseblocks = { {8 * 1024 * 1024, 1} },
7509 .block_erase = spi_block_erase_60,
7510 }, {
7511 .eraseblocks = { {8 * 1024 * 1024, 1} },
7512 .block_erase = spi_block_erase_c7,
7513 }
7514 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007515 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007516 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007517 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007518 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007519 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007520 },
7521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007522 {
7523 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007524 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00007525 .bustype = BUS_SPI,
7526 .manufacture_id = MACRONIX_ID,
7527 .model_id = MACRONIX_MX25L6405,
7528 .total_size = 8192,
7529 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007530 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7532 .tested = TEST_OK_PREW,
7533 .probe = probe_spi_rdid,
7534 .probe_timing = TIMING_ZERO,
7535 .block_erasers =
7536 {
7537 {
7538 .eraseblocks = { {4 * 1024, 2048} },
7539 .block_erase = spi_block_erase_20,
7540 }, {
7541 .eraseblocks = { {64 * 1024, 128} },
7542 .block_erase = spi_block_erase_d8,
7543 }, {
7544 .eraseblocks = { {8 * 1024 * 1024, 1} },
7545 .block_erase = spi_block_erase_60,
7546 }, {
7547 .eraseblocks = { {8 * 1024 * 1024, 1} },
7548 .block_erase = spi_block_erase_c7,
7549 }
7550 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007551 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007552 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007553 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007554 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00007555 .voltage = {2700, 3600},
7556 },
7557
7558 {
7559 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007560 .name = "MX25L6406E/MX25L6408E",
7561 .bustype = BUS_SPI,
7562 .manufacture_id = MACRONIX_ID,
7563 .model_id = MACRONIX_MX25L6405,
7564 .total_size = 8192,
7565 .page_size = 256,
7566 /* MX25L6406E supports SFDP */
7567 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
7568 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7569 .tested = TEST_OK_PREW,
7570 .probe = probe_spi_rdid,
7571 .probe_timing = TIMING_ZERO,
7572 .block_erasers =
7573 {
7574 {
7575 .eraseblocks = { {4 * 1024, 2048} },
7576 .block_erase = spi_block_erase_20,
7577 }, {
7578 .eraseblocks = { {64 * 1024, 128} },
7579 .block_erase = spi_block_erase_52,
7580 }, {
7581 .eraseblocks = { {64 * 1024, 128} },
7582 .block_erase = spi_block_erase_d8,
7583 }, {
7584 .eraseblocks = { {8 * 1024 * 1024, 1} },
7585 .block_erase = spi_block_erase_60,
7586 }, {
7587 .eraseblocks = { {8 * 1024 * 1024, 1} },
7588 .block_erase = spi_block_erase_c7,
7589 }
7590 },
7591 .printlock = spi_prettyprint_status_register_bp3_srwd,
7592 .unlock = spi_disable_blockprotect_bp3_srwd,
7593 .write = spi_chip_write_256,
7594 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
7595 .voltage = {2700, 3600},
7596 },
7597
7598 {
7599 .vendor = "Macronix",
7600 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007601 .bustype = BUS_SPI,
7602 .manufacture_id = MACRONIX_ID,
7603 .model_id = MACRONIX_MX25L6405,
7604 .total_size = 8192,
7605 .page_size = 256,
7606 /* supports SFDP */
7607 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7608 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7609 .tested = TEST_OK_PREW,
7610 .probe = probe_spi_rdid,
7611 .probe_timing = TIMING_ZERO,
7612 .block_erasers =
7613 {
7614 {
7615 .eraseblocks = { {4 * 1024, 2048} },
7616 .block_erase = spi_block_erase_20,
7617 }, {
7618 .eraseblocks = { {32 * 1024, 256} },
7619 .block_erase = spi_block_erase_52,
7620 }, {
7621 .eraseblocks = { {64 * 1024, 128} },
7622 .block_erase = spi_block_erase_d8,
7623 }, {
7624 .eraseblocks = { {8 * 1024 * 1024, 1} },
7625 .block_erase = spi_block_erase_60,
7626 }, {
7627 .eraseblocks = { {8 * 1024 * 1024, 1} },
7628 .block_erase = spi_block_erase_c7,
7629 }
7630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007631 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007632 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007633 .write = spi_chip_write_256,
7634 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7635 .voltage = {2700, 3600},
7636 },
7637
7638 {
7639 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007640 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007641 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007642 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007643 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007644 .total_size = 16384,
7645 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007646 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007648 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007650 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007651 .block_erasers =
7652 {
7653 {
7654 .eraseblocks = { {4 * 1024, 4096} },
7655 .block_erase = spi_block_erase_20,
7656 }, {
7657 .eraseblocks = { {64 * 1024, 256} },
7658 .block_erase = spi_block_erase_d8,
7659 }, {
7660 .eraseblocks = { {16 * 1024 * 1024, 1} },
7661 .block_erase = spi_block_erase_60,
7662 }, {
7663 .eraseblocks = { {16 * 1024 * 1024, 1} },
7664 .block_erase = spi_block_erase_c7,
7665 }
7666 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007667 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007668 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007669 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007670 .read = spi_chip_read, /* Fast read (0x0B) supported */
7671 .voltage = {2700, 3600},
7672 },
7673
7674 {
7675 .vendor = "Macronix",
7676 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
7677 .bustype = BUS_SPI,
7678 .manufacture_id = MACRONIX_ID,
7679 .model_id = MACRONIX_MX25L12805D,
7680 .total_size = 16384,
7681 .page_size = 256,
7682 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7683 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7684 .tested = TEST_OK_PREW,
7685 .probe = probe_spi_rdid,
7686 .probe_timing = TIMING_ZERO,
7687 .block_erasers =
7688 {
7689 {
7690 .eraseblocks = { {4 * 1024, 4096} },
7691 .block_erase = spi_block_erase_20,
7692 }, {
7693 .eraseblocks = { {32 * 1024, 512} },
7694 .block_erase = spi_block_erase_52,
7695 }, {
7696 .eraseblocks = { {64 * 1024, 256} },
7697 .block_erase = spi_block_erase_d8,
7698 }, {
7699 .eraseblocks = { {16 * 1024 * 1024, 1} },
7700 .block_erase = spi_block_erase_60,
7701 }, {
7702 .eraseblocks = { {16 * 1024 * 1024, 1} },
7703 .block_erase = spi_block_erase_c7,
7704 }
7705 },
7706 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7707 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7708 .unlock = spi_disable_blockprotect_bp3_srwd,
7709 .write = spi_chip_write_256,
7710 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007711 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007712 },
7713
7714 {
7715 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007716 .name = "MX25U1635E",
7717 .bustype = BUS_SPI,
7718 .manufacture_id = MACRONIX_ID,
7719 .model_id = MACRONIX_MX25U1635E,
7720 .total_size = 2048,
7721 .page_size = 256,
7722 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7723 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7724 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007725 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00007726 .probe = probe_spi_rdid,
7727 .probe_timing = TIMING_ZERO,
7728 .block_erasers =
7729 {
7730 {
7731 .eraseblocks = { {4 * 1024, 512} },
7732 .block_erase = spi_block_erase_20,
7733 }, {
7734 .eraseblocks = { {32 * 1024, 64} },
7735 .block_erase = spi_block_erase_52,
7736 }, {
7737 .eraseblocks = { {64 * 1024, 32} },
7738 .block_erase = spi_block_erase_d8,
7739 }, {
7740 .eraseblocks = { {2 * 1024 * 1024, 1} },
7741 .block_erase = spi_block_erase_60,
7742 }, {
7743 .eraseblocks = { {2 * 1024 * 1024, 1} },
7744 .block_erase = spi_block_erase_c7,
7745 }
7746 },
7747 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007748 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007749 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007750 .write = spi_chip_write_256,
7751 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7752 .voltage = {1650, 2000},
7753 },
7754
7755 {
7756 .vendor = "Macronix",
7757 .name = "MX25U3235E/F",
7758 .bustype = BUS_SPI,
7759 .manufacture_id = MACRONIX_ID,
7760 .model_id = MACRONIX_MX25U3235E,
7761 .total_size = 4096,
7762 .page_size = 256,
7763 /* F model supports SFDP */
7764 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7765 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7766 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7767 .tested = TEST_OK_PREW,
7768 .probe = probe_spi_rdid,
7769 .probe_timing = TIMING_ZERO,
7770 .block_erasers =
7771 {
7772 {
7773 .eraseblocks = { {4 * 1024, 1024} },
7774 .block_erase = spi_block_erase_20,
7775 }, {
7776 .eraseblocks = { {32 * 1024, 128} },
7777 .block_erase = spi_block_erase_52,
7778 }, {
7779 .eraseblocks = { {64 * 1024, 64} },
7780 .block_erase = spi_block_erase_d8,
7781 }, {
7782 .eraseblocks = { {4 * 1024 * 1024, 1} },
7783 .block_erase = spi_block_erase_60,
7784 }, {
7785 .eraseblocks = { {4 * 1024 * 1024, 1} },
7786 .block_erase = spi_block_erase_c7,
7787 }
7788 },
7789 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007790 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007791 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007792 .write = spi_chip_write_256,
7793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7794 .voltage = {1650, 2000},
7795 },
7796
7797 {
7798 .vendor = "Macronix",
7799 .name = "MX25U6435E/F",
7800 .bustype = BUS_SPI,
7801 .manufacture_id = MACRONIX_ID,
7802 .model_id = MACRONIX_MX25U6435E,
7803 .total_size = 8192,
7804 .page_size = 256,
7805 /* F model supports SFDP */
7806 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7807 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007809 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00007810 .probe = probe_spi_rdid,
7811 .probe_timing = TIMING_ZERO,
7812 .block_erasers =
7813 {
7814 {
7815 .eraseblocks = { {4 * 1024, 2048} },
7816 .block_erase = spi_block_erase_20,
7817 }, {
7818 .eraseblocks = { {32 * 1024, 256} },
7819 .block_erase = spi_block_erase_52,
7820 }, {
7821 .eraseblocks = { {64 * 1024, 128} },
7822 .block_erase = spi_block_erase_d8,
7823 }, {
7824 .eraseblocks = { {8 * 1024 * 1024, 1} },
7825 .block_erase = spi_block_erase_60,
7826 }, {
7827 .eraseblocks = { {8 * 1024 * 1024, 1} },
7828 .block_erase = spi_block_erase_c7,
7829 }
7830 },
7831 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007832 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007833 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007834 .write = spi_chip_write_256,
7835 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7836 .voltage = {1650, 2000},
7837 },
7838
7839 {
7840 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007841 .name = "MX25U12835F",
7842 .bustype = BUS_SPI,
7843 .manufacture_id = MACRONIX_ID,
7844 .model_id = MACRONIX_MX25U12835E,
7845 .total_size = 16384,
7846 .page_size = 256,
7847 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7848 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7849 .tested = TEST_UNTESTED,
7850 .probe = probe_spi_rdid,
7851 .probe_timing = TIMING_ZERO,
7852 .block_erasers =
7853 {
7854 {
7855 .eraseblocks = { {4 * 1024, 4096} },
7856 .block_erase = spi_block_erase_20,
7857 }, {
7858 .eraseblocks = { {32 * 1024, 512} },
7859 .block_erase = spi_block_erase_52,
7860 }, {
7861 .eraseblocks = { {64 * 1024, 256} },
7862 .block_erase = spi_block_erase_d8,
7863 }, {
7864 .eraseblocks = { {16 * 1024 * 1024, 1} },
7865 .block_erase = spi_block_erase_60,
7866 }, {
7867 .eraseblocks = { {16 * 1024 * 1024, 1} },
7868 .block_erase = spi_block_erase_c7,
7869 }
7870 },
7871 /* TODO: security register */
7872 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7873 .unlock = spi_disable_blockprotect_bp3_srwd,
7874 .write = spi_chip_write_256, /* Multi I/O supported */
7875 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7876 .voltage = {1650, 2000},
7877 },
7878
7879 {
Stefan Taunera4617f72015-01-10 15:59:54 +00007880 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00007881 .name = "MX25L6495F",
7882 .bustype = BUS_SPI,
7883 .manufacture_id = MACRONIX_ID,
7884 .model_id = MACRONIX_MX25L6495F,
7885 .total_size = 8192,
7886 .page_size = 256,
7887 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
7888 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7889 .tested = TEST_OK_PREW,
7890 .probe = probe_spi_rdid,
7891 .probe_timing = TIMING_ZERO,
7892 .block_erasers =
7893 {
7894 {
7895 .eraseblocks = { {4 * 1024, 2048} },
7896 .block_erase = spi_block_erase_20,
7897 }, {
7898 .eraseblocks = { {64 * 1024, 128} },
7899 .block_erase = spi_block_erase_d8,
7900 }, {
7901 .eraseblocks = { {32 * 1024, 256} },
7902 .block_erase = spi_block_erase_52,
7903 }, {
7904 .eraseblocks = { {8 * 1024 * 1024, 1} },
7905 .block_erase = spi_block_erase_60,
7906 }, {
7907 .eraseblocks = { {8 * 1024 * 1024, 1} },
7908 .block_erase = spi_block_erase_c7,
7909 }
7910 },
7911 .unlock = spi_disable_blockprotect,
7912 .write = spi_chip_write_256,
7913 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7914 .voltage = {2700, 3600},
7915 },
7916
7917 {
Martin Roth440057a2014-07-13 00:05:07 +00007918 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007919 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007920 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007921 .manufacture_id = MACRONIX_ID,
7922 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007923 .total_size = 128,
7924 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007925 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7926 .tested = TEST_UNTESTED,
7927 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007928 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007929 .block_erasers =
7930 {
7931 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007932 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007933 {8 * 1024, 1},
7934 {4 * 1024, 2},
7935 {8 * 1024, 2},
7936 {32 * 1024, 1},
7937 {64 * 1024, 1},
7938 },
Sean Nelson35727f72010-01-28 23:55:12 +00007939 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007940 }, {
7941 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007942 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007943 }
7944 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007945 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007947 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007948 },
7949
7950 {
7951 .vendor = "Macronix",
7952 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007953 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007954 .manufacture_id = MACRONIX_ID,
7955 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007956 .total_size = 128,
7957 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007958 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007959 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007960 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007961 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007962 .block_erasers =
7963 {
7964 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007965 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007966 {64 * 1024, 1},
7967 {32 * 1024, 1},
7968 {8 * 1024, 2},
7969 {4 * 1024, 2},
7970 {8 * 1024, 1},
7971 },
Sean Nelson35727f72010-01-28 23:55:12 +00007972 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007973 }, {
7974 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007975 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007976 }
7977 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007978 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007980 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007981 },
7982
7983 {
7984 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007985 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007986 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007987 .manufacture_id = MACRONIX_ID,
7988 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007989 .total_size = 256,
7990 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007991 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007992 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007993 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007994 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007995 .block_erasers =
7996 {
7997 {
7998 .eraseblocks = {
7999 {16 * 1024, 1},
8000 {8 * 1024, 2},
8001 {32 * 1024, 1},
8002 {64 * 1024, 3},
8003 },
Sean Nelson35727f72010-01-28 23:55:12 +00008004 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008005 }, {
8006 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008007 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008008 },
8009 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008010 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008012 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008013 },
8014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008015 {
8016 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008017 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008018 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008019 .manufacture_id = MACRONIX_ID,
8020 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008021 .total_size = 256,
8022 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008023 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008024 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008025 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008026 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008027 .block_erasers =
8028 {
8029 {
8030 .eraseblocks = {
8031 {64 * 1024, 3},
8032 {32 * 1024, 1},
8033 {8 * 1024, 2},
8034 {16 * 1024, 1},
8035 },
Sean Nelson35727f72010-01-28 23:55:12 +00008036 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008037 }, {
8038 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008039 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008040 },
8041 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008042 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008044 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008045 },
8046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008047 {
8048 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008049 .name = "MX29F022(N)B",
8050 .bustype = BUS_PARALLEL,
8051 .manufacture_id = MACRONIX_ID,
8052 .model_id = MACRONIX_MX29F022B,
8053 .total_size = 256,
8054 .page_size = 0, /* unused */
8055 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8056 .tested = TEST_UNTESTED,
8057 .probe = probe_jedec,
8058 .probe_timing = TIMING_ZERO,
8059 .block_erasers =
8060 {
8061 {
8062 .eraseblocks = {
8063 {16 * 1024, 1},
8064 {8 * 1024, 2},
8065 {32 * 1024, 1},
8066 {64 * 1024, 3},
8067 },
8068 .block_erase = erase_sector_jedec,
8069 }, {
8070 .eraseblocks = { {256 * 1024, 1} },
8071 .block_erase = erase_chip_block_jedec,
8072 }
8073 },
8074 .write = write_jedec_1,
8075 .read = read_memmapped,
8076 .voltage = {4500, 5500},
8077 },
8078
8079 {
8080 .vendor = "Macronix",
8081 .name = "MX29F022(N)T",
8082 .bustype = BUS_PARALLEL,
8083 .manufacture_id = MACRONIX_ID,
8084 .model_id = MACRONIX_MX29F022T,
8085 .total_size = 256,
8086 .page_size = 0, /* unused */
8087 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8088 .tested = TEST_OK_PREW,
8089 .probe = probe_jedec,
8090 .probe_timing = TIMING_ZERO,
8091 .block_erasers =
8092 {
8093 {
8094 .eraseblocks = {
8095 {64 * 1024, 3},
8096 {32 * 1024, 1},
8097 {8 * 1024, 2},
8098 {16 * 1024, 1},
8099 },
8100 .block_erase = erase_sector_jedec,
8101 }, {
8102 .eraseblocks = { {256 * 1024, 1} },
8103 .block_erase = erase_chip_block_jedec,
8104 }
8105 },
8106 .write = write_jedec_1,
8107 .read = read_memmapped,
8108 .voltage = {4500, 5500},
8109 },
8110
8111 {
8112 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008113 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008114 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008115 .manufacture_id = MACRONIX_ID,
8116 .model_id = MACRONIX_MX29F040,
8117 .total_size = 512,
8118 .page_size = 64 * 1024,
8119 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8120 .tested = TEST_UNTESTED,
8121 .probe = probe_jedec,
8122 .probe_timing = TIMING_ZERO,
8123 .block_erasers =
8124 {
8125 {
8126 .eraseblocks = { {64 * 1024, 8} },
8127 .block_erase = erase_sector_jedec,
8128 }, {
8129 .eraseblocks = { {512 * 1024, 1} },
8130 .block_erase = erase_chip_block_jedec,
8131 },
8132 },
8133 .write = write_jedec_1,
8134 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008135 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008136 },
8137
8138 {
8139 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008140 .name = "MX29GL320EB",
8141 .bustype = BUS_PARALLEL,
8142 .manufacture_id = MACRONIX_ID,
8143 .model_id = MACRONIX_MX29GL320EB,
8144 .total_size = 4096,
8145 .page_size = 128 * 1024, /* actual page size is 16 */
8146 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8147 .tested = TEST_UNTESTED,
8148 .probe = probe_jedec_29gl,
8149 .probe_timing = TIMING_ZERO,
8150 .block_erasers =
8151 {
8152 {
8153 .eraseblocks = {
8154 {8 * 1024, 8},
8155 {64 * 1024, 63},
8156 },
8157 .block_erase = erase_sector_jedec,
8158 }, {
8159 .eraseblocks = { {4 * 1024 * 1024, 1} },
8160 .block_erase = erase_chip_block_jedec,
8161 },
8162 },
8163 .write = write_jedec_1,
8164 .read = read_memmapped,
8165 .voltage = {2700, 3600},
8166 },
8167
8168 {
8169 .vendor = "Macronix",
8170 .name = "MX29GL320ET",
8171 .bustype = BUS_PARALLEL,
8172 .manufacture_id = MACRONIX_ID,
8173 .model_id = MACRONIX_MX29GL320ET,
8174 .total_size = 4096,
8175 .page_size = 128 * 1024, /* actual page size is 16 */
8176 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8177 .tested = TEST_UNTESTED,
8178 .probe = probe_jedec_29gl,
8179 .probe_timing = TIMING_ZERO,
8180 .block_erasers =
8181 {
8182 {
8183 .eraseblocks = {
8184 {64 * 1024, 63},
8185 {8 * 1024, 8},
8186 },
8187 .block_erase = erase_sector_jedec,
8188 }, {
8189 .eraseblocks = { {4 * 1024 * 1024, 1} },
8190 .block_erase = erase_chip_block_jedec,
8191 },
8192 },
8193 .write = write_jedec_1,
8194 .read = read_memmapped,
8195 .voltage = {2700, 3600},
8196 },
8197
8198 {
8199 .vendor = "Macronix",
8200 .name = "MX29GL320EH/L",
8201 .bustype = BUS_PARALLEL,
8202 .manufacture_id = MACRONIX_ID,
8203 .model_id = MACRONIX_MX29GL320EHL,
8204 .total_size = 4096,
8205 .page_size = 128 * 1024, /* actual page size is 16 */
8206 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8207 .tested = TEST_UNTESTED,
8208 .probe = probe_jedec_29gl,
8209 .probe_timing = TIMING_ZERO,
8210 .block_erasers =
8211 {
8212 {
8213 .eraseblocks = { {64 * 1024, 64} },
8214 .block_erase = erase_sector_jedec,
8215 }, {
8216 .eraseblocks = { {4 * 1024 * 1024, 1} },
8217 .block_erase = erase_chip_block_jedec,
8218 },
8219 },
8220 .write = write_jedec_1,
8221 .read = read_memmapped,
8222 .voltage = {2700, 3600},
8223 },
8224
8225 {
8226 .vendor = "Macronix",
8227 .name = "MX29GL640EB",
8228 .bustype = BUS_PARALLEL,
8229 .manufacture_id = MACRONIX_ID,
8230 .model_id = MACRONIX_MX29GL640EB,
8231 .total_size = 8192,
8232 .page_size = 128 * 1024, /* actual page size is 16 */
8233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8234 .tested = TEST_UNTESTED,
8235 .probe = probe_jedec_29gl,
8236 .probe_timing = TIMING_ZERO,
8237 .block_erasers =
8238 {
8239 {
8240 .eraseblocks = {
8241 {8 * 1024, 8},
8242 {64 * 1024, 127},
8243 },
8244 .block_erase = erase_sector_jedec,
8245 }, {
8246 .eraseblocks = { {8 * 1024 * 1024, 1} },
8247 .block_erase = erase_chip_block_jedec,
8248 },
8249 },
8250 .write = write_jedec_1,
8251 .read = read_memmapped,
8252 .voltage = {2700, 3600},
8253 },
8254
8255 {
8256 .vendor = "Macronix",
8257 .name = "MX29GL640ET",
8258 .bustype = BUS_PARALLEL,
8259 .manufacture_id = MACRONIX_ID,
8260 .model_id = MACRONIX_MX29GL640ET,
8261 .total_size = 8192,
8262 .page_size = 128 * 1024, /* actual page size is 16 */
8263 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8264 .tested = TEST_UNTESTED,
8265 .probe = probe_jedec_29gl,
8266 .probe_timing = TIMING_ZERO,
8267 .block_erasers =
8268 {
8269 {
8270 .eraseblocks = {
8271 {64 * 1024, 127},
8272 {8 * 1024, 8},
8273 },
8274 .block_erase = erase_sector_jedec,
8275 }, {
8276 .eraseblocks = { {8 * 1024 * 1024, 1} },
8277 .block_erase = erase_chip_block_jedec,
8278 },
8279 },
8280 .write = write_jedec_1,
8281 .read = read_memmapped,
8282 .voltage = {2700, 3600},
8283 },
8284
8285 {
8286 .vendor = "Macronix",
8287 .name = "MX29GL640EH/L",
8288 .bustype = BUS_PARALLEL,
8289 .manufacture_id = MACRONIX_ID,
8290 .model_id = MACRONIX_MX29GL640EHL,
8291 .total_size = 8192,
8292 .page_size = 128 * 1024, /* actual page size is 16 */
8293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8294 .tested = TEST_UNTESTED,
8295 .probe = probe_jedec_29gl,
8296 .probe_timing = TIMING_ZERO,
8297 .block_erasers =
8298 {
8299 {
8300 .eraseblocks = { {64 * 1024, 128} },
8301 .block_erase = erase_sector_jedec,
8302 }, {
8303 .eraseblocks = { {8 * 1024 * 1024, 1} },
8304 .block_erase = erase_chip_block_jedec,
8305 },
8306 },
8307 .write = write_jedec_1,
8308 .read = read_memmapped,
8309 .voltage = {2700, 3600},
8310 },
8311
8312 {
8313 .vendor = "Macronix",
8314 .name = "MX29GL128F",
8315 .bustype = BUS_PARALLEL,
8316 .manufacture_id = MACRONIX_ID,
8317 .model_id = MACRONIX_MX29GL128F,
8318 .total_size = 16384,
8319 .page_size = 128 * 1024, /* actual page size is 16 */
8320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8321 .tested = TEST_UNTESTED,
8322 .probe = probe_jedec_29gl,
8323 .probe_timing = TIMING_ZERO,
8324 .block_erasers =
8325 {
8326 {
8327 .eraseblocks = { {128 * 1024, 128} },
8328 .block_erase = erase_sector_jedec,
8329 }, {
8330 .eraseblocks = { {16 * 1024 * 1024, 1} },
8331 .block_erase = erase_chip_block_jedec,
8332 },
8333 },
8334 .write = write_jedec_1,
8335 .read = read_memmapped,
8336 .voltage = {2700, 3600},
8337 },
8338
8339 {
8340 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008341 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008342 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008343 .manufacture_id = MACRONIX_ID,
8344 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008345 .total_size = 512,
8346 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008347 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8348 .tested = TEST_UNTESTED,
8349 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008351 .block_erasers =
8352 {
8353 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008354 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008355 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008356 }, {
8357 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008358 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008359 },
8360 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008361 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008362 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008363 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008364 },
8365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008366 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008367 .vendor = "Micron/Numonyx/ST",
8368 .name = "M25P05-A",
8369 .bustype = BUS_SPI,
8370 .manufacture_id = ST_ID,
8371 .model_id = ST_M25P05A,
8372 .total_size = 64,
8373 .page_size = 256,
8374 .feature_bits = FEATURE_WRSR_WREN,
8375 .tested = TEST_OK_PREW,
8376 .probe = probe_spi_rdid,
8377 .probe_timing = TIMING_ZERO,
8378 .block_erasers =
8379 {
8380 {
8381 .eraseblocks = { {32 * 1024, 2} },
8382 .block_erase = spi_block_erase_d8,
8383 }, {
8384 .eraseblocks = { {64 * 1024, 1} },
8385 .block_erase = spi_block_erase_c7,
8386 }
8387 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008388 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008389 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008390 .write = spi_chip_write_256,
8391 .read = spi_chip_read,
8392 .voltage = {2700, 3600},
8393 },
8394
8395 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8396 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
8397 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
8398 * only is successful if RDID does not work.
8399 */
8400 {
8401 .vendor = "Micron/Numonyx/ST",
8402 .name = "M25P05",
8403 .bustype = BUS_SPI,
8404 .manufacture_id = 0, /* Not used. */
8405 .model_id = ST_M25P05_RES,
8406 .total_size = 64,
8407 .page_size = 256,
8408 .feature_bits = FEATURE_WRSR_WREN,
8409 .tested = TEST_UNTESTED,
8410 .probe = probe_spi_res1,
8411 .probe_timing = TIMING_ZERO,
8412 .block_erasers =
8413 {
8414 {
8415 .eraseblocks = { {32 * 1024, 2} },
8416 .block_erase = spi_block_erase_d8,
8417 }, {
8418 .eraseblocks = { {64 * 1024, 1} },
8419 .block_erase = spi_block_erase_c7,
8420 }
8421 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008422 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008423 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008424 .write = spi_chip_write_1, /* 128 */
8425 .read = spi_chip_read,
8426 .voltage = {2700, 3600},
8427 },
8428
8429 {
8430 .vendor = "Micron/Numonyx/ST",
8431 .name = "M25P10-A",
8432 .bustype = BUS_SPI,
8433 .manufacture_id = ST_ID,
8434 .model_id = ST_M25P10A,
8435 .total_size = 128,
8436 .page_size = 256,
8437 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008438 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008439 .probe = probe_spi_rdid,
8440 .probe_timing = TIMING_ZERO,
8441 .block_erasers =
8442 {
8443 {
8444 .eraseblocks = { {32 * 1024, 4} },
8445 .block_erase = spi_block_erase_d8,
8446 }, {
8447 .eraseblocks = { {128 * 1024, 1} },
8448 .block_erase = spi_block_erase_c7,
8449 }
8450 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008451 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008452 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008453 .write = spi_chip_write_256,
8454 .read = spi_chip_read,
8455 .voltage = {2700, 3600},
8456 },
8457
8458 /* The ST M25P10 has the same problem as the M25P05. */
8459 {
8460 .vendor = "Micron/Numonyx/ST",
8461 .name = "M25P10",
8462 .bustype = BUS_SPI,
8463 .manufacture_id = 0, /* Not used. */
8464 .model_id = ST_M25P10_RES,
8465 .total_size = 128,
8466 .page_size = 256,
8467 .feature_bits = FEATURE_WRSR_WREN,
8468 .tested = TEST_UNTESTED,
8469 .probe = probe_spi_res1,
8470 .probe_timing = TIMING_ZERO,
8471 .block_erasers =
8472 {
8473 {
8474 .eraseblocks = { {32 * 1024, 4} },
8475 .block_erase = spi_block_erase_d8,
8476 }, {
8477 .eraseblocks = { {128 * 1024, 1} },
8478 .block_erase = spi_block_erase_c7,
8479 }
8480 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008481 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008482 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008483 .write = spi_chip_write_1, /* 128 */
8484 .read = spi_chip_read,
8485 .voltage = {2700, 3600},
8486 },
8487
8488 {
8489 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8490 .name = "M25P20",
8491 .bustype = BUS_SPI,
8492 .manufacture_id = ST_ID,
8493 .model_id = ST_M25P20,
8494 .total_size = 256,
8495 .page_size = 256,
8496 .feature_bits = FEATURE_WRSR_WREN,
8497 .tested = TEST_UNTESTED,
8498 .probe = probe_spi_rdid,
8499 .probe_timing = TIMING_ZERO,
8500 .block_erasers =
8501 {
8502 {
8503 .eraseblocks = { {64 * 1024, 4} },
8504 .block_erase = spi_block_erase_d8,
8505 }, {
8506 .eraseblocks = { {256 * 1024, 1} },
8507 .block_erase = spi_block_erase_c7,
8508 }
8509 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008510 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008511 .unlock = spi_disable_blockprotect,
8512 .write = spi_chip_write_256,
8513 .read = spi_chip_read, /* Fast read (0x0B) supported */
8514 .voltage = {2700, 3600},
8515 },
8516
8517 {
8518 .vendor = "Micron/Numonyx/ST",
8519 .name = "M25P20-old",
8520 .bustype = BUS_SPI,
8521 .manufacture_id = 0, /* Not used. */
8522 .model_id = ST_M25P20_RES,
8523 .total_size = 256,
8524 .page_size = 256,
8525 .feature_bits = FEATURE_WRSR_WREN,
8526 .tested = TEST_OK_PREW,
8527 .probe = probe_spi_res1,
8528 .probe_timing = TIMING_ZERO,
8529 .block_erasers =
8530 {
8531 {
8532 .eraseblocks = { {64 * 1024, 4} },
8533 .block_erase = spi_block_erase_d8,
8534 }, {
8535 .eraseblocks = { {256 * 1024, 1} },
8536 .block_erase = spi_block_erase_c7,
8537 }
8538 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008539 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008540 .unlock = spi_disable_blockprotect,
8541 .write = spi_chip_write_256,
8542 .read = spi_chip_read, /* Fast read (0x0B) supported */
8543 .voltage = {2700, 3600},
8544 },
8545
8546 {
8547 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8548 .name = "M25P40",
8549 .bustype = BUS_SPI,
8550 .manufacture_id = ST_ID,
8551 .model_id = ST_M25P40,
8552 .total_size = 512,
8553 .page_size = 256,
8554 .feature_bits = FEATURE_WRSR_WREN,
8555 .tested = TEST_OK_PREW,
8556 .probe = probe_spi_rdid,
8557 .probe_timing = TIMING_ZERO,
8558 .block_erasers =
8559 {
8560 {
8561 .eraseblocks = { {64 * 1024, 8} },
8562 .block_erase = spi_block_erase_d8,
8563 }, {
8564 .eraseblocks = { {512 * 1024, 1} },
8565 .block_erase = spi_block_erase_c7,
8566 }
8567 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008568 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008569 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008570 .write = spi_chip_write_256,
8571 .read = spi_chip_read,
8572 .voltage = {2700, 3600},
8573 },
8574
8575 {
8576 .vendor = "Micron/Numonyx/ST",
8577 .name = "M25P40-old",
8578 .bustype = BUS_SPI,
8579 .manufacture_id = 0, /* Not used. */
8580 .model_id = ST_M25P40_RES,
8581 .total_size = 512,
8582 .page_size = 256,
8583 .feature_bits = FEATURE_WRSR_WREN,
8584 .tested = TEST_UNTESTED,
8585 .probe = probe_spi_res1,
8586 .probe_timing = TIMING_ZERO,
8587 .block_erasers =
8588 {
8589 {
8590 .eraseblocks = { {64 * 1024, 8} },
8591 .block_erase = spi_block_erase_d8,
8592 }, {
8593 .eraseblocks = { {512 * 1024, 1} },
8594 .block_erase = spi_block_erase_c7,
8595 }
8596 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008597 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008598 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008599 .write = spi_chip_write_256,
8600 .read = spi_chip_read,
8601 },
8602
8603 {
8604 .vendor = "Micron/Numonyx/ST",
8605 .name = "M25P80",
8606 .bustype = BUS_SPI,
8607 .manufacture_id = ST_ID,
8608 .model_id = ST_M25P80,
8609 .total_size = 1024,
8610 .page_size = 256,
8611 .feature_bits = FEATURE_WRSR_WREN,
8612 .tested = TEST_OK_PREW,
8613 .probe = probe_spi_rdid,
8614 .probe_timing = TIMING_ZERO,
8615 .block_erasers =
8616 {
8617 {
8618 .eraseblocks = { {64 * 1024, 16} },
8619 .block_erase = spi_block_erase_d8,
8620 }, {
8621 .eraseblocks = { {1024 * 1024, 1} },
8622 .block_erase = spi_block_erase_c7,
8623 }
8624 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008625 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008626 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008627 .write = spi_chip_write_256,
8628 .read = spi_chip_read,
8629 .voltage = {2700, 3600},
8630 },
8631
8632 {
8633 .vendor = "Micron/Numonyx/ST",
8634 .name = "M25P16",
8635 .bustype = BUS_SPI,
8636 .manufacture_id = ST_ID,
8637 .model_id = ST_M25P16,
8638 .total_size = 2048,
8639 .page_size = 256,
8640 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008641 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008642 .probe = probe_spi_rdid,
8643 .probe_timing = TIMING_ZERO,
8644 .block_erasers =
8645 {
8646 {
8647 .eraseblocks = { {64 * 1024, 32} },
8648 .block_erase = spi_block_erase_d8,
8649 }, {
8650 .eraseblocks = { {2 * 1024 * 1024, 1} },
8651 .block_erase = spi_block_erase_c7,
8652 }
8653 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008654 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008655 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008656 .write = spi_chip_write_256,
8657 .read = spi_chip_read,
8658 .voltage = {2700, 3600},
8659 },
8660
8661 {
8662 .vendor = "Micron/Numonyx/ST",
8663 .name = "M25P32",
8664 .bustype = BUS_SPI,
8665 .manufacture_id = ST_ID,
8666 .model_id = ST_M25P32,
8667 .total_size = 4096,
8668 .page_size = 256,
8669 .feature_bits = FEATURE_WRSR_WREN,
8670 .tested = TEST_OK_PREW,
8671 .probe = probe_spi_rdid,
8672 .probe_timing = TIMING_ZERO,
8673 .block_erasers =
8674 {
8675 {
8676 .eraseblocks = { {64 * 1024, 64} },
8677 .block_erase = spi_block_erase_d8,
8678 }, {
8679 .eraseblocks = { {4 * 1024 * 1024, 1} },
8680 .block_erase = spi_block_erase_c7,
8681 }
8682 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008683 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008684 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008685 .write = spi_chip_write_256,
8686 .read = spi_chip_read,
8687 .voltage = {2700, 3600},
8688 },
8689
8690 {
8691 .vendor = "Micron/Numonyx/ST",
8692 .name = "M25P64",
8693 .bustype = BUS_SPI,
8694 .manufacture_id = ST_ID,
8695 .model_id = ST_M25P64,
8696 .total_size = 8192,
8697 .page_size = 256,
8698 .feature_bits = FEATURE_WRSR_WREN,
8699 .tested = TEST_OK_PREW,
8700 .probe = probe_spi_rdid,
8701 .probe_timing = TIMING_ZERO,
8702 .block_erasers =
8703 {
8704 {
8705 .eraseblocks = { {64 * 1024, 128} },
8706 .block_erase = spi_block_erase_d8,
8707 }, {
8708 .eraseblocks = { {8 * 1024 * 1024, 1} },
8709 .block_erase = spi_block_erase_c7,
8710 }
8711 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008713 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008714 .write = spi_chip_write_256,
8715 .read = spi_chip_read,
8716 .voltage = {2700, 3600},
8717 },
8718
8719 {
8720 .vendor = "Micron/Numonyx/ST",
8721 .name = "M25P128",
8722 .bustype = BUS_SPI,
8723 .manufacture_id = ST_ID,
8724 .model_id = ST_M25P128,
8725 .total_size = 16384,
8726 .page_size = 256,
8727 .feature_bits = FEATURE_WRSR_WREN,
8728 .tested = TEST_OK_PREW,
8729 .probe = probe_spi_rdid,
8730 .probe_timing = TIMING_ZERO,
8731 .block_erasers =
8732 {
8733 {
8734 .eraseblocks = { {256 * 1024, 64} },
8735 .block_erase = spi_block_erase_d8,
8736 }, {
8737 .eraseblocks = { {16 * 1024 * 1024, 1} },
8738 .block_erase = spi_block_erase_c7,
8739 }
8740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008742 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008743 .write = spi_chip_write_256,
8744 .read = spi_chip_read,
8745 .voltage = {2700, 3600},
8746 },
8747
8748 {
8749 .vendor = "Micron/Numonyx/ST",
8750 .name = "M25PE10",
8751 .bustype = BUS_SPI,
8752 .manufacture_id = ST_ID,
8753 .model_id = ST_M25PE10,
8754 .total_size = 128,
8755 .page_size = 256,
8756 .feature_bits = FEATURE_WRSR_WREN,
8757 .tested = TEST_UNTESTED,
8758 .probe = probe_spi_rdid,
8759 .probe_timing = TIMING_ZERO,
8760 .block_erasers =
8761 {
8762 {
8763 .eraseblocks = { {4 * 1024, 32} },
8764 .block_erase = spi_block_erase_20,
8765 }, {
8766 .eraseblocks = { {64 * 1024, 2} },
8767 .block_erase = spi_block_erase_d8,
8768 }, {
8769 .eraseblocks = { {128 * 1024, 1} },
8770 .block_erase = spi_block_erase_c7,
8771 }
8772 },
8773 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8774 .unlock = spi_disable_blockprotect,
8775 .write = spi_chip_write_256,
8776 .read = spi_chip_read,
8777 .voltage = {2700, 3600},
8778 },
8779
8780 {
8781 .vendor = "Micron/Numonyx/ST",
8782 .name = "M25PE20",
8783 .bustype = BUS_SPI,
8784 .manufacture_id = ST_ID,
8785 .model_id = ST_M25PE20,
8786 .total_size = 256,
8787 .page_size = 256,
8788 .feature_bits = FEATURE_WRSR_WREN,
8789 .tested = TEST_UNTESTED,
8790 .probe = probe_spi_rdid,
8791 .probe_timing = TIMING_ZERO,
8792 .block_erasers =
8793 {
8794 {
8795 .eraseblocks = { {4 * 1024, 64} },
8796 .block_erase = spi_block_erase_20,
8797 }, {
8798 .eraseblocks = { {64 * 1024, 4} },
8799 .block_erase = spi_block_erase_d8,
8800 }, {
8801 .eraseblocks = { {256 * 1024, 1} },
8802 .block_erase = spi_block_erase_c7,
8803 }
8804 },
8805 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8806 .unlock = spi_disable_blockprotect,
8807 .write = spi_chip_write_256,
8808 .read = spi_chip_read,
8809 .voltage = {2700, 3600},
8810 },
8811
8812 {
8813 .vendor = "Micron/Numonyx/ST",
8814 .name = "M25PE40",
8815 .bustype = BUS_SPI,
8816 .manufacture_id = ST_ID,
8817 .model_id = ST_M25PE40,
8818 .total_size = 512,
8819 .page_size = 256,
8820 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008821 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008822 .probe = probe_spi_rdid,
8823 .probe_timing = TIMING_ZERO,
8824 .block_erasers =
8825 {
8826 {
8827 .eraseblocks = { {4 * 1024, 128} },
8828 .block_erase = spi_block_erase_20,
8829 }, {
8830 .eraseblocks = { {64 * 1024, 8} },
8831 .block_erase = spi_block_erase_d8,
8832 }, {
8833 .eraseblocks = { {512 * 1024, 1} },
8834 .block_erase = spi_block_erase_c7,
8835 }
8836 },
8837 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8838 .unlock = spi_disable_blockprotect,
8839 .write = spi_chip_write_256,
8840 .read = spi_chip_read,
8841 .voltage = {2700, 3600},
8842 },
8843
8844 {
8845 .vendor = "Micron/Numonyx/ST",
8846 .name = "M25PE80",
8847 .bustype = BUS_SPI,
8848 .manufacture_id = ST_ID,
8849 .model_id = ST_M25PE80,
8850 .total_size = 1024,
8851 .page_size = 256,
8852 .feature_bits = FEATURE_WRSR_WREN,
8853 .tested = TEST_OK_PREW,
8854 .probe = probe_spi_rdid,
8855 .probe_timing = TIMING_ZERO,
8856 .block_erasers =
8857 {
8858 {
8859 .eraseblocks = { {4 * 1024, 256} },
8860 .block_erase = spi_block_erase_20,
8861 }, {
8862 .eraseblocks = { {64 * 1024, 16} },
8863 .block_erase = spi_block_erase_d8,
8864 }, {
8865 .eraseblocks = { {1024 * 1024, 1} },
8866 .block_erase = spi_block_erase_c7,
8867 }
8868 },
8869 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8870 .unlock = spi_disable_blockprotect,
8871 .write = spi_chip_write_256,
8872 .read = spi_chip_read,
8873 .voltage = {2700, 3600},
8874 },
8875
8876 {
8877 .vendor = "Micron/Numonyx/ST",
8878 .name = "M25PE16",
8879 .bustype = BUS_SPI,
8880 .manufacture_id = ST_ID,
8881 .model_id = ST_M25PE16,
8882 .total_size = 2048,
8883 .page_size = 256,
8884 .feature_bits = FEATURE_WRSR_WREN,
8885 .tested = TEST_UNTESTED,
8886 .probe = probe_spi_rdid,
8887 .probe_timing = TIMING_ZERO,
8888 .block_erasers =
8889 {
8890 {
8891 .eraseblocks = { {4 * 1024, 512} },
8892 .block_erase = spi_block_erase_20,
8893 }, {
8894 .eraseblocks = { {64 * 1024, 32} },
8895 .block_erase = spi_block_erase_d8,
8896 }, {
8897 .eraseblocks = { {2 * 1024 * 1024, 1} },
8898 .block_erase = spi_block_erase_c7,
8899 }
8900 },
8901 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8902 .unlock = spi_disable_blockprotect,
8903 .write = spi_chip_write_256,
8904 .read = spi_chip_read,
8905 .voltage = {2700, 3600},
8906 },
8907
8908 {
8909 .vendor = "Micron/Numonyx/ST",
8910 .name = "M25PX80",
8911 .bustype = BUS_SPI,
8912 .manufacture_id = ST_ID,
8913 .model_id = ST_M25PX80,
8914 .total_size = 1024,
8915 .page_size = 256,
8916 /* OTP: 64B total; read 0x4B, write 0x42 */
8917 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8918 .tested = TEST_OK_PREW,
8919 .probe = probe_spi_rdid,
8920 .probe_timing = TIMING_ZERO,
8921 .block_erasers = {
8922 {
8923 .eraseblocks = { { 4 * 1024, 256 } },
8924 .block_erase = spi_block_erase_20,
8925 }, {
8926 .eraseblocks = { {64 * 1024, 16} },
8927 .block_erase = spi_block_erase_d8,
8928 }, {
8929 .eraseblocks = { {1024 * 1024, 1} },
8930 .block_erase = spi_block_erase_c7,
8931 }
8932 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008933 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008934 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8935 .write = spi_chip_write_256,
8936 .read = spi_chip_read,
8937 .voltage = {2700, 3600},
8938 },
8939
8940 {
8941 .vendor = "Micron/Numonyx/ST",
8942 .name = "M25PX16",
8943 .bustype = BUS_SPI,
8944 .manufacture_id = ST_ID,
8945 .model_id = ST_M25PX16,
8946 .total_size = 2048,
8947 .page_size = 256,
8948 /* OTP: 64B total; read 0x4B; write 0x42 */
8949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8950 .tested = TEST_OK_PREW,
8951 .probe = probe_spi_rdid,
8952 .probe_timing = TIMING_ZERO,
8953 .block_erasers =
8954 {
8955 {
8956 .eraseblocks = { { 4 * 1024, 512 } },
8957 .block_erase = spi_block_erase_20,
8958 }, {
8959 .eraseblocks = { {64 * 1024, 32} },
8960 .block_erase = spi_block_erase_d8,
8961 }, {
8962 .eraseblocks = { {2 * 1024 * 1024, 1} },
8963 .block_erase = spi_block_erase_c7,
8964 }
8965 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008966 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008967 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8968 .write = spi_chip_write_256,
8969 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008970 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008971 },
8972
8973 {
8974 .vendor = "Micron/Numonyx/ST",
8975 .name = "M25PX32",
8976 .bustype = BUS_SPI,
8977 .manufacture_id = ST_ID,
8978 .model_id = ST_M25PX32,
8979 .total_size = 4096,
8980 .page_size = 256,
8981 /* OTP: 64B total; read 0x4B; write 0x42 */
8982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8983 .tested = TEST_OK_PRE,
8984 .probe = probe_spi_rdid,
8985 .probe_timing = TIMING_ZERO,
8986 .block_erasers =
8987 {
8988 {
8989 .eraseblocks = { { 4 * 1024, 1024 } },
8990 .block_erase = spi_block_erase_20,
8991 }, {
8992 .eraseblocks = { {64 * 1024, 64} },
8993 .block_erase = spi_block_erase_d8,
8994 }, {
8995 .eraseblocks = { {4 * 1024 * 1024, 1} },
8996 .block_erase = spi_block_erase_c7,
8997 }
8998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008999 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009000 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9001 .write = spi_chip_write_256,
9002 .read = spi_chip_read,
9003 .voltage = {2700, 3600},
9004 },
9005
9006 {
9007 .vendor = "Micron/Numonyx/ST",
9008 .name = "M25PX64",
9009 .bustype = BUS_SPI,
9010 .manufacture_id = ST_ID,
9011 .model_id = ST_M25PX64,
9012 .total_size = 8192,
9013 .page_size = 256,
9014 /* OTP: 64B total; read 0x4B; write 0x42 */
9015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009016 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009017 .probe = probe_spi_rdid,
9018 .probe_timing = TIMING_ZERO,
9019 .block_erasers =
9020 {
9021 {
9022 .eraseblocks = { { 4 * 1024, 2048 } },
9023 .block_erase = spi_block_erase_20,
9024 }, {
9025 .eraseblocks = { {64 * 1024, 128} },
9026 .block_erase = spi_block_erase_d8,
9027 }, {
9028 .eraseblocks = { {8 * 1024 * 1024, 1} },
9029 .block_erase = spi_block_erase_c7,
9030 }
9031 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009032 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009033 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9034 .write = spi_chip_write_256,
9035 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009036 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009037 },
9038
9039 {
9040 .vendor = "Micron/Numonyx/ST",
9041 .name = "M45PE10",
9042 .bustype = BUS_SPI,
9043 .manufacture_id = ST_ID,
9044 .model_id = ST_M45PE10,
9045 .total_size = 128,
9046 .page_size = 256,
9047 .tested = TEST_UNTESTED,
9048 .probe = probe_spi_rdid,
9049 .probe_timing = TIMING_ZERO,
9050 .block_erasers = {
9051 {
9052 .eraseblocks = { {256, 512} },
9053 .block_erase = spi_block_erase_db,
9054 }, {
9055 .eraseblocks = { {64 * 1024, 2} },
9056 .block_erase = spi_block_erase_d8,
9057 }
9058 },
9059 .printlock = spi_prettyprint_status_register_default_welwip,
9060 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9061 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9062 .read = spi_chip_read, /* Fast read (0x0B) supported */
9063 .voltage = {2700, 3600},
9064 },
9065
9066 {
9067 .vendor = "Micron/Numonyx/ST",
9068 .name = "M45PE20",
9069 .bustype = BUS_SPI,
9070 .manufacture_id = ST_ID,
9071 .model_id = ST_M45PE20,
9072 .total_size = 256,
9073 .page_size = 256,
9074 .tested = TEST_UNTESTED,
9075 .probe = probe_spi_rdid,
9076 .probe_timing = TIMING_ZERO,
9077 .block_erasers = {
9078 {
9079 .eraseblocks = { {256, 1024} },
9080 .block_erase = spi_block_erase_db,
9081 }, {
9082 .eraseblocks = { {64 * 1024, 4} },
9083 .block_erase = spi_block_erase_d8,
9084 }
9085 },
9086 .printlock = spi_prettyprint_status_register_default_welwip,
9087 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9088 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9089 .read = spi_chip_read, /* Fast read (0x0B) supported */
9090 .voltage = {2700, 3600},
9091 },
9092
9093 {
9094 .vendor = "Micron/Numonyx/ST",
9095 .name = "M45PE40",
9096 .bustype = BUS_SPI,
9097 .manufacture_id = ST_ID,
9098 .model_id = ST_M45PE40,
9099 .total_size = 512,
9100 .page_size = 256,
9101 .tested = TEST_UNTESTED,
9102 .probe = probe_spi_rdid,
9103 .probe_timing = TIMING_ZERO,
9104 .block_erasers = {
9105 {
9106 .eraseblocks = { {256, 2048} },
9107 .block_erase = spi_block_erase_db,
9108 }, {
9109 .eraseblocks = { {64 * 1024, 8} },
9110 .block_erase = spi_block_erase_d8,
9111 }
9112 },
9113 .printlock = spi_prettyprint_status_register_default_welwip,
9114 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009115 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009116 .read = spi_chip_read, /* Fast read (0x0B) supported */
9117 .voltage = {2700, 3600},
9118 },
9119
9120 {
9121 .vendor = "Micron/Numonyx/ST",
9122 .name = "M45PE80",
9123 .bustype = BUS_SPI,
9124 .manufacture_id = ST_ID,
9125 .model_id = ST_M45PE80,
9126 .total_size = 1024,
9127 .page_size = 256,
9128 .tested = TEST_UNTESTED,
9129 .probe = probe_spi_rdid,
9130 .probe_timing = TIMING_ZERO,
9131 .block_erasers = {
9132 {
9133 .eraseblocks = { {256, 4096} },
9134 .block_erase = spi_block_erase_db,
9135 }, {
9136 .eraseblocks = { {64 * 1024, 16} },
9137 .block_erase = spi_block_erase_d8,
9138 }
9139 },
9140 .printlock = spi_prettyprint_status_register_default_welwip,
9141 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9142 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9143 .read = spi_chip_read, /* Fast read (0x0B) supported */
9144 .voltage = {2700, 3600},
9145 },
9146
9147 {
9148 .vendor = "Micron/Numonyx/ST",
9149 .name = "M45PE16",
9150 .bustype = BUS_SPI,
9151 .manufacture_id = ST_ID,
9152 .model_id = ST_M45PE16,
9153 .total_size = 2048,
9154 .page_size = 256,
9155 .tested = TEST_UNTESTED,
9156 .probe = probe_spi_rdid,
9157 .probe_timing = TIMING_ZERO,
9158 .block_erasers = {
9159 {
9160 .eraseblocks = { {256, 8192} },
9161 .block_erase = spi_block_erase_db,
9162 }, {
9163 .eraseblocks = { {64 * 1024, 32} },
9164 .block_erase = spi_block_erase_d8,
9165 }
9166 },
9167 .printlock = spi_prettyprint_status_register_default_welwip,
9168 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9169 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9170 .read = spi_chip_read, /* Fast read (0x0B) supported */
9171 .voltage = {2700, 3600},
9172 },
9173
9174 {
9175 .vendor = "Micron/Numonyx/ST",
9176 .name = "N25Q016",
9177 .bustype = BUS_SPI,
9178 .manufacture_id = ST_ID,
9179 .model_id = ST_N25Q016__1E,
9180 .total_size = 2048,
9181 .page_size = 256,
9182 /* supports SFDP */
9183 /* OTP: 64B total; read 0x4B, write 0x42 */
9184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9185 .tested = TEST_UNTESTED,
9186 .probe = probe_spi_rdid,
9187 .probe_timing = TIMING_ZERO,
9188 .block_erasers =
9189 {
9190 {
9191 .eraseblocks = { {4 * 1024, 512} },
9192 .block_erase = spi_block_erase_20,
9193 }, {
9194 .eraseblocks = { {32 * 1024, 64} },
9195 .block_erase = spi_block_erase_52,
9196 }, {
9197 .eraseblocks = { {64 * 1024, 32} },
9198 .block_erase = spi_block_erase_d8,
9199 }, {
9200 .eraseblocks = { {2 * 1024 * 1024, 1} },
9201 .block_erase = spi_block_erase_c7,
9202 }
9203 },
9204 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9205 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9206 .write = spi_chip_write_256, /* Multi I/O supported */
9207 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9208 .voltage = {1700, 2000},
9209 },
9210
9211 {
9212 .vendor = "Micron/Numonyx/ST",
9213 .name = "N25Q032..1E",
9214 .bustype = BUS_SPI,
9215 .manufacture_id = ST_ID,
9216 .model_id = ST_N25Q032__1E,
9217 .total_size = 4096,
9218 .page_size = 256,
9219 /* supports SFDP */
9220 /* OTP: 64B total; read 0x4B, write 0x42 */
9221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9222 .tested = TEST_UNTESTED,
9223 .probe = probe_spi_rdid,
9224 .probe_timing = TIMING_ZERO,
9225 .block_erasers =
9226 {
9227 {
9228 .eraseblocks = { {4 * 1024, 1024} },
9229 .block_erase = spi_block_erase_20,
9230 }, {
9231 .eraseblocks = { {64 * 1024, 64} },
9232 .block_erase = spi_block_erase_d8,
9233 }, {
9234 .eraseblocks = { {4 * 1024 * 1024, 1} },
9235 .block_erase = spi_block_erase_c7,
9236 }
9237 },
9238 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9239 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9240 .write = spi_chip_write_256, /* Multi I/O supported */
9241 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9242 .voltage = {1700, 2000},
9243 },
9244
9245 {
9246 .vendor = "Micron/Numonyx/ST",
9247 .name = "N25Q032..3E",
9248 .bustype = BUS_SPI,
9249 .manufacture_id = ST_ID,
9250 .model_id = ST_N25Q032__3E,
9251 .total_size = 4096,
9252 .page_size = 256,
9253 /* supports SFDP */
9254 /* OTP: 64B total; read 0x4B, write 0x42 */
9255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9256 .tested = TEST_OK_PREW,
9257 .probe = probe_spi_rdid,
9258 .probe_timing = TIMING_ZERO,
9259 .block_erasers =
9260 {
9261 {
9262 .eraseblocks = { {4 * 1024, 1024} },
9263 .block_erase = spi_block_erase_20,
9264 }, {
9265 .eraseblocks = { {64 * 1024, 64} },
9266 .block_erase = spi_block_erase_d8,
9267 }, {
9268 .eraseblocks = { {4 * 1024 * 1024, 1} },
9269 .block_erase = spi_block_erase_c7,
9270 }
9271 },
9272 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9273 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9274 .write = spi_chip_write_256, /* Multi I/O supported */
9275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9276 .voltage = {2700, 3600},
9277 },
9278
9279 {
9280 .vendor = "Micron/Numonyx/ST",
9281 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9282 .bustype = BUS_SPI,
9283 .manufacture_id = ST_ID,
9284 .model_id = ST_N25Q064__1E,
9285 .total_size = 8192,
9286 .page_size = 256,
9287 /* supports SFDP */
9288 /* OTP: 64B total; read 0x4B, write 0x42 */
9289 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009290 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009291 .probe = probe_spi_rdid,
9292 .probe_timing = TIMING_ZERO,
9293 .block_erasers =
9294 {
9295 {
9296 .eraseblocks = { {4 * 1024, 2048 } },
9297 .block_erase = spi_block_erase_20,
9298 }, {
9299 .eraseblocks = { {64 * 1024, 128} },
9300 .block_erase = spi_block_erase_d8,
9301 }, {
9302 .eraseblocks = { {8 * 1024 * 1024, 1} },
9303 .block_erase = spi_block_erase_c7,
9304 }
9305 },
9306 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9307 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9308 .write = spi_chip_write_256, /* Multi I/O supported */
9309 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9310 .voltage = {1700, 2000},
9311 },
9312
9313 {
9314 .vendor = "Micron/Numonyx/ST",
9315 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9316 .bustype = BUS_SPI,
9317 .manufacture_id = ST_ID,
9318 .model_id = ST_N25Q064__3E,
9319 .total_size = 8192,
9320 .page_size = 256,
9321 /* supports SFDP */
9322 /* OTP: 64B total; read 0x4B, write 0x42 */
9323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9324 .tested = TEST_OK_PREW,
9325 .probe = probe_spi_rdid,
9326 .probe_timing = TIMING_ZERO,
9327 .block_erasers =
9328 {
9329 {
9330 .eraseblocks = { {4 * 1024, 2048 } },
9331 .block_erase = spi_block_erase_20,
9332 }, {
9333 .eraseblocks = { {64 * 1024, 128} },
9334 .block_erase = spi_block_erase_d8,
9335 }, {
9336 .eraseblocks = { {8 * 1024 * 1024, 1} },
9337 .block_erase = spi_block_erase_c7,
9338 }
9339 },
9340 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9341 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9342 .write = spi_chip_write_256, /* Multi I/O supported */
9343 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9344 .voltage = {2700, 3600},
9345 },
9346
9347 {
9348 .vendor = "Micron/Numonyx/ST",
9349 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9350 .bustype = BUS_SPI,
9351 .manufacture_id = ST_ID,
9352 .model_id = ST_N25Q128__1E,
9353 .total_size = 16384,
9354 .page_size = 256,
9355 /* supports SFDP */
9356 /* OTP: 64B total; read 0x4B, write 0x42 */
9357 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009358 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009359 .probe = probe_spi_rdid,
9360 .probe_timing = TIMING_ZERO,
9361 .block_erasers = {
9362 {
9363 .eraseblocks = { {4 * 1024, 4096 } },
9364 .block_erase = spi_block_erase_20,
9365 }, {
9366 .eraseblocks = { {64 * 1024, 256} },
9367 .block_erase = spi_block_erase_d8,
9368 }, {
9369 .eraseblocks = { {16384 * 1024, 1} },
9370 .block_erase = spi_block_erase_c7,
9371 }
9372 },
9373 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9374 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9375 .write = spi_chip_write_256, /* Multi I/O supported */
9376 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9377 .voltage = {1700, 2000},
9378 },
9379
9380 {
9381 .vendor = "Micron/Numonyx/ST",
9382 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9383 .bustype = BUS_SPI,
9384 .manufacture_id = ST_ID,
9385 .model_id = ST_N25Q128__3E,
9386 .total_size = 16384,
9387 .page_size = 256,
9388 /* supports SFDP */
9389 /* OTP: 64B total; read 0x4B, write 0x42 */
9390 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9391 .tested = TEST_OK_PREW,
9392 .probe = probe_spi_rdid,
9393 .probe_timing = TIMING_ZERO,
9394 .block_erasers = {
9395 {
9396 .eraseblocks = { {4 * 1024, 4096 } },
9397 .block_erase = spi_block_erase_20,
9398 }, {
9399 .eraseblocks = { {64 * 1024, 256} },
9400 .block_erase = spi_block_erase_d8,
9401 }, {
9402 .eraseblocks = { {16384 * 1024, 1} },
9403 .block_erase = spi_block_erase_c7,
9404 }
9405 },
9406 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9407 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9408 .write = spi_chip_write_256, /* Multi I/O supported */
9409 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9410 .voltage = {2700, 3600},
9411 },
9412
9413 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009414 .vendor = "MoselVitelic",
9415 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009416 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009417 .manufacture_id = SYNCMOS_MVC_ID,
9418 .model_id = MVC_V29C51000B,
9419 .total_size = 64,
9420 .page_size = 512,
9421 .feature_bits = FEATURE_EITHER_RESET,
9422 .tested = TEST_UNTESTED,
9423 .probe = probe_jedec,
9424 .probe_timing = TIMING_ZERO,
9425 .block_erasers =
9426 {
9427 {
9428 .eraseblocks = { {512, 128} },
9429 .block_erase = erase_sector_jedec,
9430 }, {
9431 .eraseblocks = { {64 * 1024, 1} },
9432 .block_erase = erase_chip_block_jedec,
9433 },
9434 },
9435 .write = write_jedec_1,
9436 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009437 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009438 },
9439
9440 {
9441 .vendor = "MoselVitelic",
9442 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009443 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009444 .manufacture_id = SYNCMOS_MVC_ID,
9445 .model_id = MVC_V29C51000T,
9446 .total_size = 64,
9447 .page_size = 512,
9448 .feature_bits = FEATURE_EITHER_RESET,
9449 .tested = TEST_UNTESTED,
9450 .probe = probe_jedec,
9451 .probe_timing = TIMING_ZERO,
9452 .block_erasers =
9453 {
9454 {
9455 .eraseblocks = { {512, 128} },
9456 .block_erase = erase_sector_jedec,
9457 }, {
9458 .eraseblocks = { {64 * 1024, 1} },
9459 .block_erase = erase_chip_block_jedec,
9460 },
9461 },
9462 .write = write_jedec_1,
9463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009464 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009465 },
9466
9467 {
9468 .vendor = "MoselVitelic",
9469 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009470 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009471 .manufacture_id = SYNCMOS_MVC_ID,
9472 .model_id = MVC_V29C51400B,
9473 .total_size = 512,
9474 .page_size = 1024,
9475 .feature_bits = FEATURE_EITHER_RESET,
9476 .tested = TEST_UNTESTED,
9477 .probe = probe_jedec,
9478 .probe_timing = TIMING_ZERO,
9479 .block_erasers =
9480 {
9481 {
9482 .eraseblocks = { {1024, 512} },
9483 .block_erase = erase_sector_jedec,
9484 }, {
9485 .eraseblocks = { {512 * 1024, 1} },
9486 .block_erase = erase_chip_block_jedec,
9487 },
9488 },
9489 .write = write_jedec_1,
9490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009491 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009492 },
9493
9494 {
9495 .vendor = "MoselVitelic",
9496 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009497 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009498 .manufacture_id = SYNCMOS_MVC_ID,
9499 .model_id = MVC_V29C51400T,
9500 .total_size = 512,
9501 .page_size = 1024,
9502 .feature_bits = FEATURE_EITHER_RESET,
9503 .tested = TEST_UNTESTED,
9504 .probe = probe_jedec,
9505 .probe_timing = TIMING_ZERO,
9506 .block_erasers =
9507 {
9508 {
9509 .eraseblocks = { {1024, 512} },
9510 .block_erase = erase_sector_jedec,
9511 }, {
9512 .eraseblocks = { {512 * 1024, 1} },
9513 .block_erase = erase_chip_block_jedec,
9514 },
9515 },
9516 .write = write_jedec_1,
9517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009518 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009519 },
9520
9521 {
9522 .vendor = "MoselVitelic",
9523 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009524 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009525 .manufacture_id = SYNCMOS_MVC_ID,
9526 .model_id = MVC_V29LC51000,
9527 .total_size = 64,
9528 .page_size = 512,
9529 .feature_bits = FEATURE_EITHER_RESET,
9530 .tested = TEST_UNTESTED,
9531 .probe = probe_jedec,
9532 .probe_timing = TIMING_ZERO,
9533 .block_erasers =
9534 {
9535 {
9536 .eraseblocks = { {512, 128} },
9537 .block_erase = erase_sector_jedec,
9538 }, {
9539 .eraseblocks = { {64 * 1024, 1} },
9540 .block_erase = erase_chip_block_jedec,
9541 },
9542 },
9543 .write = write_jedec_1,
9544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009545 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009546 },
9547
9548 {
9549 .vendor = "MoselVitelic",
9550 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009551 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009552 .manufacture_id = SYNCMOS_MVC_ID,
9553 .model_id = MVC_V29LC51001,
9554 .total_size = 128,
9555 .page_size = 512,
9556 .feature_bits = FEATURE_EITHER_RESET,
9557 .tested = TEST_UNTESTED,
9558 .probe = probe_jedec,
9559 .probe_timing = TIMING_ZERO,
9560 .block_erasers =
9561 {
9562 {
9563 .eraseblocks = { {512, 256} },
9564 .block_erase = erase_sector_jedec,
9565 }, {
9566 .eraseblocks = { {128 * 1024, 1} },
9567 .block_erase = erase_chip_block_jedec,
9568 },
9569 },
9570 .write = write_jedec_1,
9571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009572 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009573 },
9574
9575 {
9576 .vendor = "MoselVitelic",
9577 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009578 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009579 .manufacture_id = SYNCMOS_MVC_ID,
9580 .model_id = MVC_V29LC51002,
9581 .total_size = 256,
9582 .page_size = 512,
9583 .feature_bits = FEATURE_EITHER_RESET,
9584 .tested = TEST_UNTESTED,
9585 .probe = probe_jedec,
9586 .probe_timing = TIMING_ZERO,
9587 .block_erasers =
9588 {
9589 {
9590 .eraseblocks = { {512, 512} },
9591 .block_erase = erase_sector_jedec,
9592 }, {
9593 .eraseblocks = { {256 * 1024, 1} },
9594 .block_erase = erase_chip_block_jedec,
9595 },
9596 },
9597 .write = write_jedec_1,
9598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009599 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009600 },
9601
9602 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009603 .vendor = "Nantronics",
9604 .name = "N25S10",
9605 .bustype = BUS_SPI,
9606 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9607 .model_id = NANTRONICS_N25S10,
9608 .total_size = 128,
9609 .page_size = 256,
9610 .feature_bits = FEATURE_WRSR_WREN,
9611 .tested = TEST_UNTESTED,
9612 .probe = probe_spi_rdid,
9613 .probe_timing = TIMING_ZERO,
9614 .block_erasers =
9615 {
9616 {
9617 .eraseblocks = { {4 * 1024, 32} },
9618 .block_erase = spi_block_erase_20,
9619 }, {
9620 .eraseblocks = { {4 * 1024, 32} },
9621 .block_erase = spi_block_erase_d7,
9622 }, {
9623 .eraseblocks = { {32 * 1024, 4} },
9624 .block_erase = spi_block_erase_52,
9625 }, {
9626 .eraseblocks = { {64 * 1024, 2} },
9627 .block_erase = spi_block_erase_d8,
9628 }, {
9629 .eraseblocks = { {128 * 1024, 1} },
9630 .block_erase = spi_block_erase_60,
9631 }, {
9632 .eraseblocks = { {128 * 1024, 1} },
9633 .block_erase = spi_block_erase_c7,
9634 }
9635 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009636 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009637 .unlock = spi_disable_blockprotect_bp3_srwd,
9638 .write = spi_chip_write_256,
9639 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9640 .voltage = {2700, 3600},
9641 },
9642
9643 {
9644 .vendor = "Nantronics",
9645 .name = "N25S20",
9646 .bustype = BUS_SPI,
9647 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9648 .model_id = NANTRONICS_N25S20,
9649 .total_size = 256,
9650 .page_size = 256,
9651 .feature_bits = FEATURE_WRSR_WREN,
9652 .tested = TEST_UNTESTED,
9653 .probe = probe_spi_rdid,
9654 .probe_timing = TIMING_ZERO,
9655 .block_erasers =
9656 {
9657 {
9658 .eraseblocks = { {4 * 1024, 64} },
9659 .block_erase = spi_block_erase_20,
9660 }, {
9661 .eraseblocks = { {4 * 1024, 64} },
9662 .block_erase = spi_block_erase_d7,
9663 }, {
9664 .eraseblocks = { {32 * 1024, 8} },
9665 .block_erase = spi_block_erase_52,
9666 }, {
9667 .eraseblocks = { {64 * 1024, 4} },
9668 .block_erase = spi_block_erase_d8,
9669 }, {
9670 .eraseblocks = { {256 * 1024, 1} },
9671 .block_erase = spi_block_erase_60,
9672 }, {
9673 .eraseblocks = { {256 * 1024, 1} },
9674 .block_erase = spi_block_erase_c7,
9675 }
9676 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009677 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009678 .unlock = spi_disable_blockprotect_bp3_srwd,
9679 .write = spi_chip_write_256,
9680 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9681 .voltage = {2700, 3600},
9682 },
9683
9684 {
9685 .vendor = "Nantronics",
9686 .name = "N25S40",
9687 .bustype = BUS_SPI,
9688 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9689 .model_id = NANTRONICS_N25S40,
9690 .total_size = 512,
9691 .page_size = 256,
9692 .feature_bits = FEATURE_WRSR_WREN,
9693 .tested = TEST_UNTESTED,
9694 .probe = probe_spi_rdid,
9695 .probe_timing = TIMING_ZERO,
9696 .block_erasers =
9697 {
9698 {
9699 .eraseblocks = { {4 * 1024, 128} },
9700 .block_erase = spi_block_erase_20,
9701 }, {
9702 .eraseblocks = { {4 * 1024, 128} },
9703 .block_erase = spi_block_erase_d7,
9704 }, {
9705 .eraseblocks = { {32 * 1024, 16} },
9706 .block_erase = spi_block_erase_52,
9707 }, {
9708 .eraseblocks = { {64 * 1024, 8} },
9709 .block_erase = spi_block_erase_d8,
9710 }, {
9711 .eraseblocks = { {512 * 1024, 1} },
9712 .block_erase = spi_block_erase_60,
9713 }, {
9714 .eraseblocks = { {512 * 1024, 1} },
9715 .block_erase = spi_block_erase_c7,
9716 }
9717 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009718 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009719 .unlock = spi_disable_blockprotect_bp3_srwd,
9720 .write = spi_chip_write_256,
9721 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9722 .voltage = {2700, 3600},
9723 },
9724
9725 {
9726 .vendor = "Nantronics",
9727 .name = "N25S80",
9728 .bustype = BUS_SPI,
9729 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9730 .model_id = NANTRONICS_N25S80,
9731 .total_size = 1024,
9732 .page_size = 256,
9733 .feature_bits = FEATURE_WRSR_WREN,
9734 .tested = TEST_UNTESTED,
9735 .probe = probe_spi_rdid,
9736 .probe_timing = TIMING_ZERO,
9737 .block_erasers =
9738 {
9739 {
9740 .eraseblocks = { {4 * 1024, 256} },
9741 .block_erase = spi_block_erase_20,
9742 }, {
9743 .eraseblocks = { {32 * 1024, 32} },
9744 .block_erase = spi_block_erase_52,
9745 }, {
9746 .eraseblocks = { {64 * 1024, 16} },
9747 .block_erase = spi_block_erase_d8,
9748 }, {
9749 .eraseblocks = { {1024 * 1024, 1} },
9750 .block_erase = spi_block_erase_60,
9751 }, {
9752 .eraseblocks = { {1024 * 1024, 1} },
9753 .block_erase = spi_block_erase_c7,
9754 }
9755 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009756 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009757 .unlock = spi_disable_blockprotect_bp3_srwd,
9758 .write = spi_chip_write_256,
9759 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9760 .voltage = {2700, 3600},
9761 },
9762
9763 {
9764 .vendor = "Nantronics",
9765 .name = "N25S16",
9766 .bustype = BUS_SPI,
9767 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9768 .model_id = NANTRONICS_N25S16,
9769 .total_size = 2048,
9770 .page_size = 256,
9771 .feature_bits = FEATURE_WRSR_WREN,
9772 .tested = TEST_UNTESTED,
9773 .probe = probe_spi_rdid,
9774 .probe_timing = TIMING_ZERO,
9775 .block_erasers =
9776 {
9777 {
9778 .eraseblocks = { {4 * 1024, 512} },
9779 .block_erase = spi_block_erase_20,
9780 }, {
9781 .eraseblocks = { {64 * 1024, 32} },
9782 .block_erase = spi_block_erase_d8,
9783 }, {
9784 .eraseblocks = { {2048 * 1024, 1} },
9785 .block_erase = spi_block_erase_60,
9786 }, {
9787 .eraseblocks = { {2048 * 1024, 1} },
9788 .block_erase = spi_block_erase_c7,
9789 }
9790 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009791 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009792 .unlock = spi_disable_blockprotect_bp3_srwd,
9793 .write = spi_chip_write_256,
9794 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9795 .voltage = {2700, 3600},
9796 },
9797
9798 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009799 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009800 .name = "Pm25LD256C",
9801 .bustype = BUS_SPI,
9802 .manufacture_id = PMC_ID,
9803 .model_id = PMC_PM25LD256C,
9804 .total_size = 32,
9805 .page_size = 256,
9806 .feature_bits = FEATURE_WRSR_WREN,
9807 .tested = TEST_UNTESTED,
9808 .probe = probe_spi_rdid,
9809 .probe_timing = TIMING_ZERO,
9810 .block_erasers =
9811 {
9812 {
9813 .eraseblocks = { {4 * 1024, 8} },
9814 .block_erase = spi_block_erase_20,
9815 }, {
9816 .eraseblocks = { {4 * 1024, 8} },
9817 .block_erase = spi_block_erase_d7,
9818 }, {
9819 .eraseblocks = { {32 * 1024, 1} },
9820 .block_erase = spi_block_erase_d8,
9821 }, {
9822 .eraseblocks = { {32 * 1024, 1} },
9823 .block_erase = spi_block_erase_60,
9824 }, {
9825 .eraseblocks = { {32 * 1024, 1} },
9826 .block_erase = spi_block_erase_c7,
9827 }
9828 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009829 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009830 .unlock = spi_disable_blockprotect,
9831 .write = spi_chip_write_256,
9832 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9833 .voltage = {2700, 3600},
9834 },
9835 {
9836 .vendor = "PMC",
9837 .name = "Pm25LD512(C)",
9838 .bustype = BUS_SPI,
9839 .manufacture_id = PMC_ID,
9840 .model_id = PMC_PM25LD512,
9841 .total_size = 64,
9842 .page_size = 256,
9843 .feature_bits = FEATURE_WRSR_WREN,
9844 .tested = TEST_OK_PREW,
9845 .probe = probe_spi_rdid,
9846 .probe_timing = TIMING_ZERO,
9847 .block_erasers =
9848 {
9849 {
9850 .eraseblocks = { {4 * 1024, 16} },
9851 .block_erase = spi_block_erase_20,
9852 }, {
9853 .eraseblocks = { {4 * 1024, 16} },
9854 .block_erase = spi_block_erase_d7,
9855 }, {
9856 .eraseblocks = { {32 * 1024, 2} },
9857 .block_erase = spi_block_erase_d8,
9858 }, {
9859 .eraseblocks = { {64 * 1024, 1} },
9860 .block_erase = spi_block_erase_60,
9861 }, {
9862 .eraseblocks = { {64 * 1024, 1} },
9863 .block_erase = spi_block_erase_c7,
9864 }
9865 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009866 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009867 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9868 .write = spi_chip_write_256,
9869 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9870 .voltage = {2300, 3600},
9871 },
9872
9873 {
9874 .vendor = "PMC",
9875 .name = "Pm25LD010(C)",
9876 .bustype = BUS_SPI,
9877 .manufacture_id = PMC_ID,
9878 .model_id = PMC_PM25LD010,
9879 .total_size = 128,
9880 .page_size = 256,
9881 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009882 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009883 .probe = probe_spi_rdid,
9884 .probe_timing = TIMING_ZERO,
9885 .block_erasers =
9886 {
9887 {
9888 .eraseblocks = { {4 * 1024, 32} },
9889 .block_erase = spi_block_erase_20,
9890 }, {
9891 .eraseblocks = { {4 * 1024, 32} },
9892 .block_erase = spi_block_erase_d7,
9893 }, {
9894 .eraseblocks = { {32 * 1024, 4} },
9895 .block_erase = spi_block_erase_d8,
9896 }, {
9897 .eraseblocks = { {128 * 1024, 1} },
9898 .block_erase = spi_block_erase_60,
9899 }, {
9900 .eraseblocks = { {128 * 1024, 1} },
9901 .block_erase = spi_block_erase_c7,
9902 }
9903 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009904 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009905 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9906 .write = spi_chip_write_256,
9907 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9908 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9909 },
9910
9911 {
9912 .vendor = "PMC",
9913 .name = "Pm25LD020(C)",
9914 .bustype = BUS_SPI,
9915 .manufacture_id = PMC_ID,
9916 .model_id = PMC_PM25LD020,
9917 .total_size = 256,
9918 .page_size = 256,
9919 .feature_bits = FEATURE_WRSR_WREN,
9920 .tested = TEST_UNTESTED,
9921 .probe = probe_spi_rdid,
9922 .probe_timing = TIMING_ZERO,
9923 .block_erasers =
9924 {
9925 {
9926 .eraseblocks = { {4 * 1024, 64} },
9927 .block_erase = spi_block_erase_20,
9928 }, {
9929 .eraseblocks = { {4 * 1024, 64} },
9930 .block_erase = spi_block_erase_d7,
9931 }, {
9932 .eraseblocks = { {64 * 1024, 4} },
9933 .block_erase = spi_block_erase_d8,
9934 }, {
9935 .eraseblocks = { {256 * 1024, 1} },
9936 .block_erase = spi_block_erase_60,
9937 }, {
9938 .eraseblocks = { {256 * 1024, 1} },
9939 .block_erase = spi_block_erase_c7,
9940 }
9941 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009942 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009943 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9944 .write = spi_chip_write_256,
9945 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9946 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9947 },
9948
9949 {
9950 .vendor = "PMC",
9951 .name = "Pm25LD040(C)",
9952 .bustype = BUS_SPI,
9953 .manufacture_id = PMC_ID,
9954 .model_id = PMC_PM25LV040,
9955 .total_size = 512,
9956 .page_size = 256,
9957 .feature_bits = FEATURE_WRSR_WREN,
9958 .tested = TEST_UNTESTED,
9959 .probe = probe_spi_rdid,
9960 .probe_timing = TIMING_ZERO,
9961 .block_erasers =
9962 {
9963 {
9964 .eraseblocks = { {4 * 1024, 128} },
9965 .block_erase = spi_block_erase_20,
9966 }, {
9967 .eraseblocks = { {4 * 1024, 128} },
9968 .block_erase = spi_block_erase_d7,
9969 }, {
9970 .eraseblocks = { {64 * 1024, 8} },
9971 .block_erase = spi_block_erase_d8,
9972 }, {
9973 .eraseblocks = { {512 * 1024, 1} },
9974 .block_erase = spi_block_erase_60,
9975 }, {
9976 .eraseblocks = { {512 * 1024, 1} },
9977 .block_erase = spi_block_erase_c7,
9978 }
9979 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009980 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009981 .unlock = spi_disable_blockprotect,
9982 .write = spi_chip_write_256,
9983 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9984 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9985 },
9986
Steven Honeyman81a8fb72015-06-02 22:32:24 +00009987 {
9988 .vendor = "PMC",
9989 .name = "Pm25LQ020",
9990 .bustype = BUS_SPI,
9991 .manufacture_id = PMC_ID,
9992 .model_id = PMC_PM25LQ020,
9993 .total_size = 256,
9994 .page_size = 256,
9995 /* OTP: 256B total; read 0x4B, write 0xB1 */
9996 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9997 .tested = TEST_UNTESTED,
9998 .probe = probe_spi_rdid,
9999 .probe_timing = TIMING_ZERO,
10000 .block_erasers =
10001 {
10002 {
10003 .eraseblocks = { {4 * 1024, 64} },
10004 .block_erase = spi_block_erase_20,
10005 }, {
10006 .eraseblocks = { {4 * 1024, 64} },
10007 .block_erase = spi_block_erase_d7,
10008 }, {
10009 .eraseblocks = { {64 * 1024, 4} },
10010 .block_erase = spi_block_erase_d8,
10011 }, {
10012 .eraseblocks = { {256 * 1024, 1} },
10013 .block_erase = spi_block_erase_60,
10014 }, {
10015 .eraseblocks = { {256 * 1024, 1} },
10016 .block_erase = spi_block_erase_c7,
10017 }
10018 },
10019 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10020 .unlock = spi_disable_blockprotect_bp3_srwd,
10021 .write = spi_chip_write_256,
10022 .read = spi_chip_read,
10023 .voltage = {2300, 3600},
10024 },
10025
10026 {
10027 .vendor = "PMC",
10028 .name = "Pm25LQ040",
10029 .bustype = BUS_SPI,
10030 .manufacture_id = PMC_ID,
10031 .model_id = PMC_PM25LQ040,
10032 .total_size = 512,
10033 .page_size = 256,
10034 /* OTP: 256B total; read 0x4B, write 0xB1 */
10035 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10036 .tested = TEST_UNTESTED,
10037 .probe = probe_spi_rdid,
10038 .probe_timing = TIMING_ZERO,
10039 .block_erasers =
10040 {
10041 {
10042 .eraseblocks = { {4 * 1024, 128} },
10043 .block_erase = spi_block_erase_20,
10044 }, {
10045 .eraseblocks = { {4 * 1024, 128} },
10046 .block_erase = spi_block_erase_d7,
10047 }, {
10048 .eraseblocks = { {64 * 1024, 8} },
10049 .block_erase = spi_block_erase_d8,
10050 }, {
10051 .eraseblocks = { {512 * 1024, 1} },
10052 .block_erase = spi_block_erase_60,
10053 }, {
10054 .eraseblocks = { {512 * 1024, 1} },
10055 .block_erase = spi_block_erase_c7,
10056 }
10057 },
10058 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10059 .unlock = spi_disable_blockprotect_bp3_srwd,
10060 .write = spi_chip_write_256,
10061 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10062 .voltage = {2300, 3600},
10063 },
10064
10065 {
10066 .vendor = "PMC",
10067 .name = "Pm25LQ080",
10068 .bustype = BUS_SPI,
10069 .manufacture_id = PMC_ID,
10070 .model_id = PMC_PM25LQ080,
10071 .total_size = 1024,
10072 .page_size = 256,
10073 /* OTP: 64B total; read 0x4B, write 0xB1 */
10074 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10075 .tested = TEST_UNTESTED,
10076 .probe = probe_spi_rdid,
10077 .probe_timing = TIMING_ZERO,
10078 .block_erasers =
10079 {
10080 {
10081 .eraseblocks = { {4 * 1024, 256} },
10082 .block_erase = spi_block_erase_20,
10083 }, {
10084 .eraseblocks = { {4 * 1024, 256} },
10085 .block_erase = spi_block_erase_d7,
10086 }, {
10087 .eraseblocks = { {64 * 1024, 16} },
10088 .block_erase = spi_block_erase_d8,
10089 }, {
10090 .eraseblocks = { {1024 * 1024, 1} },
10091 .block_erase = spi_block_erase_60,
10092 }, {
10093 .eraseblocks = { {1024 * 1024, 1} },
10094 .block_erase = spi_block_erase_c7,
10095 }
10096 },
10097 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10098 .unlock = spi_disable_blockprotect_bp3_srwd,
10099 .write = spi_chip_write_256,
10100 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10101 .voltage = {2300, 3600},
10102 },
10103
10104 {
10105 .vendor = "PMC",
10106 .name = "Pm25LQ016",
10107 .bustype = BUS_SPI,
10108 .manufacture_id = PMC_ID,
10109 .model_id = PMC_PM25LQ016,
10110 .total_size = 2048,
10111 .page_size = 256,
10112 /* OTP: 256B total; read 0x4B, write 0xB1 */
10113 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10114 .tested = TEST_UNTESTED,
10115 .probe = probe_spi_rdid,
10116 .probe_timing = TIMING_ZERO,
10117 .block_erasers =
10118 {
10119 {
10120 .eraseblocks = { {4 * 1024, 512} },
10121 .block_erase = spi_block_erase_20,
10122 }, {
10123 .eraseblocks = { {4 * 1024, 512} },
10124 .block_erase = spi_block_erase_d7,
10125 }, {
10126 .eraseblocks = { {64 * 1024, 32} },
10127 .block_erase = spi_block_erase_d8,
10128 }, {
10129 .eraseblocks = { {2048 * 1024, 1} },
10130 .block_erase = spi_block_erase_60,
10131 }, {
10132 .eraseblocks = { {2048 * 1024, 1} },
10133 .block_erase = spi_block_erase_c7,
10134 }
10135 },
10136 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10137 .unlock = spi_disable_blockprotect_bp3_srwd,
10138 .write = spi_chip_write_256,
10139 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10140 .voltage = {2300, 3600},
10141 },
10142
10143 {
10144 .vendor = "PMC",
10145 .name = "Pm25LQ032C",
10146 .bustype = BUS_SPI,
10147 .manufacture_id = PMC_ID,
10148 .model_id = PMC_PM25LQ032C,
10149 .total_size = 4096,
10150 .page_size = 256,
10151 /* OTP: 64B total; read 0x4B, write 0xB1 */
10152 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010153 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010154 .probe = probe_spi_rdid,
10155 .probe_timing = TIMING_ZERO,
10156 .block_erasers =
10157 {
10158 {
10159 .eraseblocks = { {4 * 1024, 1024} },
10160 .block_erase = spi_block_erase_20,
10161 }, {
10162 .eraseblocks = { {4 * 1024, 1024} },
10163 .block_erase = spi_block_erase_d7,
10164 }, {
10165 .eraseblocks = { {64 * 1024, 64} },
10166 .block_erase = spi_block_erase_d8,
10167 }, {
10168 .eraseblocks = { {4096 * 1024, 1} },
10169 .block_erase = spi_block_erase_60,
10170 }, {
10171 .eraseblocks = { {4096 * 1024, 1} },
10172 .block_erase = spi_block_erase_c7,
10173 }
10174 },
10175 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10176 .unlock = spi_disable_blockprotect_bp3_srwd,
10177 .write = spi_chip_write_256,
10178 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10179 .voltage = {2700, 3600},
10180 },
10181
10182 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010183 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010184 .name = "Pm25LV512(A)",
10185 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010186 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010187 .model_id = PMC_PM25LV512,
10188 .total_size = 64,
10189 .page_size = 256,
10190 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010191 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010192 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010193 .probe_timing = TIMING_ZERO,
10194 .block_erasers =
10195 {
10196 {
10197 .eraseblocks = { {4 * 1024, 16} },
10198 .block_erase = spi_block_erase_d7,
10199 }, {
10200 .eraseblocks = { {32 * 1024, 2} },
10201 .block_erase = spi_block_erase_d8,
10202 }, {
10203 .eraseblocks = { {64 * 1024, 1} },
10204 .block_erase = spi_block_erase_c7,
10205 }
10206 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010207 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010208 .unlock = spi_disable_blockprotect,
10209 .write = spi_chip_write_256,
10210 .read = spi_chip_read, /* Fast read (0x0B) supported */
10211 .voltage = {2700, 3600},
10212 },
10213
10214 {
10215 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010216 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010217 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010218 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010219 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010220 .total_size = 128,
10221 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010222 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010223 .tested = TEST_OK_PREW,
10224 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010225 .probe_timing = TIMING_ZERO,
10226 .block_erasers =
10227 {
10228 {
10229 .eraseblocks = { {4 * 1024, 32} },
10230 .block_erase = spi_block_erase_d7,
10231 }, {
10232 .eraseblocks = { {32 * 1024, 4} },
10233 .block_erase = spi_block_erase_d8,
10234 }, {
10235 .eraseblocks = { {128 * 1024, 1} },
10236 .block_erase = spi_block_erase_c7,
10237 }
10238 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010239 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010240 .unlock = spi_disable_blockprotect,
10241 .write = spi_chip_write_256,
10242 .read = spi_chip_read, /* Fast read (0x0B) supported */
10243 .voltage = {2700, 3600},
10244 },
10245
10246 {
10247 .vendor = "PMC",
10248 .name = "Pm25LV010A",
10249 .bustype = BUS_SPI,
10250 .manufacture_id = PMC_ID,
10251 .model_id = PMC_PM25LV010,
10252 .total_size = 128,
10253 .page_size = 256,
10254 .feature_bits = FEATURE_WRSR_WREN,
10255 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010256 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010257 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010258 .block_erasers =
10259 {
10260 {
10261 .eraseblocks = { {4 * 1024, 32} },
10262 .block_erase = spi_block_erase_d7,
10263 }, {
10264 .eraseblocks = { {32 * 1024, 4} },
10265 .block_erase = spi_block_erase_d8,
10266 }, {
10267 .eraseblocks = { {128 * 1024, 1} },
10268 .block_erase = spi_block_erase_c7,
10269 }
10270 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010271 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010272 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010273 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010274 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010275 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010276 },
10277
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010278 {
10279 .vendor = "PMC",
10280 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010281 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010282 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010283 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010284 .total_size = 256,
10285 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010286 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010287 .tested = TEST_UNTESTED,
10288 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010289 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010290 .block_erasers =
10291 {
10292 {
10293 .eraseblocks = { {4 * 1024, 64} },
10294 .block_erase = spi_block_erase_d7,
10295 }, {
10296 .eraseblocks = { {64 * 1024, 4} },
10297 .block_erase = spi_block_erase_d8,
10298 }, {
10299 .eraseblocks = { {256 * 1024, 1} },
10300 .block_erase = spi_block_erase_c7,
10301 }
10302 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010303 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010304 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010305 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010306 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010307 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010308 },
10309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010310 {
10311 .vendor = "PMC",
10312 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010313 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010314 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010315 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010316 .total_size = 512,
10317 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010318 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000010319 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010321 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010322 .block_erasers =
10323 {
10324 {
10325 .eraseblocks = { {4 * 1024, 128} },
10326 .block_erase = spi_block_erase_d7,
10327 }, {
10328 .eraseblocks = { {64 * 1024, 8} },
10329 .block_erase = spi_block_erase_d8,
10330 }, {
10331 .eraseblocks = { {512 * 1024, 1} },
10332 .block_erase = spi_block_erase_c7,
10333 }
10334 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010335 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010336 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010337 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010338 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010339 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010340 },
10341
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010342 {
10343 .vendor = "PMC",
10344 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010345 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010346 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010347 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010348 .total_size = 1024,
10349 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010350 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010351 .tested = TEST_UNTESTED,
10352 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010353 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010354 .block_erasers =
10355 {
10356 {
10357 .eraseblocks = { {4 * 1024, 256} },
10358 .block_erase = spi_block_erase_d7,
10359 }, {
10360 .eraseblocks = { {4 * 1024, 256} },
10361 .block_erase = spi_block_erase_20,
10362 }, {
10363 .eraseblocks = { {64 * 1024, 16} },
10364 .block_erase = spi_block_erase_d8,
10365 }, {
10366 .eraseblocks = { {1024 * 1024, 1} },
10367 .block_erase = spi_block_erase_60,
10368 }, {
10369 .eraseblocks = { {1024 * 1024, 1} },
10370 .block_erase = spi_block_erase_c7,
10371 }
10372 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010373 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010374 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010375 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010376 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010377 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010378 },
10379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010380 {
10381 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010382 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010383 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010384 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010385 .model_id = PMC_PM25LV016B,
10386 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010387 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010388 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010389 .tested = TEST_UNTESTED,
10390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010391 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010392 .block_erasers =
10393 {
10394 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010395 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000010396 .block_erase = spi_block_erase_d7,
10397 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010398 .eraseblocks = { {4 * 1024, 512} },
10399 .block_erase = spi_block_erase_20,
10400 }, {
10401 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000010402 .block_erase = spi_block_erase_d8,
10403 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010404 .eraseblocks = { {2 * 1024 * 1024, 1} },
10405 .block_erase = spi_block_erase_60,
10406 }, {
10407 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010408 .block_erase = spi_block_erase_c7,
10409 }
10410 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010411 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010412 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010413 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010414 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010415 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010416 },
10417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010418 {
10419 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010420 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010421 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010422 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010423 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010424 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010425 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010426 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010427 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010428 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010429 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010430 .block_erasers =
10431 {
10432 {
10433 .eraseblocks = {
10434 {128 * 1024, 1},
10435 {96 * 1024, 1},
10436 {8 * 1024, 2},
10437 {16 * 1024, 1},
10438 },
Sean Nelson35727f72010-01-28 23:55:12 +000010439 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010440 }, {
10441 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010442 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010443 },
10444 },
Sean Nelson35727f72010-01-28 23:55:12 +000010445 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010447 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010448 },
10449
10450 {
10451 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010452 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010453 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010454 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010455 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010456 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010457 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010458 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010459 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010460 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010461 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010462 .block_erasers =
10463 {
10464 {
10465 .eraseblocks = {
10466 {16 * 1024, 1},
10467 {8 * 1024, 2},
10468 {96 * 1024, 1},
10469 {128 * 1024, 1},
10470 },
Sean Nelson35727f72010-01-28 23:55:12 +000010471 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010472 }, {
10473 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010474 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010475 },
10476 },
Sean Nelson35727f72010-01-28 23:55:12 +000010477 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010479 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010480 },
10481
10482 {
10483 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010484 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010485 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010486 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010487 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010488 .total_size = 128,
10489 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010490 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010491 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010492 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010493 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000010494 .block_erasers =
10495 {
10496 {
10497 .eraseblocks = { {4 * 1024, 32} },
10498 .block_erase = erase_sector_jedec,
10499 }, {
10500 .eraseblocks = { {64 * 1024, 2} },
10501 .block_erase = erase_block_jedec,
10502 }, {
10503 .eraseblocks = { {128 * 1024, 1} },
10504 .block_erase = erase_chip_block_jedec,
10505 }
10506 },
Sean Nelson35727f72010-01-28 23:55:12 +000010507 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010509 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010510 },
10511
10512 {
10513 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010514 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010515 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010516 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010517 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010518 .total_size = 256,
10519 .page_size = 4096,
10520 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10521 .tested = TEST_UNTESTED,
10522 .probe = probe_jedec,
10523 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10524 .block_erasers =
10525 {
10526 {
10527 .eraseblocks = { {4 * 1024, 64} },
10528 .block_erase = erase_sector_jedec,
10529 }, {
10530 .eraseblocks = { {64 * 1024, 4} },
10531 .block_erase = erase_block_jedec,
10532 }, {
10533 .eraseblocks = { {256 * 1024, 1} },
10534 .block_erase = erase_chip_block_jedec,
10535 }
10536 },
10537 .write = write_jedec_1,
10538 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010539 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010540 },
10541
10542 {
10543 .vendor = "PMC",
10544 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010545 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010546 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010547 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010548 .total_size = 512,
10549 .page_size = 4096,
10550 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010551 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010552 .probe = probe_jedec,
10553 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10554 .block_erasers =
10555 {
10556 {
10557 .eraseblocks = { {4 * 1024, 128} },
10558 .block_erase = erase_sector_jedec,
10559 }, {
10560 .eraseblocks = { {64 * 1024, 8} },
10561 .block_erase = erase_block_jedec,
10562 }, {
10563 .eraseblocks = { {512 * 1024, 1} },
10564 .block_erase = erase_chip_block_jedec,
10565 }
10566 },
10567 .write = write_jedec_1,
10568 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010569 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010570 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000010571
10572 {
10573 .vendor = "PMC",
10574 .name = "Pm39LV512",
10575 .bustype = BUS_PARALLEL,
10576 .manufacture_id = PMC_ID_NOPREFIX,
10577 .model_id = PMC_PM39LV512,
10578 .total_size = 64,
10579 .page_size = 4096,
10580 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10581 .tested = TEST_OK_PREW,
10582 .probe = probe_jedec,
10583 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10584 .block_erasers =
10585 {
10586 {
10587 .eraseblocks = { {4 * 1024, 16} },
10588 .block_erase = erase_sector_jedec,
10589 }, {
10590 .eraseblocks = { {64 * 1024, 1} },
10591 .block_erase = erase_block_jedec,
10592 }, {
10593 .eraseblocks = { {64 * 1024, 1} },
10594 .block_erase = erase_chip_block_jedec,
10595 }
10596 },
10597 .write = write_jedec_1,
10598 .read = read_memmapped,
10599 .voltage = {2700, 3600},
10600 },
10601
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010602 {
10603 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010604 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010605 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010606 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010607 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010608 .total_size = 256,
10609 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010610 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010611 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010612 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010613 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000010614 .block_erasers =
10615 {
10616 {
10617 .eraseblocks = { {4 * 1024, 64} },
10618 .block_erase = erase_sector_jedec,
10619 }, {
10620 .eraseblocks = { {16 * 1024, 16} },
10621 .block_erase = erase_block_jedec,
10622 }, {
10623 .eraseblocks = { {256 * 1024, 1} },
10624 .block_erase = erase_chip_block_jedec,
10625 }
10626 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010627 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000010628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010630 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010631 },
10632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010633 {
10634 .vendor = "PMC",
10635 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010636 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010637 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010638 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010639 .total_size = 512,
10640 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010641 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000010642 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010643 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000010644 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010645 .block_erasers =
10646 {
10647 {
10648 .eraseblocks = { {4 * 1024, 128} },
10649 .block_erase = erase_sector_jedec,
10650 }, {
10651 .eraseblocks = { {64 * 1024, 8} },
10652 .block_erase = erase_block_jedec,
10653 }, {
10654 .eraseblocks = { {512 * 1024, 1} },
10655 .block_erase = erase_chip_block_jedec,
10656 }
10657 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010658 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000010659 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010661 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010662 },
10663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010664 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000010665 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000010666 .name = "LE25FW106",
10667 .bustype = BUS_SPI,
10668 .manufacture_id = SANYO_ID,
10669 .model_id = SANYO_LE25FW106,
10670 .total_size = 128,
10671 .page_size = 256,
10672 .feature_bits = FEATURE_WRSR_WREN,
10673 .tested = TEST_OK_PREW,
10674 .probe = probe_spi_res2,
10675 .probe_timing = TIMING_ZERO,
10676 .block_erasers = {
10677 {
10678 .eraseblocks = { {2 * 1024, 64} },
10679 .block_erase = spi_block_erase_d7,
10680 }, {
10681 .eraseblocks = { {32 * 1024, 4} },
10682 .block_erase = spi_block_erase_d8,
10683 }, {
10684 .eraseblocks = { {128 * 1024, 1} },
10685 .block_erase = spi_block_erase_c7,
10686 }
10687 },
10688 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
10689 .unlock = spi_disable_blockprotect_bp1_srwd,
10690 .write = spi_chip_write_256,
10691 .read = spi_chip_read,
10692 .voltage = {2700, 3600},
10693 },
10694
10695 {
10696 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000010697 .name = "LE25FW406A",
10698 .bustype = BUS_SPI,
10699 .manufacture_id = SANYO_ID,
10700 .model_id = SANYO_LE25FW406A,
10701 .total_size = 512,
10702 .page_size = 256,
10703 .feature_bits = FEATURE_WRSR_WREN,
10704 .tested = TEST_OK_PREW,
10705 .probe = probe_spi_res2,
10706 .probe_timing = TIMING_ZERO,
10707 .block_erasers = {
10708 {
10709 .eraseblocks = { {4 * 1024, 128} },
10710 .block_erase = spi_block_erase_d7,
10711 }, {
10712 .eraseblocks = { {64 * 1024, 8} },
10713 .block_erase = spi_block_erase_d8,
10714 }, {
10715 .eraseblocks = { {512 * 1024, 1} },
10716 .block_erase = spi_block_erase_c7,
10717 }
10718 },
10719 .printlock = spi_prettyprint_status_register_plain,
10720 .unlock = spi_disable_blockprotect,
10721 .write = spi_chip_write_256,
10722 .read = spi_chip_read,
10723 .voltage = {2700, 3600},
10724 },
10725
10726 {
10727 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000010728 .name = "LE25FU406B",
10729 .bustype = BUS_SPI,
10730 .manufacture_id = SANYO_ID,
10731 .model_id = SANYO_LE25FU406B,
10732 .total_size = 512,
10733 .page_size = 256,
10734 .feature_bits = FEATURE_WRSR_WREN,
10735 .tested = TEST_OK_PREW,
10736 .probe = probe_spi_res2,
10737 .probe_timing = TIMING_ZERO,
10738 .block_erasers = {
10739 {
10740 .eraseblocks = { {4 * 1024, 128} },
10741 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010742 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000010743 .eraseblocks = { {64 * 1024, 8} },
10744 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010745 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000010746 .eraseblocks = { {512 * 1024, 1} },
10747 .block_erase = spi_block_erase_c7,
10748 }
10749 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010750 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000010751 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10752 .write = spi_chip_write_256,
10753 .read = spi_chip_read,
10754 .voltage = {2300, 3600},
10755 },
10756
10757 {
10758 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000010759 .name = "LE25FU406C/LE25U40CMC",
10760 .bustype = BUS_SPI,
10761 .manufacture_id = SANYO_ID,
10762 .model_id = SANYO_LE25FU406C,
10763 .total_size = 512,
10764 .page_size = 256,
10765 .feature_bits = FEATURE_WRSR_WREN,
10766 .tested = TEST_OK_PR,
10767 .probe = probe_spi_rdid,
10768 .probe_timing = TIMING_ZERO,
10769 .block_erasers = {
10770 {
10771 .eraseblocks = { {4 * 1024, 128} },
10772 .block_erase = spi_block_erase_20,
10773 }, {
10774 .eraseblocks = { {4 * 1024, 128} },
10775 .block_erase = spi_block_erase_d7,
10776 }, {
10777 .eraseblocks = { {64 * 1024, 8} },
10778 .block_erase = spi_block_erase_d8,
10779 }, {
10780 .eraseblocks = { {512 * 1024, 1} },
10781 .block_erase = spi_block_erase_60,
10782 }, {
10783 .eraseblocks = { {512 * 1024, 1} },
10784 .block_erase = spi_block_erase_c7,
10785 }
10786 },
10787 .printlock = spi_prettyprint_status_register_bp2_srwd,
10788 .unlock = spi_disable_blockprotect_bp2_srwd,
10789 .write = spi_chip_write_256,
10790 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
10791 .voltage = {2300, 3600},
10792 },
10793
10794 {
10795 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010796 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010797 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000010798 .manufacture_id = SANYO_ID,
10799 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010800 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000010801 .page_size = 256,
10802 .tested = TEST_UNTESTED,
10803 .probe = probe_spi_rdid,
10804 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010805 .block_erasers =
10806 {
10807 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010808 .eraseblocks = { {256, 1024} },
10809 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010810 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010811 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000010812 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010813 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010814 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010815 .block_erase = spi_block_erase_c7,
10816 }
10817 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010818 .printlock = spi_prettyprint_status_register_default_welwip,
10819 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000010820 .write = spi_chip_write_256,
10821 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010822 .voltage = {2700, 3600},
10823 },
10824
10825 {
10826 .vendor = "Sanyo",
10827 .name = "LE25FW403A",
10828 .bustype = BUS_SPI,
10829 .manufacture_id = SANYO_ID,
10830 .model_id = SANYO_LE25FW403A,
10831 .total_size = 512,
10832 .page_size = 256,
10833 .tested = TEST_UNTESTED,
10834 .probe = probe_spi_rdid,
10835 .probe_timing = TIMING_ZERO,
10836 .block_erasers = {
10837 {
10838 .eraseblocks = { {256, 2 * 1024} },
10839 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010840 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010841 .eraseblocks = { {64 * 1024, 8} },
10842 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010843 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010844 .eraseblocks = { {512 * 1024, 1} },
10845 .block_erase = spi_block_erase_c7,
10846 }
10847 },
10848 .printlock = spi_prettyprint_status_register_default_welwip,
10849 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10850 .write = spi_chip_write_256,
10851 .read = spi_chip_read,
10852 .voltage = {2700, 3600},
10853 },
10854
10855 {
10856 .vendor = "Sanyo",
10857 .name = "LE25FW418A",
10858 .bustype = BUS_SPI,
10859 .manufacture_id = SANYO_ID,
10860 .model_id = SANYO_LE25FW418A,
10861 .total_size = 512,
10862 .page_size = 256,
10863 .feature_bits = FEATURE_WRSR_WREN,
10864 .tested = TEST_UNTESTED,
10865 .probe = probe_spi_res2,
10866 .probe_timing = TIMING_ZERO,
10867 .block_erasers = {
10868 {
10869 .eraseblocks = { {4 * 1024, 128} },
10870 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010871 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010872 .eraseblocks = { {64 * 1024, 8} },
10873 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010874 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010875 .eraseblocks = { {512 * 1024, 1} },
10876 .block_erase = spi_block_erase_c7,
10877 }
10878 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010879 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010880 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10881 .write = spi_chip_write_256,
10882 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10883 .voltage = {2700, 3600},
10884 },
10885
10886 {
10887 .vendor = "Sanyo",
10888 .name = "LE25FW806",
10889 .bustype = BUS_SPI,
10890 .manufacture_id = SANYO_ID,
10891 .model_id = SANYO_LE25FW806,
10892 .total_size = 1024,
10893 .page_size = 256,
10894 .feature_bits = FEATURE_WRSR_WREN,
10895 .tested = TEST_UNTESTED,
10896 .probe = probe_spi_res2,
10897 .probe_timing = TIMING_ZERO,
10898 .block_erasers = {
10899 {
10900 .eraseblocks = { {4 * 1024, 256} },
10901 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010902 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010903 .eraseblocks = { {4 * 1024, 256} },
10904 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010905 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010906 .eraseblocks = { {64 * 1024, 16} },
10907 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010908 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010909 .eraseblocks = { {1024 * 1024, 1} },
10910 .block_erase = spi_block_erase_c7,
10911 }
10912 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010913 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010914 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10915 .write = spi_chip_write_256,
10916 .read = spi_chip_read,
10917 .voltage = {2700, 3600},
10918 },
10919
10920 {
10921 .vendor = "Sanyo",
10922 .name = "LE25FW808",
10923 .bustype = BUS_SPI,
10924 .manufacture_id = SANYO_ID,
10925 .model_id = SANYO_LE25FW808,
10926 .total_size = 1024,
10927 .page_size = 256,
10928 .feature_bits = FEATURE_WRSR_WREN,
10929 .tested = TEST_UNTESTED,
10930 .probe = probe_spi_res2,
10931 .probe_timing = TIMING_ZERO,
10932 .block_erasers = {
10933 {
10934 .eraseblocks = { {8 * 1024, 128} },
10935 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010936 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010937 .eraseblocks = { {64 * 1024, 16} },
10938 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010939 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010940 .eraseblocks = { {1024 * 1024, 1} },
10941 .block_erase = spi_block_erase_c7,
10942 }
10943 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010944 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010945 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10946 .write = spi_chip_write_256,
10947 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10948 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010949 },
10950
10951 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010952 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010953 .name = "LH28F008BJT-BTLZ1",
10954 .bustype = BUS_PARALLEL,
10955 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010956 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010957 .total_size = 1024,
10958 .page_size = 64 * 1024,
10959 .tested = TEST_OK_PREW,
10960 .probe = probe_82802ab,
10961 .probe_timing = TIMING_ZERO,
10962 .block_erasers =
10963 {
10964 {
10965 .eraseblocks = {
10966 {8 * 1024, 8},
10967 {64 * 1024, 15}
10968 },
10969 .block_erase = erase_block_82802ab,
10970 }, {
10971 .eraseblocks = { {1024 * 1024, 1} },
10972 .block_erase = erase_sector_49lfxxxc,
10973 }
10974 },
10975 .unlock = unlock_lh28f008bjt,
10976 .write = write_82802ab,
10977 .read = read_memmapped,
10978 .voltage = {2700, 3600},
10979 },
10980
10981 {
10982 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010983 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010984 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010985 .manufacture_id = SHARP_ID,
10986 .model_id = SHARP_LHF00L04,
10987 .total_size = 1024,
10988 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010989 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010990 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010991 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010992 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010993 .block_erasers =
10994 {
10995 {
10996 .eraseblocks = {
10997 {64 * 1024, 15},
10998 {8 * 1024, 8}
10999 },
Sean Nelson28accc22010-03-19 18:47:06 +000011000 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011001 }, {
11002 .eraseblocks = {
11003 {1024 * 1024, 1}
11004 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011005 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011006 },
11007 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011008 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011009 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011011 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011012 },
11013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011014 {
11015 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011016 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011017 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011018 .manufacture_id = SPANSION_ID,
11019 .model_id = SPANSION_S25FL004A,
11020 .total_size = 512,
11021 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011022 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011023 .tested = TEST_UNTESTED,
11024 .probe = probe_spi_rdid,
11025 .probe_timing = TIMING_ZERO,
11026 .block_erasers =
11027 {
11028 {
11029 .eraseblocks = { {64 * 1024, 8} },
11030 .block_erase = spi_block_erase_d8,
11031 }, {
11032 .eraseblocks = { {512 * 1024, 1} },
11033 .block_erase = spi_block_erase_c7,
11034 }
11035 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011036 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011037 .unlock = spi_disable_blockprotect,
11038 .write = spi_chip_write_256,
11039 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011040 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011041 },
11042
11043 {
11044 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011045 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011046 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011047 .manufacture_id = SPANSION_ID,
11048 .model_id = SPANSION_S25FL008A,
11049 .total_size = 1024,
11050 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011051 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011052 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011053 .probe = probe_spi_rdid,
11054 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011055 .block_erasers =
11056 {
11057 {
11058 .eraseblocks = { {64 * 1024, 16} },
11059 .block_erase = spi_block_erase_d8,
11060 }, {
11061 .eraseblocks = { {1024 * 1024, 1} },
11062 .block_erase = spi_block_erase_c7,
11063 }
11064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011065 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011066 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011067 .write = spi_chip_write_256,
11068 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011069 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011070 },
11071
11072 {
11073 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011074 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011075 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011076 .manufacture_id = SPANSION_ID,
11077 .model_id = SPANSION_S25FL016A,
11078 .total_size = 2048,
11079 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011080 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011081 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011082 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011083 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011084 .block_erasers =
11085 {
11086 {
11087 .eraseblocks = { {64 * 1024, 32} },
11088 .block_erase = spi_block_erase_d8,
11089 }, {
11090 .eraseblocks = { {2 * 1024 * 1024, 1} },
11091 .block_erase = spi_block_erase_c7,
11092 }
11093 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011095 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011096 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011097 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011098 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011099 },
11100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011101 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011102 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011103 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011104 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011105 .manufacture_id = SPANSION_ID,
11106 .model_id = SPANSION_S25FL032A,
11107 .total_size = 4096,
11108 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011109 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011110 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011111 .probe = probe_spi_rdid,
11112 .probe_timing = TIMING_ZERO,
11113 .block_erasers =
11114 {
11115 {
11116 .eraseblocks = { {64 * 1024, 64} },
11117 .block_erase = spi_block_erase_d8,
11118 }, {
11119 .eraseblocks = { {4 * 1024 * 1024, 1} },
11120 .block_erase = spi_block_erase_c7,
11121 }
11122 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011123 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011124 .unlock = spi_disable_blockprotect,
11125 .write = spi_chip_write_256,
11126 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011127 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011128 },
11129
11130 {
11131 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011132 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011133 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011134 .manufacture_id = SPANSION_ID,
11135 .model_id = SPANSION_S25FL064A,
11136 .total_size = 8192,
11137 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011138 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011139 .tested = TEST_OK_PREW,
11140 .probe = probe_spi_rdid,
11141 .probe_timing = TIMING_ZERO,
11142 .block_erasers =
11143 {
11144 {
11145 .eraseblocks = { {64 * 1024, 128} },
11146 .block_erase = spi_block_erase_d8,
11147 }, {
11148 .eraseblocks = { {8 * 1024 * 1024, 1} },
11149 .block_erase = spi_block_erase_c7,
11150 }
11151 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011152 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011153 .unlock = spi_disable_blockprotect,
11154 .write = spi_chip_write_256,
11155 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011156 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011157 },
11158
11159 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011160 .vendor = "Spansion",
11161 .name = "S25FL204K",
11162 .bustype = BUS_SPI,
11163 .manufacture_id = SPANSION_ID,
11164 .model_id = SPANSION_S25FL204,
11165 .total_size = 512,
11166 .page_size = 256,
11167 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011168 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011169 .probe = probe_spi_rdid,
11170 .probe_timing = TIMING_ZERO,
11171 .block_erasers = {
11172 {
11173 .eraseblocks = { {4 * 1024, 128} },
11174 .block_erase = spi_block_erase_20,
11175 }, {
11176 .eraseblocks = { {64 * 1024, 8} },
11177 .block_erase = spi_block_erase_d8,
11178 }, {
11179 .eraseblocks = { { 512 * 1024, 1} },
11180 .block_erase = spi_block_erase_60,
11181 }, {
11182 .eraseblocks = { { 512 * 1024, 1} },
11183 .block_erase = spi_block_erase_c7,
11184 }
11185 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011186 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011187 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011188 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011189 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011190 .voltage = {2700, 3600},
11191 },
11192
11193 {
11194 .vendor = "Spansion",
11195 .name = "S25FL208K",
11196 .bustype = BUS_SPI,
11197 .manufacture_id = SPANSION_ID,
11198 .model_id = SPANSION_S25FL208,
11199 .total_size = 1024,
11200 .page_size = 256,
11201 .feature_bits = FEATURE_WRSR_WREN,
11202 .tested = TEST_UNTESTED,
11203 .probe = probe_spi_rdid,
11204 .probe_timing = TIMING_ZERO,
11205 .block_erasers = {
11206 {
11207 .eraseblocks = { {4 * 1024, 256} },
11208 .block_erase = spi_block_erase_20,
11209 }, {
11210 .eraseblocks = { {64 * 1024, 16} },
11211 .block_erase = spi_block_erase_d8,
11212 }, {
11213 .eraseblocks = { { 1024 * 1024, 1} },
11214 .block_erase = spi_block_erase_60,
11215 }, {
11216 .eraseblocks = { { 1024 * 1024, 1} },
11217 .block_erase = spi_block_erase_c7,
11218 }
11219 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011220 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011221 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011222 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011223 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011224 .voltage = {2700, 3600},
11225 },
11226
11227 {
11228 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011229 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011230 .bustype = BUS_SPI,
11231 .manufacture_id = SPANSION_ID,
11232 .model_id = SPANSION_S25FL216,
11233 .total_size = 2048,
11234 .page_size = 256,
11235 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11236 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11237 .tested = TEST_UNTESTED,
11238 .probe = probe_spi_rdid,
11239 .probe_timing = TIMING_ZERO,
11240 .block_erasers = {
11241 {
11242 .eraseblocks = { {4 * 1024, 512} },
11243 .block_erase = spi_block_erase_20,
11244 }, {
11245 .eraseblocks = { {64 * 1024, 32} },
11246 .block_erase = spi_block_erase_d8,
11247 }, {
11248 .eraseblocks = { { 2048 * 1024, 1} },
11249 .block_erase = spi_block_erase_60,
11250 }, {
11251 .eraseblocks = { { 2048 * 1024, 1} },
11252 .block_erase = spi_block_erase_c7,
11253 }
11254 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011255 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011256 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011257 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011258 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011259 .voltage = {2700, 3600},
11260 },
11261
11262 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011263 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011264 .name = "S25FL132K",
11265 .bustype = BUS_SPI,
11266 .manufacture_id = SPANSION_ID,
11267 .model_id = SPANSION_S25FL132K,
11268 .total_size = 4096,
11269 .page_size = 256,
11270 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11271 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11272 .tested = TEST_UNTESTED,
11273 .probe = probe_spi_rdid,
11274 .probe_timing = TIMING_ZERO,
11275 .block_erasers = {
11276 {
11277 .eraseblocks = { {4 * 1024, 1024} },
11278 .block_erase = spi_block_erase_20,
11279 }, {
11280 .eraseblocks = { {64 * 1024, 64} },
11281 .block_erase = spi_block_erase_d8,
11282 }, {
11283 .eraseblocks = { { 4096 * 1024, 1} },
11284 .block_erase = spi_block_erase_60,
11285 }, {
11286 .eraseblocks = { { 4096 * 1024, 1} },
11287 .block_erase = spi_block_erase_c7,
11288 }
11289 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011290 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011291 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11292 .write = spi_chip_write_256,
11293 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11294 .voltage = {2700, 3600},
11295 },
11296
11297 {
11298 .vendor = "Spansion",
11299 .name = "S25FL164K",
11300 .bustype = BUS_SPI,
11301 .manufacture_id = SPANSION_ID,
11302 .model_id = SPANSION_S25FL164K,
11303 .total_size = 8192,
11304 .page_size = 256,
11305 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11306 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11307 .tested = TEST_OK_PREW,
11308 .probe = probe_spi_rdid,
11309 .probe_timing = TIMING_ZERO,
11310 .block_erasers = {
11311 {
11312 .eraseblocks = { {4 * 1024, 2048} },
11313 .block_erase = spi_block_erase_20,
11314 }, {
11315 .eraseblocks = { {64 * 1024, 128} },
11316 .block_erase = spi_block_erase_d8,
11317 }, {
11318 .eraseblocks = { { 8192 * 1024, 1} },
11319 .block_erase = spi_block_erase_60,
11320 }, {
11321 .eraseblocks = { { 8192 * 1024, 1} },
11322 .block_erase = spi_block_erase_c7,
11323 }
11324 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011325 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011326 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11327 .write = spi_chip_write_256,
11328 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11329 .voltage = {2700, 3600},
11330 },
11331
11332 {
11333 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000011334 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11335 .bustype = BUS_SPI,
11336 .manufacture_id = SPANSION_ID,
11337 .model_id = SPANSION_S25FL128,
11338 .total_size = 16384,
11339 .page_size = 256,
11340 /* supports 4B addressing */
11341 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11343 .tested = TEST_OK_PREW,
11344 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
11345 .probe = probe_spi_rdid,
11346 .probe_timing = TIMING_ZERO,
11347 .block_erasers = {
11348 {
11349 /* This chip supports erasing of 32 so-called "parameter sectors" with
11350 * opcode 0x20 which may be configured to be on top or bottom of the address
11351 * space. Trying to access an address outside these 4kB blocks does have no
11352 * effect on the memory contents, e.g.
11353 .eraseblocks = {
11354 {4 * 1024, 32},
11355 {64 * 1024, 254} // inaccessible
11356 },
11357 .block_erase = spi_block_erase_20,
11358 }, { */
11359 .eraseblocks = { { 64 * 1024, 256} },
11360 .block_erase = spi_block_erase_d8,
11361 }, {
11362 .eraseblocks = { { 16384 * 1024, 1} },
11363 .block_erase = spi_block_erase_60,
11364 }, {
11365 .eraseblocks = { { 16384 * 1024, 1} },
11366 .block_erase = spi_block_erase_c7,
11367 }
11368 },
11369 .printlock = spi_prettyprint_status_register_bp2_srwd,
11370 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11371 .write = spi_chip_write_256, /* Multi I/O supported */
11372 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11373 .voltage = {2700, 3600},
11374 },
11375
11376 {
11377 .vendor = "Spansion",
11378 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
11379 .bustype = BUS_SPI,
11380 .manufacture_id = SPANSION_ID,
11381 .model_id = SPANSION_S25FL128,
11382 .total_size = 16384,
11383 .page_size = 512,
11384 /* supports 4B addressing */
11385 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11387 .tested = TEST_UNTESTED,
11388 .probe = probe_spi_rdid,
11389 .probe_timing = TIMING_ZERO,
11390 .block_erasers = {
11391 {
11392 .eraseblocks = { {256 * 1024, 64} },
11393 .block_erase = spi_block_erase_d8,
11394 }, {
11395 .eraseblocks = { { 16384 * 1024, 1} },
11396 .block_erase = spi_block_erase_60,
11397 }, {
11398 .eraseblocks = { { 16384 * 1024, 1} },
11399 .block_erase = spi_block_erase_c7,
11400 }
11401 },
11402 .printlock = spi_prettyprint_status_register_bp2_srwd,
11403 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11404 .write = spi_chip_write_256, /* Multi I/O supported */
11405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11406 .voltage = {2700, 3600},
11407 },
11408
11409 {
11410 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000011411 .name = "S25FL128P......0", /* uniform 64 kB sectors */
11412 .bustype = BUS_SPI,
11413 .manufacture_id = SPANSION_ID,
11414 .model_id = SPANSION_S25FL128,
11415 .total_size = 16384,
11416 .page_size = 256,
11417 .feature_bits = FEATURE_WRSR_WREN,
11418 .tested = TEST_UNTESTED,
11419 .probe = probe_spi_rdid,
11420 .probe_timing = TIMING_ZERO,
11421 .block_erasers = {
11422 {
11423 .eraseblocks = { {64 * 1024, 256} },
11424 .block_erase = spi_block_erase_20,
11425 }, {
11426 .eraseblocks = { {64 * 1024, 256} },
11427 .block_erase = spi_block_erase_d8,
11428 }, {
11429 .eraseblocks = { { 16384 * 1024, 1} },
11430 .block_erase = spi_block_erase_60,
11431 }, {
11432 .eraseblocks = { { 16384 * 1024, 1} },
11433 .block_erase = spi_block_erase_c7,
11434 }
11435 },
11436 .printlock = spi_prettyprint_status_register_bp3_srwd,
11437 .unlock = spi_disable_blockprotect_bp3_srwd,
11438 .write = spi_chip_write_256,
11439 .read = spi_chip_read, /* Fast read (0x0B) supported */
11440 .voltage = {2700, 3600},
11441 },
11442
11443 {
11444 .vendor = "Spansion",
11445 .name = "S25FL128P......1", /* uniform 256kB sectors */
11446 .bustype = BUS_SPI,
11447 .manufacture_id = SPANSION_ID,
11448 .model_id = SPANSION_S25FL128,
11449 .total_size = 16384,
11450 .page_size = 256,
11451 .feature_bits = FEATURE_WRSR_WREN,
11452 .tested = TEST_UNTESTED,
11453 .probe = probe_spi_rdid,
11454 .probe_timing = TIMING_ZERO,
11455 .block_erasers = {
11456 {
11457 .eraseblocks = { {256 * 1024, 64} },
11458 .block_erase = spi_block_erase_d8,
11459 }, {
11460 .eraseblocks = { { 16384 * 1024, 1} },
11461 .block_erase = spi_block_erase_c7,
11462 }
11463 },
11464 .printlock = spi_prettyprint_status_register_bp2_srwd,
11465 .unlock = spi_disable_blockprotect_bp2_srwd,
11466 .write = spi_chip_write_256,
11467 .read = spi_chip_read, /* Fast read (0x0B) supported */
11468 .voltage = {2700, 3600},
11469 },
11470
11471 {
11472 .vendor = "Spansion",
11473 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011474 .bustype = BUS_SPI,
11475 .manufacture_id = SPANSION_ID,
11476 .model_id = SPANSION_S25FL128,
11477 .total_size = 16384,
11478 .page_size = 256,
11479 /* supports 4B addressing */
11480 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11481 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011482 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011483 .probe = probe_spi_rdid,
11484 .probe_timing = TIMING_ZERO,
11485 .block_erasers = {
11486 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011487 /* This chip supports erasing of the 32 so-called "parameter sectors" with
11488 * opcode 0x20. Trying to access an address outside these 4kB blocks does
11489 * have no effect on the memory contents, but sets a flag in the SR.
11490 .eraseblocks = {
11491 {4 * 1024, 32},
11492 {64 * 1024, 254} // inaccessible
11493 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011494 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000011495 }, { */
11496 .eraseblocks = { { 64 * 1024, 256} },
11497 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011498 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000011499 .eraseblocks = { { 16384 * 1024, 1} },
11500 .block_erase = spi_block_erase_60,
11501 }, {
11502 .eraseblocks = { { 16384 * 1024, 1} },
11503 .block_erase = spi_block_erase_c7,
11504 }
11505 },
11506 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11507 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11508 .write = spi_chip_write_256, /* Multi I/O supported */
11509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11510 .voltage = {2700, 3600},
11511 },
11512
11513 {
11514 .vendor = "Spansion",
11515 .name = "S25FL128S......1", /* uniform 256 kB sectors */
11516 .bustype = BUS_SPI,
11517 .manufacture_id = SPANSION_ID,
11518 .model_id = SPANSION_S25FL128,
11519 .total_size = 16384,
11520 .page_size = 512,
11521 /* supports 4B addressing */
11522 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11524 .tested = TEST_UNTESTED,
11525 .probe = probe_spi_rdid,
11526 .probe_timing = TIMING_ZERO,
11527 .block_erasers = {
11528 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011529 .eraseblocks = { {256 * 1024, 64} },
11530 .block_erase = spi_block_erase_d8,
11531 }, {
11532 .eraseblocks = { { 16384 * 1024, 1} },
11533 .block_erase = spi_block_erase_60,
11534 }, {
11535 .eraseblocks = { { 16384 * 1024, 1} },
11536 .block_erase = spi_block_erase_c7,
11537 }
11538 },
11539 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11540 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11541 .write = spi_chip_write_256, /* Multi I/O supported */
11542 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11543 .voltage = {2700, 3600},
11544 },
11545
11546 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011547 .vendor = "Spansion",
11548 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11549 .bustype = BUS_SPI,
11550 .manufacture_id = SPANSION_ID,
11551 .model_id = SPANSION_S25FL128,
11552 .total_size = 16384,
11553 .page_size = 256,
11554 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11555 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11556 .tested = TEST_OK_PREW,
11557 .probe = probe_spi_rdid,
11558 .probe_timing = TIMING_ZERO,
11559 .block_erasers = {
11560 {
11561 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
11562 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
11563 * effect on the memory contents, but sets a flag in the SR.
11564 .eraseblocks = {
11565 {4 * 1024, 32},
11566 {64 * 1024, 254} // inaccessible
11567 },
11568 .block_erase = spi_block_erase_20,
11569 }, { */
11570 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
11571 .eraseblocks = {
11572 {8 * 1024, 16},
11573 {64 * 1024, 254} // inaccessible
11574 },
11575 .block_erase = spi_block_erase_40,
11576 }, { */
11577 .eraseblocks = { { 64 * 1024, 256} },
11578 .block_erase = spi_block_erase_d8,
11579 }, {
11580 .eraseblocks = { { 16384 * 1024, 1} },
11581 .block_erase = spi_block_erase_60,
11582 }, {
11583 .eraseblocks = { { 16384 * 1024, 1} },
11584 .block_erase = spi_block_erase_c7,
11585 }
11586 },
11587 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11588 .unlock = spi_disable_blockprotect_bp2_srwd,
11589 .write = spi_chip_write_256, /* Multi I/O supported */
11590 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11591 .voltage = {2700, 3600},
11592 },
11593
11594 {
11595 .vendor = "Spansion",
11596 .name = "S25FL129P......1", /* uniform 256 kB sectors */
11597 .bustype = BUS_SPI,
11598 .manufacture_id = SPANSION_ID,
11599 .model_id = SPANSION_S25FL128,
11600 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011601 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000011602 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11604 .tested = TEST_UNTESTED,
11605 .probe = probe_spi_rdid,
11606 .probe_timing = TIMING_ZERO,
11607 .block_erasers = {
11608 {
11609 .eraseblocks = { {256 * 1024, 64} },
11610 .block_erase = spi_block_erase_d8,
11611 }, {
11612 .eraseblocks = { { 16384 * 1024, 1} },
11613 .block_erase = spi_block_erase_60,
11614 }, {
11615 .eraseblocks = { { 16384 * 1024, 1} },
11616 .block_erase = spi_block_erase_c7,
11617 }
11618 },
11619 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11620 .unlock = spi_disable_blockprotect_bp2_srwd,
11621 .write = spi_chip_write_256, /* Multi I/O supported */
11622 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11623 .voltage = {2700, 3600},
11624 },
11625
11626 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011627 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000011628 .name = "SST25LF020A",
11629 .bustype = BUS_SPI,
11630 .manufacture_id = SST_ID,
11631 .model_id = SST_SST25VF020_REMS,
11632 .total_size = 256,
11633 .page_size = 256,
11634 .feature_bits = FEATURE_WRSR_EWSR,
11635 .tested = TEST_OK_PREW,
11636 .probe = probe_spi_rems,
11637 .probe_timing = TIMING_ZERO,
11638 .block_erasers =
11639 {
11640 {
11641 .eraseblocks = { {4 * 1024, 64} },
11642 .block_erase = spi_block_erase_20,
11643 }, {
11644 .eraseblocks = { {32 * 1024, 8} },
11645 .block_erase = spi_block_erase_52,
11646 }, {
11647 .eraseblocks = { {256 * 1024, 1} },
11648 .block_erase = spi_block_erase_60,
11649 },
11650 },
11651 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11652 .unlock = spi_disable_blockprotect,
11653 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11654 .read = spi_chip_read, /* Fast read (0x0B) supported */
11655 .voltage = {2700, 3600},
11656 },
11657
11658 {
11659 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000011660 .name = "SST25LF040A",
11661 .bustype = BUS_SPI,
11662 .manufacture_id = SST_ID,
11663 .model_id = SST_SST25VF040_REMS,
11664 .total_size = 512,
11665 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011666 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000011667 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000011668 .probe = probe_spi_res2,
11669 .probe_timing = TIMING_ZERO,
11670 .block_erasers =
11671 {
11672 {
11673 .eraseblocks = { {4 * 1024, 128} },
11674 .block_erase = spi_block_erase_20,
11675 }, {
11676 .eraseblocks = { {32 * 1024, 16} },
11677 .block_erase = spi_block_erase_52,
11678 }, {
11679 .eraseblocks = { {512 * 1024, 1} },
11680 .block_erase = spi_block_erase_60,
11681 },
11682 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011683 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000011684 .unlock = spi_disable_blockprotect,
11685 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11686 .read = spi_chip_read,
11687 .voltage = {3000, 3600},
11688 },
11689
11690 {
11691 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011692 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000011693 .bustype = BUS_SPI,
11694 .manufacture_id = SST_ID,
11695 .model_id = SST_SST25VF080_REMS,
11696 .total_size = 1024,
11697 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011698 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000011699 .tested = TEST_UNTESTED,
11700 .probe = probe_spi_res2,
11701 .probe_timing = TIMING_ZERO,
11702 .block_erasers =
11703 {
11704 {
11705 .eraseblocks = { {4 * 1024, 256} },
11706 .block_erase = spi_block_erase_20,
11707 }, {
11708 .eraseblocks = { {32 * 1024, 32} },
11709 .block_erase = spi_block_erase_52,
11710 }, {
11711 .eraseblocks = { {1024 * 1024, 1} },
11712 .block_erase = spi_block_erase_60,
11713 },
11714 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011715 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000011716 .unlock = spi_disable_blockprotect,
11717 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11718 .read = spi_chip_read,
11719 .voltage = {3000, 3600},
11720 },
11721
11722 {
11723 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000011724 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000011725 .bustype = BUS_SPI,
11726 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000011727 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000011728 .total_size = 64,
11729 .page_size = 256,
11730 .feature_bits = FEATURE_WRSR_EWSR,
11731 .tested = TEST_OK_PREW,
11732 .probe = probe_spi_rems,
11733 .probe_timing = TIMING_ZERO,
11734 .block_erasers =
11735 {
11736 {
11737 .eraseblocks = { {4 * 1024, 16} },
11738 .block_erase = spi_block_erase_20,
11739 }, {
11740 .eraseblocks = { {32 * 1024, 2} },
11741 .block_erase = spi_block_erase_52,
11742 }, {
11743 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011744 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011745 }, {
11746 .eraseblocks = { {64 * 1024, 1} },
11747 .block_erase = spi_block_erase_60,
11748 }, {
11749 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011750 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011751 },
11752 },
11753 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11754 .unlock = spi_disable_blockprotect,
11755 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000011756 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011757 .voltage = {2700, 3600},
11758 },
11759
11760 {
11761 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000011762 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011763 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000011764 .manufacture_id = SST_ID,
11765 .model_id = SST_SST25VF010_REMS,
11766 .total_size = 128,
11767 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011768 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000011769 .tested = TEST_OK_PREW,
11770 .probe = probe_spi_rems,
11771 .probe_timing = TIMING_ZERO,
11772 .block_erasers =
11773 {
11774 {
11775 .eraseblocks = { {4 * 1024, 32} },
11776 .block_erase = spi_block_erase_20,
11777 }, {
11778 .eraseblocks = { {32 * 1024, 4} },
11779 .block_erase = spi_block_erase_52,
11780 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000011781 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011782 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011783 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000011784 .eraseblocks = { {128 * 1024, 1} },
11785 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000011786 }, {
11787 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011788 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011789 },
11790 },
11791 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11792 .unlock = spi_disable_blockprotect,
11793 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000011794 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011795 .voltage = {2700, 3600},
11796 },
11797
11798 {
11799 .vendor = "SST",
11800 .name = "SST25VF020",
11801 .bustype = BUS_SPI,
11802 .manufacture_id = SST_ID,
11803 .model_id = SST_SST25VF020_REMS,
11804 .total_size = 256,
11805 .page_size = 256,
11806 .feature_bits = FEATURE_WRSR_EWSR,
11807 .tested = TEST_UNTESTED,
11808 .probe = probe_spi_rems,
11809 .probe_timing = TIMING_ZERO,
11810 .block_erasers =
11811 {
11812 {
11813 .eraseblocks = { {4 * 1024, 64} },
11814 .block_erase = spi_block_erase_20,
11815 }, {
11816 .eraseblocks = { {32 * 1024, 8} },
11817 .block_erase = spi_block_erase_52,
11818 }, {
11819 .eraseblocks = { {256 * 1024, 1} },
11820 .block_erase = spi_block_erase_60,
11821 },
11822 },
11823 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11824 .unlock = spi_disable_blockprotect,
11825 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11826 .read = spi_chip_read, /* only */
11827 .voltage = {2700, 3600},
11828 },
11829
11830 {
11831 .vendor = "SST",
11832 .name = "SST25VF020B",
11833 .bustype = BUS_SPI,
11834 .manufacture_id = SST_ID,
11835 .model_id = SST_SST25VF020B,
11836 .total_size = 256,
11837 .page_size = 256,
11838 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011839 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000011840 .probe = probe_spi_rdid,
11841 .probe_timing = TIMING_ZERO,
11842 .block_erasers =
11843 {
11844 {
11845 .eraseblocks = { {4 * 1024, 64} },
11846 .block_erase = spi_block_erase_20,
11847 }, {
11848 .eraseblocks = { {32 * 1024, 8} },
11849 .block_erase = spi_block_erase_52,
11850 }, {
11851 .eraseblocks = { {64 * 1024, 4} },
11852 .block_erase = spi_block_erase_d8,
11853 }, {
11854 .eraseblocks = { {256 * 1024, 1} },
11855 .block_erase = spi_block_erase_60,
11856 }, {
11857 .eraseblocks = { {256 * 1024, 1} },
11858 .block_erase = spi_block_erase_c7,
11859 },
11860 },
11861 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
11862 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
11863 .write = spi_aai_write, /* AAI supported (0xAD) */
11864 .read = spi_chip_read, /* Fast read (0x0B) supported */
11865 .voltage = {2700, 3600},
11866 },
11867
11868 {
11869 .vendor = "SST",
11870 .name = "SST25VF040",
11871 .bustype = BUS_SPI,
11872 .manufacture_id = SST_ID,
11873 .model_id = SST_SST25VF040_REMS,
11874 .total_size = 512,
11875 .page_size = 256,
11876 .feature_bits = FEATURE_WRSR_EWSR,
11877 .tested = TEST_OK_PR,
11878 .probe = probe_spi_rems,
11879 .probe_timing = TIMING_ZERO,
11880 .block_erasers =
11881 {
11882 {
11883 .eraseblocks = { {4 * 1024, 128} },
11884 .block_erase = spi_block_erase_20,
11885 }, {
11886 .eraseblocks = { {32 * 1024, 16} },
11887 .block_erase = spi_block_erase_52,
11888 }, {
11889 .eraseblocks = { {512 * 1024, 1} },
11890 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000011891 },
11892 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011893 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000011894 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000011895 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11896 .read = spi_chip_read,
11897 .voltage = {2700, 3600},
11898 },
11899
11900 {
11901 .vendor = "SST",
11902 .name = "SST25VF040B",
11903 .bustype = BUS_SPI,
11904 .manufacture_id = SST_ID,
11905 .model_id = SST_SST25VF040B,
11906 .total_size = 512,
11907 .page_size = 256,
11908 .feature_bits = FEATURE_WRSR_EWSR,
11909 .tested = TEST_OK_PREW,
11910 .probe = probe_spi_rdid,
11911 .probe_timing = TIMING_ZERO,
11912 .block_erasers =
11913 {
11914 {
11915 .eraseblocks = { {4 * 1024, 128} },
11916 .block_erase = spi_block_erase_20,
11917 }, {
11918 .eraseblocks = { {32 * 1024, 16} },
11919 .block_erase = spi_block_erase_52,
11920 }, {
11921 .eraseblocks = { {64 * 1024, 8} },
11922 .block_erase = spi_block_erase_d8,
11923 }, {
11924 .eraseblocks = { {512 * 1024, 1} },
11925 .block_erase = spi_block_erase_60,
11926 }, {
11927 .eraseblocks = { {512 * 1024, 1} },
11928 .block_erase = spi_block_erase_c7,
11929 },
11930 },
11931 .printlock = spi_prettyprint_status_register_sst25vf040b,
11932 .unlock = spi_disable_blockprotect,
11933 .write = spi_aai_write, /* AAI supported (0xAD) */
11934 .read = spi_chip_read, /* Fast read (0x0B) supported */
11935 .voltage = {2700, 3600},
11936 },
11937
11938 {
11939 .vendor = "SST",
11940 .name = "SST25VF040B.REMS",
11941 .bustype = BUS_SPI,
11942 .manufacture_id = SST_ID,
11943 .model_id = SST_SST25VF040B_REMS,
11944 .total_size = 512,
11945 .page_size = 256,
11946 .feature_bits = FEATURE_WRSR_EWSR,
11947 .tested = TEST_OK_PREW,
11948 .probe = probe_spi_rems,
11949 .probe_timing = TIMING_ZERO,
11950 .block_erasers =
11951 {
11952 {
11953 .eraseblocks = { {4 * 1024, 128} },
11954 .block_erase = spi_block_erase_20,
11955 }, {
11956 .eraseblocks = { {32 * 1024, 16} },
11957 .block_erase = spi_block_erase_52,
11958 }, {
11959 .eraseblocks = { {64 * 1024, 8} },
11960 .block_erase = spi_block_erase_d8,
11961 }, {
11962 .eraseblocks = { {512 * 1024, 1} },
11963 .block_erase = spi_block_erase_60,
11964 }, {
11965 .eraseblocks = { {512 * 1024, 1} },
11966 .block_erase = spi_block_erase_c7,
11967 },
11968 },
11969 .printlock = spi_prettyprint_status_register_sst25vf040b,
11970 .unlock = spi_disable_blockprotect,
11971 .write = spi_aai_write,
11972 .read = spi_chip_read,
11973 .voltage = {2700, 3600},
11974 },
11975
11976 {
11977 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000011978 .name = "SST25WF020A",
11979 .bustype = BUS_SPI,
11980 .manufacture_id = SANYO_ID, /* See flashchips.h */
11981 .model_id = SST_SST25WF020A,
11982 .total_size = 256,
11983 .page_size = 256,
11984 .feature_bits = FEATURE_WRSR_WREN,
11985 .tested = TEST_UNTESTED,
11986 .probe = probe_spi_rdid,
11987 .probe_timing = TIMING_ZERO,
11988 .block_erasers =
11989 {
11990 {
11991 .eraseblocks = { {4 * 1024, 64} },
11992 .block_erase = spi_block_erase_20,
11993 }, {
11994 .eraseblocks = { {64 * 1024, 4} },
11995 .block_erase = spi_block_erase_d8,
11996 }, {
11997 .eraseblocks = { {256 * 1024, 1} },
11998 .block_erase = spi_block_erase_60,
11999 }, {
12000 .eraseblocks = { {256 * 1024, 1} },
12001 .block_erase = spi_block_erase_c7,
12002 },
12003 },
12004 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12005 .unlock = spi_disable_blockprotect_bp2_srwd,
12006 .write = spi_chip_write_256,
12007 .read = spi_chip_read, /* Fast read (0x0B) supported */
12008 .voltage = {1650, 1950},
12009 },
12010
12011 {
12012 .vendor = "SST",
12013 .name = "SST25WF040B",
12014 .bustype = BUS_SPI,
12015 .manufacture_id = SANYO_ID, /* See flashchips.h */
12016 .model_id = SST_SST25WF040B,
12017 .total_size = 512,
12018 .page_size = 256,
12019 .feature_bits = FEATURE_WRSR_WREN,
12020 .tested = TEST_UNTESTED,
12021 .probe = probe_spi_rdid,
12022 .probe_timing = TIMING_ZERO,
12023 .block_erasers =
12024 {
12025 {
12026 .eraseblocks = { {4 * 1024, 128} },
12027 .block_erase = spi_block_erase_20,
12028 }, {
12029 .eraseblocks = { {64 * 1024, 8} },
12030 .block_erase = spi_block_erase_d8,
12031 }, {
12032 .eraseblocks = { {512 * 1024, 1} },
12033 .block_erase = spi_block_erase_60,
12034 }, {
12035 .eraseblocks = { {512 * 1024, 1} },
12036 .block_erase = spi_block_erase_c7,
12037 },
12038 },
12039 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12040 .unlock = spi_disable_blockprotect_bp2_srwd,
12041 .write = spi_chip_write_256,
12042 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12043 .voltage = {1650, 1950},
12044 },
12045
12046 {
12047 .vendor = "SST",
12048 .name = "SST25WF080B",
12049 .bustype = BUS_SPI,
12050 .manufacture_id = SANYO_ID, /* See flashchips.h */
12051 .model_id = SST_SST25WF080B,
12052 .total_size = 1024,
12053 .page_size = 256,
12054 .feature_bits = FEATURE_WRSR_WREN,
12055 .tested = TEST_OK_PREW,
12056 .probe = probe_spi_rdid,
12057 .probe_timing = TIMING_ZERO,
12058 .block_erasers =
12059 {
12060 {
12061 .eraseblocks = { {4 * 1024, 256} },
12062 .block_erase = spi_block_erase_20,
12063 }, {
12064 .eraseblocks = { {64 * 1024, 16} },
12065 .block_erase = spi_block_erase_d8,
12066 }, {
12067 .eraseblocks = { {1024 * 1024, 1} },
12068 .block_erase = spi_block_erase_60,
12069 }, {
12070 .eraseblocks = { {1024 * 1024, 1} },
12071 .block_erase = spi_block_erase_c7,
12072 },
12073 },
12074 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12075 .unlock = spi_disable_blockprotect_bp2_srwd,
12076 .write = spi_chip_write_256,
12077 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12078 .voltage = {1650, 1950},
12079 },
12080
12081 {
12082 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012083 .name = "SST25VF080B",
12084 .bustype = BUS_SPI,
12085 .manufacture_id = SST_ID,
12086 .model_id = SST_SST25VF080B,
12087 .total_size = 1024,
12088 .page_size = 256,
12089 .feature_bits = FEATURE_WRSR_EWSR,
12090 .tested = TEST_OK_PREW,
12091 .probe = probe_spi_rdid,
12092 .probe_timing = TIMING_ZERO,
12093 .block_erasers =
12094 {
12095 {
12096 .eraseblocks = { {4 * 1024, 256} },
12097 .block_erase = spi_block_erase_20,
12098 }, {
12099 .eraseblocks = { {32 * 1024, 32} },
12100 .block_erase = spi_block_erase_52,
12101 }, {
12102 .eraseblocks = { {64 * 1024, 16} },
12103 .block_erase = spi_block_erase_d8,
12104 }, {
12105 .eraseblocks = { {1024 * 1024, 1} },
12106 .block_erase = spi_block_erase_60,
12107 }, {
12108 .eraseblocks = { {1024 * 1024, 1} },
12109 .block_erase = spi_block_erase_c7,
12110 },
12111 },
12112 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12113 .unlock = spi_disable_blockprotect,
12114 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012115 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012116 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012117 },
12118
12119 {
12120 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012121 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012122 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012123 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012124 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012125 .total_size = 2048,
12126 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012127 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012128 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012129 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012130 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012131 .block_erasers =
12132 {
12133 {
12134 .eraseblocks = { {4 * 1024, 512} },
12135 .block_erase = spi_block_erase_20,
12136 }, {
12137 .eraseblocks = { {32 * 1024, 64} },
12138 .block_erase = spi_block_erase_52,
12139 }, {
12140 .eraseblocks = { {64 * 1024, 32} },
12141 .block_erase = spi_block_erase_d8,
12142 }, {
12143 .eraseblocks = { {2 * 1024 * 1024, 1} },
12144 .block_erase = spi_block_erase_60,
12145 }, {
12146 .eraseblocks = { {2 * 1024 * 1024, 1} },
12147 .block_erase = spi_block_erase_c7,
12148 },
12149 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012150 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012151 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012152 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012153 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012154 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012155 },
12156
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012157 {
12158 .vendor = "SST",
12159 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012160 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012161 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012162 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012163 .total_size = 4096,
12164 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012165 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012166 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012167 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012168 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012169 .block_erasers =
12170 {
12171 {
12172 .eraseblocks = { {4 * 1024, 1024} },
12173 .block_erase = spi_block_erase_20,
12174 }, {
12175 .eraseblocks = { {32 * 1024, 128} },
12176 .block_erase = spi_block_erase_52,
12177 }, {
12178 .eraseblocks = { {64 * 1024, 64} },
12179 .block_erase = spi_block_erase_d8,
12180 }, {
12181 .eraseblocks = { {4 * 1024 * 1024, 1} },
12182 .block_erase = spi_block_erase_60,
12183 }, {
12184 .eraseblocks = { {4 * 1024 * 1024, 1} },
12185 .block_erase = spi_block_erase_c7,
12186 },
12187 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012188 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012189 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012190 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012191 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012192 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012193 },
12194
12195 {
12196 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012197 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012198 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012199 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012200 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012201 .total_size = 8192,
12202 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012203 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012204 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012205 .probe = probe_spi_rdid,
12206 .probe_timing = TIMING_ZERO,
12207 .block_erasers =
12208 {
12209 {
12210 .eraseblocks = { {4 * 1024, 2048} },
12211 .block_erase = spi_block_erase_20,
12212 }, {
12213 .eraseblocks = { {32 * 1024, 256} },
12214 .block_erase = spi_block_erase_52,
12215 }, {
12216 .eraseblocks = { {64 * 1024, 128} },
12217 .block_erase = spi_block_erase_d8,
12218 }, {
12219 .eraseblocks = { {8 * 1024 * 1024, 1} },
12220 .block_erase = spi_block_erase_60,
12221 }, {
12222 .eraseblocks = { {8 * 1024 * 1024, 1} },
12223 .block_erase = spi_block_erase_c7,
12224 },
12225 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012226 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012227 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012228 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012229 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012230 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012231 },
12232
12233 {
12234 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000012235 .name = "SST25WF512",
12236 .bustype = BUS_SPI,
12237 .manufacture_id = SST_ID,
12238 .model_id = SST_SST25WF512,
12239 .total_size = 64,
12240 .page_size = 256,
12241 .feature_bits = FEATURE_WRSR_EITHER,
12242 .tested = TEST_UNTESTED,
12243 .probe = probe_spi_rdid,
12244 .probe_timing = TIMING_ZERO,
12245 .block_erasers =
12246 {
12247 {
12248 .eraseblocks = { {4 * 1024, 16} },
12249 .block_erase = spi_block_erase_20,
12250 }, {
12251 .eraseblocks = { {32 * 1024, 2} },
12252 .block_erase = spi_block_erase_52,
12253 }, {
12254 .eraseblocks = { {1024 * 64, 1} },
12255 .block_erase = spi_block_erase_60,
12256 }, {
12257 .eraseblocks = { {1024 * 64, 1} },
12258 .block_erase = spi_block_erase_c7,
12259 },
12260 },
Jason Harper43ddef02014-05-04 00:55:24 +000012261 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12262 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012263 .write = spi_aai_write,
12264 .read = spi_chip_read, /* Fast read (0x0B) supported */
12265 .voltage = {1650, 1950},
12266 },
12267
12268 {
12269 .vendor = "SST",
12270 .name = "SST25WF010",
12271 .bustype = BUS_SPI,
12272 .manufacture_id = SST_ID,
12273 .model_id = SST_SST25WF010,
12274 .total_size = 128,
12275 .page_size = 256,
12276 .feature_bits = FEATURE_WRSR_EITHER,
12277 .tested = TEST_UNTESTED,
12278 .probe = probe_spi_rdid,
12279 .probe_timing = TIMING_ZERO,
12280 .block_erasers =
12281 {
12282 {
12283 .eraseblocks = { {4 * 1024, 32} },
12284 .block_erase = spi_block_erase_20,
12285 }, {
12286 .eraseblocks = { {32 * 1024, 4} },
12287 .block_erase = spi_block_erase_52,
12288 }, {
12289 .eraseblocks = { {1024 * 128, 1} },
12290 .block_erase = spi_block_erase_60,
12291 }, {
12292 .eraseblocks = { {1024 * 128, 1} },
12293 .block_erase = spi_block_erase_c7,
12294 },
12295 },
Jason Harper43ddef02014-05-04 00:55:24 +000012296 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12297 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012298 .write = spi_aai_write,
12299 .read = spi_chip_read, /* Fast read (0x0B) supported */
12300 .voltage = {1650, 1950},
12301 },
12302
12303 {
12304 .vendor = "SST",
12305 .name = "SST25WF020",
12306 .bustype = BUS_SPI,
12307 .manufacture_id = SST_ID,
12308 .model_id = SST_SST25WF020,
12309 .total_size = 256,
12310 .page_size = 256,
12311 .feature_bits = FEATURE_WRSR_EITHER,
12312 .tested = TEST_UNTESTED,
12313 .probe = probe_spi_rdid,
12314 .probe_timing = TIMING_ZERO,
12315 .block_erasers =
12316 {
12317 {
12318 .eraseblocks = { {4 * 1024, 64} },
12319 .block_erase = spi_block_erase_20,
12320 }, {
12321 .eraseblocks = { {32 * 1024, 8} },
12322 .block_erase = spi_block_erase_52,
12323 }, {
12324 .eraseblocks = { {64 * 1024, 4} },
12325 .block_erase = spi_block_erase_d8,
12326 }, {
12327 .eraseblocks = { {1024 * 256, 1} },
12328 .block_erase = spi_block_erase_60,
12329 }, {
12330 .eraseblocks = { {1024 * 256, 1} },
12331 .block_erase = spi_block_erase_c7,
12332 },
12333 },
Jason Harper43ddef02014-05-04 00:55:24 +000012334 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12335 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012336 .write = spi_aai_write,
12337 .read = spi_chip_read, /* Fast read (0x0B) supported */
12338 .voltage = {1650, 1950},
12339 },
12340
12341 {
12342 .vendor = "SST",
12343 .name = "SST25WF040",
12344 .bustype = BUS_SPI,
12345 .manufacture_id = SST_ID,
12346 .model_id = SST_SST25WF040,
12347 .total_size = 512,
12348 .page_size = 256,
12349 .feature_bits = FEATURE_WRSR_EITHER,
12350 .tested = TEST_UNTESTED,
12351 .probe = probe_spi_rdid,
12352 .probe_timing = TIMING_ZERO,
12353 .block_erasers =
12354 {
12355 {
12356 .eraseblocks = { {4 * 1024, 128} },
12357 .block_erase = spi_block_erase_20,
12358 }, {
12359 .eraseblocks = { {32 * 1024, 16} },
12360 .block_erase = spi_block_erase_52,
12361 }, {
12362 .eraseblocks = { {64 * 1024, 8} },
12363 .block_erase = spi_block_erase_d8,
12364 }, {
12365 .eraseblocks = { {1024 * 512, 1} },
12366 .block_erase = spi_block_erase_60,
12367 }, {
12368 .eraseblocks = { {1024 * 512, 1} },
12369 .block_erase = spi_block_erase_c7,
12370 },
12371 },
Jason Harper43ddef02014-05-04 00:55:24 +000012372 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12373 .unlock = spi_disable_blockprotect_bp2_srwd,
12374 .write = spi_aai_write,
12375 .read = spi_chip_read, /* Fast read (0x0B) supported */
12376 .voltage = {1650, 1950},
12377 },
12378
12379 {
12380 .vendor = "SST",
12381 .name = "SST25WF080",
12382 .bustype = BUS_SPI,
12383 .manufacture_id = SST_ID,
12384 .model_id = SST_SST25WF080,
12385 .total_size = 1024,
12386 .page_size = 256,
12387 .feature_bits = FEATURE_WRSR_EITHER,
12388 .tested = TEST_OK_PREW,
12389 .probe = probe_spi_rdid,
12390 .probe_timing = TIMING_ZERO,
12391 .block_erasers =
12392 {
12393 {
12394 .eraseblocks = { {4 * 1024, 256} },
12395 .block_erase = spi_block_erase_20,
12396 }, {
12397 .eraseblocks = { {32 * 1024, 32} },
12398 .block_erase = spi_block_erase_52,
12399 }, {
12400 .eraseblocks = { {64 * 1024, 16} },
12401 .block_erase = spi_block_erase_d8,
12402 }, {
12403 .eraseblocks = { {1024 * 1024, 1} },
12404 .block_erase = spi_block_erase_60,
12405 }, {
12406 .eraseblocks = { {1024 * 1024, 1} },
12407 .block_erase = spi_block_erase_c7,
12408 },
12409 },
12410 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12411 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012412 .write = spi_aai_write,
12413 .read = spi_chip_read, /* Fast read (0x0B) supported */
12414 .voltage = {1650, 1950},
12415 },
12416
12417 {
12418 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012419 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012420 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012421 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012422 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012423 .total_size = 512,
12424 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012425 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012426 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012427 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012428 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012429 .block_erasers =
12430 {
12431 {
12432 .eraseblocks = { {128, 4096} },
12433 .block_erase = erase_sector_28sf040,
12434 }, {
12435 .eraseblocks = { {512 * 1024, 1} },
12436 .block_erase = erase_chip_28sf040,
12437 }
12438 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012439 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012440 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012441 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012442 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012443 },
12444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012445 {
12446 .vendor = "SST",
12447 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012448 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012449 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012450 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012451 .total_size = 128,
12452 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012453 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012454 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012455 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012456 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012457 .block_erasers =
12458 {
12459 {
12460 .eraseblocks = { {128 * 1024, 1} },
12461 .block_erase = erase_chip_block_jedec,
12462 }
12463 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012464 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012465 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012466 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012467 },
12468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012469 {
12470 .vendor = "SST",
12471 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012472 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012473 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012474 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012475 .total_size = 128,
12476 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012477 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012478 .tested = TEST_UNTESTED,
12479 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012480 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012481 .block_erasers =
12482 {
12483 {
12484 .eraseblocks = { {128 * 1024, 1} },
12485 .block_erase = erase_chip_block_jedec,
12486 }
12487 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012488 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012489 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012490 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012491 },
12492
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012493 {
12494 .vendor = "SST",
12495 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012496 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012497 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012498 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012499 .total_size = 256,
12500 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012501 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012502 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012503 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012504 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012505 .block_erasers =
12506 {
12507 {
12508 .eraseblocks = { {256 * 1024, 1} },
12509 .block_erase = erase_chip_block_jedec,
12510 }
12511 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012512 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012513 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012514 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012515 },
12516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012517 {
12518 .vendor = "SST",
12519 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012520 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012521 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012522 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012523 .total_size = 256,
12524 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012525 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012526 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012527 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012528 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012529 .block_erasers =
12530 {
12531 {
12532 .eraseblocks = { {256 * 1024, 1} },
12533 .block_erase = erase_chip_block_jedec,
12534 }
12535 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012536 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012538 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012539 },
12540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012541 {
12542 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000012543 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012544 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012545 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012546 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012547 .total_size = 64,
12548 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012549 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000012550 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012551 .probe = probe_jedec,
12552 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000012553 .block_erasers =
12554 {
12555 {
12556 .eraseblocks = { {4 * 1024, 16} },
12557 .block_erase = erase_sector_jedec,
12558 }, {
12559 .eraseblocks = { {64 * 1024, 1} },
12560 .block_erase = erase_chip_block_jedec,
12561 }
12562 },
Sean Nelson35727f72010-01-28 23:55:12 +000012563 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012565 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000012566 },
12567
12568 {
12569 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012570 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012571 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012572 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012573 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012574 .total_size = 128,
12575 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012576 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012577 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012578 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012579 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012580 .block_erasers =
12581 {
12582 {
12583 .eraseblocks = { {4 * 1024, 32} },
12584 .block_erase = erase_sector_jedec,
12585 }, {
12586 .eraseblocks = { {128 * 1024, 1} },
12587 .block_erase = erase_chip_block_jedec,
12588 }
12589 },
Sean Nelson35727f72010-01-28 23:55:12 +000012590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012592 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012593 },
12594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012595 {
12596 .vendor = "SST",
12597 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012598 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012599 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012600 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012601 .total_size = 256,
12602 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012603 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000012604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012605 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012606 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012607 .block_erasers =
12608 {
12609 {
12610 .eraseblocks = { {4 * 1024, 64} },
12611 .block_erase = erase_sector_jedec,
12612 }, {
12613 .eraseblocks = { {256 * 1024, 1} },
12614 .block_erase = erase_chip_block_jedec,
12615 }
12616 },
Sean Nelson35727f72010-01-28 23:55:12 +000012617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012619 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012620 },
12621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012622 {
12623 .vendor = "SST",
12624 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012625 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012626 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012627 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012628 .total_size = 512,
12629 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012630 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000012631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012632 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012633 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012634 .block_erasers =
12635 {
12636 {
12637 .eraseblocks = { {4 * 1024, 128} },
12638 .block_erase = erase_sector_jedec,
12639 }, {
12640 .eraseblocks = { {512 * 1024, 1} },
12641 .block_erase = erase_chip_block_jedec,
12642 }
12643 },
Sean Nelson35727f72010-01-28 23:55:12 +000012644 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012646 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012647 },
12648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012649 {
12650 .vendor = "SST",
12651 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012652 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012653 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012654 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012655 .total_size = 64,
12656 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012657 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000012658 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012659 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012660 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012661 .block_erasers =
12662 {
12663 {
12664 .eraseblocks = { {4 * 1024, 16} },
12665 .block_erase = erase_sector_jedec,
12666 }, {
12667 .eraseblocks = { {64 * 1024, 1} },
12668 .block_erase = erase_chip_block_jedec,
12669 }
12670 },
Sean Nelson35727f72010-01-28 23:55:12 +000012671 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012673 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012674 },
12675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012676 {
12677 .vendor = "SST",
12678 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012679 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012680 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012681 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012682 .total_size = 128,
12683 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012684 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000012685 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012686 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012687 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012688 .block_erasers =
12689 {
12690 {
12691 .eraseblocks = { {4 * 1024, 32} },
12692 .block_erase = erase_sector_jedec,
12693 }, {
12694 .eraseblocks = { {128 * 1024, 1} },
12695 .block_erase = erase_chip_block_jedec,
12696 }
12697 },
Sean Nelson35727f72010-01-28 23:55:12 +000012698 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012700 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012701 },
12702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012703 {
12704 .vendor = "SST",
12705 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012706 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012708 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012709 .total_size = 256,
12710 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012711 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000012712 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012713 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012714 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012715 .block_erasers =
12716 {
12717 {
12718 .eraseblocks = { {4 * 1024, 64} },
12719 .block_erase = erase_sector_jedec,
12720 }, {
12721 .eraseblocks = { {256 * 1024, 1} },
12722 .block_erase = erase_chip_block_jedec,
12723 }
12724 },
Sean Nelson35727f72010-01-28 23:55:12 +000012725 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012728 },
12729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012730 {
12731 .vendor = "SST",
12732 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012733 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012734 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012735 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012736 .total_size = 512,
12737 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012738 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012739 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012740 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012741 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012742 .block_erasers =
12743 {
12744 {
12745 .eraseblocks = { {4 * 1024, 128} },
12746 .block_erase = erase_sector_jedec,
12747 }, {
12748 .eraseblocks = { {512 * 1024, 1} },
12749 .block_erase = erase_chip_block_jedec,
12750 }
12751 },
Sean Nelson35727f72010-01-28 23:55:12 +000012752 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012754 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000012755 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012757 {
12758 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000012759 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012760 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012761 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012762 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000012763 .total_size = 1024,
12764 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012765 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000012766 .tested = TEST_UNTESTED,
12767 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012768 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012769 .block_erasers =
12770 {
12771 {
12772 .eraseblocks = { {4 * 1024, 256} },
12773 .block_erase = erase_sector_jedec,
12774 }, {
12775 .eraseblocks = { {64 * 1024, 16} },
12776 .block_erase = erase_block_jedec,
12777 }, {
12778 .eraseblocks = { {1024 * 1024, 1} },
12779 .block_erase = erase_chip_block_jedec,
12780 }
12781 },
Sean Nelson35727f72010-01-28 23:55:12 +000012782 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012784 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000012785 },
12786
12787 {
12788 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012789 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012790 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012791 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012792 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012793 .total_size = 256,
12794 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012795 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012796 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012797 .probe = probe_jedec,
12798 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012799 .block_erasers =
12800 {
12801 {
12802 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012803 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012804 }, {
12805 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012806 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012807 }, {
12808 .eraseblocks = { {256 * 1024, 1} },
12809 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12810 }
12811 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012812 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012813 .unlock = unlock_sst_fwhub,
12814 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012816 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012817 },
12818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012819 {
12820 .vendor = "SST",
12821 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012822 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012823 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012824 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012825 .total_size = 384,
12826 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012827 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012828 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012829 .probe = probe_jedec,
12830 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012831 .block_erasers =
12832 {
12833 {
12834 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012835 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012836 }, {
12837 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012838 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012839 }, {
12840 .eraseblocks = { {384 * 1024, 1} },
12841 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12842 }
12843 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012844 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012845 .unlock = unlock_sst_fwhub,
12846 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012847 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012848 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012849 },
12850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012851 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012852 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
12853 * and is only honored for 64k block erase, but not 4k sector erase.
12854 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012855 .vendor = "SST",
12856 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012857 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012858 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012859 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012860 .total_size = 512,
12861 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012862 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012863 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012864 .probe = probe_jedec,
12865 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012866 .block_erasers =
12867 {
12868 {
12869 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012870 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012871 }, {
12872 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012873 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012874 }, {
12875 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000012876 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012877 },
12878 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012879 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012880 .unlock = unlock_sst_fwhub,
12881 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012883 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012884 },
12885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012886 {
12887 .vendor = "SST",
12888 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012889 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012890 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012891 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012892 .total_size = 512,
12893 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012894 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012895 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012896 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012897 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012898 .block_erasers =
12899 {
12900 {
12901 .eraseblocks = { {4 * 1024, 128} },
12902 .block_erase = erase_sector_49lfxxxc,
12903 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012904 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012905 {64 * 1024, 7},
12906 {32 * 1024, 1},
12907 {8 * 1024, 2},
12908 {16 * 1024, 1},
12909 },
Sean Nelson69e58112010-03-23 17:10:28 +000012910 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012911 }
12912 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012913 .printlock = printlock_regspace2_block_eraser_1,
12914 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012915 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012917 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012918 },
12919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012920 {
12921 .vendor = "SST",
12922 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012923 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012924 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012925 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012926 .total_size = 1024,
12927 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012928 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012929 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012930 .probe = probe_jedec,
12931 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012932 .block_erasers =
12933 {
12934 {
12935 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012936 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012937 }, {
12938 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012939 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012940 }, {
12941 .eraseblocks = { {1024 * 1024, 1} },
12942 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12943 }
12944 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012945 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012946 .unlock = unlock_sst_fwhub,
12947 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012949 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012950 },
12951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012952 {
12953 .vendor = "SST",
12954 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012955 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012956 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012957 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012958 .total_size = 1024,
12959 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012960 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012961 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012962 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012963 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012964 .block_erasers =
12965 {
12966 {
12967 .eraseblocks = { {4 * 1024, 256} },
12968 .block_erase = erase_sector_49lfxxxc,
12969 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012970 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012971 {64 * 1024, 15},
12972 {32 * 1024, 1},
12973 {8 * 1024, 2},
12974 {16 * 1024, 1},
12975 },
Sean Nelson69e58112010-03-23 17:10:28 +000012976 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012977 }
12978 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012979 .printlock = printlock_regspace2_block_eraser_1,
12980 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012981 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012982 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012983 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012984 },
12985
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012986 {
12987 .vendor = "SST",
12988 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012989 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012990 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012991 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012992 .total_size = 2048,
12993 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012994 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012995 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012996 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012997 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012998 .block_erasers =
12999 {
13000 {
13001 .eraseblocks = { {4 * 1024, 512} },
13002 .block_erase = erase_sector_49lfxxxc,
13003 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013004 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013005 {64 * 1024, 31},
13006 {32 * 1024, 1},
13007 {8 * 1024, 2},
13008 {16 * 1024, 1},
13009 },
Sean Nelson69e58112010-03-23 17:10:28 +000013010 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013011 }
13012 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013013 .printlock = printlock_regspace2_block_eraser_1,
13014 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013015 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013016 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013017 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013018 },
13019
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013020 {
13021 .vendor = "SST",
13022 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013023 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013024 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013025 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013026 .total_size = 256,
13027 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013028 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013029 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013030 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013031 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013032 .block_erasers =
13033 {
13034 {
13035 .eraseblocks = { {4 * 1024, 64} },
13036 .block_erase = erase_sector_jedec,
13037 }, {
13038 .eraseblocks = { {16 * 1024, 16} },
13039 .block_erase = erase_block_jedec,
13040 }, {
13041 .eraseblocks = { {256 * 1024, 1} },
13042 .block_erase = NULL,
13043 }
13044 },
Sean Nelson35727f72010-01-28 23:55:12 +000013045 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013046 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013047 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013048 },
13049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013050 {
13051 .vendor = "SST",
13052 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013053 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013054 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013055 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013056 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013057 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013058 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013059 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013060 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013061 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013062 .block_erasers =
13063 {
13064 {
13065 .eraseblocks = { {4 * 1024, 64} },
13066 .block_erase = erase_sector_jedec,
13067 }, {
13068 .eraseblocks = { {16 * 1024, 16} },
13069 .block_erase = erase_block_jedec,
13070 }, {
13071 .eraseblocks = { {256 * 1024, 1} },
13072 .block_erase = NULL,
13073 }
13074 },
Sean Nelson35727f72010-01-28 23:55:12 +000013075 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013076 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013077 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013078 },
13079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013080 {
13081 .vendor = "SST",
13082 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013083 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013084 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013085 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013086 .total_size = 512,
13087 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013088 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013089 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013090 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013091 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013092 .block_erasers =
13093 {
13094 {
13095 .eraseblocks = { {4 * 1024, 128} },
13096 .block_erase = erase_sector_jedec,
13097 }, {
13098 .eraseblocks = { {64 * 1024, 8} },
13099 .block_erase = erase_block_jedec,
13100 }, {
13101 .eraseblocks = { {512 * 1024, 1} },
13102 .block_erase = NULL,
13103 }
13104 },
Sean Nelson35727f72010-01-28 23:55:12 +000013105 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013107 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013108 },
13109
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013110 {
13111 .vendor = "SST",
13112 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013113 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013114 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013115 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013116 .total_size = 512,
13117 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013118 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013119 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013120 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013121 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013122 .block_erasers =
13123 {
13124 {
13125 .eraseblocks = { {4 * 1024, 128} },
13126 .block_erase = erase_sector_jedec,
13127 }, {
13128 .eraseblocks = { {64 * 1024, 8} },
13129 .block_erase = erase_block_jedec,
13130 }, {
13131 .eraseblocks = { {512 * 1024, 1} },
13132 .block_erase = NULL,
13133 }
13134 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013135 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013136 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013137 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013138 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013139 },
13140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013141 {
13142 .vendor = "SST",
13143 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013144 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013145 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013146 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013147 .total_size = 1024,
13148 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013149 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013150 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013151 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013152 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013153 .block_erasers =
13154 {
13155 {
13156 .eraseblocks = { {4 * 1024, 256} },
13157 .block_erase = erase_sector_jedec,
13158 }, {
13159 .eraseblocks = { {64 * 1024, 16} },
13160 .block_erase = erase_block_jedec,
13161 }, {
13162 .eraseblocks = { {1024 * 1024, 1} },
13163 .block_erase = NULL,
13164 }
13165 },
Sean Nelson35727f72010-01-28 23:55:12 +000013166 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013168 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013169 },
13170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013171 {
13172 .vendor = "SST",
13173 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013174 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013175 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013176 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013177 .total_size = 2048,
13178 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013179 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013180 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013181 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013182 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013183 .block_erasers =
13184 {
13185 {
13186 .eraseblocks = { {4 * 1024, 512} },
13187 .block_erase = erase_sector_49lfxxxc,
13188 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013189 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013190 {64 * 1024, 31},
13191 {32 * 1024, 1},
13192 {8 * 1024, 2},
13193 {16 * 1024, 1},
13194 },
Sean Nelson69e58112010-03-23 17:10:28 +000013195 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013196 }
13197 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013198 .printlock = printlock_regspace2_block_eraser_1,
13199 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013200 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013202 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013203 },
13204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013205 {
13206 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013207 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013208 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013209 .manufacture_id = ST_ID,
13210 .model_id = ST_M29F002B,
13211 .total_size = 256,
13212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013213 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013214 .tested = TEST_UNTESTED,
13215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013216 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013217 .block_erasers =
13218 {
13219 {
13220 .eraseblocks = {
13221 {16 * 1024, 1},
13222 {8 * 1024, 2},
13223 {32 * 1024, 1},
13224 {64 * 1024, 3},
13225 },
13226 .block_erase = erase_sector_jedec,
13227 }, {
13228 .eraseblocks = { {256 * 1024, 1} },
13229 .block_erase = erase_chip_block_jedec,
13230 }
13231 },
Sean Nelson35727f72010-01-28 23:55:12 +000013232 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013233 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013234 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013235 },
13236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013237 {
13238 .vendor = "ST",
13239 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013240 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013241 .manufacture_id = ST_ID,
13242 .model_id = ST_M29F002T,
13243 .total_size = 256,
13244 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013245 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013246 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013247 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013248 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013249 .block_erasers =
13250 {
13251 {
13252 .eraseblocks = {
13253 {64 * 1024, 3},
13254 {32 * 1024, 1},
13255 {8 * 1024, 2},
13256 {16 * 1024, 1},
13257 },
13258 .block_erase = erase_sector_jedec,
13259 }, {
13260 .eraseblocks = { {256 * 1024, 1} },
13261 .block_erase = erase_chip_block_jedec,
13262 }
13263 },
Sean Nelson35727f72010-01-28 23:55:12 +000013264 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013265 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013266 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013267 },
13268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013269 {
13270 .vendor = "ST",
13271 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013273 .manufacture_id = ST_ID,
13274 .model_id = ST_M29F040B,
13275 .total_size = 512,
13276 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013277 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13278 .tested = TEST_UNTESTED,
13279 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013280 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013281 .block_erasers =
13282 {
13283 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013284 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013285 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013286 }, {
13287 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013288 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013289 }
13290 },
Sean Nelson35727f72010-01-28 23:55:12 +000013291 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013293 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013294 },
13295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013296 {
Sean Nelson35727f72010-01-28 23:55:12 +000013297 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013298 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013299 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013300 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013301 .manufacture_id = ST_ID,
13302 .model_id = ST_M29F400BB,
13303 .total_size = 512,
13304 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013305 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013306 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013307 .probe = probe_jedec,
13308 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013309 .block_erasers =
13310 {
13311 {
13312 .eraseblocks = {
13313 {16 * 1024, 1},
13314 {8 * 1024, 2},
13315 {32 * 1024, 1},
13316 {64 * 1024, 7},
13317 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013318 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013319 }, {
13320 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013321 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013322 }
13323 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013324 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013325 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013326 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013327 },
13328 {
13329 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13330 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013331 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013332 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013333 .manufacture_id = ST_ID,
13334 .model_id = ST_M29F400BT,
13335 .total_size = 512,
13336 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013337 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013338 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013339 .probe = probe_jedec,
13340 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013341 .block_erasers =
13342 {
13343 {
13344 .eraseblocks = {
13345 {64 * 1024, 7},
13346 {32 * 1024, 1},
13347 {8 * 1024, 2},
13348 {16 * 1024, 1},
13349 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013350 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013351 }, {
13352 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013353 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013354 }
13355 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013356 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013357 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013358 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013359 },
13360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013361 {
13362 .vendor = "ST",
13363 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013364 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013365 .manufacture_id = ST_ID,
13366 .model_id = ST_M29W010B,
13367 .total_size = 128,
13368 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013369 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013370 .tested = TEST_UNTESTED,
13371 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013372 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013373 .block_erasers =
13374 {
13375 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013376 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013377 .block_erase = erase_sector_jedec,
13378 }, {
13379 .eraseblocks = { {128 * 1024, 1} },
13380 .block_erase = erase_chip_block_jedec,
13381 }
13382 },
Sean Nelson35727f72010-01-28 23:55:12 +000013383 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013385 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013386 },
13387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013388 {
13389 .vendor = "ST",
13390 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013391 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013392 .manufacture_id = ST_ID,
13393 .model_id = ST_M29W040B,
13394 .total_size = 512,
13395 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013396 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013397 .tested = TEST_UNTESTED,
13398 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013399 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013400 .block_erasers =
13401 {
13402 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013403 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013404 .block_erase = erase_sector_jedec,
13405 }, {
13406 .eraseblocks = { {512 * 1024, 1} },
13407 .block_erase = erase_chip_block_jedec,
13408 }
13409 },
Sean Nelson35727f72010-01-28 23:55:12 +000013410 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013412 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013413 },
13414
Stefan Taunereb582572012-09-21 12:52:50 +000013415 {
13416 .vendor = "ST",
13417 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013418 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000013419 .manufacture_id = ST_ID,
13420 .model_id = ST_M29W512B,
13421 .total_size = 64,
13422 .page_size = 64 * 1024,
13423 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013424 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013425 .probe = probe_jedec,
13426 .probe_timing = TIMING_ZERO,
13427 .block_erasers =
13428 {
13429 {
13430 .eraseblocks = { {64 * 1024, 1} },
13431 .block_erase = erase_chip_block_jedec,
13432 }
13433 },
13434 .write = write_jedec_1,
13435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013436 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013437 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000013438
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013439 {
13440 .vendor = "ST",
13441 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013442 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013443 .manufacture_id = ST_ID,
13444 .model_id = ST_M50FLW040A,
13445 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013446 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013447 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013448 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013449 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013450 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013451 .block_erasers =
13452 {
13453 {
Sean Nelson329bde72010-01-19 16:39:19 +000013454 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013455 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013456 {64 * 1024, 5}, /* block */
13457 {4 * 1024, 16}, /* sector */
13458 {4 * 1024, 16}, /* sector */
13459 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013460 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013461 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013462 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013463 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013464 }
13465 },
Sean Nelson28accc22010-03-19 18:47:06 +000013466 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013467 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013468 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013469 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013470 },
13471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013472 {
13473 .vendor = "ST",
13474 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013475 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 .manufacture_id = ST_ID,
13477 .model_id = ST_M50FLW040B,
13478 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013479 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013480 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013481 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013482 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013483 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013484 .block_erasers =
13485 {
13486 {
Sean Nelson329bde72010-01-19 16:39:19 +000013487 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013488 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013489 {4 * 1024, 16}, /* sector */
13490 {64 * 1024, 5}, /* block */
13491 {4 * 1024, 16}, /* sector */
13492 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013493 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013494 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013495 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013496 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013497 }
13498 },
Sean Nelson28accc22010-03-19 18:47:06 +000013499 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013500 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013501 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013502 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013503 },
13504
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013505 {
13506 .vendor = "ST",
13507 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013508 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013509 .manufacture_id = ST_ID,
13510 .model_id = ST_M50FLW080A,
13511 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013512 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013513 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013514 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013515 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013516 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013517 .block_erasers =
13518 {
13519 {
Sean Nelson329bde72010-01-19 16:39:19 +000013520 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013521 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013522 {64 * 1024, 13}, /* block */
13523 {4 * 1024, 16}, /* sector */
13524 {4 * 1024, 16}, /* sector */
13525 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013526 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013527 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013529 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013530 }
13531 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013532 .printlock = printlock_regspace2_block_eraser_0,
13533 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013534 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013536 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013537 },
13538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013539 {
13540 .vendor = "ST",
13541 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013542 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013543 .manufacture_id = ST_ID,
13544 .model_id = ST_M50FLW080B,
13545 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013546 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013547 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013548 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013549 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013550 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013551 .block_erasers =
13552 {
13553 {
Sean Nelson329bde72010-01-19 16:39:19 +000013554 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013555 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013556 {4 * 1024, 16}, /* sector */
13557 {64 * 1024, 13}, /* block */
13558 {4 * 1024, 16}, /* sector */
13559 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013560 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013561 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013562 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013563 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013564 }
13565 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013566 .printlock = printlock_regspace2_block_eraser_0,
13567 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013568 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013569 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013570 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013571 },
13572
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013573 {
13574 .vendor = "ST",
13575 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013576 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013577 .manufacture_id = ST_ID,
13578 .model_id = ST_M50FW002,
13579 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000013580 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013581 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013582 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013583 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013584 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013585 .block_erasers =
13586 {
13587 {
13588 .eraseblocks = {
13589 {64 * 1024, 3},
13590 {32 * 1024, 1},
13591 {8 * 1024, 2},
13592 {16 * 1024, 1},
13593 },
Sean Nelson28accc22010-03-19 18:47:06 +000013594 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013595 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000013596 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013597 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000013598 }
13599 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013600 .printlock = printlock_regspace2_block_eraser_0,
13601 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013602 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013604 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013605 },
13606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013607 {
13608 .vendor = "ST",
13609 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013610 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013611 .manufacture_id = ST_ID,
13612 .model_id = ST_M50FW016,
13613 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000013614 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013615 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013616 .tested = TEST_UNTESTED,
13617 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013618 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013619 .block_erasers =
13620 {
13621 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013622 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000013623 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013624 }
13625 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013626 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013627 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013628 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013629 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013630 },
13631
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013632 {
13633 .vendor = "ST",
13634 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013635 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013636 .manufacture_id = ST_ID,
13637 .model_id = ST_M50FW040,
13638 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013639 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013640 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000013641 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013642 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013643 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013644 .block_erasers =
13645 {
13646 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013647 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013648 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013649 }
13650 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013651 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013652 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013654 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013655 },
13656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013657 {
13658 .vendor = "ST",
13659 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013660 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013661 .manufacture_id = ST_ID,
13662 .model_id = ST_M50FW080,
13663 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013664 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013665 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013666 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013667 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013668 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013669 .block_erasers =
13670 {
13671 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013672 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013673 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013674 }
13675 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013676 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013677 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013679 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013680 },
13681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013682 {
13683 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013684 .name = "M50LPW080",
13685 .bustype = BUS_LPC, /* A/A Mux */
13686 .manufacture_id = ST_ID,
13687 .model_id = ST_M50LPW080,
13688 .total_size = 1024,
13689 .page_size = 0,
13690 .feature_bits = FEATURE_REGISTERMAP,
13691 .tested = TEST_UNTESTED,
13692 .probe = probe_82802ab,
13693 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13694 .block_erasers =
13695 {
13696 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013697 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013698 .block_erase = erase_block_82802ab,
13699 }
13700 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013701 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013702 .write = write_82802ab,
13703 .read = read_memmapped,
13704 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
13705 },
13706
13707 {
13708 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013709 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013710 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013711 .manufacture_id = ST_ID,
13712 .model_id = ST_M50LPW116,
13713 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000013714 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013715 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013716 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013717 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000013718 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013719 .block_erasers =
13720 {
13721 {
13722 .eraseblocks = {
13723 {4 * 1024, 16},
13724 {64 * 1024, 30},
13725 {32 * 1024, 1},
13726 {8 * 1024, 2},
13727 {16 * 1024, 1},
13728 },
Sean Nelson28accc22010-03-19 18:47:06 +000013729 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013730 }
13731 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013732 .printlock = printlock_regspace2_block_eraser_0,
13733 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013734 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013736 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013737 },
13738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013739 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013740 .vendor = "SyncMOS/MoselVitelic",
13741 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013742 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013743 .manufacture_id = SYNCMOS_MVC_ID,
13744 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013745 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013746 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000013747 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013748 .tested = TEST_UNTESTED,
13749 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013751 .block_erasers =
13752 {
13753 {
13754 .eraseblocks = { {512, 256} },
13755 .block_erase = erase_sector_jedec,
13756 }, {
13757 .eraseblocks = { {128 * 1024, 1} },
13758 .block_erase = erase_chip_block_jedec,
13759 },
13760 },
Sean Nelson35727f72010-01-28 23:55:12 +000013761 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013762 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013763 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013764 },
13765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013766 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013767 .vendor = "SyncMOS/MoselVitelic",
13768 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013769 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013770 .manufacture_id = SYNCMOS_MVC_ID,
13771 .model_id = SM_MVC_29C51001T,
13772 .total_size = 128,
13773 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000013774 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013775 .tested = TEST_UNTESTED,
13776 .probe = probe_jedec,
13777 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13778 .block_erasers =
13779 {
13780 {
13781 .eraseblocks = { {512, 256} },
13782 .block_erase = erase_sector_jedec,
13783 }, {
13784 .eraseblocks = { {128 * 1024, 1} },
13785 .block_erase = erase_chip_block_jedec,
13786 },
13787 },
13788 .write = write_jedec_1,
13789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013790 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013791 },
13792
13793 {
13794 .vendor = "SyncMOS/MoselVitelic",
13795 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013796 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013797 .manufacture_id = SYNCMOS_MVC_ID,
13798 .model_id = SM_MVC_29C51002B,
13799 .total_size = 256,
13800 .page_size = 512,
13801 .feature_bits = FEATURE_EITHER_RESET,
13802 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013803 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013804 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013805 .block_erasers =
13806 {
13807 {
13808 .eraseblocks = { {512, 512} },
13809 .block_erase = erase_sector_jedec,
13810 }, {
13811 .eraseblocks = { {256 * 1024, 1} },
13812 .block_erase = erase_chip_block_jedec,
13813 },
13814 },
Sean Nelson35727f72010-01-28 23:55:12 +000013815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013816 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013817 },
13818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013819 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013820 .vendor = "SyncMOS/MoselVitelic",
13821 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013822 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013823 .manufacture_id = SYNCMOS_MVC_ID,
13824 .model_id = SM_MVC_29C51002T,
13825 .total_size = 256,
13826 .page_size = 512,
13827 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013828 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013829 .probe = probe_jedec,
13830 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13831 .block_erasers =
13832 {
13833 {
13834 .eraseblocks = { {512, 512} },
13835 .block_erase = erase_sector_jedec,
13836 }, {
13837 .eraseblocks = { {256 * 1024, 1} },
13838 .block_erase = erase_chip_block_jedec,
13839 },
13840 },
13841 .write = write_jedec_1,
13842 .read = read_memmapped,
13843 },
13844
13845 {
13846 .vendor = "SyncMOS/MoselVitelic",
13847 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013848 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013849 .manufacture_id = SYNCMOS_MVC_ID,
13850 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013851 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013852 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013853 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013854 .tested = TEST_UNTESTED,
13855 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013856 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000013857 .block_erasers =
13858 {
13859 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013860 .eraseblocks = { {1024, 512} },
13861 .block_erase = erase_sector_jedec,
13862 }, {
13863 .eraseblocks = { {512 * 1024, 1} },
13864 .block_erase = erase_chip_block_jedec,
13865 },
13866 },
13867 .write = write_jedec_1,
13868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013869 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013870 },
13871
13872 {
13873 .vendor = "SyncMOS/MoselVitelic",
13874 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013875 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013876 .manufacture_id = SYNCMOS_MVC_ID,
13877 .model_id = SM_MVC_29C51004T,
13878 .total_size = 512,
13879 .page_size = 1024,
13880 .feature_bits = FEATURE_EITHER_RESET,
13881 .tested = TEST_UNTESTED,
13882 .probe = probe_jedec,
13883 .probe_timing = TIMING_ZERO,
13884 .block_erasers =
13885 {
13886 {
13887 .eraseblocks = { {1024, 512} },
13888 .block_erase = erase_sector_jedec,
13889 }, {
13890 .eraseblocks = { {512 * 1024, 1} },
13891 .block_erase = erase_chip_block_jedec,
13892 },
13893 },
13894 .write = write_jedec_1,
13895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013896 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013897 },
13898
13899 {
13900 .vendor = "SyncMOS/MoselVitelic",
13901 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013902 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013903 .manufacture_id = SYNCMOS_MVC_ID,
13904 .model_id = SM_MVC_29C31004B,
13905 .total_size = 512,
13906 .page_size = 1024,
13907 .feature_bits = FEATURE_EITHER_RESET,
13908 .tested = TEST_UNTESTED,
13909 .probe = probe_jedec,
13910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13911 .block_erasers =
13912 {
13913 {
13914 .eraseblocks = { {1024, 512} },
13915 .block_erase = erase_sector_jedec,
13916 }, {
13917 .eraseblocks = { {512 * 1024, 1} },
13918 .block_erase = erase_chip_block_jedec,
13919 },
13920 },
13921 .write = write_jedec_1,
13922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013923 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013924 },
13925
13926 {
13927 .vendor = "SyncMOS/MoselVitelic",
13928 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013929 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013930 .manufacture_id = SYNCMOS_MVC_ID,
13931 .model_id = SM_MVC_29C31004T,
13932 .total_size = 512,
13933 .page_size = 1024,
13934 .feature_bits = FEATURE_EITHER_RESET,
13935 .tested = TEST_UNTESTED,
13936 .probe = probe_jedec,
13937 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13938 .block_erasers =
13939 {
13940 {
13941 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013942 .block_erase = erase_sector_jedec,
13943 }, {
13944 .eraseblocks = { {512 * 1024, 1} },
13945 .block_erase = erase_chip_block_jedec,
13946 },
13947 },
Sean Nelson35727f72010-01-28 23:55:12 +000013948 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013949 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013950 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013951 },
13952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013953 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013954 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013955 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013956 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013957 .manufacture_id = TI_OLD_ID,
13958 .model_id = TI_TMS29F002RB,
13959 .total_size = 256,
13960 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013961 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013962 .tested = TEST_UNTESTED,
13963 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013964 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013965 .block_erasers =
13966 {
13967 {
13968 .eraseblocks = {
13969 {16 * 1024, 1},
13970 {8 * 1024, 2},
13971 {32 * 1024, 1},
13972 {64 * 1024, 3},
13973 },
13974 .block_erase = erase_sector_jedec,
13975 }, {
13976 .eraseblocks = { {256 * 1024, 1} },
13977 .block_erase = erase_chip_block_jedec,
13978 },
13979 },
Sean Nelson35727f72010-01-28 23:55:12 +000013980 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013982 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013983 },
13984
13985 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013986 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013987 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013988 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013989 .manufacture_id = TI_OLD_ID,
13990 .model_id = TI_TMS29F002RT,
13991 .total_size = 256,
13992 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013993 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013994 .tested = TEST_UNTESTED,
13995 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013996 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013997 .block_erasers =
13998 {
13999 {
14000 .eraseblocks = {
14001 {64 * 1024, 3},
14002 {32 * 1024, 1},
14003 {8 * 1024, 2},
14004 {16 * 1024, 1},
14005 },
14006 .block_erase = erase_sector_jedec,
14007 }, {
14008 .eraseblocks = { {256 * 1024, 1} },
14009 .block_erase = erase_chip_block_jedec,
14010 },
14011 },
Sean Nelson35727f72010-01-28 23:55:12 +000014012 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014013 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014014 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014015 },
14016
14017 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014018 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014019 .name = "W25Q40.V",
14020 .bustype = BUS_SPI,
14021 .manufacture_id = WINBOND_NEX_ID,
14022 .model_id = WINBOND_NEX_W25Q40_V,
14023 .total_size = 512,
14024 .page_size = 256,
14025 /* supports SFDP */
14026 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14027 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014028 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014029 .probe = probe_spi_rdid,
14030 .probe_timing = TIMING_ZERO,
14031 .block_erasers =
14032 {
14033 {
14034 .eraseblocks = { {4 * 1024, 128} },
14035 .block_erase = spi_block_erase_20,
14036 }, {
14037 .eraseblocks = { {32 * 1024, 16} },
14038 .block_erase = spi_block_erase_52,
14039 }, {
14040 .eraseblocks = { {64 * 1024, 8} },
14041 .block_erase = spi_block_erase_d8,
14042 }, {
14043 .eraseblocks = { {512 * 1024, 1} },
14044 .block_erase = spi_block_erase_60,
14045 }, {
14046 .eraseblocks = { {512 * 1024, 1} },
14047 .block_erase = spi_block_erase_c7,
14048 }
14049 },
14050 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14051 .unlock = spi_disable_blockprotect,
14052 .write = spi_chip_write_256, /* Multi I/O supported */
14053 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14054 .voltage = {2700, 3600},
14055 },
14056
14057 {
14058 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014059 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014060 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014061 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014062 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014063 .total_size = 1024,
14064 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014065 /* supports SFDP */
14066 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014068 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014069 .probe = probe_spi_rdid,
14070 .probe_timing = TIMING_ZERO,
14071 .block_erasers =
14072 {
14073 {
14074 .eraseblocks = { {4 * 1024, 256} },
14075 .block_erase = spi_block_erase_20,
14076 }, {
14077 .eraseblocks = { {32 * 1024, 32} },
14078 .block_erase = spi_block_erase_52,
14079 }, {
14080 .eraseblocks = { {64 * 1024, 16} },
14081 .block_erase = spi_block_erase_d8,
14082 }, {
14083 .eraseblocks = { {1024 * 1024, 1} },
14084 .block_erase = spi_block_erase_60,
14085 }, {
14086 .eraseblocks = { {1024 * 1024, 1} },
14087 .block_erase = spi_block_erase_c7,
14088 }
14089 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014090 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014091 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014092 .write = spi_chip_write_256,
14093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014094 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014095 },
14096
14097 {
14098 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014099 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014100 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014101 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014102 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014103 .total_size = 2048,
14104 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014105 /* supports SFDP */
14106 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014108 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014109 .probe = probe_spi_rdid,
14110 .probe_timing = TIMING_ZERO,
14111 .block_erasers =
14112 {
14113 {
14114 .eraseblocks = { {4 * 1024, 512} },
14115 .block_erase = spi_block_erase_20,
14116 }, {
14117 .eraseblocks = { {32 * 1024, 64} },
14118 .block_erase = spi_block_erase_52,
14119 }, {
14120 .eraseblocks = { {64 * 1024, 32} },
14121 .block_erase = spi_block_erase_d8,
14122 }, {
14123 .eraseblocks = { {2 * 1024 * 1024, 1} },
14124 .block_erase = spi_block_erase_60,
14125 }, {
14126 .eraseblocks = { {2 * 1024 * 1024, 1} },
14127 .block_erase = spi_block_erase_c7,
14128 }
14129 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014130 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014131 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014132 .write = spi_chip_write_256,
14133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014134 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014135 },
14136
14137 {
14138 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014139 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014140 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014141 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014142 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014143 .total_size = 4096,
14144 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014145 /* supports SFDP */
14146 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014147 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014148 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014149 .probe = probe_spi_rdid,
14150 .probe_timing = TIMING_ZERO,
14151 .block_erasers =
14152 {
14153 {
14154 .eraseblocks = { {4 * 1024, 1024} },
14155 .block_erase = spi_block_erase_20,
14156 }, {
14157 .eraseblocks = { {32 * 1024, 128} },
14158 .block_erase = spi_block_erase_52,
14159 }, {
14160 .eraseblocks = { {64 * 1024, 64} },
14161 .block_erase = spi_block_erase_d8,
14162 }, {
14163 .eraseblocks = { {4 * 1024 * 1024, 1} },
14164 .block_erase = spi_block_erase_60,
14165 }, {
14166 .eraseblocks = { {4 * 1024 * 1024, 1} },
14167 .block_erase = spi_block_erase_c7,
14168 }
14169 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014170 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014171 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014172 .write = spi_chip_write_256,
14173 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014174 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014175 },
14176
14177 {
14178 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014179 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014180 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000014181 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014182 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000014183 .total_size = 8192,
14184 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014185 /* supports SFDP */
14186 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014188 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000014189 .probe = probe_spi_rdid,
14190 .probe_timing = TIMING_ZERO,
14191 .block_erasers =
14192 {
14193 {
14194 .eraseblocks = { {4 * 1024, 2048} },
14195 .block_erase = spi_block_erase_20,
14196 }, {
14197 .eraseblocks = { {32 * 1024, 256} },
14198 .block_erase = spi_block_erase_52,
14199 }, {
14200 .eraseblocks = { {64 * 1024, 128} },
14201 .block_erase = spi_block_erase_d8,
14202 }, {
14203 .eraseblocks = { {8 * 1024 * 1024, 1} },
14204 .block_erase = spi_block_erase_60,
14205 }, {
14206 .eraseblocks = { {8 * 1024 * 1024, 1} },
14207 .block_erase = spi_block_erase_c7,
14208 }
14209 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014210 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014211 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000014212 .write = spi_chip_write_256,
14213 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014214 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000014215 },
14216
14217 {
14218 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014219 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014220 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014221 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014222 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014223 .total_size = 16384,
14224 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014225 /* supports SFDP */
14226 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014228 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014229 .probe = probe_spi_rdid,
14230 .probe_timing = TIMING_ZERO,
14231 .block_erasers =
14232 {
14233 {
14234 .eraseblocks = { {4 * 1024, 4096} },
14235 .block_erase = spi_block_erase_20,
14236 }, {
14237 .eraseblocks = { {32 * 1024, 512} },
14238 .block_erase = spi_block_erase_52,
14239 }, {
14240 .eraseblocks = { {64 * 1024, 256} },
14241 .block_erase = spi_block_erase_d8,
14242 }, {
14243 .eraseblocks = { {16 * 1024 * 1024, 1} },
14244 .block_erase = spi_block_erase_60,
14245 }, {
14246 .eraseblocks = { {16 * 1024 * 1024, 1} },
14247 .block_erase = spi_block_erase_c7,
14248 }
14249 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014251 .unlock = spi_disable_blockprotect,
14252 .write = spi_chip_write_256,
14253 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014254 .voltage = {2700, 3600},
14255 },
14256
14257 {
14258 .vendor = "Winbond",
14259 .name = "W25Q20.W",
14260 .bustype = BUS_SPI,
14261 .manufacture_id = WINBOND_NEX_ID,
14262 .model_id = WINBOND_NEX_W25Q20_W,
14263 .total_size = 256,
14264 .page_size = 256,
14265 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14266 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14267 .tested = TEST_UNTESTED,
14268 .probe = probe_spi_rdid,
14269 .probe_timing = TIMING_ZERO,
14270 .block_erasers =
14271 {
14272 {
14273 .eraseblocks = { {4 * 1024, 64} },
14274 .block_erase = spi_block_erase_20,
14275 }, {
14276 .eraseblocks = { {32 * 1024, 8} },
14277 .block_erase = spi_block_erase_52,
14278 }, {
14279 .eraseblocks = { {64 * 1024, 4} },
14280 .block_erase = spi_block_erase_d8,
14281 }, {
14282 .eraseblocks = { {256 * 1024, 1} },
14283 .block_erase = spi_block_erase_60,
14284 }, {
14285 .eraseblocks = { {256 * 1024, 1} },
14286 .block_erase = spi_block_erase_c7,
14287 }
14288 },
14289 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14290 .unlock = spi_disable_blockprotect,
14291 .write = spi_chip_write_256,
14292 .read = spi_chip_read,
14293 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14294 },
14295
14296 {
14297 .vendor = "Winbond",
14298 .name = "W25Q40.W",
14299 .bustype = BUS_SPI,
14300 .manufacture_id = WINBOND_NEX_ID,
14301 .model_id = WINBOND_NEX_W25Q40_W,
14302 .total_size = 512,
14303 .page_size = 256,
14304 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14306 .tested = TEST_UNTESTED,
14307 .probe = probe_spi_rdid,
14308 .probe_timing = TIMING_ZERO,
14309 .block_erasers =
14310 {
14311 {
14312 .eraseblocks = { {4 * 1024, 128} },
14313 .block_erase = spi_block_erase_20,
14314 }, {
14315 .eraseblocks = { {32 * 1024, 16} },
14316 .block_erase = spi_block_erase_52,
14317 }, {
14318 .eraseblocks = { {64 * 1024, 8} },
14319 .block_erase = spi_block_erase_d8,
14320 }, {
14321 .eraseblocks = { {512 * 1024, 1} },
14322 .block_erase = spi_block_erase_60,
14323 }, {
14324 .eraseblocks = { {512 * 1024, 1} },
14325 .block_erase = spi_block_erase_c7,
14326 }
14327 },
14328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14329 .unlock = spi_disable_blockprotect,
14330 .write = spi_chip_write_256,
14331 .read = spi_chip_read,
14332 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14333 },
14334
14335 {
14336 .vendor = "Winbond",
14337 .name = "W25Q80.W",
14338 .bustype = BUS_SPI,
14339 .manufacture_id = WINBOND_NEX_ID,
14340 .model_id = WINBOND_NEX_W25Q80_W,
14341 .total_size = 1024,
14342 .page_size = 256,
14343 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014345 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014346 .probe = probe_spi_rdid,
14347 .probe_timing = TIMING_ZERO,
14348 .block_erasers =
14349 {
14350 {
14351 .eraseblocks = { {4 * 1024, 256} },
14352 .block_erase = spi_block_erase_20,
14353 }, {
14354 .eraseblocks = { {32 * 1024, 32} },
14355 .block_erase = spi_block_erase_52,
14356 }, {
14357 .eraseblocks = { {64 * 1024, 16} },
14358 .block_erase = spi_block_erase_d8,
14359 }, {
14360 .eraseblocks = { {1 * 1024 * 1024, 1} },
14361 .block_erase = spi_block_erase_60,
14362 }, {
14363 .eraseblocks = { {1 * 1024 * 1024, 1} },
14364 .block_erase = spi_block_erase_c7,
14365 }
14366 },
14367 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14368 .unlock = spi_disable_blockprotect,
14369 .write = spi_chip_write_256,
14370 .read = spi_chip_read,
14371 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14372 },
14373
14374 {
14375 .vendor = "Winbond",
14376 .name = "W25Q16.W",
14377 .bustype = BUS_SPI,
14378 .manufacture_id = WINBOND_NEX_ID,
14379 .model_id = WINBOND_NEX_W25Q16_W,
14380 .total_size = 2048,
14381 .page_size = 256,
14382 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14383 /* QPI enable 0x38, disable 0xFF */
14384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14385 .tested = TEST_UNTESTED,
14386 .probe = probe_spi_rdid,
14387 .probe_timing = TIMING_ZERO,
14388 .block_erasers =
14389 {
14390 {
14391 .eraseblocks = { {4 * 1024, 512} },
14392 .block_erase = spi_block_erase_20,
14393 }, {
14394 .eraseblocks = { {32 * 1024, 64} },
14395 .block_erase = spi_block_erase_52,
14396 }, {
14397 .eraseblocks = { {64 * 1024, 32} },
14398 .block_erase = spi_block_erase_d8,
14399 }, {
14400 .eraseblocks = { {2 * 1024 * 1024, 1} },
14401 .block_erase = spi_block_erase_60,
14402 }, {
14403 .eraseblocks = { {2 * 1024 * 1024, 1} },
14404 .block_erase = spi_block_erase_c7,
14405 }
14406 },
14407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14408 .unlock = spi_disable_blockprotect,
14409 .write = spi_chip_write_256,
14410 .read = spi_chip_read,
14411 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14412 },
14413
14414 {
14415 .vendor = "Winbond",
14416 .name = "W25Q32.W",
14417 .bustype = BUS_SPI,
14418 .manufacture_id = WINBOND_NEX_ID,
14419 .model_id = WINBOND_NEX_W25Q32_W,
14420 .total_size = 4096,
14421 .page_size = 256,
14422 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14423 /* QPI enable 0x38, disable 0xFF */
14424 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14425 .tested = TEST_OK_PREW,
14426 .probe = probe_spi_rdid,
14427 .probe_timing = TIMING_ZERO,
14428 .block_erasers =
14429 {
14430 {
14431 .eraseblocks = { {4 * 1024, 1024} },
14432 .block_erase = spi_block_erase_20,
14433 }, {
14434 .eraseblocks = { {32 * 1024, 128} },
14435 .block_erase = spi_block_erase_52,
14436 }, {
14437 .eraseblocks = { {64 * 1024, 64} },
14438 .block_erase = spi_block_erase_d8,
14439 }, {
14440 .eraseblocks = { {4 * 1024 * 1024, 1} },
14441 .block_erase = spi_block_erase_60,
14442 }, {
14443 .eraseblocks = { {4 * 1024 * 1024, 1} },
14444 .block_erase = spi_block_erase_c7,
14445 }
14446 },
14447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14448 .unlock = spi_disable_blockprotect,
14449 .write = spi_chip_write_256,
14450 .read = spi_chip_read,
14451 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14452 },
14453
14454 {
14455 .vendor = "Winbond",
14456 .name = "W25Q64.W",
14457 .bustype = BUS_SPI,
14458 .manufacture_id = WINBOND_NEX_ID,
14459 .model_id = WINBOND_NEX_W25Q64_W,
14460 .total_size = 8192,
14461 .page_size = 256,
14462 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14463 /* QPI enable 0x38, disable 0xFF */
14464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014465 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014466 .probe = probe_spi_rdid,
14467 .probe_timing = TIMING_ZERO,
14468 .block_erasers =
14469 {
14470 {
14471 .eraseblocks = { {4 * 1024, 2048} },
14472 .block_erase = spi_block_erase_20,
14473 }, {
14474 .eraseblocks = { {32 * 1024, 256} },
14475 .block_erase = spi_block_erase_52,
14476 }, {
14477 .eraseblocks = { {64 * 1024, 128} },
14478 .block_erase = spi_block_erase_d8,
14479 }, {
14480 .eraseblocks = { {8 * 1024 * 1024, 1} },
14481 .block_erase = spi_block_erase_60,
14482 }, {
14483 .eraseblocks = { {8 * 1024 * 1024, 1} },
14484 .block_erase = spi_block_erase_c7,
14485 }
14486 },
14487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14488 .unlock = spi_disable_blockprotect,
14489 .write = spi_chip_write_256,
14490 .read = spi_chip_read,
14491 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014492 },
14493
14494 {
14495 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014496 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014497 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014498 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014499 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014500 .total_size = 128,
14501 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014502 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014503 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014505 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014506 .block_erasers =
14507 {
14508 {
14509 .eraseblocks = { {4 * 1024, 32} },
14510 .block_erase = spi_block_erase_20,
14511 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014512 .eraseblocks = { {64 * 1024, 2} },
14513 .block_erase = spi_block_erase_d8,
14514 }, {
14515 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014516 .block_erase = spi_block_erase_c7,
14517 }
14518 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014519 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014520 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014521 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014522 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014523 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014524 },
14525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014526 {
14527 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014528 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014529 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014530 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014531 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014532 .total_size = 256,
14533 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014534 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014535 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014537 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014538 .block_erasers =
14539 {
14540 {
14541 .eraseblocks = { {4 * 1024, 64} },
14542 .block_erase = spi_block_erase_20,
14543 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014544 .eraseblocks = { {64 * 1024, 4} },
14545 .block_erase = spi_block_erase_d8,
14546 }, {
14547 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014548 .block_erase = spi_block_erase_c7,
14549 }
14550 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014552 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014553 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014554 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014555 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014556 },
14557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014558 {
14559 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014560 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014561 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014562 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014563 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014564 .total_size = 512,
14565 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014566 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000014567 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014569 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014570 .block_erasers =
14571 {
14572 {
14573 .eraseblocks = { {4 * 1024, 128} },
14574 .block_erase = spi_block_erase_20,
14575 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014576 .eraseblocks = { {64 * 1024, 8} },
14577 .block_erase = spi_block_erase_d8,
14578 }, {
14579 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014580 .block_erase = spi_block_erase_c7,
14581 }
14582 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014583 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014585 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014587 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014588 },
14589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014590 {
14591 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014592 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014593 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014594 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014595 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014596 .total_size = 1024,
14597 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014598 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000014599 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014600 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014601 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014602 .block_erasers =
14603 {
14604 {
14605 .eraseblocks = { {4 * 1024, 256} },
14606 .block_erase = spi_block_erase_20,
14607 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014608 .eraseblocks = { {64 * 1024, 16} },
14609 .block_erase = spi_block_erase_d8,
14610 }, {
14611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014612 .block_erase = spi_block_erase_c7,
14613 }
14614 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014615 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014616 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014617 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014618 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014619 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014620 },
14621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014622 {
14623 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014624 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014625 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000014626 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014627 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000014628 .total_size = 2048,
14629 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014630 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000014631 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000014632 .probe = probe_spi_rdid,
14633 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014634 .block_erasers =
14635 {
14636 {
14637 .eraseblocks = { {4 * 1024, 512} },
14638 .block_erase = spi_block_erase_20,
14639 }, {
14640 .eraseblocks = { {32 * 1024, 64} },
14641 .block_erase = spi_block_erase_52,
14642 }, {
14643 .eraseblocks = { {64 * 1024, 32} },
14644 .block_erase = spi_block_erase_d8,
14645 }, {
14646 .eraseblocks = { {2 * 1024 * 1024, 1} },
14647 .block_erase = spi_block_erase_60,
14648 }, {
14649 .eraseblocks = { {2 * 1024 * 1024, 1} },
14650 .block_erase = spi_block_erase_c7,
14651 }
14652 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014653 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014654 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000014655 .write = spi_chip_write_256,
14656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014657 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000014658 },
14659
14660 {
14661 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014662 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014663 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000014664 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014665 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000014666 .total_size = 4096,
14667 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014668 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014669 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000014670 .probe = probe_spi_rdid,
14671 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014672 .block_erasers =
14673 {
14674 {
14675 .eraseblocks = { {4 * 1024, 1024} },
14676 .block_erase = spi_block_erase_20,
14677 }, {
14678 .eraseblocks = { {32 * 1024, 128} },
14679 .block_erase = spi_block_erase_52,
14680 }, {
14681 .eraseblocks = { {64 * 1024, 64} },
14682 .block_erase = spi_block_erase_d8,
14683 }, {
14684 .eraseblocks = { {4 * 1024 * 1024, 1} },
14685 .block_erase = spi_block_erase_60,
14686 }, {
14687 .eraseblocks = { {4 * 1024 * 1024, 1} },
14688 .block_erase = spi_block_erase_c7,
14689 }
14690 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014691 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014692 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000014693 .write = spi_chip_write_256,
14694 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014695 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000014696 },
14697
14698 {
14699 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014700 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014701 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000014702 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014703 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000014704 .total_size = 8192,
14705 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014706 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014707 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000014708 .probe = probe_spi_rdid,
14709 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014710 .block_erasers =
14711 {
14712 {
14713 .eraseblocks = { {4 * 1024, 2048} },
14714 .block_erase = spi_block_erase_20,
14715 }, {
14716 .eraseblocks = { {32 * 1024, 256} },
14717 .block_erase = spi_block_erase_52,
14718 }, {
14719 .eraseblocks = { {64 * 1024, 128} },
14720 .block_erase = spi_block_erase_d8,
14721 }, {
14722 .eraseblocks = { {8 * 1024 * 1024, 1} },
14723 .block_erase = spi_block_erase_60,
14724 }, {
14725 .eraseblocks = { {8 * 1024 * 1024, 1} },
14726 .block_erase = spi_block_erase_c7,
14727 }
14728 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014729 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014730 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000014731 .write = spi_chip_write_256,
14732 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014733 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000014734 },
14735
14736 {
14737 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000014738 .name = "W29C512A/W29EE512",
14739 .bustype = BUS_PARALLEL,
14740 .manufacture_id = WINBOND_ID,
14741 .model_id = WINBOND_W29C512A,
14742 .total_size = 64,
14743 .page_size = 128,
14744 .feature_bits = FEATURE_LONG_RESET,
14745 .tested = TEST_OK_PREW,
14746 .probe = probe_jedec,
14747 .probe_timing = 10,
14748 .block_erasers =
14749 {
14750 {
14751 .eraseblocks = { {64 * 1024, 1} },
14752 .block_erase = erase_chip_block_jedec,
14753 }
14754 },
14755 .write = write_jedec,
14756 .read = read_memmapped,
14757 .voltage = {4500, 5500},
14758 },
14759
14760 {
14761 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014762 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014763 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014764 .manufacture_id = WINBOND_ID,
14765 .model_id = WINBOND_W29C010,
14766 .total_size = 128,
14767 .page_size = 128,
14768 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014769 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014770 .probe = probe_w29ee011,
14771 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
14772 .block_erasers =
14773 {
14774 {
14775 .eraseblocks = { {128 * 1024, 1} },
14776 .block_erase = erase_chip_block_jedec,
14777 }
14778 },
14779 .write = write_jedec,
14780 .read = read_memmapped,
14781 },
14782
14783 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
14784 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014785 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014786 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014787 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014788 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014789 .total_size = 128,
14790 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014791 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000014792 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014793 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014794 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014795 .block_erasers =
14796 {
14797 {
14798 .eraseblocks = { {128 * 1024, 1} },
14799 .block_erase = erase_chip_block_jedec,
14800 }
14801 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014802 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014803 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014804 },
14805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014806 {
14807 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014808 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014810 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014811 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014812 .total_size = 256,
14813 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014814 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014815 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014816 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014817 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014818 .block_erasers =
14819 {
14820 {
14821 .eraseblocks = { {256 * 1024, 1} },
14822 .block_erase = erase_chip_block_jedec,
14823 }
14824 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014825 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014827 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014828 },
14829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 {
14831 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014832 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014834 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014835 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014836 .total_size = 512,
14837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014838 .feature_bits = FEATURE_LONG_RESET,
14839 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014840 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014841 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014842 .block_erasers =
14843 {
14844 {
14845 .eraseblocks = { {512 * 1024, 1} },
14846 .block_erase = erase_chip_block_jedec,
14847 }
14848 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014849 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014851 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014852 },
14853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014854 {
14855 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000014856 .name = "W29GL032CB",
14857 .bustype = BUS_PARALLEL,
14858 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14859 .model_id = WINBOND_W29GL032CB,
14860 .total_size = 4096,
14861 .page_size = 128 * 1024, /* actual page size is 16 */
14862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14863 .tested = TEST_UNTESTED,
14864 .probe = probe_jedec_29gl,
14865 .probe_timing = TIMING_ZERO,
14866 .block_erasers =
14867 {
14868 {
14869 .eraseblocks = {
14870 {8 * 1024, 8},
14871 {64 * 1024, 63},
14872 },
14873 .block_erase = erase_sector_jedec,
14874 }, {
14875 .eraseblocks = { {4 * 1024 * 1024, 1} },
14876 .block_erase = erase_chip_block_jedec,
14877 },
14878 },
14879 .write = write_jedec_1,
14880 .read = read_memmapped,
14881 .voltage = {2700, 3600},
14882 },
14883
14884 {
14885 .vendor = "Winbond",
14886 .name = "W29GL032CT",
14887 .bustype = BUS_PARALLEL,
14888 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14889 .model_id = WINBOND_W29GL032CT,
14890 .total_size = 4096,
14891 .page_size = 128 * 1024, /* actual page size is 16 */
14892 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14893 .tested = TEST_UNTESTED,
14894 .probe = probe_jedec_29gl,
14895 .probe_timing = TIMING_ZERO,
14896 .block_erasers =
14897 {
14898 {
14899 .eraseblocks = {
14900 {64 * 1024, 63},
14901 {8 * 1024, 8},
14902 },
14903 .block_erase = erase_sector_jedec,
14904 }, {
14905 .eraseblocks = { {4 * 1024 * 1024, 1} },
14906 .block_erase = erase_chip_block_jedec,
14907 },
14908 },
14909 .write = write_jedec_1,
14910 .read = read_memmapped,
14911 .voltage = {2700, 3600},
14912 },
14913
14914 {
14915 .vendor = "Winbond",
14916 .name = "W29GL032CH/L",
14917 .bustype = BUS_PARALLEL,
14918 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14919 .model_id = WINBOND_W29GL032CHL,
14920 .total_size = 4096,
14921 .page_size = 128 * 1024, /* actual page size is 16 */
14922 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14923 .tested = TEST_UNTESTED,
14924 .probe = probe_jedec_29gl,
14925 .probe_timing = TIMING_ZERO,
14926 .block_erasers =
14927 {
14928 {
14929 .eraseblocks = { {64 * 1024, 64} },
14930 .block_erase = erase_sector_jedec,
14931 }, {
14932 .eraseblocks = { {4 * 1024 * 1024, 1} },
14933 .block_erase = erase_chip_block_jedec,
14934 },
14935 },
14936 .write = write_jedec_1,
14937 .read = read_memmapped,
14938 .voltage = {2700, 3600},
14939 },
14940
14941 {
14942 .vendor = "Winbond",
14943 .name = "W29GL064CB",
14944 .bustype = BUS_PARALLEL,
14945 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14946 .model_id = WINBOND_W29GL064CB,
14947 .total_size = 8192,
14948 .page_size = 128 * 1024, /* actual page size is 16 */
14949 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14950 .tested = TEST_UNTESTED,
14951 .probe = probe_jedec_29gl,
14952 .probe_timing = TIMING_ZERO,
14953 .block_erasers =
14954 {
14955 {
14956 .eraseblocks = {
14957 {8 * 1024, 8},
14958 {64 * 1024, 127},
14959 },
14960 .block_erase = erase_sector_jedec,
14961 }, {
14962 .eraseblocks = { {8 * 1024 * 1024, 1} },
14963 .block_erase = erase_chip_block_jedec,
14964 },
14965 },
14966 .write = write_jedec_1,
14967 .read = read_memmapped,
14968 .voltage = {2700, 3600},
14969 },
14970
14971 {
14972 .vendor = "Winbond",
14973 .name = "W29GL064CT",
14974 .bustype = BUS_PARALLEL,
14975 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14976 .model_id = WINBOND_W29GL064CT,
14977 .total_size = 8192,
14978 .page_size = 128 * 1024, /* actual page size is 16 */
14979 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14980 .tested = TEST_UNTESTED,
14981 .probe = probe_jedec_29gl,
14982 .probe_timing = TIMING_ZERO,
14983 .block_erasers =
14984 {
14985 {
14986 .eraseblocks = {
14987 {64 * 1024, 127},
14988 {8 * 1024, 8},
14989 },
14990 .block_erase = erase_sector_jedec,
14991 }, {
14992 .eraseblocks = { {8 * 1024 * 1024, 1} },
14993 .block_erase = erase_chip_block_jedec,
14994 },
14995 },
14996 .write = write_jedec_1,
14997 .read = read_memmapped,
14998 .voltage = {2700, 3600},
14999 },
15000
15001 {
15002 .vendor = "Winbond",
15003 .name = "W29GL064CH/L",
15004 .bustype = BUS_PARALLEL,
15005 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15006 .model_id = WINBOND_W29GL064CHL,
15007 .total_size = 8192,
15008 .page_size = 128 * 1024, /* actual page size is 16 */
15009 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15010 .tested = TEST_UNTESTED,
15011 .probe = probe_jedec_29gl,
15012 .probe_timing = TIMING_ZERO,
15013 .block_erasers =
15014 {
15015 {
15016 .eraseblocks = { {64 * 1024, 128} },
15017 .block_erase = erase_sector_jedec,
15018 }, {
15019 .eraseblocks = { {8 * 1024 * 1024, 1} },
15020 .block_erase = erase_chip_block_jedec,
15021 },
15022 },
15023 .write = write_jedec_1,
15024 .read = read_memmapped,
15025 .voltage = {2700, 3600},
15026 },
15027
15028 {
15029 .vendor = "Winbond",
15030 .name = "W29GL128C",
15031 .bustype = BUS_PARALLEL,
15032 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15033 .model_id = WINBOND_W29GL128CHL,
15034 .total_size = 16384,
15035 .page_size = 128 * 1024, /* actual page size is 16 */
15036 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15037 .tested = TEST_UNTESTED,
15038 .probe = probe_jedec_29gl,
15039 .probe_timing = TIMING_ZERO,
15040 .block_erasers =
15041 {
15042 {
15043 .eraseblocks = { {128 * 1024, 128} },
15044 .block_erase = erase_sector_jedec,
15045 }, {
15046 .eraseblocks = { {16 * 1024 * 1024, 1} },
15047 .block_erase = erase_chip_block_jedec,
15048 },
15049 },
15050 .write = write_jedec_1,
15051 .read = read_memmapped,
15052 .voltage = {2700, 3600},
15053 },
15054
15055 {
15056 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000015057 .name = "W39F010",
15058 .bustype = BUS_PARALLEL,
15059 .manufacture_id = WINBOND_ID,
15060 .model_id = WINBOND_W39F010,
15061 .total_size = 128,
15062 .page_size = 4 * 1024,
15063 .feature_bits = FEATURE_EITHER_RESET,
15064 .tested = TEST_OK_PREW,
15065 .probe = probe_jedec,
15066 .probe_timing = 10,
15067 .block_erasers =
15068 {
15069 {
15070 .eraseblocks = { {4 * 1024, 32} },
15071 .block_erase = erase_block_jedec,
15072 }, {
15073 .eraseblocks = { {128 * 1024, 1} },
15074 .block_erase = erase_chip_block_jedec,
15075 }
15076 },
15077 .printlock = printlock_w39f010,
15078 .write = write_jedec_1,
15079 .read = read_memmapped,
15080 .voltage = {4500, 5500},
15081 },
15082
15083 {
15084 .vendor = "Winbond",
15085 .name = "W39L010",
15086 .bustype = BUS_PARALLEL,
15087 .manufacture_id = WINBOND_ID,
15088 .model_id = WINBOND_W39L010,
15089 .total_size = 128,
15090 .page_size = 4 * 1024,
15091 .feature_bits = FEATURE_EITHER_RESET,
15092 .tested = TEST_UNTESTED,
15093 .probe = probe_jedec,
15094 .probe_timing = 10,
15095 .block_erasers =
15096 {
15097 {
15098 .eraseblocks = { {4 * 1024, 32} },
15099 .block_erase = erase_block_jedec,
15100 }, {
15101 .eraseblocks = { {128 * 1024, 1} },
15102 .block_erase = erase_chip_block_jedec,
15103 }
15104 },
15105 .printlock = printlock_w39l010,
15106 .write = write_jedec_1,
15107 .read = read_memmapped,
15108 .voltage = {3000, 3600},
15109 },
15110
15111 {
15112 .vendor = "Winbond",
15113 .name = "W39L020",
15114 .bustype = BUS_PARALLEL,
15115 .manufacture_id = WINBOND_ID,
15116 .model_id = WINBOND_W39L020,
15117 .total_size = 256,
15118 .page_size = 4 * 1024,
15119 .feature_bits = FEATURE_EITHER_RESET,
15120 .tested = TEST_UNTESTED,
15121 .probe = probe_jedec,
15122 .probe_timing = 10,
15123 .block_erasers =
15124 {
15125 {
15126 .eraseblocks = { {4 * 1024, 64} },
15127 .block_erase = erase_block_jedec,
15128 }, {
15129 .eraseblocks = { {64 * 1024, 4} },
15130 .block_erase = erase_sector_jedec,
15131 }, {
15132 .eraseblocks = { {256 * 1024, 1} },
15133 .block_erase = erase_chip_block_jedec,
15134 }
15135 },
15136 .printlock = printlock_w39l020,
15137 .write = write_jedec_1,
15138 .read = read_memmapped,
15139 .voltage = {3000, 3600},
15140 },
15141
15142 {
15143 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000015144 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015145 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000015146 .manufacture_id = WINBOND_ID,
15147 .model_id = WINBOND_W39L040,
15148 .total_size = 512,
15149 .page_size = 64 * 1024,
15150 .feature_bits = FEATURE_EITHER_RESET,
15151 .tested = TEST_OK_PR,
15152 .probe = probe_jedec,
15153 .probe_timing = 10,
15154 .block_erasers =
15155 {
15156 {
15157 .eraseblocks = { {4 * 1024, 128} },
15158 .block_erase = erase_block_jedec,
15159 }, {
15160 .eraseblocks = { {64 * 1024, 8} },
15161 .block_erase = erase_sector_jedec,
15162 }, {
15163 .eraseblocks = { {512 * 1024, 1} },
15164 .block_erase = erase_chip_block_jedec,
15165 }
15166 },
15167 .printlock = printlock_w39l040,
15168 .write = write_jedec_1,
15169 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015170 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000015171 },
15172
15173 {
15174 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015175 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015176 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015177 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015178 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015179 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015180 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015181 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015182 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015183 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000015184 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015185 .block_erasers =
15186 {
15187 {
15188 .eraseblocks = { {64 * 1024, 8} },
15189 .block_erase = erase_sector_jedec,
15190 }, {
15191 .eraseblocks = { {512 * 1024, 1} },
15192 .block_erase = erase_chip_block_jedec,
15193 }
15194 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015195 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000015196 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015197 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015198 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015199 },
15200
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015201 {
15202 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015203 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015204 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015205 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015206 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015207 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015208 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015209 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015210 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015211 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000015212 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015213 .block_erasers =
15214 {
15215 {
15216 .eraseblocks = { {64 * 1024, 8} },
15217 .block_erase = erase_sector_jedec,
15218 }, {
15219 .eraseblocks = { {512 * 1024, 1} },
15220 .block_erase = erase_chip_block_jedec,
15221 }
15222 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015223 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000015224 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015226 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015227 },
15228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015229 {
15230 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015231 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015232 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015233 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015234 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015235 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015236 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015237 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015238 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000015239 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015240 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015241 .block_erasers =
15242 {
15243 {
15244 .eraseblocks = { {64 * 1024, 8} },
15245 .block_erase = erase_sector_jedec,
15246 }, {
15247 .eraseblocks = { {512 * 1024, 1} },
15248 .block_erase = erase_chip_block_jedec,
15249 }
15250 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000015251 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000015252 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015253 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015254 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015255 },
15256
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015257 {
15258 .vendor = "Winbond",
15259 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015260 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015261 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015262 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015263 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015264 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000015265 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015266 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015267 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015268 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015269 .block_erasers =
15270 {
15271 {
15272 .eraseblocks = { {4 * 1024, 128} },
15273 .block_erase = erase_block_jedec,
15274 }, {
15275 .eraseblocks = { {64 * 1024, 8} },
15276 .block_erase = erase_sector_jedec,
15277 }, {
15278 .eraseblocks = { {512 * 1024, 1} },
15279 .block_erase = erase_chip_block_jedec,
15280 }
15281 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015282 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015283 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015284 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015285 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015286 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015287 },
15288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015289 {
15290 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015291 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015292 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015293 .manufacture_id = WINBOND_ID,
15294 .model_id = WINBOND_W39V040B,
15295 .total_size = 512,
15296 .page_size = 64 * 1024,
15297 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015298 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015299 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015300 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015301 .block_erasers =
15302 {
15303 {
15304 .eraseblocks = { {64 * 1024, 8} },
15305 .block_erase = erase_sector_jedec,
15306 }, {
15307 .eraseblocks = { {512 * 1024, 1} },
15308 .block_erase = erase_chip_block_jedec,
15309 }
15310 },
15311 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015312 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015313 .write = write_jedec_1,
15314 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015315 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015316 },
15317
15318 {
15319 .vendor = "Winbond",
15320 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015321 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015322 .manufacture_id = WINBOND_ID,
15323 .model_id = WINBOND_W39V040C,
15324 .total_size = 512,
15325 .page_size = 64 * 1024,
15326 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000015327 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015328 .probe = probe_jedec,
15329 .probe_timing = 10,
15330 .block_erasers =
15331 {
15332 {
15333 .eraseblocks = { {64 * 1024, 8} },
15334 .block_erase = erase_sector_jedec,
15335 }, {
15336 .eraseblocks = { {512 * 1024, 1} },
15337 .block_erase = erase_chip_block_jedec,
15338 }
15339 },
15340 .printlock = printlock_w39v040fc,
15341 .write = write_jedec_1,
15342 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015343 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015344 },
15345
15346 {
15347 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015348 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015349 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015350 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015351 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015352 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015353 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015354 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000015355 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015356 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000015357 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015358 .block_erasers =
15359 {
15360 {
15361 .eraseblocks = { {64 * 1024, 16} },
15362 .block_erase = erase_sector_jedec,
15363 }, {
15364 .eraseblocks = { {1024 * 1024, 1} },
15365 .block_erase = erase_chip_block_jedec,
15366 }
15367 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015368 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000015369 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015370 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015371 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015372 },
15373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015374 {
15375 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015376 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015377 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015378 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015379 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015380 .total_size = 256,
15381 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015382 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015383 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015384 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015385 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015386 .block_erasers =
15387 {
15388 {
15389 .eraseblocks = {
15390 {128 * 1024, 1},
15391 {96 * 1024, 1},
15392 {8 * 1024, 2},
15393 {16 * 1024, 1},
15394 },
15395 .block_erase = erase_sector_jedec,
15396 }, {
15397 .eraseblocks = { {256 * 1024, 1} },
15398 .block_erase = erase_chip_block_jedec,
15399 }
15400 },
Sean Nelson35727f72010-01-28 23:55:12 +000015401 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015403 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015404 },
15405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015406 {
15407 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015408 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015410 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015411 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015412 .total_size = 256,
15413 .page_size = 128,
15414 .feature_bits = FEATURE_EITHER_RESET,
15415 .tested = TEST_OK_PROBE,
15416 .probe = probe_jedec,
15417 .probe_timing = 10,
15418 .block_erasers =
15419 {
15420 {
15421 .eraseblocks = { {256 * 1024, 1} },
15422 .block_erase = erase_chip_block_jedec,
15423 }
15424 },
15425 .write = write_jedec_1,
15426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015428 },
15429
15430 {
15431 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015432 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015433 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015434 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015435 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015436 .total_size = 256,
15437 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015438 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015440 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015441 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015442 .block_erasers =
15443 {
15444 {
15445 .eraseblocks = {
15446 {64 * 1024, 3},
15447 {32 * 1024, 1},
15448 {8 * 1024, 2},
15449 {16 * 1024, 1},
15450 },
15451 .block_erase = erase_sector_jedec,
15452 }, {
15453 .eraseblocks = { {256 * 1024, 1} },
15454 .block_erase = erase_chip_block_jedec,
15455 }
15456 },
Sean Nelson35727f72010-01-28 23:55:12 +000015457 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015459 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015460 },
15461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015462 {
15463 .vendor = "Winbond",
15464 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015465 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015466 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015467 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015468 .total_size = 256,
15469 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015470 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015472 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015473 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015474 .block_erasers =
15475 {
15476 {
15477 .eraseblocks = {
15478 {64 * 1024, 3},
15479 {32 * 1024, 1},
15480 {8 * 1024, 2},
15481 {16 * 1024, 1},
15482 },
15483 .block_erase = erase_sector_jedec,
15484 }, {
15485 .eraseblocks = { {256 * 1024, 1} },
15486 .block_erase = erase_chip_block_jedec,
15487 }
15488 },
Sean Nelson35727f72010-01-28 23:55:12 +000015489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015491 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015492 },
15493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015494 {
15495 .vendor = "Winbond",
15496 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015497 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015498 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015499 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015500 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015501 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015502 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015503 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000015504 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015505 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015506 .block_erasers =
15507 {
15508 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015509 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015510 .block_erase = erase_sector_jedec,
15511 }, {
15512 .eraseblocks = { {1024 * 1024, 1} },
15513 .block_erase = erase_chip_block_jedec,
15514 }
15515 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015516 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015517 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015518 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015519 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015520 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000015521 },
15522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015523 {
15524 .vendor = "Winbond",
15525 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015526 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015527 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015528 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015529 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015530 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015531 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015532 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000015533 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015534 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015535 .block_erasers =
15536 {
15537 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015538 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015539 .block_erase = erase_sector_jedec,
15540 }, {
15541 .eraseblocks = { {512 * 1024, 1} },
15542 .block_erase = erase_chip_block_jedec,
15543 }
15544 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015545 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000015546 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015547 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015548 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000015549 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000015550
15551 {
15552 .vendor = "Unknown",
15553 .name = "SFDP-capable chip",
15554 .bustype = BUS_SPI,
15555 .manufacture_id = GENERIC_MANUF_ID,
15556 .model_id = SFDP_DEVICE_ID,
15557 /* We present our own "report this" text hence we do not
15558 * want the default "This flash part has status UNTESTED..."
15559 * text to be printed. */
15560 .tested = TEST_OK_PREW,
15561 .probe = probe_spi_sfdp,
15562 .unlock = spi_disable_blockprotect, /* is this safe? */
15563 .read = spi_chip_read,
15564 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000015565 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000015566 /* Everything below will be set by the probing function. */
15567 .write = NULL,
15568 .total_size = 0,
15569 .page_size = 0,
15570 .feature_bits = 0,
15571 .block_erasers = {},
15572 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015574 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000015575 .vendor = "Programmer",
15576 .name = "Opaque flash chip",
15577 .bustype = BUS_PROG,
15578 .manufacture_id = PROGMANUF_ID,
15579 .model_id = PROGDEV_ID,
15580 .total_size = 0,
15581 .page_size = 256,
15582 /* probe is assumed to work, rest will be filled in by probe */
15583 .tested = TEST_OK_PROBE,
15584 .probe = probe_opaque,
15585 /* eraseblock sizes will be set by the probing function */
15586 .block_erasers =
15587 {
15588 {
15589 .block_erase = erase_opaque,
15590 }
15591 },
15592 .write = write_opaque,
15593 .read = read_opaque,
15594 },
15595
15596 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000015597 .vendor = "AMIC",
15598 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015599 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000015600 .manufacture_id = AMIC_ID,
15601 .model_id = GENERIC_DEVICE_ID,
15602 .total_size = 0,
15603 .page_size = 256,
15604 .tested = TEST_BAD_PREW,
15605 .probe = probe_spi_rdid4,
15606 .probe_timing = TIMING_ZERO,
15607 .write = NULL,
15608 .read = NULL,
15609 },
15610
15611 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015612 .vendor = "Atmel",
15613 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015614 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015615 .manufacture_id = ATMEL_ID,
15616 .model_id = GENERIC_DEVICE_ID,
15617 .total_size = 0,
15618 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015619 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015620 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015621 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015622 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015623 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015624 },
15625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015626 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000015627 .vendor = "Eon",
15628 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015629 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015630 .manufacture_id = EON_ID_NOPREFIX,
15631 .model_id = GENERIC_DEVICE_ID,
15632 .total_size = 0,
15633 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015634 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015635 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015636 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015637 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015638 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015639 },
15640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015641 {
15642 .vendor = "Macronix",
15643 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015644 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015645 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015646 .model_id = GENERIC_DEVICE_ID,
15647 .total_size = 0,
15648 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015649 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015650 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015651 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015652 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015653 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015654 },
15655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015656 {
15657 .vendor = "PMC",
15658 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015659 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015660 .manufacture_id = PMC_ID,
15661 .model_id = GENERIC_DEVICE_ID,
15662 .total_size = 0,
15663 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015664 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015666 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015667 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015668 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015669 },
15670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015671 {
15672 .vendor = "SST",
15673 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015674 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015675 .manufacture_id = SST_ID,
15676 .model_id = GENERIC_DEVICE_ID,
15677 .total_size = 0,
15678 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015679 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015680 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015681 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015682 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015683 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015684 },
15685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015686 {
15687 .vendor = "ST",
15688 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015690 .manufacture_id = ST_ID,
15691 .model_id = GENERIC_DEVICE_ID,
15692 .total_size = 0,
15693 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015694 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015695 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015696 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015697 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015698 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015699 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000015700
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015701 {
Sean Nelson118e1d62009-11-24 02:08:11 +000015702 .vendor = "Sanyo",
15703 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015704 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000015705 .manufacture_id = SANYO_ID,
15706 .model_id = GENERIC_DEVICE_ID,
15707 .total_size = 0,
15708 .page_size = 256,
15709 .tested = TEST_BAD_PREW,
15710 .probe = probe_spi_rdid,
15711 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000015712 .write = NULL,
15713 .read = NULL,
15714 },
15715
15716 {
Stefan Taunereb582572012-09-21 12:52:50 +000015717 .vendor = "Winbond",
15718 .name = "unknown Winbond (ex Nexcom) SPI chip",
15719 .bustype = BUS_SPI,
15720 .manufacture_id = WINBOND_NEX_ID,
15721 .model_id = GENERIC_DEVICE_ID,
15722 .total_size = 0,
15723 .page_size = 256,
15724 .tested = TEST_BAD_PREW,
15725 .probe = probe_spi_rdid,
15726 .probe_timing = TIMING_ZERO,
15727 .write = NULL,
15728 .read = NULL,
15729 },
15730
15731 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015732 .vendor = "Generic",
15733 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015734 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015735 .manufacture_id = GENERIC_MANUF_ID,
15736 .model_id = GENERIC_DEVICE_ID,
15737 .total_size = 0,
15738 .page_size = 256,
15739 .tested = TEST_BAD_PREW,
15740 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015741 .write = NULL,
15742 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000015743
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015744 {
15745 .vendor = "Generic",
15746 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015747 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015748 .manufacture_id = GENERIC_MANUF_ID,
15749 .model_id = GENERIC_DEVICE_ID,
15750 .total_size = 0,
15751 .page_size = 256,
15752 .tested = TEST_BAD_PREW,
15753 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015754 .write = NULL,
15755 },
15756
Stefan Tauner96658be2014-05-26 22:05:31 +000015757 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000015758};
Stefan Tauner96658be2014-05-26 22:05:31 +000015759
15760const unsigned int flashchips_size = ARRAY_SIZE(flashchips);