blob: 238389bd012f3fa6ca2e51ca56f6b9025b7cdf62 [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 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005356 .vendor = "ESI",
5357 .name = "ES25P40",
5358 .bustype = BUS_SPI,
5359 .manufacture_id = EXCEL_ID_NOPREFIX,
5360 .model_id = EXCEL_ES25P40,
5361 .total_size = 512,
5362 .page_size = 256,
5363 /* 256-byte paramter page separate from memory array:
5364 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5365 .feature_bits = FEATURE_WRSR_WREN,
5366 .tested = TEST_UNTESTED,
5367 .probe = probe_spi_rdid,
5368 .probe_timing = TIMING_ZERO,
5369 .block_erasers =
5370 {
5371 {
5372 .eraseblocks = { {64 * 1024, 8} },
5373 .block_erase = spi_block_erase_d8,
5374 }, {
5375 .eraseblocks = { {512 * 1024, 1} },
5376 .block_erase = spi_block_erase_c7,
5377 }
5378 },
5379 .printlock = spi_prettyprint_status_register_bp2_srwd,
5380 .unlock = spi_disable_blockprotect_bp2_srwd,
5381 .write = spi_chip_write_256,
5382 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5383 .voltage = {2700, 3600},
5384 },
5385
5386 {
5387 .vendor = "ESI",
5388 .name = "ES25P80",
5389 .bustype = BUS_SPI,
5390 .manufacture_id = EXCEL_ID_NOPREFIX,
5391 .model_id = EXCEL_ES25P80,
5392 .total_size = 1024,
5393 .page_size = 256,
5394 /* 256-byte paramter page separate from memory array:
5395 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5396 .feature_bits = FEATURE_WRSR_WREN,
5397 .tested = TEST_UNTESTED,
5398 .probe = probe_spi_rdid,
5399 .probe_timing = TIMING_ZERO,
5400 .block_erasers =
5401 {
5402 {
5403 .eraseblocks = { {64 * 1024, 16} },
5404 .block_erase = spi_block_erase_d8,
5405 }, {
5406 .eraseblocks = { {1024 * 1024, 1} },
5407 .block_erase = spi_block_erase_c7,
5408 }
5409 },
5410 .printlock = spi_prettyprint_status_register_bp2_srwd,
5411 .unlock = spi_disable_blockprotect_bp2_srwd,
5412 .write = spi_chip_write_256,
5413 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5414 .voltage = {2700, 3600},
5415 },
5416
5417 {
5418 .vendor = "ESI",
5419 .name = "ES25P16",
5420 .bustype = BUS_SPI,
5421 .manufacture_id = EXCEL_ID_NOPREFIX,
5422 .model_id = EXCEL_ES25P16,
5423 .total_size = 2 * 1024,
5424 .page_size = 256,
5425 /* 256-byte paramter page separate from memory array:
5426 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5427 .feature_bits = FEATURE_WRSR_WREN,
5428 .tested = TEST_UNTESTED,
5429 .probe = probe_spi_rdid,
5430 .probe_timing = TIMING_ZERO,
5431 .block_erasers =
5432 {
5433 {
5434 .eraseblocks = { {64 * 1024, 32} },
5435 .block_erase = spi_block_erase_d8,
5436 }, {
5437 .eraseblocks = { {2 * 1024 * 1024, 1} },
5438 .block_erase = spi_block_erase_c7,
5439 }
5440 },
5441 .printlock = spi_prettyprint_status_register_bp2_srwd,
5442 .unlock = spi_disable_blockprotect_bp2_srwd,
5443 .write = spi_chip_write_256,
5444 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5445 .voltage = {2700, 3600},
5446 },
5447
5448 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005449 .vendor = "Fujitsu",
5450 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005451 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005453 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005454 .total_size = 512,
5455 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005456 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005457 .tested = TEST_UNTESTED,
5458 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005459 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005460 .block_erasers =
5461 {
5462 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005463 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005464 {16 * 1024, 1},
5465 {8 * 1024, 2},
5466 {32 * 1024, 1},
5467 {64 * 1024, 7},
5468 },
Sean Nelson35727f72010-01-28 23:55:12 +00005469 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005470 }, {
5471 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005472 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005473 },
5474 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005475 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005477 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005478 },
5479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005480 {
5481 .vendor = "Fujitsu",
5482 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005483 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005484 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005485 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005486 .total_size = 512,
5487 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005489 .tested = TEST_UNTESTED,
5490 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005491 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005492 .block_erasers =
5493 {
5494 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005495 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005496 {64 * 1024, 7},
5497 {32 * 1024, 1},
5498 {8 * 1024, 2},
5499 {16 * 1024, 1},
5500 },
Sean Nelson35727f72010-01-28 23:55:12 +00005501 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005502 }, {
5503 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005504 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005505 },
5506 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005507 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005509 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005510 },
5511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 {
Sean Nelson35727f72010-01-28 23:55:12 +00005513 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005514 .vendor = "Fujitsu",
5515 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005516 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005517 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005518 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .total_size = 512,
5520 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005521 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005522 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005523 .probe = probe_jedec,
5524 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005525 .block_erasers =
5526 {
5527 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005528 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005529 {16 * 1024, 1},
5530 {8 * 1024, 2},
5531 {32 * 1024, 1},
5532 {64 * 1024, 7},
5533 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005534 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005535 }, {
5536 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005537 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005538 },
5539 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005540 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005541 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005542 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005543 },
5544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005545 {
5546 .vendor = "Fujitsu",
5547 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005548 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005550 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005551 .total_size = 512,
5552 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005553 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005555 .probe = probe_jedec,
5556 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005557 .block_erasers =
5558 {
5559 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005560 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005561 {64 * 1024, 7},
5562 {32 * 1024, 1},
5563 {8 * 1024, 2},
5564 {16 * 1024, 1},
5565 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005566 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005567 }, {
5568 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005569 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005570 },
5571 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005572 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005573 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005574 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005575 },
5576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005577 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005578 .vendor = "Fujitsu",
5579 .name = "MBM29LV160BE",
5580 .bustype = BUS_PARALLEL,
5581 .manufacture_id = FUJITSU_ID,
5582 .model_id = FUJITSU_MBM29LV160BE,
5583 .total_size = 2 * 1024,
5584 .page_size = 0,
5585 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5586 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005587 .probe = probe_jedec,
5588 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005589 .block_erasers =
5590 {
5591 {
5592 .eraseblocks = {
5593 {16 * 1024, 1},
5594 {8 * 1024, 2},
5595 {32 * 1024, 1},
5596 {64 * 1024, 31},
5597 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005598 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005599 }, {
5600 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005601 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005602 },
5603 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005604 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005605 .read = read_memmapped,
5606 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5607 },
5608
5609 {
5610 .vendor = "Fujitsu",
5611 .name = "MBM29LV160TE",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = FUJITSU_ID,
5614 .model_id = FUJITSU_MBM29LV160TE,
5615 .total_size = 2 * 1024,
5616 .page_size = 0,
5617 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005619 .probe = probe_jedec,
5620 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = {
5625 {64 * 1024, 31},
5626 {32 * 1024, 1},
5627 {8 * 1024, 2},
5628 {16 * 1024, 1},
5629 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005630 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005631 }, {
5632 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005633 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005634 },
5635 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005636 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005637 .read = read_memmapped,
5638 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5639 },
5640
5641 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005642 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005643 .name = "GD25LQ40",
5644 .bustype = BUS_SPI,
5645 .manufacture_id = GIGADEVICE_ID,
5646 .model_id = GIGADEVICE_GD25LQ40,
5647 .total_size = 512,
5648 .page_size = 256,
5649 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5650 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5651 .tested = TEST_UNTESTED,
5652 .probe = probe_spi_rdid,
5653 .probe_timing = TIMING_ZERO,
5654 .block_erasers =
5655 {
5656 {
5657 .eraseblocks = { {4 * 1024, 128} },
5658 .block_erase = spi_block_erase_20,
5659 }, {
5660 .eraseblocks = { {32 * 1024, 16} },
5661 .block_erase = spi_block_erase_52,
5662 }, {
5663 .eraseblocks = { {64 * 1024, 8} },
5664 .block_erase = spi_block_erase_d8,
5665 }, {
5666 .eraseblocks = { {512 * 1024, 1} },
5667 .block_erase = spi_block_erase_60,
5668 }, {
5669 .eraseblocks = { {512 * 1024, 1} },
5670 .block_erase = spi_block_erase_c7,
5671 }
5672 },
5673 .printlock = spi_prettyprint_status_register_bp4_srwd,
5674 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5675 .write = spi_chip_write_256,
5676 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5677 .voltage = {1695, 1950},
5678 },
5679
5680 {
5681 .vendor = "GigaDevice",
5682 .name = "GD25LQ80",
5683 .bustype = BUS_SPI,
5684 .manufacture_id = GIGADEVICE_ID,
5685 .model_id = GIGADEVICE_GD25LQ80,
5686 .total_size = 1024,
5687 .page_size = 256,
5688 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5690 .tested = TEST_UNTESTED,
5691 .probe = probe_spi_rdid,
5692 .probe_timing = TIMING_ZERO,
5693 .block_erasers =
5694 {
5695 {
5696 .eraseblocks = { {4 * 1024, 256} },
5697 .block_erase = spi_block_erase_20,
5698 }, {
5699 .eraseblocks = { {32 * 1024, 32} },
5700 .block_erase = spi_block_erase_52,
5701 }, {
5702 .eraseblocks = { {64 * 1024, 16} },
5703 .block_erase = spi_block_erase_d8,
5704 }, {
5705 .eraseblocks = { {1 * 1024 * 1024, 1} },
5706 .block_erase = spi_block_erase_60,
5707 }, {
5708 .eraseblocks = { {1 * 1024 * 1024, 1} },
5709 .block_erase = spi_block_erase_c7,
5710 }
5711 },
5712 .printlock = spi_prettyprint_status_register_bp4_srwd,
5713 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5714 .write = spi_chip_write_256,
5715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5716 .voltage = {1695, 1950},
5717 },
5718
5719 {
5720 .vendor = "GigaDevice",
5721 .name = "GD25LQ16",
5722 .bustype = BUS_SPI,
5723 .manufacture_id = GIGADEVICE_ID,
5724 .model_id = GIGADEVICE_GD25LQ16,
5725 .total_size = 2048,
5726 .page_size = 256,
5727 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5729 .tested = TEST_UNTESTED,
5730 .probe = probe_spi_rdid,
5731 .probe_timing = TIMING_ZERO,
5732 .block_erasers =
5733 {
5734 {
5735 .eraseblocks = { {4 * 1024, 512} },
5736 .block_erase = spi_block_erase_20,
5737 }, {
5738 .eraseblocks = { {32 * 1024, 64} },
5739 .block_erase = spi_block_erase_52,
5740 }, {
5741 .eraseblocks = { {64 * 1024, 32} },
5742 .block_erase = spi_block_erase_d8,
5743 }, {
5744 .eraseblocks = { {2 * 1024 * 1024, 1} },
5745 .block_erase = spi_block_erase_60,
5746 }, {
5747 .eraseblocks = { {2 * 1024 * 1024, 1} },
5748 .block_erase = spi_block_erase_c7,
5749 }
5750 },
5751 .printlock = spi_prettyprint_status_register_bp4_srwd,
5752 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5753 .write = spi_chip_write_256,
5754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5755 .voltage = {1695, 1950},
5756 },
5757
5758 {
5759 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005760 .name = "GD25LQ32",
5761 .bustype = BUS_SPI,
5762 .manufacture_id = GIGADEVICE_ID,
5763 .model_id = GIGADEVICE_GD25LQ32,
5764 .total_size = 4096,
5765 .page_size = 256,
5766 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5768 .tested = TEST_OK_PREW,
5769 .probe = probe_spi_rdid,
5770 .probe_timing = TIMING_ZERO,
5771 .block_erasers =
5772 {
5773 {
5774 .eraseblocks = { {4 * 1024, 1024} },
5775 .block_erase = spi_block_erase_20,
5776 }, {
5777 .eraseblocks = { {32 * 1024, 128} },
5778 .block_erase = spi_block_erase_52,
5779 }, {
5780 .eraseblocks = { {64 * 1024, 64} },
5781 .block_erase = spi_block_erase_d8,
5782 }, {
5783 .eraseblocks = { {4 * 1024 * 1024, 1} },
5784 .block_erase = spi_block_erase_60,
5785 }, {
5786 .eraseblocks = { {4 * 1024 * 1024, 1} },
5787 .block_erase = spi_block_erase_c7,
5788 }
5789 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005790 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005791 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5792 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5794 .voltage = {1695, 1950},
5795 },
5796
5797 {
5798 .vendor = "GigaDevice",
5799 .name = "GD25LQ64(B)",
5800 .bustype = BUS_SPI,
5801 .manufacture_id = GIGADEVICE_ID,
5802 .model_id = GIGADEVICE_GD25LQ64,
5803 .total_size = 8192,
5804 .page_size = 256,
5805 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005807 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005808 .probe = probe_spi_rdid,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {4 * 1024, 2048} },
5814 .block_erase = spi_block_erase_20,
5815 }, {
5816 .eraseblocks = { {32 * 1024, 256} },
5817 .block_erase = spi_block_erase_52,
5818 }, {
5819 .eraseblocks = { {64 * 1024, 128} },
5820 .block_erase = spi_block_erase_d8,
5821 }, {
5822 .eraseblocks = { {8 * 1024 * 1024, 1} },
5823 .block_erase = spi_block_erase_60,
5824 }, {
5825 .eraseblocks = { {8 * 1024 * 1024, 1} },
5826 .block_erase = spi_block_erase_c7,
5827 }
5828 },
5829 .printlock = spi_prettyprint_status_register_bp4_srwd,
5830 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5831 .write = spi_chip_write_256,
5832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5833 .voltage = {1695, 1950},
5834 },
5835
5836 {
5837 .vendor = "GigaDevice",
5838 .name = "GD25LQ128",
5839 .bustype = BUS_SPI,
5840 .manufacture_id = GIGADEVICE_ID,
5841 .model_id = GIGADEVICE_GD25LQ128,
5842 .total_size = 16384,
5843 .page_size = 256,
5844 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5846 .tested = TEST_UNTESTED,
5847 .probe = probe_spi_rdid,
5848 .probe_timing = TIMING_ZERO,
5849 .block_erasers =
5850 {
5851 {
5852 .eraseblocks = { {4 * 1024, 4096} },
5853 .block_erase = spi_block_erase_20,
5854 }, {
5855 .eraseblocks = { {32 * 1024, 512} },
5856 .block_erase = spi_block_erase_52,
5857 }, {
5858 .eraseblocks = { {64 * 1024, 256} },
5859 .block_erase = spi_block_erase_d8,
5860 }, {
5861 .eraseblocks = { {16 * 1024 * 1024, 1} },
5862 .block_erase = spi_block_erase_60,
5863 }, {
5864 .eraseblocks = { {16 * 1024 * 1024, 1} },
5865 .block_erase = spi_block_erase_c7,
5866 }
5867 },
5868 .printlock = spi_prettyprint_status_register_bp4_srwd,
5869 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5870 .write = spi_chip_write_256,
5871 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5872 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005873 },
5874
5875 {
5876 .vendor = "GigaDevice",
5877 .name = "GD25Q512",
5878 .bustype = BUS_SPI,
5879 .manufacture_id = GIGADEVICE_ID,
5880 .model_id = GIGADEVICE_GD25Q512,
5881 .total_size = 64,
5882 .page_size = 256,
5883 .feature_bits = FEATURE_WRSR_WREN,
5884 .tested = TEST_UNTESTED,
5885 .probe = probe_spi_rdid,
5886 .probe_timing = TIMING_ZERO,
5887 .block_erasers = {
5888 {
5889 .eraseblocks = { {4 * 1024, 16} },
5890 .block_erase = spi_block_erase_20,
5891 }, {
5892 .eraseblocks = { {32 * 1024, 2} },
5893 .block_erase = spi_block_erase_52,
5894 }, {
5895 .eraseblocks = { {64 * 1024, 1} },
5896 .block_erase = spi_block_erase_60,
5897 }, {
5898 .eraseblocks = { {64 * 1024, 1} },
5899 .block_erase = spi_block_erase_c7,
5900 }
5901 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005902 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005903 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5904 .write = spi_chip_write_256,
5905 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5906 .voltage = {2700, 3600},
5907 },
5908
5909 {
5910 .vendor = "GigaDevice",
5911 .name = "GD25Q10",
5912 .bustype = BUS_SPI,
5913 .manufacture_id = GIGADEVICE_ID,
5914 .model_id = GIGADEVICE_GD25Q10,
5915 .total_size = 128,
5916 .page_size = 256,
5917 .feature_bits = FEATURE_WRSR_WREN,
5918 .tested = TEST_UNTESTED,
5919 .probe = probe_spi_rdid,
5920 .probe_timing = TIMING_ZERO,
5921 .block_erasers = {
5922 {
5923 .eraseblocks = { {4 * 1024, 32} },
5924 .block_erase = spi_block_erase_20,
5925 }, {
5926 .eraseblocks = { {32 * 1024, 4} },
5927 .block_erase = spi_block_erase_52,
5928 }, {
5929 .eraseblocks = { {64 * 1024, 2} },
5930 .block_erase = spi_block_erase_d8,
5931 }, {
5932 .eraseblocks = { {128 * 1024, 1} },
5933 .block_erase = spi_block_erase_60,
5934 }, {
5935 .eraseblocks = { {128 * 1024, 1} },
5936 .block_erase = spi_block_erase_c7,
5937 }
5938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005939 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005940 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5941 .write = spi_chip_write_256,
5942 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5943 .voltage = {2700, 3600},
5944 },
5945
5946 {
5947 .vendor = "GigaDevice",
5948 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005949 .bustype = BUS_SPI,
5950 .manufacture_id = GIGADEVICE_ID,
5951 .model_id = GIGADEVICE_GD25Q20,
5952 .total_size = 256,
5953 .page_size = 256,
5954 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005955 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005956 .probe = probe_spi_rdid,
5957 .probe_timing = TIMING_ZERO,
5958 .block_erasers =
5959 {
5960 {
5961 .eraseblocks = { {4 * 1024, 64} },
5962 .block_erase = spi_block_erase_20,
5963 }, {
5964 .eraseblocks = { {32 * 1024, 8} },
5965 .block_erase = spi_block_erase_52,
5966 }, {
5967 .eraseblocks = { {64 * 1024, 4} },
5968 .block_erase = spi_block_erase_d8,
5969 }, {
5970 .eraseblocks = { {256 * 1024, 1} },
5971 .block_erase = spi_block_erase_60,
5972 }, {
5973 .eraseblocks = { {256 * 1024, 1} },
5974 .block_erase = spi_block_erase_c7,
5975 }
5976 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005977 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005978 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005979 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005981 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005982 },
5983
5984 {
5985 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005986 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005987 .bustype = BUS_SPI,
5988 .manufacture_id = GIGADEVICE_ID,
5989 .model_id = GIGADEVICE_GD25Q40,
5990 .total_size = 512,
5991 .page_size = 256,
5992 .feature_bits = FEATURE_WRSR_WREN,
5993 .tested = TEST_UNTESTED,
5994 .probe = probe_spi_rdid,
5995 .probe_timing = TIMING_ZERO,
5996 .block_erasers =
5997 {
5998 {
5999 .eraseblocks = { {4 * 1024, 128} },
6000 .block_erase = spi_block_erase_20,
6001 }, {
6002 .eraseblocks = { {32 * 1024, 16} },
6003 .block_erase = spi_block_erase_52,
6004 }, {
6005 .eraseblocks = { {64 * 1024, 8} },
6006 .block_erase = spi_block_erase_d8,
6007 }, {
6008 .eraseblocks = { {512 * 1024, 1} },
6009 .block_erase = spi_block_erase_60,
6010 }, {
6011 .eraseblocks = { {512 * 1024, 1} },
6012 .block_erase = spi_block_erase_c7,
6013 }
6014 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006015 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006016 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006017 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006018 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006019 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006020 },
6021
6022 {
6023 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006024 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006025 .bustype = BUS_SPI,
6026 .manufacture_id = GIGADEVICE_ID,
6027 .model_id = GIGADEVICE_GD25Q80,
6028 .total_size = 1024,
6029 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006030 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6032 .tested = TEST_OK_PREW,
6033 .probe = probe_spi_rdid,
6034 .probe_timing = TIMING_ZERO,
6035 .block_erasers =
6036 {
6037 {
6038 .eraseblocks = { {4 * 1024, 256} },
6039 .block_erase = spi_block_erase_20,
6040 }, {
6041 .eraseblocks = { {32 * 1024, 32} },
6042 .block_erase = spi_block_erase_52,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 16} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {1024 * 1024, 1} },
6048 .block_erase = spi_block_erase_60,
6049 }, {
6050 .eraseblocks = { {1024 * 1024, 1} },
6051 .block_erase = spi_block_erase_c7,
6052 }
6053 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006054 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006055 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006056 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006057 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006058 .voltage = {2700, 3600},
6059 },
6060
6061 {
6062 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006063 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006064 .bustype = BUS_SPI,
6065 .manufacture_id = GIGADEVICE_ID,
6066 .model_id = GIGADEVICE_GD25Q16,
6067 .total_size = 2048,
6068 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006069 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006071 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006072 .probe = probe_spi_rdid,
6073 .probe_timing = TIMING_ZERO,
6074 .block_erasers =
6075 {
6076 {
6077 .eraseblocks = { {4 * 1024, 512} },
6078 .block_erase = spi_block_erase_20,
6079 }, {
6080 .eraseblocks = { {32 * 1024, 64} },
6081 .block_erase = spi_block_erase_52,
6082 }, {
6083 .eraseblocks = { {64 * 1024, 32} },
6084 .block_erase = spi_block_erase_d8,
6085 }, {
6086 .eraseblocks = { {2 * 1024 * 1024, 1} },
6087 .block_erase = spi_block_erase_60,
6088 }, {
6089 .eraseblocks = { {2 * 1024 * 1024, 1} },
6090 .block_erase = spi_block_erase_c7,
6091 }
6092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006093 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006094 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006095 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006096 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006097 .voltage = {2700, 3600},
6098 },
6099
6100 {
6101 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006102 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006103 .bustype = BUS_SPI,
6104 .manufacture_id = GIGADEVICE_ID,
6105 .model_id = GIGADEVICE_GD25Q32,
6106 .total_size = 4096,
6107 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006108 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006109 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006110 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006111 .probe = probe_spi_rdid,
6112 .probe_timing = TIMING_ZERO,
6113 .block_erasers =
6114 {
6115 {
6116 .eraseblocks = { {4 * 1024, 1024} },
6117 .block_erase = spi_block_erase_20,
6118 }, {
6119 .eraseblocks = { {32 * 1024, 128} },
6120 .block_erase = spi_block_erase_52,
6121 }, {
6122 .eraseblocks = { {64 * 1024, 64} },
6123 .block_erase = spi_block_erase_d8,
6124 }, {
6125 .eraseblocks = { {4 * 1024 * 1024, 1} },
6126 .block_erase = spi_block_erase_60,
6127 }, {
6128 .eraseblocks = { {4 * 1024 * 1024, 1} },
6129 .block_erase = spi_block_erase_c7,
6130 }
6131 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006132 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006133 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006134 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006135 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006136 .voltage = {2700, 3600},
6137 },
6138
6139 {
6140 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006141 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006142 .bustype = BUS_SPI,
6143 .manufacture_id = GIGADEVICE_ID,
6144 .model_id = GIGADEVICE_GD25Q64,
6145 .total_size = 8192,
6146 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006147 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006149 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006150 .probe = probe_spi_rdid,
6151 .probe_timing = TIMING_ZERO,
6152 .block_erasers =
6153 {
6154 {
6155 .eraseblocks = { {4 * 1024, 2048} },
6156 .block_erase = spi_block_erase_20,
6157 }, {
6158 .eraseblocks = { {32 * 1024, 256} },
6159 .block_erase = spi_block_erase_52,
6160 }, {
6161 .eraseblocks = { {64 * 1024, 128} },
6162 .block_erase = spi_block_erase_d8,
6163 }, {
6164 .eraseblocks = { {8 * 1024 * 1024, 1} },
6165 .block_erase = spi_block_erase_60,
6166 }, {
6167 .eraseblocks = { {8 * 1024 * 1024, 1} },
6168 .block_erase = spi_block_erase_c7,
6169 }
6170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006171 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006172 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006173 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006175 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006176 },
6177
6178 {
6179 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006180 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006181 .bustype = BUS_SPI,
6182 .manufacture_id = GIGADEVICE_ID,
6183 .model_id = GIGADEVICE_GD25Q128,
6184 .total_size = 16384,
6185 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006186 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6188 .tested = TEST_UNTESTED,
6189 .probe = probe_spi_rdid,
6190 .probe_timing = TIMING_ZERO,
6191 .block_erasers =
6192 {
6193 {
6194 .eraseblocks = { {4 * 1024, 4096} },
6195 .block_erase = spi_block_erase_20,
6196 }, {
6197 .eraseblocks = { {32 * 1024, 512} },
6198 .block_erase = spi_block_erase_52,
6199 }, {
6200 .eraseblocks = { {64 * 1024, 256} },
6201 .block_erase = spi_block_erase_d8,
6202 }, {
6203 .eraseblocks = { {16 * 1024 * 1024, 1} },
6204 .block_erase = spi_block_erase_60,
6205 }, {
6206 .eraseblocks = { {16 * 1024 * 1024, 1} },
6207 .block_erase = spi_block_erase_c7,
6208 }
6209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006210 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006211 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6212 .write = spi_chip_write_256,
6213 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6214 .voltage = {2700, 3600},
6215 },
6216
6217 {
6218 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006219 .name = "GD25Q128C",
6220 .bustype = BUS_SPI,
6221 .manufacture_id = GIGADEVICE_ID,
6222 .model_id = GIGADEVICE_GD25Q128,
6223 .total_size = 16384,
6224 .page_size = 256,
6225 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6226 /* QPI: enable 0x38, disable 0xFF */
6227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6228 .tested = TEST_UNTESTED,
6229 .probe = probe_spi_rdid,
6230 .probe_timing = TIMING_ZERO,
6231 .block_erasers =
6232 {
6233 {
6234 .eraseblocks = { {4 * 1024, 4096} },
6235 .block_erase = spi_block_erase_20,
6236 }, {
6237 .eraseblocks = { {32 * 1024, 512} },
6238 .block_erase = spi_block_erase_52,
6239 }, {
6240 .eraseblocks = { {64 * 1024, 256} },
6241 .block_erase = spi_block_erase_d8,
6242 }, {
6243 .eraseblocks = { {16 * 1024 * 1024, 1} },
6244 .block_erase = spi_block_erase_60,
6245 }, {
6246 .eraseblocks = { {16 * 1024 * 1024, 1} },
6247 .block_erase = spi_block_erase_c7,
6248 }
6249 },
6250 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6251 .printlock = spi_prettyprint_status_register_bp4_srwd,
6252 .unlock = spi_disable_blockprotect_bp4_srwd,
6253 .write = spi_chip_write_256,
6254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6255 .voltage = {2700, 3600},
6256 },
6257
6258 {
6259 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006260 .name = "GD25T80",
6261 .bustype = BUS_SPI,
6262 .manufacture_id = GIGADEVICE_ID,
6263 .model_id = GIGADEVICE_GD25T80,
6264 .total_size = 1024,
6265 .page_size = 256,
6266 /* OTP: 256B total; enter 0x3A */
6267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6268 .tested = TEST_UNTESTED,
6269 .probe = probe_spi_rdid,
6270 .probe_timing = TIMING_ZERO,
6271 .block_erasers = {
6272 {
6273 .eraseblocks = { {4 * 1024, 256} },
6274 .block_erase = spi_block_erase_20,
6275 }, {
6276 .eraseblocks = { {64 * 1024, 16} },
6277 .block_erase = spi_block_erase_52,
6278 }, {
6279 .eraseblocks = { {64 * 1024, 16} },
6280 .block_erase = spi_block_erase_d8,
6281 }, {
6282 .eraseblocks = { {1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_60,
6284 }, {
6285 .eraseblocks = { {1024 * 1024, 1} },
6286 .block_erase = spi_block_erase_c7,
6287 }
6288 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006289 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006290 .unlock = spi_disable_blockprotect,
6291 .write = spi_chip_write_256,
6292 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006293 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006294 },
6295
6296 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006297 .vendor = "GigaDevice",
6298 .name = "GD25VQ41B",
6299 .bustype = BUS_SPI,
6300 .manufacture_id = GIGADEVICE_ID,
6301 .model_id = GIGADEVICE_GD25VQ41B,
6302 .total_size = 512,
6303 .page_size = 256,
6304 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6306 .tested = TEST_UNTESTED,
6307 .probe = probe_spi_rdid,
6308 .probe_timing = TIMING_ZERO,
6309 .block_erasers =
6310 {
6311 {
6312 .eraseblocks = { { 4 * 1024, 128} },
6313 .block_erase = spi_block_erase_20,
6314 }, {
6315 .eraseblocks = { { 32 * 1024, 16} },
6316 .block_erase = spi_block_erase_52,
6317 }, {
6318 .eraseblocks = { { 64 * 1024, 8} },
6319 .block_erase = spi_block_erase_d8,
6320 }, {
6321 .eraseblocks = { {512 * 1024, 1} },
6322 .block_erase = spi_block_erase_60,
6323 }, {
6324 .eraseblocks = { {512 * 1024, 1} },
6325 .block_erase = spi_block_erase_c7,
6326 }
6327 },
6328 /* TODO: 2nd Status Register; read 0x35 */
6329 .printlock = spi_prettyprint_status_register_bp4_srwd,
6330 .unlock = spi_disable_blockprotect_bp4_srwd,
6331 .write = spi_chip_write_256,
6332 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6333 .voltage = {2300, 3600},
6334 },
6335
6336 {
David Borgc96a8bd2010-06-21 16:12:22 +00006337 .vendor = "Hyundai",
6338 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006339 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006340 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006341 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006342 .total_size = 256,
6343 .page_size = 256 * 1024,
6344 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006345 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006346 .probe = probe_jedec,
6347 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6348 .block_erasers =
6349 {
6350 {
6351 .eraseblocks = {
6352 {64 * 1024, 3},
6353 {32 * 1024, 1},
6354 {8 * 1024, 2},
6355 {16 * 1024, 1},
6356 },
6357 .block_erase = erase_sector_jedec,
6358 }, {
6359 .eraseblocks = { {256 * 1024, 1} },
6360 .block_erase = erase_chip_block_jedec,
6361 },
6362 },
6363 .write = write_jedec_1,
6364 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006365 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006366 },
6367
6368 {
6369 .vendor = "Hyundai",
6370 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006371 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006372 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006373 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006374 .total_size = 256,
6375 .page_size = 256 * 1024,
6376 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6377 .tested = TEST_UNTESTED,
6378 .probe = probe_jedec,
6379 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6380 .block_erasers =
6381 {
6382 {
6383 .eraseblocks = {
6384 {16 * 1024, 1},
6385 {8 * 1024, 2},
6386 {32 * 1024, 1},
6387 {64 * 1024, 3},
6388 },
6389 .block_erase = erase_sector_jedec,
6390 }, {
6391 .eraseblocks = { {256 * 1024, 1} },
6392 .block_erase = erase_chip_block_jedec,
6393 },
6394 },
6395 .write = write_jedec_1,
6396 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006397 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006398 },
6399
6400 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006401 .vendor = "Hyundai",
6402 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006403 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006404 .manufacture_id = HYUNDAI_ID,
6405 .model_id = HYUNDAI_HY29F040A,
6406 .total_size = 512,
6407 .page_size = 64 * 1024,
6408 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6409 .tested = TEST_UNTESTED,
6410 .probe = probe_jedec,
6411 .probe_timing = TIMING_ZERO,
6412 .block_erasers =
6413 {
6414 {
6415 .eraseblocks = { {64 * 1024, 8} },
6416 .block_erase = erase_sector_jedec,
6417 }, {
6418 .eraseblocks = { {512 * 1024, 1} },
6419 .block_erase = erase_chip_block_jedec,
6420 },
6421 },
6422 .write = write_jedec_1,
6423 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006424 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006425 },
6426
6427 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006428 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006429 .name = "25F160S33B8",
6430 .bustype = BUS_SPI,
6431 .manufacture_id = INTEL_ID,
6432 .model_id = INTEL_25F160S33B8,
6433 .total_size = 2048,
6434 .page_size = 256,
6435 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6436 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6437 .tested = TEST_UNTESTED,
6438 .probe = probe_spi_rdid,
6439 .probe_timing = TIMING_ZERO,
6440 .block_erasers =
6441 {
6442 {
6443 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6444 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6445 * have no effect on the memory contents, but sets a flag in the SR.
6446 .eraseblocks = {
6447 {8 * 1024, 8},
6448 {64 * 1024, 31} // inaccessible
6449 },
6450 .block_erase = spi_block_erase_40,
6451 }, { */
6452 .eraseblocks = { {64 * 1024, 32} },
6453 .block_erase = spi_block_erase_d8,
6454 }, {
6455 .eraseblocks = { {2 * 1024 * 1024, 1} },
6456 .block_erase = spi_block_erase_c7,
6457 }
6458 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006459 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6460 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006461 .write = spi_chip_write_256,
6462 .read = spi_chip_read, /* also fast read 0x0B */
6463 .voltage = {2700, 3600},
6464 },
6465
6466 {
6467 .vendor = "Intel",
6468 .name = "25F160S33T8",
6469 .bustype = BUS_SPI,
6470 .manufacture_id = INTEL_ID,
6471 .model_id = INTEL_25F160S33T8,
6472 .total_size = 2048,
6473 .page_size = 256,
6474 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6475 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6476 .tested = TEST_UNTESTED,
6477 .probe = probe_spi_rdid,
6478 .probe_timing = TIMING_ZERO,
6479 .block_erasers =
6480 {
6481 {
6482 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6483 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6484 * have no effect on the memory contents, but sets a flag in the SR.
6485 .eraseblocks = {
6486 {64 * 1024, 31}, // inaccessible
6487 {8 * 1024, 8}
6488 },
6489 .block_erase = spi_block_erase_40,
6490 }, { */
6491 .eraseblocks = { {64 * 1024, 32} },
6492 .block_erase = spi_block_erase_d8,
6493 }, {
6494 .eraseblocks = { {2 * 1024 * 1024, 1} },
6495 .block_erase = spi_block_erase_c7,
6496 }
6497 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006498 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6499 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006500 .write = spi_chip_write_256,
6501 .read = spi_chip_read, /* also fast read 0x0B */
6502 .voltage = {2700, 3600},
6503 },
6504
6505 {
6506 .vendor = "Intel",
6507 .name = "25F320S33B8",
6508 .bustype = BUS_SPI,
6509 .manufacture_id = INTEL_ID,
6510 .model_id = INTEL_25F320S33B8,
6511 .total_size = 4096,
6512 .page_size = 256,
6513 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6514 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6515 .tested = TEST_UNTESTED,
6516 .probe = probe_spi_rdid,
6517 .probe_timing = TIMING_ZERO,
6518 .block_erasers =
6519 {
6520 {
6521 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6522 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6523 * have no effect on the memory contents, but sets a flag in the SR.
6524 .eraseblocks = {
6525 {8 * 1024, 8},
6526 {64 * 1024, 63} // inaccessible
6527 },
6528 .block_erase = spi_block_erase_40,
6529 }, { */
6530 .eraseblocks = { {64 * 1024, 64} },
6531 .block_erase = spi_block_erase_d8,
6532 }, {
6533 .eraseblocks = { {4 * 1024 * 1024, 1} },
6534 .block_erase = spi_block_erase_c7,
6535 }
6536 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006537 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6538 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006539 .write = spi_chip_write_256,
6540 .read = spi_chip_read, /* also fast read 0x0B */
6541 .voltage = {2700, 3600},
6542 },
6543
6544 {
6545 .vendor = "Intel",
6546 .name = "25F320S33T8",
6547 .bustype = BUS_SPI,
6548 .manufacture_id = INTEL_ID,
6549 .model_id = INTEL_25F320S33T8,
6550 .total_size = 4096,
6551 .page_size = 256,
6552 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6554 .tested = TEST_UNTESTED,
6555 .probe = probe_spi_rdid,
6556 .probe_timing = TIMING_ZERO,
6557 .block_erasers =
6558 {
6559 {
6560 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6561 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6562 * have no effect on the memory contents, but sets a flag in the SR.
6563 .eraseblocks = {
6564 {64 * 1024, 63}, // inaccessible
6565 {8 * 1024, 8}
6566 },
6567 .block_erase = spi_block_erase_40,
6568 }, { */
6569 .eraseblocks = { {64 * 1024, 64} },
6570 .block_erase = spi_block_erase_d8,
6571 }, {
6572 .eraseblocks = { {4 * 1024 * 1024, 1} },
6573 .block_erase = spi_block_erase_c7,
6574 }
6575 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006576 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6577 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006578 .write = spi_chip_write_256,
6579 .read = spi_chip_read, /* also fast read 0x0B */
6580 .voltage = {2700, 3600},
6581 },
6582
6583 {
6584 .vendor = "Intel",
6585 .name = "25F640S33B8",
6586 .bustype = BUS_SPI,
6587 .manufacture_id = INTEL_ID,
6588 .model_id = INTEL_25F640S33B8,
6589 .total_size = 8192,
6590 .page_size = 256,
6591 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6592 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6593 .tested = TEST_UNTESTED,
6594 .probe = probe_spi_rdid,
6595 .probe_timing = TIMING_ZERO,
6596 .block_erasers =
6597 {
6598 {
6599 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6600 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6601 * have no effect on the memory contents, but sets a flag in the SR.
6602 .eraseblocks = {
6603 {8 * 1024, 8},
6604 {64 * 1024, 127} // inaccessible
6605 },
6606 .block_erase = spi_block_erase_40,
6607 }, { */
6608 .eraseblocks = { {64 * 1024, 128} },
6609 .block_erase = spi_block_erase_d8,
6610 }, {
6611 .eraseblocks = { {8 * 1024 * 1024, 1} },
6612 .block_erase = spi_block_erase_c7,
6613 }
6614 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006615 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6616 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006617 .write = spi_chip_write_256,
6618 .read = spi_chip_read, /* also fast read 0x0B */
6619 .voltage = {2700, 3600},
6620 },
6621
6622 {
6623 .vendor = "Intel",
6624 .name = "25F640S33T8",
6625 .bustype = BUS_SPI,
6626 .manufacture_id = INTEL_ID,
6627 .model_id = INTEL_25F640S33T8,
6628 .total_size = 8192,
6629 .page_size = 256,
6630 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6631 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6632 .tested = TEST_UNTESTED,
6633 .probe = probe_spi_rdid,
6634 .probe_timing = TIMING_ZERO,
6635 .block_erasers =
6636 {
6637 {
6638 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6639 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6640 * have no effect on the memory contents, but sets a flag in the SR.
6641 .eraseblocks = {
6642 {64 * 1024, 127}, // inaccessible
6643 {8 * 1024, 8}
6644 },
6645 .block_erase = spi_block_erase_40,
6646 }, { */
6647 .eraseblocks = { {64 * 1024, 128} },
6648 .block_erase = spi_block_erase_d8,
6649 }, {
6650 .eraseblocks = { {8 * 1024 * 1024, 1} },
6651 .block_erase = spi_block_erase_c7,
6652 }
6653 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006654 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6655 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006656 .write = spi_chip_write_256,
6657 .read = spi_chip_read, /* also fast read 0x0B */
6658 .voltage = {2700, 3600},
6659 },
6660
6661 {
6662 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006663 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006664 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006665 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006666 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006667 .total_size = 128,
6668 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006669 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006670 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006671 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006672 .block_erasers =
6673 {
6674 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006675 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006676 {8 * 1024, 1},
6677 {4 * 1024, 2},
6678 {112 * 1024, 1},
6679 },
Sean Nelson28accc22010-03-19 18:47:06 +00006680 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006681 },
6682 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006683 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006685 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006686 },
6687
6688 {
6689 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006690 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006691 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006692 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006693 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006694 .total_size = 128,
6695 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006696 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006698 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006699 .block_erasers =
6700 {
6701 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006702 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006703 {112 * 1024, 1},
6704 {4 * 1024, 2},
6705 {8 * 1024, 1},
6706 },
Sean Nelson28accc22010-03-19 18:47:06 +00006707 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006708 },
6709 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006710 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006712 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006713 },
6714
6715 {
6716 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006717 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006718 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006719 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006720 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006721 .total_size = 256,
6722 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006723 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006724 .probe = probe_82802ab,
6725 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6726 .block_erasers =
6727 {
6728 {
6729 .eraseblocks = {
6730 {128 * 1024, 1},
6731 {96 * 1024, 1},
6732 {8 * 1024, 2},
6733 {16 * 1024, 1},
6734 },
6735 .block_erase = erase_block_82802ab,
6736 },
6737 },
6738 .write = write_82802ab,
6739 .read = read_memmapped,
6740 },
6741
6742 {
6743 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006744 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006745 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006746 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006747 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006748 .total_size = 512,
6749 .page_size = 256,
6750 .tested = TEST_UNTESTED,
6751 .probe = probe_82802ab,
6752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006753 .block_erasers =
6754 {
6755 {
6756 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006757 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006758 },
6759 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006760 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006761 .write = write_82802ab,
6762 .read = read_memmapped,
6763 },
6764
6765 {
6766 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006767 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006768 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006769 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006770 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006771 .total_size = 512,
6772 .page_size = 128 * 1024, /* maximal block size */
6773 .tested = TEST_UNTESTED,
6774 .probe = probe_82802ab,
6775 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6776 .block_erasers =
6777 {
6778 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006779 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006780 {16 * 1024, 1},
6781 {8 * 1024, 2},
6782 {96 * 1024, 1},
6783 {128 * 1024, 3},
6784 },
6785 .block_erase = erase_block_82802ab,
6786 },
6787 },
6788 .write = write_82802ab,
6789 .read = read_memmapped,
6790 },
6791
6792 {
6793 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006794 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006795 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006796 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006797 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006798 .total_size = 512,
6799 .page_size = 128 * 1024, /* maximal block size */
6800 .tested = TEST_UNTESTED,
6801 .probe = probe_82802ab,
6802 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6803 .block_erasers =
6804 {
6805 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006806 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006807 {128 * 1024, 3},
6808 {96 * 1024, 1},
6809 {8 * 1024, 2},
6810 {16 * 1024, 1},
6811 },
6812 .block_erase = erase_block_82802ab,
6813 },
6814 },
6815 .write = write_82802ab,
6816 .read = read_memmapped,
6817 },
6818
6819 {
6820 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006821 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006822 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006823 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006824 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006825 .total_size = 512,
6826 .page_size = 128 * 1024, /* maximal block size */
6827 .feature_bits = FEATURE_ADDR_SHIFTED,
6828 .tested = TEST_UNTESTED,
6829 .probe = probe_82802ab,
6830 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6831 .block_erasers =
6832 {
6833 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006834 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006835 {16 * 1024, 1},
6836 {8 * 1024, 2},
6837 {96 * 1024, 1},
6838 {128 * 1024, 3},
6839 },
6840 .block_erase = erase_block_82802ab,
6841 },
6842 },
6843 .write = write_82802ab,
6844 .read = read_memmapped,
6845 },
6846
6847 {
6848 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006849 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006850 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006851 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006852 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006853 .total_size = 512,
6854 .page_size = 128 * 1024, /* maximal block size */
6855 .feature_bits = FEATURE_ADDR_SHIFTED,
6856 .tested = TEST_UNTESTED,
6857 .probe = probe_82802ab,
6858 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6859 .block_erasers =
6860 {
6861 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006862 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006863 {128 * 1024, 3},
6864 {96 * 1024, 1},
6865 {8 * 1024, 2},
6866 {16 * 1024, 1},
6867 },
6868 .block_erase = erase_block_82802ab,
6869 },
6870 },
6871 .write = write_82802ab,
6872 .read = read_memmapped,
6873 },
6874
6875 {
6876 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006877 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006878 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006879 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006880 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006881 .total_size = 512,
6882 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006883 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006884 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006885 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006886 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006887 .block_erasers =
6888 {
6889 {
6890 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006891 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006892 },
6893 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006894 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006895 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006897 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006898 },
6899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006900 {
6901 .vendor = "Intel",
6902 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006903 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006904 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006905 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006906 .total_size = 1024,
6907 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006908 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006909 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006910 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006911 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006912 .block_erasers =
6913 {
6914 {
6915 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006916 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006917 },
6918 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006919 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006920 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006922 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006923 },
6924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006925 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006926 .vendor = "ISSI",
6927 .name = "IS29GL064B",
6928 .bustype = BUS_PARALLEL,
6929 .manufacture_id = ISSI_ID,
6930 .model_id = ISSI_PMC_IS29GL064B,
6931 .total_size = 8192,
6932 .page_size = 128 * 1024, /* actual page size is 16 */
6933 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6934 .tested = TEST_UNTESTED,
6935 .probe = probe_jedec_29gl,
6936 .probe_timing = TIMING_ZERO,
6937 .block_erasers =
6938 {
6939 {
6940 .eraseblocks = {
6941 {8 * 1024, 8},
6942 {64 * 1024, 127},
6943 },
6944 .block_erase = erase_sector_jedec,
6945 }, {
6946 .eraseblocks = { {8 * 1024 * 1024, 1} },
6947 .block_erase = erase_chip_block_jedec,
6948 },
6949 },
6950 .write = write_jedec_1,
6951 .read = read_memmapped,
6952 .voltage = {2700, 3600},
6953 },
6954
6955 {
6956 .vendor = "ISSI",
6957 .name = "IS29GL064T",
6958 .bustype = BUS_PARALLEL,
6959 .manufacture_id = ISSI_ID,
6960 .model_id = ISSI_PMC_IS29GL064T,
6961 .total_size = 8192,
6962 .page_size = 128 * 1024, /* actual page size is 16 */
6963 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6964 .tested = TEST_UNTESTED,
6965 .probe = probe_jedec_29gl,
6966 .probe_timing = TIMING_ZERO,
6967 .block_erasers =
6968 {
6969 {
6970 .eraseblocks = {
6971 {64 * 1024, 127},
6972 {8 * 1024, 8},
6973 },
6974 .block_erase = erase_sector_jedec,
6975 }, {
6976 .eraseblocks = { {8 * 1024 * 1024, 1} },
6977 .block_erase = erase_chip_block_jedec,
6978 },
6979 },
6980 .write = write_jedec_1,
6981 .read = read_memmapped,
6982 .voltage = {2700, 3600},
6983 },
6984
6985 {
6986 .vendor = "ISSI",
6987 .name = "IS29GL064H/L",
6988 .bustype = BUS_PARALLEL,
6989 .manufacture_id = ISSI_ID,
6990 .model_id = ISSI_PMC_IS29GL064HL,
6991 .total_size = 8192,
6992 .page_size = 128 * 1024, /* actual page size is 16 */
6993 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6994 .tested = TEST_UNTESTED,
6995 .probe = probe_jedec_29gl,
6996 .probe_timing = TIMING_ZERO,
6997 .block_erasers =
6998 {
6999 {
7000 .eraseblocks = { {64 * 1024, 128} },
7001 .block_erase = erase_sector_jedec,
7002 }, {
7003 .eraseblocks = { {8 * 1024 * 1024, 1} },
7004 .block_erase = erase_chip_block_jedec,
7005 },
7006 },
7007 .write = write_jedec_1,
7008 .read = read_memmapped,
7009 .voltage = {2700, 3600},
7010 },
7011
7012 {
7013 .vendor = "ISSI",
7014 .name = "IS29GL128H/L",
7015 .bustype = BUS_PARALLEL,
7016 .manufacture_id = ISSI_ID,
7017 .model_id = ISSI_PMC_IS29GL128HL,
7018 .total_size = 16384,
7019 .page_size = 128 * 1024, /* actual page size is 16 */
7020 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7021 .tested = TEST_UNTESTED,
7022 .probe = probe_jedec_29gl,
7023 .probe_timing = TIMING_ZERO,
7024 .block_erasers =
7025 {
7026 {
7027 .eraseblocks = { {128 * 1024, 128} },
7028 .block_erase = erase_sector_jedec,
7029 }, {
7030 .eraseblocks = { {16 * 1024 * 1024, 1} },
7031 .block_erase = erase_chip_block_jedec,
7032 },
7033 },
7034 .write = write_jedec_1,
7035 .read = read_memmapped,
7036 .voltage = {2700, 3600},
7037 },
7038
7039 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007040 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007041 .name = "MX23L1654",
7042 .bustype = BUS_SPI,
7043 .manufacture_id = MACRONIX_ID,
7044 .model_id = MACRONIX_MX23L1654,
7045 .total_size = 2048,
7046 .page_size = 256,
7047 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7048 .probe = probe_spi_rdid,
7049 .probe_timing = TIMING_ZERO,
7050 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7051 .read = spi_chip_read, /* Fast read (0x0B) supported */
7052 .voltage = {3000, 3600},
7053 },
7054
7055 {
7056 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007057 .name = "MX23L3254",
7058 .bustype = BUS_SPI,
7059 .manufacture_id = MACRONIX_ID,
7060 .model_id = MACRONIX_MX23L3254,
7061 .total_size = 4096,
7062 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007063 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007064 .probe = probe_spi_rdid,
7065 .probe_timing = TIMING_ZERO,
7066 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7067 .read = spi_chip_read, /* Fast read (0x0B) supported */
7068 .voltage = {3000, 3600},
7069 },
7070
7071 {
7072 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007073 .name = "MX23L6454",
7074 .bustype = BUS_SPI,
7075 .manufacture_id = MACRONIX_ID,
7076 .model_id = MACRONIX_MX23L6454,
7077 .total_size = 8192,
7078 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007079 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007080 .probe = probe_spi_rdid,
7081 .probe_timing = TIMING_ZERO,
7082 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7083 .read = spi_chip_read, /* Fast read (0x0B) supported */
7084 .voltage = {3000, 3600},
7085 },
7086
7087 {
7088 .vendor = "Macronix",
7089 .name = "MX23L12854",
7090 .bustype = BUS_SPI,
7091 .manufacture_id = MACRONIX_ID,
7092 .model_id = MACRONIX_MX23L12854,
7093 .total_size = 16384,
7094 .page_size = 256,
7095 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7096 .probe = probe_spi_rdid,
7097 .probe_timing = TIMING_ZERO,
7098 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7099 .read = spi_chip_read, /* Fast read (0x0B) supported */
7100 .voltage = {3000, 3600},
7101 },
7102
7103 {
7104 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007105 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007106 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007107 .manufacture_id = MACRONIX_ID,
7108 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007109 .total_size = 64,
7110 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007111 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007112 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007113 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007115 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007116 .block_erasers =
7117 {
7118 {
7119 .eraseblocks = { {4 * 1024, 16} },
7120 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007121 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007122 .eraseblocks = { {64 * 1024, 1} },
7123 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007124 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007125 .eraseblocks = { {64 * 1024, 1} },
7126 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007127 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007128 .eraseblocks = { {64 * 1024, 1} },
7129 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007130 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007131 .eraseblocks = { {64 * 1024, 1} },
7132 .block_erase = spi_block_erase_c7,
7133 },
7134 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007135 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007136 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007137 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007138 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7139 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007140 },
7141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007142 {
7143 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007144 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007145 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007146 .manufacture_id = MACRONIX_ID,
7147 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007148 .total_size = 128,
7149 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007150 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007151 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007152 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007153 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007154 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007155 .block_erasers =
7156 {
7157 {
7158 .eraseblocks = { {4 * 1024, 32} },
7159 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007160 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007161 .eraseblocks = { {64 * 1024, 2} },
7162 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007163 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007164 .eraseblocks = { {128 * 1024, 1} },
7165 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007166 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007167 .eraseblocks = { {128 * 1024, 1} },
7168 .block_erase = spi_block_erase_c7,
7169 },
7170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007171 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007172 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007173 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007174 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007175 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007176 },
7177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007178 {
7179 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007180 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007181 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007182 .manufacture_id = MACRONIX_ID,
7183 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007184 .total_size = 256,
7185 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007186 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007187 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007189 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007190 .block_erasers =
7191 {
7192 {
7193 .eraseblocks = { {4 * 1024, 64} },
7194 .block_erase = spi_block_erase_20,
7195 }, {
7196 .eraseblocks = { {64 * 1024, 4} },
7197 .block_erase = spi_block_erase_52,
7198 }, {
7199 .eraseblocks = { {64 * 1024, 4} },
7200 .block_erase = spi_block_erase_d8,
7201 }, {
7202 .eraseblocks = { {256 * 1024, 1} },
7203 .block_erase = spi_block_erase_60,
7204 }, {
7205 .eraseblocks = { {256 * 1024, 1} },
7206 .block_erase = spi_block_erase_c7,
7207 },
7208 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007209 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007210 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007211 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007212 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007213 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007214 },
7215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007216 {
7217 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007218 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007219 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007220 .manufacture_id = MACRONIX_ID,
7221 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007222 .total_size = 512,
7223 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007224 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007225 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007226 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007227 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007228 .block_erasers =
7229 {
7230 {
7231 .eraseblocks = { {4 * 1024, 128} },
7232 .block_erase = spi_block_erase_20,
7233 }, {
7234 .eraseblocks = { {64 * 1024, 8} },
7235 .block_erase = spi_block_erase_52,
7236 }, {
7237 .eraseblocks = { {64 * 1024, 8} },
7238 .block_erase = spi_block_erase_d8,
7239 }, {
7240 .eraseblocks = { {512 * 1024, 1} },
7241 .block_erase = spi_block_erase_60,
7242 }, {
7243 .eraseblocks = { {512 * 1024, 1} },
7244 .block_erase = spi_block_erase_c7,
7245 },
7246 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007247 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007248 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007249 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007250 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007251 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007252 },
7253
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007254 {
7255 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007256 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007257 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007258 .manufacture_id = MACRONIX_ID,
7259 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007260 .total_size = 1024,
7261 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007262 /* MX25L8006E, MX25L8008E support SFDP */
7263 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007264 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007265 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007266 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007267 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007268 .block_erasers =
7269 {
7270 {
7271 .eraseblocks = { {4 * 1024, 256} },
7272 .block_erase = spi_block_erase_20,
7273 }, {
7274 .eraseblocks = { {64 * 1024, 16} },
7275 .block_erase = spi_block_erase_52,
7276 }, {
7277 .eraseblocks = { {64 * 1024, 16} },
7278 .block_erase = spi_block_erase_d8,
7279 }, {
7280 .eraseblocks = { {1024 * 1024, 1} },
7281 .block_erase = spi_block_erase_60,
7282 }, {
7283 .eraseblocks = { {1024 * 1024, 1} },
7284 .block_erase = spi_block_erase_c7,
7285 },
7286 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007287 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007288 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007289 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007290 .read = spi_chip_read, /* Fast read (0x0B) supported */
7291 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007292 },
7293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007294 {
7295 .vendor = "Macronix",
7296 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007297 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007298 .manufacture_id = MACRONIX_ID,
7299 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007300 .total_size = 2048,
7301 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007302 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007303 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007304 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007305 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007306 .block_erasers =
7307 {
7308 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007309 .eraseblocks = { {64 * 1024, 32} },
7310 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007311 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007312 .eraseblocks = { {64 * 1024, 32} },
7313 .block_erase = spi_block_erase_d8,
7314 }, {
7315 .eraseblocks = { {2 * 1024 * 1024, 1} },
7316 .block_erase = spi_block_erase_60,
7317 }, {
7318 .eraseblocks = { {2 * 1024 * 1024, 1} },
7319 .block_erase = spi_block_erase_c7,
7320 },
7321 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007322 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007323 .unlock = spi_disable_blockprotect,
7324 .write = spi_chip_write_256,
7325 .read = spi_chip_read, /* Fast read (0x0B) supported */
7326 .voltage = {2700, 3600},
7327 },
7328
7329 {
7330 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007331 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007332 .bustype = BUS_SPI,
7333 .manufacture_id = MACRONIX_ID,
7334 .model_id = MACRONIX_MX25L1605,
7335 .total_size = 2048,
7336 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007337 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007338 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7339 .tested = TEST_OK_PREW,
7340 .probe = probe_spi_rdid,
7341 .probe_timing = TIMING_ZERO,
7342 .block_erasers =
7343 {
7344 {
7345 .eraseblocks = { {4 * 1024, 512} },
7346 .block_erase = spi_block_erase_20,
7347 }, {
7348 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007349 .block_erase = spi_block_erase_52,
7350 }, {
7351 .eraseblocks = { {64 * 1024, 32} },
7352 .block_erase = spi_block_erase_d8,
7353 }, {
7354 .eraseblocks = { {2 * 1024 * 1024, 1} },
7355 .block_erase = spi_block_erase_60,
7356 }, {
7357 .eraseblocks = { {2 * 1024 * 1024, 1} },
7358 .block_erase = spi_block_erase_c7,
7359 },
7360 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007361 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007362 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007363 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007364 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007365 .voltage = {2700, 3600},
7366 },
7367
7368 {
7369 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007370 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007371 .bustype = BUS_SPI,
7372 .manufacture_id = MACRONIX_ID,
7373 .model_id = MACRONIX_MX25L1605,
7374 .total_size = 2048,
7375 .page_size = 256,
7376 .feature_bits = FEATURE_WRSR_WREN,
7377 .tested = TEST_OK_PREW,
7378 .probe = probe_spi_rdid,
7379 .probe_timing = TIMING_ZERO,
7380 .block_erasers =
7381 {
7382 {
7383 .eraseblocks = { {4 * 1024, 512} },
7384 .block_erase = spi_block_erase_20,
7385 }, {
7386 .eraseblocks = { {64 * 1024, 32} },
7387 .block_erase = spi_block_erase_d8,
7388 }, {
7389 .eraseblocks = { {2 * 1024 * 1024, 1} },
7390 .block_erase = spi_block_erase_60,
7391 }, {
7392 .eraseblocks = { {2 * 1024 * 1024, 1} },
7393 .block_erase = spi_block_erase_c7,
7394 },
7395 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007396 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007397 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007398 .write = spi_chip_write_256,
7399 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007400 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007401 },
7402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007403 {
7404 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007405 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007406 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007407 .manufacture_id = MACRONIX_ID,
7408 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007409 .total_size = 2048,
7410 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007411 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7412 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007413 .tested = TEST_UNTESTED,
7414 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007415 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007416 .block_erasers =
7417 {
7418 {
7419 .eraseblocks = { {4 * 1024, 512} },
7420 .block_erase = spi_block_erase_20,
7421 }, {
7422 .eraseblocks = { {64 * 1024, 32} },
7423 .block_erase = spi_block_erase_d8,
7424 }, {
7425 .eraseblocks = { {2 * 1024 * 1024, 1} },
7426 .block_erase = spi_block_erase_60,
7427 }, {
7428 .eraseblocks = { {2 * 1024 * 1024, 1} },
7429 .block_erase = spi_block_erase_c7,
7430 }
7431 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007432 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007433 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007434 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007436 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007437 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007438
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007439 {
7440 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007441 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007442 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007443 .manufacture_id = MACRONIX_ID,
7444 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007445 .total_size = 2048,
7446 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007447 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7448 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007449 .tested = TEST_UNTESTED,
7450 .probe = probe_spi_rdid,
7451 .probe_timing = TIMING_ZERO,
7452 .block_erasers =
7453 {
7454 {
7455 .eraseblocks = { {4 * 1024, 512} },
7456 .block_erase = spi_block_erase_20,
7457 }, {
7458 .eraseblocks = { {64 * 1024, 32} },
7459 .block_erase = spi_block_erase_d8,
7460 }, {
7461 .eraseblocks = { {2 * 1024 * 1024, 1} },
7462 .block_erase = spi_block_erase_60,
7463 }, {
7464 .eraseblocks = { {2 * 1024 * 1024, 1} },
7465 .block_erase = spi_block_erase_c7,
7466 }
7467 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007468 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007469 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007470 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007471 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007472 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007473 },
7474
7475 {
7476 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007477 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007478 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007479 .manufacture_id = MACRONIX_ID,
7480 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007481 .total_size = 4096,
7482 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007483 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007484 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007485 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007486 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007487 .block_erasers =
7488 {
7489 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007490 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007491 .block_erase = spi_block_erase_20,
7492 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007493 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007494 .block_erase = spi_block_erase_d8,
7495 }, {
7496 .eraseblocks = { {4 * 1024 * 1024, 1} },
7497 .block_erase = spi_block_erase_60,
7498 }, {
7499 .eraseblocks = { {4 * 1024 * 1024, 1} },
7500 .block_erase = spi_block_erase_c7,
7501 },
7502 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007503 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007505 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007506 .read = spi_chip_read, /* Fast read (0x0B) supported */
7507 .voltage = {2700, 3600},
7508 },
7509
7510 {
7511 .vendor = "Macronix",
7512 .name = "MX25L3205D/MX25L3208D",
7513 .bustype = BUS_SPI,
7514 .manufacture_id = MACRONIX_ID,
7515 .model_id = MACRONIX_MX25L3205,
7516 .total_size = 4096,
7517 .page_size = 256,
7518 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7519 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7520 .tested = TEST_OK_PREW,
7521 .probe = probe_spi_rdid,
7522 .probe_timing = TIMING_ZERO,
7523 .block_erasers =
7524 {
7525 {
7526 .eraseblocks = { {4 * 1024, 1024} },
7527 .block_erase = spi_block_erase_20,
7528 }, {
7529 .eraseblocks = { {64 * 1024, 64} },
7530 .block_erase = spi_block_erase_d8,
7531 }, {
7532 .eraseblocks = { {4 * 1024 * 1024, 1} },
7533 .block_erase = spi_block_erase_60,
7534 }, {
7535 .eraseblocks = { {4 * 1024 * 1024, 1} },
7536 .block_erase = spi_block_erase_c7,
7537 },
7538 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007539 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007540 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007541 .write = spi_chip_write_256,
7542 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7543 .voltage = {2700, 3600},
7544 },
7545
7546 {
7547 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007548 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007549 .bustype = BUS_SPI,
7550 .manufacture_id = MACRONIX_ID,
7551 .model_id = MACRONIX_MX25L3205,
7552 .total_size = 4096,
7553 .page_size = 256,
7554 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7555 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7556 .tested = TEST_OK_PREW,
7557 .probe = probe_spi_rdid,
7558 .probe_timing = TIMING_ZERO,
7559 .block_erasers =
7560 {
7561 {
7562 .eraseblocks = { {4 * 1024, 1024} },
7563 .block_erase = spi_block_erase_20,
7564 }, {
7565 .eraseblocks = { {64 * 1024, 64} },
7566 .block_erase = spi_block_erase_d8,
7567 }, {
7568 .eraseblocks = { {64 * 1024, 64} },
7569 .block_erase = spi_block_erase_52,
7570 }, {
7571 .eraseblocks = { {4 * 1024 * 1024, 1} },
7572 .block_erase = spi_block_erase_60,
7573 }, {
7574 .eraseblocks = { {4 * 1024 * 1024, 1} },
7575 .block_erase = spi_block_erase_c7,
7576 },
7577 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007578 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007579 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007580 .write = spi_chip_write_256,
7581 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007582 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007583 },
7584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007585 {
7586 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007587 .name = "MX25L3273E",
7588 .bustype = BUS_SPI,
7589 .manufacture_id = MACRONIX_ID,
7590 .model_id = MACRONIX_MX25L3205,
7591 .total_size = 4096,
7592 .page_size = 256,
7593 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7594 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007595 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007596 .probe = probe_spi_rdid,
7597 .probe_timing = TIMING_ZERO,
7598 .block_erasers =
7599 {
7600 {
7601 .eraseblocks = { {4 * 1024, 1024} },
7602 .block_erase = spi_block_erase_20,
7603 }, {
7604 .eraseblocks = { {32 * 1024, 128} },
7605 .block_erase = spi_block_erase_52,
7606 }, {
7607 .eraseblocks = { {64 * 1024, 64} },
7608 .block_erase = spi_block_erase_d8,
7609 }, {
7610 .eraseblocks = { {4 * 1024 * 1024, 1} },
7611 .block_erase = spi_block_erase_60,
7612 }, {
7613 .eraseblocks = { {4 * 1024 * 1024, 1} },
7614 .block_erase = spi_block_erase_c7,
7615 },
7616 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007617 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007618 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007619 .write = spi_chip_write_256,
7620 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7621 .voltage = {2700, 3600},
7622 },
7623
7624 {
7625 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007626 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007627 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007628 .manufacture_id = MACRONIX_ID,
7629 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007630 .total_size = 4096,
7631 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007632 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007634 .tested = TEST_UNTESTED,
7635 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007636 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007637 .block_erasers =
7638 {
7639 {
7640 .eraseblocks = { {4 * 1024, 1024} },
7641 .block_erase = spi_block_erase_20,
7642 }, {
7643 .eraseblocks = { {64 * 1024, 64} },
7644 .block_erase = spi_block_erase_d8,
7645 }, {
7646 .eraseblocks = { {4 * 1024 * 1024, 1} },
7647 .block_erase = spi_block_erase_60,
7648 }, {
7649 .eraseblocks = { {4 * 1024 * 1024, 1} },
7650 .block_erase = spi_block_erase_c7,
7651 }
7652 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007653 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007654 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007655 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007657 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007658 },
7659
7660 {
7661 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007662 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007663 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007664 .manufacture_id = MACRONIX_ID,
7665 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007666 .total_size = 8192,
7667 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007668 /* Has an additional 512B EEPROM sector */
7669 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007670 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007671 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007672 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007673 .block_erasers =
7674 {
7675 {
7676 .eraseblocks = { {64 * 1024, 128} },
7677 .block_erase = spi_block_erase_20,
7678 }, {
7679 .eraseblocks = { {64 * 1024, 128} },
7680 .block_erase = spi_block_erase_d8,
7681 }, {
7682 .eraseblocks = { {8 * 1024 * 1024, 1} },
7683 .block_erase = spi_block_erase_60,
7684 }, {
7685 .eraseblocks = { {8 * 1024 * 1024, 1} },
7686 .block_erase = spi_block_erase_c7,
7687 }
7688 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007689 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007690 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007691 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007692 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007693 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007694 },
7695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007696 {
7697 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007698 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00007699 .bustype = BUS_SPI,
7700 .manufacture_id = MACRONIX_ID,
7701 .model_id = MACRONIX_MX25L6405,
7702 .total_size = 8192,
7703 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007704 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007705 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7706 .tested = TEST_OK_PREW,
7707 .probe = probe_spi_rdid,
7708 .probe_timing = TIMING_ZERO,
7709 .block_erasers =
7710 {
7711 {
7712 .eraseblocks = { {4 * 1024, 2048} },
7713 .block_erase = spi_block_erase_20,
7714 }, {
7715 .eraseblocks = { {64 * 1024, 128} },
7716 .block_erase = spi_block_erase_d8,
7717 }, {
7718 .eraseblocks = { {8 * 1024 * 1024, 1} },
7719 .block_erase = spi_block_erase_60,
7720 }, {
7721 .eraseblocks = { {8 * 1024 * 1024, 1} },
7722 .block_erase = spi_block_erase_c7,
7723 }
7724 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007725 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007726 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007727 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007728 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00007729 .voltage = {2700, 3600},
7730 },
7731
7732 {
7733 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007734 .name = "MX25L6406E/MX25L6408E",
7735 .bustype = BUS_SPI,
7736 .manufacture_id = MACRONIX_ID,
7737 .model_id = MACRONIX_MX25L6405,
7738 .total_size = 8192,
7739 .page_size = 256,
7740 /* MX25L6406E supports SFDP */
7741 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
7742 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7743 .tested = TEST_OK_PREW,
7744 .probe = probe_spi_rdid,
7745 .probe_timing = TIMING_ZERO,
7746 .block_erasers =
7747 {
7748 {
7749 .eraseblocks = { {4 * 1024, 2048} },
7750 .block_erase = spi_block_erase_20,
7751 }, {
7752 .eraseblocks = { {64 * 1024, 128} },
7753 .block_erase = spi_block_erase_52,
7754 }, {
7755 .eraseblocks = { {64 * 1024, 128} },
7756 .block_erase = spi_block_erase_d8,
7757 }, {
7758 .eraseblocks = { {8 * 1024 * 1024, 1} },
7759 .block_erase = spi_block_erase_60,
7760 }, {
7761 .eraseblocks = { {8 * 1024 * 1024, 1} },
7762 .block_erase = spi_block_erase_c7,
7763 }
7764 },
7765 .printlock = spi_prettyprint_status_register_bp3_srwd,
7766 .unlock = spi_disable_blockprotect_bp3_srwd,
7767 .write = spi_chip_write_256,
7768 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
7769 .voltage = {2700, 3600},
7770 },
7771
7772 {
7773 .vendor = "Macronix",
7774 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007775 .bustype = BUS_SPI,
7776 .manufacture_id = MACRONIX_ID,
7777 .model_id = MACRONIX_MX25L6405,
7778 .total_size = 8192,
7779 .page_size = 256,
7780 /* supports SFDP */
7781 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7782 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7783 .tested = TEST_OK_PREW,
7784 .probe = probe_spi_rdid,
7785 .probe_timing = TIMING_ZERO,
7786 .block_erasers =
7787 {
7788 {
7789 .eraseblocks = { {4 * 1024, 2048} },
7790 .block_erase = spi_block_erase_20,
7791 }, {
7792 .eraseblocks = { {32 * 1024, 256} },
7793 .block_erase = spi_block_erase_52,
7794 }, {
7795 .eraseblocks = { {64 * 1024, 128} },
7796 .block_erase = spi_block_erase_d8,
7797 }, {
7798 .eraseblocks = { {8 * 1024 * 1024, 1} },
7799 .block_erase = spi_block_erase_60,
7800 }, {
7801 .eraseblocks = { {8 * 1024 * 1024, 1} },
7802 .block_erase = spi_block_erase_c7,
7803 }
7804 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007805 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007806 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007807 .write = spi_chip_write_256,
7808 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7809 .voltage = {2700, 3600},
7810 },
7811
7812 {
7813 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007814 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007815 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007816 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007817 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007818 .total_size = 16384,
7819 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007820 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007821 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007822 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007823 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007824 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007825 .block_erasers =
7826 {
7827 {
7828 .eraseblocks = { {4 * 1024, 4096} },
7829 .block_erase = spi_block_erase_20,
7830 }, {
7831 .eraseblocks = { {64 * 1024, 256} },
7832 .block_erase = spi_block_erase_d8,
7833 }, {
7834 .eraseblocks = { {16 * 1024 * 1024, 1} },
7835 .block_erase = spi_block_erase_60,
7836 }, {
7837 .eraseblocks = { {16 * 1024 * 1024, 1} },
7838 .block_erase = spi_block_erase_c7,
7839 }
7840 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007841 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007842 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007843 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007844 .read = spi_chip_read, /* Fast read (0x0B) supported */
7845 .voltage = {2700, 3600},
7846 },
7847
7848 {
7849 .vendor = "Macronix",
7850 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
7851 .bustype = BUS_SPI,
7852 .manufacture_id = MACRONIX_ID,
7853 .model_id = MACRONIX_MX25L12805D,
7854 .total_size = 16384,
7855 .page_size = 256,
7856 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7858 .tested = TEST_OK_PREW,
7859 .probe = probe_spi_rdid,
7860 .probe_timing = TIMING_ZERO,
7861 .block_erasers =
7862 {
7863 {
7864 .eraseblocks = { {4 * 1024, 4096} },
7865 .block_erase = spi_block_erase_20,
7866 }, {
7867 .eraseblocks = { {32 * 1024, 512} },
7868 .block_erase = spi_block_erase_52,
7869 }, {
7870 .eraseblocks = { {64 * 1024, 256} },
7871 .block_erase = spi_block_erase_d8,
7872 }, {
7873 .eraseblocks = { {16 * 1024 * 1024, 1} },
7874 .block_erase = spi_block_erase_60,
7875 }, {
7876 .eraseblocks = { {16 * 1024 * 1024, 1} },
7877 .block_erase = spi_block_erase_c7,
7878 }
7879 },
7880 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7881 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7882 .unlock = spi_disable_blockprotect_bp3_srwd,
7883 .write = spi_chip_write_256,
7884 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007885 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007886 },
7887
7888 {
7889 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007890 .name = "MX25U1635E",
7891 .bustype = BUS_SPI,
7892 .manufacture_id = MACRONIX_ID,
7893 .model_id = MACRONIX_MX25U1635E,
7894 .total_size = 2048,
7895 .page_size = 256,
7896 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7897 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7898 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007899 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00007900 .probe = probe_spi_rdid,
7901 .probe_timing = TIMING_ZERO,
7902 .block_erasers =
7903 {
7904 {
7905 .eraseblocks = { {4 * 1024, 512} },
7906 .block_erase = spi_block_erase_20,
7907 }, {
7908 .eraseblocks = { {32 * 1024, 64} },
7909 .block_erase = spi_block_erase_52,
7910 }, {
7911 .eraseblocks = { {64 * 1024, 32} },
7912 .block_erase = spi_block_erase_d8,
7913 }, {
7914 .eraseblocks = { {2 * 1024 * 1024, 1} },
7915 .block_erase = spi_block_erase_60,
7916 }, {
7917 .eraseblocks = { {2 * 1024 * 1024, 1} },
7918 .block_erase = spi_block_erase_c7,
7919 }
7920 },
7921 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007922 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007923 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007924 .write = spi_chip_write_256,
7925 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7926 .voltage = {1650, 2000},
7927 },
7928
7929 {
7930 .vendor = "Macronix",
7931 .name = "MX25U3235E/F",
7932 .bustype = BUS_SPI,
7933 .manufacture_id = MACRONIX_ID,
7934 .model_id = MACRONIX_MX25U3235E,
7935 .total_size = 4096,
7936 .page_size = 256,
7937 /* F model supports SFDP */
7938 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7939 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7941 .tested = TEST_OK_PREW,
7942 .probe = probe_spi_rdid,
7943 .probe_timing = TIMING_ZERO,
7944 .block_erasers =
7945 {
7946 {
7947 .eraseblocks = { {4 * 1024, 1024} },
7948 .block_erase = spi_block_erase_20,
7949 }, {
7950 .eraseblocks = { {32 * 1024, 128} },
7951 .block_erase = spi_block_erase_52,
7952 }, {
7953 .eraseblocks = { {64 * 1024, 64} },
7954 .block_erase = spi_block_erase_d8,
7955 }, {
7956 .eraseblocks = { {4 * 1024 * 1024, 1} },
7957 .block_erase = spi_block_erase_60,
7958 }, {
7959 .eraseblocks = { {4 * 1024 * 1024, 1} },
7960 .block_erase = spi_block_erase_c7,
7961 }
7962 },
7963 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007964 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007965 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007966 .write = spi_chip_write_256,
7967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7968 .voltage = {1650, 2000},
7969 },
7970
7971 {
7972 .vendor = "Macronix",
7973 .name = "MX25U6435E/F",
7974 .bustype = BUS_SPI,
7975 .manufacture_id = MACRONIX_ID,
7976 .model_id = MACRONIX_MX25U6435E,
7977 .total_size = 8192,
7978 .page_size = 256,
7979 /* F model supports SFDP */
7980 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7981 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007983 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00007984 .probe = probe_spi_rdid,
7985 .probe_timing = TIMING_ZERO,
7986 .block_erasers =
7987 {
7988 {
7989 .eraseblocks = { {4 * 1024, 2048} },
7990 .block_erase = spi_block_erase_20,
7991 }, {
7992 .eraseblocks = { {32 * 1024, 256} },
7993 .block_erase = spi_block_erase_52,
7994 }, {
7995 .eraseblocks = { {64 * 1024, 128} },
7996 .block_erase = spi_block_erase_d8,
7997 }, {
7998 .eraseblocks = { {8 * 1024 * 1024, 1} },
7999 .block_erase = spi_block_erase_60,
8000 }, {
8001 .eraseblocks = { {8 * 1024 * 1024, 1} },
8002 .block_erase = spi_block_erase_c7,
8003 }
8004 },
8005 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008006 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008007 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008008 .write = spi_chip_write_256,
8009 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8010 .voltage = {1650, 2000},
8011 },
8012
8013 {
8014 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008015 .name = "MX25U12835F",
8016 .bustype = BUS_SPI,
8017 .manufacture_id = MACRONIX_ID,
8018 .model_id = MACRONIX_MX25U12835E,
8019 .total_size = 16384,
8020 .page_size = 256,
8021 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8023 .tested = TEST_UNTESTED,
8024 .probe = probe_spi_rdid,
8025 .probe_timing = TIMING_ZERO,
8026 .block_erasers =
8027 {
8028 {
8029 .eraseblocks = { {4 * 1024, 4096} },
8030 .block_erase = spi_block_erase_20,
8031 }, {
8032 .eraseblocks = { {32 * 1024, 512} },
8033 .block_erase = spi_block_erase_52,
8034 }, {
8035 .eraseblocks = { {64 * 1024, 256} },
8036 .block_erase = spi_block_erase_d8,
8037 }, {
8038 .eraseblocks = { {16 * 1024 * 1024, 1} },
8039 .block_erase = spi_block_erase_60,
8040 }, {
8041 .eraseblocks = { {16 * 1024 * 1024, 1} },
8042 .block_erase = spi_block_erase_c7,
8043 }
8044 },
8045 /* TODO: security register */
8046 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8047 .unlock = spi_disable_blockprotect_bp3_srwd,
8048 .write = spi_chip_write_256, /* Multi I/O supported */
8049 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8050 .voltage = {1650, 2000},
8051 },
8052
8053 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008054 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008055 .name = "MX25L6495F",
8056 .bustype = BUS_SPI,
8057 .manufacture_id = MACRONIX_ID,
8058 .model_id = MACRONIX_MX25L6495F,
8059 .total_size = 8192,
8060 .page_size = 256,
8061 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8063 .tested = TEST_OK_PREW,
8064 .probe = probe_spi_rdid,
8065 .probe_timing = TIMING_ZERO,
8066 .block_erasers =
8067 {
8068 {
8069 .eraseblocks = { {4 * 1024, 2048} },
8070 .block_erase = spi_block_erase_20,
8071 }, {
8072 .eraseblocks = { {64 * 1024, 128} },
8073 .block_erase = spi_block_erase_d8,
8074 }, {
8075 .eraseblocks = { {32 * 1024, 256} },
8076 .block_erase = spi_block_erase_52,
8077 }, {
8078 .eraseblocks = { {8 * 1024 * 1024, 1} },
8079 .block_erase = spi_block_erase_60,
8080 }, {
8081 .eraseblocks = { {8 * 1024 * 1024, 1} },
8082 .block_erase = spi_block_erase_c7,
8083 }
8084 },
8085 .unlock = spi_disable_blockprotect,
8086 .write = spi_chip_write_256,
8087 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8088 .voltage = {2700, 3600},
8089 },
8090
8091 {
Martin Roth440057a2014-07-13 00:05:07 +00008092 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008093 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008094 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008095 .manufacture_id = MACRONIX_ID,
8096 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008097 .total_size = 128,
8098 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008099 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8100 .tested = TEST_UNTESTED,
8101 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008102 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008103 .block_erasers =
8104 {
8105 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008106 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008107 {8 * 1024, 1},
8108 {4 * 1024, 2},
8109 {8 * 1024, 2},
8110 {32 * 1024, 1},
8111 {64 * 1024, 1},
8112 },
Sean Nelson35727f72010-01-28 23:55:12 +00008113 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008114 }, {
8115 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008116 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008117 }
8118 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008119 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008121 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008122 },
8123
8124 {
8125 .vendor = "Macronix",
8126 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008127 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008128 .manufacture_id = MACRONIX_ID,
8129 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008130 .total_size = 128,
8131 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008132 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008133 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008134 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008135 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008136 .block_erasers =
8137 {
8138 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008139 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008140 {64 * 1024, 1},
8141 {32 * 1024, 1},
8142 {8 * 1024, 2},
8143 {4 * 1024, 2},
8144 {8 * 1024, 1},
8145 },
Sean Nelson35727f72010-01-28 23:55:12 +00008146 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008147 }, {
8148 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008149 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008150 }
8151 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008152 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008154 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008155 },
8156
8157 {
8158 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008159 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008160 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008161 .manufacture_id = MACRONIX_ID,
8162 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008163 .total_size = 256,
8164 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008165 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008166 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008167 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008168 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008169 .block_erasers =
8170 {
8171 {
8172 .eraseblocks = {
8173 {16 * 1024, 1},
8174 {8 * 1024, 2},
8175 {32 * 1024, 1},
8176 {64 * 1024, 3},
8177 },
Sean Nelson35727f72010-01-28 23:55:12 +00008178 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008179 }, {
8180 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008181 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008182 },
8183 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008184 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008185 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008186 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008187 },
8188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008189 {
8190 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008191 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008192 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008193 .manufacture_id = MACRONIX_ID,
8194 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008195 .total_size = 256,
8196 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008197 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008198 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008199 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008200 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008201 .block_erasers =
8202 {
8203 {
8204 .eraseblocks = {
8205 {64 * 1024, 3},
8206 {32 * 1024, 1},
8207 {8 * 1024, 2},
8208 {16 * 1024, 1},
8209 },
Sean Nelson35727f72010-01-28 23:55:12 +00008210 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008211 }, {
8212 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008213 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008214 },
8215 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008216 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008217 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008218 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008219 },
8220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008221 {
8222 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008223 .name = "MX29F022(N)B",
8224 .bustype = BUS_PARALLEL,
8225 .manufacture_id = MACRONIX_ID,
8226 .model_id = MACRONIX_MX29F022B,
8227 .total_size = 256,
8228 .page_size = 0, /* unused */
8229 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8230 .tested = TEST_UNTESTED,
8231 .probe = probe_jedec,
8232 .probe_timing = TIMING_ZERO,
8233 .block_erasers =
8234 {
8235 {
8236 .eraseblocks = {
8237 {16 * 1024, 1},
8238 {8 * 1024, 2},
8239 {32 * 1024, 1},
8240 {64 * 1024, 3},
8241 },
8242 .block_erase = erase_sector_jedec,
8243 }, {
8244 .eraseblocks = { {256 * 1024, 1} },
8245 .block_erase = erase_chip_block_jedec,
8246 }
8247 },
8248 .write = write_jedec_1,
8249 .read = read_memmapped,
8250 .voltage = {4500, 5500},
8251 },
8252
8253 {
8254 .vendor = "Macronix",
8255 .name = "MX29F022(N)T",
8256 .bustype = BUS_PARALLEL,
8257 .manufacture_id = MACRONIX_ID,
8258 .model_id = MACRONIX_MX29F022T,
8259 .total_size = 256,
8260 .page_size = 0, /* unused */
8261 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8262 .tested = TEST_OK_PREW,
8263 .probe = probe_jedec,
8264 .probe_timing = TIMING_ZERO,
8265 .block_erasers =
8266 {
8267 {
8268 .eraseblocks = {
8269 {64 * 1024, 3},
8270 {32 * 1024, 1},
8271 {8 * 1024, 2},
8272 {16 * 1024, 1},
8273 },
8274 .block_erase = erase_sector_jedec,
8275 }, {
8276 .eraseblocks = { {256 * 1024, 1} },
8277 .block_erase = erase_chip_block_jedec,
8278 }
8279 },
8280 .write = write_jedec_1,
8281 .read = read_memmapped,
8282 .voltage = {4500, 5500},
8283 },
8284
8285 {
8286 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008287 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008288 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008289 .manufacture_id = MACRONIX_ID,
8290 .model_id = MACRONIX_MX29F040,
8291 .total_size = 512,
8292 .page_size = 64 * 1024,
8293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8294 .tested = TEST_UNTESTED,
8295 .probe = probe_jedec,
8296 .probe_timing = TIMING_ZERO,
8297 .block_erasers =
8298 {
8299 {
8300 .eraseblocks = { {64 * 1024, 8} },
8301 .block_erase = erase_sector_jedec,
8302 }, {
8303 .eraseblocks = { {512 * 1024, 1} },
8304 .block_erase = erase_chip_block_jedec,
8305 },
8306 },
8307 .write = write_jedec_1,
8308 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008309 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008310 },
8311
8312 {
8313 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008314 .name = "MX29GL320EB",
8315 .bustype = BUS_PARALLEL,
8316 .manufacture_id = MACRONIX_ID,
8317 .model_id = MACRONIX_MX29GL320EB,
8318 .total_size = 4096,
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 = {
8328 {8 * 1024, 8},
8329 {64 * 1024, 63},
8330 },
8331 .block_erase = erase_sector_jedec,
8332 }, {
8333 .eraseblocks = { {4 * 1024 * 1024, 1} },
8334 .block_erase = erase_chip_block_jedec,
8335 },
8336 },
8337 .write = write_jedec_1,
8338 .read = read_memmapped,
8339 .voltage = {2700, 3600},
8340 },
8341
8342 {
8343 .vendor = "Macronix",
8344 .name = "MX29GL320ET",
8345 .bustype = BUS_PARALLEL,
8346 .manufacture_id = MACRONIX_ID,
8347 .model_id = MACRONIX_MX29GL320ET,
8348 .total_size = 4096,
8349 .page_size = 128 * 1024, /* actual page size is 16 */
8350 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8351 .tested = TEST_UNTESTED,
8352 .probe = probe_jedec_29gl,
8353 .probe_timing = TIMING_ZERO,
8354 .block_erasers =
8355 {
8356 {
8357 .eraseblocks = {
8358 {64 * 1024, 63},
8359 {8 * 1024, 8},
8360 },
8361 .block_erase = erase_sector_jedec,
8362 }, {
8363 .eraseblocks = { {4 * 1024 * 1024, 1} },
8364 .block_erase = erase_chip_block_jedec,
8365 },
8366 },
8367 .write = write_jedec_1,
8368 .read = read_memmapped,
8369 .voltage = {2700, 3600},
8370 },
8371
8372 {
8373 .vendor = "Macronix",
8374 .name = "MX29GL320EH/L",
8375 .bustype = BUS_PARALLEL,
8376 .manufacture_id = MACRONIX_ID,
8377 .model_id = MACRONIX_MX29GL320EHL,
8378 .total_size = 4096,
8379 .page_size = 128 * 1024, /* actual page size is 16 */
8380 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8381 .tested = TEST_UNTESTED,
8382 .probe = probe_jedec_29gl,
8383 .probe_timing = TIMING_ZERO,
8384 .block_erasers =
8385 {
8386 {
8387 .eraseblocks = { {64 * 1024, 64} },
8388 .block_erase = erase_sector_jedec,
8389 }, {
8390 .eraseblocks = { {4 * 1024 * 1024, 1} },
8391 .block_erase = erase_chip_block_jedec,
8392 },
8393 },
8394 .write = write_jedec_1,
8395 .read = read_memmapped,
8396 .voltage = {2700, 3600},
8397 },
8398
8399 {
8400 .vendor = "Macronix",
8401 .name = "MX29GL640EB",
8402 .bustype = BUS_PARALLEL,
8403 .manufacture_id = MACRONIX_ID,
8404 .model_id = MACRONIX_MX29GL640EB,
8405 .total_size = 8192,
8406 .page_size = 128 * 1024, /* actual page size is 16 */
8407 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8408 .tested = TEST_UNTESTED,
8409 .probe = probe_jedec_29gl,
8410 .probe_timing = TIMING_ZERO,
8411 .block_erasers =
8412 {
8413 {
8414 .eraseblocks = {
8415 {8 * 1024, 8},
8416 {64 * 1024, 127},
8417 },
8418 .block_erase = erase_sector_jedec,
8419 }, {
8420 .eraseblocks = { {8 * 1024 * 1024, 1} },
8421 .block_erase = erase_chip_block_jedec,
8422 },
8423 },
8424 .write = write_jedec_1,
8425 .read = read_memmapped,
8426 .voltage = {2700, 3600},
8427 },
8428
8429 {
8430 .vendor = "Macronix",
8431 .name = "MX29GL640ET",
8432 .bustype = BUS_PARALLEL,
8433 .manufacture_id = MACRONIX_ID,
8434 .model_id = MACRONIX_MX29GL640ET,
8435 .total_size = 8192,
8436 .page_size = 128 * 1024, /* actual page size is 16 */
8437 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8438 .tested = TEST_UNTESTED,
8439 .probe = probe_jedec_29gl,
8440 .probe_timing = TIMING_ZERO,
8441 .block_erasers =
8442 {
8443 {
8444 .eraseblocks = {
8445 {64 * 1024, 127},
8446 {8 * 1024, 8},
8447 },
8448 .block_erase = erase_sector_jedec,
8449 }, {
8450 .eraseblocks = { {8 * 1024 * 1024, 1} },
8451 .block_erase = erase_chip_block_jedec,
8452 },
8453 },
8454 .write = write_jedec_1,
8455 .read = read_memmapped,
8456 .voltage = {2700, 3600},
8457 },
8458
8459 {
8460 .vendor = "Macronix",
8461 .name = "MX29GL640EH/L",
8462 .bustype = BUS_PARALLEL,
8463 .manufacture_id = MACRONIX_ID,
8464 .model_id = MACRONIX_MX29GL640EHL,
8465 .total_size = 8192,
8466 .page_size = 128 * 1024, /* actual page size is 16 */
8467 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8468 .tested = TEST_UNTESTED,
8469 .probe = probe_jedec_29gl,
8470 .probe_timing = TIMING_ZERO,
8471 .block_erasers =
8472 {
8473 {
8474 .eraseblocks = { {64 * 1024, 128} },
8475 .block_erase = erase_sector_jedec,
8476 }, {
8477 .eraseblocks = { {8 * 1024 * 1024, 1} },
8478 .block_erase = erase_chip_block_jedec,
8479 },
8480 },
8481 .write = write_jedec_1,
8482 .read = read_memmapped,
8483 .voltage = {2700, 3600},
8484 },
8485
8486 {
8487 .vendor = "Macronix",
8488 .name = "MX29GL128F",
8489 .bustype = BUS_PARALLEL,
8490 .manufacture_id = MACRONIX_ID,
8491 .model_id = MACRONIX_MX29GL128F,
8492 .total_size = 16384,
8493 .page_size = 128 * 1024, /* actual page size is 16 */
8494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8495 .tested = TEST_UNTESTED,
8496 .probe = probe_jedec_29gl,
8497 .probe_timing = TIMING_ZERO,
8498 .block_erasers =
8499 {
8500 {
8501 .eraseblocks = { {128 * 1024, 128} },
8502 .block_erase = erase_sector_jedec,
8503 }, {
8504 .eraseblocks = { {16 * 1024 * 1024, 1} },
8505 .block_erase = erase_chip_block_jedec,
8506 },
8507 },
8508 .write = write_jedec_1,
8509 .read = read_memmapped,
8510 .voltage = {2700, 3600},
8511 },
8512
8513 {
8514 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008515 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008516 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008517 .manufacture_id = MACRONIX_ID,
8518 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008519 .total_size = 512,
8520 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8522 .tested = TEST_UNTESTED,
8523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008524 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008525 .block_erasers =
8526 {
8527 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008528 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008529 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008530 }, {
8531 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008532 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008533 },
8534 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008537 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008538 },
8539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008541 .vendor = "Micron/Numonyx/ST",
8542 .name = "M25P05-A",
8543 .bustype = BUS_SPI,
8544 .manufacture_id = ST_ID,
8545 .model_id = ST_M25P05A,
8546 .total_size = 64,
8547 .page_size = 256,
8548 .feature_bits = FEATURE_WRSR_WREN,
8549 .tested = TEST_OK_PREW,
8550 .probe = probe_spi_rdid,
8551 .probe_timing = TIMING_ZERO,
8552 .block_erasers =
8553 {
8554 {
8555 .eraseblocks = { {32 * 1024, 2} },
8556 .block_erase = spi_block_erase_d8,
8557 }, {
8558 .eraseblocks = { {64 * 1024, 1} },
8559 .block_erase = spi_block_erase_c7,
8560 }
8561 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008562 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008563 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008564 .write = spi_chip_write_256,
8565 .read = spi_chip_read,
8566 .voltage = {2700, 3600},
8567 },
8568
8569 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8570 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
8571 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
8572 * only is successful if RDID does not work.
8573 */
8574 {
8575 .vendor = "Micron/Numonyx/ST",
8576 .name = "M25P05",
8577 .bustype = BUS_SPI,
8578 .manufacture_id = 0, /* Not used. */
8579 .model_id = ST_M25P05_RES,
8580 .total_size = 64,
8581 .page_size = 256,
8582 .feature_bits = FEATURE_WRSR_WREN,
8583 .tested = TEST_UNTESTED,
8584 .probe = probe_spi_res1,
8585 .probe_timing = TIMING_ZERO,
8586 .block_erasers =
8587 {
8588 {
8589 .eraseblocks = { {32 * 1024, 2} },
8590 .block_erase = spi_block_erase_d8,
8591 }, {
8592 .eraseblocks = { {64 * 1024, 1} },
8593 .block_erase = spi_block_erase_c7,
8594 }
8595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008596 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008597 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008598 .write = spi_chip_write_1, /* 128 */
8599 .read = spi_chip_read,
8600 .voltage = {2700, 3600},
8601 },
8602
8603 {
8604 .vendor = "Micron/Numonyx/ST",
8605 .name = "M25P10-A",
8606 .bustype = BUS_SPI,
8607 .manufacture_id = ST_ID,
8608 .model_id = ST_M25P10A,
8609 .total_size = 128,
8610 .page_size = 256,
8611 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008612 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008613 .probe = probe_spi_rdid,
8614 .probe_timing = TIMING_ZERO,
8615 .block_erasers =
8616 {
8617 {
8618 .eraseblocks = { {32 * 1024, 4} },
8619 .block_erase = spi_block_erase_d8,
8620 }, {
8621 .eraseblocks = { {128 * 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 /* The ST M25P10 has the same problem as the M25P05. */
8633 {
8634 .vendor = "Micron/Numonyx/ST",
8635 .name = "M25P10",
8636 .bustype = BUS_SPI,
8637 .manufacture_id = 0, /* Not used. */
8638 .model_id = ST_M25P10_RES,
8639 .total_size = 128,
8640 .page_size = 256,
8641 .feature_bits = FEATURE_WRSR_WREN,
8642 .tested = TEST_UNTESTED,
8643 .probe = probe_spi_res1,
8644 .probe_timing = TIMING_ZERO,
8645 .block_erasers =
8646 {
8647 {
8648 .eraseblocks = { {32 * 1024, 4} },
8649 .block_erase = spi_block_erase_d8,
8650 }, {
8651 .eraseblocks = { {128 * 1024, 1} },
8652 .block_erase = spi_block_erase_c7,
8653 }
8654 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008655 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008656 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008657 .write = spi_chip_write_1, /* 128 */
8658 .read = spi_chip_read,
8659 .voltage = {2700, 3600},
8660 },
8661
8662 {
8663 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8664 .name = "M25P20",
8665 .bustype = BUS_SPI,
8666 .manufacture_id = ST_ID,
8667 .model_id = ST_M25P20,
8668 .total_size = 256,
8669 .page_size = 256,
8670 .feature_bits = FEATURE_WRSR_WREN,
8671 .tested = TEST_UNTESTED,
8672 .probe = probe_spi_rdid,
8673 .probe_timing = TIMING_ZERO,
8674 .block_erasers =
8675 {
8676 {
8677 .eraseblocks = { {64 * 1024, 4} },
8678 .block_erase = spi_block_erase_d8,
8679 }, {
8680 .eraseblocks = { {256 * 1024, 1} },
8681 .block_erase = spi_block_erase_c7,
8682 }
8683 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008684 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008685 .unlock = spi_disable_blockprotect,
8686 .write = spi_chip_write_256,
8687 .read = spi_chip_read, /* Fast read (0x0B) supported */
8688 .voltage = {2700, 3600},
8689 },
8690
8691 {
8692 .vendor = "Micron/Numonyx/ST",
8693 .name = "M25P20-old",
8694 .bustype = BUS_SPI,
8695 .manufacture_id = 0, /* Not used. */
8696 .model_id = ST_M25P20_RES,
8697 .total_size = 256,
8698 .page_size = 256,
8699 .feature_bits = FEATURE_WRSR_WREN,
8700 .tested = TEST_OK_PREW,
8701 .probe = probe_spi_res1,
8702 .probe_timing = TIMING_ZERO,
8703 .block_erasers =
8704 {
8705 {
8706 .eraseblocks = { {64 * 1024, 4} },
8707 .block_erase = spi_block_erase_d8,
8708 }, {
8709 .eraseblocks = { {256 * 1024, 1} },
8710 .block_erase = spi_block_erase_c7,
8711 }
8712 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008713 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008714 .unlock = spi_disable_blockprotect,
8715 .write = spi_chip_write_256,
8716 .read = spi_chip_read, /* Fast read (0x0B) supported */
8717 .voltage = {2700, 3600},
8718 },
8719
8720 {
8721 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8722 .name = "M25P40",
8723 .bustype = BUS_SPI,
8724 .manufacture_id = ST_ID,
8725 .model_id = ST_M25P40,
8726 .total_size = 512,
8727 .page_size = 256,
8728 .feature_bits = FEATURE_WRSR_WREN,
8729 .tested = TEST_OK_PREW,
8730 .probe = probe_spi_rdid,
8731 .probe_timing = TIMING_ZERO,
8732 .block_erasers =
8733 {
8734 {
8735 .eraseblocks = { {64 * 1024, 8} },
8736 .block_erase = spi_block_erase_d8,
8737 }, {
8738 .eraseblocks = { {512 * 1024, 1} },
8739 .block_erase = spi_block_erase_c7,
8740 }
8741 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008742 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008743 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008744 .write = spi_chip_write_256,
8745 .read = spi_chip_read,
8746 .voltage = {2700, 3600},
8747 },
8748
8749 {
8750 .vendor = "Micron/Numonyx/ST",
8751 .name = "M25P40-old",
8752 .bustype = BUS_SPI,
8753 .manufacture_id = 0, /* Not used. */
8754 .model_id = ST_M25P40_RES,
8755 .total_size = 512,
8756 .page_size = 256,
8757 .feature_bits = FEATURE_WRSR_WREN,
8758 .tested = TEST_UNTESTED,
8759 .probe = probe_spi_res1,
8760 .probe_timing = TIMING_ZERO,
8761 .block_erasers =
8762 {
8763 {
8764 .eraseblocks = { {64 * 1024, 8} },
8765 .block_erase = spi_block_erase_d8,
8766 }, {
8767 .eraseblocks = { {512 * 1024, 1} },
8768 .block_erase = spi_block_erase_c7,
8769 }
8770 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008771 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008772 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008773 .write = spi_chip_write_256,
8774 .read = spi_chip_read,
8775 },
8776
8777 {
8778 .vendor = "Micron/Numonyx/ST",
8779 .name = "M25P80",
8780 .bustype = BUS_SPI,
8781 .manufacture_id = ST_ID,
8782 .model_id = ST_M25P80,
8783 .total_size = 1024,
8784 .page_size = 256,
8785 .feature_bits = FEATURE_WRSR_WREN,
8786 .tested = TEST_OK_PREW,
8787 .probe = probe_spi_rdid,
8788 .probe_timing = TIMING_ZERO,
8789 .block_erasers =
8790 {
8791 {
8792 .eraseblocks = { {64 * 1024, 16} },
8793 .block_erase = spi_block_erase_d8,
8794 }, {
8795 .eraseblocks = { {1024 * 1024, 1} },
8796 .block_erase = spi_block_erase_c7,
8797 }
8798 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008799 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008800 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008801 .write = spi_chip_write_256,
8802 .read = spi_chip_read,
8803 .voltage = {2700, 3600},
8804 },
8805
8806 {
8807 .vendor = "Micron/Numonyx/ST",
8808 .name = "M25P16",
8809 .bustype = BUS_SPI,
8810 .manufacture_id = ST_ID,
8811 .model_id = ST_M25P16,
8812 .total_size = 2048,
8813 .page_size = 256,
8814 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008815 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008816 .probe = probe_spi_rdid,
8817 .probe_timing = TIMING_ZERO,
8818 .block_erasers =
8819 {
8820 {
8821 .eraseblocks = { {64 * 1024, 32} },
8822 .block_erase = spi_block_erase_d8,
8823 }, {
8824 .eraseblocks = { {2 * 1024 * 1024, 1} },
8825 .block_erase = spi_block_erase_c7,
8826 }
8827 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008828 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008829 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008830 .write = spi_chip_write_256,
8831 .read = spi_chip_read,
8832 .voltage = {2700, 3600},
8833 },
8834
8835 {
8836 .vendor = "Micron/Numonyx/ST",
8837 .name = "M25P32",
8838 .bustype = BUS_SPI,
8839 .manufacture_id = ST_ID,
8840 .model_id = ST_M25P32,
8841 .total_size = 4096,
8842 .page_size = 256,
8843 .feature_bits = FEATURE_WRSR_WREN,
8844 .tested = TEST_OK_PREW,
8845 .probe = probe_spi_rdid,
8846 .probe_timing = TIMING_ZERO,
8847 .block_erasers =
8848 {
8849 {
8850 .eraseblocks = { {64 * 1024, 64} },
8851 .block_erase = spi_block_erase_d8,
8852 }, {
8853 .eraseblocks = { {4 * 1024 * 1024, 1} },
8854 .block_erase = spi_block_erase_c7,
8855 }
8856 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008857 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008858 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008859 .write = spi_chip_write_256,
8860 .read = spi_chip_read,
8861 .voltage = {2700, 3600},
8862 },
8863
8864 {
8865 .vendor = "Micron/Numonyx/ST",
8866 .name = "M25P64",
8867 .bustype = BUS_SPI,
8868 .manufacture_id = ST_ID,
8869 .model_id = ST_M25P64,
8870 .total_size = 8192,
8871 .page_size = 256,
8872 .feature_bits = FEATURE_WRSR_WREN,
8873 .tested = TEST_OK_PREW,
8874 .probe = probe_spi_rdid,
8875 .probe_timing = TIMING_ZERO,
8876 .block_erasers =
8877 {
8878 {
8879 .eraseblocks = { {64 * 1024, 128} },
8880 .block_erase = spi_block_erase_d8,
8881 }, {
8882 .eraseblocks = { {8 * 1024 * 1024, 1} },
8883 .block_erase = spi_block_erase_c7,
8884 }
8885 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008886 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008887 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008888 .write = spi_chip_write_256,
8889 .read = spi_chip_read,
8890 .voltage = {2700, 3600},
8891 },
8892
8893 {
8894 .vendor = "Micron/Numonyx/ST",
8895 .name = "M25P128",
8896 .bustype = BUS_SPI,
8897 .manufacture_id = ST_ID,
8898 .model_id = ST_M25P128,
8899 .total_size = 16384,
8900 .page_size = 256,
8901 .feature_bits = FEATURE_WRSR_WREN,
8902 .tested = TEST_OK_PREW,
8903 .probe = probe_spi_rdid,
8904 .probe_timing = TIMING_ZERO,
8905 .block_erasers =
8906 {
8907 {
8908 .eraseblocks = { {256 * 1024, 64} },
8909 .block_erase = spi_block_erase_d8,
8910 }, {
8911 .eraseblocks = { {16 * 1024 * 1024, 1} },
8912 .block_erase = spi_block_erase_c7,
8913 }
8914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008915 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008916 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008917 .write = spi_chip_write_256,
8918 .read = spi_chip_read,
8919 .voltage = {2700, 3600},
8920 },
8921
8922 {
8923 .vendor = "Micron/Numonyx/ST",
8924 .name = "M25PE10",
8925 .bustype = BUS_SPI,
8926 .manufacture_id = ST_ID,
8927 .model_id = ST_M25PE10,
8928 .total_size = 128,
8929 .page_size = 256,
8930 .feature_bits = FEATURE_WRSR_WREN,
8931 .tested = TEST_UNTESTED,
8932 .probe = probe_spi_rdid,
8933 .probe_timing = TIMING_ZERO,
8934 .block_erasers =
8935 {
8936 {
8937 .eraseblocks = { {4 * 1024, 32} },
8938 .block_erase = spi_block_erase_20,
8939 }, {
8940 .eraseblocks = { {64 * 1024, 2} },
8941 .block_erase = spi_block_erase_d8,
8942 }, {
8943 .eraseblocks = { {128 * 1024, 1} },
8944 .block_erase = spi_block_erase_c7,
8945 }
8946 },
8947 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8948 .unlock = spi_disable_blockprotect,
8949 .write = spi_chip_write_256,
8950 .read = spi_chip_read,
8951 .voltage = {2700, 3600},
8952 },
8953
8954 {
8955 .vendor = "Micron/Numonyx/ST",
8956 .name = "M25PE20",
8957 .bustype = BUS_SPI,
8958 .manufacture_id = ST_ID,
8959 .model_id = ST_M25PE20,
8960 .total_size = 256,
8961 .page_size = 256,
8962 .feature_bits = FEATURE_WRSR_WREN,
8963 .tested = TEST_UNTESTED,
8964 .probe = probe_spi_rdid,
8965 .probe_timing = TIMING_ZERO,
8966 .block_erasers =
8967 {
8968 {
8969 .eraseblocks = { {4 * 1024, 64} },
8970 .block_erase = spi_block_erase_20,
8971 }, {
8972 .eraseblocks = { {64 * 1024, 4} },
8973 .block_erase = spi_block_erase_d8,
8974 }, {
8975 .eraseblocks = { {256 * 1024, 1} },
8976 .block_erase = spi_block_erase_c7,
8977 }
8978 },
8979 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8980 .unlock = spi_disable_blockprotect,
8981 .write = spi_chip_write_256,
8982 .read = spi_chip_read,
8983 .voltage = {2700, 3600},
8984 },
8985
8986 {
8987 .vendor = "Micron/Numonyx/ST",
8988 .name = "M25PE40",
8989 .bustype = BUS_SPI,
8990 .manufacture_id = ST_ID,
8991 .model_id = ST_M25PE40,
8992 .total_size = 512,
8993 .page_size = 256,
8994 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008995 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008996 .probe = probe_spi_rdid,
8997 .probe_timing = TIMING_ZERO,
8998 .block_erasers =
8999 {
9000 {
9001 .eraseblocks = { {4 * 1024, 128} },
9002 .block_erase = spi_block_erase_20,
9003 }, {
9004 .eraseblocks = { {64 * 1024, 8} },
9005 .block_erase = spi_block_erase_d8,
9006 }, {
9007 .eraseblocks = { {512 * 1024, 1} },
9008 .block_erase = spi_block_erase_c7,
9009 }
9010 },
9011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9012 .unlock = spi_disable_blockprotect,
9013 .write = spi_chip_write_256,
9014 .read = spi_chip_read,
9015 .voltage = {2700, 3600},
9016 },
9017
9018 {
9019 .vendor = "Micron/Numonyx/ST",
9020 .name = "M25PE80",
9021 .bustype = BUS_SPI,
9022 .manufacture_id = ST_ID,
9023 .model_id = ST_M25PE80,
9024 .total_size = 1024,
9025 .page_size = 256,
9026 .feature_bits = FEATURE_WRSR_WREN,
9027 .tested = TEST_OK_PREW,
9028 .probe = probe_spi_rdid,
9029 .probe_timing = TIMING_ZERO,
9030 .block_erasers =
9031 {
9032 {
9033 .eraseblocks = { {4 * 1024, 256} },
9034 .block_erase = spi_block_erase_20,
9035 }, {
9036 .eraseblocks = { {64 * 1024, 16} },
9037 .block_erase = spi_block_erase_d8,
9038 }, {
9039 .eraseblocks = { {1024 * 1024, 1} },
9040 .block_erase = spi_block_erase_c7,
9041 }
9042 },
9043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9044 .unlock = spi_disable_blockprotect,
9045 .write = spi_chip_write_256,
9046 .read = spi_chip_read,
9047 .voltage = {2700, 3600},
9048 },
9049
9050 {
9051 .vendor = "Micron/Numonyx/ST",
9052 .name = "M25PE16",
9053 .bustype = BUS_SPI,
9054 .manufacture_id = ST_ID,
9055 .model_id = ST_M25PE16,
9056 .total_size = 2048,
9057 .page_size = 256,
9058 .feature_bits = FEATURE_WRSR_WREN,
9059 .tested = TEST_UNTESTED,
9060 .probe = probe_spi_rdid,
9061 .probe_timing = TIMING_ZERO,
9062 .block_erasers =
9063 {
9064 {
9065 .eraseblocks = { {4 * 1024, 512} },
9066 .block_erase = spi_block_erase_20,
9067 }, {
9068 .eraseblocks = { {64 * 1024, 32} },
9069 .block_erase = spi_block_erase_d8,
9070 }, {
9071 .eraseblocks = { {2 * 1024 * 1024, 1} },
9072 .block_erase = spi_block_erase_c7,
9073 }
9074 },
9075 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9076 .unlock = spi_disable_blockprotect,
9077 .write = spi_chip_write_256,
9078 .read = spi_chip_read,
9079 .voltage = {2700, 3600},
9080 },
9081
9082 {
9083 .vendor = "Micron/Numonyx/ST",
9084 .name = "M25PX80",
9085 .bustype = BUS_SPI,
9086 .manufacture_id = ST_ID,
9087 .model_id = ST_M25PX80,
9088 .total_size = 1024,
9089 .page_size = 256,
9090 /* OTP: 64B total; read 0x4B, write 0x42 */
9091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9092 .tested = TEST_OK_PREW,
9093 .probe = probe_spi_rdid,
9094 .probe_timing = TIMING_ZERO,
9095 .block_erasers = {
9096 {
9097 .eraseblocks = { { 4 * 1024, 256 } },
9098 .block_erase = spi_block_erase_20,
9099 }, {
9100 .eraseblocks = { {64 * 1024, 16} },
9101 .block_erase = spi_block_erase_d8,
9102 }, {
9103 .eraseblocks = { {1024 * 1024, 1} },
9104 .block_erase = spi_block_erase_c7,
9105 }
9106 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009107 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009108 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9109 .write = spi_chip_write_256,
9110 .read = spi_chip_read,
9111 .voltage = {2700, 3600},
9112 },
9113
9114 {
9115 .vendor = "Micron/Numonyx/ST",
9116 .name = "M25PX16",
9117 .bustype = BUS_SPI,
9118 .manufacture_id = ST_ID,
9119 .model_id = ST_M25PX16,
9120 .total_size = 2048,
9121 .page_size = 256,
9122 /* OTP: 64B total; read 0x4B; write 0x42 */
9123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9124 .tested = TEST_OK_PREW,
9125 .probe = probe_spi_rdid,
9126 .probe_timing = TIMING_ZERO,
9127 .block_erasers =
9128 {
9129 {
9130 .eraseblocks = { { 4 * 1024, 512 } },
9131 .block_erase = spi_block_erase_20,
9132 }, {
9133 .eraseblocks = { {64 * 1024, 32} },
9134 .block_erase = spi_block_erase_d8,
9135 }, {
9136 .eraseblocks = { {2 * 1024 * 1024, 1} },
9137 .block_erase = spi_block_erase_c7,
9138 }
9139 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009140 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009141 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9142 .write = spi_chip_write_256,
9143 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009144 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009145 },
9146
9147 {
9148 .vendor = "Micron/Numonyx/ST",
9149 .name = "M25PX32",
9150 .bustype = BUS_SPI,
9151 .manufacture_id = ST_ID,
9152 .model_id = ST_M25PX32,
9153 .total_size = 4096,
9154 .page_size = 256,
9155 /* OTP: 64B total; read 0x4B; write 0x42 */
9156 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9157 .tested = TEST_OK_PRE,
9158 .probe = probe_spi_rdid,
9159 .probe_timing = TIMING_ZERO,
9160 .block_erasers =
9161 {
9162 {
9163 .eraseblocks = { { 4 * 1024, 1024 } },
9164 .block_erase = spi_block_erase_20,
9165 }, {
9166 .eraseblocks = { {64 * 1024, 64} },
9167 .block_erase = spi_block_erase_d8,
9168 }, {
9169 .eraseblocks = { {4 * 1024 * 1024, 1} },
9170 .block_erase = spi_block_erase_c7,
9171 }
9172 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009173 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009174 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9175 .write = spi_chip_write_256,
9176 .read = spi_chip_read,
9177 .voltage = {2700, 3600},
9178 },
9179
9180 {
9181 .vendor = "Micron/Numonyx/ST",
9182 .name = "M25PX64",
9183 .bustype = BUS_SPI,
9184 .manufacture_id = ST_ID,
9185 .model_id = ST_M25PX64,
9186 .total_size = 8192,
9187 .page_size = 256,
9188 /* OTP: 64B total; read 0x4B; write 0x42 */
9189 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009190 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009191 .probe = probe_spi_rdid,
9192 .probe_timing = TIMING_ZERO,
9193 .block_erasers =
9194 {
9195 {
9196 .eraseblocks = { { 4 * 1024, 2048 } },
9197 .block_erase = spi_block_erase_20,
9198 }, {
9199 .eraseblocks = { {64 * 1024, 128} },
9200 .block_erase = spi_block_erase_d8,
9201 }, {
9202 .eraseblocks = { {8 * 1024 * 1024, 1} },
9203 .block_erase = spi_block_erase_c7,
9204 }
9205 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009206 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009207 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9208 .write = spi_chip_write_256,
9209 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009210 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009211 },
9212
9213 {
9214 .vendor = "Micron/Numonyx/ST",
9215 .name = "M45PE10",
9216 .bustype = BUS_SPI,
9217 .manufacture_id = ST_ID,
9218 .model_id = ST_M45PE10,
9219 .total_size = 128,
9220 .page_size = 256,
9221 .tested = TEST_UNTESTED,
9222 .probe = probe_spi_rdid,
9223 .probe_timing = TIMING_ZERO,
9224 .block_erasers = {
9225 {
9226 .eraseblocks = { {256, 512} },
9227 .block_erase = spi_block_erase_db,
9228 }, {
9229 .eraseblocks = { {64 * 1024, 2} },
9230 .block_erase = spi_block_erase_d8,
9231 }
9232 },
9233 .printlock = spi_prettyprint_status_register_default_welwip,
9234 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9235 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9236 .read = spi_chip_read, /* Fast read (0x0B) supported */
9237 .voltage = {2700, 3600},
9238 },
9239
9240 {
9241 .vendor = "Micron/Numonyx/ST",
9242 .name = "M45PE20",
9243 .bustype = BUS_SPI,
9244 .manufacture_id = ST_ID,
9245 .model_id = ST_M45PE20,
9246 .total_size = 256,
9247 .page_size = 256,
9248 .tested = TEST_UNTESTED,
9249 .probe = probe_spi_rdid,
9250 .probe_timing = TIMING_ZERO,
9251 .block_erasers = {
9252 {
9253 .eraseblocks = { {256, 1024} },
9254 .block_erase = spi_block_erase_db,
9255 }, {
9256 .eraseblocks = { {64 * 1024, 4} },
9257 .block_erase = spi_block_erase_d8,
9258 }
9259 },
9260 .printlock = spi_prettyprint_status_register_default_welwip,
9261 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9262 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9263 .read = spi_chip_read, /* Fast read (0x0B) supported */
9264 .voltage = {2700, 3600},
9265 },
9266
9267 {
9268 .vendor = "Micron/Numonyx/ST",
9269 .name = "M45PE40",
9270 .bustype = BUS_SPI,
9271 .manufacture_id = ST_ID,
9272 .model_id = ST_M45PE40,
9273 .total_size = 512,
9274 .page_size = 256,
9275 .tested = TEST_UNTESTED,
9276 .probe = probe_spi_rdid,
9277 .probe_timing = TIMING_ZERO,
9278 .block_erasers = {
9279 {
9280 .eraseblocks = { {256, 2048} },
9281 .block_erase = spi_block_erase_db,
9282 }, {
9283 .eraseblocks = { {64 * 1024, 8} },
9284 .block_erase = spi_block_erase_d8,
9285 }
9286 },
9287 .printlock = spi_prettyprint_status_register_default_welwip,
9288 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009289 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009290 .read = spi_chip_read, /* Fast read (0x0B) supported */
9291 .voltage = {2700, 3600},
9292 },
9293
9294 {
9295 .vendor = "Micron/Numonyx/ST",
9296 .name = "M45PE80",
9297 .bustype = BUS_SPI,
9298 .manufacture_id = ST_ID,
9299 .model_id = ST_M45PE80,
9300 .total_size = 1024,
9301 .page_size = 256,
9302 .tested = TEST_UNTESTED,
9303 .probe = probe_spi_rdid,
9304 .probe_timing = TIMING_ZERO,
9305 .block_erasers = {
9306 {
9307 .eraseblocks = { {256, 4096} },
9308 .block_erase = spi_block_erase_db,
9309 }, {
9310 .eraseblocks = { {64 * 1024, 16} },
9311 .block_erase = spi_block_erase_d8,
9312 }
9313 },
9314 .printlock = spi_prettyprint_status_register_default_welwip,
9315 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9316 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9317 .read = spi_chip_read, /* Fast read (0x0B) supported */
9318 .voltage = {2700, 3600},
9319 },
9320
9321 {
9322 .vendor = "Micron/Numonyx/ST",
9323 .name = "M45PE16",
9324 .bustype = BUS_SPI,
9325 .manufacture_id = ST_ID,
9326 .model_id = ST_M45PE16,
9327 .total_size = 2048,
9328 .page_size = 256,
9329 .tested = TEST_UNTESTED,
9330 .probe = probe_spi_rdid,
9331 .probe_timing = TIMING_ZERO,
9332 .block_erasers = {
9333 {
9334 .eraseblocks = { {256, 8192} },
9335 .block_erase = spi_block_erase_db,
9336 }, {
9337 .eraseblocks = { {64 * 1024, 32} },
9338 .block_erase = spi_block_erase_d8,
9339 }
9340 },
9341 .printlock = spi_prettyprint_status_register_default_welwip,
9342 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9343 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9344 .read = spi_chip_read, /* Fast read (0x0B) supported */
9345 .voltage = {2700, 3600},
9346 },
9347
9348 {
9349 .vendor = "Micron/Numonyx/ST",
9350 .name = "N25Q016",
9351 .bustype = BUS_SPI,
9352 .manufacture_id = ST_ID,
9353 .model_id = ST_N25Q016__1E,
9354 .total_size = 2048,
9355 .page_size = 256,
9356 /* supports SFDP */
9357 /* OTP: 64B total; read 0x4B, write 0x42 */
9358 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9359 .tested = TEST_UNTESTED,
9360 .probe = probe_spi_rdid,
9361 .probe_timing = TIMING_ZERO,
9362 .block_erasers =
9363 {
9364 {
9365 .eraseblocks = { {4 * 1024, 512} },
9366 .block_erase = spi_block_erase_20,
9367 }, {
9368 .eraseblocks = { {32 * 1024, 64} },
9369 .block_erase = spi_block_erase_52,
9370 }, {
9371 .eraseblocks = { {64 * 1024, 32} },
9372 .block_erase = spi_block_erase_d8,
9373 }, {
9374 .eraseblocks = { {2 * 1024 * 1024, 1} },
9375 .block_erase = spi_block_erase_c7,
9376 }
9377 },
9378 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9379 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9380 .write = spi_chip_write_256, /* Multi I/O supported */
9381 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9382 .voltage = {1700, 2000},
9383 },
9384
9385 {
9386 .vendor = "Micron/Numonyx/ST",
9387 .name = "N25Q032..1E",
9388 .bustype = BUS_SPI,
9389 .manufacture_id = ST_ID,
9390 .model_id = ST_N25Q032__1E,
9391 .total_size = 4096,
9392 .page_size = 256,
9393 /* supports SFDP */
9394 /* OTP: 64B total; read 0x4B, write 0x42 */
9395 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9396 .tested = TEST_UNTESTED,
9397 .probe = probe_spi_rdid,
9398 .probe_timing = TIMING_ZERO,
9399 .block_erasers =
9400 {
9401 {
9402 .eraseblocks = { {4 * 1024, 1024} },
9403 .block_erase = spi_block_erase_20,
9404 }, {
9405 .eraseblocks = { {64 * 1024, 64} },
9406 .block_erase = spi_block_erase_d8,
9407 }, {
9408 .eraseblocks = { {4 * 1024 * 1024, 1} },
9409 .block_erase = spi_block_erase_c7,
9410 }
9411 },
9412 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9413 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9414 .write = spi_chip_write_256, /* Multi I/O supported */
9415 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9416 .voltage = {1700, 2000},
9417 },
9418
9419 {
9420 .vendor = "Micron/Numonyx/ST",
9421 .name = "N25Q032..3E",
9422 .bustype = BUS_SPI,
9423 .manufacture_id = ST_ID,
9424 .model_id = ST_N25Q032__3E,
9425 .total_size = 4096,
9426 .page_size = 256,
9427 /* supports SFDP */
9428 /* OTP: 64B total; read 0x4B, write 0x42 */
9429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9430 .tested = TEST_OK_PREW,
9431 .probe = probe_spi_rdid,
9432 .probe_timing = TIMING_ZERO,
9433 .block_erasers =
9434 {
9435 {
9436 .eraseblocks = { {4 * 1024, 1024} },
9437 .block_erase = spi_block_erase_20,
9438 }, {
9439 .eraseblocks = { {64 * 1024, 64} },
9440 .block_erase = spi_block_erase_d8,
9441 }, {
9442 .eraseblocks = { {4 * 1024 * 1024, 1} },
9443 .block_erase = spi_block_erase_c7,
9444 }
9445 },
9446 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9447 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9448 .write = spi_chip_write_256, /* Multi I/O supported */
9449 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9450 .voltage = {2700, 3600},
9451 },
9452
9453 {
9454 .vendor = "Micron/Numonyx/ST",
9455 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9456 .bustype = BUS_SPI,
9457 .manufacture_id = ST_ID,
9458 .model_id = ST_N25Q064__1E,
9459 .total_size = 8192,
9460 .page_size = 256,
9461 /* supports SFDP */
9462 /* OTP: 64B total; read 0x4B, write 0x42 */
9463 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009464 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009465 .probe = probe_spi_rdid,
9466 .probe_timing = TIMING_ZERO,
9467 .block_erasers =
9468 {
9469 {
9470 .eraseblocks = { {4 * 1024, 2048 } },
9471 .block_erase = spi_block_erase_20,
9472 }, {
9473 .eraseblocks = { {64 * 1024, 128} },
9474 .block_erase = spi_block_erase_d8,
9475 }, {
9476 .eraseblocks = { {8 * 1024 * 1024, 1} },
9477 .block_erase = spi_block_erase_c7,
9478 }
9479 },
9480 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9481 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9482 .write = spi_chip_write_256, /* Multi I/O supported */
9483 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9484 .voltage = {1700, 2000},
9485 },
9486
9487 {
9488 .vendor = "Micron/Numonyx/ST",
9489 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9490 .bustype = BUS_SPI,
9491 .manufacture_id = ST_ID,
9492 .model_id = ST_N25Q064__3E,
9493 .total_size = 8192,
9494 .page_size = 256,
9495 /* supports SFDP */
9496 /* OTP: 64B total; read 0x4B, write 0x42 */
9497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9498 .tested = TEST_OK_PREW,
9499 .probe = probe_spi_rdid,
9500 .probe_timing = TIMING_ZERO,
9501 .block_erasers =
9502 {
9503 {
9504 .eraseblocks = { {4 * 1024, 2048 } },
9505 .block_erase = spi_block_erase_20,
9506 }, {
9507 .eraseblocks = { {64 * 1024, 128} },
9508 .block_erase = spi_block_erase_d8,
9509 }, {
9510 .eraseblocks = { {8 * 1024 * 1024, 1} },
9511 .block_erase = spi_block_erase_c7,
9512 }
9513 },
9514 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9515 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9516 .write = spi_chip_write_256, /* Multi I/O supported */
9517 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9518 .voltage = {2700, 3600},
9519 },
9520
9521 {
9522 .vendor = "Micron/Numonyx/ST",
9523 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9524 .bustype = BUS_SPI,
9525 .manufacture_id = ST_ID,
9526 .model_id = ST_N25Q128__1E,
9527 .total_size = 16384,
9528 .page_size = 256,
9529 /* supports SFDP */
9530 /* OTP: 64B total; read 0x4B, write 0x42 */
9531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009532 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009533 .probe = probe_spi_rdid,
9534 .probe_timing = TIMING_ZERO,
9535 .block_erasers = {
9536 {
9537 .eraseblocks = { {4 * 1024, 4096 } },
9538 .block_erase = spi_block_erase_20,
9539 }, {
9540 .eraseblocks = { {64 * 1024, 256} },
9541 .block_erase = spi_block_erase_d8,
9542 }, {
9543 .eraseblocks = { {16384 * 1024, 1} },
9544 .block_erase = spi_block_erase_c7,
9545 }
9546 },
9547 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9548 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9549 .write = spi_chip_write_256, /* Multi I/O supported */
9550 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9551 .voltage = {1700, 2000},
9552 },
9553
9554 {
9555 .vendor = "Micron/Numonyx/ST",
9556 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9557 .bustype = BUS_SPI,
9558 .manufacture_id = ST_ID,
9559 .model_id = ST_N25Q128__3E,
9560 .total_size = 16384,
9561 .page_size = 256,
9562 /* supports SFDP */
9563 /* OTP: 64B total; read 0x4B, write 0x42 */
9564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9565 .tested = TEST_OK_PREW,
9566 .probe = probe_spi_rdid,
9567 .probe_timing = TIMING_ZERO,
9568 .block_erasers = {
9569 {
9570 .eraseblocks = { {4 * 1024, 4096 } },
9571 .block_erase = spi_block_erase_20,
9572 }, {
9573 .eraseblocks = { {64 * 1024, 256} },
9574 .block_erase = spi_block_erase_d8,
9575 }, {
9576 .eraseblocks = { {16384 * 1024, 1} },
9577 .block_erase = spi_block_erase_c7,
9578 }
9579 },
9580 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9581 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9582 .write = spi_chip_write_256, /* Multi I/O supported */
9583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9584 .voltage = {2700, 3600},
9585 },
9586
9587 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009588 .vendor = "MoselVitelic",
9589 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009590 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009591 .manufacture_id = SYNCMOS_MVC_ID,
9592 .model_id = MVC_V29C51000B,
9593 .total_size = 64,
9594 .page_size = 512,
9595 .feature_bits = FEATURE_EITHER_RESET,
9596 .tested = TEST_UNTESTED,
9597 .probe = probe_jedec,
9598 .probe_timing = TIMING_ZERO,
9599 .block_erasers =
9600 {
9601 {
9602 .eraseblocks = { {512, 128} },
9603 .block_erase = erase_sector_jedec,
9604 }, {
9605 .eraseblocks = { {64 * 1024, 1} },
9606 .block_erase = erase_chip_block_jedec,
9607 },
9608 },
9609 .write = write_jedec_1,
9610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009611 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009612 },
9613
9614 {
9615 .vendor = "MoselVitelic",
9616 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009617 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009618 .manufacture_id = SYNCMOS_MVC_ID,
9619 .model_id = MVC_V29C51000T,
9620 .total_size = 64,
9621 .page_size = 512,
9622 .feature_bits = FEATURE_EITHER_RESET,
9623 .tested = TEST_UNTESTED,
9624 .probe = probe_jedec,
9625 .probe_timing = TIMING_ZERO,
9626 .block_erasers =
9627 {
9628 {
9629 .eraseblocks = { {512, 128} },
9630 .block_erase = erase_sector_jedec,
9631 }, {
9632 .eraseblocks = { {64 * 1024, 1} },
9633 .block_erase = erase_chip_block_jedec,
9634 },
9635 },
9636 .write = write_jedec_1,
9637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009638 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009639 },
9640
9641 {
9642 .vendor = "MoselVitelic",
9643 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009644 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009645 .manufacture_id = SYNCMOS_MVC_ID,
9646 .model_id = MVC_V29C51400B,
9647 .total_size = 512,
9648 .page_size = 1024,
9649 .feature_bits = FEATURE_EITHER_RESET,
9650 .tested = TEST_UNTESTED,
9651 .probe = probe_jedec,
9652 .probe_timing = TIMING_ZERO,
9653 .block_erasers =
9654 {
9655 {
9656 .eraseblocks = { {1024, 512} },
9657 .block_erase = erase_sector_jedec,
9658 }, {
9659 .eraseblocks = { {512 * 1024, 1} },
9660 .block_erase = erase_chip_block_jedec,
9661 },
9662 },
9663 .write = write_jedec_1,
9664 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009665 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009666 },
9667
9668 {
9669 .vendor = "MoselVitelic",
9670 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009671 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009672 .manufacture_id = SYNCMOS_MVC_ID,
9673 .model_id = MVC_V29C51400T,
9674 .total_size = 512,
9675 .page_size = 1024,
9676 .feature_bits = FEATURE_EITHER_RESET,
9677 .tested = TEST_UNTESTED,
9678 .probe = probe_jedec,
9679 .probe_timing = TIMING_ZERO,
9680 .block_erasers =
9681 {
9682 {
9683 .eraseblocks = { {1024, 512} },
9684 .block_erase = erase_sector_jedec,
9685 }, {
9686 .eraseblocks = { {512 * 1024, 1} },
9687 .block_erase = erase_chip_block_jedec,
9688 },
9689 },
9690 .write = write_jedec_1,
9691 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009692 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009693 },
9694
9695 {
9696 .vendor = "MoselVitelic",
9697 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009698 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009699 .manufacture_id = SYNCMOS_MVC_ID,
9700 .model_id = MVC_V29LC51000,
9701 .total_size = 64,
9702 .page_size = 512,
9703 .feature_bits = FEATURE_EITHER_RESET,
9704 .tested = TEST_UNTESTED,
9705 .probe = probe_jedec,
9706 .probe_timing = TIMING_ZERO,
9707 .block_erasers =
9708 {
9709 {
9710 .eraseblocks = { {512, 128} },
9711 .block_erase = erase_sector_jedec,
9712 }, {
9713 .eraseblocks = { {64 * 1024, 1} },
9714 .block_erase = erase_chip_block_jedec,
9715 },
9716 },
9717 .write = write_jedec_1,
9718 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009719 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009720 },
9721
9722 {
9723 .vendor = "MoselVitelic",
9724 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009725 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009726 .manufacture_id = SYNCMOS_MVC_ID,
9727 .model_id = MVC_V29LC51001,
9728 .total_size = 128,
9729 .page_size = 512,
9730 .feature_bits = FEATURE_EITHER_RESET,
9731 .tested = TEST_UNTESTED,
9732 .probe = probe_jedec,
9733 .probe_timing = TIMING_ZERO,
9734 .block_erasers =
9735 {
9736 {
9737 .eraseblocks = { {512, 256} },
9738 .block_erase = erase_sector_jedec,
9739 }, {
9740 .eraseblocks = { {128 * 1024, 1} },
9741 .block_erase = erase_chip_block_jedec,
9742 },
9743 },
9744 .write = write_jedec_1,
9745 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009746 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009747 },
9748
9749 {
9750 .vendor = "MoselVitelic",
9751 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009752 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009753 .manufacture_id = SYNCMOS_MVC_ID,
9754 .model_id = MVC_V29LC51002,
9755 .total_size = 256,
9756 .page_size = 512,
9757 .feature_bits = FEATURE_EITHER_RESET,
9758 .tested = TEST_UNTESTED,
9759 .probe = probe_jedec,
9760 .probe_timing = TIMING_ZERO,
9761 .block_erasers =
9762 {
9763 {
9764 .eraseblocks = { {512, 512} },
9765 .block_erase = erase_sector_jedec,
9766 }, {
9767 .eraseblocks = { {256 * 1024, 1} },
9768 .block_erase = erase_chip_block_jedec,
9769 },
9770 },
9771 .write = write_jedec_1,
9772 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009773 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009774 },
9775
9776 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009777 .vendor = "Nantronics",
9778 .name = "N25S10",
9779 .bustype = BUS_SPI,
9780 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9781 .model_id = NANTRONICS_N25S10,
9782 .total_size = 128,
9783 .page_size = 256,
9784 .feature_bits = FEATURE_WRSR_WREN,
9785 .tested = TEST_UNTESTED,
9786 .probe = probe_spi_rdid,
9787 .probe_timing = TIMING_ZERO,
9788 .block_erasers =
9789 {
9790 {
9791 .eraseblocks = { {4 * 1024, 32} },
9792 .block_erase = spi_block_erase_20,
9793 }, {
9794 .eraseblocks = { {4 * 1024, 32} },
9795 .block_erase = spi_block_erase_d7,
9796 }, {
9797 .eraseblocks = { {32 * 1024, 4} },
9798 .block_erase = spi_block_erase_52,
9799 }, {
9800 .eraseblocks = { {64 * 1024, 2} },
9801 .block_erase = spi_block_erase_d8,
9802 }, {
9803 .eraseblocks = { {128 * 1024, 1} },
9804 .block_erase = spi_block_erase_60,
9805 }, {
9806 .eraseblocks = { {128 * 1024, 1} },
9807 .block_erase = spi_block_erase_c7,
9808 }
9809 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009810 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009811 .unlock = spi_disable_blockprotect_bp3_srwd,
9812 .write = spi_chip_write_256,
9813 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9814 .voltage = {2700, 3600},
9815 },
9816
9817 {
9818 .vendor = "Nantronics",
9819 .name = "N25S20",
9820 .bustype = BUS_SPI,
9821 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9822 .model_id = NANTRONICS_N25S20,
9823 .total_size = 256,
9824 .page_size = 256,
9825 .feature_bits = FEATURE_WRSR_WREN,
9826 .tested = TEST_UNTESTED,
9827 .probe = probe_spi_rdid,
9828 .probe_timing = TIMING_ZERO,
9829 .block_erasers =
9830 {
9831 {
9832 .eraseblocks = { {4 * 1024, 64} },
9833 .block_erase = spi_block_erase_20,
9834 }, {
9835 .eraseblocks = { {4 * 1024, 64} },
9836 .block_erase = spi_block_erase_d7,
9837 }, {
9838 .eraseblocks = { {32 * 1024, 8} },
9839 .block_erase = spi_block_erase_52,
9840 }, {
9841 .eraseblocks = { {64 * 1024, 4} },
9842 .block_erase = spi_block_erase_d8,
9843 }, {
9844 .eraseblocks = { {256 * 1024, 1} },
9845 .block_erase = spi_block_erase_60,
9846 }, {
9847 .eraseblocks = { {256 * 1024, 1} },
9848 .block_erase = spi_block_erase_c7,
9849 }
9850 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009851 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009852 .unlock = spi_disable_blockprotect_bp3_srwd,
9853 .write = spi_chip_write_256,
9854 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9855 .voltage = {2700, 3600},
9856 },
9857
9858 {
9859 .vendor = "Nantronics",
9860 .name = "N25S40",
9861 .bustype = BUS_SPI,
9862 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9863 .model_id = NANTRONICS_N25S40,
9864 .total_size = 512,
9865 .page_size = 256,
9866 .feature_bits = FEATURE_WRSR_WREN,
9867 .tested = TEST_UNTESTED,
9868 .probe = probe_spi_rdid,
9869 .probe_timing = TIMING_ZERO,
9870 .block_erasers =
9871 {
9872 {
9873 .eraseblocks = { {4 * 1024, 128} },
9874 .block_erase = spi_block_erase_20,
9875 }, {
9876 .eraseblocks = { {4 * 1024, 128} },
9877 .block_erase = spi_block_erase_d7,
9878 }, {
9879 .eraseblocks = { {32 * 1024, 16} },
9880 .block_erase = spi_block_erase_52,
9881 }, {
9882 .eraseblocks = { {64 * 1024, 8} },
9883 .block_erase = spi_block_erase_d8,
9884 }, {
9885 .eraseblocks = { {512 * 1024, 1} },
9886 .block_erase = spi_block_erase_60,
9887 }, {
9888 .eraseblocks = { {512 * 1024, 1} },
9889 .block_erase = spi_block_erase_c7,
9890 }
9891 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009892 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009893 .unlock = spi_disable_blockprotect_bp3_srwd,
9894 .write = spi_chip_write_256,
9895 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9896 .voltage = {2700, 3600},
9897 },
9898
9899 {
9900 .vendor = "Nantronics",
9901 .name = "N25S80",
9902 .bustype = BUS_SPI,
9903 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9904 .model_id = NANTRONICS_N25S80,
9905 .total_size = 1024,
9906 .page_size = 256,
9907 .feature_bits = FEATURE_WRSR_WREN,
9908 .tested = TEST_UNTESTED,
9909 .probe = probe_spi_rdid,
9910 .probe_timing = TIMING_ZERO,
9911 .block_erasers =
9912 {
9913 {
9914 .eraseblocks = { {4 * 1024, 256} },
9915 .block_erase = spi_block_erase_20,
9916 }, {
9917 .eraseblocks = { {32 * 1024, 32} },
9918 .block_erase = spi_block_erase_52,
9919 }, {
9920 .eraseblocks = { {64 * 1024, 16} },
9921 .block_erase = spi_block_erase_d8,
9922 }, {
9923 .eraseblocks = { {1024 * 1024, 1} },
9924 .block_erase = spi_block_erase_60,
9925 }, {
9926 .eraseblocks = { {1024 * 1024, 1} },
9927 .block_erase = spi_block_erase_c7,
9928 }
9929 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009930 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009931 .unlock = spi_disable_blockprotect_bp3_srwd,
9932 .write = spi_chip_write_256,
9933 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9934 .voltage = {2700, 3600},
9935 },
9936
9937 {
9938 .vendor = "Nantronics",
9939 .name = "N25S16",
9940 .bustype = BUS_SPI,
9941 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9942 .model_id = NANTRONICS_N25S16,
9943 .total_size = 2048,
9944 .page_size = 256,
9945 .feature_bits = FEATURE_WRSR_WREN,
9946 .tested = TEST_UNTESTED,
9947 .probe = probe_spi_rdid,
9948 .probe_timing = TIMING_ZERO,
9949 .block_erasers =
9950 {
9951 {
9952 .eraseblocks = { {4 * 1024, 512} },
9953 .block_erase = spi_block_erase_20,
9954 }, {
9955 .eraseblocks = { {64 * 1024, 32} },
9956 .block_erase = spi_block_erase_d8,
9957 }, {
9958 .eraseblocks = { {2048 * 1024, 1} },
9959 .block_erase = spi_block_erase_60,
9960 }, {
9961 .eraseblocks = { {2048 * 1024, 1} },
9962 .block_erase = spi_block_erase_c7,
9963 }
9964 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009965 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009966 .unlock = spi_disable_blockprotect_bp3_srwd,
9967 .write = spi_chip_write_256,
9968 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9969 .voltage = {2700, 3600},
9970 },
9971
9972 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009973 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009974 .name = "Pm25LD256C",
9975 .bustype = BUS_SPI,
9976 .manufacture_id = PMC_ID,
9977 .model_id = PMC_PM25LD256C,
9978 .total_size = 32,
9979 .page_size = 256,
9980 .feature_bits = FEATURE_WRSR_WREN,
9981 .tested = TEST_UNTESTED,
9982 .probe = probe_spi_rdid,
9983 .probe_timing = TIMING_ZERO,
9984 .block_erasers =
9985 {
9986 {
9987 .eraseblocks = { {4 * 1024, 8} },
9988 .block_erase = spi_block_erase_20,
9989 }, {
9990 .eraseblocks = { {4 * 1024, 8} },
9991 .block_erase = spi_block_erase_d7,
9992 }, {
9993 .eraseblocks = { {32 * 1024, 1} },
9994 .block_erase = spi_block_erase_d8,
9995 }, {
9996 .eraseblocks = { {32 * 1024, 1} },
9997 .block_erase = spi_block_erase_60,
9998 }, {
9999 .eraseblocks = { {32 * 1024, 1} },
10000 .block_erase = spi_block_erase_c7,
10001 }
10002 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010003 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010004 .unlock = spi_disable_blockprotect,
10005 .write = spi_chip_write_256,
10006 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10007 .voltage = {2700, 3600},
10008 },
10009 {
10010 .vendor = "PMC",
10011 .name = "Pm25LD512(C)",
10012 .bustype = BUS_SPI,
10013 .manufacture_id = PMC_ID,
10014 .model_id = PMC_PM25LD512,
10015 .total_size = 64,
10016 .page_size = 256,
10017 .feature_bits = FEATURE_WRSR_WREN,
10018 .tested = TEST_OK_PREW,
10019 .probe = probe_spi_rdid,
10020 .probe_timing = TIMING_ZERO,
10021 .block_erasers =
10022 {
10023 {
10024 .eraseblocks = { {4 * 1024, 16} },
10025 .block_erase = spi_block_erase_20,
10026 }, {
10027 .eraseblocks = { {4 * 1024, 16} },
10028 .block_erase = spi_block_erase_d7,
10029 }, {
10030 .eraseblocks = { {32 * 1024, 2} },
10031 .block_erase = spi_block_erase_d8,
10032 }, {
10033 .eraseblocks = { {64 * 1024, 1} },
10034 .block_erase = spi_block_erase_60,
10035 }, {
10036 .eraseblocks = { {64 * 1024, 1} },
10037 .block_erase = spi_block_erase_c7,
10038 }
10039 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010040 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010041 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10042 .write = spi_chip_write_256,
10043 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10044 .voltage = {2300, 3600},
10045 },
10046
10047 {
10048 .vendor = "PMC",
10049 .name = "Pm25LD010(C)",
10050 .bustype = BUS_SPI,
10051 .manufacture_id = PMC_ID,
10052 .model_id = PMC_PM25LD010,
10053 .total_size = 128,
10054 .page_size = 256,
10055 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010056 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010057 .probe = probe_spi_rdid,
10058 .probe_timing = TIMING_ZERO,
10059 .block_erasers =
10060 {
10061 {
10062 .eraseblocks = { {4 * 1024, 32} },
10063 .block_erase = spi_block_erase_20,
10064 }, {
10065 .eraseblocks = { {4 * 1024, 32} },
10066 .block_erase = spi_block_erase_d7,
10067 }, {
10068 .eraseblocks = { {32 * 1024, 4} },
10069 .block_erase = spi_block_erase_d8,
10070 }, {
10071 .eraseblocks = { {128 * 1024, 1} },
10072 .block_erase = spi_block_erase_60,
10073 }, {
10074 .eraseblocks = { {128 * 1024, 1} },
10075 .block_erase = spi_block_erase_c7,
10076 }
10077 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010078 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010079 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10080 .write = spi_chip_write_256,
10081 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10082 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10083 },
10084
10085 {
10086 .vendor = "PMC",
10087 .name = "Pm25LD020(C)",
10088 .bustype = BUS_SPI,
10089 .manufacture_id = PMC_ID,
10090 .model_id = PMC_PM25LD020,
10091 .total_size = 256,
10092 .page_size = 256,
10093 .feature_bits = FEATURE_WRSR_WREN,
10094 .tested = TEST_UNTESTED,
10095 .probe = probe_spi_rdid,
10096 .probe_timing = TIMING_ZERO,
10097 .block_erasers =
10098 {
10099 {
10100 .eraseblocks = { {4 * 1024, 64} },
10101 .block_erase = spi_block_erase_20,
10102 }, {
10103 .eraseblocks = { {4 * 1024, 64} },
10104 .block_erase = spi_block_erase_d7,
10105 }, {
10106 .eraseblocks = { {64 * 1024, 4} },
10107 .block_erase = spi_block_erase_d8,
10108 }, {
10109 .eraseblocks = { {256 * 1024, 1} },
10110 .block_erase = spi_block_erase_60,
10111 }, {
10112 .eraseblocks = { {256 * 1024, 1} },
10113 .block_erase = spi_block_erase_c7,
10114 }
10115 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010116 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010117 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10118 .write = spi_chip_write_256,
10119 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10120 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
10121 },
10122
10123 {
10124 .vendor = "PMC",
10125 .name = "Pm25LD040(C)",
10126 .bustype = BUS_SPI,
10127 .manufacture_id = PMC_ID,
10128 .model_id = PMC_PM25LV040,
10129 .total_size = 512,
10130 .page_size = 256,
10131 .feature_bits = FEATURE_WRSR_WREN,
10132 .tested = TEST_UNTESTED,
10133 .probe = probe_spi_rdid,
10134 .probe_timing = TIMING_ZERO,
10135 .block_erasers =
10136 {
10137 {
10138 .eraseblocks = { {4 * 1024, 128} },
10139 .block_erase = spi_block_erase_20,
10140 }, {
10141 .eraseblocks = { {4 * 1024, 128} },
10142 .block_erase = spi_block_erase_d7,
10143 }, {
10144 .eraseblocks = { {64 * 1024, 8} },
10145 .block_erase = spi_block_erase_d8,
10146 }, {
10147 .eraseblocks = { {512 * 1024, 1} },
10148 .block_erase = spi_block_erase_60,
10149 }, {
10150 .eraseblocks = { {512 * 1024, 1} },
10151 .block_erase = spi_block_erase_c7,
10152 }
10153 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010154 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010155 .unlock = spi_disable_blockprotect,
10156 .write = spi_chip_write_256,
10157 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10158 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10159 },
10160
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010161 {
10162 .vendor = "PMC",
10163 .name = "Pm25LQ020",
10164 .bustype = BUS_SPI,
10165 .manufacture_id = PMC_ID,
10166 .model_id = PMC_PM25LQ020,
10167 .total_size = 256,
10168 .page_size = 256,
10169 /* OTP: 256B total; read 0x4B, write 0xB1 */
10170 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10171 .tested = TEST_UNTESTED,
10172 .probe = probe_spi_rdid,
10173 .probe_timing = TIMING_ZERO,
10174 .block_erasers =
10175 {
10176 {
10177 .eraseblocks = { {4 * 1024, 64} },
10178 .block_erase = spi_block_erase_20,
10179 }, {
10180 .eraseblocks = { {4 * 1024, 64} },
10181 .block_erase = spi_block_erase_d7,
10182 }, {
10183 .eraseblocks = { {64 * 1024, 4} },
10184 .block_erase = spi_block_erase_d8,
10185 }, {
10186 .eraseblocks = { {256 * 1024, 1} },
10187 .block_erase = spi_block_erase_60,
10188 }, {
10189 .eraseblocks = { {256 * 1024, 1} },
10190 .block_erase = spi_block_erase_c7,
10191 }
10192 },
10193 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10194 .unlock = spi_disable_blockprotect_bp3_srwd,
10195 .write = spi_chip_write_256,
10196 .read = spi_chip_read,
10197 .voltage = {2300, 3600},
10198 },
10199
10200 {
10201 .vendor = "PMC",
10202 .name = "Pm25LQ040",
10203 .bustype = BUS_SPI,
10204 .manufacture_id = PMC_ID,
10205 .model_id = PMC_PM25LQ040,
10206 .total_size = 512,
10207 .page_size = 256,
10208 /* OTP: 256B total; read 0x4B, write 0xB1 */
10209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10210 .tested = TEST_UNTESTED,
10211 .probe = probe_spi_rdid,
10212 .probe_timing = TIMING_ZERO,
10213 .block_erasers =
10214 {
10215 {
10216 .eraseblocks = { {4 * 1024, 128} },
10217 .block_erase = spi_block_erase_20,
10218 }, {
10219 .eraseblocks = { {4 * 1024, 128} },
10220 .block_erase = spi_block_erase_d7,
10221 }, {
10222 .eraseblocks = { {64 * 1024, 8} },
10223 .block_erase = spi_block_erase_d8,
10224 }, {
10225 .eraseblocks = { {512 * 1024, 1} },
10226 .block_erase = spi_block_erase_60,
10227 }, {
10228 .eraseblocks = { {512 * 1024, 1} },
10229 .block_erase = spi_block_erase_c7,
10230 }
10231 },
10232 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10233 .unlock = spi_disable_blockprotect_bp3_srwd,
10234 .write = spi_chip_write_256,
10235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10236 .voltage = {2300, 3600},
10237 },
10238
10239 {
10240 .vendor = "PMC",
10241 .name = "Pm25LQ080",
10242 .bustype = BUS_SPI,
10243 .manufacture_id = PMC_ID,
10244 .model_id = PMC_PM25LQ080,
10245 .total_size = 1024,
10246 .page_size = 256,
10247 /* OTP: 64B total; read 0x4B, write 0xB1 */
10248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10249 .tested = TEST_UNTESTED,
10250 .probe = probe_spi_rdid,
10251 .probe_timing = TIMING_ZERO,
10252 .block_erasers =
10253 {
10254 {
10255 .eraseblocks = { {4 * 1024, 256} },
10256 .block_erase = spi_block_erase_20,
10257 }, {
10258 .eraseblocks = { {4 * 1024, 256} },
10259 .block_erase = spi_block_erase_d7,
10260 }, {
10261 .eraseblocks = { {64 * 1024, 16} },
10262 .block_erase = spi_block_erase_d8,
10263 }, {
10264 .eraseblocks = { {1024 * 1024, 1} },
10265 .block_erase = spi_block_erase_60,
10266 }, {
10267 .eraseblocks = { {1024 * 1024, 1} },
10268 .block_erase = spi_block_erase_c7,
10269 }
10270 },
10271 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10272 .unlock = spi_disable_blockprotect_bp3_srwd,
10273 .write = spi_chip_write_256,
10274 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10275 .voltage = {2300, 3600},
10276 },
10277
10278 {
10279 .vendor = "PMC",
10280 .name = "Pm25LQ016",
10281 .bustype = BUS_SPI,
10282 .manufacture_id = PMC_ID,
10283 .model_id = PMC_PM25LQ016,
10284 .total_size = 2048,
10285 .page_size = 256,
10286 /* OTP: 256B total; read 0x4B, write 0xB1 */
10287 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10288 .tested = TEST_UNTESTED,
10289 .probe = probe_spi_rdid,
10290 .probe_timing = TIMING_ZERO,
10291 .block_erasers =
10292 {
10293 {
10294 .eraseblocks = { {4 * 1024, 512} },
10295 .block_erase = spi_block_erase_20,
10296 }, {
10297 .eraseblocks = { {4 * 1024, 512} },
10298 .block_erase = spi_block_erase_d7,
10299 }, {
10300 .eraseblocks = { {64 * 1024, 32} },
10301 .block_erase = spi_block_erase_d8,
10302 }, {
10303 .eraseblocks = { {2048 * 1024, 1} },
10304 .block_erase = spi_block_erase_60,
10305 }, {
10306 .eraseblocks = { {2048 * 1024, 1} },
10307 .block_erase = spi_block_erase_c7,
10308 }
10309 },
10310 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10311 .unlock = spi_disable_blockprotect_bp3_srwd,
10312 .write = spi_chip_write_256,
10313 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10314 .voltage = {2300, 3600},
10315 },
10316
10317 {
10318 .vendor = "PMC",
10319 .name = "Pm25LQ032C",
10320 .bustype = BUS_SPI,
10321 .manufacture_id = PMC_ID,
10322 .model_id = PMC_PM25LQ032C,
10323 .total_size = 4096,
10324 .page_size = 256,
10325 /* OTP: 64B total; read 0x4B, write 0xB1 */
10326 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010327 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010328 .probe = probe_spi_rdid,
10329 .probe_timing = TIMING_ZERO,
10330 .block_erasers =
10331 {
10332 {
10333 .eraseblocks = { {4 * 1024, 1024} },
10334 .block_erase = spi_block_erase_20,
10335 }, {
10336 .eraseblocks = { {4 * 1024, 1024} },
10337 .block_erase = spi_block_erase_d7,
10338 }, {
10339 .eraseblocks = { {64 * 1024, 64} },
10340 .block_erase = spi_block_erase_d8,
10341 }, {
10342 .eraseblocks = { {4096 * 1024, 1} },
10343 .block_erase = spi_block_erase_60,
10344 }, {
10345 .eraseblocks = { {4096 * 1024, 1} },
10346 .block_erase = spi_block_erase_c7,
10347 }
10348 },
10349 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10350 .unlock = spi_disable_blockprotect_bp3_srwd,
10351 .write = spi_chip_write_256,
10352 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10353 .voltage = {2700, 3600},
10354 },
10355
10356 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010357 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010358 .name = "Pm25LV512(A)",
10359 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010360 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010361 .model_id = PMC_PM25LV512,
10362 .total_size = 64,
10363 .page_size = 256,
10364 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010365 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010366 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010367 .probe_timing = TIMING_ZERO,
10368 .block_erasers =
10369 {
10370 {
10371 .eraseblocks = { {4 * 1024, 16} },
10372 .block_erase = spi_block_erase_d7,
10373 }, {
10374 .eraseblocks = { {32 * 1024, 2} },
10375 .block_erase = spi_block_erase_d8,
10376 }, {
10377 .eraseblocks = { {64 * 1024, 1} },
10378 .block_erase = spi_block_erase_c7,
10379 }
10380 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010381 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010382 .unlock = spi_disable_blockprotect,
10383 .write = spi_chip_write_256,
10384 .read = spi_chip_read, /* Fast read (0x0B) supported */
10385 .voltage = {2700, 3600},
10386 },
10387
10388 {
10389 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010390 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010391 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010392 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010393 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010394 .total_size = 128,
10395 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010396 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010397 .tested = TEST_OK_PREW,
10398 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010399 .probe_timing = TIMING_ZERO,
10400 .block_erasers =
10401 {
10402 {
10403 .eraseblocks = { {4 * 1024, 32} },
10404 .block_erase = spi_block_erase_d7,
10405 }, {
10406 .eraseblocks = { {32 * 1024, 4} },
10407 .block_erase = spi_block_erase_d8,
10408 }, {
10409 .eraseblocks = { {128 * 1024, 1} },
10410 .block_erase = spi_block_erase_c7,
10411 }
10412 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010413 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010414 .unlock = spi_disable_blockprotect,
10415 .write = spi_chip_write_256,
10416 .read = spi_chip_read, /* Fast read (0x0B) supported */
10417 .voltage = {2700, 3600},
10418 },
10419
10420 {
10421 .vendor = "PMC",
10422 .name = "Pm25LV010A",
10423 .bustype = BUS_SPI,
10424 .manufacture_id = PMC_ID,
10425 .model_id = PMC_PM25LV010,
10426 .total_size = 128,
10427 .page_size = 256,
10428 .feature_bits = FEATURE_WRSR_WREN,
10429 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010430 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010431 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010432 .block_erasers =
10433 {
10434 {
10435 .eraseblocks = { {4 * 1024, 32} },
10436 .block_erase = spi_block_erase_d7,
10437 }, {
10438 .eraseblocks = { {32 * 1024, 4} },
10439 .block_erase = spi_block_erase_d8,
10440 }, {
10441 .eraseblocks = { {128 * 1024, 1} },
10442 .block_erase = spi_block_erase_c7,
10443 }
10444 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010445 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010447 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010448 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010449 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010450 },
10451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010452 {
10453 .vendor = "PMC",
10454 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010455 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010456 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010457 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010458 .total_size = 256,
10459 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010460 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010461 .tested = TEST_UNTESTED,
10462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010463 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010464 .block_erasers =
10465 {
10466 {
10467 .eraseblocks = { {4 * 1024, 64} },
10468 .block_erase = spi_block_erase_d7,
10469 }, {
10470 .eraseblocks = { {64 * 1024, 4} },
10471 .block_erase = spi_block_erase_d8,
10472 }, {
10473 .eraseblocks = { {256 * 1024, 1} },
10474 .block_erase = spi_block_erase_c7,
10475 }
10476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010477 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010478 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010479 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010480 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010481 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010482 },
10483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010484 {
10485 .vendor = "PMC",
10486 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010487 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010488 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010489 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010490 .total_size = 512,
10491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010492 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000010493 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010494 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010495 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010496 .block_erasers =
10497 {
10498 {
10499 .eraseblocks = { {4 * 1024, 128} },
10500 .block_erase = spi_block_erase_d7,
10501 }, {
10502 .eraseblocks = { {64 * 1024, 8} },
10503 .block_erase = spi_block_erase_d8,
10504 }, {
10505 .eraseblocks = { {512 * 1024, 1} },
10506 .block_erase = spi_block_erase_c7,
10507 }
10508 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010509 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010511 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010512 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010513 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010514 },
10515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 {
10517 .vendor = "PMC",
10518 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010519 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010520 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010521 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010522 .total_size = 1024,
10523 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010524 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010525 .tested = TEST_UNTESTED,
10526 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010527 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010528 .block_erasers =
10529 {
10530 {
10531 .eraseblocks = { {4 * 1024, 256} },
10532 .block_erase = spi_block_erase_d7,
10533 }, {
10534 .eraseblocks = { {4 * 1024, 256} },
10535 .block_erase = spi_block_erase_20,
10536 }, {
10537 .eraseblocks = { {64 * 1024, 16} },
10538 .block_erase = spi_block_erase_d8,
10539 }, {
10540 .eraseblocks = { {1024 * 1024, 1} },
10541 .block_erase = spi_block_erase_60,
10542 }, {
10543 .eraseblocks = { {1024 * 1024, 1} },
10544 .block_erase = spi_block_erase_c7,
10545 }
10546 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010547 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010548 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010549 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010550 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010552 },
10553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010554 {
10555 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010556 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010557 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010558 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010559 .model_id = PMC_PM25LV016B,
10560 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010561 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010562 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010563 .tested = TEST_UNTESTED,
10564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010565 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010566 .block_erasers =
10567 {
10568 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010569 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000010570 .block_erase = spi_block_erase_d7,
10571 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010572 .eraseblocks = { {4 * 1024, 512} },
10573 .block_erase = spi_block_erase_20,
10574 }, {
10575 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000010576 .block_erase = spi_block_erase_d8,
10577 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010578 .eraseblocks = { {2 * 1024 * 1024, 1} },
10579 .block_erase = spi_block_erase_60,
10580 }, {
10581 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010582 .block_erase = spi_block_erase_c7,
10583 }
10584 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010585 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010586 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010587 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010588 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010590 },
10591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010592 {
10593 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010594 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010595 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010596 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010597 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010598 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010599 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010600 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010601 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010602 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010603 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010604 .block_erasers =
10605 {
10606 {
10607 .eraseblocks = {
10608 {128 * 1024, 1},
10609 {96 * 1024, 1},
10610 {8 * 1024, 2},
10611 {16 * 1024, 1},
10612 },
Sean Nelson35727f72010-01-28 23:55:12 +000010613 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010614 }, {
10615 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010616 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010617 },
10618 },
Sean Nelson35727f72010-01-28 23:55:12 +000010619 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010620 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010621 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010622 },
10623
10624 {
10625 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010626 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010627 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010628 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010629 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010630 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010631 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010632 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010633 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010634 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010635 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010636 .block_erasers =
10637 {
10638 {
10639 .eraseblocks = {
10640 {16 * 1024, 1},
10641 {8 * 1024, 2},
10642 {96 * 1024, 1},
10643 {128 * 1024, 1},
10644 },
Sean Nelson35727f72010-01-28 23:55:12 +000010645 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010646 }, {
10647 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010648 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010649 },
10650 },
Sean Nelson35727f72010-01-28 23:55:12 +000010651 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010653 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010654 },
10655
10656 {
10657 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010658 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010659 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010660 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010661 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010662 .total_size = 128,
10663 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010664 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010665 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010666 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010667 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000010668 .block_erasers =
10669 {
10670 {
10671 .eraseblocks = { {4 * 1024, 32} },
10672 .block_erase = erase_sector_jedec,
10673 }, {
10674 .eraseblocks = { {64 * 1024, 2} },
10675 .block_erase = erase_block_jedec,
10676 }, {
10677 .eraseblocks = { {128 * 1024, 1} },
10678 .block_erase = erase_chip_block_jedec,
10679 }
10680 },
Sean Nelson35727f72010-01-28 23:55:12 +000010681 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010682 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010683 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010684 },
10685
10686 {
10687 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010688 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010689 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010690 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010691 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010692 .total_size = 256,
10693 .page_size = 4096,
10694 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10695 .tested = TEST_UNTESTED,
10696 .probe = probe_jedec,
10697 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10698 .block_erasers =
10699 {
10700 {
10701 .eraseblocks = { {4 * 1024, 64} },
10702 .block_erase = erase_sector_jedec,
10703 }, {
10704 .eraseblocks = { {64 * 1024, 4} },
10705 .block_erase = erase_block_jedec,
10706 }, {
10707 .eraseblocks = { {256 * 1024, 1} },
10708 .block_erase = erase_chip_block_jedec,
10709 }
10710 },
10711 .write = write_jedec_1,
10712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010713 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010714 },
10715
10716 {
10717 .vendor = "PMC",
10718 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010719 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010720 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010721 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010722 .total_size = 512,
10723 .page_size = 4096,
10724 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010725 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010726 .probe = probe_jedec,
10727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10728 .block_erasers =
10729 {
10730 {
10731 .eraseblocks = { {4 * 1024, 128} },
10732 .block_erase = erase_sector_jedec,
10733 }, {
10734 .eraseblocks = { {64 * 1024, 8} },
10735 .block_erase = erase_block_jedec,
10736 }, {
10737 .eraseblocks = { {512 * 1024, 1} },
10738 .block_erase = erase_chip_block_jedec,
10739 }
10740 },
10741 .write = write_jedec_1,
10742 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010743 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010744 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000010745
10746 {
10747 .vendor = "PMC",
10748 .name = "Pm39LV512",
10749 .bustype = BUS_PARALLEL,
10750 .manufacture_id = PMC_ID_NOPREFIX,
10751 .model_id = PMC_PM39LV512,
10752 .total_size = 64,
10753 .page_size = 4096,
10754 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10755 .tested = TEST_OK_PREW,
10756 .probe = probe_jedec,
10757 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10758 .block_erasers =
10759 {
10760 {
10761 .eraseblocks = { {4 * 1024, 16} },
10762 .block_erase = erase_sector_jedec,
10763 }, {
10764 .eraseblocks = { {64 * 1024, 1} },
10765 .block_erase = erase_block_jedec,
10766 }, {
10767 .eraseblocks = { {64 * 1024, 1} },
10768 .block_erase = erase_chip_block_jedec,
10769 }
10770 },
10771 .write = write_jedec_1,
10772 .read = read_memmapped,
10773 .voltage = {2700, 3600},
10774 },
10775
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010776 {
10777 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010778 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010779 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010780 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010781 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010782 .total_size = 256,
10783 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010784 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010785 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010786 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010787 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000010788 .block_erasers =
10789 {
10790 {
10791 .eraseblocks = { {4 * 1024, 64} },
10792 .block_erase = erase_sector_jedec,
10793 }, {
10794 .eraseblocks = { {16 * 1024, 16} },
10795 .block_erase = erase_block_jedec,
10796 }, {
10797 .eraseblocks = { {256 * 1024, 1} },
10798 .block_erase = erase_chip_block_jedec,
10799 }
10800 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010801 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000010802 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010803 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010804 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010805 },
10806
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010807 {
10808 .vendor = "PMC",
10809 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010810 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010811 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010812 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010813 .total_size = 512,
10814 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010815 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000010816 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010817 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000010818 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010819 .block_erasers =
10820 {
10821 {
10822 .eraseblocks = { {4 * 1024, 128} },
10823 .block_erase = erase_sector_jedec,
10824 }, {
10825 .eraseblocks = { {64 * 1024, 8} },
10826 .block_erase = erase_block_jedec,
10827 }, {
10828 .eraseblocks = { {512 * 1024, 1} },
10829 .block_erase = erase_chip_block_jedec,
10830 }
10831 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010832 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000010833 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010834 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010835 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010836 },
10837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010838 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000010839 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000010840 .name = "LE25FW106",
10841 .bustype = BUS_SPI,
10842 .manufacture_id = SANYO_ID,
10843 .model_id = SANYO_LE25FW106,
10844 .total_size = 128,
10845 .page_size = 256,
10846 .feature_bits = FEATURE_WRSR_WREN,
10847 .tested = TEST_OK_PREW,
10848 .probe = probe_spi_res2,
10849 .probe_timing = TIMING_ZERO,
10850 .block_erasers = {
10851 {
10852 .eraseblocks = { {2 * 1024, 64} },
10853 .block_erase = spi_block_erase_d7,
10854 }, {
10855 .eraseblocks = { {32 * 1024, 4} },
10856 .block_erase = spi_block_erase_d8,
10857 }, {
10858 .eraseblocks = { {128 * 1024, 1} },
10859 .block_erase = spi_block_erase_c7,
10860 }
10861 },
10862 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
10863 .unlock = spi_disable_blockprotect_bp1_srwd,
10864 .write = spi_chip_write_256,
10865 .read = spi_chip_read,
10866 .voltage = {2700, 3600},
10867 },
10868
10869 {
10870 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000010871 .name = "LE25FW406A",
10872 .bustype = BUS_SPI,
10873 .manufacture_id = SANYO_ID,
10874 .model_id = SANYO_LE25FW406A,
10875 .total_size = 512,
10876 .page_size = 256,
10877 .feature_bits = FEATURE_WRSR_WREN,
10878 .tested = TEST_OK_PREW,
10879 .probe = probe_spi_res2,
10880 .probe_timing = TIMING_ZERO,
10881 .block_erasers = {
10882 {
10883 .eraseblocks = { {4 * 1024, 128} },
10884 .block_erase = spi_block_erase_d7,
10885 }, {
10886 .eraseblocks = { {64 * 1024, 8} },
10887 .block_erase = spi_block_erase_d8,
10888 }, {
10889 .eraseblocks = { {512 * 1024, 1} },
10890 .block_erase = spi_block_erase_c7,
10891 }
10892 },
10893 .printlock = spi_prettyprint_status_register_plain,
10894 .unlock = spi_disable_blockprotect,
10895 .write = spi_chip_write_256,
10896 .read = spi_chip_read,
10897 .voltage = {2700, 3600},
10898 },
10899
10900 {
10901 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000010902 .name = "LE25FU406B",
10903 .bustype = BUS_SPI,
10904 .manufacture_id = SANYO_ID,
10905 .model_id = SANYO_LE25FU406B,
10906 .total_size = 512,
10907 .page_size = 256,
10908 .feature_bits = FEATURE_WRSR_WREN,
10909 .tested = TEST_OK_PREW,
10910 .probe = probe_spi_res2,
10911 .probe_timing = TIMING_ZERO,
10912 .block_erasers = {
10913 {
10914 .eraseblocks = { {4 * 1024, 128} },
10915 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010916 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000010917 .eraseblocks = { {64 * 1024, 8} },
10918 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010919 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000010920 .eraseblocks = { {512 * 1024, 1} },
10921 .block_erase = spi_block_erase_c7,
10922 }
10923 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010924 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000010925 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10926 .write = spi_chip_write_256,
10927 .read = spi_chip_read,
10928 .voltage = {2300, 3600},
10929 },
10930
10931 {
10932 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000010933 .name = "LE25FU406C/LE25U40CMC",
10934 .bustype = BUS_SPI,
10935 .manufacture_id = SANYO_ID,
10936 .model_id = SANYO_LE25FU406C,
10937 .total_size = 512,
10938 .page_size = 256,
10939 .feature_bits = FEATURE_WRSR_WREN,
10940 .tested = TEST_OK_PR,
10941 .probe = probe_spi_rdid,
10942 .probe_timing = TIMING_ZERO,
10943 .block_erasers = {
10944 {
10945 .eraseblocks = { {4 * 1024, 128} },
10946 .block_erase = spi_block_erase_20,
10947 }, {
10948 .eraseblocks = { {4 * 1024, 128} },
10949 .block_erase = spi_block_erase_d7,
10950 }, {
10951 .eraseblocks = { {64 * 1024, 8} },
10952 .block_erase = spi_block_erase_d8,
10953 }, {
10954 .eraseblocks = { {512 * 1024, 1} },
10955 .block_erase = spi_block_erase_60,
10956 }, {
10957 .eraseblocks = { {512 * 1024, 1} },
10958 .block_erase = spi_block_erase_c7,
10959 }
10960 },
10961 .printlock = spi_prettyprint_status_register_bp2_srwd,
10962 .unlock = spi_disable_blockprotect_bp2_srwd,
10963 .write = spi_chip_write_256,
10964 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
10965 .voltage = {2300, 3600},
10966 },
10967
10968 {
10969 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010970 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010971 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000010972 .manufacture_id = SANYO_ID,
10973 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010974 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000010975 .page_size = 256,
10976 .tested = TEST_UNTESTED,
10977 .probe = probe_spi_rdid,
10978 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010979 .block_erasers =
10980 {
10981 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010982 .eraseblocks = { {256, 1024} },
10983 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010984 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010985 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000010986 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010987 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010988 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010989 .block_erase = spi_block_erase_c7,
10990 }
10991 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010992 .printlock = spi_prettyprint_status_register_default_welwip,
10993 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000010994 .write = spi_chip_write_256,
10995 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010996 .voltage = {2700, 3600},
10997 },
10998
10999 {
11000 .vendor = "Sanyo",
11001 .name = "LE25FW403A",
11002 .bustype = BUS_SPI,
11003 .manufacture_id = SANYO_ID,
11004 .model_id = SANYO_LE25FW403A,
11005 .total_size = 512,
11006 .page_size = 256,
11007 .tested = TEST_UNTESTED,
11008 .probe = probe_spi_rdid,
11009 .probe_timing = TIMING_ZERO,
11010 .block_erasers = {
11011 {
11012 .eraseblocks = { {256, 2 * 1024} },
11013 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011014 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011015 .eraseblocks = { {64 * 1024, 8} },
11016 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011017 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011018 .eraseblocks = { {512 * 1024, 1} },
11019 .block_erase = spi_block_erase_c7,
11020 }
11021 },
11022 .printlock = spi_prettyprint_status_register_default_welwip,
11023 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11024 .write = spi_chip_write_256,
11025 .read = spi_chip_read,
11026 .voltage = {2700, 3600},
11027 },
11028
11029 {
11030 .vendor = "Sanyo",
11031 .name = "LE25FW418A",
11032 .bustype = BUS_SPI,
11033 .manufacture_id = SANYO_ID,
11034 .model_id = SANYO_LE25FW418A,
11035 .total_size = 512,
11036 .page_size = 256,
11037 .feature_bits = FEATURE_WRSR_WREN,
11038 .tested = TEST_UNTESTED,
11039 .probe = probe_spi_res2,
11040 .probe_timing = TIMING_ZERO,
11041 .block_erasers = {
11042 {
11043 .eraseblocks = { {4 * 1024, 128} },
11044 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011045 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011046 .eraseblocks = { {64 * 1024, 8} },
11047 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011048 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011049 .eraseblocks = { {512 * 1024, 1} },
11050 .block_erase = spi_block_erase_c7,
11051 }
11052 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011053 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011054 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11055 .write = spi_chip_write_256,
11056 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11057 .voltage = {2700, 3600},
11058 },
11059
11060 {
11061 .vendor = "Sanyo",
11062 .name = "LE25FW806",
11063 .bustype = BUS_SPI,
11064 .manufacture_id = SANYO_ID,
11065 .model_id = SANYO_LE25FW806,
11066 .total_size = 1024,
11067 .page_size = 256,
11068 .feature_bits = FEATURE_WRSR_WREN,
11069 .tested = TEST_UNTESTED,
11070 .probe = probe_spi_res2,
11071 .probe_timing = TIMING_ZERO,
11072 .block_erasers = {
11073 {
11074 .eraseblocks = { {4 * 1024, 256} },
11075 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011076 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011077 .eraseblocks = { {4 * 1024, 256} },
11078 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011079 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011080 .eraseblocks = { {64 * 1024, 16} },
11081 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011082 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011083 .eraseblocks = { {1024 * 1024, 1} },
11084 .block_erase = spi_block_erase_c7,
11085 }
11086 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011087 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011088 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11089 .write = spi_chip_write_256,
11090 .read = spi_chip_read,
11091 .voltage = {2700, 3600},
11092 },
11093
11094 {
11095 .vendor = "Sanyo",
11096 .name = "LE25FW808",
11097 .bustype = BUS_SPI,
11098 .manufacture_id = SANYO_ID,
11099 .model_id = SANYO_LE25FW808,
11100 .total_size = 1024,
11101 .page_size = 256,
11102 .feature_bits = FEATURE_WRSR_WREN,
11103 .tested = TEST_UNTESTED,
11104 .probe = probe_spi_res2,
11105 .probe_timing = TIMING_ZERO,
11106 .block_erasers = {
11107 {
11108 .eraseblocks = { {8 * 1024, 128} },
11109 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011110 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011111 .eraseblocks = { {64 * 1024, 16} },
11112 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011113 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011114 .eraseblocks = { {1024 * 1024, 1} },
11115 .block_erase = spi_block_erase_c7,
11116 }
11117 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011118 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011119 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11120 .write = spi_chip_write_256,
11121 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11122 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011123 },
11124
11125 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011126 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011127 .name = "LH28F008BJT-BTLZ1",
11128 .bustype = BUS_PARALLEL,
11129 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011130 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011131 .total_size = 1024,
11132 .page_size = 64 * 1024,
11133 .tested = TEST_OK_PREW,
11134 .probe = probe_82802ab,
11135 .probe_timing = TIMING_ZERO,
11136 .block_erasers =
11137 {
11138 {
11139 .eraseblocks = {
11140 {8 * 1024, 8},
11141 {64 * 1024, 15}
11142 },
11143 .block_erase = erase_block_82802ab,
11144 }, {
11145 .eraseblocks = { {1024 * 1024, 1} },
11146 .block_erase = erase_sector_49lfxxxc,
11147 }
11148 },
11149 .unlock = unlock_lh28f008bjt,
11150 .write = write_82802ab,
11151 .read = read_memmapped,
11152 .voltage = {2700, 3600},
11153 },
11154
11155 {
11156 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011157 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011158 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011159 .manufacture_id = SHARP_ID,
11160 .model_id = SHARP_LHF00L04,
11161 .total_size = 1024,
11162 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011163 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011164 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011165 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011166 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011167 .block_erasers =
11168 {
11169 {
11170 .eraseblocks = {
11171 {64 * 1024, 15},
11172 {8 * 1024, 8}
11173 },
Sean Nelson28accc22010-03-19 18:47:06 +000011174 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011175 }, {
11176 .eraseblocks = {
11177 {1024 * 1024, 1}
11178 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011179 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011180 },
11181 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011182 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011183 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011185 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011186 },
11187
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011188 {
11189 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011190 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011191 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011192 .manufacture_id = SPANSION_ID,
11193 .model_id = SPANSION_S25FL004A,
11194 .total_size = 512,
11195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011196 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011197 .tested = TEST_UNTESTED,
11198 .probe = probe_spi_rdid,
11199 .probe_timing = TIMING_ZERO,
11200 .block_erasers =
11201 {
11202 {
11203 .eraseblocks = { {64 * 1024, 8} },
11204 .block_erase = spi_block_erase_d8,
11205 }, {
11206 .eraseblocks = { {512 * 1024, 1} },
11207 .block_erase = spi_block_erase_c7,
11208 }
11209 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011210 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011211 .unlock = spi_disable_blockprotect,
11212 .write = spi_chip_write_256,
11213 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011214 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011215 },
11216
11217 {
11218 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011219 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011220 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011221 .manufacture_id = SPANSION_ID,
11222 .model_id = SPANSION_S25FL008A,
11223 .total_size = 1024,
11224 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011225 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011226 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011227 .probe = probe_spi_rdid,
11228 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011229 .block_erasers =
11230 {
11231 {
11232 .eraseblocks = { {64 * 1024, 16} },
11233 .block_erase = spi_block_erase_d8,
11234 }, {
11235 .eraseblocks = { {1024 * 1024, 1} },
11236 .block_erase = spi_block_erase_c7,
11237 }
11238 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011239 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011240 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011241 .write = spi_chip_write_256,
11242 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011243 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011244 },
11245
11246 {
11247 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011248 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011249 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011250 .manufacture_id = SPANSION_ID,
11251 .model_id = SPANSION_S25FL016A,
11252 .total_size = 2048,
11253 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011254 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011255 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011256 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011257 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011258 .block_erasers =
11259 {
11260 {
11261 .eraseblocks = { {64 * 1024, 32} },
11262 .block_erase = spi_block_erase_d8,
11263 }, {
11264 .eraseblocks = { {2 * 1024 * 1024, 1} },
11265 .block_erase = spi_block_erase_c7,
11266 }
11267 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011269 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011270 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011271 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011272 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011273 },
11274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011275 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011276 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011277 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011278 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011279 .manufacture_id = SPANSION_ID,
11280 .model_id = SPANSION_S25FL032A,
11281 .total_size = 4096,
11282 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011284 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011285 .probe = probe_spi_rdid,
11286 .probe_timing = TIMING_ZERO,
11287 .block_erasers =
11288 {
11289 {
11290 .eraseblocks = { {64 * 1024, 64} },
11291 .block_erase = spi_block_erase_d8,
11292 }, {
11293 .eraseblocks = { {4 * 1024 * 1024, 1} },
11294 .block_erase = spi_block_erase_c7,
11295 }
11296 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011298 .unlock = spi_disable_blockprotect,
11299 .write = spi_chip_write_256,
11300 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011301 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011302 },
11303
11304 {
11305 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011306 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011307 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011308 .manufacture_id = SPANSION_ID,
11309 .model_id = SPANSION_S25FL064A,
11310 .total_size = 8192,
11311 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011312 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011313 .tested = TEST_OK_PREW,
11314 .probe = probe_spi_rdid,
11315 .probe_timing = TIMING_ZERO,
11316 .block_erasers =
11317 {
11318 {
11319 .eraseblocks = { {64 * 1024, 128} },
11320 .block_erase = spi_block_erase_d8,
11321 }, {
11322 .eraseblocks = { {8 * 1024 * 1024, 1} },
11323 .block_erase = spi_block_erase_c7,
11324 }
11325 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011326 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011327 .unlock = spi_disable_blockprotect,
11328 .write = spi_chip_write_256,
11329 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011330 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011331 },
11332
11333 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011334 .vendor = "Spansion",
11335 .name = "S25FL204K",
11336 .bustype = BUS_SPI,
11337 .manufacture_id = SPANSION_ID,
11338 .model_id = SPANSION_S25FL204,
11339 .total_size = 512,
11340 .page_size = 256,
11341 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011342 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011343 .probe = probe_spi_rdid,
11344 .probe_timing = TIMING_ZERO,
11345 .block_erasers = {
11346 {
11347 .eraseblocks = { {4 * 1024, 128} },
11348 .block_erase = spi_block_erase_20,
11349 }, {
11350 .eraseblocks = { {64 * 1024, 8} },
11351 .block_erase = spi_block_erase_d8,
11352 }, {
11353 .eraseblocks = { { 512 * 1024, 1} },
11354 .block_erase = spi_block_erase_60,
11355 }, {
11356 .eraseblocks = { { 512 * 1024, 1} },
11357 .block_erase = spi_block_erase_c7,
11358 }
11359 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011360 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011361 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011362 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011363 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011364 .voltage = {2700, 3600},
11365 },
11366
11367 {
11368 .vendor = "Spansion",
11369 .name = "S25FL208K",
11370 .bustype = BUS_SPI,
11371 .manufacture_id = SPANSION_ID,
11372 .model_id = SPANSION_S25FL208,
11373 .total_size = 1024,
11374 .page_size = 256,
11375 .feature_bits = FEATURE_WRSR_WREN,
11376 .tested = TEST_UNTESTED,
11377 .probe = probe_spi_rdid,
11378 .probe_timing = TIMING_ZERO,
11379 .block_erasers = {
11380 {
11381 .eraseblocks = { {4 * 1024, 256} },
11382 .block_erase = spi_block_erase_20,
11383 }, {
11384 .eraseblocks = { {64 * 1024, 16} },
11385 .block_erase = spi_block_erase_d8,
11386 }, {
11387 .eraseblocks = { { 1024 * 1024, 1} },
11388 .block_erase = spi_block_erase_60,
11389 }, {
11390 .eraseblocks = { { 1024 * 1024, 1} },
11391 .block_erase = spi_block_erase_c7,
11392 }
11393 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011394 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011395 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011396 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011397 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011398 .voltage = {2700, 3600},
11399 },
11400
11401 {
11402 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011403 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011404 .bustype = BUS_SPI,
11405 .manufacture_id = SPANSION_ID,
11406 .model_id = SPANSION_S25FL216,
11407 .total_size = 2048,
11408 .page_size = 256,
11409 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11410 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11411 .tested = TEST_UNTESTED,
11412 .probe = probe_spi_rdid,
11413 .probe_timing = TIMING_ZERO,
11414 .block_erasers = {
11415 {
11416 .eraseblocks = { {4 * 1024, 512} },
11417 .block_erase = spi_block_erase_20,
11418 }, {
11419 .eraseblocks = { {64 * 1024, 32} },
11420 .block_erase = spi_block_erase_d8,
11421 }, {
11422 .eraseblocks = { { 2048 * 1024, 1} },
11423 .block_erase = spi_block_erase_60,
11424 }, {
11425 .eraseblocks = { { 2048 * 1024, 1} },
11426 .block_erase = spi_block_erase_c7,
11427 }
11428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011429 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011430 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011431 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011432 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011433 .voltage = {2700, 3600},
11434 },
11435
11436 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011437 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011438 .name = "S25FL132K",
11439 .bustype = BUS_SPI,
11440 .manufacture_id = SPANSION_ID,
11441 .model_id = SPANSION_S25FL132K,
11442 .total_size = 4096,
11443 .page_size = 256,
11444 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11446 .tested = TEST_UNTESTED,
11447 .probe = probe_spi_rdid,
11448 .probe_timing = TIMING_ZERO,
11449 .block_erasers = {
11450 {
11451 .eraseblocks = { {4 * 1024, 1024} },
11452 .block_erase = spi_block_erase_20,
11453 }, {
11454 .eraseblocks = { {64 * 1024, 64} },
11455 .block_erase = spi_block_erase_d8,
11456 }, {
11457 .eraseblocks = { { 4096 * 1024, 1} },
11458 .block_erase = spi_block_erase_60,
11459 }, {
11460 .eraseblocks = { { 4096 * 1024, 1} },
11461 .block_erase = spi_block_erase_c7,
11462 }
11463 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011464 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011465 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11466 .write = spi_chip_write_256,
11467 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11468 .voltage = {2700, 3600},
11469 },
11470
11471 {
11472 .vendor = "Spansion",
11473 .name = "S25FL164K",
11474 .bustype = BUS_SPI,
11475 .manufacture_id = SPANSION_ID,
11476 .model_id = SPANSION_S25FL164K,
11477 .total_size = 8192,
11478 .page_size = 256,
11479 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11481 .tested = TEST_OK_PREW,
11482 .probe = probe_spi_rdid,
11483 .probe_timing = TIMING_ZERO,
11484 .block_erasers = {
11485 {
11486 .eraseblocks = { {4 * 1024, 2048} },
11487 .block_erase = spi_block_erase_20,
11488 }, {
11489 .eraseblocks = { {64 * 1024, 128} },
11490 .block_erase = spi_block_erase_d8,
11491 }, {
11492 .eraseblocks = { { 8192 * 1024, 1} },
11493 .block_erase = spi_block_erase_60,
11494 }, {
11495 .eraseblocks = { { 8192 * 1024, 1} },
11496 .block_erase = spi_block_erase_c7,
11497 }
11498 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011499 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011500 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11501 .write = spi_chip_write_256,
11502 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11503 .voltage = {2700, 3600},
11504 },
11505
11506 {
11507 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000011508 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11509 .bustype = BUS_SPI,
11510 .manufacture_id = SPANSION_ID,
11511 .model_id = SPANSION_S25FL128,
11512 .total_size = 16384,
11513 .page_size = 256,
11514 /* supports 4B addressing */
11515 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11516 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11517 .tested = TEST_OK_PREW,
11518 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
11519 .probe = probe_spi_rdid,
11520 .probe_timing = TIMING_ZERO,
11521 .block_erasers = {
11522 {
11523 /* This chip supports erasing of 32 so-called "parameter sectors" with
11524 * opcode 0x20 which may be configured to be on top or bottom of the address
11525 * space. Trying to access an address outside these 4kB blocks does have no
11526 * effect on the memory contents, e.g.
11527 .eraseblocks = {
11528 {4 * 1024, 32},
11529 {64 * 1024, 254} // inaccessible
11530 },
11531 .block_erase = spi_block_erase_20,
11532 }, { */
11533 .eraseblocks = { { 64 * 1024, 256} },
11534 .block_erase = spi_block_erase_d8,
11535 }, {
11536 .eraseblocks = { { 16384 * 1024, 1} },
11537 .block_erase = spi_block_erase_60,
11538 }, {
11539 .eraseblocks = { { 16384 * 1024, 1} },
11540 .block_erase = spi_block_erase_c7,
11541 }
11542 },
11543 .printlock = spi_prettyprint_status_register_bp2_srwd,
11544 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11545 .write = spi_chip_write_256, /* Multi I/O supported */
11546 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11547 .voltage = {2700, 3600},
11548 },
11549
11550 {
11551 .vendor = "Spansion",
11552 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
11553 .bustype = BUS_SPI,
11554 .manufacture_id = SPANSION_ID,
11555 .model_id = SPANSION_S25FL128,
11556 .total_size = 16384,
11557 .page_size = 512,
11558 /* supports 4B addressing */
11559 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11560 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11561 .tested = TEST_UNTESTED,
11562 .probe = probe_spi_rdid,
11563 .probe_timing = TIMING_ZERO,
11564 .block_erasers = {
11565 {
11566 .eraseblocks = { {256 * 1024, 64} },
11567 .block_erase = spi_block_erase_d8,
11568 }, {
11569 .eraseblocks = { { 16384 * 1024, 1} },
11570 .block_erase = spi_block_erase_60,
11571 }, {
11572 .eraseblocks = { { 16384 * 1024, 1} },
11573 .block_erase = spi_block_erase_c7,
11574 }
11575 },
11576 .printlock = spi_prettyprint_status_register_bp2_srwd,
11577 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11578 .write = spi_chip_write_256, /* Multi I/O supported */
11579 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11580 .voltage = {2700, 3600},
11581 },
11582
11583 {
11584 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000011585 .name = "S25FL128P......0", /* uniform 64 kB sectors */
11586 .bustype = BUS_SPI,
11587 .manufacture_id = SPANSION_ID,
11588 .model_id = SPANSION_S25FL128,
11589 .total_size = 16384,
11590 .page_size = 256,
11591 .feature_bits = FEATURE_WRSR_WREN,
11592 .tested = TEST_UNTESTED,
11593 .probe = probe_spi_rdid,
11594 .probe_timing = TIMING_ZERO,
11595 .block_erasers = {
11596 {
11597 .eraseblocks = { {64 * 1024, 256} },
11598 .block_erase = spi_block_erase_20,
11599 }, {
11600 .eraseblocks = { {64 * 1024, 256} },
11601 .block_erase = spi_block_erase_d8,
11602 }, {
11603 .eraseblocks = { { 16384 * 1024, 1} },
11604 .block_erase = spi_block_erase_60,
11605 }, {
11606 .eraseblocks = { { 16384 * 1024, 1} },
11607 .block_erase = spi_block_erase_c7,
11608 }
11609 },
11610 .printlock = spi_prettyprint_status_register_bp3_srwd,
11611 .unlock = spi_disable_blockprotect_bp3_srwd,
11612 .write = spi_chip_write_256,
11613 .read = spi_chip_read, /* Fast read (0x0B) supported */
11614 .voltage = {2700, 3600},
11615 },
11616
11617 {
11618 .vendor = "Spansion",
11619 .name = "S25FL128P......1", /* uniform 256kB sectors */
11620 .bustype = BUS_SPI,
11621 .manufacture_id = SPANSION_ID,
11622 .model_id = SPANSION_S25FL128,
11623 .total_size = 16384,
11624 .page_size = 256,
11625 .feature_bits = FEATURE_WRSR_WREN,
11626 .tested = TEST_UNTESTED,
11627 .probe = probe_spi_rdid,
11628 .probe_timing = TIMING_ZERO,
11629 .block_erasers = {
11630 {
11631 .eraseblocks = { {256 * 1024, 64} },
11632 .block_erase = spi_block_erase_d8,
11633 }, {
11634 .eraseblocks = { { 16384 * 1024, 1} },
11635 .block_erase = spi_block_erase_c7,
11636 }
11637 },
11638 .printlock = spi_prettyprint_status_register_bp2_srwd,
11639 .unlock = spi_disable_blockprotect_bp2_srwd,
11640 .write = spi_chip_write_256,
11641 .read = spi_chip_read, /* Fast read (0x0B) supported */
11642 .voltage = {2700, 3600},
11643 },
11644
11645 {
11646 .vendor = "Spansion",
11647 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011648 .bustype = BUS_SPI,
11649 .manufacture_id = SPANSION_ID,
11650 .model_id = SPANSION_S25FL128,
11651 .total_size = 16384,
11652 .page_size = 256,
11653 /* supports 4B addressing */
11654 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11655 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011656 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011657 .probe = probe_spi_rdid,
11658 .probe_timing = TIMING_ZERO,
11659 .block_erasers = {
11660 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011661 /* This chip supports erasing of the 32 so-called "parameter sectors" with
11662 * opcode 0x20. Trying to access an address outside these 4kB blocks does
11663 * have no effect on the memory contents, but sets a flag in the SR.
11664 .eraseblocks = {
11665 {4 * 1024, 32},
11666 {64 * 1024, 254} // inaccessible
11667 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011668 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000011669 }, { */
11670 .eraseblocks = { { 64 * 1024, 256} },
11671 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011672 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000011673 .eraseblocks = { { 16384 * 1024, 1} },
11674 .block_erase = spi_block_erase_60,
11675 }, {
11676 .eraseblocks = { { 16384 * 1024, 1} },
11677 .block_erase = spi_block_erase_c7,
11678 }
11679 },
11680 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11681 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11682 .write = spi_chip_write_256, /* Multi I/O supported */
11683 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11684 .voltage = {2700, 3600},
11685 },
11686
11687 {
11688 .vendor = "Spansion",
11689 .name = "S25FL128S......1", /* uniform 256 kB sectors */
11690 .bustype = BUS_SPI,
11691 .manufacture_id = SPANSION_ID,
11692 .model_id = SPANSION_S25FL128,
11693 .total_size = 16384,
11694 .page_size = 512,
11695 /* supports 4B addressing */
11696 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11698 .tested = TEST_UNTESTED,
11699 .probe = probe_spi_rdid,
11700 .probe_timing = TIMING_ZERO,
11701 .block_erasers = {
11702 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011703 .eraseblocks = { {256 * 1024, 64} },
11704 .block_erase = spi_block_erase_d8,
11705 }, {
11706 .eraseblocks = { { 16384 * 1024, 1} },
11707 .block_erase = spi_block_erase_60,
11708 }, {
11709 .eraseblocks = { { 16384 * 1024, 1} },
11710 .block_erase = spi_block_erase_c7,
11711 }
11712 },
11713 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11714 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11715 .write = spi_chip_write_256, /* Multi I/O supported */
11716 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11717 .voltage = {2700, 3600},
11718 },
11719
11720 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011721 .vendor = "Spansion",
11722 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11723 .bustype = BUS_SPI,
11724 .manufacture_id = SPANSION_ID,
11725 .model_id = SPANSION_S25FL128,
11726 .total_size = 16384,
11727 .page_size = 256,
11728 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11730 .tested = TEST_OK_PREW,
11731 .probe = probe_spi_rdid,
11732 .probe_timing = TIMING_ZERO,
11733 .block_erasers = {
11734 {
11735 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
11736 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
11737 * effect on the memory contents, but sets a flag in the SR.
11738 .eraseblocks = {
11739 {4 * 1024, 32},
11740 {64 * 1024, 254} // inaccessible
11741 },
11742 .block_erase = spi_block_erase_20,
11743 }, { */
11744 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
11745 .eraseblocks = {
11746 {8 * 1024, 16},
11747 {64 * 1024, 254} // inaccessible
11748 },
11749 .block_erase = spi_block_erase_40,
11750 }, { */
11751 .eraseblocks = { { 64 * 1024, 256} },
11752 .block_erase = spi_block_erase_d8,
11753 }, {
11754 .eraseblocks = { { 16384 * 1024, 1} },
11755 .block_erase = spi_block_erase_60,
11756 }, {
11757 .eraseblocks = { { 16384 * 1024, 1} },
11758 .block_erase = spi_block_erase_c7,
11759 }
11760 },
11761 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11762 .unlock = spi_disable_blockprotect_bp2_srwd,
11763 .write = spi_chip_write_256, /* Multi I/O supported */
11764 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11765 .voltage = {2700, 3600},
11766 },
11767
11768 {
11769 .vendor = "Spansion",
11770 .name = "S25FL129P......1", /* uniform 256 kB sectors */
11771 .bustype = BUS_SPI,
11772 .manufacture_id = SPANSION_ID,
11773 .model_id = SPANSION_S25FL128,
11774 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011775 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000011776 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11777 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11778 .tested = TEST_UNTESTED,
11779 .probe = probe_spi_rdid,
11780 .probe_timing = TIMING_ZERO,
11781 .block_erasers = {
11782 {
11783 .eraseblocks = { {256 * 1024, 64} },
11784 .block_erase = spi_block_erase_d8,
11785 }, {
11786 .eraseblocks = { { 16384 * 1024, 1} },
11787 .block_erase = spi_block_erase_60,
11788 }, {
11789 .eraseblocks = { { 16384 * 1024, 1} },
11790 .block_erase = spi_block_erase_c7,
11791 }
11792 },
11793 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11794 .unlock = spi_disable_blockprotect_bp2_srwd,
11795 .write = spi_chip_write_256, /* Multi I/O supported */
11796 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11797 .voltage = {2700, 3600},
11798 },
11799
11800 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011801 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000011802 .name = "SST25LF020A",
11803 .bustype = BUS_SPI,
11804 .manufacture_id = SST_ID,
11805 .model_id = SST_SST25VF020_REMS,
11806 .total_size = 256,
11807 .page_size = 256,
11808 .feature_bits = FEATURE_WRSR_EWSR,
11809 .tested = TEST_OK_PREW,
11810 .probe = probe_spi_rems,
11811 .probe_timing = TIMING_ZERO,
11812 .block_erasers =
11813 {
11814 {
11815 .eraseblocks = { {4 * 1024, 64} },
11816 .block_erase = spi_block_erase_20,
11817 }, {
11818 .eraseblocks = { {32 * 1024, 8} },
11819 .block_erase = spi_block_erase_52,
11820 }, {
11821 .eraseblocks = { {256 * 1024, 1} },
11822 .block_erase = spi_block_erase_60,
11823 },
11824 },
11825 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11826 .unlock = spi_disable_blockprotect,
11827 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11828 .read = spi_chip_read, /* Fast read (0x0B) supported */
11829 .voltage = {2700, 3600},
11830 },
11831
11832 {
11833 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000011834 .name = "SST25LF040A",
11835 .bustype = BUS_SPI,
11836 .manufacture_id = SST_ID,
11837 .model_id = SST_SST25VF040_REMS,
11838 .total_size = 512,
11839 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011840 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000011841 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000011842 .probe = probe_spi_res2,
11843 .probe_timing = TIMING_ZERO,
11844 .block_erasers =
11845 {
11846 {
11847 .eraseblocks = { {4 * 1024, 128} },
11848 .block_erase = spi_block_erase_20,
11849 }, {
11850 .eraseblocks = { {32 * 1024, 16} },
11851 .block_erase = spi_block_erase_52,
11852 }, {
11853 .eraseblocks = { {512 * 1024, 1} },
11854 .block_erase = spi_block_erase_60,
11855 },
11856 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011857 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000011858 .unlock = spi_disable_blockprotect,
11859 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11860 .read = spi_chip_read,
11861 .voltage = {3000, 3600},
11862 },
11863
11864 {
11865 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011866 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000011867 .bustype = BUS_SPI,
11868 .manufacture_id = SST_ID,
11869 .model_id = SST_SST25VF080_REMS,
11870 .total_size = 1024,
11871 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011872 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000011873 .tested = TEST_UNTESTED,
11874 .probe = probe_spi_res2,
11875 .probe_timing = TIMING_ZERO,
11876 .block_erasers =
11877 {
11878 {
11879 .eraseblocks = { {4 * 1024, 256} },
11880 .block_erase = spi_block_erase_20,
11881 }, {
11882 .eraseblocks = { {32 * 1024, 32} },
11883 .block_erase = spi_block_erase_52,
11884 }, {
11885 .eraseblocks = { {1024 * 1024, 1} },
11886 .block_erase = spi_block_erase_60,
11887 },
11888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011889 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000011890 .unlock = spi_disable_blockprotect,
11891 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11892 .read = spi_chip_read,
11893 .voltage = {3000, 3600},
11894 },
11895
11896 {
11897 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000011898 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000011899 .bustype = BUS_SPI,
11900 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000011901 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000011902 .total_size = 64,
11903 .page_size = 256,
11904 .feature_bits = FEATURE_WRSR_EWSR,
11905 .tested = TEST_OK_PREW,
11906 .probe = probe_spi_rems,
11907 .probe_timing = TIMING_ZERO,
11908 .block_erasers =
11909 {
11910 {
11911 .eraseblocks = { {4 * 1024, 16} },
11912 .block_erase = spi_block_erase_20,
11913 }, {
11914 .eraseblocks = { {32 * 1024, 2} },
11915 .block_erase = spi_block_erase_52,
11916 }, {
11917 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011918 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011919 }, {
11920 .eraseblocks = { {64 * 1024, 1} },
11921 .block_erase = spi_block_erase_60,
11922 }, {
11923 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011924 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011925 },
11926 },
11927 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11928 .unlock = spi_disable_blockprotect,
11929 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000011930 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011931 .voltage = {2700, 3600},
11932 },
11933
11934 {
11935 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000011936 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011937 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000011938 .manufacture_id = SST_ID,
11939 .model_id = SST_SST25VF010_REMS,
11940 .total_size = 128,
11941 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011942 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000011943 .tested = TEST_OK_PREW,
11944 .probe = probe_spi_rems,
11945 .probe_timing = TIMING_ZERO,
11946 .block_erasers =
11947 {
11948 {
11949 .eraseblocks = { {4 * 1024, 32} },
11950 .block_erase = spi_block_erase_20,
11951 }, {
11952 .eraseblocks = { {32 * 1024, 4} },
11953 .block_erase = spi_block_erase_52,
11954 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000011955 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011956 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011957 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000011958 .eraseblocks = { {128 * 1024, 1} },
11959 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000011960 }, {
11961 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011962 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011963 },
11964 },
11965 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11966 .unlock = spi_disable_blockprotect,
11967 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000011968 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011969 .voltage = {2700, 3600},
11970 },
11971
11972 {
11973 .vendor = "SST",
11974 .name = "SST25VF020",
11975 .bustype = BUS_SPI,
11976 .manufacture_id = SST_ID,
11977 .model_id = SST_SST25VF020_REMS,
11978 .total_size = 256,
11979 .page_size = 256,
11980 .feature_bits = FEATURE_WRSR_EWSR,
11981 .tested = TEST_UNTESTED,
11982 .probe = probe_spi_rems,
11983 .probe_timing = TIMING_ZERO,
11984 .block_erasers =
11985 {
11986 {
11987 .eraseblocks = { {4 * 1024, 64} },
11988 .block_erase = spi_block_erase_20,
11989 }, {
11990 .eraseblocks = { {32 * 1024, 8} },
11991 .block_erase = spi_block_erase_52,
11992 }, {
11993 .eraseblocks = { {256 * 1024, 1} },
11994 .block_erase = spi_block_erase_60,
11995 },
11996 },
11997 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11998 .unlock = spi_disable_blockprotect,
11999 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12000 .read = spi_chip_read, /* only */
12001 .voltage = {2700, 3600},
12002 },
12003
12004 {
12005 .vendor = "SST",
12006 .name = "SST25VF020B",
12007 .bustype = BUS_SPI,
12008 .manufacture_id = SST_ID,
12009 .model_id = SST_SST25VF020B,
12010 .total_size = 256,
12011 .page_size = 256,
12012 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012013 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012014 .probe = probe_spi_rdid,
12015 .probe_timing = TIMING_ZERO,
12016 .block_erasers =
12017 {
12018 {
12019 .eraseblocks = { {4 * 1024, 64} },
12020 .block_erase = spi_block_erase_20,
12021 }, {
12022 .eraseblocks = { {32 * 1024, 8} },
12023 .block_erase = spi_block_erase_52,
12024 }, {
12025 .eraseblocks = { {64 * 1024, 4} },
12026 .block_erase = spi_block_erase_d8,
12027 }, {
12028 .eraseblocks = { {256 * 1024, 1} },
12029 .block_erase = spi_block_erase_60,
12030 }, {
12031 .eraseblocks = { {256 * 1024, 1} },
12032 .block_erase = spi_block_erase_c7,
12033 },
12034 },
12035 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12036 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12037 .write = spi_aai_write, /* AAI supported (0xAD) */
12038 .read = spi_chip_read, /* Fast read (0x0B) supported */
12039 .voltage = {2700, 3600},
12040 },
12041
12042 {
12043 .vendor = "SST",
12044 .name = "SST25VF040",
12045 .bustype = BUS_SPI,
12046 .manufacture_id = SST_ID,
12047 .model_id = SST_SST25VF040_REMS,
12048 .total_size = 512,
12049 .page_size = 256,
12050 .feature_bits = FEATURE_WRSR_EWSR,
12051 .tested = TEST_OK_PR,
12052 .probe = probe_spi_rems,
12053 .probe_timing = TIMING_ZERO,
12054 .block_erasers =
12055 {
12056 {
12057 .eraseblocks = { {4 * 1024, 128} },
12058 .block_erase = spi_block_erase_20,
12059 }, {
12060 .eraseblocks = { {32 * 1024, 16} },
12061 .block_erase = spi_block_erase_52,
12062 }, {
12063 .eraseblocks = { {512 * 1024, 1} },
12064 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012065 },
12066 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012067 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012068 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012069 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12070 .read = spi_chip_read,
12071 .voltage = {2700, 3600},
12072 },
12073
12074 {
12075 .vendor = "SST",
12076 .name = "SST25VF040B",
12077 .bustype = BUS_SPI,
12078 .manufacture_id = SST_ID,
12079 .model_id = SST_SST25VF040B,
12080 .total_size = 512,
12081 .page_size = 256,
12082 .feature_bits = FEATURE_WRSR_EWSR,
12083 .tested = TEST_OK_PREW,
12084 .probe = probe_spi_rdid,
12085 .probe_timing = TIMING_ZERO,
12086 .block_erasers =
12087 {
12088 {
12089 .eraseblocks = { {4 * 1024, 128} },
12090 .block_erase = spi_block_erase_20,
12091 }, {
12092 .eraseblocks = { {32 * 1024, 16} },
12093 .block_erase = spi_block_erase_52,
12094 }, {
12095 .eraseblocks = { {64 * 1024, 8} },
12096 .block_erase = spi_block_erase_d8,
12097 }, {
12098 .eraseblocks = { {512 * 1024, 1} },
12099 .block_erase = spi_block_erase_60,
12100 }, {
12101 .eraseblocks = { {512 * 1024, 1} },
12102 .block_erase = spi_block_erase_c7,
12103 },
12104 },
12105 .printlock = spi_prettyprint_status_register_sst25vf040b,
12106 .unlock = spi_disable_blockprotect,
12107 .write = spi_aai_write, /* AAI supported (0xAD) */
12108 .read = spi_chip_read, /* Fast read (0x0B) supported */
12109 .voltage = {2700, 3600},
12110 },
12111
12112 {
12113 .vendor = "SST",
12114 .name = "SST25VF040B.REMS",
12115 .bustype = BUS_SPI,
12116 .manufacture_id = SST_ID,
12117 .model_id = SST_SST25VF040B_REMS,
12118 .total_size = 512,
12119 .page_size = 256,
12120 .feature_bits = FEATURE_WRSR_EWSR,
12121 .tested = TEST_OK_PREW,
12122 .probe = probe_spi_rems,
12123 .probe_timing = TIMING_ZERO,
12124 .block_erasers =
12125 {
12126 {
12127 .eraseblocks = { {4 * 1024, 128} },
12128 .block_erase = spi_block_erase_20,
12129 }, {
12130 .eraseblocks = { {32 * 1024, 16} },
12131 .block_erase = spi_block_erase_52,
12132 }, {
12133 .eraseblocks = { {64 * 1024, 8} },
12134 .block_erase = spi_block_erase_d8,
12135 }, {
12136 .eraseblocks = { {512 * 1024, 1} },
12137 .block_erase = spi_block_erase_60,
12138 }, {
12139 .eraseblocks = { {512 * 1024, 1} },
12140 .block_erase = spi_block_erase_c7,
12141 },
12142 },
12143 .printlock = spi_prettyprint_status_register_sst25vf040b,
12144 .unlock = spi_disable_blockprotect,
12145 .write = spi_aai_write,
12146 .read = spi_chip_read,
12147 .voltage = {2700, 3600},
12148 },
12149
12150 {
12151 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012152 .name = "SST25WF020A",
12153 .bustype = BUS_SPI,
12154 .manufacture_id = SANYO_ID, /* See flashchips.h */
12155 .model_id = SST_SST25WF020A,
12156 .total_size = 256,
12157 .page_size = 256,
12158 .feature_bits = FEATURE_WRSR_WREN,
12159 .tested = TEST_UNTESTED,
12160 .probe = probe_spi_rdid,
12161 .probe_timing = TIMING_ZERO,
12162 .block_erasers =
12163 {
12164 {
12165 .eraseblocks = { {4 * 1024, 64} },
12166 .block_erase = spi_block_erase_20,
12167 }, {
12168 .eraseblocks = { {64 * 1024, 4} },
12169 .block_erase = spi_block_erase_d8,
12170 }, {
12171 .eraseblocks = { {256 * 1024, 1} },
12172 .block_erase = spi_block_erase_60,
12173 }, {
12174 .eraseblocks = { {256 * 1024, 1} },
12175 .block_erase = spi_block_erase_c7,
12176 },
12177 },
12178 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12179 .unlock = spi_disable_blockprotect_bp2_srwd,
12180 .write = spi_chip_write_256,
12181 .read = spi_chip_read, /* Fast read (0x0B) supported */
12182 .voltage = {1650, 1950},
12183 },
12184
12185 {
12186 .vendor = "SST",
12187 .name = "SST25WF040B",
12188 .bustype = BUS_SPI,
12189 .manufacture_id = SANYO_ID, /* See flashchips.h */
12190 .model_id = SST_SST25WF040B,
12191 .total_size = 512,
12192 .page_size = 256,
12193 .feature_bits = FEATURE_WRSR_WREN,
12194 .tested = TEST_UNTESTED,
12195 .probe = probe_spi_rdid,
12196 .probe_timing = TIMING_ZERO,
12197 .block_erasers =
12198 {
12199 {
12200 .eraseblocks = { {4 * 1024, 128} },
12201 .block_erase = spi_block_erase_20,
12202 }, {
12203 .eraseblocks = { {64 * 1024, 8} },
12204 .block_erase = spi_block_erase_d8,
12205 }, {
12206 .eraseblocks = { {512 * 1024, 1} },
12207 .block_erase = spi_block_erase_60,
12208 }, {
12209 .eraseblocks = { {512 * 1024, 1} },
12210 .block_erase = spi_block_erase_c7,
12211 },
12212 },
12213 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12214 .unlock = spi_disable_blockprotect_bp2_srwd,
12215 .write = spi_chip_write_256,
12216 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12217 .voltage = {1650, 1950},
12218 },
12219
12220 {
12221 .vendor = "SST",
12222 .name = "SST25WF080B",
12223 .bustype = BUS_SPI,
12224 .manufacture_id = SANYO_ID, /* See flashchips.h */
12225 .model_id = SST_SST25WF080B,
12226 .total_size = 1024,
12227 .page_size = 256,
12228 .feature_bits = FEATURE_WRSR_WREN,
12229 .tested = TEST_OK_PREW,
12230 .probe = probe_spi_rdid,
12231 .probe_timing = TIMING_ZERO,
12232 .block_erasers =
12233 {
12234 {
12235 .eraseblocks = { {4 * 1024, 256} },
12236 .block_erase = spi_block_erase_20,
12237 }, {
12238 .eraseblocks = { {64 * 1024, 16} },
12239 .block_erase = spi_block_erase_d8,
12240 }, {
12241 .eraseblocks = { {1024 * 1024, 1} },
12242 .block_erase = spi_block_erase_60,
12243 }, {
12244 .eraseblocks = { {1024 * 1024, 1} },
12245 .block_erase = spi_block_erase_c7,
12246 },
12247 },
12248 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12249 .unlock = spi_disable_blockprotect_bp2_srwd,
12250 .write = spi_chip_write_256,
12251 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12252 .voltage = {1650, 1950},
12253 },
12254
12255 {
12256 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012257 .name = "SST25VF080B",
12258 .bustype = BUS_SPI,
12259 .manufacture_id = SST_ID,
12260 .model_id = SST_SST25VF080B,
12261 .total_size = 1024,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_EWSR,
12264 .tested = TEST_OK_PREW,
12265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers =
12268 {
12269 {
12270 .eraseblocks = { {4 * 1024, 256} },
12271 .block_erase = spi_block_erase_20,
12272 }, {
12273 .eraseblocks = { {32 * 1024, 32} },
12274 .block_erase = spi_block_erase_52,
12275 }, {
12276 .eraseblocks = { {64 * 1024, 16} },
12277 .block_erase = spi_block_erase_d8,
12278 }, {
12279 .eraseblocks = { {1024 * 1024, 1} },
12280 .block_erase = spi_block_erase_60,
12281 }, {
12282 .eraseblocks = { {1024 * 1024, 1} },
12283 .block_erase = spi_block_erase_c7,
12284 },
12285 },
12286 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12287 .unlock = spi_disable_blockprotect,
12288 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012289 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012290 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012291 },
12292
12293 {
12294 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012295 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012296 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012298 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012299 .total_size = 2048,
12300 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012301 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012302 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012303 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012304 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012305 .block_erasers =
12306 {
12307 {
12308 .eraseblocks = { {4 * 1024, 512} },
12309 .block_erase = spi_block_erase_20,
12310 }, {
12311 .eraseblocks = { {32 * 1024, 64} },
12312 .block_erase = spi_block_erase_52,
12313 }, {
12314 .eraseblocks = { {64 * 1024, 32} },
12315 .block_erase = spi_block_erase_d8,
12316 }, {
12317 .eraseblocks = { {2 * 1024 * 1024, 1} },
12318 .block_erase = spi_block_erase_60,
12319 }, {
12320 .eraseblocks = { {2 * 1024 * 1024, 1} },
12321 .block_erase = spi_block_erase_c7,
12322 },
12323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012324 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012325 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012326 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012327 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012328 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012329 },
12330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012331 {
12332 .vendor = "SST",
12333 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012334 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012335 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012336 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012337 .total_size = 4096,
12338 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012339 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012340 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012341 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012342 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012343 .block_erasers =
12344 {
12345 {
12346 .eraseblocks = { {4 * 1024, 1024} },
12347 .block_erase = spi_block_erase_20,
12348 }, {
12349 .eraseblocks = { {32 * 1024, 128} },
12350 .block_erase = spi_block_erase_52,
12351 }, {
12352 .eraseblocks = { {64 * 1024, 64} },
12353 .block_erase = spi_block_erase_d8,
12354 }, {
12355 .eraseblocks = { {4 * 1024 * 1024, 1} },
12356 .block_erase = spi_block_erase_60,
12357 }, {
12358 .eraseblocks = { {4 * 1024 * 1024, 1} },
12359 .block_erase = spi_block_erase_c7,
12360 },
12361 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012362 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012363 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012364 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012365 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012366 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012367 },
12368
12369 {
12370 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012371 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012372 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012373 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012374 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012375 .total_size = 8192,
12376 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012377 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012378 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012379 .probe = probe_spi_rdid,
12380 .probe_timing = TIMING_ZERO,
12381 .block_erasers =
12382 {
12383 {
12384 .eraseblocks = { {4 * 1024, 2048} },
12385 .block_erase = spi_block_erase_20,
12386 }, {
12387 .eraseblocks = { {32 * 1024, 256} },
12388 .block_erase = spi_block_erase_52,
12389 }, {
12390 .eraseblocks = { {64 * 1024, 128} },
12391 .block_erase = spi_block_erase_d8,
12392 }, {
12393 .eraseblocks = { {8 * 1024 * 1024, 1} },
12394 .block_erase = spi_block_erase_60,
12395 }, {
12396 .eraseblocks = { {8 * 1024 * 1024, 1} },
12397 .block_erase = spi_block_erase_c7,
12398 },
12399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012400 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012401 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012402 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012404 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012405 },
12406
12407 {
12408 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000012409 .name = "SST25WF512",
12410 .bustype = BUS_SPI,
12411 .manufacture_id = SST_ID,
12412 .model_id = SST_SST25WF512,
12413 .total_size = 64,
12414 .page_size = 256,
12415 .feature_bits = FEATURE_WRSR_EITHER,
12416 .tested = TEST_UNTESTED,
12417 .probe = probe_spi_rdid,
12418 .probe_timing = TIMING_ZERO,
12419 .block_erasers =
12420 {
12421 {
12422 .eraseblocks = { {4 * 1024, 16} },
12423 .block_erase = spi_block_erase_20,
12424 }, {
12425 .eraseblocks = { {32 * 1024, 2} },
12426 .block_erase = spi_block_erase_52,
12427 }, {
12428 .eraseblocks = { {1024 * 64, 1} },
12429 .block_erase = spi_block_erase_60,
12430 }, {
12431 .eraseblocks = { {1024 * 64, 1} },
12432 .block_erase = spi_block_erase_c7,
12433 },
12434 },
Jason Harper43ddef02014-05-04 00:55:24 +000012435 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12436 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012437 .write = spi_aai_write,
12438 .read = spi_chip_read, /* Fast read (0x0B) supported */
12439 .voltage = {1650, 1950},
12440 },
12441
12442 {
12443 .vendor = "SST",
12444 .name = "SST25WF010",
12445 .bustype = BUS_SPI,
12446 .manufacture_id = SST_ID,
12447 .model_id = SST_SST25WF010,
12448 .total_size = 128,
12449 .page_size = 256,
12450 .feature_bits = FEATURE_WRSR_EITHER,
12451 .tested = TEST_UNTESTED,
12452 .probe = probe_spi_rdid,
12453 .probe_timing = TIMING_ZERO,
12454 .block_erasers =
12455 {
12456 {
12457 .eraseblocks = { {4 * 1024, 32} },
12458 .block_erase = spi_block_erase_20,
12459 }, {
12460 .eraseblocks = { {32 * 1024, 4} },
12461 .block_erase = spi_block_erase_52,
12462 }, {
12463 .eraseblocks = { {1024 * 128, 1} },
12464 .block_erase = spi_block_erase_60,
12465 }, {
12466 .eraseblocks = { {1024 * 128, 1} },
12467 .block_erase = spi_block_erase_c7,
12468 },
12469 },
Jason Harper43ddef02014-05-04 00:55:24 +000012470 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12471 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012472 .write = spi_aai_write,
12473 .read = spi_chip_read, /* Fast read (0x0B) supported */
12474 .voltage = {1650, 1950},
12475 },
12476
12477 {
12478 .vendor = "SST",
12479 .name = "SST25WF020",
12480 .bustype = BUS_SPI,
12481 .manufacture_id = SST_ID,
12482 .model_id = SST_SST25WF020,
12483 .total_size = 256,
12484 .page_size = 256,
12485 .feature_bits = FEATURE_WRSR_EITHER,
12486 .tested = TEST_UNTESTED,
12487 .probe = probe_spi_rdid,
12488 .probe_timing = TIMING_ZERO,
12489 .block_erasers =
12490 {
12491 {
12492 .eraseblocks = { {4 * 1024, 64} },
12493 .block_erase = spi_block_erase_20,
12494 }, {
12495 .eraseblocks = { {32 * 1024, 8} },
12496 .block_erase = spi_block_erase_52,
12497 }, {
12498 .eraseblocks = { {64 * 1024, 4} },
12499 .block_erase = spi_block_erase_d8,
12500 }, {
12501 .eraseblocks = { {1024 * 256, 1} },
12502 .block_erase = spi_block_erase_60,
12503 }, {
12504 .eraseblocks = { {1024 * 256, 1} },
12505 .block_erase = spi_block_erase_c7,
12506 },
12507 },
Jason Harper43ddef02014-05-04 00:55:24 +000012508 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12509 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012510 .write = spi_aai_write,
12511 .read = spi_chip_read, /* Fast read (0x0B) supported */
12512 .voltage = {1650, 1950},
12513 },
12514
12515 {
12516 .vendor = "SST",
12517 .name = "SST25WF040",
12518 .bustype = BUS_SPI,
12519 .manufacture_id = SST_ID,
12520 .model_id = SST_SST25WF040,
12521 .total_size = 512,
12522 .page_size = 256,
12523 .feature_bits = FEATURE_WRSR_EITHER,
12524 .tested = TEST_UNTESTED,
12525 .probe = probe_spi_rdid,
12526 .probe_timing = TIMING_ZERO,
12527 .block_erasers =
12528 {
12529 {
12530 .eraseblocks = { {4 * 1024, 128} },
12531 .block_erase = spi_block_erase_20,
12532 }, {
12533 .eraseblocks = { {32 * 1024, 16} },
12534 .block_erase = spi_block_erase_52,
12535 }, {
12536 .eraseblocks = { {64 * 1024, 8} },
12537 .block_erase = spi_block_erase_d8,
12538 }, {
12539 .eraseblocks = { {1024 * 512, 1} },
12540 .block_erase = spi_block_erase_60,
12541 }, {
12542 .eraseblocks = { {1024 * 512, 1} },
12543 .block_erase = spi_block_erase_c7,
12544 },
12545 },
Jason Harper43ddef02014-05-04 00:55:24 +000012546 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12547 .unlock = spi_disable_blockprotect_bp2_srwd,
12548 .write = spi_aai_write,
12549 .read = spi_chip_read, /* Fast read (0x0B) supported */
12550 .voltage = {1650, 1950},
12551 },
12552
12553 {
12554 .vendor = "SST",
12555 .name = "SST25WF080",
12556 .bustype = BUS_SPI,
12557 .manufacture_id = SST_ID,
12558 .model_id = SST_SST25WF080,
12559 .total_size = 1024,
12560 .page_size = 256,
12561 .feature_bits = FEATURE_WRSR_EITHER,
12562 .tested = TEST_OK_PREW,
12563 .probe = probe_spi_rdid,
12564 .probe_timing = TIMING_ZERO,
12565 .block_erasers =
12566 {
12567 {
12568 .eraseblocks = { {4 * 1024, 256} },
12569 .block_erase = spi_block_erase_20,
12570 }, {
12571 .eraseblocks = { {32 * 1024, 32} },
12572 .block_erase = spi_block_erase_52,
12573 }, {
12574 .eraseblocks = { {64 * 1024, 16} },
12575 .block_erase = spi_block_erase_d8,
12576 }, {
12577 .eraseblocks = { {1024 * 1024, 1} },
12578 .block_erase = spi_block_erase_60,
12579 }, {
12580 .eraseblocks = { {1024 * 1024, 1} },
12581 .block_erase = spi_block_erase_c7,
12582 },
12583 },
12584 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12585 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012586 .write = spi_aai_write,
12587 .read = spi_chip_read, /* Fast read (0x0B) supported */
12588 .voltage = {1650, 1950},
12589 },
12590
12591 {
12592 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012593 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012594 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012595 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012596 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012597 .total_size = 512,
12598 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012599 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012600 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012601 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012602 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012603 .block_erasers =
12604 {
12605 {
12606 .eraseblocks = { {128, 4096} },
12607 .block_erase = erase_sector_28sf040,
12608 }, {
12609 .eraseblocks = { {512 * 1024, 1} },
12610 .block_erase = erase_chip_28sf040,
12611 }
12612 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012613 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012614 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012616 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012617 },
12618
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012619 {
12620 .vendor = "SST",
12621 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012622 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012623 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012624 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012625 .total_size = 128,
12626 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012627 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012628 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012629 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012630 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012631 .block_erasers =
12632 {
12633 {
12634 .eraseblocks = { {128 * 1024, 1} },
12635 .block_erase = erase_chip_block_jedec,
12636 }
12637 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012638 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012640 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012641 },
12642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012643 {
12644 .vendor = "SST",
12645 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012646 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012647 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012648 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012649 .total_size = 128,
12650 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012651 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012652 .tested = TEST_UNTESTED,
12653 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012654 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012655 .block_erasers =
12656 {
12657 {
12658 .eraseblocks = { {128 * 1024, 1} },
12659 .block_erase = erase_chip_block_jedec,
12660 }
12661 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012662 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012664 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012665 },
12666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012667 {
12668 .vendor = "SST",
12669 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012670 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012671 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012672 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012673 .total_size = 256,
12674 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012675 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012676 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012677 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012678 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012679 .block_erasers =
12680 {
12681 {
12682 .eraseblocks = { {256 * 1024, 1} },
12683 .block_erase = erase_chip_block_jedec,
12684 }
12685 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012686 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012687 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012688 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012689 },
12690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012691 {
12692 .vendor = "SST",
12693 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012694 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012695 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012696 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012697 .total_size = 256,
12698 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012699 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012700 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012702 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012703 .block_erasers =
12704 {
12705 {
12706 .eraseblocks = { {256 * 1024, 1} },
12707 .block_erase = erase_chip_block_jedec,
12708 }
12709 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012710 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012712 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012713 },
12714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012715 {
12716 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000012717 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012718 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012719 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012720 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012721 .total_size = 64,
12722 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012723 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000012724 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012725 .probe = probe_jedec,
12726 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000012727 .block_erasers =
12728 {
12729 {
12730 .eraseblocks = { {4 * 1024, 16} },
12731 .block_erase = erase_sector_jedec,
12732 }, {
12733 .eraseblocks = { {64 * 1024, 1} },
12734 .block_erase = erase_chip_block_jedec,
12735 }
12736 },
Sean Nelson35727f72010-01-28 23:55:12 +000012737 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012738 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012739 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000012740 },
12741
12742 {
12743 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012744 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012745 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012746 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012747 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012748 .total_size = 128,
12749 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012750 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012751 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012752 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012753 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012754 .block_erasers =
12755 {
12756 {
12757 .eraseblocks = { {4 * 1024, 32} },
12758 .block_erase = erase_sector_jedec,
12759 }, {
12760 .eraseblocks = { {128 * 1024, 1} },
12761 .block_erase = erase_chip_block_jedec,
12762 }
12763 },
Sean Nelson35727f72010-01-28 23:55:12 +000012764 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012765 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012766 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012767 },
12768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012769 {
12770 .vendor = "SST",
12771 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012772 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012773 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012774 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012775 .total_size = 256,
12776 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012777 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000012778 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012779 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012780 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012781 .block_erasers =
12782 {
12783 {
12784 .eraseblocks = { {4 * 1024, 64} },
12785 .block_erase = erase_sector_jedec,
12786 }, {
12787 .eraseblocks = { {256 * 1024, 1} },
12788 .block_erase = erase_chip_block_jedec,
12789 }
12790 },
Sean Nelson35727f72010-01-28 23:55:12 +000012791 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012793 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012794 },
12795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012796 {
12797 .vendor = "SST",
12798 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012799 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012800 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012801 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012802 .total_size = 512,
12803 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012804 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000012805 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012806 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012807 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012808 .block_erasers =
12809 {
12810 {
12811 .eraseblocks = { {4 * 1024, 128} },
12812 .block_erase = erase_sector_jedec,
12813 }, {
12814 .eraseblocks = { {512 * 1024, 1} },
12815 .block_erase = erase_chip_block_jedec,
12816 }
12817 },
Sean Nelson35727f72010-01-28 23:55:12 +000012818 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012819 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012820 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012821 },
12822
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012823 {
12824 .vendor = "SST",
12825 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012826 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012827 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012828 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012829 .total_size = 64,
12830 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012831 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000012832 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012833 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012834 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012835 .block_erasers =
12836 {
12837 {
12838 .eraseblocks = { {4 * 1024, 16} },
12839 .block_erase = erase_sector_jedec,
12840 }, {
12841 .eraseblocks = { {64 * 1024, 1} },
12842 .block_erase = erase_chip_block_jedec,
12843 }
12844 },
Sean Nelson35727f72010-01-28 23:55:12 +000012845 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012846 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012848 },
12849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012850 {
12851 .vendor = "SST",
12852 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012853 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012854 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012855 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012856 .total_size = 128,
12857 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012858 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000012859 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012860 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012861 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012862 .block_erasers =
12863 {
12864 {
12865 .eraseblocks = { {4 * 1024, 32} },
12866 .block_erase = erase_sector_jedec,
12867 }, {
12868 .eraseblocks = { {128 * 1024, 1} },
12869 .block_erase = erase_chip_block_jedec,
12870 }
12871 },
Sean Nelson35727f72010-01-28 23:55:12 +000012872 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012873 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012874 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012875 },
12876
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012877 {
12878 .vendor = "SST",
12879 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012880 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012881 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012882 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012883 .total_size = 256,
12884 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012885 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000012886 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012887 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012888 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012889 .block_erasers =
12890 {
12891 {
12892 .eraseblocks = { {4 * 1024, 64} },
12893 .block_erase = erase_sector_jedec,
12894 }, {
12895 .eraseblocks = { {256 * 1024, 1} },
12896 .block_erase = erase_chip_block_jedec,
12897 }
12898 },
Sean Nelson35727f72010-01-28 23:55:12 +000012899 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012900 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012901 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012902 },
12903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012904 {
12905 .vendor = "SST",
12906 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012907 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012908 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012909 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012910 .total_size = 512,
12911 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012912 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012913 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012914 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012915 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012916 .block_erasers =
12917 {
12918 {
12919 .eraseblocks = { {4 * 1024, 128} },
12920 .block_erase = erase_sector_jedec,
12921 }, {
12922 .eraseblocks = { {512 * 1024, 1} },
12923 .block_erase = erase_chip_block_jedec,
12924 }
12925 },
Sean Nelson35727f72010-01-28 23:55:12 +000012926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012928 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000012929 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012931 {
12932 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000012933 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012934 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012936 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000012937 .total_size = 1024,
12938 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012939 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000012940 .tested = TEST_UNTESTED,
12941 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012942 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012943 .block_erasers =
12944 {
12945 {
12946 .eraseblocks = { {4 * 1024, 256} },
12947 .block_erase = erase_sector_jedec,
12948 }, {
12949 .eraseblocks = { {64 * 1024, 16} },
12950 .block_erase = erase_block_jedec,
12951 }, {
12952 .eraseblocks = { {1024 * 1024, 1} },
12953 .block_erase = erase_chip_block_jedec,
12954 }
12955 },
Sean Nelson35727f72010-01-28 23:55:12 +000012956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012958 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000012959 },
12960
12961 {
12962 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012963 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012964 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012965 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012966 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012967 .total_size = 256,
12968 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012969 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012970 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012971 .probe = probe_jedec,
12972 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012973 .block_erasers =
12974 {
12975 {
12976 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012977 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012978 }, {
12979 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012980 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012981 }, {
12982 .eraseblocks = { {256 * 1024, 1} },
12983 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12984 }
12985 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012986 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012987 .unlock = unlock_sst_fwhub,
12988 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012989 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012990 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012991 },
12992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012993 {
12994 .vendor = "SST",
12995 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012996 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012997 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012998 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012999 .total_size = 384,
13000 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013001 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013002 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013003 .probe = probe_jedec,
13004 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013005 .block_erasers =
13006 {
13007 {
13008 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013009 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013010 }, {
13011 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013012 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013013 }, {
13014 .eraseblocks = { {384 * 1024, 1} },
13015 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13016 }
13017 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013018 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013019 .unlock = unlock_sst_fwhub,
13020 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013022 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013023 },
13024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013025 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013026 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13027 * and is only honored for 64k block erase, but not 4k sector erase.
13028 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013029 .vendor = "SST",
13030 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013031 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013032 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013033 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013034 .total_size = 512,
13035 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013036 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013037 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013038 .probe = probe_jedec,
13039 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013040 .block_erasers =
13041 {
13042 {
13043 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013044 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013045 }, {
13046 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013047 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013048 }, {
13049 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013050 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013051 },
13052 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013053 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013054 .unlock = unlock_sst_fwhub,
13055 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013057 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013058 },
13059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013060 {
13061 .vendor = "SST",
13062 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013063 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013064 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013065 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013066 .total_size = 512,
13067 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013068 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013069 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013070 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013071 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013072 .block_erasers =
13073 {
13074 {
13075 .eraseblocks = { {4 * 1024, 128} },
13076 .block_erase = erase_sector_49lfxxxc,
13077 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013078 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013079 {64 * 1024, 7},
13080 {32 * 1024, 1},
13081 {8 * 1024, 2},
13082 {16 * 1024, 1},
13083 },
Sean Nelson69e58112010-03-23 17:10:28 +000013084 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013085 }
13086 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013087 .printlock = printlock_regspace2_block_eraser_1,
13088 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013089 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013090 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013091 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013092 },
13093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013094 {
13095 .vendor = "SST",
13096 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013097 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013098 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013099 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013100 .total_size = 1024,
13101 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013102 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013103 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013104 .probe = probe_jedec,
13105 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013106 .block_erasers =
13107 {
13108 {
13109 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013110 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013111 }, {
13112 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013113 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013114 }, {
13115 .eraseblocks = { {1024 * 1024, 1} },
13116 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13117 }
13118 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013119 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013120 .unlock = unlock_sst_fwhub,
13121 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013122 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013123 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013124 },
13125
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013126 {
13127 .vendor = "SST",
13128 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013129 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013130 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013131 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013132 .total_size = 1024,
13133 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013134 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013135 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013136 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013137 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013138 .block_erasers =
13139 {
13140 {
13141 .eraseblocks = { {4 * 1024, 256} },
13142 .block_erase = erase_sector_49lfxxxc,
13143 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013144 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013145 {64 * 1024, 15},
13146 {32 * 1024, 1},
13147 {8 * 1024, 2},
13148 {16 * 1024, 1},
13149 },
Sean Nelson69e58112010-03-23 17:10:28 +000013150 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013151 }
13152 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013153 .printlock = printlock_regspace2_block_eraser_1,
13154 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013155 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013156 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013157 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013158 },
13159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013160 {
13161 .vendor = "SST",
13162 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013163 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013164 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013165 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013166 .total_size = 2048,
13167 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013168 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013169 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013170 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013171 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013172 .block_erasers =
13173 {
13174 {
13175 .eraseblocks = { {4 * 1024, 512} },
13176 .block_erase = erase_sector_49lfxxxc,
13177 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013178 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013179 {64 * 1024, 31},
13180 {32 * 1024, 1},
13181 {8 * 1024, 2},
13182 {16 * 1024, 1},
13183 },
Sean Nelson69e58112010-03-23 17:10:28 +000013184 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013185 }
13186 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013187 .printlock = printlock_regspace2_block_eraser_1,
13188 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013189 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013191 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013192 },
13193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013194 {
13195 .vendor = "SST",
13196 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013197 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013198 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013199 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013200 .total_size = 256,
13201 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013202 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013203 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013204 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013205 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013206 .block_erasers =
13207 {
13208 {
13209 .eraseblocks = { {4 * 1024, 64} },
13210 .block_erase = erase_sector_jedec,
13211 }, {
13212 .eraseblocks = { {16 * 1024, 16} },
13213 .block_erase = erase_block_jedec,
13214 }, {
13215 .eraseblocks = { {256 * 1024, 1} },
13216 .block_erase = NULL,
13217 }
13218 },
Sean Nelson35727f72010-01-28 23:55:12 +000013219 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013220 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013221 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013222 },
13223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013224 {
13225 .vendor = "SST",
13226 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013227 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013228 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013229 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013230 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013231 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013232 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013233 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013234 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013235 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013236 .block_erasers =
13237 {
13238 {
13239 .eraseblocks = { {4 * 1024, 64} },
13240 .block_erase = erase_sector_jedec,
13241 }, {
13242 .eraseblocks = { {16 * 1024, 16} },
13243 .block_erase = erase_block_jedec,
13244 }, {
13245 .eraseblocks = { {256 * 1024, 1} },
13246 .block_erase = NULL,
13247 }
13248 },
Sean Nelson35727f72010-01-28 23:55:12 +000013249 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013251 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013252 },
13253
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013254 {
13255 .vendor = "SST",
13256 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013257 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013258 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013259 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013260 .total_size = 512,
13261 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013262 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013263 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013264 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013265 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013266 .block_erasers =
13267 {
13268 {
13269 .eraseblocks = { {4 * 1024, 128} },
13270 .block_erase = erase_sector_jedec,
13271 }, {
13272 .eraseblocks = { {64 * 1024, 8} },
13273 .block_erase = erase_block_jedec,
13274 }, {
13275 .eraseblocks = { {512 * 1024, 1} },
13276 .block_erase = NULL,
13277 }
13278 },
Sean Nelson35727f72010-01-28 23:55:12 +000013279 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013281 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013282 },
13283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013284 {
13285 .vendor = "SST",
13286 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013287 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013288 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013289 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013290 .total_size = 512,
13291 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013292 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013293 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013294 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013295 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013296 .block_erasers =
13297 {
13298 {
13299 .eraseblocks = { {4 * 1024, 128} },
13300 .block_erase = erase_sector_jedec,
13301 }, {
13302 .eraseblocks = { {64 * 1024, 8} },
13303 .block_erase = erase_block_jedec,
13304 }, {
13305 .eraseblocks = { {512 * 1024, 1} },
13306 .block_erase = NULL,
13307 }
13308 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013309 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013312 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013313 },
13314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013315 {
13316 .vendor = "SST",
13317 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013318 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013319 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013320 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013321 .total_size = 1024,
13322 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013323 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013324 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013325 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013326 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013327 .block_erasers =
13328 {
13329 {
13330 .eraseblocks = { {4 * 1024, 256} },
13331 .block_erase = erase_sector_jedec,
13332 }, {
13333 .eraseblocks = { {64 * 1024, 16} },
13334 .block_erase = erase_block_jedec,
13335 }, {
13336 .eraseblocks = { {1024 * 1024, 1} },
13337 .block_erase = NULL,
13338 }
13339 },
Sean Nelson35727f72010-01-28 23:55:12 +000013340 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013341 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013342 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013343 },
13344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013345 {
13346 .vendor = "SST",
13347 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013348 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013349 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013350 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013351 .total_size = 2048,
13352 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013353 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013354 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013355 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013356 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013357 .block_erasers =
13358 {
13359 {
13360 .eraseblocks = { {4 * 1024, 512} },
13361 .block_erase = erase_sector_49lfxxxc,
13362 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013363 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013364 {64 * 1024, 31},
13365 {32 * 1024, 1},
13366 {8 * 1024, 2},
13367 {16 * 1024, 1},
13368 },
Sean Nelson69e58112010-03-23 17:10:28 +000013369 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013370 }
13371 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013372 .printlock = printlock_regspace2_block_eraser_1,
13373 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013374 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013376 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013377 },
13378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013379 {
13380 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013381 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013382 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013383 .manufacture_id = ST_ID,
13384 .model_id = ST_M29F002B,
13385 .total_size = 256,
13386 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013387 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013388 .tested = TEST_UNTESTED,
13389 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013390 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013391 .block_erasers =
13392 {
13393 {
13394 .eraseblocks = {
13395 {16 * 1024, 1},
13396 {8 * 1024, 2},
13397 {32 * 1024, 1},
13398 {64 * 1024, 3},
13399 },
13400 .block_erase = erase_sector_jedec,
13401 }, {
13402 .eraseblocks = { {256 * 1024, 1} },
13403 .block_erase = erase_chip_block_jedec,
13404 }
13405 },
Sean Nelson35727f72010-01-28 23:55:12 +000013406 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013407 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013408 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013409 },
13410
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013411 {
13412 .vendor = "ST",
13413 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013414 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013415 .manufacture_id = ST_ID,
13416 .model_id = ST_M29F002T,
13417 .total_size = 256,
13418 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013419 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013420 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013421 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013422 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013423 .block_erasers =
13424 {
13425 {
13426 .eraseblocks = {
13427 {64 * 1024, 3},
13428 {32 * 1024, 1},
13429 {8 * 1024, 2},
13430 {16 * 1024, 1},
13431 },
13432 .block_erase = erase_sector_jedec,
13433 }, {
13434 .eraseblocks = { {256 * 1024, 1} },
13435 .block_erase = erase_chip_block_jedec,
13436 }
13437 },
Sean Nelson35727f72010-01-28 23:55:12 +000013438 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013439 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013440 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013441 },
13442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013443 {
13444 .vendor = "ST",
13445 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013446 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013447 .manufacture_id = ST_ID,
13448 .model_id = ST_M29F040B,
13449 .total_size = 512,
13450 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013451 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13452 .tested = TEST_UNTESTED,
13453 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013454 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013455 .block_erasers =
13456 {
13457 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013458 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013459 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013460 }, {
13461 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013462 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013463 }
13464 },
Sean Nelson35727f72010-01-28 23:55:12 +000013465 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013466 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013467 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013468 },
13469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013470 {
Sean Nelson35727f72010-01-28 23:55:12 +000013471 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013472 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013473 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013474 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013475 .manufacture_id = ST_ID,
13476 .model_id = ST_M29F400BB,
13477 .total_size = 512,
13478 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013479 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013480 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013481 .probe = probe_jedec,
13482 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013483 .block_erasers =
13484 {
13485 {
13486 .eraseblocks = {
13487 {16 * 1024, 1},
13488 {8 * 1024, 2},
13489 {32 * 1024, 1},
13490 {64 * 1024, 7},
13491 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013492 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013493 }, {
13494 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013495 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013496 }
13497 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013498 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013500 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013501 },
13502 {
13503 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13504 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013505 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013506 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013507 .manufacture_id = ST_ID,
13508 .model_id = ST_M29F400BT,
13509 .total_size = 512,
13510 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013511 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013512 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013513 .probe = probe_jedec,
13514 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013515 .block_erasers =
13516 {
13517 {
13518 .eraseblocks = {
13519 {64 * 1024, 7},
13520 {32 * 1024, 1},
13521 {8 * 1024, 2},
13522 {16 * 1024, 1},
13523 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013524 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013525 }, {
13526 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013527 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013528 }
13529 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013530 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013531 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013532 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013533 },
13534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013535 {
13536 .vendor = "ST",
13537 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013538 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013539 .manufacture_id = ST_ID,
13540 .model_id = ST_M29W010B,
13541 .total_size = 128,
13542 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013543 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013544 .tested = TEST_UNTESTED,
13545 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013546 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013547 .block_erasers =
13548 {
13549 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013550 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013551 .block_erase = erase_sector_jedec,
13552 }, {
13553 .eraseblocks = { {128 * 1024, 1} },
13554 .block_erase = erase_chip_block_jedec,
13555 }
13556 },
Sean Nelson35727f72010-01-28 23:55:12 +000013557 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013559 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013560 },
13561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013562 {
13563 .vendor = "ST",
13564 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013565 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013566 .manufacture_id = ST_ID,
13567 .model_id = ST_M29W040B,
13568 .total_size = 512,
13569 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013570 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013571 .tested = TEST_UNTESTED,
13572 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013573 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013574 .block_erasers =
13575 {
13576 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013577 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013578 .block_erase = erase_sector_jedec,
13579 }, {
13580 .eraseblocks = { {512 * 1024, 1} },
13581 .block_erase = erase_chip_block_jedec,
13582 }
13583 },
Sean Nelson35727f72010-01-28 23:55:12 +000013584 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013585 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013586 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013587 },
13588
Stefan Taunereb582572012-09-21 12:52:50 +000013589 {
13590 .vendor = "ST",
13591 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013592 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000013593 .manufacture_id = ST_ID,
13594 .model_id = ST_M29W512B,
13595 .total_size = 64,
13596 .page_size = 64 * 1024,
13597 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013598 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013599 .probe = probe_jedec,
13600 .probe_timing = TIMING_ZERO,
13601 .block_erasers =
13602 {
13603 {
13604 .eraseblocks = { {64 * 1024, 1} },
13605 .block_erase = erase_chip_block_jedec,
13606 }
13607 },
13608 .write = write_jedec_1,
13609 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013610 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013611 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000013612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013613 {
13614 .vendor = "ST",
13615 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013616 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013617 .manufacture_id = ST_ID,
13618 .model_id = ST_M50FLW040A,
13619 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013620 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013621 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013622 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013623 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013624 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013625 .block_erasers =
13626 {
13627 {
Sean Nelson329bde72010-01-19 16:39:19 +000013628 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013629 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013630 {64 * 1024, 5}, /* block */
13631 {4 * 1024, 16}, /* sector */
13632 {4 * 1024, 16}, /* sector */
13633 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013634 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013635 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013636 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013637 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013638 }
13639 },
Sean Nelson28accc22010-03-19 18:47:06 +000013640 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013641 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013643 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013644 },
13645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013646 {
13647 .vendor = "ST",
13648 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013649 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013650 .manufacture_id = ST_ID,
13651 .model_id = ST_M50FLW040B,
13652 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013653 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013654 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013656 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013657 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013658 .block_erasers =
13659 {
13660 {
Sean Nelson329bde72010-01-19 16:39:19 +000013661 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013662 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013663 {4 * 1024, 16}, /* sector */
13664 {64 * 1024, 5}, /* block */
13665 {4 * 1024, 16}, /* sector */
13666 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013667 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013668 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013669 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013670 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013671 }
13672 },
Sean Nelson28accc22010-03-19 18:47:06 +000013673 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013674 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013676 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013677 },
13678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013679 {
13680 .vendor = "ST",
13681 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013682 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013683 .manufacture_id = ST_ID,
13684 .model_id = ST_M50FLW080A,
13685 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013686 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013687 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013688 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013689 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013690 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013691 .block_erasers =
13692 {
13693 {
Sean Nelson329bde72010-01-19 16:39:19 +000013694 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013695 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013696 {64 * 1024, 13}, /* block */
13697 {4 * 1024, 16}, /* sector */
13698 {4 * 1024, 16}, /* sector */
13699 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013700 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013701 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013702 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013703 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013704 }
13705 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013706 .printlock = printlock_regspace2_block_eraser_0,
13707 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013708 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013709 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013710 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013711 },
13712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013713 {
13714 .vendor = "ST",
13715 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013716 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013717 .manufacture_id = ST_ID,
13718 .model_id = ST_M50FLW080B,
13719 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013720 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013721 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013722 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013723 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013724 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013725 .block_erasers =
13726 {
13727 {
Sean Nelson329bde72010-01-19 16:39:19 +000013728 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013729 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013730 {4 * 1024, 16}, /* sector */
13731 {64 * 1024, 13}, /* block */
13732 {4 * 1024, 16}, /* sector */
13733 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013734 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013735 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013736 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013737 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013738 }
13739 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013740 .printlock = printlock_regspace2_block_eraser_0,
13741 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013742 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013744 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013745 },
13746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013747 {
13748 .vendor = "ST",
13749 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013750 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013751 .manufacture_id = ST_ID,
13752 .model_id = ST_M50FW002,
13753 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000013754 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013755 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013756 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013757 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013758 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013759 .block_erasers =
13760 {
13761 {
13762 .eraseblocks = {
13763 {64 * 1024, 3},
13764 {32 * 1024, 1},
13765 {8 * 1024, 2},
13766 {16 * 1024, 1},
13767 },
Sean Nelson28accc22010-03-19 18:47:06 +000013768 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013769 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000013770 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013771 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000013772 }
13773 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013774 .printlock = printlock_regspace2_block_eraser_0,
13775 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013776 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013777 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013778 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013779 },
13780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013781 {
13782 .vendor = "ST",
13783 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013784 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013785 .manufacture_id = ST_ID,
13786 .model_id = ST_M50FW016,
13787 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000013788 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013789 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013790 .tested = TEST_UNTESTED,
13791 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013792 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013793 .block_erasers =
13794 {
13795 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013796 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000013797 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013798 }
13799 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013800 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013801 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013803 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013804 },
13805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013806 {
13807 .vendor = "ST",
13808 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013809 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013810 .manufacture_id = ST_ID,
13811 .model_id = ST_M50FW040,
13812 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013813 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013814 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000013815 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013816 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013818 .block_erasers =
13819 {
13820 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013821 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013822 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013823 }
13824 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013825 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013826 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013828 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013829 },
13830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013831 {
13832 .vendor = "ST",
13833 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013834 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013835 .manufacture_id = ST_ID,
13836 .model_id = ST_M50FW080,
13837 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013838 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013839 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013840 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013841 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013842 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013843 .block_erasers =
13844 {
13845 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013846 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013847 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013848 }
13849 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013850 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013851 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013853 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013854 },
13855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013856 {
13857 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013858 .name = "M50LPW080",
13859 .bustype = BUS_LPC, /* A/A Mux */
13860 .manufacture_id = ST_ID,
13861 .model_id = ST_M50LPW080,
13862 .total_size = 1024,
13863 .page_size = 0,
13864 .feature_bits = FEATURE_REGISTERMAP,
13865 .tested = TEST_UNTESTED,
13866 .probe = probe_82802ab,
13867 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13868 .block_erasers =
13869 {
13870 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013871 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013872 .block_erase = erase_block_82802ab,
13873 }
13874 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013875 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013876 .write = write_82802ab,
13877 .read = read_memmapped,
13878 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
13879 },
13880
13881 {
13882 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013883 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013884 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013885 .manufacture_id = ST_ID,
13886 .model_id = ST_M50LPW116,
13887 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000013888 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013889 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013890 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013891 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000013892 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013893 .block_erasers =
13894 {
13895 {
13896 .eraseblocks = {
13897 {4 * 1024, 16},
13898 {64 * 1024, 30},
13899 {32 * 1024, 1},
13900 {8 * 1024, 2},
13901 {16 * 1024, 1},
13902 },
Sean Nelson28accc22010-03-19 18:47:06 +000013903 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013904 }
13905 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013906 .printlock = printlock_regspace2_block_eraser_0,
13907 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013908 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013909 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013910 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013911 },
13912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013913 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013914 .vendor = "SyncMOS/MoselVitelic",
13915 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013916 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013917 .manufacture_id = SYNCMOS_MVC_ID,
13918 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013919 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013920 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000013921 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013922 .tested = TEST_UNTESTED,
13923 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013924 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013925 .block_erasers =
13926 {
13927 {
13928 .eraseblocks = { {512, 256} },
13929 .block_erase = erase_sector_jedec,
13930 }, {
13931 .eraseblocks = { {128 * 1024, 1} },
13932 .block_erase = erase_chip_block_jedec,
13933 },
13934 },
Sean Nelson35727f72010-01-28 23:55:12 +000013935 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013937 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013938 },
13939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013940 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013941 .vendor = "SyncMOS/MoselVitelic",
13942 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013943 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013944 .manufacture_id = SYNCMOS_MVC_ID,
13945 .model_id = SM_MVC_29C51001T,
13946 .total_size = 128,
13947 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000013948 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013949 .tested = TEST_UNTESTED,
13950 .probe = probe_jedec,
13951 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13952 .block_erasers =
13953 {
13954 {
13955 .eraseblocks = { {512, 256} },
13956 .block_erase = erase_sector_jedec,
13957 }, {
13958 .eraseblocks = { {128 * 1024, 1} },
13959 .block_erase = erase_chip_block_jedec,
13960 },
13961 },
13962 .write = write_jedec_1,
13963 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013964 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013965 },
13966
13967 {
13968 .vendor = "SyncMOS/MoselVitelic",
13969 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013970 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013971 .manufacture_id = SYNCMOS_MVC_ID,
13972 .model_id = SM_MVC_29C51002B,
13973 .total_size = 256,
13974 .page_size = 512,
13975 .feature_bits = FEATURE_EITHER_RESET,
13976 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013977 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013978 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013979 .block_erasers =
13980 {
13981 {
13982 .eraseblocks = { {512, 512} },
13983 .block_erase = erase_sector_jedec,
13984 }, {
13985 .eraseblocks = { {256 * 1024, 1} },
13986 .block_erase = erase_chip_block_jedec,
13987 },
13988 },
Sean Nelson35727f72010-01-28 23:55:12 +000013989 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013990 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013991 },
13992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013993 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013994 .vendor = "SyncMOS/MoselVitelic",
13995 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013996 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013997 .manufacture_id = SYNCMOS_MVC_ID,
13998 .model_id = SM_MVC_29C51002T,
13999 .total_size = 256,
14000 .page_size = 512,
14001 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014002 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014003 .probe = probe_jedec,
14004 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14005 .block_erasers =
14006 {
14007 {
14008 .eraseblocks = { {512, 512} },
14009 .block_erase = erase_sector_jedec,
14010 }, {
14011 .eraseblocks = { {256 * 1024, 1} },
14012 .block_erase = erase_chip_block_jedec,
14013 },
14014 },
14015 .write = write_jedec_1,
14016 .read = read_memmapped,
14017 },
14018
14019 {
14020 .vendor = "SyncMOS/MoselVitelic",
14021 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014022 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014023 .manufacture_id = SYNCMOS_MVC_ID,
14024 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014025 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014026 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014027 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014028 .tested = TEST_UNTESTED,
14029 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014030 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014031 .block_erasers =
14032 {
14033 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014034 .eraseblocks = { {1024, 512} },
14035 .block_erase = erase_sector_jedec,
14036 }, {
14037 .eraseblocks = { {512 * 1024, 1} },
14038 .block_erase = erase_chip_block_jedec,
14039 },
14040 },
14041 .write = write_jedec_1,
14042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014043 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014044 },
14045
14046 {
14047 .vendor = "SyncMOS/MoselVitelic",
14048 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014049 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014050 .manufacture_id = SYNCMOS_MVC_ID,
14051 .model_id = SM_MVC_29C51004T,
14052 .total_size = 512,
14053 .page_size = 1024,
14054 .feature_bits = FEATURE_EITHER_RESET,
14055 .tested = TEST_UNTESTED,
14056 .probe = probe_jedec,
14057 .probe_timing = TIMING_ZERO,
14058 .block_erasers =
14059 {
14060 {
14061 .eraseblocks = { {1024, 512} },
14062 .block_erase = erase_sector_jedec,
14063 }, {
14064 .eraseblocks = { {512 * 1024, 1} },
14065 .block_erase = erase_chip_block_jedec,
14066 },
14067 },
14068 .write = write_jedec_1,
14069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014070 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014071 },
14072
14073 {
14074 .vendor = "SyncMOS/MoselVitelic",
14075 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014076 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014077 .manufacture_id = SYNCMOS_MVC_ID,
14078 .model_id = SM_MVC_29C31004B,
14079 .total_size = 512,
14080 .page_size = 1024,
14081 .feature_bits = FEATURE_EITHER_RESET,
14082 .tested = TEST_UNTESTED,
14083 .probe = probe_jedec,
14084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14085 .block_erasers =
14086 {
14087 {
14088 .eraseblocks = { {1024, 512} },
14089 .block_erase = erase_sector_jedec,
14090 }, {
14091 .eraseblocks = { {512 * 1024, 1} },
14092 .block_erase = erase_chip_block_jedec,
14093 },
14094 },
14095 .write = write_jedec_1,
14096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014097 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014098 },
14099
14100 {
14101 .vendor = "SyncMOS/MoselVitelic",
14102 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014103 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014104 .manufacture_id = SYNCMOS_MVC_ID,
14105 .model_id = SM_MVC_29C31004T,
14106 .total_size = 512,
14107 .page_size = 1024,
14108 .feature_bits = FEATURE_EITHER_RESET,
14109 .tested = TEST_UNTESTED,
14110 .probe = probe_jedec,
14111 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14112 .block_erasers =
14113 {
14114 {
14115 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014116 .block_erase = erase_sector_jedec,
14117 }, {
14118 .eraseblocks = { {512 * 1024, 1} },
14119 .block_erase = erase_chip_block_jedec,
14120 },
14121 },
Sean Nelson35727f72010-01-28 23:55:12 +000014122 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014123 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014124 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014125 },
14126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014127 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014128 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014129 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014130 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014131 .manufacture_id = TI_OLD_ID,
14132 .model_id = TI_TMS29F002RB,
14133 .total_size = 256,
14134 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014135 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014136 .tested = TEST_UNTESTED,
14137 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014138 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014139 .block_erasers =
14140 {
14141 {
14142 .eraseblocks = {
14143 {16 * 1024, 1},
14144 {8 * 1024, 2},
14145 {32 * 1024, 1},
14146 {64 * 1024, 3},
14147 },
14148 .block_erase = erase_sector_jedec,
14149 }, {
14150 .eraseblocks = { {256 * 1024, 1} },
14151 .block_erase = erase_chip_block_jedec,
14152 },
14153 },
Sean Nelson35727f72010-01-28 23:55:12 +000014154 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014155 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014156 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014157 },
14158
14159 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014160 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014161 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014162 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014163 .manufacture_id = TI_OLD_ID,
14164 .model_id = TI_TMS29F002RT,
14165 .total_size = 256,
14166 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014167 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014168 .tested = TEST_UNTESTED,
14169 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014170 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014171 .block_erasers =
14172 {
14173 {
14174 .eraseblocks = {
14175 {64 * 1024, 3},
14176 {32 * 1024, 1},
14177 {8 * 1024, 2},
14178 {16 * 1024, 1},
14179 },
14180 .block_erase = erase_sector_jedec,
14181 }, {
14182 .eraseblocks = { {256 * 1024, 1} },
14183 .block_erase = erase_chip_block_jedec,
14184 },
14185 },
Sean Nelson35727f72010-01-28 23:55:12 +000014186 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014188 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014189 },
14190
14191 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014192 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014193 .name = "W25Q40.V",
14194 .bustype = BUS_SPI,
14195 .manufacture_id = WINBOND_NEX_ID,
14196 .model_id = WINBOND_NEX_W25Q40_V,
14197 .total_size = 512,
14198 .page_size = 256,
14199 /* supports SFDP */
14200 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014202 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014203 .probe = probe_spi_rdid,
14204 .probe_timing = TIMING_ZERO,
14205 .block_erasers =
14206 {
14207 {
14208 .eraseblocks = { {4 * 1024, 128} },
14209 .block_erase = spi_block_erase_20,
14210 }, {
14211 .eraseblocks = { {32 * 1024, 16} },
14212 .block_erase = spi_block_erase_52,
14213 }, {
14214 .eraseblocks = { {64 * 1024, 8} },
14215 .block_erase = spi_block_erase_d8,
14216 }, {
14217 .eraseblocks = { {512 * 1024, 1} },
14218 .block_erase = spi_block_erase_60,
14219 }, {
14220 .eraseblocks = { {512 * 1024, 1} },
14221 .block_erase = spi_block_erase_c7,
14222 }
14223 },
14224 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14225 .unlock = spi_disable_blockprotect,
14226 .write = spi_chip_write_256, /* Multi I/O supported */
14227 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14228 .voltage = {2700, 3600},
14229 },
14230
14231 {
14232 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014233 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014234 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014235 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014236 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014237 .total_size = 1024,
14238 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014239 /* supports SFDP */
14240 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014241 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014242 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014243 .probe = probe_spi_rdid,
14244 .probe_timing = TIMING_ZERO,
14245 .block_erasers =
14246 {
14247 {
14248 .eraseblocks = { {4 * 1024, 256} },
14249 .block_erase = spi_block_erase_20,
14250 }, {
14251 .eraseblocks = { {32 * 1024, 32} },
14252 .block_erase = spi_block_erase_52,
14253 }, {
14254 .eraseblocks = { {64 * 1024, 16} },
14255 .block_erase = spi_block_erase_d8,
14256 }, {
14257 .eraseblocks = { {1024 * 1024, 1} },
14258 .block_erase = spi_block_erase_60,
14259 }, {
14260 .eraseblocks = { {1024 * 1024, 1} },
14261 .block_erase = spi_block_erase_c7,
14262 }
14263 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014264 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014265 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014266 .write = spi_chip_write_256,
14267 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014268 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014269 },
14270
14271 {
14272 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014273 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014274 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014275 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014276 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014277 .total_size = 2048,
14278 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014279 /* supports SFDP */
14280 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014281 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014282 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014283 .probe = probe_spi_rdid,
14284 .probe_timing = TIMING_ZERO,
14285 .block_erasers =
14286 {
14287 {
14288 .eraseblocks = { {4 * 1024, 512} },
14289 .block_erase = spi_block_erase_20,
14290 }, {
14291 .eraseblocks = { {32 * 1024, 64} },
14292 .block_erase = spi_block_erase_52,
14293 }, {
14294 .eraseblocks = { {64 * 1024, 32} },
14295 .block_erase = spi_block_erase_d8,
14296 }, {
14297 .eraseblocks = { {2 * 1024 * 1024, 1} },
14298 .block_erase = spi_block_erase_60,
14299 }, {
14300 .eraseblocks = { {2 * 1024 * 1024, 1} },
14301 .block_erase = spi_block_erase_c7,
14302 }
14303 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014304 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014305 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014306 .write = spi_chip_write_256,
14307 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014308 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014309 },
14310
14311 {
14312 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014313 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014314 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014315 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014316 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014317 .total_size = 4096,
14318 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014319 /* supports SFDP */
14320 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014322 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014323 .probe = probe_spi_rdid,
14324 .probe_timing = TIMING_ZERO,
14325 .block_erasers =
14326 {
14327 {
14328 .eraseblocks = { {4 * 1024, 1024} },
14329 .block_erase = spi_block_erase_20,
14330 }, {
14331 .eraseblocks = { {32 * 1024, 128} },
14332 .block_erase = spi_block_erase_52,
14333 }, {
14334 .eraseblocks = { {64 * 1024, 64} },
14335 .block_erase = spi_block_erase_d8,
14336 }, {
14337 .eraseblocks = { {4 * 1024 * 1024, 1} },
14338 .block_erase = spi_block_erase_60,
14339 }, {
14340 .eraseblocks = { {4 * 1024 * 1024, 1} },
14341 .block_erase = spi_block_erase_c7,
14342 }
14343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014345 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014346 .write = spi_chip_write_256,
14347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014348 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014349 },
14350
14351 {
14352 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014353 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014354 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000014355 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014356 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000014357 .total_size = 8192,
14358 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014359 /* supports SFDP */
14360 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014361 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014362 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000014363 .probe = probe_spi_rdid,
14364 .probe_timing = TIMING_ZERO,
14365 .block_erasers =
14366 {
14367 {
14368 .eraseblocks = { {4 * 1024, 2048} },
14369 .block_erase = spi_block_erase_20,
14370 }, {
14371 .eraseblocks = { {32 * 1024, 256} },
14372 .block_erase = spi_block_erase_52,
14373 }, {
14374 .eraseblocks = { {64 * 1024, 128} },
14375 .block_erase = spi_block_erase_d8,
14376 }, {
14377 .eraseblocks = { {8 * 1024 * 1024, 1} },
14378 .block_erase = spi_block_erase_60,
14379 }, {
14380 .eraseblocks = { {8 * 1024 * 1024, 1} },
14381 .block_erase = spi_block_erase_c7,
14382 }
14383 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014384 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014385 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000014386 .write = spi_chip_write_256,
14387 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014388 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000014389 },
14390
14391 {
14392 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014393 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014394 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014395 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014396 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014397 .total_size = 16384,
14398 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014399 /* supports SFDP */
14400 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014402 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014403 .probe = probe_spi_rdid,
14404 .probe_timing = TIMING_ZERO,
14405 .block_erasers =
14406 {
14407 {
14408 .eraseblocks = { {4 * 1024, 4096} },
14409 .block_erase = spi_block_erase_20,
14410 }, {
14411 .eraseblocks = { {32 * 1024, 512} },
14412 .block_erase = spi_block_erase_52,
14413 }, {
14414 .eraseblocks = { {64 * 1024, 256} },
14415 .block_erase = spi_block_erase_d8,
14416 }, {
14417 .eraseblocks = { {16 * 1024 * 1024, 1} },
14418 .block_erase = spi_block_erase_60,
14419 }, {
14420 .eraseblocks = { {16 * 1024 * 1024, 1} },
14421 .block_erase = spi_block_erase_c7,
14422 }
14423 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014425 .unlock = spi_disable_blockprotect,
14426 .write = spi_chip_write_256,
14427 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014428 .voltage = {2700, 3600},
14429 },
14430
14431 {
14432 .vendor = "Winbond",
14433 .name = "W25Q20.W",
14434 .bustype = BUS_SPI,
14435 .manufacture_id = WINBOND_NEX_ID,
14436 .model_id = WINBOND_NEX_W25Q20_W,
14437 .total_size = 256,
14438 .page_size = 256,
14439 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14441 .tested = TEST_UNTESTED,
14442 .probe = probe_spi_rdid,
14443 .probe_timing = TIMING_ZERO,
14444 .block_erasers =
14445 {
14446 {
14447 .eraseblocks = { {4 * 1024, 64} },
14448 .block_erase = spi_block_erase_20,
14449 }, {
14450 .eraseblocks = { {32 * 1024, 8} },
14451 .block_erase = spi_block_erase_52,
14452 }, {
14453 .eraseblocks = { {64 * 1024, 4} },
14454 .block_erase = spi_block_erase_d8,
14455 }, {
14456 .eraseblocks = { {256 * 1024, 1} },
14457 .block_erase = spi_block_erase_60,
14458 }, {
14459 .eraseblocks = { {256 * 1024, 1} },
14460 .block_erase = spi_block_erase_c7,
14461 }
14462 },
14463 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14464 .unlock = spi_disable_blockprotect,
14465 .write = spi_chip_write_256,
14466 .read = spi_chip_read,
14467 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14468 },
14469
14470 {
14471 .vendor = "Winbond",
14472 .name = "W25Q40.W",
14473 .bustype = BUS_SPI,
14474 .manufacture_id = WINBOND_NEX_ID,
14475 .model_id = WINBOND_NEX_W25Q40_W,
14476 .total_size = 512,
14477 .page_size = 256,
14478 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14480 .tested = TEST_UNTESTED,
14481 .probe = probe_spi_rdid,
14482 .probe_timing = TIMING_ZERO,
14483 .block_erasers =
14484 {
14485 {
14486 .eraseblocks = { {4 * 1024, 128} },
14487 .block_erase = spi_block_erase_20,
14488 }, {
14489 .eraseblocks = { {32 * 1024, 16} },
14490 .block_erase = spi_block_erase_52,
14491 }, {
14492 .eraseblocks = { {64 * 1024, 8} },
14493 .block_erase = spi_block_erase_d8,
14494 }, {
14495 .eraseblocks = { {512 * 1024, 1} },
14496 .block_erase = spi_block_erase_60,
14497 }, {
14498 .eraseblocks = { {512 * 1024, 1} },
14499 .block_erase = spi_block_erase_c7,
14500 }
14501 },
14502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14503 .unlock = spi_disable_blockprotect,
14504 .write = spi_chip_write_256,
14505 .read = spi_chip_read,
14506 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14507 },
14508
14509 {
14510 .vendor = "Winbond",
14511 .name = "W25Q80.W",
14512 .bustype = BUS_SPI,
14513 .manufacture_id = WINBOND_NEX_ID,
14514 .model_id = WINBOND_NEX_W25Q80_W,
14515 .total_size = 1024,
14516 .page_size = 256,
14517 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14518 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014519 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014520 .probe = probe_spi_rdid,
14521 .probe_timing = TIMING_ZERO,
14522 .block_erasers =
14523 {
14524 {
14525 .eraseblocks = { {4 * 1024, 256} },
14526 .block_erase = spi_block_erase_20,
14527 }, {
14528 .eraseblocks = { {32 * 1024, 32} },
14529 .block_erase = spi_block_erase_52,
14530 }, {
14531 .eraseblocks = { {64 * 1024, 16} },
14532 .block_erase = spi_block_erase_d8,
14533 }, {
14534 .eraseblocks = { {1 * 1024 * 1024, 1} },
14535 .block_erase = spi_block_erase_60,
14536 }, {
14537 .eraseblocks = { {1 * 1024 * 1024, 1} },
14538 .block_erase = spi_block_erase_c7,
14539 }
14540 },
14541 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14542 .unlock = spi_disable_blockprotect,
14543 .write = spi_chip_write_256,
14544 .read = spi_chip_read,
14545 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14546 },
14547
14548 {
14549 .vendor = "Winbond",
14550 .name = "W25Q16.W",
14551 .bustype = BUS_SPI,
14552 .manufacture_id = WINBOND_NEX_ID,
14553 .model_id = WINBOND_NEX_W25Q16_W,
14554 .total_size = 2048,
14555 .page_size = 256,
14556 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14557 /* QPI enable 0x38, disable 0xFF */
14558 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14559 .tested = TEST_UNTESTED,
14560 .probe = probe_spi_rdid,
14561 .probe_timing = TIMING_ZERO,
14562 .block_erasers =
14563 {
14564 {
14565 .eraseblocks = { {4 * 1024, 512} },
14566 .block_erase = spi_block_erase_20,
14567 }, {
14568 .eraseblocks = { {32 * 1024, 64} },
14569 .block_erase = spi_block_erase_52,
14570 }, {
14571 .eraseblocks = { {64 * 1024, 32} },
14572 .block_erase = spi_block_erase_d8,
14573 }, {
14574 .eraseblocks = { {2 * 1024 * 1024, 1} },
14575 .block_erase = spi_block_erase_60,
14576 }, {
14577 .eraseblocks = { {2 * 1024 * 1024, 1} },
14578 .block_erase = spi_block_erase_c7,
14579 }
14580 },
14581 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14582 .unlock = spi_disable_blockprotect,
14583 .write = spi_chip_write_256,
14584 .read = spi_chip_read,
14585 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14586 },
14587
14588 {
14589 .vendor = "Winbond",
14590 .name = "W25Q32.W",
14591 .bustype = BUS_SPI,
14592 .manufacture_id = WINBOND_NEX_ID,
14593 .model_id = WINBOND_NEX_W25Q32_W,
14594 .total_size = 4096,
14595 .page_size = 256,
14596 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14597 /* QPI enable 0x38, disable 0xFF */
14598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14599 .tested = TEST_OK_PREW,
14600 .probe = probe_spi_rdid,
14601 .probe_timing = TIMING_ZERO,
14602 .block_erasers =
14603 {
14604 {
14605 .eraseblocks = { {4 * 1024, 1024} },
14606 .block_erase = spi_block_erase_20,
14607 }, {
14608 .eraseblocks = { {32 * 1024, 128} },
14609 .block_erase = spi_block_erase_52,
14610 }, {
14611 .eraseblocks = { {64 * 1024, 64} },
14612 .block_erase = spi_block_erase_d8,
14613 }, {
14614 .eraseblocks = { {4 * 1024 * 1024, 1} },
14615 .block_erase = spi_block_erase_60,
14616 }, {
14617 .eraseblocks = { {4 * 1024 * 1024, 1} },
14618 .block_erase = spi_block_erase_c7,
14619 }
14620 },
14621 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14622 .unlock = spi_disable_blockprotect,
14623 .write = spi_chip_write_256,
14624 .read = spi_chip_read,
14625 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14626 },
14627
14628 {
14629 .vendor = "Winbond",
14630 .name = "W25Q64.W",
14631 .bustype = BUS_SPI,
14632 .manufacture_id = WINBOND_NEX_ID,
14633 .model_id = WINBOND_NEX_W25Q64_W,
14634 .total_size = 8192,
14635 .page_size = 256,
14636 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14637 /* QPI enable 0x38, disable 0xFF */
14638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014639 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014640 .probe = probe_spi_rdid,
14641 .probe_timing = TIMING_ZERO,
14642 .block_erasers =
14643 {
14644 {
14645 .eraseblocks = { {4 * 1024, 2048} },
14646 .block_erase = spi_block_erase_20,
14647 }, {
14648 .eraseblocks = { {32 * 1024, 256} },
14649 .block_erase = spi_block_erase_52,
14650 }, {
14651 .eraseblocks = { {64 * 1024, 128} },
14652 .block_erase = spi_block_erase_d8,
14653 }, {
14654 .eraseblocks = { {8 * 1024 * 1024, 1} },
14655 .block_erase = spi_block_erase_60,
14656 }, {
14657 .eraseblocks = { {8 * 1024 * 1024, 1} },
14658 .block_erase = spi_block_erase_c7,
14659 }
14660 },
14661 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14662 .unlock = spi_disable_blockprotect,
14663 .write = spi_chip_write_256,
14664 .read = spi_chip_read,
14665 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014666 },
14667
14668 {
14669 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014670 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014672 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014673 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014674 .total_size = 128,
14675 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014676 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014677 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014679 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014680 .block_erasers =
14681 {
14682 {
14683 .eraseblocks = { {4 * 1024, 32} },
14684 .block_erase = spi_block_erase_20,
14685 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014686 .eraseblocks = { {64 * 1024, 2} },
14687 .block_erase = spi_block_erase_d8,
14688 }, {
14689 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014690 .block_erase = spi_block_erase_c7,
14691 }
14692 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014693 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014694 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014695 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014696 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014697 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014698 },
14699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014700 {
14701 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014702 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014703 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014704 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014705 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014706 .total_size = 256,
14707 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014708 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014709 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014710 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014711 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014712 .block_erasers =
14713 {
14714 {
14715 .eraseblocks = { {4 * 1024, 64} },
14716 .block_erase = spi_block_erase_20,
14717 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014718 .eraseblocks = { {64 * 1024, 4} },
14719 .block_erase = spi_block_erase_d8,
14720 }, {
14721 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014722 .block_erase = spi_block_erase_c7,
14723 }
14724 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014725 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014726 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014727 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014728 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014729 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014730 },
14731
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014732 {
14733 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014734 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014735 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014736 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014737 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014738 .total_size = 512,
14739 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014740 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000014741 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014742 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014743 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014744 .block_erasers =
14745 {
14746 {
14747 .eraseblocks = { {4 * 1024, 128} },
14748 .block_erase = spi_block_erase_20,
14749 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014750 .eraseblocks = { {64 * 1024, 8} },
14751 .block_erase = spi_block_erase_d8,
14752 }, {
14753 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014754 .block_erase = spi_block_erase_c7,
14755 }
14756 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014757 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014758 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014759 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014760 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014761 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014762 },
14763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014764 {
14765 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014766 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014768 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014769 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014770 .total_size = 1024,
14771 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014772 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000014773 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014774 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014775 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014776 .block_erasers =
14777 {
14778 {
14779 .eraseblocks = { {4 * 1024, 256} },
14780 .block_erase = spi_block_erase_20,
14781 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014782 .eraseblocks = { {64 * 1024, 16} },
14783 .block_erase = spi_block_erase_d8,
14784 }, {
14785 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014786 .block_erase = spi_block_erase_c7,
14787 }
14788 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014789 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014790 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014791 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014793 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014794 },
14795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014796 {
14797 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014798 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014799 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000014800 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014801 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000014802 .total_size = 2048,
14803 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014804 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000014805 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000014806 .probe = probe_spi_rdid,
14807 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014808 .block_erasers =
14809 {
14810 {
14811 .eraseblocks = { {4 * 1024, 512} },
14812 .block_erase = spi_block_erase_20,
14813 }, {
14814 .eraseblocks = { {32 * 1024, 64} },
14815 .block_erase = spi_block_erase_52,
14816 }, {
14817 .eraseblocks = { {64 * 1024, 32} },
14818 .block_erase = spi_block_erase_d8,
14819 }, {
14820 .eraseblocks = { {2 * 1024 * 1024, 1} },
14821 .block_erase = spi_block_erase_60,
14822 }, {
14823 .eraseblocks = { {2 * 1024 * 1024, 1} },
14824 .block_erase = spi_block_erase_c7,
14825 }
14826 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014827 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014828 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000014829 .write = spi_chip_write_256,
14830 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014831 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000014832 },
14833
14834 {
14835 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014836 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014837 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000014838 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014839 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000014840 .total_size = 4096,
14841 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014842 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014843 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000014844 .probe = probe_spi_rdid,
14845 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014846 .block_erasers =
14847 {
14848 {
14849 .eraseblocks = { {4 * 1024, 1024} },
14850 .block_erase = spi_block_erase_20,
14851 }, {
14852 .eraseblocks = { {32 * 1024, 128} },
14853 .block_erase = spi_block_erase_52,
14854 }, {
14855 .eraseblocks = { {64 * 1024, 64} },
14856 .block_erase = spi_block_erase_d8,
14857 }, {
14858 .eraseblocks = { {4 * 1024 * 1024, 1} },
14859 .block_erase = spi_block_erase_60,
14860 }, {
14861 .eraseblocks = { {4 * 1024 * 1024, 1} },
14862 .block_erase = spi_block_erase_c7,
14863 }
14864 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014865 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014866 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000014867 .write = spi_chip_write_256,
14868 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014869 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000014870 },
14871
14872 {
14873 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014874 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014875 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000014876 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014877 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000014878 .total_size = 8192,
14879 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014880 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014881 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000014882 .probe = probe_spi_rdid,
14883 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014884 .block_erasers =
14885 {
14886 {
14887 .eraseblocks = { {4 * 1024, 2048} },
14888 .block_erase = spi_block_erase_20,
14889 }, {
14890 .eraseblocks = { {32 * 1024, 256} },
14891 .block_erase = spi_block_erase_52,
14892 }, {
14893 .eraseblocks = { {64 * 1024, 128} },
14894 .block_erase = spi_block_erase_d8,
14895 }, {
14896 .eraseblocks = { {8 * 1024 * 1024, 1} },
14897 .block_erase = spi_block_erase_60,
14898 }, {
14899 .eraseblocks = { {8 * 1024 * 1024, 1} },
14900 .block_erase = spi_block_erase_c7,
14901 }
14902 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014904 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000014905 .write = spi_chip_write_256,
14906 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014907 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000014908 },
14909
14910 {
14911 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000014912 .name = "W29C512A/W29EE512",
14913 .bustype = BUS_PARALLEL,
14914 .manufacture_id = WINBOND_ID,
14915 .model_id = WINBOND_W29C512A,
14916 .total_size = 64,
14917 .page_size = 128,
14918 .feature_bits = FEATURE_LONG_RESET,
14919 .tested = TEST_OK_PREW,
14920 .probe = probe_jedec,
14921 .probe_timing = 10,
14922 .block_erasers =
14923 {
14924 {
14925 .eraseblocks = { {64 * 1024, 1} },
14926 .block_erase = erase_chip_block_jedec,
14927 }
14928 },
14929 .write = write_jedec,
14930 .read = read_memmapped,
14931 .voltage = {4500, 5500},
14932 },
14933
14934 {
14935 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014936 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014937 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014938 .manufacture_id = WINBOND_ID,
14939 .model_id = WINBOND_W29C010,
14940 .total_size = 128,
14941 .page_size = 128,
14942 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014943 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014944 .probe = probe_w29ee011,
14945 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
14946 .block_erasers =
14947 {
14948 {
14949 .eraseblocks = { {128 * 1024, 1} },
14950 .block_erase = erase_chip_block_jedec,
14951 }
14952 },
14953 .write = write_jedec,
14954 .read = read_memmapped,
14955 },
14956
14957 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
14958 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014959 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014960 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014961 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014962 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014963 .total_size = 128,
14964 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014965 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000014966 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014967 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014968 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014969 .block_erasers =
14970 {
14971 {
14972 .eraseblocks = { {128 * 1024, 1} },
14973 .block_erase = erase_chip_block_jedec,
14974 }
14975 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014976 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014977 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014978 },
14979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014980 {
14981 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014982 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014983 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014984 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014985 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014986 .total_size = 256,
14987 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014988 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014989 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014990 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014991 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014992 .block_erasers =
14993 {
14994 {
14995 .eraseblocks = { {256 * 1024, 1} },
14996 .block_erase = erase_chip_block_jedec,
14997 }
14998 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014999 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015001 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015002 },
15003
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015004 {
15005 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015006 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015007 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015008 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015009 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015010 .total_size = 512,
15011 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000015012 .feature_bits = FEATURE_LONG_RESET,
15013 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015014 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015015 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015016 .block_erasers =
15017 {
15018 {
15019 .eraseblocks = { {512 * 1024, 1} },
15020 .block_erase = erase_chip_block_jedec,
15021 }
15022 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015023 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015024 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015025 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015026 },
15027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015028 {
15029 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000015030 .name = "W29GL032CB",
15031 .bustype = BUS_PARALLEL,
15032 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15033 .model_id = WINBOND_W29GL032CB,
15034 .total_size = 4096,
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 = {
15044 {8 * 1024, 8},
15045 {64 * 1024, 63},
15046 },
15047 .block_erase = erase_sector_jedec,
15048 }, {
15049 .eraseblocks = { {4 * 1024 * 1024, 1} },
15050 .block_erase = erase_chip_block_jedec,
15051 },
15052 },
15053 .write = write_jedec_1,
15054 .read = read_memmapped,
15055 .voltage = {2700, 3600},
15056 },
15057
15058 {
15059 .vendor = "Winbond",
15060 .name = "W29GL032CT",
15061 .bustype = BUS_PARALLEL,
15062 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15063 .model_id = WINBOND_W29GL032CT,
15064 .total_size = 4096,
15065 .page_size = 128 * 1024, /* actual page size is 16 */
15066 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15067 .tested = TEST_UNTESTED,
15068 .probe = probe_jedec_29gl,
15069 .probe_timing = TIMING_ZERO,
15070 .block_erasers =
15071 {
15072 {
15073 .eraseblocks = {
15074 {64 * 1024, 63},
15075 {8 * 1024, 8},
15076 },
15077 .block_erase = erase_sector_jedec,
15078 }, {
15079 .eraseblocks = { {4 * 1024 * 1024, 1} },
15080 .block_erase = erase_chip_block_jedec,
15081 },
15082 },
15083 .write = write_jedec_1,
15084 .read = read_memmapped,
15085 .voltage = {2700, 3600},
15086 },
15087
15088 {
15089 .vendor = "Winbond",
15090 .name = "W29GL032CH/L",
15091 .bustype = BUS_PARALLEL,
15092 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15093 .model_id = WINBOND_W29GL032CHL,
15094 .total_size = 4096,
15095 .page_size = 128 * 1024, /* actual page size is 16 */
15096 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15097 .tested = TEST_UNTESTED,
15098 .probe = probe_jedec_29gl,
15099 .probe_timing = TIMING_ZERO,
15100 .block_erasers =
15101 {
15102 {
15103 .eraseblocks = { {64 * 1024, 64} },
15104 .block_erase = erase_sector_jedec,
15105 }, {
15106 .eraseblocks = { {4 * 1024 * 1024, 1} },
15107 .block_erase = erase_chip_block_jedec,
15108 },
15109 },
15110 .write = write_jedec_1,
15111 .read = read_memmapped,
15112 .voltage = {2700, 3600},
15113 },
15114
15115 {
15116 .vendor = "Winbond",
15117 .name = "W29GL064CB",
15118 .bustype = BUS_PARALLEL,
15119 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15120 .model_id = WINBOND_W29GL064CB,
15121 .total_size = 8192,
15122 .page_size = 128 * 1024, /* actual page size is 16 */
15123 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15124 .tested = TEST_UNTESTED,
15125 .probe = probe_jedec_29gl,
15126 .probe_timing = TIMING_ZERO,
15127 .block_erasers =
15128 {
15129 {
15130 .eraseblocks = {
15131 {8 * 1024, 8},
15132 {64 * 1024, 127},
15133 },
15134 .block_erase = erase_sector_jedec,
15135 }, {
15136 .eraseblocks = { {8 * 1024 * 1024, 1} },
15137 .block_erase = erase_chip_block_jedec,
15138 },
15139 },
15140 .write = write_jedec_1,
15141 .read = read_memmapped,
15142 .voltage = {2700, 3600},
15143 },
15144
15145 {
15146 .vendor = "Winbond",
15147 .name = "W29GL064CT",
15148 .bustype = BUS_PARALLEL,
15149 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15150 .model_id = WINBOND_W29GL064CT,
15151 .total_size = 8192,
15152 .page_size = 128 * 1024, /* actual page size is 16 */
15153 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15154 .tested = TEST_UNTESTED,
15155 .probe = probe_jedec_29gl,
15156 .probe_timing = TIMING_ZERO,
15157 .block_erasers =
15158 {
15159 {
15160 .eraseblocks = {
15161 {64 * 1024, 127},
15162 {8 * 1024, 8},
15163 },
15164 .block_erase = erase_sector_jedec,
15165 }, {
15166 .eraseblocks = { {8 * 1024 * 1024, 1} },
15167 .block_erase = erase_chip_block_jedec,
15168 },
15169 },
15170 .write = write_jedec_1,
15171 .read = read_memmapped,
15172 .voltage = {2700, 3600},
15173 },
15174
15175 {
15176 .vendor = "Winbond",
15177 .name = "W29GL064CH/L",
15178 .bustype = BUS_PARALLEL,
15179 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15180 .model_id = WINBOND_W29GL064CHL,
15181 .total_size = 8192,
15182 .page_size = 128 * 1024, /* actual page size is 16 */
15183 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15184 .tested = TEST_UNTESTED,
15185 .probe = probe_jedec_29gl,
15186 .probe_timing = TIMING_ZERO,
15187 .block_erasers =
15188 {
15189 {
15190 .eraseblocks = { {64 * 1024, 128} },
15191 .block_erase = erase_sector_jedec,
15192 }, {
15193 .eraseblocks = { {8 * 1024 * 1024, 1} },
15194 .block_erase = erase_chip_block_jedec,
15195 },
15196 },
15197 .write = write_jedec_1,
15198 .read = read_memmapped,
15199 .voltage = {2700, 3600},
15200 },
15201
15202 {
15203 .vendor = "Winbond",
15204 .name = "W29GL128C",
15205 .bustype = BUS_PARALLEL,
15206 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15207 .model_id = WINBOND_W29GL128CHL,
15208 .total_size = 16384,
15209 .page_size = 128 * 1024, /* actual page size is 16 */
15210 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15211 .tested = TEST_UNTESTED,
15212 .probe = probe_jedec_29gl,
15213 .probe_timing = TIMING_ZERO,
15214 .block_erasers =
15215 {
15216 {
15217 .eraseblocks = { {128 * 1024, 128} },
15218 .block_erase = erase_sector_jedec,
15219 }, {
15220 .eraseblocks = { {16 * 1024 * 1024, 1} },
15221 .block_erase = erase_chip_block_jedec,
15222 },
15223 },
15224 .write = write_jedec_1,
15225 .read = read_memmapped,
15226 .voltage = {2700, 3600},
15227 },
15228
15229 {
15230 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000015231 .name = "W39F010",
15232 .bustype = BUS_PARALLEL,
15233 .manufacture_id = WINBOND_ID,
15234 .model_id = WINBOND_W39F010,
15235 .total_size = 128,
15236 .page_size = 4 * 1024,
15237 .feature_bits = FEATURE_EITHER_RESET,
15238 .tested = TEST_OK_PREW,
15239 .probe = probe_jedec,
15240 .probe_timing = 10,
15241 .block_erasers =
15242 {
15243 {
15244 .eraseblocks = { {4 * 1024, 32} },
15245 .block_erase = erase_block_jedec,
15246 }, {
15247 .eraseblocks = { {128 * 1024, 1} },
15248 .block_erase = erase_chip_block_jedec,
15249 }
15250 },
15251 .printlock = printlock_w39f010,
15252 .write = write_jedec_1,
15253 .read = read_memmapped,
15254 .voltage = {4500, 5500},
15255 },
15256
15257 {
15258 .vendor = "Winbond",
15259 .name = "W39L010",
15260 .bustype = BUS_PARALLEL,
15261 .manufacture_id = WINBOND_ID,
15262 .model_id = WINBOND_W39L010,
15263 .total_size = 128,
15264 .page_size = 4 * 1024,
15265 .feature_bits = FEATURE_EITHER_RESET,
15266 .tested = TEST_UNTESTED,
15267 .probe = probe_jedec,
15268 .probe_timing = 10,
15269 .block_erasers =
15270 {
15271 {
15272 .eraseblocks = { {4 * 1024, 32} },
15273 .block_erase = erase_block_jedec,
15274 }, {
15275 .eraseblocks = { {128 * 1024, 1} },
15276 .block_erase = erase_chip_block_jedec,
15277 }
15278 },
15279 .printlock = printlock_w39l010,
15280 .write = write_jedec_1,
15281 .read = read_memmapped,
15282 .voltage = {3000, 3600},
15283 },
15284
15285 {
15286 .vendor = "Winbond",
15287 .name = "W39L020",
15288 .bustype = BUS_PARALLEL,
15289 .manufacture_id = WINBOND_ID,
15290 .model_id = WINBOND_W39L020,
15291 .total_size = 256,
15292 .page_size = 4 * 1024,
15293 .feature_bits = FEATURE_EITHER_RESET,
15294 .tested = TEST_UNTESTED,
15295 .probe = probe_jedec,
15296 .probe_timing = 10,
15297 .block_erasers =
15298 {
15299 {
15300 .eraseblocks = { {4 * 1024, 64} },
15301 .block_erase = erase_block_jedec,
15302 }, {
15303 .eraseblocks = { {64 * 1024, 4} },
15304 .block_erase = erase_sector_jedec,
15305 }, {
15306 .eraseblocks = { {256 * 1024, 1} },
15307 .block_erase = erase_chip_block_jedec,
15308 }
15309 },
15310 .printlock = printlock_w39l020,
15311 .write = write_jedec_1,
15312 .read = read_memmapped,
15313 .voltage = {3000, 3600},
15314 },
15315
15316 {
15317 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000015318 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015319 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000015320 .manufacture_id = WINBOND_ID,
15321 .model_id = WINBOND_W39L040,
15322 .total_size = 512,
15323 .page_size = 64 * 1024,
15324 .feature_bits = FEATURE_EITHER_RESET,
15325 .tested = TEST_OK_PR,
15326 .probe = probe_jedec,
15327 .probe_timing = 10,
15328 .block_erasers =
15329 {
15330 {
15331 .eraseblocks = { {4 * 1024, 128} },
15332 .block_erase = erase_block_jedec,
15333 }, {
15334 .eraseblocks = { {64 * 1024, 8} },
15335 .block_erase = erase_sector_jedec,
15336 }, {
15337 .eraseblocks = { {512 * 1024, 1} },
15338 .block_erase = erase_chip_block_jedec,
15339 }
15340 },
15341 .printlock = printlock_w39l040,
15342 .write = write_jedec_1,
15343 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015344 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000015345 },
15346
15347 {
15348 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015349 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015350 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015351 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015352 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015353 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015354 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015355 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015357 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000015358 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015359 .block_erasers =
15360 {
15361 {
15362 .eraseblocks = { {64 * 1024, 8} },
15363 .block_erase = erase_sector_jedec,
15364 }, {
15365 .eraseblocks = { {512 * 1024, 1} },
15366 .block_erase = erase_chip_block_jedec,
15367 }
15368 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015369 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000015370 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015371 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015372 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015373 },
15374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015375 {
15376 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015377 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015378 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015379 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015380 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015381 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015382 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015383 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015384 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015385 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000015386 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015387 .block_erasers =
15388 {
15389 {
15390 .eraseblocks = { {64 * 1024, 8} },
15391 .block_erase = erase_sector_jedec,
15392 }, {
15393 .eraseblocks = { {512 * 1024, 1} },
15394 .block_erase = erase_chip_block_jedec,
15395 }
15396 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015397 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000015398 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015399 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015400 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015401 },
15402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015403 {
15404 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015405 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015406 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015407 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015408 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015409 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015410 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015411 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015412 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000015413 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015414 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015415 .block_erasers =
15416 {
15417 {
15418 .eraseblocks = { {64 * 1024, 8} },
15419 .block_erase = erase_sector_jedec,
15420 }, {
15421 .eraseblocks = { {512 * 1024, 1} },
15422 .block_erase = erase_chip_block_jedec,
15423 }
15424 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000015425 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000015426 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015428 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015429 },
15430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015431 {
15432 .vendor = "Winbond",
15433 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015434 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015435 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015436 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015437 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015438 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000015439 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015440 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015441 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015442 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015443 .block_erasers =
15444 {
15445 {
15446 .eraseblocks = { {4 * 1024, 128} },
15447 .block_erase = erase_block_jedec,
15448 }, {
15449 .eraseblocks = { {64 * 1024, 8} },
15450 .block_erase = erase_sector_jedec,
15451 }, {
15452 .eraseblocks = { {512 * 1024, 1} },
15453 .block_erase = erase_chip_block_jedec,
15454 }
15455 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015456 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015457 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015458 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015459 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015460 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015461 },
15462
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015463 {
15464 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015465 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015466 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015467 .manufacture_id = WINBOND_ID,
15468 .model_id = WINBOND_W39V040B,
15469 .total_size = 512,
15470 .page_size = 64 * 1024,
15471 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015472 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015473 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015474 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015475 .block_erasers =
15476 {
15477 {
15478 .eraseblocks = { {64 * 1024, 8} },
15479 .block_erase = erase_sector_jedec,
15480 }, {
15481 .eraseblocks = { {512 * 1024, 1} },
15482 .block_erase = erase_chip_block_jedec,
15483 }
15484 },
15485 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015486 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015487 .write = write_jedec_1,
15488 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015489 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015490 },
15491
15492 {
15493 .vendor = "Winbond",
15494 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015495 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015496 .manufacture_id = WINBOND_ID,
15497 .model_id = WINBOND_W39V040C,
15498 .total_size = 512,
15499 .page_size = 64 * 1024,
15500 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000015501 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015502 .probe = probe_jedec,
15503 .probe_timing = 10,
15504 .block_erasers =
15505 {
15506 {
15507 .eraseblocks = { {64 * 1024, 8} },
15508 .block_erase = erase_sector_jedec,
15509 }, {
15510 .eraseblocks = { {512 * 1024, 1} },
15511 .block_erase = erase_chip_block_jedec,
15512 }
15513 },
15514 .printlock = printlock_w39v040fc,
15515 .write = write_jedec_1,
15516 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015517 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015518 },
15519
15520 {
15521 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015522 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015523 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015524 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015525 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015526 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015527 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015528 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000015529 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015530 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000015531 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015532 .block_erasers =
15533 {
15534 {
15535 .eraseblocks = { {64 * 1024, 16} },
15536 .block_erase = erase_sector_jedec,
15537 }, {
15538 .eraseblocks = { {1024 * 1024, 1} },
15539 .block_erase = erase_chip_block_jedec,
15540 }
15541 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015542 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000015543 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015545 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015546 },
15547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015548 {
15549 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015550 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015551 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015552 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015553 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015554 .total_size = 256,
15555 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015556 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015557 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015558 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015559 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015560 .block_erasers =
15561 {
15562 {
15563 .eraseblocks = {
15564 {128 * 1024, 1},
15565 {96 * 1024, 1},
15566 {8 * 1024, 2},
15567 {16 * 1024, 1},
15568 },
15569 .block_erase = erase_sector_jedec,
15570 }, {
15571 .eraseblocks = { {256 * 1024, 1} },
15572 .block_erase = erase_chip_block_jedec,
15573 }
15574 },
Sean Nelson35727f72010-01-28 23:55:12 +000015575 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015577 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015578 },
15579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015580 {
15581 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015582 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015583 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015584 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015585 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015586 .total_size = 256,
15587 .page_size = 128,
15588 .feature_bits = FEATURE_EITHER_RESET,
15589 .tested = TEST_OK_PROBE,
15590 .probe = probe_jedec,
15591 .probe_timing = 10,
15592 .block_erasers =
15593 {
15594 {
15595 .eraseblocks = { {256 * 1024, 1} },
15596 .block_erase = erase_chip_block_jedec,
15597 }
15598 },
15599 .write = write_jedec_1,
15600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015601 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015602 },
15603
15604 {
15605 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015606 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015607 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015608 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015609 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015610 .total_size = 256,
15611 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015612 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015613 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015614 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015615 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015616 .block_erasers =
15617 {
15618 {
15619 .eraseblocks = {
15620 {64 * 1024, 3},
15621 {32 * 1024, 1},
15622 {8 * 1024, 2},
15623 {16 * 1024, 1},
15624 },
15625 .block_erase = erase_sector_jedec,
15626 }, {
15627 .eraseblocks = { {256 * 1024, 1} },
15628 .block_erase = erase_chip_block_jedec,
15629 }
15630 },
Sean Nelson35727f72010-01-28 23:55:12 +000015631 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015632 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015633 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015634 },
15635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015636 {
15637 .vendor = "Winbond",
15638 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015639 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015640 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015641 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015642 .total_size = 256,
15643 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015644 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015645 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015646 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015647 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015648 .block_erasers =
15649 {
15650 {
15651 .eraseblocks = {
15652 {64 * 1024, 3},
15653 {32 * 1024, 1},
15654 {8 * 1024, 2},
15655 {16 * 1024, 1},
15656 },
15657 .block_erase = erase_sector_jedec,
15658 }, {
15659 .eraseblocks = { {256 * 1024, 1} },
15660 .block_erase = erase_chip_block_jedec,
15661 }
15662 },
Sean Nelson35727f72010-01-28 23:55:12 +000015663 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015664 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015665 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015666 },
15667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015668 {
15669 .vendor = "Winbond",
15670 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015671 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015672 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015673 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015674 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015675 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015676 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015677 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000015678 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015679 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015680 .block_erasers =
15681 {
15682 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015683 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015684 .block_erase = erase_sector_jedec,
15685 }, {
15686 .eraseblocks = { {1024 * 1024, 1} },
15687 .block_erase = erase_chip_block_jedec,
15688 }
15689 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015690 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015691 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015692 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015693 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015694 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000015695 },
15696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015697 {
15698 .vendor = "Winbond",
15699 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015700 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015701 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015702 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015703 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015704 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015705 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015706 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000015707 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015708 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015709 .block_erasers =
15710 {
15711 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015712 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015713 .block_erase = erase_sector_jedec,
15714 }, {
15715 .eraseblocks = { {512 * 1024, 1} },
15716 .block_erase = erase_chip_block_jedec,
15717 }
15718 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015719 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000015720 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015721 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015722 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000015723 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000015724
15725 {
15726 .vendor = "Unknown",
15727 .name = "SFDP-capable chip",
15728 .bustype = BUS_SPI,
15729 .manufacture_id = GENERIC_MANUF_ID,
15730 .model_id = SFDP_DEVICE_ID,
15731 /* We present our own "report this" text hence we do not
15732 * want the default "This flash part has status UNTESTED..."
15733 * text to be printed. */
15734 .tested = TEST_OK_PREW,
15735 .probe = probe_spi_sfdp,
15736 .unlock = spi_disable_blockprotect, /* is this safe? */
15737 .read = spi_chip_read,
15738 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000015739 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000015740 /* Everything below will be set by the probing function. */
15741 .write = NULL,
15742 .total_size = 0,
15743 .page_size = 0,
15744 .feature_bits = 0,
15745 .block_erasers = {},
15746 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015748 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000015749 .vendor = "Programmer",
15750 .name = "Opaque flash chip",
15751 .bustype = BUS_PROG,
15752 .manufacture_id = PROGMANUF_ID,
15753 .model_id = PROGDEV_ID,
15754 .total_size = 0,
15755 .page_size = 256,
15756 /* probe is assumed to work, rest will be filled in by probe */
15757 .tested = TEST_OK_PROBE,
15758 .probe = probe_opaque,
15759 /* eraseblock sizes will be set by the probing function */
15760 .block_erasers =
15761 {
15762 {
15763 .block_erase = erase_opaque,
15764 }
15765 },
15766 .write = write_opaque,
15767 .read = read_opaque,
15768 },
15769
15770 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000015771 .vendor = "AMIC",
15772 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015773 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000015774 .manufacture_id = AMIC_ID,
15775 .model_id = GENERIC_DEVICE_ID,
15776 .total_size = 0,
15777 .page_size = 256,
15778 .tested = TEST_BAD_PREW,
15779 .probe = probe_spi_rdid4,
15780 .probe_timing = TIMING_ZERO,
15781 .write = NULL,
15782 .read = NULL,
15783 },
15784
15785 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015786 .vendor = "Atmel",
15787 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015788 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015789 .manufacture_id = ATMEL_ID,
15790 .model_id = GENERIC_DEVICE_ID,
15791 .total_size = 0,
15792 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015793 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015795 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015796 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015797 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015798 },
15799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015800 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000015801 .vendor = "Eon",
15802 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015803 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015804 .manufacture_id = EON_ID_NOPREFIX,
15805 .model_id = GENERIC_DEVICE_ID,
15806 .total_size = 0,
15807 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015808 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015809 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015810 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015811 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015812 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015813 },
15814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015815 {
15816 .vendor = "Macronix",
15817 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015819 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015820 .model_id = GENERIC_DEVICE_ID,
15821 .total_size = 0,
15822 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015823 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015824 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015825 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015826 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015827 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015828 },
15829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015830 {
15831 .vendor = "PMC",
15832 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015833 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015834 .manufacture_id = PMC_ID,
15835 .model_id = GENERIC_DEVICE_ID,
15836 .total_size = 0,
15837 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015838 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015839 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015840 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015841 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015842 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015843 },
15844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015845 {
15846 .vendor = "SST",
15847 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015848 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015849 .manufacture_id = SST_ID,
15850 .model_id = GENERIC_DEVICE_ID,
15851 .total_size = 0,
15852 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015853 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015854 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015855 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015856 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015857 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015858 },
15859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015860 {
15861 .vendor = "ST",
15862 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015863 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015864 .manufacture_id = ST_ID,
15865 .model_id = GENERIC_DEVICE_ID,
15866 .total_size = 0,
15867 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015868 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015869 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015870 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015871 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015872 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015873 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000015874
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015875 {
Sean Nelson118e1d62009-11-24 02:08:11 +000015876 .vendor = "Sanyo",
15877 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015878 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000015879 .manufacture_id = SANYO_ID,
15880 .model_id = GENERIC_DEVICE_ID,
15881 .total_size = 0,
15882 .page_size = 256,
15883 .tested = TEST_BAD_PREW,
15884 .probe = probe_spi_rdid,
15885 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000015886 .write = NULL,
15887 .read = NULL,
15888 },
15889
15890 {
Stefan Taunereb582572012-09-21 12:52:50 +000015891 .vendor = "Winbond",
15892 .name = "unknown Winbond (ex Nexcom) SPI chip",
15893 .bustype = BUS_SPI,
15894 .manufacture_id = WINBOND_NEX_ID,
15895 .model_id = GENERIC_DEVICE_ID,
15896 .total_size = 0,
15897 .page_size = 256,
15898 .tested = TEST_BAD_PREW,
15899 .probe = probe_spi_rdid,
15900 .probe_timing = TIMING_ZERO,
15901 .write = NULL,
15902 .read = NULL,
15903 },
15904
15905 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015906 .vendor = "Generic",
15907 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015908 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015909 .manufacture_id = GENERIC_MANUF_ID,
15910 .model_id = GENERIC_DEVICE_ID,
15911 .total_size = 0,
15912 .page_size = 256,
15913 .tested = TEST_BAD_PREW,
15914 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015915 .write = NULL,
15916 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000015917
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015918 {
15919 .vendor = "Generic",
15920 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015921 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015922 .manufacture_id = GENERIC_MANUF_ID,
15923 .model_id = GENERIC_DEVICE_ID,
15924 .total_size = 0,
15925 .page_size = 256,
15926 .tested = TEST_BAD_PREW,
15927 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015928 .write = NULL,
15929 },
15930
Stefan Tauner96658be2014-05-26 22:05:31 +000015931 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000015932};
Stefan Tauner96658be2014-05-26 22:05:31 +000015933
15934const unsigned int flashchips_size = ARRAY_SIZE(flashchips);