blob: 8eda608843e53a149836ffc220bc2597c265facb [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000028 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
29 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000030 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000031const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000032
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000033 /*
34 * .vendor = Vendor name
35 * .name = Chip name
36 * .bustype = Supported flash bus types (Parallel, LPC...)
37 * .manufacture_id = Manufacturer chip ID
38 * .model_id = Model chip ID
39 * .total_size = Total size in (binary) kbytes
40 * .page_size = Page or eraseblock(?) size in bytes
41 * .tested = Test status
42 * .probe = Probe function
43 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000044 * .block_erasers[] = Array of erase layouts and erase functions
45 * {
46 * .eraseblocks[] = Array of { blocksize, blockcount }
47 * .block_erase = Block erase function
48 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000049 * .printlock = Chip lock status function
50 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000051 * .write = Chip write function
52 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000053 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000054 */
55
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000056 {
57 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000058 .name = "Am29F010",
59 .bustype = BUS_PARALLEL,
60 .manufacture_id = AMD_ID,
61 .model_id = AMD_AM29F010,
62 .total_size = 128,
63 .page_size = 16 * 1024,
64 .feature_bits = FEATURE_SHORT_RESET,
65 .tested = TEST_UNTESTED,
66 .probe = probe_jedec,
67 .probe_timing = TIMING_ZERO,
68 .block_erasers =
69 {
70 {
71 .eraseblocks = { {16 * 1024, 8} },
72 .block_erase = erase_sector_jedec,
73 }, {
74 .eraseblocks = { {128 * 1024, 1} },
75 .block_erase = erase_chip_block_jedec,
76 },
77 },
78 .write = write_jedec_1,
79 .read = read_memmapped,
80 .voltage = {4500, 5500},
81 },
82
83 {
84 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000086 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000087 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000088 .model_id = AMD_AM29F010,
Uwe Hermanna8b37272009-06-19 15:54:39 +000089 .total_size = 128,
90 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000091 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000092 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000093 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000094 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000095 .block_erasers =
96 {
97 {
98 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000099 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000100 }, {
101 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000102 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 },
104 },
Sean Nelson35727f72010-01-28 23:55:12 +0000105 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +0000106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000107 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +0000108 },
109
110 {
111 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000112 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000113 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000114 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000115 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 .total_size = 256,
117 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000118 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 .tested = TEST_UNTESTED,
120 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000121 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000122 .block_erasers =
123 {
124 {
125 .eraseblocks = {
126 {16 * 1024, 1},
127 {8 * 1024, 2},
128 {32 * 1024, 1},
129 {64 * 1024, 3},
130 },
131 .block_erase = erase_sector_jedec,
132 }, {
133 .eraseblocks = { {256 * 1024, 1} },
134 .block_erase = erase_chip_block_jedec,
135 },
136 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000138 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000139 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000140 },
141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000142 {
143 .vendor = "AMD",
144 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000145 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000146 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000147 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000148 .total_size = 256,
149 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000150 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
151 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000152 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000153 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000154 .block_erasers =
155 {
156 {
157 .eraseblocks = {
158 {64 * 1024, 3},
159 {32 * 1024, 1},
160 {8 * 1024, 2},
161 {16 * 1024, 1},
162 },
163 .block_erase = erase_sector_jedec,
164 }, {
165 .eraseblocks = { {256 * 1024, 1} },
166 .block_erase = erase_chip_block_jedec,
167 },
168 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000170 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000171 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000172 },
173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000174 {
175 .vendor = "AMD",
176 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000177 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000179 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000180 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000183 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000184 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000185 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000186 .block_erasers =
187 {
188 {
189 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000190 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000191 }, {
192 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 },
195 },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000197 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000198 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000199 },
200
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000201 {
202 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000203 .name = "Am29F040",
204 .bustype = BUS_PARALLEL,
205 .manufacture_id = AMD_ID,
206 .model_id = AMD_AM29F040,
207 .total_size = 512,
208 .page_size = 64 * 1024,
209 .feature_bits = FEATURE_EITHER_RESET,
210 .tested = TEST_UNTESTED,
211 .probe = probe_jedec,
212 .probe_timing = TIMING_ZERO,
213 .block_erasers =
214 {
215 {
216 .eraseblocks = { {64 * 1024, 8} },
217 .block_erase = erase_sector_jedec,
218 }, {
219 .eraseblocks = { {512 * 1024, 1} },
220 .block_erase = erase_chip_block_jedec,
221 },
222 },
223 .write = write_jedec_1,
224 .read = read_memmapped,
225 .voltage = {4500, 5500},
226 },
227
228 {
229 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000230 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000231 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000232 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000233 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .total_size = 512,
235 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000236 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
237 .tested = TEST_UNTESTED,
238 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000239 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000240 .block_erasers =
241 {
242 {
243 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000244 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000245 }, {
246 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 },
249 },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000252 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000253 },
254
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000255 {
256 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000257 .name = "Am29F080",
258 .bustype = BUS_PARALLEL,
259 .manufacture_id = AMD_ID,
260 .model_id = AMD_AM29F080,
261 .total_size = 1024,
262 .page_size = 64 * 1024,
263 .feature_bits = FEATURE_EITHER_RESET,
264 .tested = TEST_UNTESTED,
265 .probe = probe_jedec,
266 .probe_timing = TIMING_ZERO,
267 .block_erasers =
268 {
269 {
270 .eraseblocks = { {64 * 1024, 16} },
271 .block_erase = erase_sector_jedec,
272 }, {
273 .eraseblocks = { {1024 * 1024, 1} },
274 .block_erase = erase_chip_block_jedec,
275 },
276 },
277 .write = write_jedec_1,
278 .read = read_memmapped,
279 .voltage = {4500, 5500},
280 },
281
282 {
283 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000284 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000285 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000286 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000287 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000288 .total_size = 1024,
289 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000290 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .tested = TEST_UNTESTED,
292 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000293 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000294 .block_erasers =
295 {
296 {
297 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000298 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000299 }, {
300 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 },
303 },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000305 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000306 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000307 },
308
309 {
310 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000311 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000312 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000313 .manufacture_id = AMD_ID,
314 .model_id = AMD_AM29LV001BB,
315 .total_size = 128,
316 .page_size = 64 * 1024, /* unused */
317 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
318 .tested = TEST_OK_PREW,
319 .probe = probe_jedec,
320 .probe_timing = TIMING_ZERO,
321 .block_erasers =
322 {
323 {
324 .eraseblocks = {
325 {8 * 1024, 1},
326 {4 * 1024, 2},
327 {16 * 1024, 7},
328 },
329 .block_erase = erase_sector_jedec,
330 }, {
331 .eraseblocks = { {128 * 1024, 1} },
332 .block_erase = erase_chip_block_jedec,
333 },
334 },
335 .write = write_jedec_1,
336 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000337 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000338 },
339
340 {
341 .vendor = "AMD",
342 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000343 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000344 .manufacture_id = AMD_ID,
345 .model_id = AMD_AM29LV001BT,
346 .total_size = 128,
347 .page_size = 64 * 1024, /* unused */
348 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
349 .tested = TEST_UNTESTED,
350 .probe = probe_jedec,
351 .probe_timing = TIMING_ZERO,
352 .block_erasers =
353 {
354 {
355 .eraseblocks = {
356 {16 * 1024, 7},
357 {4 * 1024, 2},
358 {8 * 1024, 1},
359 },
360 .block_erase = erase_sector_jedec,
361 }, {
362 .eraseblocks = { {128 * 1024, 1} },
363 .block_erase = erase_chip_block_jedec,
364 },
365 },
366 .write = write_jedec_1,
367 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000368 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000369 },
370
371 {
372 .vendor = "AMD",
373 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000374 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000375 .manufacture_id = AMD_ID,
376 .model_id = AMD_AM29LV002BB,
377 .total_size = 256,
378 .page_size = 64 * 1024, /* unused */
379 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
380 .tested = TEST_UNTESTED,
381 .probe = probe_jedec,
382 .probe_timing = TIMING_ZERO,
383 .block_erasers =
384 {
385 {
386 .eraseblocks = {
387 {16 * 1024, 1},
388 {8 * 1024, 2},
389 {32 * 1024, 1},
390 {64 * 1024, 3},
391 },
392 .block_erase = erase_sector_jedec,
393 }, {
394 .eraseblocks = { {256 * 1024, 1} },
395 .block_erase = erase_chip_block_jedec,
396 },
397 },
398 .write = write_jedec_1,
399 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000400 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000401 },
402
403 {
404 .vendor = "AMD",
405 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000406 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000407 .manufacture_id = AMD_ID,
408 .model_id = AMD_AM29LV002BT,
409 .total_size = 256,
410 .page_size = 64 * 1024, /* unused */
411 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
412 .tested = TEST_UNTESTED,
413 .probe = probe_jedec,
414 .probe_timing = TIMING_ZERO,
415 .block_erasers =
416 {
417 {
418 .eraseblocks = {
419 {64 * 1024, 3},
420 {32 * 1024, 1},
421 {8 * 1024, 2},
422 {16 * 1024, 1},
423 },
424 .block_erase = erase_sector_jedec,
425 }, {
426 .eraseblocks = { {256 * 1024, 1} },
427 .block_erase = erase_chip_block_jedec,
428 },
429 },
430 .write = write_jedec_1,
431 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000432 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000433 },
434
435 {
436 .vendor = "AMD",
437 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000438 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000439 .manufacture_id = AMD_ID,
440 .model_id = AMD_AM29LV004BB,
441 .total_size = 512,
442 .page_size = 64 * 1024, /* unused */
443 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
444 .tested = TEST_UNTESTED,
445 .probe = probe_jedec,
446 .probe_timing = TIMING_ZERO,
447 .block_erasers =
448 {
449 {
450 .eraseblocks = {
451 {16 * 1024, 1},
452 {8 * 1024, 2},
453 {32 * 1024, 1},
454 {64 * 1024, 7},
455 },
456 .block_erase = erase_sector_jedec,
457 }, {
458 .eraseblocks = { {512 * 1024, 1} },
459 .block_erase = erase_chip_block_jedec,
460 },
461 },
462 .write = write_jedec_1,
463 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000464 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000465 },
466
467 {
468 .vendor = "AMD",
469 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000470 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000471 .manufacture_id = AMD_ID,
472 .model_id = AMD_AM29LV004BT,
473 .total_size = 512,
474 .page_size = 64 * 1024, /* unused */
475 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
476 .tested = TEST_UNTESTED,
477 .probe = probe_jedec,
478 .probe_timing = TIMING_ZERO,
479 .block_erasers =
480 {
481 {
482 .eraseblocks = {
483 {64 * 1024, 7},
484 {32 * 1024, 1},
485 {8 * 1024, 2},
486 {16 * 1024, 1},
487 },
488 .block_erase = erase_sector_jedec,
489 }, {
490 .eraseblocks = { {512 * 1024, 1} },
491 .block_erase = erase_chip_block_jedec,
492 },
493 },
494 .write = write_jedec_1,
495 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000496 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000497 },
498
499 {
500 .vendor = "AMD",
501 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000502 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000503 .manufacture_id = AMD_ID,
504 .model_id = AMD_AM29LV008BB,
505 .total_size = 1024,
506 .page_size = 64 * 1024, /* unused */
507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000508 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000509 .probe = probe_jedec,
510 .probe_timing = TIMING_ZERO,
511 .block_erasers =
512 {
513 {
514 .eraseblocks = {
515 {16 * 1024, 1},
516 {8 * 1024, 2},
517 {32 * 1024, 1},
518 {64 * 1024, 15},
519 },
520 .block_erase = erase_sector_jedec,
521 }, {
522 .eraseblocks = { {1024 * 1024, 1} },
523 .block_erase = erase_chip_block_jedec,
524 },
525 },
526 .write = write_jedec_1,
527 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000528 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000529 },
530
531 {
532 .vendor = "AMD",
533 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000534 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000535 .manufacture_id = AMD_ID,
536 .model_id = AMD_AM29LV008BT,
537 .total_size = 1024,
538 .page_size = 64 * 1024, /* unused */
539 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
540 .tested = TEST_UNTESTED,
541 .probe = probe_jedec,
542 .probe_timing = TIMING_ZERO,
543 .block_erasers =
544 {
545 {
546 .eraseblocks = {
547 {64 * 1024, 15},
548 {32 * 1024, 1},
549 {8 * 1024, 2},
550 {16 * 1024, 1},
551 },
552 .block_erase = erase_sector_jedec,
553 }, {
554 .eraseblocks = { {1024 * 1024, 1} },
555 .block_erase = erase_chip_block_jedec,
556 },
557 },
558 .write = write_jedec_1,
559 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000560 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000561 },
562
563 {
564 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000565 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000566 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000567 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000568 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000569 .total_size = 512,
570 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000571 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000572 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000573 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000574 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000575 .block_erasers =
576 {
577 {
578 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000579 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000580 }, {
581 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 },
584 },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000586 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000587 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000588 },
589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000590 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000591 .vendor = "AMD",
592 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000593 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000594 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000595 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000596 .total_size = 1024,
597 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000598 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000600 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000601 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000602 .block_erasers =
603 {
604 {
605 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000606 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000607 }, {
608 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 },
611 },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000613 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000614 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000615 },
616
617 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000618 .vendor = "AMIC",
619 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000620 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .manufacture_id = AMIC_ID,
622 .model_id = AMIC_A25L05PT,
623 .total_size = 64,
624 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000625 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000626 .tested = TEST_UNTESTED,
627 .probe = probe_spi_rdid4,
628 .probe_timing = TIMING_ZERO,
629 .block_erasers =
630 {
631 {
632 .eraseblocks = {
633 {32 * 1024, 1},
634 {16 * 1024, 1},
635 {8 * 1024, 1},
636 {4 * 1024, 2},
637 },
638 .block_erase = spi_block_erase_d8,
639 }, {
640 .eraseblocks = { {64 * 1024, 1} },
641 .block_erase = spi_block_erase_c7,
642 }
643 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000644 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000645 .unlock = spi_disable_blockprotect,
646 .write = spi_chip_write_256,
647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000648 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000649 },
650
651 {
652 .vendor = "AMIC",
653 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000654 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000655 .manufacture_id = AMIC_ID,
656 .model_id = AMIC_A25L05PU,
657 .total_size = 64,
658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000659 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000660 .tested = TEST_UNTESTED,
661 .probe = probe_spi_rdid4,
662 .probe_timing = TIMING_ZERO,
663 .block_erasers =
664 {
665 {
666 .eraseblocks = {
667 {4 * 1024, 2},
668 {8 * 1024, 1},
669 {16 * 1024, 1},
670 {32 * 1024, 1},
671 },
672 .block_erase = spi_block_erase_d8,
673 }, {
674 .eraseblocks = { {64 * 1024, 1} },
675 .block_erase = spi_block_erase_c7,
676 }
677 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000678 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000679 .unlock = spi_disable_blockprotect,
680 .write = spi_chip_write_256,
681 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000682 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000683 },
684
685 {
686 .vendor = "AMIC",
687 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000688 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000689 .manufacture_id = AMIC_ID,
690 .model_id = AMIC_A25L10PT,
691 .total_size = 128,
692 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000693 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000694 .tested = TEST_UNTESTED,
695 .probe = probe_spi_rdid4,
696 .probe_timing = TIMING_ZERO,
697 .block_erasers =
698 {
699 {
700 .eraseblocks = {
701 {64 * 1024, 1},
702 {32 * 1024, 1},
703 {16 * 1024, 1},
704 {8 * 1024, 1},
705 {4 * 1024, 2},
706 },
707 .block_erase = spi_block_erase_d8,
708 }, {
709 .eraseblocks = { {128 * 1024, 1} },
710 .block_erase = spi_block_erase_c7,
711 }
712 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000713 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000714 .unlock = spi_disable_blockprotect,
715 .write = spi_chip_write_256,
716 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000717 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000718 },
719
720 {
721 .vendor = "AMIC",
722 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000723 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000724 .manufacture_id = AMIC_ID,
725 .model_id = AMIC_A25L10PU,
726 .total_size = 128,
727 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000728 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000729 .tested = TEST_UNTESTED,
730 .probe = probe_spi_rdid4,
731 .probe_timing = TIMING_ZERO,
732 .block_erasers =
733 {
734 {
735 .eraseblocks = {
736 {4 * 1024, 2},
737 {8 * 1024, 1},
738 {16 * 1024, 1},
739 {32 * 1024, 1},
740 {64 * 1024, 1},
741 },
742 .block_erase = spi_block_erase_d8,
743 }, {
744 .eraseblocks = { {128 * 1024, 1} },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000748 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000749 .unlock = spi_disable_blockprotect,
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000752 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000758 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000759 .manufacture_id = AMIC_ID,
760 .model_id = AMIC_A25L20PT,
761 .total_size = 256,
762 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000763 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid4,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = {
771 {64 * 1024, 3},
772 {32 * 1024, 1},
773 {16 * 1024, 1},
774 {8 * 1024, 1},
775 {4 * 1024, 2},
776 },
777 .block_erase = spi_block_erase_d8,
778 }, {
779 .eraseblocks = { {256 * 1024, 1} },
780 .block_erase = spi_block_erase_c7,
781 }
782 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000783 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000784 .unlock = spi_disable_blockprotect,
785 .write = spi_chip_write_256,
786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000787 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000788 },
789
790 {
791 .vendor = "AMIC",
792 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000793 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000794 .manufacture_id = AMIC_ID,
795 .model_id = AMIC_A25L20PU,
796 .total_size = 256,
797 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000798 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000799 .tested = TEST_UNTESTED,
800 .probe = probe_spi_rdid4,
801 .probe_timing = TIMING_ZERO,
802 .block_erasers =
803 {
804 {
805 .eraseblocks = {
806 {4 * 1024, 2},
807 {8 * 1024, 1},
808 {16 * 1024, 1},
809 {32 * 1024, 1},
810 {64 * 1024, 3},
811 },
812 .block_erase = spi_block_erase_d8,
813 }, {
814 .eraseblocks = { {256 * 1024, 1} },
815 .block_erase = spi_block_erase_c7,
816 }
817 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000818 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 .unlock = spi_disable_blockprotect,
820 .write = spi_chip_write_256,
821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000822 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000823 },
824
825 /* The A25L40P{T,U} chips are distinguished by their
826 * erase block layouts, but without any distinction in RDID.
827 * This inexplicable quirk was verified by Rudolf Marek
828 * and discussed on the flashrom mailing list on 2010-07-12.
829 */
830 {
831 .vendor = "AMIC",
832 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000833 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000834 .manufacture_id = AMIC_ID,
835 .model_id = AMIC_A25L40PT,
836 .total_size = 512,
837 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000838 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000839 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000840 .probe = probe_spi_rdid4,
841 .probe_timing = TIMING_ZERO,
842 .block_erasers =
843 {
844 {
845 .eraseblocks = {
846 {64 * 1024, 7},
847 {32 * 1024, 1},
848 {16 * 1024, 1},
849 {8 * 1024, 1},
850 {4 * 1024, 2},
851 },
852 .block_erase = spi_block_erase_d8,
853 }, {
854 .eraseblocks = { {512 * 1024, 1} },
855 .block_erase = spi_block_erase_c7,
856 }
857 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000858 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000859 .unlock = spi_disable_blockprotect,
860 .write = spi_chip_write_256,
861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000862 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000863 },
864
865 {
866 .vendor = "AMIC",
867 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000868 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000869 .manufacture_id = AMIC_ID,
870 .model_id = AMIC_A25L40PU,
871 .total_size = 512,
872 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000873 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000874 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000875 .probe = probe_spi_rdid4,
876 .probe_timing = TIMING_ZERO,
877 .block_erasers =
878 {
879 {
880 .eraseblocks = {
881 {4 * 1024, 2},
882 {8 * 1024, 1},
883 {16 * 1024, 1},
884 {32 * 1024, 1},
885 {64 * 1024, 7},
886 },
887 .block_erase = spi_block_erase_d8,
888 }, {
889 .eraseblocks = { {512 * 1024, 1} },
890 .block_erase = spi_block_erase_c7,
891 }
892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000893 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 .unlock = spi_disable_blockprotect,
895 .write = spi_chip_write_256,
896 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000897 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000898 },
899
900 {
901 .vendor = "AMIC",
902 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000903 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000904 .manufacture_id = AMIC_ID,
905 .model_id = AMIC_A25L80P,
906 .total_size = 1024,
907 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000908 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000909 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000910 .probe = probe_spi_rdid4,
911 .probe_timing = TIMING_ZERO,
912 .block_erasers =
913 {
914 {
915 .eraseblocks = {
916 {4 * 1024, 2},
917 {8 * 1024, 1},
918 {16 * 1024, 1},
919 {32 * 1024, 1},
920 {64 * 1024, 15},
921 },
922 .block_erase = spi_block_erase_d8,
923 }, {
924 .eraseblocks = { {1024 * 1024, 1} },
925 .block_erase = spi_block_erase_c7,
926 }
927 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000928 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000929 .unlock = spi_disable_blockprotect,
930 .write = spi_chip_write_256,
931 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000932 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000933 },
934
935 {
936 .vendor = "AMIC",
937 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000938 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000939 .manufacture_id = AMIC_ID,
940 .model_id = AMIC_A25L16PT,
941 .total_size = 2048,
942 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000943 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000944 .tested = TEST_UNTESTED,
945 .probe = probe_spi_rdid4,
946 .probe_timing = TIMING_ZERO,
947 .block_erasers =
948 {
949 {
950 .eraseblocks = {
951 {64 * 1024, 31},
952 {32 * 1024, 1},
953 {16 * 1024, 1},
954 {8 * 1024, 1},
955 {4 * 1024, 2},
956 },
957 .block_erase = spi_block_erase_d8,
958 }, {
959 .eraseblocks = { {2048 * 1024, 1} },
960 .block_erase = spi_block_erase_60,
961 }, {
962 .eraseblocks = { {2048 * 1024, 1} },
963 .block_erase = spi_block_erase_c7,
964 }
965 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000966 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000967 .unlock = spi_disable_blockprotect,
968 .write = spi_chip_write_256,
969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000970 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000971 },
972
973 {
974 .vendor = "AMIC",
975 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000976 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000977 .manufacture_id = AMIC_ID,
978 .model_id = AMIC_A25L16PU,
979 .total_size = 2048,
980 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000981 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000982 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000983 .probe = probe_spi_rdid4,
984 .probe_timing = TIMING_ZERO,
985 .block_erasers =
986 {
987 {
988 .eraseblocks = {
989 {4 * 1024, 2},
990 {8 * 1024, 1},
991 {16 * 1024, 1},
992 {32 * 1024, 1},
993 {64 * 1024, 31},
994 },
995 .block_erase = spi_block_erase_d8,
996 }, {
997 .eraseblocks = { {2048 * 1024, 1} },
998 .block_erase = spi_block_erase_60,
999 }, {
1000 .eraseblocks = { {2048 * 1024, 1} },
1001 .block_erase = spi_block_erase_c7,
1002 }
1003 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001004 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001005 .unlock = spi_disable_blockprotect,
1006 .write = spi_chip_write_256,
1007 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001008 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001009 },
1010
1011 {
1012 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +00001013 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001014 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001015 .manufacture_id = AMIC_ID_NOPREFIX,
1016 .model_id = AMIC_A25L512,
1017 .total_size = 64,
1018 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001019 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001020 .tested = TEST_UNTESTED,
1021 .probe = probe_spi_rdid,
1022 .probe_timing = TIMING_ZERO,
1023 .block_erasers =
1024 {
1025 {
1026 .eraseblocks = { { 4 * 1024, 16 } },
1027 .block_erase = spi_block_erase_20,
1028 }, {
1029 .eraseblocks = { { 64 * 1024, 1 } },
1030 .block_erase = spi_block_erase_d8,
1031 }, {
1032 .eraseblocks = { { 64 * 1024, 1 } },
1033 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001034 }
Dan Lenski11617122010-07-29 15:00:40 +00001035 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001036 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001037 .unlock = spi_disable_blockprotect,
1038 .write = spi_chip_write_256,
1039 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001040 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001041 },
1042
1043 {
1044 .vendor = "AMIC",
1045 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001046 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001047 .manufacture_id = AMIC_ID_NOPREFIX,
1048 .model_id = AMIC_A25L010,
1049 .total_size = 128,
1050 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001051 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001052 .tested = TEST_UNTESTED,
1053 .probe = probe_spi_rdid,
1054 .probe_timing = TIMING_ZERO,
1055 .block_erasers =
1056 {
1057 {
1058 .eraseblocks = { { 4 * 1024, 32 } },
1059 .block_erase = spi_block_erase_20,
1060 }, {
1061 .eraseblocks = { { 64 * 1024, 2 } },
1062 .block_erase = spi_block_erase_d8,
1063 }, {
1064 .eraseblocks = { { 128 * 1024, 1 } },
1065 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001066 }
Dan Lenski11617122010-07-29 15:00:40 +00001067 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001068 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001069 .unlock = spi_disable_blockprotect,
1070 .write = spi_chip_write_256,
1071 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001072 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001073 },
1074
1075 {
1076 .vendor = "AMIC",
1077 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001078 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001079 .manufacture_id = AMIC_ID_NOPREFIX,
1080 .model_id = AMIC_A25L020,
1081 .total_size = 256,
1082 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001083 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001084 .tested = TEST_UNTESTED,
1085 .probe = probe_spi_rdid,
1086 .probe_timing = TIMING_ZERO,
1087 .block_erasers =
1088 {
1089 {
1090 .eraseblocks = { { 4 * 1024, 64 } },
1091 .block_erase = spi_block_erase_20,
1092 }, {
1093 .eraseblocks = { { 64 * 1024, 4 } },
1094 .block_erase = spi_block_erase_d8,
1095 }, {
1096 .eraseblocks = { { 256 * 1024, 1 } },
1097 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001098 }
Dan Lenski11617122010-07-29 15:00:40 +00001099 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001100 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001101 .unlock = spi_disable_blockprotect,
1102 .write = spi_chip_write_256,
1103 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001104 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001105 },
1106
1107 {
1108 .vendor = "AMIC",
1109 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001110 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001111 .manufacture_id = AMIC_ID_NOPREFIX,
1112 .model_id = AMIC_A25L040,
1113 .total_size = 512,
1114 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001115 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001116 .tested = TEST_UNTESTED,
1117 .probe = probe_spi_rdid,
1118 .probe_timing = TIMING_ZERO,
1119 .block_erasers =
1120 {
1121 {
1122 .eraseblocks = { { 4 * 1024, 128 } },
1123 .block_erase = spi_block_erase_20,
1124 }, {
1125 .eraseblocks = { { 64 * 1024, 8 } },
1126 .block_erase = spi_block_erase_d8,
1127 }, {
1128 .eraseblocks = { { 512 * 1024, 1 } },
1129 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001130 }
Dan Lenski11617122010-07-29 15:00:40 +00001131 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001132 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001133 .unlock = spi_disable_blockprotect,
1134 .write = spi_chip_write_256,
1135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001136 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001137 },
1138
1139 {
1140 .vendor = "AMIC",
1141 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001142 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001143 .manufacture_id = AMIC_ID_NOPREFIX,
1144 .model_id = AMIC_A25L080,
1145 .total_size = 1024,
1146 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001147 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001148 .tested = TEST_UNTESTED,
1149 .probe = probe_spi_rdid,
1150 .probe_timing = TIMING_ZERO,
1151 .block_erasers =
1152 {
1153 {
1154 .eraseblocks = { { 4 * 1024, 256 } },
1155 .block_erase = spi_block_erase_20,
1156 }, {
1157 .eraseblocks = { { 64 * 1024, 16 } },
1158 .block_erase = spi_block_erase_d8,
1159 }, {
1160 .eraseblocks = { { 1024 * 1024, 1 } },
1161 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001162 }
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001164 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001165 .unlock = spi_disable_blockprotect,
1166 .write = spi_chip_write_256,
1167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001168 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001169 },
1170
1171 {
1172 .vendor = "AMIC",
1173 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001174 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .manufacture_id = AMIC_ID_NOPREFIX,
1176 .model_id = AMIC_A25L016,
1177 .total_size = 2048,
1178 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001179 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001180 .tested = TEST_UNTESTED,
1181 .probe = probe_spi_rdid,
1182 .probe_timing = TIMING_ZERO,
1183 .block_erasers =
1184 {
1185 {
1186 .eraseblocks = { { 4 * 1024, 512 } },
1187 .block_erase = spi_block_erase_20,
1188 }, {
1189 .eraseblocks = { { 64 * 1024, 32 } },
1190 .block_erase = spi_block_erase_d8,
1191 }, {
1192 .eraseblocks = { { 2048 * 1024, 1 } },
1193 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001194 }
Dan Lenski11617122010-07-29 15:00:40 +00001195 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001196 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001197 .unlock = spi_disable_blockprotect,
1198 .write = spi_chip_write_256,
1199 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001200 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001201 },
1202
1203 {
1204 .vendor = "AMIC",
1205 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001206 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001207 .manufacture_id = AMIC_ID_NOPREFIX,
1208 .model_id = AMIC_A25L032,
1209 .total_size = 4096,
1210 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001211 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001213 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001214 .probe = probe_spi_rdid,
1215 .probe_timing = TIMING_ZERO,
1216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = { { 4 * 1024, 1024 } },
1220 .block_erase = spi_block_erase_20,
1221 }, {
1222 .eraseblocks = { { 64 * 1024, 64 } },
1223 .block_erase = spi_block_erase_52,
1224 }, {
1225 .eraseblocks = { { 64 * 1024, 64 } },
1226 .block_erase = spi_block_erase_d8,
1227 }, {
1228 .eraseblocks = { { 4096 * 1024, 1 } },
1229 .block_erase = spi_block_erase_60,
1230 }, {
1231 .eraseblocks = { { 4096 * 1024, 1 } },
1232 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001233 }
Dan Lenski11617122010-07-29 15:00:40 +00001234 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001235 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1236 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001237 .write = spi_chip_write_256,
1238 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001239 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001240 },
1241
1242 {
1243 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001244 .name = "A25LQ16",
1245 .bustype = BUS_SPI,
1246 .manufacture_id = AMIC_ID_NOPREFIX,
1247 .model_id = AMIC_A25LQ16,
1248 .total_size = 2048,
1249 .page_size = 256,
1250 /* supports SFDP */
1251 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1252 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1253 .tested = TEST_UNTESTED,
1254 .probe = probe_spi_rdid,
1255 .probe_timing = TIMING_ZERO,
1256 .block_erasers = {
1257 {
1258 .eraseblocks = { { 4 * 1024, 512 } },
1259 .block_erase = spi_block_erase_20,
1260 }, {
1261 .eraseblocks = { { 64 * 1024, 32 } },
1262 .block_erase = spi_block_erase_52,
1263 }, {
1264 .eraseblocks = { { 64 * 1024, 32 } },
1265 .block_erase = spi_block_erase_d8,
1266 }, {
1267 .eraseblocks = { { 2048 * 1024, 1 } },
1268 .block_erase = spi_block_erase_60,
1269 }, {
1270 .eraseblocks = { { 2048 * 1024, 1 } },
1271 .block_erase = spi_block_erase_c7,
1272 }
1273 },
1274 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1275 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1276 .write = spi_chip_write_256,
1277 .read = spi_chip_read,
1278 .voltage = {2700, 3600},
1279 },
1280
1281 {
1282 .vendor = "AMIC",
1283 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001284 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001285 .manufacture_id = AMIC_ID_NOPREFIX,
1286 .model_id = AMIC_A25LQ032,
1287 .total_size = 4096,
1288 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001289 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001290 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001292 .tested = TEST_UNTESTED,
1293 .probe = probe_spi_rdid,
1294 .probe_timing = TIMING_ZERO,
1295 .block_erasers =
1296 {
1297 {
1298 .eraseblocks = { { 4 * 1024, 1024 } },
1299 .block_erase = spi_block_erase_20,
1300 }, {
1301 .eraseblocks = { { 64 * 1024, 64 } },
1302 .block_erase = spi_block_erase_52,
1303 }, {
1304 .eraseblocks = { { 64 * 1024, 64 } },
1305 .block_erase = spi_block_erase_d8,
1306 }, {
1307 .eraseblocks = { { 4096 * 1024, 1 } },
1308 .block_erase = spi_block_erase_60,
1309 }, {
1310 .eraseblocks = { { 4096 * 1024, 1 } },
1311 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001312 }
Dan Lenski11617122010-07-29 15:00:40 +00001313 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001314 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1315 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1316 .write = spi_chip_write_256,
1317 .read = spi_chip_read,
1318 .voltage = {2700, 3600},
1319 },
1320
1321 {
1322 .vendor = "AMIC",
1323 .name = "A25LQ64",
1324 .bustype = BUS_SPI,
1325 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001326 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .total_size = 8192,
1328 .page_size = 256,
1329 /* supports SFDP */
1330 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1331 /* QPI enable 0x35, disable 0xF5 */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
1335 .probe_timing = TIMING_ZERO,
1336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { { 4 * 1024, 2048 } },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { { 32 * 1024, 256 } },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { { 64 * 1024, 128 } },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { { 8192 * 1024, 1 } },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { { 8192 * 1024, 1 } },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001355 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001356 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001357 .write = spi_chip_write_256,
1358 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001359 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001360 },
1361
1362 {
1363 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001364 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001366 .manufacture_id = AMIC_ID_NOPREFIX,
1367 .model_id = AMIC_A29002B,
1368 .total_size = 256,
1369 .page_size = 64 * 1024,
1370 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1371 .tested = TEST_UNTESTED,
1372 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001373 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 .block_erasers =
1375 {
1376 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001377 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 {16 * 1024, 1},
1379 {8 * 1024, 2},
1380 {32 * 1024, 1},
1381 {64 * 1024, 3},
1382 },
1383 .block_erase = erase_sector_jedec,
1384 }, {
1385 .eraseblocks = { {256 * 1024, 1} },
1386 .block_erase = erase_chip_block_jedec,
1387 },
1388 },
1389 .write = write_jedec_1,
1390 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001391 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001392 },
1393
1394 {
1395 .vendor = "AMIC",
1396 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001397 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001398 .manufacture_id = AMIC_ID_NOPREFIX,
1399 .model_id = AMIC_A29002T,
1400 .total_size = 256,
1401 .page_size = 64 * 1024,
1402 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001403 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001404 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001405 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001406 .block_erasers =
1407 {
1408 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001409 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 {64 * 1024, 3},
1411 {32 * 1024, 1},
1412 {8 * 1024, 2},
1413 {16 * 1024, 1},
1414 },
1415 .block_erase = erase_sector_jedec,
1416 }, {
1417 .eraseblocks = { {256 * 1024, 1} },
1418 .block_erase = erase_chip_block_jedec,
1419 },
1420 },
1421 .write = write_jedec_1,
1422 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001423 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001424 },
1425
1426 {
1427 .vendor = "AMIC",
1428 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001429 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001430 .manufacture_id = AMIC_ID_NOPREFIX,
1431 .model_id = AMIC_A29040B,
1432 .total_size = 512,
1433 .page_size = 64 * 1024,
1434 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001435 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001436 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001437 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001438 .block_erasers =
1439 {
1440 {
1441 .eraseblocks = { {64 * 1024, 8} },
1442 .block_erase = erase_sector_jedec,
1443 }, {
1444 .eraseblocks = { {512 * 1024, 1} },
1445 .block_erase = erase_chip_block_jedec,
1446 },
1447 },
1448 .write = write_jedec_1,
1449 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001450 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001451 },
1452
1453 {
1454 .vendor = "AMIC",
1455 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001456 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001457 .manufacture_id = AMIC_ID_NOPREFIX,
1458 .model_id = AMIC_A49LF040A,
1459 .total_size = 512,
1460 .page_size = 64 * 1024,
1461 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001462 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001463 .probe = probe_jedec,
1464 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1465 .block_erasers =
1466 {
1467 {
1468 .eraseblocks = { {64 * 1024, 8} },
1469 .block_erase = erase_block_jedec,
1470 }, {
1471 .eraseblocks = { {512 * 1024, 1} },
1472 .block_erase = erase_chip_block_jedec,
1473 }
1474 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001475 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001476 .write = write_jedec_1,
1477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001478 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001479 },
1480
1481 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .vendor = "Atmel",
1483 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 256,
1488 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001489 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .tested = TEST_UNTESTED,
1492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001493 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001494 .block_erasers =
1495 {
1496 {
1497 .eraseblocks = { {4 * 1024, 64} },
1498 .block_erase = spi_block_erase_20,
1499 }, {
1500 .eraseblocks = { {32 * 1024, 8} },
1501 .block_erase = spi_block_erase_52,
1502 }, {
1503 .eraseblocks = { {64 * 1024, 4} },
1504 .block_erase = spi_block_erase_d8,
1505 }, {
1506 .eraseblocks = { {256 * 1024, 1} },
1507 .block_erase = spi_block_erase_60,
1508 }, {
1509 .eraseblocks = { {256 * 1024, 1} },
1510 .block_erase = spi_block_erase_c7,
1511 }
1512 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001513 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001514 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001515 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001516 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001517 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001518 },
1519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 {
1521 .vendor = "Atmel",
1522 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001523 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001525 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001526 .total_size = 512,
1527 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001528 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001529 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001530 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001531 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001532 .block_erasers =
1533 {
1534 {
1535 .eraseblocks = { {4 * 1024, 128} },
1536 .block_erase = spi_block_erase_20,
1537 }, {
1538 .eraseblocks = { {32 * 1024, 16} },
1539 .block_erase = spi_block_erase_52,
1540 }, {
1541 .eraseblocks = { {64 * 1024, 8} },
1542 .block_erase = spi_block_erase_d8,
1543 }, {
1544 .eraseblocks = { {512 * 1024, 1} },
1545 .block_erase = spi_block_erase_60,
1546 }, {
1547 .eraseblocks = { {512 * 1024, 1} },
1548 .block_erase = spi_block_erase_c7,
1549 }
1550 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001551 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001552 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001553 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001554 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001555 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001556 },
1557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 {
1559 .vendor = "Atmel",
1560 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001561 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001562 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001563 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001564 .total_size = 1024,
1565 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001566 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .tested = TEST_UNTESTED,
1568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001569 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001570 .block_erasers =
1571 {
1572 {
1573 .eraseblocks = { {4 * 1024, 256} },
1574 .block_erase = spi_block_erase_20,
1575 }, {
1576 .eraseblocks = { {32 * 1024, 32} },
1577 .block_erase = spi_block_erase_52,
1578 }, {
1579 .eraseblocks = { {64 * 1024, 16} },
1580 .block_erase = spi_block_erase_d8,
1581 }, {
1582 .eraseblocks = { {1024 * 1024, 1} },
1583 .block_erase = spi_block_erase_60,
1584 }, {
1585 .eraseblocks = { {1024 * 1024, 1} },
1586 .block_erase = spi_block_erase_c7,
1587 }
1588 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001589 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001590 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001591 .write = spi_chip_write_256,
1592 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001593 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 },
1595
1596 {
1597 .vendor = "Atmel",
1598 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001599 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001600 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001601 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001602 .total_size = 1024,
1603 .page_size = 256,
1604 .feature_bits = FEATURE_WRSR_WREN,
1605 .tested = TEST_UNTESTED,
1606 .probe = probe_spi_rdid,
1607 .probe_timing = TIMING_ZERO,
1608 .block_erasers =
1609 {
1610 {
1611 .eraseblocks = { {4 * 1024, 256} },
1612 .block_erase = spi_block_erase_20,
1613 }, {
1614 .eraseblocks = { {32 * 1024, 32} },
1615 .block_erase = spi_block_erase_52,
1616 }, {
1617 .eraseblocks = { {64 * 1024, 16} },
1618 .block_erase = spi_block_erase_d8,
1619 }, {
1620 .eraseblocks = { {1024 * 1024, 1} },
1621 .block_erase = spi_block_erase_60,
1622 }, {
1623 .eraseblocks = { {1024 * 1024, 1} },
1624 .block_erase = spi_block_erase_c7,
1625 }
1626 },
1627 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001628 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001629 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001630 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001631 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001632 },
1633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001634 {
1635 .vendor = "Atmel",
1636 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001637 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001638 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001639 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001640 .total_size = 2048,
1641 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001642 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001643 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 512} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 64} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 32} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {2 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {2 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
1674 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 4096,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 1024} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 128} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 64} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {4 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {4 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001705 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001708 },
1709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 {
1711 .vendor = "Atmel",
1712 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .total_size = 4096,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001720 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001721 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001722 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 1024} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 128} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 64} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {4 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {4 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001751 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001752 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001753 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001754 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001755 .total_size = 8192,
1756 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001757 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001758 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001759 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001760 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {4 * 1024, 2048} },
1765 .block_erase = spi_block_erase_20,
1766 }, {
1767 .eraseblocks = { {32 * 1024, 256} },
1768 .block_erase = spi_block_erase_52,
1769 }, {
1770 .eraseblocks = { {64 * 1024, 128} },
1771 .block_erase = spi_block_erase_d8,
1772 }, {
1773 .eraseblocks = { {8 * 1024 * 1024, 1} },
1774 .block_erase = spi_block_erase_60,
1775 }, {
1776 .eraseblocks = { {8 * 1024 * 1024, 1} },
1777 .block_erase = spi_block_erase_c7,
1778 }
1779 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001780 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001781 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001782 .write = spi_chip_write_256,
1783 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001784 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001785 },
1786
1787 {
1788 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001789 .name = "AT25DL081",
1790 .bustype = BUS_SPI,
1791 .manufacture_id = ATMEL_ID,
1792 .model_id = ATMEL_AT25DF081,
1793 .total_size = 1024,
1794 .page_size = 256,
1795 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1797 .tested = TEST_UNTESTED,
1798 .probe = probe_spi_rdid,
1799 .probe_timing = TIMING_ZERO,
1800 .block_erasers =
1801 {
1802 {
1803 .eraseblocks = { {4 * 1024, 256} },
1804 .block_erase = spi_block_erase_20,
1805 }, {
1806 .eraseblocks = { {32 * 1024, 32} },
1807 .block_erase = spi_block_erase_52,
1808 }, {
1809 .eraseblocks = { {64 * 1024, 16} },
1810 .block_erase = spi_block_erase_d8,
1811 }, {
1812 .eraseblocks = { {1 * 1024 * 1024, 1} },
1813 .block_erase = spi_block_erase_60,
1814 }, {
1815 .eraseblocks = { {1 * 1024 * 1024, 1} },
1816 .block_erase = spi_block_erase_c7,
1817 }
1818 },
1819 .printlock = spi_prettyprint_status_register_at25df_sec,
1820 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1821 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1822 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1823 .voltage = {1650, 1950},
1824 },
1825
1826 {
1827 .vendor = "Atmel",
1828 .name = "AT25DL161",
1829 .bustype = BUS_SPI,
1830 .manufacture_id = ATMEL_ID,
1831 .model_id = ATMEL_AT25DL161,
1832 .total_size = 2048,
1833 .page_size = 256,
1834 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1836 .tested = TEST_UNTESTED,
1837 .probe = probe_spi_rdid,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {4 * 1024, 512} },
1843 .block_erase = spi_block_erase_20,
1844 }, {
1845 .eraseblocks = { {32 * 1024, 64} },
1846 .block_erase = spi_block_erase_52,
1847 }, {
1848 .eraseblocks = { {64 * 1024, 32} },
1849 .block_erase = spi_block_erase_d8,
1850 }, {
1851 .eraseblocks = { {2 * 1024 * 1024, 1} },
1852 .block_erase = spi_block_erase_60,
1853 }, {
1854 .eraseblocks = { {2 * 1024 * 1024, 1} },
1855 .block_erase = spi_block_erase_c7,
1856 }
1857 },
1858 .printlock = spi_prettyprint_status_register_at25df_sec,
1859 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1860 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1861 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1862 .voltage = {1650, 1950},
1863 },
1864
1865 {
1866 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001867 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001868 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001869 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001870 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001871 .total_size = 2048,
1872 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001873 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1874 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001875 .tested = TEST_UNTESTED,
1876 .probe = probe_spi_rdid,
1877 .probe_timing = TIMING_ZERO,
1878 .block_erasers =
1879 {
1880 {
1881 .eraseblocks = { {4 * 1024, 512} },
1882 .block_erase = spi_block_erase_20,
1883 }, {
1884 .eraseblocks = { {32 * 1024, 64} },
1885 .block_erase = spi_block_erase_52,
1886 }, {
1887 .eraseblocks = { {64 * 1024, 32} },
1888 .block_erase = spi_block_erase_d8,
1889 }, {
1890 .eraseblocks = { {2 * 1024 * 1024, 1} },
1891 .block_erase = spi_block_erase_60,
1892 }, {
1893 .eraseblocks = { {2 * 1024 * 1024, 1} },
1894 .block_erase = spi_block_erase_c7,
1895 }
1896 },
1897 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001898 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001899 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001900 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001901 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001902 },
1903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 {
1905 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001906 .name = "AT25F512",
1907 .bustype = BUS_SPI,
1908 .manufacture_id = ATMEL_ID,
1909 .model_id = ATMEL_AT25F512,
1910 .total_size = 64,
1911 .page_size = 256,
1912 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001913 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001914 .probe = probe_spi_at25f,
1915 .probe_timing = TIMING_ZERO,
1916 .block_erasers =
1917 {
1918 {
1919 .eraseblocks = { {32 * 1024, 2} },
1920 .block_erase = spi_block_erase_52,
1921 }, {
1922 .eraseblocks = { {64 * 1024, 1} },
1923 .block_erase = spi_block_erase_62,
1924 }
1925 },
1926 .printlock = spi_prettyprint_status_register_at25f,
1927 .unlock = spi_disable_blockprotect_at25f,
1928 .write = spi_chip_write_256,
1929 .read = spi_chip_read,
1930 .voltage = {2700, 3600},
1931 },
1932
1933 {
1934 .vendor = "Atmel",
1935 .name = "AT25F512A",
1936 .bustype = BUS_SPI,
1937 .manufacture_id = ATMEL_ID,
1938 .model_id = ATMEL_AT25F512A,
1939 .total_size = 64,
1940 .page_size = 128,
1941 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001942 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001943 .probe = probe_spi_at25f,
1944 .probe_timing = TIMING_ZERO,
1945 .block_erasers =
1946 {
1947 {
1948 .eraseblocks = { {32 * 1024, 2} },
1949 .block_erase = spi_block_erase_52,
1950 }, {
1951 .eraseblocks = { {64 * 1024, 1} },
1952 .block_erase = spi_block_erase_62,
1953 }
1954 },
1955 .printlock = spi_prettyprint_status_register_at25f512a,
1956 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1957 .unlock = spi_disable_blockprotect_at25f512a,
1958 .write = spi_chip_write_256,
1959 .read = spi_chip_read,
1960 .voltage = {2700, 3600},
1961 },
1962
1963 {
1964 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001965 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001966 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001967 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001968 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001969 .total_size = 64,
1970 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001971 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 .tested = TEST_UNTESTED,
1974 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001975 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001976 .block_erasers =
1977 {
1978 {
1979 .eraseblocks = { {4 * 1024, 16} },
1980 .block_erase = spi_block_erase_20,
1981 }, {
1982 .eraseblocks = { {32 * 1024, 2} },
1983 .block_erase = spi_block_erase_52,
1984 }, {
1985 .eraseblocks = { {32 * 1024, 2} },
1986 .block_erase = spi_block_erase_d8,
1987 }, {
1988 .eraseblocks = { {64 * 1024, 1} },
1989 .block_erase = spi_block_erase_60,
1990 }, {
1991 .eraseblocks = { {64 * 1024, 1} },
1992 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001993 }, {
1994 .eraseblocks = { {64 * 1024, 1} },
1995 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001996 }
1997 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001998 .printlock = spi_prettyprint_status_register_at25f512b,
1999 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002000 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002002 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002003 },
2004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 {
2006 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002007 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2008 * All other properties seem to be the same.*/
2009 .name = "AT25F1024(A)",
2010 .bustype = BUS_SPI,
2011 .manufacture_id = ATMEL_ID,
2012 .model_id = ATMEL_AT25F1024,
2013 .total_size = 128,
2014 .page_size = 256,
2015 .feature_bits = FEATURE_WRSR_WREN,
2016 .tested = TEST_OK_PREW,
2017 .probe = probe_spi_at25f,
2018 .probe_timing = TIMING_ZERO,
2019 .block_erasers =
2020 {
2021 {
2022 .eraseblocks = { {32 * 1024, 4} },
2023 .block_erase = spi_block_erase_52,
2024 }, {
2025 .eraseblocks = { {128 * 1024, 1} },
2026 .block_erase = spi_block_erase_62,
2027 }
2028 },
2029 .printlock = spi_prettyprint_status_register_at25f,
2030 .unlock = spi_disable_blockprotect_at25f,
2031 .write = spi_chip_write_256,
2032 .read = spi_chip_read,
2033 .voltage = {2700, 3600},
2034 },
2035
2036 {
2037 .vendor = "Atmel",
2038 .name = "AT25F2048",
2039 .bustype = BUS_SPI,
2040 .manufacture_id = ATMEL_ID,
2041 .model_id = ATMEL_AT25F2048,
2042 .total_size = 256,
2043 .page_size = 256,
2044 .feature_bits = FEATURE_WRSR_WREN,
2045 .tested = TEST_UNTESTED,
2046 .probe = probe_spi_at25f,
2047 .probe_timing = TIMING_ZERO,
2048 .block_erasers =
2049 {
2050 {
2051 .eraseblocks = { {64 * 1024, 4} },
2052 .block_erase = spi_block_erase_52,
2053 }, {
2054 .eraseblocks = { {256 * 1024, 1} },
2055 .block_erase = spi_block_erase_62,
2056 }
2057 },
2058 .printlock = spi_prettyprint_status_register_at25f,
2059 .unlock = spi_disable_blockprotect_at25f,
2060 .write = spi_chip_write_256,
2061 .read = spi_chip_read,
2062 .voltage = {2700, 3600},
2063 },
2064
2065 {
2066 .vendor = "Atmel",
2067 .name = "AT25F4096",
2068 .bustype = BUS_SPI,
2069 .manufacture_id = ATMEL_ID,
2070 .model_id = ATMEL_AT25F4096,
2071 .total_size = 512,
2072 .page_size = 256,
2073 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00002074 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002075 .probe = probe_spi_at25f,
2076 .probe_timing = TIMING_ZERO,
2077 .block_erasers =
2078 {
2079 {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_52,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_62,
2085 }
2086 },
2087 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002088 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2089 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002090 .write = spi_chip_write_256,
2091 .read = spi_chip_read,
2092 .voltage = {2700, 3600},
2093 },
2094
2095 {
2096 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002098 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002100 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .total_size = 128,
2102 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002103 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002104 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002106 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002107 .block_erasers =
2108 {
2109 {
2110 .eraseblocks = { {4 * 1024, 32} },
2111 .block_erase = spi_block_erase_20,
2112 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002113 .eraseblocks = { {4 * 1024, 32} },
2114 .block_erase = spi_block_erase_d7,
2115 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002116 .eraseblocks = { {32 * 1024, 4} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 4} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {128 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {128 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
2127 }
2128 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002129 .printlock = spi_prettyprint_status_register_at25fs010,
2130 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002131 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002132 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002133 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002134 },
2135
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002136 {
2137 .vendor = "Atmel",
2138 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002139 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002141 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002142 .total_size = 512,
2143 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002144 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .tested = TEST_UNTESTED,
2146 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002147 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002148 .block_erasers =
2149 {
2150 {
2151 .eraseblocks = { {4 * 1024, 128} },
2152 .block_erase = spi_block_erase_20,
2153 }, {
2154 .eraseblocks = { {64 * 1024, 8} },
2155 .block_erase = spi_block_erase_52,
2156 }, {
2157 .eraseblocks = { {64 * 1024, 8} },
2158 .block_erase = spi_block_erase_d8,
2159 }, {
2160 .eraseblocks = { {512 * 1024, 1} },
2161 .block_erase = spi_block_erase_60,
2162 }, {
2163 .eraseblocks = { {512 * 1024, 1} },
2164 .block_erase = spi_block_erase_c7,
2165 }
2166 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002167 .printlock = spi_prettyprint_status_register_at25fs040,
2168 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002169 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002171 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002172 },
2173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 {
2175 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002176 .name = "AT25SF041",
2177 .bustype = BUS_SPI,
2178 .manufacture_id = ATMEL_ID,
2179 .model_id = ATMEL_AT25SF041,
2180 .total_size = 512,
2181 .page_size = 256,
2182 .feature_bits = FEATURE_WRSR_WREN,
2183 .tested = TEST_OK_PREW,
2184 .probe = probe_spi_rdid,
2185 .probe_timing = TIMING_ZERO,
2186 .block_erasers =
2187 {
2188 {
2189 .eraseblocks = { {4 * 1024, 128} },
2190 .block_erase = spi_block_erase_20,
2191 }, {
2192 .eraseblocks = { {32 * 1024, 16} },
2193 .block_erase = spi_block_erase_52,
2194 }, {
2195 .eraseblocks = { {64 * 1024, 8} },
2196 .block_erase = spi_block_erase_d8,
2197 }, {
2198 .eraseblocks = { {512 * 1024, 1} },
2199 .block_erase = spi_block_erase_60,
2200 }, {
2201 .eraseblocks = { {512 * 1024, 1} },
2202 .block_erase = spi_block_erase_c7,
2203 }
2204 },
2205 .printlock = spi_prettyprint_status_register_plain,
2206 .unlock = spi_disable_blockprotect,
2207 .write = spi_chip_write_256,
2208 .read = spi_chip_read,
2209 .voltage = {2500, 3600},
2210 },
2211
2212 {
2213 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002214 .name = "AT25SF161",
2215 .bustype = BUS_SPI,
2216 .manufacture_id = ATMEL_ID,
2217 .model_id = ATMEL_AT25SF161,
2218 .total_size = 2048,
2219 .page_size = 256,
2220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2221 .tested = TEST_OK_PREW,
2222 .probe = probe_spi_rdid,
2223 .probe_timing = TIMING_ZERO,
2224 .block_erasers =
2225 {
2226 {
2227 .eraseblocks = { {4 * 1024, 512} },
2228 .block_erase = spi_block_erase_20,
2229 }, {
2230 .eraseblocks = { {32 * 1024, 64} },
2231 .block_erase = spi_block_erase_52,
2232 }, {
2233 .eraseblocks = { {64 * 1024, 32} },
2234 .block_erase = spi_block_erase_d8,
2235 }, {
2236 .eraseblocks = { {2048 * 1024, 1} },
2237 .block_erase = spi_block_erase_60,
2238 }, {
2239 .eraseblocks = { {2048 * 1024, 1} },
2240 .block_erase = spi_block_erase_c7,
2241 }
2242 },
2243 .printlock = spi_prettyprint_status_register_plain,
2244 .unlock = spi_disable_blockprotect,
2245 .write = spi_chip_write_256,
2246 .read = spi_chip_read,
2247 .voltage = {2500, 3600},
2248 },
2249
2250 {
2251 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002253 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002254 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002255 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .total_size = 512,
2257 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002258 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002259 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002261 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002262 .block_erasers =
2263 {
2264 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002265 .eraseblocks = { {256, 2048} },
2266 .block_erase = spi_block_erase_81,
2267 }, {
2268 .eraseblocks = { {2 * 1024, 256} },
2269 .block_erase = spi_block_erase_50,
2270 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002271 .eraseblocks = { {4 * 1024, 128} },
2272 .block_erase = spi_block_erase_20,
2273 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002274 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002275 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002276 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002277 .write = spi_chip_write_1,
2278 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002279 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002280 },
2281
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 {
2283 .vendor = "Atmel",
2284 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002285 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002287 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .total_size = 1024,
2289 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002290 .feature_bits = FEATURE_WRSR_WREN,
2291 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002293 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002294 .block_erasers =
2295 {
2296 {
2297 .eraseblocks = { {4 * 1024, 256} },
2298 .block_erase = spi_block_erase_20,
2299 }, {
2300 .eraseblocks = { {32 * 1024, 32} },
2301 .block_erase = spi_block_erase_52,
2302 }, {
2303 .eraseblocks = { {64 * 1024, 16} },
2304 .block_erase = spi_block_erase_d8,
2305 }, {
2306 .eraseblocks = { {1024 * 1024, 1} },
2307 .block_erase = spi_block_erase_60,
2308 }, {
2309 .eraseblocks = { {1024 * 1024, 1} },
2310 .block_erase = spi_block_erase_c7,
2311 }
2312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002313 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002314 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002315 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002317 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002318 },
2319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 {
2321 .vendor = "Atmel",
2322 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002323 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002324 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002325 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002326 .total_size = 2048,
2327 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002328 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002329 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002330 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002331 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002332 .block_erasers =
2333 {
2334 {
2335 .eraseblocks = { {4 * 1024, 512} },
2336 .block_erase = spi_block_erase_20,
2337 }, {
2338 .eraseblocks = { {32 * 1024, 64} },
2339 .block_erase = spi_block_erase_52,
2340 }, {
2341 .eraseblocks = { {64 * 1024, 32} },
2342 .block_erase = spi_block_erase_d8,
2343 }, {
2344 .eraseblocks = { {2 * 1024 * 1024, 1} },
2345 .block_erase = spi_block_erase_60,
2346 }, {
2347 .eraseblocks = { {2 * 1024 * 1024, 1} },
2348 .block_erase = spi_block_erase_c7,
2349 }
2350 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002351 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002352 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002353 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002354 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002355 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002356 },
2357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002358 {
2359 .vendor = "Atmel",
2360 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002361 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002362 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002363 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002364 .total_size = 2048,
2365 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002366 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002367 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002369 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002370 .block_erasers =
2371 {
2372 {
2373 .eraseblocks = { {4 * 1024, 512} },
2374 .block_erase = spi_block_erase_20,
2375 }, {
2376 .eraseblocks = { {32 * 1024, 64} },
2377 .block_erase = spi_block_erase_52,
2378 }, {
2379 .eraseblocks = { {64 * 1024, 32} },
2380 .block_erase = spi_block_erase_d8,
2381 }, {
2382 .eraseblocks = { {2 * 1024 * 1024, 1} },
2383 .block_erase = spi_block_erase_60,
2384 }, {
2385 .eraseblocks = { {2 * 1024 * 1024, 1} },
2386 .block_erase = spi_block_erase_c7,
2387 }
2388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002389 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002390 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002391 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002393 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002394 },
2395
2396 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002397 /*{
2398 .vendor = "Atmel",
2399 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002400 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002401 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002402 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 .total_size = 4096,
2404 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002405 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .tested = TEST_UNTESTED,
2407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002409 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002410 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002411 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002412 .read = spi_chip_read,
2413 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002414
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 {
2416 .vendor = "Atmel",
2417 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002418 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002420 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002421 .total_size = 512,
2422 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002423 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002424 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002425 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002426 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002427 .block_erasers =
2428 {
2429 {
2430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }, {
2433 .eraseblocks = { {32 * 1024, 16} },
2434 .block_erase = spi_block_erase_52,
2435 }, {
2436 .eraseblocks = { {64 * 1024, 8} },
2437 .block_erase = spi_block_erase_d8,
2438 }, {
2439 .eraseblocks = { {512 * 1024, 1} },
2440 .block_erase = spi_block_erase_60,
2441 }, {
2442 .eraseblocks = { {512 * 1024, 1} },
2443 .block_erase = spi_block_erase_c7,
2444 }
2445 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .write = NULL /* Incompatible Page write */,
2448 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002449 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002450 },
2451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002452 {
2453 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002454 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002455 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002456 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002457 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002458 .total_size = 64,
2459 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002460 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002461 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002462 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002463 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002464 .block_erasers =
2465 {
2466 {
2467 .eraseblocks = { {64 * 1024, 1} },
2468 .block_erase = erase_chip_block_jedec,
2469 }
2470 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002471 .write = write_jedec,
2472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002473 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002474 },
2475
2476 {
2477 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002478 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002479 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002481 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002482 .total_size = 128,
2483 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002484 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002485 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002486 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002487 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002488 .block_erasers =
2489 {
2490 {
2491 .eraseblocks = { {128 * 1024, 1} },
2492 .block_erase = erase_chip_block_jedec,
2493 }
2494 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002495 .write = write_jedec, /* FIXME */
2496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002497 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002498 },
2499
2500 {
2501 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002502 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002503 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002504 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002505 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002506 .total_size = 256,
2507 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002508 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002510 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002511 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002512 .block_erasers =
2513 {
2514 {
2515 .eraseblocks = { {256 * 1024, 1} },
2516 .block_erase = erase_chip_block_jedec,
2517 }
2518 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002519 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002520 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002521 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002522 },
2523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002524 {
2525 .vendor = "Atmel",
2526 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002527 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002528 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002529 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002530 .total_size = 512,
2531 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002532 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002533 .tested = TEST_UNTESTED,
2534 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002535 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002536 .block_erasers =
2537 {
2538 {
2539 .eraseblocks = { {512 * 1024, 1} },
2540 .block_erase = erase_chip_block_jedec,
2541 }
2542 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002543 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002545 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002546 },
2547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002548 {
2549 .vendor = "Atmel",
2550 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002551 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002552 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002553 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002554 .total_size = 16896 /* No power of two sizes */,
2555 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002556 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002557 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2558 .feature_bits = FEATURE_OTP,
2559 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002560 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002561 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002562 .block_erasers =
2563 {
2564 {
2565 .eraseblocks = {
2566 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2567 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2568 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2569 },
2570 .block_erase = spi_erase_at45cs_sector,
2571 }
2572 },
2573 .printlock = spi_prettyprint_status_register_plain,
2574 .gran = write_gran_1056bytes,
2575 .write = spi_write_at45db,
2576 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002577 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002578 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002580 {
2581 .vendor = "Atmel",
2582 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002583 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002584 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002585 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002586 .total_size = 128 /* or 132, determined from status register */,
2587 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002588 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002589 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2590 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002591 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002592 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002593 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002594 .block_erasers =
2595 {
2596 {
2597 .eraseblocks = { {256, 512} },
2598 .block_erase = spi_erase_at45db_page,
2599 }, {
2600 .eraseblocks = { {8 * 256, 512/8} },
2601 .block_erase = spi_erase_at45db_block,
2602 }, {
2603 .eraseblocks = {
2604 {8 * 256, 1},
2605 {120 * 256, 1},
2606 {128 * 256, 3},
2607 },
2608 .block_erase = spi_erase_at45db_sector
2609 }, {
2610 .eraseblocks = { {128 * 1024, 1} },
2611 .block_erase = spi_erase_at45db_chip,
2612 }
2613 },
2614 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2615 .printlock = spi_prettyprint_status_register_at45db,
2616 /* granularity will be set by the probing function. */
2617 .write = spi_write_at45db,
2618 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002619 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002620 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 {
2623 .vendor = "Atmel",
2624 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002625 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002627 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002628 .total_size = 256 /* or 264, determined from status register */,
2629 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002630 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002631 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2632 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002633 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002634 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002635 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002636 .block_erasers =
2637 {
2638 {
2639 .eraseblocks = { {256, 1024} },
2640 .block_erase = spi_erase_at45db_page,
2641 }, {
2642 .eraseblocks = { {8 * 256, 1024/8} },
2643 .block_erase = spi_erase_at45db_block,
2644 }, {
2645 .eraseblocks = {
2646 {8 * 256, 1},
2647 {120 * 256, 1},
2648 {128 * 256, 7},
2649 },
2650 .block_erase = spi_erase_at45db_sector
2651 }, {
2652 .eraseblocks = { {256 * 1024, 1} },
2653 .block_erase = spi_erase_at45db_chip,
2654 }
2655 },
2656 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2657 .printlock = spi_prettyprint_status_register_at45db,
2658 /* granularity will be set by the probing function. */
2659 .write = spi_write_at45db,
2660 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002662 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
2666 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002667 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002668 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002669 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002670 .total_size = 512 /* or 528, determined from status register */,
2671 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002672 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002673 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2674 .feature_bits = FEATURE_OTP,
2675 .tested = TEST_OK_PREW,
2676 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002677 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002678 .block_erasers =
2679 {
2680 {
2681 .eraseblocks = { {256, 2048} },
2682 .block_erase = spi_erase_at45db_page,
2683 }, {
2684 .eraseblocks = { {8 * 256, 2048/8} },
2685 .block_erase = spi_erase_at45db_block,
2686 }, {
2687 .eraseblocks = {
2688 {8 * 256, 1},
2689 {248 * 256, 1},
2690 {256 * 256, 7},
2691 },
2692 .block_erase = spi_erase_at45db_sector
2693 }, {
2694 .eraseblocks = { {512 * 1024, 1} },
2695 .block_erase = spi_erase_at45db_chip,
2696 }
2697 },
2698 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2699 .printlock = spi_prettyprint_status_register_at45db,
2700 /* granularity will be set by the probing function. */
2701 .write = spi_write_at45db,
2702 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2703 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002704 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002705
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002706 {
2707 .vendor = "Atmel",
2708 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002709 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002710 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002711 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002712 .total_size = 1024 /* or 1056, determined from status register */,
2713 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002714 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002715 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2716 .feature_bits = FEATURE_OTP,
2717 .tested = TEST_UNTESTED,
2718 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002719 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002720 .block_erasers =
2721 {
2722 {
2723 .eraseblocks = { {256, 4096} },
2724 .block_erase = spi_erase_at45db_page,
2725 }, {
2726 .eraseblocks = { {8 * 256, 4096/8} },
2727 .block_erase = spi_erase_at45db_block,
2728 }, {
2729 .eraseblocks = {
2730 {8 * 256, 1},
2731 {248 * 256, 1},
2732 {256 * 256, 15},
2733 },
2734 .block_erase = spi_erase_at45db_sector
2735 }, {
2736 .eraseblocks = { {1024 * 1024, 1} },
2737 .block_erase = spi_erase_at45db_chip,
2738 }
2739 },
2740 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2741 .printlock = spi_prettyprint_status_register_at45db,
2742 /* granularity will be set by the probing function. */
2743 .write = spi_write_at45db,
2744 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002745 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002746 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002748 {
2749 .vendor = "Atmel",
2750 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002751 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002752 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002753 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .total_size = 2048 /* or 2112, determined from status register */,
2755 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002756 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2758 .feature_bits = FEATURE_OTP,
2759 .tested = TEST_OK_PREW,
2760 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002761 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002762 .block_erasers =
2763 {
2764 {
2765 .eraseblocks = { {512, 4096} },
2766 .block_erase = spi_erase_at45db_page,
2767 }, {
2768 .eraseblocks = { {8 * 512, 4096/8} },
2769 .block_erase = spi_erase_at45db_block,
2770 }, {
2771 .eraseblocks = {
2772 {8 * 512, 1},
2773 {248 * 512, 1},
2774 {256 * 512, 15},
2775 },
2776 .block_erase = spi_erase_at45db_sector
2777 }, {
2778 .eraseblocks = { {2048 * 1024, 1} },
2779 .block_erase = spi_erase_at45db_chip,
2780 }
2781 },
2782 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2783 .printlock = spi_prettyprint_status_register_at45db,
2784 /* granularity will be set by the probing function. */
2785 .write = spi_write_at45db,
2786 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002787 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002788 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 {
2791 .vendor = "Atmel",
2792 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002793 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002795 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002796 .total_size = 4224 /* No power of two sizes */,
2797 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002798 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002799 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2800 .feature_bits = FEATURE_OTP,
2801 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002802 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002803 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002804 .block_erasers =
2805 {
2806 {
2807 .eraseblocks = { {528, 8192} },
2808 .block_erase = spi_erase_at45db_page,
2809 }, {
2810 .eraseblocks = { {8 * 528, 8192/8} },
2811 .block_erase = spi_erase_at45db_block,
2812 }, /* Although the datasheets describes sectors (which can be write protected)
2813 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002814 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002815 .eraseblocks = {
2816 {8 * 528, 1},
2817 {120 * 528, 1},
2818 {128 * 528, 63},
2819 },
2820 .block_erase = spi_erase_at45db_sector
2821 }, */ {
2822 .eraseblocks = { {4224 * 1024, 1} },
2823 .block_erase = spi_erase_at45db_chip,
2824 }
2825 },
2826 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2827 .gran = write_gran_528bytes,
2828 .write = spi_write_at45db,
2829 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002830 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002831 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002832
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002833 {
2834 .vendor = "Atmel",
2835 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002836 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002837 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002838 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002839 .total_size = 4096 /* or 4224, determined from status register */,
2840 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002841 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002842 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002843 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002844 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002845 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002846 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002847 .block_erasers =
2848 {
2849 {
2850 .eraseblocks = { {512, 8192} },
2851 .block_erase = spi_erase_at45db_page,
2852 }, {
2853 .eraseblocks = { {8 * 512, 8192/8} },
2854 .block_erase = spi_erase_at45db_block,
2855 }, {
2856 .eraseblocks = {
2857 {8 * 512, 1},
2858 {120 * 512, 1},
2859 {128 * 512, 63},
2860 },
2861 .block_erase = spi_erase_at45db_sector
2862 }, {
2863 .eraseblocks = { {4096 * 1024, 1} },
2864 .block_erase = spi_erase_at45db_chip,
2865 }
2866 },
2867 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2868 .printlock = spi_prettyprint_status_register_at45db,
2869 /* granularity will be set by the probing function. */
2870 .write = spi_write_at45db,
2871 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2872 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2873 },
2874
2875 {
2876 .vendor = "Atmel",
2877 .name = "AT45DB321E",
2878 .bustype = BUS_SPI,
2879 .manufacture_id = ATMEL_ID,
2880 .model_id = ATMEL_AT45DB321C,
2881 .total_size = 4096 /* or 4224, determined from status register */,
2882 .page_size = 512 /* or 528, determined from status register */,
2883 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2884 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2885 .feature_bits = FEATURE_OTP,
2886 .tested = TEST_UNTESTED,
2887 .probe = probe_spi_at45db,
2888 .probe_timing = TIMING_ZERO,
2889 .block_erasers =
2890 {
2891 {
2892 .eraseblocks = { {512, 8192} },
2893 .block_erase = spi_erase_at45db_page,
2894 }, {
2895 .eraseblocks = { {8 * 512, 8192/8} },
2896 .block_erase = spi_erase_at45db_block,
2897 }, {
2898 .eraseblocks = {
2899 {8 * 512, 1},
2900 {120 * 512, 1},
2901 {128 * 512, 63},
2902 },
2903 .block_erase = spi_erase_at45db_sector
2904 }, {
2905 .eraseblocks = { {4096 * 1024, 1} },
2906 .block_erase = spi_erase_at45db_chip,
2907 }
2908 },
2909 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2910 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2911 /* granularity will be set by the probing function. */
2912 .write = spi_write_at45db,
2913 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2914 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002915 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002916
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002917 {
2918 .vendor = "Atmel",
2919 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002920 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002921 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002922 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002923 .total_size = 8192 /* or 8448, determined from status register */,
2924 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002925 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002926 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2927 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002928 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002929 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002930 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {1024, 8192} },
2935 .block_erase = spi_erase_at45db_page,
2936 }, {
2937 .eraseblocks = { {8 * 1024, 8192/8} },
2938 .block_erase = spi_erase_at45db_block,
2939 }, {
2940 .eraseblocks = {
2941 {8 * 1024, 1},
2942 {248 * 1024, 1},
2943 {256 * 1024, 31},
2944 },
2945 .block_erase = spi_erase_at45db_sector
2946 }, {
2947 .eraseblocks = { {8192 * 1024, 1} },
2948 .block_erase = spi_erase_at45db_chip,
2949 }
2950 },
2951 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2952 .printlock = spi_prettyprint_status_register_at45db,
2953 /* granularity will be set by the probing function. */
2954 .write = spi_write_at45db,
2955 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002956 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002957 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002959 {
2960 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002961 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002962 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002963 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002964 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002965 .total_size = 64,
2966 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002967 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002968 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002969 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002970 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002971 .block_erasers =
2972 {
2973 {
2974 .eraseblocks = { {64 * 1024, 1} },
2975 .block_erase = erase_chip_block_jedec,
2976 }
2977 },
Sean Nelson35727f72010-01-28 23:55:12 +00002978 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002980 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002981 },
2982
2983 {
2984 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002985 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002986 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002987 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002988 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002989 .total_size = 256,
2990 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002991 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002992 .tested = TEST_UNTESTED,
2993 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002994 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002995 .block_erasers =
2996 {
2997 {
2998 .eraseblocks = {
2999 {16 * 1024, 1},
3000 {8 * 1024, 2},
3001 {96 * 1024, 1},
3002 {128 * 1024, 1},
3003 },
3004 .block_erase = erase_sector_jedec,
3005 }, {
3006 .eraseblocks = { {256 * 1024, 1} },
3007 .block_erase = erase_chip_block_jedec,
3008 }
3009 },
Sean Nelson35727f72010-01-28 23:55:12 +00003010 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003012 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003013 },
3014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003015 {
3016 .vendor = "Atmel",
3017 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003018 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003019 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003020 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003021 .total_size = 256,
3022 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003023 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003024 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003025 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003026 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003027 .block_erasers =
3028 {
3029 {
3030 .eraseblocks = {
3031 {128 * 1024, 1},
3032 {96 * 1024, 1},
3033 {8 * 1024, 2},
3034 {16 * 1024, 1},
3035 },
3036 .block_erase = erase_sector_jedec,
3037 }, {
3038 .eraseblocks = { {256 * 1024, 1} },
3039 .block_erase = erase_chip_block_jedec,
3040 }
3041 },
Sean Nelson35727f72010-01-28 23:55:12 +00003042 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003044 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003045 },
3046
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003047 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003048 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003049 .name = "AT49(H)F010",
3050 .bustype = BUS_PARALLEL,
3051 .manufacture_id = ATMEL_ID,
3052 .model_id = ATMEL_AT49F010,
3053 .total_size = 128,
3054 .page_size = 0, /* unused */
3055 .feature_bits = FEATURE_EITHER_RESET,
3056 .tested = TEST_OK_PREW,
3057 .probe = probe_jedec,
3058 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3059 .block_erasers =
3060 {
3061 {
3062 .eraseblocks = { {128 * 1024, 1} },
3063 .block_erase = erase_chip_block_jedec,
3064 }
3065 },
3066 .printlock = printlock_at49f,
Elyes HAOUAS124ef382018-03-27 12:15:09 +02003067 .write = write_jedec_1,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003068 .read = read_memmapped,
3069 .voltage = {4500, 5500},
3070 },
3071
3072 {
3073 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003074 .name = "AT49F020",
3075 .bustype = BUS_PARALLEL,
3076 .manufacture_id = ATMEL_ID,
3077 .model_id = ATMEL_AT49F020,
3078 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003079 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003080 .feature_bits = FEATURE_EITHER_RESET,
3081 .tested = TEST_OK_PRE,
3082 .probe = probe_jedec,
3083 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3084 .block_erasers =
3085 {
3086 {
3087 .eraseblocks = { {256 * 1024, 1} },
3088 .block_erase = erase_chip_block_jedec,
3089 }
3090 /* Chip features an optional permanent write protection
3091 * of the first 8 kB. The erase function is the same as
3092 * above, but 00000H to 01FFFH will not be erased.
3093 * FIXME: add another eraser when partial erasers are
3094 * supported.
3095 */
3096 },
3097 .printlock = printlock_at49f,
3098 .write = write_jedec_1,
3099 .read = read_memmapped,
3100 .voltage = {4500, 5500},
3101 },
3102
3103 {
3104 .vendor = "Atmel",
3105 .name = "AT49F040",
3106 .bustype = BUS_PARALLEL,
3107 .manufacture_id = ATMEL_ID,
3108 .model_id = ATMEL_AT49F040,
3109 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003110 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003111 .feature_bits = FEATURE_EITHER_RESET,
3112 .tested = TEST_UNTESTED,
3113 .probe = probe_jedec,
3114 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3115 .block_erasers =
3116 {
3117 {
3118 .eraseblocks = { {512 * 1024, 1} },
3119 .block_erase = erase_chip_block_jedec,
3120 }
3121 /* Chip features an optional permanent write protection
3122 * of the first 16 kB. The erase function is the same as
3123 * above, but 00000H to 03FFFH will not be erased.
3124 * FIXME: add another eraser when partial erasers are
3125 * supported.
3126 */
3127 },
3128 .printlock = printlock_at49f,
3129 .write = write_jedec_1,
3130 .read = read_memmapped,
3131 .voltage = {4500, 5500},
3132 },
3133
3134 {
3135 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003136 .name = "AT49F080",
3137 .bustype = BUS_PARALLEL,
3138 .manufacture_id = ATMEL_ID,
3139 .model_id = ATMEL_AT49F080,
3140 .total_size = 1024,
3141 .page_size = 0, /* unused */
3142 .feature_bits = FEATURE_EITHER_RESET,
3143 .tested = TEST_UNTESTED,
3144 .probe = probe_jedec,
3145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3146 .block_erasers =
3147 {
3148 {
3149 .eraseblocks = { {1024 * 1024, 1} },
3150 .block_erase = erase_chip_block_jedec,
3151 }
3152 /* Chip features an optional permanent write protection
3153 * of the first 16 kB. The erase function is the same as
3154 * above, but 00000H to 03FFFH will not be erased.
3155 * FIXME: add another eraser when partial erasers are
3156 * supported.
3157 */
3158 },
3159 .printlock = printlock_at49f,
3160 .write = write_jedec_1,
3161 .read = read_memmapped,
3162 .voltage = {4500, 5500},
3163 },
3164
3165 {
3166 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3167 .vendor = "Atmel",
3168 .name = "AT49F080T",
3169 .bustype = BUS_PARALLEL,
3170 .manufacture_id = ATMEL_ID,
3171 .model_id = ATMEL_AT49F080T,
3172 .total_size = 1024,
3173 .page_size = 0, /* unused */
3174 .feature_bits = FEATURE_EITHER_RESET,
3175 .tested = TEST_UNTESTED,
3176 .probe = probe_jedec,
3177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3178 .block_erasers =
3179 {
3180 {
3181 .eraseblocks = { {1024 * 1024, 1} },
3182 .block_erase = erase_chip_block_jedec,
3183 }
3184 /* Chip features an optional permanent write protection
3185 * of the first 16 kB. The erase function is the same as
3186 * above, but FC000H to FFFFFH will not be erased.
3187 * FIXME: add another eraser when partial erasers are
3188 * supported.
3189 */
3190 },
3191 .printlock = printlock_at49f,
3192 .write = write_jedec_1,
3193 .read = read_memmapped,
3194 .voltage = {4500, 5500},
3195 },
3196
3197 {
3198 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003199 .name = "AT49LH002",
3200 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3201 .manufacture_id = ATMEL_ID,
3202 .model_id = ATMEL_AT49LH002,
3203 .total_size = 256,
3204 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003205 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003206 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003207 .probe = probe_82802ab,
3208 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003209 .block_erasers =
3210 {
3211 {
3212 .eraseblocks = {
3213 {64 * 1024, 3},
3214 {32 * 1024, 1},
3215 {8 * 1024, 2},
3216 {16 * 1024, 1},
3217 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003218 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003219 }, {
3220 .eraseblocks = {
3221 {64 * 1024, 4},
3222 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003223 .block_erase = erase_block_82802ab,
3224 },
3225 },
3226 .printlock = printlock_regspace2_block_eraser_0,
3227 .unlock = unlock_regspace2_block_eraser_0,
3228 .write = write_82802ab,
3229 .read = read_memmapped,
3230 .voltage = {3000, 3600},
3231 },
3232
3233 {
3234 .vendor = "Atmel",
3235 .name = "AT49LH00B4",
3236 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3237 .manufacture_id = ATMEL_ID,
3238 .model_id = ATMEL_AT49LH00B4,
3239 .total_size = 512,
3240 .page_size = 0, /* unused */
3241 .feature_bits = FEATURE_REGISTERMAP,
3242 .tested = TEST_UNTESTED,
3243 .probe = probe_82802ab,
3244 .probe_timing = TIMING_ZERO,
3245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = {
3249 {8 * 1024, 2},
3250 {16 * 1024, 1},
3251 {32 * 1024, 1},
3252 {64 * 1024, 7},
3253 },
3254 .block_erase = NULL, /* TODO: Implement. */
3255 }, {
3256 .eraseblocks = {
3257 {64 * 1024, 8},
3258 },
3259 .block_erase = erase_block_82802ab,
3260 },
3261 },
3262 .printlock = printlock_regspace2_block_eraser_0,
3263 .unlock = unlock_regspace2_block_eraser_0,
3264 .write = write_82802ab,
3265 .read = read_memmapped,
3266 .voltage = {3000, 3600},
3267 },
3268
3269 {
3270 .vendor = "Atmel",
3271 .name = "AT49LH004",
3272 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3273 .manufacture_id = ATMEL_ID,
3274 .model_id = ATMEL_AT49LH004,
3275 .total_size = 512,
3276 .page_size = 0, /* unused */
3277 .feature_bits = FEATURE_REGISTERMAP,
3278 .tested = TEST_UNTESTED,
3279 .probe = probe_82802ab,
3280 .probe_timing = TIMING_ZERO,
3281 .block_erasers =
3282 {
3283 {
3284 .eraseblocks = {
3285 {64 * 1024, 7},
3286 {32 * 1024, 1},
3287 {8 * 1024, 2},
3288 {16 * 1024, 1},
3289 },
3290 .block_erase = erase_block_82802ab,
3291 }, {
3292 .eraseblocks = {
3293 {64 * 1024, 8},
3294 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003295 .block_erase = NULL, /* TODO: Implement. */
3296 },
3297 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003298 .printlock = printlock_regspace2_block_eraser_0,
3299 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003300 .write = write_82802ab,
3301 .read = read_memmapped,
3302 .voltage = {3000, 3600},
3303 },
3304
3305 {
Andrew Morganca081462011-09-13 22:05:44 +00003306 .vendor = "Catalyst",
3307 .name = "CAT28F512",
3308 .bustype = BUS_PARALLEL,
3309 .manufacture_id = CATALYST_ID,
3310 .model_id = CATALYST_CAT28F512,
3311 .total_size = 64,
3312 .page_size = 0, /* unused */
3313 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003314 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003315 .probe = probe_jedec, /* FIXME! */
3316 .probe_timing = TIMING_ZERO,
3317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = { {64 * 1024, 1} },
3321 .block_erase = NULL, /* TODO */
3322 },
3323 },
3324 .write = NULL, /* TODO */
3325 .read = read_memmapped,
3326 .voltage = {4500, 5500},
3327 },
3328
3329 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003330 .vendor = "Bright",
3331 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003332 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003333 .manufacture_id = BRIGHT_ID,
3334 .model_id = BRIGHT_BM29F040,
3335 .total_size = 512,
3336 .page_size = 64 * 1024,
3337 .feature_bits = FEATURE_EITHER_RESET,
3338 .tested = TEST_OK_PR,
3339 .probe = probe_jedec,
3340 .probe_timing = TIMING_ZERO,
3341 .block_erasers =
3342 {
3343 {
3344 .eraseblocks = { {64 * 1024, 8} },
3345 .block_erase = erase_sector_jedec,
3346 }, {
3347 .eraseblocks = { {512 * 1024, 1} },
3348 .block_erase = erase_chip_block_jedec,
3349 },
3350 },
3351 .write = write_jedec_1,
3352 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003353 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003354 },
3355
3356 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003357 .vendor = "ENE",
3358 .name = "KB9012 (EDI)",
3359 .bustype = BUS_SPI,
3360 .spi_cmd_set = SPI_EDI,
3361 .total_size = 128,
3362 .page_size = 128,
3363 .feature_bits = FEATURE_ERASED_ZERO,
3364 .tested = TEST_OK_PREW,
3365 .probe = edi_probe_kb9012,
3366 .probe_timing = TIMING_ZERO,
3367 .block_erasers =
3368 {
3369 {
3370 .eraseblocks = { {128, 1024} },
3371 .block_erase = edi_chip_block_erase,
3372 },
3373 },
3374 .gran = write_gran_128bytes,
3375 .write = edi_chip_write,
3376 .read = edi_chip_read,
3377 .voltage = {2700, 3600},
3378 },
3379
3380 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003381 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003382 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003383 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003384 .manufacture_id = ESMT_ID,
3385 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003386 .total_size = 256,
3387 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003388 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003389 .tested = TEST_UNTESTED,
3390 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003391 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003392 .block_erasers =
3393 {
3394 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003395 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003396 {128 * 1024, 1},
3397 {96 * 1024, 1},
3398 {8 * 1024, 2},
3399 {16 * 1024, 1},
3400 },
3401 .block_erase = erase_sector_jedec,
3402 }, {
3403 .eraseblocks = { {256 * 1024, 1} },
3404 .block_erase = erase_chip_block_jedec,
3405 }
3406 },
Sean Nelson35727f72010-01-28 23:55:12 +00003407 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003408 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003409 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003410 },
3411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003412 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003413 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003414 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003415 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003416 .manufacture_id = ESMT_ID,
3417 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003418 .total_size = 1024,
3419 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003420 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003421 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003422 .probe = probe_spi_rdid,
3423 .probe_timing = TIMING_ZERO,
3424 .block_erasers =
3425 {
3426 {
3427 .eraseblocks = { {4 * 1024, 256} },
3428 .block_erase = spi_block_erase_20,
3429 }, {
3430 .eraseblocks = { {64 * 1024, 16} },
3431 .block_erase = spi_block_erase_d8,
3432 }, {
3433 .eraseblocks = { {1024 * 1024, 1} },
3434 .block_erase = spi_block_erase_60,
3435 }, {
3436 .eraseblocks = { {1024 * 1024, 1} },
3437 .block_erase = spi_block_erase_c7,
3438 }
3439 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003440 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003441 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003442 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003443 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003444 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003445 },
3446
3447 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003448 .vendor = "ESMT",
3449 .name = "F25L32PA",
3450 .bustype = BUS_SPI,
3451 .manufacture_id = ESMT_ID,
3452 .model_id = ESMT_F25L32PA,
3453 .total_size = 4096,
3454 .page_size = 256,
3455 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3456 .tested = TEST_UNTESTED,
3457 .probe = probe_spi_rdid,
3458 .probe_timing = TIMING_ZERO,
3459 .block_erasers =
3460 {
3461 {
3462 .eraseblocks = { {4 * 1024, 1024} },
3463 .block_erase = spi_block_erase_20,
3464 }, {
3465 .eraseblocks = { {64 * 1024, 64} },
3466 .block_erase = spi_block_erase_d8,
3467 }, {
3468 .eraseblocks = { {4 * 1024 * 1024, 1} },
3469 .block_erase = spi_block_erase_60,
3470 }, {
3471 .eraseblocks = { {4 * 1024 * 1024, 1} },
3472 .block_erase = spi_block_erase_c7,
3473 }
3474 },
3475 .printlock = spi_prettyprint_status_register_bp2_bpl,
3476 .unlock = spi_disable_blockprotect,
3477 .write = spi_chip_write_256,
3478 .read = spi_chip_read,
3479 .voltage = {2700, 3600},
3480 },
3481
3482 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003483 .vendor = "Eon",
3484 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003485 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003486 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003487 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003488 .total_size = 64,
3489 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003490 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003491 .tested = TEST_UNTESTED,
3492 .probe = probe_spi_rdid,
3493 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003494 .block_erasers =
3495 {
3496 {
3497 .eraseblocks = {
3498 {4 * 1024, 2},
3499 {8 * 1024, 1},
3500 {16 * 1024, 1},
3501 {32 * 1024, 1},
3502 },
3503 .block_erase = spi_block_erase_d8,
3504 }, {
3505 .eraseblocks = { {64 * 1024, 1} },
3506 .block_erase = spi_block_erase_c7,
3507 }
3508 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003509 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003510 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003511 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003512 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003513 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003514 },
3515
3516 {
3517 .vendor = "Eon",
3518 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003519 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003520 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003521 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003522 .total_size = 64,
3523 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003524 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003525 .tested = TEST_UNTESTED,
3526 .probe = probe_spi_rdid,
3527 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003528 .block_erasers =
3529 {
3530 {
3531 .eraseblocks = {
3532 {32 * 1024, 1},
3533 {16 * 1024, 1},
3534 {8 * 1024, 1},
3535 {4 * 1024, 2},
3536 },
3537 .block_erase = spi_block_erase_d8,
3538 }, {
3539 .eraseblocks = { {64 * 1024, 1} },
3540 .block_erase = spi_block_erase_c7,
3541 }
3542 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003543 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003544 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003545 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003546 .read = spi_chip_read, /* Fast read (0x0B) supported */
3547 .voltage = {2700, 3600},
3548 },
3549
3550 {
3551 .vendor = "Eon",
3552 .name = "EN25P05",
3553 .bustype = BUS_SPI,
3554 .manufacture_id = EON_ID_NOPREFIX,
3555 .model_id = EON_EN25B05,
3556 .total_size = 64,
3557 .page_size = 256,
3558 .feature_bits = FEATURE_WRSR_WREN,
3559 .tested = TEST_UNTESTED,
3560 .probe = probe_spi_rdid,
3561 .probe_timing = TIMING_ZERO,
3562 .block_erasers =
3563 {
3564 {
3565 .eraseblocks = {
3566 {32 * 1024, 2} },
3567 .block_erase = spi_block_erase_d8,
3568 }, {
3569 .eraseblocks = { {64 * 1024, 1} },
3570 .block_erase = spi_block_erase_c7,
3571 }
3572 },
3573 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3574 .unlock = spi_disable_blockprotect,
3575 .write = spi_chip_write_256,
3576 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003577 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003578 },
3579
3580 {
3581 .vendor = "Eon",
3582 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003583 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003584 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003585 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003586 .total_size = 128,
3587 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003588 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003589 .tested = TEST_UNTESTED,
3590 .probe = probe_spi_rdid,
3591 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003592 .block_erasers =
3593 {
3594 {
3595 .eraseblocks = {
3596 {4 * 1024, 2},
3597 {8 * 1024, 1},
3598 {16 * 1024, 1},
3599 {32 * 1024, 3},
3600 },
3601 .block_erase = spi_block_erase_d8,
3602 }, {
3603 .eraseblocks = { {128 * 1024, 1} },
3604 .block_erase = spi_block_erase_c7,
3605 }
3606 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003608 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003609 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003610 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003611 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003612 },
3613
3614 {
3615 .vendor = "Eon",
3616 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003617 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003619 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .total_size = 128,
3621 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003622 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003623 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003624 .probe = probe_spi_rdid,
3625 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003626 .block_erasers =
3627 {
3628 {
3629 .eraseblocks = {
3630 {32 * 1024, 3},
3631 {16 * 1024, 1},
3632 {8 * 1024, 1},
3633 {4 * 1024, 2},
3634 },
3635 .block_erase = spi_block_erase_d8,
3636 }, {
3637 .eraseblocks = { {128 * 1024, 1} },
3638 .block_erase = spi_block_erase_c7,
3639 }
3640 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003642 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003643 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003644 .read = spi_chip_read, /* Fast read (0x0B) supported */
3645 .voltage = {2700, 3600},
3646 },
3647
3648 {
3649 .vendor = "Eon",
3650 .name = "EN25P10",
3651 .bustype = BUS_SPI,
3652 .manufacture_id = EON_ID_NOPREFIX,
3653 .model_id = EON_EN25B10,
3654 .total_size = 128,
3655 .page_size = 256,
3656 .feature_bits = FEATURE_WRSR_WREN,
3657 .tested = TEST_UNTESTED,
3658 .probe = probe_spi_rdid,
3659 .probe_timing = TIMING_ZERO,
3660 .block_erasers =
3661 {
3662 {
3663 .eraseblocks = { {32 * 1024, 4} },
3664 .block_erase = spi_block_erase_d8,
3665 }, {
3666 .eraseblocks = { {128 * 1024, 1} },
3667 .block_erase = spi_block_erase_c7,
3668 }
3669 },
3670 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3671 .unlock = spi_disable_blockprotect,
3672 .write = spi_chip_write_256,
3673 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003674 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003675 },
3676
3677 {
3678 .vendor = "Eon",
3679 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003680 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003681 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003682 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003683 .total_size = 256,
3684 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003685 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003686 .tested = TEST_UNTESTED,
3687 .probe = probe_spi_rdid,
3688 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003689 .block_erasers =
3690 {
3691 {
3692 .eraseblocks = {
3693 {4 * 1024, 2},
3694 {8 * 1024, 1},
3695 {16 * 1024, 1},
3696 {32 * 1024, 1},
3697 {64 * 1024, 3}
3698 },
3699 .block_erase = spi_block_erase_d8,
3700 }, {
3701 .eraseblocks = { {256 * 1024, 1} },
3702 .block_erase = spi_block_erase_c7,
3703 }
3704 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003705 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003706 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003707 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003708 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003709 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003710 },
3711
3712 {
3713 .vendor = "Eon",
3714 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003715 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003716 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003717 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003718 .total_size = 256,
3719 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003720 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003721 .tested = TEST_UNTESTED,
3722 .probe = probe_spi_rdid,
3723 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003724 .block_erasers =
3725 {
3726 {
3727 .eraseblocks = {
3728 {64 * 1024, 3},
3729 {32 * 1024, 1},
3730 {16 * 1024, 1},
3731 {8 * 1024, 1},
3732 {4 * 1024, 2},
3733 },
3734 .block_erase = spi_block_erase_d8,
3735 }, {
3736 .eraseblocks = { {256 * 1024, 1} },
3737 .block_erase = spi_block_erase_c7,
3738 }
3739 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003740 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003741 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003742 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003743 .read = spi_chip_read, /* Fast read (0x0B) supported */
3744 .voltage = {2700, 3600},
3745 },
3746
3747 {
3748 .vendor = "Eon",
3749 .name = "EN25P20",
3750 .bustype = BUS_SPI,
3751 .manufacture_id = EON_ID_NOPREFIX,
3752 .model_id = EON_EN25B20,
3753 .total_size = 256,
3754 .page_size = 256,
3755 .feature_bits = FEATURE_WRSR_WREN,
3756 .tested = TEST_UNTESTED,
3757 .probe = probe_spi_rdid,
3758 .probe_timing = TIMING_ZERO,
3759 .block_erasers =
3760 {
3761 {
3762 .eraseblocks = { {64 * 1024, 4} },
3763 .block_erase = spi_block_erase_d8,
3764 }, {
3765 .eraseblocks = { {256 * 1024, 1} },
3766 .block_erase = spi_block_erase_c7,
3767 }
3768 },
3769 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3770 .unlock = spi_disable_blockprotect,
3771 .write = spi_chip_write_256,
3772 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003773 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003774 },
3775
3776 {
3777 .vendor = "Eon",
3778 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003779 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003780 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003781 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003782 .total_size = 512,
3783 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003784 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .tested = TEST_UNTESTED,
3786 .probe = probe_spi_rdid,
3787 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003788 .block_erasers =
3789 {
3790 {
3791 .eraseblocks = {
3792 {4 * 1024, 2},
3793 {8 * 1024, 1},
3794 {16 * 1024, 1},
3795 {32 * 1024, 1},
3796 {64 * 1024, 7}
3797 },
3798 .block_erase = spi_block_erase_d8,
3799 }, {
3800 .eraseblocks = { {512 * 1024, 1} },
3801 .block_erase = spi_block_erase_c7,
3802 }
3803 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003804 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003805 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003806 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003807 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003808 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003809 },
3810
3811 {
3812 .vendor = "Eon",
3813 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003814 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003815 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003816 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003817 .total_size = 512,
3818 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003819 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .tested = TEST_UNTESTED,
3821 .probe = probe_spi_rdid,
3822 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .block_erasers =
3824 {
3825 {
3826 .eraseblocks = {
3827 {64 * 1024, 7},
3828 {32 * 1024, 1},
3829 {16 * 1024, 1},
3830 {8 * 1024, 1},
3831 {4 * 1024, 2},
3832 },
3833 .block_erase = spi_block_erase_d8,
3834 }, {
3835 .eraseblocks = { {512 * 1024, 1} },
3836 .block_erase = spi_block_erase_c7,
3837 }
3838 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003840 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003841 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003842 .read = spi_chip_read, /* Fast read (0x0B) supported */
3843 .voltage = {2700, 3600},
3844 },
3845
3846 {
3847 .vendor = "Eon",
3848 .name = "EN25P40",
3849 .bustype = BUS_SPI,
3850 .manufacture_id = EON_ID_NOPREFIX,
3851 .model_id = EON_EN25B40,
3852 .total_size = 512,
3853 .page_size = 256,
3854 .feature_bits = FEATURE_WRSR_WREN,
3855 .tested = TEST_UNTESTED,
3856 .probe = probe_spi_rdid,
3857 .probe_timing = TIMING_ZERO,
3858 .block_erasers =
3859 {
3860 {
3861 .eraseblocks = { {64 * 1024, 8} },
3862 .block_erase = spi_block_erase_d8,
3863 }, {
3864 .eraseblocks = { {512 * 1024, 1} },
3865 .block_erase = spi_block_erase_c7,
3866 }
3867 },
3868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3869 .unlock = spi_disable_blockprotect,
3870 .write = spi_chip_write_256,
3871 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003872 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003873 },
3874
3875 {
3876 .vendor = "Eon",
3877 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003878 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003879 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003880 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003881 .total_size = 1024,
3882 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003883 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003884 .tested = TEST_UNTESTED,
3885 .probe = probe_spi_rdid,
3886 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003887 .block_erasers =
3888 {
3889 {
3890 .eraseblocks = {
3891 {4 * 1024, 2},
3892 {8 * 1024, 1},
3893 {16 * 1024, 1},
3894 {32 * 1024, 1},
3895 {64 * 1024, 15}
3896 },
3897 .block_erase = spi_block_erase_d8,
3898 }, {
3899 .eraseblocks = { {1024 * 1024, 1} },
3900 .block_erase = spi_block_erase_c7,
3901 }
3902 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003904 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003905 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003906 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003907 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003908 },
3909
3910 {
3911 .vendor = "Eon",
3912 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003913 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003914 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003915 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003916 .total_size = 1024,
3917 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003918 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003919 .tested = TEST_UNTESTED,
3920 .probe = probe_spi_rdid,
3921 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003922 .block_erasers =
3923 {
3924 {
3925 .eraseblocks = {
3926 {64 * 1024, 15},
3927 {32 * 1024, 1},
3928 {16 * 1024, 1},
3929 {8 * 1024, 1},
3930 {4 * 1024, 2},
3931 },
3932 .block_erase = spi_block_erase_d8,
3933 }, {
3934 .eraseblocks = { {1024 * 1024, 1} },
3935 .block_erase = spi_block_erase_c7,
3936 }
3937 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003938 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003939 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003940 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003941 .read = spi_chip_read, /* Fast read (0x0B) supported */
3942 .voltage = {2700, 3600},
3943 },
3944
3945 {
3946 .vendor = "Eon",
3947 .name = "EN25P80",
3948 .bustype = BUS_SPI,
3949 .manufacture_id = EON_ID_NOPREFIX,
3950 .model_id = EON_EN25B80,
3951 .total_size = 1024,
3952 .page_size = 256,
3953 .feature_bits = FEATURE_WRSR_WREN,
3954 .tested = TEST_UNTESTED,
3955 .probe = probe_spi_rdid,
3956 .probe_timing = TIMING_ZERO,
3957 .block_erasers =
3958 {
3959 {
3960 .eraseblocks = { {64 * 1024, 16} },
3961 .block_erase = spi_block_erase_d8,
3962 }, {
3963 .eraseblocks = { {1024 * 1024, 1} },
3964 .block_erase = spi_block_erase_c7,
3965 }
3966 },
3967 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3968 .unlock = spi_disable_blockprotect,
3969 .write = spi_chip_write_256,
3970 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003971 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003972 },
3973
3974 {
3975 .vendor = "Eon",
3976 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003977 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003978 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003979 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003980 .total_size = 2048,
3981 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003982 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .tested = TEST_UNTESTED,
3984 .probe = probe_spi_rdid,
3985 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003986 .block_erasers =
3987 {
3988 {
3989 .eraseblocks = {
3990 {4 * 1024, 2},
3991 {8 * 1024, 1},
3992 {16 * 1024, 1},
3993 {32 * 1024, 1},
3994 {64 * 1024, 31},
3995 },
3996 .block_erase = spi_block_erase_d8,
3997 }, {
3998 .eraseblocks = { {2 * 1024 * 1024, 1} },
3999 .block_erase = spi_block_erase_c7,
4000 }
4001 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004002 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004003 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004005 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004006 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004007 },
4008
4009 {
4010 .vendor = "Eon",
4011 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004012 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004013 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004014 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004015 .total_size = 2048,
4016 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004017 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004018 .tested = TEST_UNTESTED,
4019 .probe = probe_spi_rdid,
4020 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004021 .block_erasers =
4022 {
4023 {
4024 .eraseblocks = {
4025 {64 * 1024, 31},
4026 {32 * 1024, 1},
4027 {16 * 1024, 1},
4028 {8 * 1024, 1},
4029 {4 * 1024, 2},
4030 },
4031 .block_erase = spi_block_erase_d8,
4032 }, {
4033 .eraseblocks = { {2 * 1024 * 1024, 1} },
4034 .block_erase = spi_block_erase_c7,
4035 }
4036 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004037 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004038 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004039 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004040 .read = spi_chip_read, /* Fast read (0x0B) supported */
4041 .voltage = {2700, 3600},
4042 },
4043
4044 {
4045 .vendor = "Eon",
4046 .name = "EN25P16",
4047 .bustype = BUS_SPI,
4048 .manufacture_id = EON_ID_NOPREFIX,
4049 .model_id = EON_EN25B16,
4050 .total_size = 2048,
4051 .page_size = 256,
4052 .feature_bits = FEATURE_WRSR_WREN,
4053 .tested = TEST_UNTESTED,
4054 .probe = probe_spi_rdid,
4055 .probe_timing = TIMING_ZERO,
4056 .block_erasers =
4057 {
4058 {
4059 .eraseblocks = { {64 * 1024, 32} },
4060 .block_erase = spi_block_erase_d8,
4061 }, {
4062 .eraseblocks = { {2 * 1024 * 1024, 1} },
4063 .block_erase = spi_block_erase_c7,
4064 }
4065 },
4066 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4067 .unlock = spi_disable_blockprotect,
4068 .write = spi_chip_write_256,
4069 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004070 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004071 },
4072
4073 {
4074 .vendor = "Eon",
4075 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004076 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004077 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004078 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004079 .total_size = 4096,
4080 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004081 /* OTP: 512B total; enter 0x3A */
4082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004083 .tested = TEST_UNTESTED,
4084 .probe = probe_spi_rdid,
4085 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004086 .block_erasers =
4087 {
4088 {
4089 .eraseblocks = {
4090 {4 * 1024, 2},
4091 {8 * 1024, 1},
4092 {16 * 1024, 1},
4093 {32 * 1024, 1},
4094 {64 * 1024, 63},
4095 },
4096 .block_erase = spi_block_erase_d8,
4097 }, {
4098 .eraseblocks = { {4 * 1024 * 1024, 1} },
4099 .block_erase = spi_block_erase_c7,
4100 }
4101 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004102 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004103 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004104 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004105 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004106 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004107 },
4108
4109 {
4110 .vendor = "Eon",
4111 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004112 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004113 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004114 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004115 .total_size = 4096,
4116 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004117 /* OTP: 512B total; enter 0x3A */
4118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .tested = TEST_UNTESTED,
4120 .probe = probe_spi_rdid,
4121 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004122 .block_erasers =
4123 {
4124 {
4125 .eraseblocks = {
4126 {64 * 1024, 63},
4127 {32 * 1024, 1},
4128 {16 * 1024, 1},
4129 {8 * 1024, 1},
4130 {4 * 1024, 2},
4131 },
4132 .block_erase = spi_block_erase_d8,
4133 }, {
4134 .eraseblocks = { {4 * 1024 * 1024, 1} },
4135 .block_erase = spi_block_erase_c7,
4136 }
4137 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004138 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004139 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004140 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004141 .read = spi_chip_read, /* Fast read (0x0B) supported */
4142 .voltage = {2700, 3600},
4143 },
4144
4145 {
4146 .vendor = "Eon",
4147 .name = "EN25P32", /* Uniform version of EN25B32 */
4148 .bustype = BUS_SPI,
4149 .manufacture_id = EON_ID_NOPREFIX,
4150 .model_id = EON_EN25B32,
4151 .total_size = 4096,
4152 .page_size = 256,
4153 /* OTP: 512B total; enter 0x3A */
4154 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4155 .tested = TEST_UNTESTED,
4156 .probe = probe_spi_rdid,
4157 .probe_timing = TIMING_ZERO,
4158 .block_erasers =
4159 {
4160 {
4161 .eraseblocks = { {64 * 1024, 64} },
4162 .block_erase = spi_block_erase_d8,
4163 }, {
4164 .eraseblocks = { {4 * 1024 * 1024, 1} },
4165 .block_erase = spi_block_erase_c7,
4166 }
4167 },
4168 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4169 .unlock = spi_disable_blockprotect,
4170 .write = spi_chip_write_256,
4171 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004172 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004173 },
4174
4175 {
4176 .vendor = "Eon",
4177 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004178 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004179 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004180 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004181 .total_size = 8192,
4182 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004183 /* OTP: 512B total; enter 0x3A */
4184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004185 .tested = TEST_UNTESTED,
4186 .probe = probe_spi_rdid,
4187 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004188 .block_erasers =
4189 {
4190 {
4191 .eraseblocks = {
4192 {4 * 1024, 2},
4193 {8 * 1024, 1},
4194 {16 * 1024, 1},
4195 {32 * 1024, 1},
4196 {64 * 1024, 127},
4197 },
4198 .block_erase = spi_block_erase_d8,
4199 }, {
4200 .eraseblocks = { {8 * 1024 * 1024, 1} },
4201 .block_erase = spi_block_erase_c7,
4202 }
4203 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004204 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004205 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004206 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004207 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004208 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004209 },
4210
4211 {
4212 .vendor = "Eon",
4213 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004214 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004215 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004216 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004217 .total_size = 8192,
4218 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004219 /* OTP: 512B total; enter 0x3A */
4220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004221 .tested = TEST_UNTESTED,
4222 .probe = probe_spi_rdid,
4223 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004224 .block_erasers =
4225 {
4226 {
4227 .eraseblocks = {
4228 {64 * 1024, 127},
4229 {32 * 1024, 1},
4230 {16 * 1024, 1},
4231 {8 * 1024, 1},
4232 {4 * 1024, 2},
4233 },
4234 .block_erase = spi_block_erase_d8,
4235 }, {
4236 .eraseblocks = { {8 * 1024 * 1024, 1} },
4237 .block_erase = spi_block_erase_c7,
4238 }
4239 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004240 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004241 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004242 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004243 .read = spi_chip_read, /* Fast read (0x0B) supported */
4244 .voltage = {2700, 3600},
4245 },
4246
4247 {
4248 .vendor = "Eon",
4249 .name = "EN25P64",
4250 .bustype = BUS_SPI,
4251 .manufacture_id = EON_ID_NOPREFIX,
4252 .model_id = EON_EN25B64,
4253 .total_size = 8192,
4254 .page_size = 256,
4255 /* OTP: 512B total; enter 0x3A */
4256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4257 .tested = TEST_UNTESTED,
4258 .probe = probe_spi_rdid,
4259 .probe_timing = TIMING_ZERO,
4260 .block_erasers =
4261 {
4262 {
4263 .eraseblocks = { {64 * 1024, 128} },
4264 .block_erase = spi_block_erase_d8,
4265 }, {
4266 .eraseblocks = { {8 * 1024 * 1024, 1} },
4267 .block_erase = spi_block_erase_c7,
4268 }
4269 },
4270 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4271 .unlock = spi_disable_blockprotect,
4272 .write = spi_chip_write_256,
4273 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004274 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004275 },
4276
4277 {
4278 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004279 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004280 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004282 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004283 .total_size = 64,
4284 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004285 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004286 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004287 .probe = probe_spi_rdid,
4288 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004289 .block_erasers =
4290 {
4291 {
4292 .eraseblocks = { {4 * 1024, 16} },
4293 .block_erase = spi_block_erase_20,
4294 }, {
4295 .eraseblocks = { {32 * 1024, 2} },
4296 .block_erase = spi_block_erase_d8,
4297 }, {
4298 .eraseblocks = { {32 * 1024, 2} },
4299 .block_erase = spi_block_erase_52,
4300 }, {
4301 .eraseblocks = { {64 * 1024, 1} },
4302 .block_erase = spi_block_erase_60,
4303 }, {
4304 .eraseblocks = { {64 * 1024, 1} },
4305 .block_erase = spi_block_erase_c7,
4306 }
4307 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004308 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004309 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004310 .write = spi_chip_write_256,
4311 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004312 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004313 },
4314
4315 {
4316 .vendor = "Eon",
4317 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004318 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004319 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004320 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004321 .total_size = 128,
4322 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004323 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004324 .tested = TEST_UNTESTED,
4325 .probe = probe_spi_rdid,
4326 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004327 .block_erasers =
4328 {
4329 {
4330 .eraseblocks = { {4 * 1024, 32} },
4331 .block_erase = spi_block_erase_20,
4332 }, {
4333 .eraseblocks = { {32 * 1024, 4} },
4334 .block_erase = spi_block_erase_d8,
4335 }, {
4336 .eraseblocks = { {32 * 1024, 4} },
4337 .block_erase = spi_block_erase_52,
4338 }, {
4339 .eraseblocks = { {128 * 1024, 1} },
4340 .block_erase = spi_block_erase_60,
4341 }, {
4342 .eraseblocks = { {128 * 1024, 1} },
4343 .block_erase = spi_block_erase_c7,
4344 }
4345 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004346 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004347 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004348 .write = spi_chip_write_256,
4349 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004350 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004351 },
4352
4353 {
4354 .vendor = "Eon",
4355 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004356 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004358 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004359 .total_size = 256,
4360 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004361 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004362 .tested = TEST_UNTESTED,
4363 .probe = probe_spi_rdid,
4364 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004365 .block_erasers =
4366 {
4367 {
4368 .eraseblocks = { {4 * 1024, 64} },
4369 .block_erase = spi_block_erase_20,
4370 }, {
4371 .eraseblocks = { {64 * 1024, 4} },
4372 .block_erase = spi_block_erase_d8,
4373 }, {
4374 .eraseblocks = { {64 * 1024, 4} },
4375 .block_erase = spi_block_erase_52,
4376 }, {
4377 .eraseblocks = { {256 * 1024, 1} },
4378 .block_erase = spi_block_erase_60,
4379 }, {
4380 .eraseblocks = { {256 * 1024, 1} },
4381 .block_erase = spi_block_erase_c7,
4382 }
4383 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004384 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004385 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004386 .write = spi_chip_write_256,
4387 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004388 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004389 },
4390
4391 {
4392 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004393 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004394 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004396 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004397 .total_size = 512,
4398 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004399 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004400 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004401 .probe = probe_spi_rdid,
4402 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004403 .block_erasers =
4404 {
4405 {
Sean Nelson54596372010-01-09 05:30:14 +00004406 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004407 .block_erase = spi_block_erase_20,
4408 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004409 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004410 .block_erase = spi_block_erase_d8,
4411 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004412 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004413 .block_erase = spi_block_erase_60,
4414 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004415 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004416 .block_erase = spi_block_erase_c7,
4417 },
4418 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004419 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004420 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004421 .write = spi_chip_write_256,
4422 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004423 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004424 },
4425
4426 {
4427 .vendor = "Eon",
4428 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004429 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004431 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004432 .total_size = 1024,
4433 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004434 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004435 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004436 .probe = probe_spi_rdid,
4437 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004438 .block_erasers =
4439 {
4440 {
4441 .eraseblocks = { {4 * 1024, 256} },
4442 .block_erase = spi_block_erase_20,
4443 }, {
4444 .eraseblocks = { {64 * 1024, 16} },
4445 .block_erase = spi_block_erase_d8,
4446 }, {
4447 .eraseblocks = { {1024 * 1024, 1} },
4448 .block_erase = spi_block_erase_60,
4449 }, {
4450 .eraseblocks = { {1024 * 1024, 1} },
4451 .block_erase = spi_block_erase_c7,
4452 }
4453 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004454 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004455 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004456 .write = spi_chip_write_256,
4457 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004458 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004459 },
4460
4461 {
4462 .vendor = "Eon",
4463 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004464 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004465 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004466 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004467 .total_size = 2048,
4468 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004469 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004470 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004471 .probe = probe_spi_rdid,
4472 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004473 .block_erasers =
4474 {
4475 {
4476 .eraseblocks = { {4 * 1024, 512} },
4477 .block_erase = spi_block_erase_20,
4478 }, {
4479 .eraseblocks = { {64 * 1024, 32} },
4480 .block_erase = spi_block_erase_d8,
4481 }, {
4482 .eraseblocks = { {2 * 1024 * 1024, 1} },
4483 .block_erase = spi_block_erase_60,
4484 }, {
4485 .eraseblocks = { {2 * 1024 * 1024, 1} },
4486 .block_erase = spi_block_erase_c7,
4487 }
4488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004490 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004491 .write = spi_chip_write_256,
4492 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004493 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004494 },
4495
4496 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004497 .vendor = "Eon",
4498 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004499 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004500 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004501 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004502 .total_size = 4096,
4503 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004504 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004505 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004506 .probe = probe_spi_rdid,
4507 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004508 .block_erasers =
4509 {
4510 {
4511 .eraseblocks = { {4 * 1024, 1024} },
4512 .block_erase = spi_block_erase_20,
4513 }, {
4514 .eraseblocks = { {64 * 1024, 64} },
4515 .block_erase = spi_block_erase_d8,
4516 }, {
4517 .eraseblocks = { {4 * 1024 * 1024, 1} },
4518 .block_erase = spi_block_erase_60,
4519 }, {
4520 .eraseblocks = { {4 * 1024 * 1024, 1} },
4521 .block_erase = spi_block_erase_c7,
4522 }
4523 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004524 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004525 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004526 .write = spi_chip_write_256,
4527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004528 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004529 },
4530
4531 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004532 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004533 .name = "EN25F64",
4534 .bustype = BUS_SPI,
4535 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004536 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004537 .total_size = 8192,
4538 .page_size = 256,
4539 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004540 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004541 .probe = probe_spi_rdid,
4542 .probe_timing = TIMING_ZERO,
4543 .block_erasers =
4544 {
4545 {
4546 .eraseblocks = { {4 * 1024, 2048} },
4547 .block_erase = spi_block_erase_20,
4548 }, {
4549 .eraseblocks = { {64 * 1024, 128} },
4550 .block_erase = spi_block_erase_d8,
4551 }, {
4552 .eraseblocks = { {8 * 1024 * 1024, 1} },
4553 .block_erase = spi_block_erase_60,
4554 }, {
4555 .eraseblocks = { {8 * 1024 * 1024, 1} },
4556 .block_erase = spi_block_erase_c7,
4557 }
4558 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004559 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004560 .unlock = spi_disable_blockprotect,
4561 .write = spi_chip_write_256,
4562 .read = spi_chip_read,
4563 .voltage = {2700, 3600},
4564 },
4565
4566 {
4567 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004568 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004569 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004570 .manufacture_id = EON_ID_NOPREFIX,
4571 .model_id = EON_EN25Q40,
4572 .total_size = 512,
4573 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004574 /* OTP: 256B total; enter 0x3A */
4575 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004576 .tested = TEST_UNTESTED,
4577 .probe = probe_spi_rdid,
4578 .probe_timing = TIMING_ZERO,
4579 .block_erasers =
4580 {
4581 {
4582 .eraseblocks = { {4 * 1024, 128} },
4583 .block_erase = spi_block_erase_20,
4584 }, {
4585 .eraseblocks = { {64 * 1024, 8} },
4586 .block_erase = spi_block_erase_d8,
4587 }, {
4588 .eraseblocks = { {512 * 1024, 1} },
4589 .block_erase = spi_block_erase_60,
4590 }, {
4591 .eraseblocks = { {512 * 1024, 1} },
4592 .block_erase = spi_block_erase_c7,
4593 }
4594 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004595 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004596 .unlock = spi_disable_blockprotect,
4597 .write = spi_chip_write_256,
4598 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004599 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004600 },
4601
4602 {
4603 .vendor = "Eon",
4604 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004605 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004606 .manufacture_id = EON_ID_NOPREFIX,
4607 .model_id = EON_EN25Q80,
4608 .total_size = 1024,
4609 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004610 /* OTP: 256B total; enter 0x3A */
4611 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004612 .tested = TEST_UNTESTED,
4613 .probe = probe_spi_rdid,
4614 .probe_timing = TIMING_ZERO,
4615 .block_erasers =
4616 {
4617 {
4618 .eraseblocks = { {4 * 1024, 256} },
4619 .block_erase = spi_block_erase_20,
4620 }, {
4621 .eraseblocks = { {64 * 1024, 16} },
4622 .block_erase = spi_block_erase_d8,
4623 }, {
4624 .eraseblocks = { {1024 * 1024, 1} },
4625 .block_erase = spi_block_erase_60,
4626 }, {
4627 .eraseblocks = { {1024 * 1024, 1} },
4628 .block_erase = spi_block_erase_c7,
4629 }
4630 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004631 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004632 .unlock = spi_disable_blockprotect,
4633 .write = spi_chip_write_256,
4634 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004635 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004636 },
4637
4638 {
4639 /* Note: EN25D16 is an evil twin which shares the model ID
4640 but has different write protection capabilities */
4641 .vendor = "Eon",
4642 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004643 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004644 .manufacture_id = EON_ID_NOPREFIX,
4645 .model_id = EON_EN25Q16,
4646 .total_size = 2048,
4647 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004648 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4649 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004650 .tested = TEST_UNTESTED,
4651 .probe = probe_spi_rdid,
4652 .probe_timing = TIMING_ZERO,
4653 .block_erasers =
4654 {
4655 {
4656 .eraseblocks = { {4 * 1024, 512} },
4657 .block_erase = spi_block_erase_20,
4658 }, {
4659 .eraseblocks = { {64 * 1024, 32} },
4660 .block_erase = spi_block_erase_d8,
4661 }, {
4662 /* not supported by Q16 version */
4663 .eraseblocks = { {64 * 1024, 32} },
4664 .block_erase = spi_block_erase_52,
4665 }, {
4666 .eraseblocks = { {2 * 1024 * 1024, 1} },
4667 .block_erase = spi_block_erase_60,
4668 }, {
4669 .eraseblocks = { {2 * 1024 * 1024, 1} },
4670 .block_erase = spi_block_erase_c7,
4671 }
4672 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004674 .unlock = spi_disable_blockprotect,
4675 .write = spi_chip_write_256,
4676 .read = spi_chip_read,
4677 .voltage = {2700, 3600},
4678 },
4679
4680 {
4681 .vendor = "Eon",
4682 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004683 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004684 .manufacture_id = EON_ID_NOPREFIX,
4685 .model_id = EON_EN25Q32,
4686 .total_size = 4096,
4687 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004688 /* OTP: 512B total; enter 0x3A */
4689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004690 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004691 .probe = probe_spi_rdid,
4692 .probe_timing = TIMING_ZERO,
4693 .block_erasers =
4694 {
4695 {
4696 .eraseblocks = { {4 * 1024, 1024} },
4697 .block_erase = spi_block_erase_20,
4698 }, {
4699 .eraseblocks = { {64 * 1024, 64} },
4700 .block_erase = spi_block_erase_d8,
4701 }, {
4702 .eraseblocks = { {4 * 1024 * 1024, 1} },
4703 .block_erase = spi_block_erase_60,
4704 }, {
4705 .eraseblocks = { {4 * 1024 * 1024, 1} },
4706 .block_erase = spi_block_erase_c7,
4707 }
4708 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004709 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004710 .unlock = spi_disable_blockprotect,
4711 .write = spi_chip_write_256,
4712 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004713 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004714 },
4715
4716 {
4717 .vendor = "Eon",
4718 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004719 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004720 .manufacture_id = EON_ID_NOPREFIX,
4721 .model_id = EON_EN25Q64,
4722 .total_size = 8192,
4723 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004724 /* OTP: 512B total; enter 0x3A */
4725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004726 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004727 .probe = probe_spi_rdid,
4728 .probe_timing = TIMING_ZERO,
4729 .block_erasers =
4730 {
4731 {
4732 .eraseblocks = { {4 * 1024, 2048} },
4733 .block_erase = spi_block_erase_20,
4734 }, {
4735 .eraseblocks = { {64 * 1024, 128} },
4736 .block_erase = spi_block_erase_d8,
4737 }, {
4738 .eraseblocks = { {8 * 1024 * 1024, 1} },
4739 .block_erase = spi_block_erase_60,
4740 }, {
4741 .eraseblocks = { {8 * 1024 * 1024, 1} },
4742 .block_erase = spi_block_erase_c7,
4743 }
4744 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004745 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004746 .unlock = spi_disable_blockprotect,
4747 .write = spi_chip_write_256,
4748 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004749 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004750 },
4751
4752 {
4753 .vendor = "Eon",
4754 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004755 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004756 .manufacture_id = EON_ID_NOPREFIX,
4757 .model_id = EON_EN25Q128,
4758 .total_size = 16384,
4759 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004760 /* OTP: 512B total; enter 0x3A */
4761 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004762 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004763 .probe = probe_spi_rdid,
4764 .probe_timing = TIMING_ZERO,
4765 .block_erasers =
4766 {
4767 {
4768 .eraseblocks = { {4 * 1024, 4096} },
4769 .block_erase = spi_block_erase_20,
4770 }, {
4771 .eraseblocks = { {64 * 1024, 256} },
4772 .block_erase = spi_block_erase_d8,
4773 }, {
4774 .eraseblocks = { {16 * 1024 * 1024, 1} },
4775 .block_erase = spi_block_erase_60,
4776 }, {
4777 .eraseblocks = { {16 * 1024 * 1024, 1} },
4778 .block_erase = spi_block_erase_c7,
4779 }
4780 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004781 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004782 .unlock = spi_disable_blockprotect,
4783 .write = spi_chip_write_256,
4784 .read = spi_chip_read,
4785 },
4786
4787 {
4788 .vendor = "Eon",
4789 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004790 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004791 .manufacture_id = EON_ID_NOPREFIX,
4792 .model_id = EON_EN25QH16,
4793 .total_size = 2048,
4794 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004795 /* supports SFDP */
4796 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004797 /* QPI enable 0x38, disable 0xFF */
4798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004799 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004800 .probe = probe_spi_rdid,
4801 .probe_timing = TIMING_ZERO,
4802 .block_erasers =
4803 {
4804 {
4805 .eraseblocks = { {4 * 1024, 512} },
4806 .block_erase = spi_block_erase_20,
4807 }, {
4808 .eraseblocks = { {64 * 1024, 32} },
4809 .block_erase = spi_block_erase_d8,
4810 }, {
4811 .eraseblocks = { {1024 * 2048, 1} },
4812 .block_erase = spi_block_erase_60,
4813 }, {
4814 .eraseblocks = { {1024 * 2048, 1} },
4815 .block_erase = spi_block_erase_c7,
4816 }
4817 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004818 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004819 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004820 .write = spi_chip_write_256,
4821 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004822 .voltage = {2700, 3600},
4823 },
4824
4825 {
4826 .vendor = "Eon",
4827 .name = "EN25QH32",
4828 .bustype = BUS_SPI,
4829 .manufacture_id = EON_ID_NOPREFIX,
4830 .model_id = EON_EN25QH32,
4831 .total_size = 4096,
4832 .page_size = 256,
4833 /* supports SFDP */
4834 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004835 /* QPI enable 0x38, disable 0xFF */
4836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004837 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004838 .probe = probe_spi_rdid,
4839 .probe_timing = TIMING_ZERO,
4840 .block_erasers =
4841 {
4842 {
4843 .eraseblocks = { {4 * 1024, 1024} },
4844 .block_erase = spi_block_erase_20,
4845 }, {
4846 .eraseblocks = { {64 * 1024, 64} },
4847 .block_erase = spi_block_erase_d8,
4848 }, {
4849 .eraseblocks = { {1024 * 4096, 1} },
4850 .block_erase = spi_block_erase_60,
4851 }, {
4852 .eraseblocks = { {1024 * 4096, 1} },
4853 .block_erase = spi_block_erase_c7,
4854 }
4855 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004856 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004857 .unlock = spi_disable_blockprotect_bp3_srwd,
4858 .write = spi_chip_write_256,
4859 .read = spi_chip_read,
4860 .voltage = {2700, 3600},
4861 },
4862
4863 {
4864 .vendor = "Eon",
4865 .name = "EN25QH64",
4866 .bustype = BUS_SPI,
4867 .manufacture_id = EON_ID_NOPREFIX,
4868 .model_id = EON_EN25QH64,
4869 .total_size = 8192,
4870 .page_size = 256,
4871 /* supports SFDP */
4872 /* OTP: 512B total; enter 0x3A */
4873 /* QPI enable 0x38, disable 0xFF */
4874 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004875 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004876 .probe = probe_spi_rdid,
4877 .probe_timing = TIMING_ZERO,
4878 .block_erasers = {
4879 {
4880 .eraseblocks = { {4 * 1024, 2048} },
4881 .block_erase = spi_block_erase_20,
4882 }, {
4883 .eraseblocks = { {64 * 1024, 128} },
4884 .block_erase = spi_block_erase_d8,
4885 }, {
4886 .eraseblocks = { { 8192 * 1024, 1} },
4887 .block_erase = spi_block_erase_60,
4888 }, {
4889 .eraseblocks = { { 8192 * 1024, 1} },
4890 .block_erase = spi_block_erase_c7,
4891 }
4892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004893 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004894 .unlock = spi_disable_blockprotect_bp3_srwd,
4895 .write = spi_chip_write_256,
4896 .read = spi_chip_read,
4897 .voltage = {2700, 3600},
4898 },
4899
4900 {
4901 .vendor = "Eon",
4902 .name = "EN25QH128",
4903 .bustype = BUS_SPI,
4904 .manufacture_id = EON_ID_NOPREFIX,
4905 .model_id = EON_EN25QH128,
4906 .total_size = 16384,
4907 .page_size = 256,
4908 /* supports SFDP */
4909 /* OTP: 512B total; enter 0x3A */
4910 /* QPI enable 0x38, disable 0xFF */
4911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4912 .tested = TEST_UNTESTED,
4913 .probe = probe_spi_rdid,
4914 .probe_timing = TIMING_ZERO,
4915 .block_erasers = {
4916 {
4917 .eraseblocks = { {4 * 1024, 4096} },
4918 .block_erase = spi_block_erase_20,
4919 }, {
4920 .eraseblocks = { {64 * 1024, 256} },
4921 .block_erase = spi_block_erase_d8,
4922 }, {
4923 .eraseblocks = { { 16384 * 1024, 1} },
4924 .block_erase = spi_block_erase_60,
4925 }, {
4926 .eraseblocks = { { 16384 * 1024, 1} },
4927 .block_erase = spi_block_erase_c7,
4928 }
4929 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004930 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004931 .unlock = spi_disable_blockprotect_bp3_srwd,
4932 .write = spi_chip_write_256,
4933 .read = spi_chip_read,
4934 .voltage = {2700, 3600},
4935 },
4936
4937 {
4938 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004939 .name = "EN25S10",
4940 .bustype = BUS_SPI,
4941 .manufacture_id = EON_ID_NOPREFIX,
4942 .model_id = EON_EN25S10,
4943 .total_size = 128,
4944 .page_size = 256,
4945 /* OTP: 256B total; enter 0x3A */
4946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4947 .tested = TEST_UNTESTED,
4948 .probe = probe_spi_rdid,
4949 .probe_timing = TIMING_ZERO,
4950 .block_erasers = {
4951 {
4952 .eraseblocks = { {4 * 1024, 32} },
4953 .block_erase = spi_block_erase_20,
4954 }, {
4955 .eraseblocks = { {32 * 1024, 4} },
4956 .block_erase = spi_block_erase_52,
4957 }, {
4958 .eraseblocks = { {128 * 1024, 1} },
4959 .block_erase = spi_block_erase_60,
4960 }, {
4961 .eraseblocks = { {128 * 1024, 1} },
4962 .block_erase = spi_block_erase_c7,
4963 }
4964 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004965 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004966 .unlock = spi_disable_blockprotect,
4967 .write = spi_chip_write_256,
4968 .read = spi_chip_read,
4969 .voltage = {1650, 1950},
4970 },
4971
4972 {
4973 .vendor = "Eon",
4974 .name = "EN25S20",
4975 .bustype = BUS_SPI,
4976 .manufacture_id = EON_ID_NOPREFIX,
4977 .model_id = EON_EN25S20,
4978 .total_size = 256,
4979 .page_size = 256,
4980 /* OTP: 256B total; enter 0x3A */
4981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4982 .tested = TEST_UNTESTED,
4983 .probe = probe_spi_rdid,
4984 .probe_timing = TIMING_ZERO,
4985 .block_erasers = {
4986 {
4987 .eraseblocks = { {4 * 1024, 64} },
4988 .block_erase = spi_block_erase_20,
4989 }, {
4990 .eraseblocks = { {64 * 1024, 4} },
4991 .block_erase = spi_block_erase_d8,
4992 }, {
4993 .eraseblocks = { {256 * 1024, 1} },
4994 .block_erase = spi_block_erase_60,
4995 }, {
4996 .eraseblocks = { {256 * 1024, 1} },
4997 .block_erase = spi_block_erase_c7,
4998 }
4999 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005000 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005001 .unlock = spi_disable_blockprotect,
5002 .write = spi_chip_write_256,
5003 .read = spi_chip_read,
5004 .voltage = {1650, 1950},
5005 },
5006
5007 {
5008 .vendor = "Eon",
5009 .name = "EN25S40",
5010 .bustype = BUS_SPI,
5011 .manufacture_id = EON_ID_NOPREFIX,
5012 .model_id = EON_EN25S40,
5013 .total_size = 512,
5014 .page_size = 256,
5015 /* OTP: 256B total; enter 0x3A */
5016 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5017 .tested = TEST_UNTESTED,
5018 .probe = probe_spi_rdid,
5019 .probe_timing = TIMING_ZERO,
5020 .block_erasers = {
5021 {
5022 .eraseblocks = { {4 * 1024, 128} },
5023 .block_erase = spi_block_erase_20,
5024 }, {
5025 .eraseblocks = { {64 * 1024, 8} },
5026 .block_erase = spi_block_erase_d8,
5027 }, {
5028 .eraseblocks = { {512 * 1024, 1} },
5029 .block_erase = spi_block_erase_60,
5030 }, {
5031 .eraseblocks = { {512 * 1024, 1} },
5032 .block_erase = spi_block_erase_c7,
5033 }
5034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005035 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005036 .unlock = spi_disable_blockprotect,
5037 .write = spi_chip_write_256,
5038 .read = spi_chip_read,
5039 .voltage = {1650, 1950},
5040 },
5041
5042 {
5043 .vendor = "Eon",
5044 .name = "EN25S80",
5045 .bustype = BUS_SPI,
5046 .manufacture_id = EON_ID_NOPREFIX,
5047 .model_id = EON_EN25S80,
5048 .total_size = 1024,
5049 .page_size = 256,
5050 /* OTP: 256B total; enter 0x3A */
5051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5052 .tested = TEST_UNTESTED,
5053 .probe = probe_spi_rdid,
5054 .probe_timing = TIMING_ZERO,
5055 .block_erasers = {
5056 {
5057 .eraseblocks = { {4 * 1024, 256} },
5058 .block_erase = spi_block_erase_20,
5059 }, {
5060 .eraseblocks = { {64 * 1024, 16} },
5061 .block_erase = spi_block_erase_d8,
5062 }, {
5063 .eraseblocks = { {1024 * 1024, 1} },
5064 .block_erase = spi_block_erase_60,
5065 }, {
5066 .eraseblocks = { {1024 * 1024, 1} },
5067 .block_erase = spi_block_erase_c7,
5068 }
5069 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005070 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005071 .unlock = spi_disable_blockprotect,
5072 .write = spi_chip_write_256,
5073 .read = spi_chip_read,
5074 .voltage = {1650, 1950},
5075 },
5076
5077 {
5078 .vendor = "Eon",
5079 .name = "EN25S16",
5080 .bustype = BUS_SPI,
5081 .manufacture_id = EON_ID_NOPREFIX,
5082 .model_id = EON_EN25S16,
5083 .total_size = 2048,
5084 .page_size = 256,
5085 /* OTP: 512B total; enter 0x3A */
5086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5087 .tested = TEST_UNTESTED,
5088 .probe = probe_spi_rdid,
5089 .probe_timing = TIMING_ZERO,
5090 .block_erasers = {
5091 {
5092 .eraseblocks = { {4 * 1024, 512} },
5093 .block_erase = spi_block_erase_20,
5094 }, {
5095 .eraseblocks = { {64 * 1024, 32} },
5096 .block_erase = spi_block_erase_52,
5097 }, {
5098 .eraseblocks = { {32 * 1024, 64} },
5099 .block_erase = spi_block_erase_d8,
5100 }, {
5101 .eraseblocks = { {2048 * 1024, 1} },
5102 .block_erase = spi_block_erase_60,
5103 }, {
5104 .eraseblocks = { {2048 * 1024, 1} },
5105 .block_erase = spi_block_erase_c7,
5106 }
5107 },
5108 .printlock = spi_prettyprint_status_register_en25s_wp,
5109 .unlock = spi_disable_blockprotect_bp3_srwd,
5110 .write = spi_chip_write_256,
5111 .read = spi_chip_read,
5112 .voltage = {1650, 1950},
5113 },
5114
5115 {
5116 .vendor = "Eon",
5117 .name = "EN25S32",
5118 .bustype = BUS_SPI,
5119 .manufacture_id = EON_ID_NOPREFIX,
5120 .model_id = EON_EN25S32,
5121 .total_size = 4096,
5122 .page_size = 256,
5123 /* OTP: 512B total; enter 0x3A */
5124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5125 .tested = TEST_UNTESTED,
5126 .probe = probe_spi_rdid,
5127 .probe_timing = TIMING_ZERO,
5128 .block_erasers = {
5129 {
5130 .eraseblocks = { {4 * 1024, 1024} },
5131 .block_erase = spi_block_erase_20,
5132 }, {
5133 .eraseblocks = { {32 * 1024, 128} },
5134 .block_erase = spi_block_erase_52,
5135 }, {
5136 .eraseblocks = { {64 * 1024, 64} },
5137 .block_erase = spi_block_erase_d8,
5138 }, {
5139 .eraseblocks = { {4096 * 1024, 1} },
5140 .block_erase = spi_block_erase_60,
5141 }, {
5142 .eraseblocks = { {4096 * 1024, 1} },
5143 .block_erase = spi_block_erase_c7,
5144 }
5145 },
5146 .printlock = spi_prettyprint_status_register_en25s_wp,
5147 .unlock = spi_disable_blockprotect_bp3_srwd,
5148 .write = spi_chip_write_256,
5149 .read = spi_chip_read,
5150 .voltage = {1650, 1950},
5151 },
5152
5153 {
5154 .vendor = "Eon",
5155 .name = "EN25S64",
5156 .bustype = BUS_SPI,
5157 .manufacture_id = EON_ID_NOPREFIX,
5158 .model_id = EON_EN25S64,
5159 .total_size = 8192,
5160 .page_size = 256,
5161 /* OTP: 512B total; enter 0x3A */
5162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5163 .tested = TEST_UNTESTED,
5164 .probe = probe_spi_rdid,
5165 .probe_timing = TIMING_ZERO,
5166 .block_erasers = {
5167 {
5168 .eraseblocks = { {4 * 1024, 2048} },
5169 .block_erase = spi_block_erase_20,
5170 }, {
5171 .eraseblocks = { {64 * 1024, 128} },
5172 .block_erase = spi_block_erase_d8,
5173 }, {
5174 .eraseblocks = { {8192 * 1024, 1} },
5175 .block_erase = spi_block_erase_60,
5176 }, {
5177 .eraseblocks = { {8192 * 1024, 1} },
5178 .block_erase = spi_block_erase_c7,
5179 }
5180 },
5181 .printlock = spi_prettyprint_status_register_en25s_wp,
5182 .unlock = spi_disable_blockprotect_bp3_srwd,
5183 .write = spi_chip_write_256,
5184 .read = spi_chip_read,
5185 .voltage = {1650, 1950},
5186 },
5187
5188 {
5189 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005190 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005191 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005192 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005193 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005194 .total_size = 128,
5195 .page_size = 128,
5196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005197 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005198 .probe = probe_jedec,
5199 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5200 .block_erasers =
5201 {
5202 {
5203 .eraseblocks = { {16 * 1024, 8} },
5204 .block_erase = erase_sector_jedec,
5205 },
5206 {
5207 .eraseblocks = { {128 * 1024, 1} },
5208 .block_erase = erase_chip_block_jedec,
5209 },
5210 },
5211 .write = write_jedec_1,
5212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005213 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005214 },
5215
5216 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005217 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005218 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005219 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005220 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005221 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005222 .total_size = 256,
5223 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005224 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005225 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005226 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005227 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005228 .block_erasers =
5229 {
5230 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005231 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005232 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005233 {8 * 1024, 2},
5234 {32 * 1024, 1},
5235 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005236 },
5237 .block_erase = erase_sector_jedec,
5238 }, {
5239 .eraseblocks = { {256 * 1024, 1} },
5240 .block_erase = erase_chip_block_jedec,
5241 },
5242 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005243 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005244 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005245 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005246 },
5247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005248 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005249 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005250 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005251 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005252 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005253 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005254 .total_size = 256,
5255 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005256 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005258 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005259 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005260 .block_erasers =
5261 {
5262 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005263 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005264 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005265 {32 * 1024, 1},
5266 {8 * 1024, 2},
5267 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005268 },
5269 .block_erase = erase_sector_jedec,
5270 }, {
5271 .eraseblocks = { {256 * 1024, 1} },
5272 .block_erase = erase_chip_block_jedec,
5273 },
5274 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005275 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005276 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005277 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005278 },
5279
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005280 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005281 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005282 .name = "EN29LV040(A)",
5283 .bustype = BUS_PARALLEL,
5284 .manufacture_id = EON_ID,
5285 .model_id = EON_EN29LV040,
5286 .total_size = 512,
5287 .page_size = 4 * 1024,
5288 .tested = TEST_OK_PREW,
5289 .probe = probe_jedec,
5290 .probe_timing = TIMING_ZERO,
5291 .block_erasers =
5292 {
5293 {
5294 .eraseblocks = { {64 * 1024, 8} },
5295 .block_erase = erase_sector_jedec,
5296 },
5297 {
5298 .eraseblocks = { {512 * 1024, 1} },
5299 .block_erase = erase_chip_block_jedec,
5300 },
5301 },
5302 .write = write_jedec_1,
5303 .read = read_memmapped,
5304 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5305 },
5306
5307 {
5308 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005309 .name = "EN29LV640B",
5310 .bustype = BUS_PARALLEL,
5311 .manufacture_id = EON_ID,
5312 .model_id = EON_EN29LV640B,
5313 .total_size = 8192,
5314 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005315 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005316 .tested = TEST_OK_PREW,
5317 .probe = probe_en29lv640b,
5318 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5319 .block_erasers =
5320 {
5321 {
5322 .eraseblocks = {
5323 {8 * 1024, 8},
5324 {64 * 1024, 127},
5325 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005326 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005327 }, {
5328 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005329 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005330 },
5331 },
5332 .write = write_en29lv640b,
5333 .read = read_memmapped,
5334 .voltage = {2700, 3600},
5335 },
5336
5337 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005338 .vendor = "Eon",
5339 .name = "EN29GL064(A)B",
5340 .bustype = BUS_PARALLEL,
5341 .manufacture_id = EON_ID,
5342 .model_id = EON_EN29GL064B,
5343 .total_size = 8192,
5344 .page_size = 128 * 1024, /* actual page size is 16 */
5345 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5346 .tested = TEST_UNTESTED,
5347 .probe = probe_jedec_29gl,
5348 .probe_timing = TIMING_ZERO,
5349 .block_erasers =
5350 {
5351 {
5352 .eraseblocks = {
5353 {8 * 1024, 8},
5354 {64 * 1024, 127},
5355 },
5356 .block_erase = erase_sector_jedec,
5357 }, {
5358 .eraseblocks = { {8 * 1024 * 1024, 1} },
5359 .block_erase = erase_chip_block_jedec,
5360 },
5361 },
5362 .write = write_jedec_1,
5363 .read = read_memmapped,
5364 .voltage = {2700, 3600},
5365 },
5366
5367 {
5368 .vendor = "Eon",
5369 .name = "EN29GL064(A)T",
5370 .bustype = BUS_PARALLEL,
5371 .manufacture_id = EON_ID,
5372 .model_id = EON_EN29GL064T,
5373 .total_size = 8192,
5374 .page_size = 128 * 1024, /* actual page size is 16 */
5375 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5376 .tested = TEST_UNTESTED,
5377 .probe = probe_jedec_29gl,
5378 .probe_timing = TIMING_ZERO,
5379 .block_erasers =
5380 {
5381 {
5382 .eraseblocks = {
5383 {64 * 1024, 127},
5384 {8 * 1024, 8},
5385 },
5386 .block_erase = erase_sector_jedec,
5387 }, {
5388 .eraseblocks = { {8 * 1024 * 1024, 1} },
5389 .block_erase = erase_chip_block_jedec,
5390 },
5391 },
5392 .write = write_jedec_1,
5393 .read = read_memmapped,
5394 .voltage = {2700, 3600},
5395 },
5396
5397 {
5398 .vendor = "Eon",
5399 .name = "EN29GL064H/L",
5400 .bustype = BUS_PARALLEL,
5401 .manufacture_id = EON_ID,
5402 .model_id = EON_EN29GL064HL,
5403 .total_size = 8192,
5404 .page_size = 128 * 1024, /* actual page size is 16 */
5405 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5406 .tested = TEST_UNTESTED,
5407 .probe = probe_jedec_29gl,
5408 .probe_timing = TIMING_ZERO,
5409 .block_erasers =
5410 {
5411 {
5412 .eraseblocks = { {64 * 1024, 128} },
5413 .block_erase = erase_sector_jedec,
5414 }, {
5415 .eraseblocks = { {8 * 1024 * 1024, 1} },
5416 .block_erase = erase_chip_block_jedec,
5417 },
5418 },
5419 .write = write_jedec_1,
5420 .read = read_memmapped,
5421 .voltage = {2700, 3600},
5422 },
5423
5424 {
5425 .vendor = "Eon",
5426 .name = "EN29GL128",
5427 .bustype = BUS_PARALLEL,
5428 .manufacture_id = EON_ID,
5429 .model_id = EON_EN29GL128HL,
5430 .total_size = 16384,
5431 .page_size = 128 * 1024, /* actual page size is 16 */
5432 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5433 .tested = TEST_UNTESTED,
5434 .probe = probe_jedec_29gl,
5435 .probe_timing = TIMING_ZERO,
5436 .block_erasers =
5437 {
5438 {
5439 .eraseblocks = { {128 * 1024, 128} },
5440 .block_erase = erase_sector_jedec,
5441 }, {
5442 .eraseblocks = { {16 * 1024 * 1024, 1} },
5443 .block_erase = erase_chip_block_jedec,
5444 },
5445 },
5446 .write = write_jedec_1,
5447 .read = read_memmapped,
5448 .voltage = {2700, 3600},
5449 },
5450
5451 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005452 .vendor = "ESI",
5453 .name = "ES25P40",
5454 .bustype = BUS_SPI,
5455 .manufacture_id = EXCEL_ID_NOPREFIX,
5456 .model_id = EXCEL_ES25P40,
5457 .total_size = 512,
5458 .page_size = 256,
5459 /* 256-byte paramter page separate from memory array:
5460 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5461 .feature_bits = FEATURE_WRSR_WREN,
5462 .tested = TEST_UNTESTED,
5463 .probe = probe_spi_rdid,
5464 .probe_timing = TIMING_ZERO,
5465 .block_erasers =
5466 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005467 {
5468 .eraseblocks = { {64 * 1024, 8} },
5469 .block_erase = spi_block_erase_d8,
5470 }, {
5471 .eraseblocks = { {512 * 1024, 1} },
5472 .block_erase = spi_block_erase_c7,
5473 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005474 },
5475 .printlock = spi_prettyprint_status_register_bp2_srwd,
5476 .unlock = spi_disable_blockprotect_bp2_srwd,
5477 .write = spi_chip_write_256,
5478 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5479 .voltage = {2700, 3600},
5480 },
5481
5482 {
5483 .vendor = "ESI",
5484 .name = "ES25P80",
5485 .bustype = BUS_SPI,
5486 .manufacture_id = EXCEL_ID_NOPREFIX,
5487 .model_id = EXCEL_ES25P80,
5488 .total_size = 1024,
5489 .page_size = 256,
5490 /* 256-byte paramter page separate from memory array:
5491 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5492 .feature_bits = FEATURE_WRSR_WREN,
5493 .tested = TEST_UNTESTED,
5494 .probe = probe_spi_rdid,
5495 .probe_timing = TIMING_ZERO,
5496 .block_erasers =
5497 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005498 {
5499 .eraseblocks = { {64 * 1024, 16} },
5500 .block_erase = spi_block_erase_d8,
5501 }, {
5502 .eraseblocks = { {1024 * 1024, 1} },
5503 .block_erase = spi_block_erase_c7,
5504 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005505 },
5506 .printlock = spi_prettyprint_status_register_bp2_srwd,
5507 .unlock = spi_disable_blockprotect_bp2_srwd,
5508 .write = spi_chip_write_256,
5509 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5510 .voltage = {2700, 3600},
5511 },
5512
5513 {
5514 .vendor = "ESI",
5515 .name = "ES25P16",
5516 .bustype = BUS_SPI,
5517 .manufacture_id = EXCEL_ID_NOPREFIX,
5518 .model_id = EXCEL_ES25P16,
5519 .total_size = 2 * 1024,
5520 .page_size = 256,
5521 /* 256-byte paramter page separate from memory array:
5522 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5523 .feature_bits = FEATURE_WRSR_WREN,
5524 .tested = TEST_UNTESTED,
5525 .probe = probe_spi_rdid,
5526 .probe_timing = TIMING_ZERO,
5527 .block_erasers =
5528 {
5529 {
5530 .eraseblocks = { {64 * 1024, 32} },
5531 .block_erase = spi_block_erase_d8,
5532 }, {
5533 .eraseblocks = { {2 * 1024 * 1024, 1} },
5534 .block_erase = spi_block_erase_c7,
5535 }
5536 },
5537 .printlock = spi_prettyprint_status_register_bp2_srwd,
5538 .unlock = spi_disable_blockprotect_bp2_srwd,
5539 .write = spi_chip_write_256,
5540 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5541 .voltage = {2700, 3600},
5542 },
5543
5544 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005545 .vendor = "Fujitsu",
5546 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005547 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005549 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005550 .total_size = 512,
5551 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005552 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005553 .tested = TEST_UNTESTED,
5554 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005555 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005556 .block_erasers =
5557 {
5558 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005559 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005560 {16 * 1024, 1},
5561 {8 * 1024, 2},
5562 {32 * 1024, 1},
5563 {64 * 1024, 7},
5564 },
Sean Nelson35727f72010-01-28 23:55:12 +00005565 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005566 }, {
5567 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005568 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005569 },
5570 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005571 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005573 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005574 },
5575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005576 {
5577 .vendor = "Fujitsu",
5578 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005579 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005581 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005582 .total_size = 512,
5583 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005584 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005585 .tested = TEST_UNTESTED,
5586 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005587 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005588 .block_erasers =
5589 {
5590 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005591 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005592 {64 * 1024, 7},
5593 {32 * 1024, 1},
5594 {8 * 1024, 2},
5595 {16 * 1024, 1},
5596 },
Sean Nelson35727f72010-01-28 23:55:12 +00005597 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005598 }, {
5599 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005600 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005601 },
5602 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005603 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005604 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005605 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005606 },
5607
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005608 {
Sean Nelson35727f72010-01-28 23:55:12 +00005609 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005610 .vendor = "Fujitsu",
5611 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005612 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005613 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005614 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005615 .total_size = 512,
5616 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005617 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005618 .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
Sean Nelson6b11ad22009-12-23 17:05:59 +00005621 .block_erasers =
5622 {
5623 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005624 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005625 {16 * 1024, 1},
5626 {8 * 1024, 2},
5627 {32 * 1024, 1},
5628 {64 * 1024, 7},
5629 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005630 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005631 }, {
5632 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005633 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005634 },
5635 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005636 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005637 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005638 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005639 },
5640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005641 {
5642 .vendor = "Fujitsu",
5643 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005644 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005645 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005646 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005647 .total_size = 512,
5648 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005649 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005650 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005651 .probe = probe_jedec,
5652 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005653 .block_erasers =
5654 {
5655 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005656 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005657 {64 * 1024, 7},
5658 {32 * 1024, 1},
5659 {8 * 1024, 2},
5660 {16 * 1024, 1},
5661 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005662 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005663 }, {
5664 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005665 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005666 },
5667 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005668 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005669 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005670 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005671 },
5672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005673 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005674 .vendor = "Fujitsu",
5675 .name = "MBM29LV160BE",
5676 .bustype = BUS_PARALLEL,
5677 .manufacture_id = FUJITSU_ID,
5678 .model_id = FUJITSU_MBM29LV160BE,
5679 .total_size = 2 * 1024,
5680 .page_size = 0,
5681 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5682 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005683 .probe = probe_jedec,
5684 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005685 .block_erasers =
5686 {
5687 {
5688 .eraseblocks = {
5689 {16 * 1024, 1},
5690 {8 * 1024, 2},
5691 {32 * 1024, 1},
5692 {64 * 1024, 31},
5693 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005694 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005695 }, {
5696 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005697 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005698 },
5699 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005700 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005701 .read = read_memmapped,
5702 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5703 },
5704
5705 {
5706 .vendor = "Fujitsu",
5707 .name = "MBM29LV160TE",
5708 .bustype = BUS_PARALLEL,
5709 .manufacture_id = FUJITSU_ID,
5710 .model_id = FUJITSU_MBM29LV160TE,
5711 .total_size = 2 * 1024,
5712 .page_size = 0,
5713 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5714 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005715 .probe = probe_jedec,
5716 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005717 .block_erasers =
5718 {
5719 {
5720 .eraseblocks = {
5721 {64 * 1024, 31},
5722 {32 * 1024, 1},
5723 {8 * 1024, 2},
5724 {16 * 1024, 1},
5725 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005726 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005727 }, {
5728 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005729 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005730 },
5731 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005732 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005733 .read = read_memmapped,
5734 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5735 },
5736
5737 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005738 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005739 .name = "GD25LQ40",
5740 .bustype = BUS_SPI,
5741 .manufacture_id = GIGADEVICE_ID,
5742 .model_id = GIGADEVICE_GD25LQ40,
5743 .total_size = 512,
5744 .page_size = 256,
5745 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5747 .tested = TEST_UNTESTED,
5748 .probe = probe_spi_rdid,
5749 .probe_timing = TIMING_ZERO,
5750 .block_erasers =
5751 {
5752 {
5753 .eraseblocks = { {4 * 1024, 128} },
5754 .block_erase = spi_block_erase_20,
5755 }, {
5756 .eraseblocks = { {32 * 1024, 16} },
5757 .block_erase = spi_block_erase_52,
5758 }, {
5759 .eraseblocks = { {64 * 1024, 8} },
5760 .block_erase = spi_block_erase_d8,
5761 }, {
5762 .eraseblocks = { {512 * 1024, 1} },
5763 .block_erase = spi_block_erase_60,
5764 }, {
5765 .eraseblocks = { {512 * 1024, 1} },
5766 .block_erase = spi_block_erase_c7,
5767 }
5768 },
5769 .printlock = spi_prettyprint_status_register_bp4_srwd,
5770 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5771 .write = spi_chip_write_256,
5772 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5773 .voltage = {1695, 1950},
5774 },
5775
5776 {
5777 .vendor = "GigaDevice",
5778 .name = "GD25LQ80",
5779 .bustype = BUS_SPI,
5780 .manufacture_id = GIGADEVICE_ID,
5781 .model_id = GIGADEVICE_GD25LQ80,
5782 .total_size = 1024,
5783 .page_size = 256,
5784 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5785 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5786 .tested = TEST_UNTESTED,
5787 .probe = probe_spi_rdid,
5788 .probe_timing = TIMING_ZERO,
5789 .block_erasers =
5790 {
5791 {
5792 .eraseblocks = { {4 * 1024, 256} },
5793 .block_erase = spi_block_erase_20,
5794 }, {
5795 .eraseblocks = { {32 * 1024, 32} },
5796 .block_erase = spi_block_erase_52,
5797 }, {
5798 .eraseblocks = { {64 * 1024, 16} },
5799 .block_erase = spi_block_erase_d8,
5800 }, {
5801 .eraseblocks = { {1 * 1024 * 1024, 1} },
5802 .block_erase = spi_block_erase_60,
5803 }, {
5804 .eraseblocks = { {1 * 1024 * 1024, 1} },
5805 .block_erase = spi_block_erase_c7,
5806 }
5807 },
5808 .printlock = spi_prettyprint_status_register_bp4_srwd,
5809 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5810 .write = spi_chip_write_256,
5811 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5812 .voltage = {1695, 1950},
5813 },
5814
5815 {
5816 .vendor = "GigaDevice",
5817 .name = "GD25LQ16",
5818 .bustype = BUS_SPI,
5819 .manufacture_id = GIGADEVICE_ID,
5820 .model_id = GIGADEVICE_GD25LQ16,
5821 .total_size = 2048,
5822 .page_size = 256,
5823 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5825 .tested = TEST_UNTESTED,
5826 .probe = probe_spi_rdid,
5827 .probe_timing = TIMING_ZERO,
5828 .block_erasers =
5829 {
5830 {
5831 .eraseblocks = { {4 * 1024, 512} },
5832 .block_erase = spi_block_erase_20,
5833 }, {
5834 .eraseblocks = { {32 * 1024, 64} },
5835 .block_erase = spi_block_erase_52,
5836 }, {
5837 .eraseblocks = { {64 * 1024, 32} },
5838 .block_erase = spi_block_erase_d8,
5839 }, {
5840 .eraseblocks = { {2 * 1024 * 1024, 1} },
5841 .block_erase = spi_block_erase_60,
5842 }, {
5843 .eraseblocks = { {2 * 1024 * 1024, 1} },
5844 .block_erase = spi_block_erase_c7,
5845 }
5846 },
5847 .printlock = spi_prettyprint_status_register_bp4_srwd,
5848 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5849 .write = spi_chip_write_256,
5850 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5851 .voltage = {1695, 1950},
5852 },
5853
5854 {
5855 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005856 .name = "GD25LQ32",
5857 .bustype = BUS_SPI,
5858 .manufacture_id = GIGADEVICE_ID,
5859 .model_id = GIGADEVICE_GD25LQ32,
5860 .total_size = 4096,
5861 .page_size = 256,
5862 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5864 .tested = TEST_OK_PREW,
5865 .probe = probe_spi_rdid,
5866 .probe_timing = TIMING_ZERO,
5867 .block_erasers =
5868 {
5869 {
5870 .eraseblocks = { {4 * 1024, 1024} },
5871 .block_erase = spi_block_erase_20,
5872 }, {
5873 .eraseblocks = { {32 * 1024, 128} },
5874 .block_erase = spi_block_erase_52,
5875 }, {
5876 .eraseblocks = { {64 * 1024, 64} },
5877 .block_erase = spi_block_erase_d8,
5878 }, {
5879 .eraseblocks = { {4 * 1024 * 1024, 1} },
5880 .block_erase = spi_block_erase_60,
5881 }, {
5882 .eraseblocks = { {4 * 1024 * 1024, 1} },
5883 .block_erase = spi_block_erase_c7,
5884 }
5885 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005886 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005887 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5888 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005889 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5890 .voltage = {1695, 1950},
5891 },
5892
5893 {
5894 .vendor = "GigaDevice",
5895 .name = "GD25LQ64(B)",
5896 .bustype = BUS_SPI,
5897 .manufacture_id = GIGADEVICE_ID,
5898 .model_id = GIGADEVICE_GD25LQ64,
5899 .total_size = 8192,
5900 .page_size = 256,
5901 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5902 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005903 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005904 .probe = probe_spi_rdid,
5905 .probe_timing = TIMING_ZERO,
5906 .block_erasers =
5907 {
5908 {
5909 .eraseblocks = { {4 * 1024, 2048} },
5910 .block_erase = spi_block_erase_20,
5911 }, {
5912 .eraseblocks = { {32 * 1024, 256} },
5913 .block_erase = spi_block_erase_52,
5914 }, {
5915 .eraseblocks = { {64 * 1024, 128} },
5916 .block_erase = spi_block_erase_d8,
5917 }, {
5918 .eraseblocks = { {8 * 1024 * 1024, 1} },
5919 .block_erase = spi_block_erase_60,
5920 }, {
5921 .eraseblocks = { {8 * 1024 * 1024, 1} },
5922 .block_erase = spi_block_erase_c7,
5923 }
5924 },
5925 .printlock = spi_prettyprint_status_register_bp4_srwd,
5926 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5927 .write = spi_chip_write_256,
5928 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5929 .voltage = {1695, 1950},
5930 },
5931
5932 {
5933 .vendor = "GigaDevice",
5934 .name = "GD25LQ128",
5935 .bustype = BUS_SPI,
5936 .manufacture_id = GIGADEVICE_ID,
5937 .model_id = GIGADEVICE_GD25LQ128,
5938 .total_size = 16384,
5939 .page_size = 256,
5940 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5942 .tested = TEST_UNTESTED,
5943 .probe = probe_spi_rdid,
5944 .probe_timing = TIMING_ZERO,
5945 .block_erasers =
5946 {
5947 {
5948 .eraseblocks = { {4 * 1024, 4096} },
5949 .block_erase = spi_block_erase_20,
5950 }, {
5951 .eraseblocks = { {32 * 1024, 512} },
5952 .block_erase = spi_block_erase_52,
5953 }, {
5954 .eraseblocks = { {64 * 1024, 256} },
5955 .block_erase = spi_block_erase_d8,
5956 }, {
5957 .eraseblocks = { {16 * 1024 * 1024, 1} },
5958 .block_erase = spi_block_erase_60,
5959 }, {
5960 .eraseblocks = { {16 * 1024 * 1024, 1} },
5961 .block_erase = spi_block_erase_c7,
5962 }
5963 },
5964 .printlock = spi_prettyprint_status_register_bp4_srwd,
5965 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5966 .write = spi_chip_write_256,
5967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5968 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005969 },
5970
5971 {
5972 .vendor = "GigaDevice",
5973 .name = "GD25Q512",
5974 .bustype = BUS_SPI,
5975 .manufacture_id = GIGADEVICE_ID,
5976 .model_id = GIGADEVICE_GD25Q512,
5977 .total_size = 64,
5978 .page_size = 256,
5979 .feature_bits = FEATURE_WRSR_WREN,
5980 .tested = TEST_UNTESTED,
5981 .probe = probe_spi_rdid,
5982 .probe_timing = TIMING_ZERO,
5983 .block_erasers = {
5984 {
5985 .eraseblocks = { {4 * 1024, 16} },
5986 .block_erase = spi_block_erase_20,
5987 }, {
5988 .eraseblocks = { {32 * 1024, 2} },
5989 .block_erase = spi_block_erase_52,
5990 }, {
5991 .eraseblocks = { {64 * 1024, 1} },
5992 .block_erase = spi_block_erase_60,
5993 }, {
5994 .eraseblocks = { {64 * 1024, 1} },
5995 .block_erase = spi_block_erase_c7,
5996 }
5997 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005998 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005999 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6000 .write = spi_chip_write_256,
6001 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6002 .voltage = {2700, 3600},
6003 },
6004
6005 {
6006 .vendor = "GigaDevice",
6007 .name = "GD25Q10",
6008 .bustype = BUS_SPI,
6009 .manufacture_id = GIGADEVICE_ID,
6010 .model_id = GIGADEVICE_GD25Q10,
6011 .total_size = 128,
6012 .page_size = 256,
6013 .feature_bits = FEATURE_WRSR_WREN,
6014 .tested = TEST_UNTESTED,
6015 .probe = probe_spi_rdid,
6016 .probe_timing = TIMING_ZERO,
6017 .block_erasers = {
6018 {
6019 .eraseblocks = { {4 * 1024, 32} },
6020 .block_erase = spi_block_erase_20,
6021 }, {
6022 .eraseblocks = { {32 * 1024, 4} },
6023 .block_erase = spi_block_erase_52,
6024 }, {
6025 .eraseblocks = { {64 * 1024, 2} },
6026 .block_erase = spi_block_erase_d8,
6027 }, {
6028 .eraseblocks = { {128 * 1024, 1} },
6029 .block_erase = spi_block_erase_60,
6030 }, {
6031 .eraseblocks = { {128 * 1024, 1} },
6032 .block_erase = spi_block_erase_c7,
6033 }
6034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006035 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006036 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6037 .write = spi_chip_write_256,
6038 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6039 .voltage = {2700, 3600},
6040 },
6041
6042 {
6043 .vendor = "GigaDevice",
6044 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006045 .bustype = BUS_SPI,
6046 .manufacture_id = GIGADEVICE_ID,
6047 .model_id = GIGADEVICE_GD25Q20,
6048 .total_size = 256,
6049 .page_size = 256,
6050 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00006051 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006052 .probe = probe_spi_rdid,
6053 .probe_timing = TIMING_ZERO,
6054 .block_erasers =
6055 {
6056 {
6057 .eraseblocks = { {4 * 1024, 64} },
6058 .block_erase = spi_block_erase_20,
6059 }, {
6060 .eraseblocks = { {32 * 1024, 8} },
6061 .block_erase = spi_block_erase_52,
6062 }, {
6063 .eraseblocks = { {64 * 1024, 4} },
6064 .block_erase = spi_block_erase_d8,
6065 }, {
6066 .eraseblocks = { {256 * 1024, 1} },
6067 .block_erase = spi_block_erase_60,
6068 }, {
6069 .eraseblocks = { {256 * 1024, 1} },
6070 .block_erase = spi_block_erase_c7,
6071 }
6072 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006073 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006074 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006075 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006076 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006077 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006078 },
6079
6080 {
6081 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006082 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006083 .bustype = BUS_SPI,
6084 .manufacture_id = GIGADEVICE_ID,
6085 .model_id = GIGADEVICE_GD25Q40,
6086 .total_size = 512,
6087 .page_size = 256,
6088 .feature_bits = FEATURE_WRSR_WREN,
6089 .tested = TEST_UNTESTED,
6090 .probe = probe_spi_rdid,
6091 .probe_timing = TIMING_ZERO,
6092 .block_erasers =
6093 {
6094 {
6095 .eraseblocks = { {4 * 1024, 128} },
6096 .block_erase = spi_block_erase_20,
6097 }, {
6098 .eraseblocks = { {32 * 1024, 16} },
6099 .block_erase = spi_block_erase_52,
6100 }, {
6101 .eraseblocks = { {64 * 1024, 8} },
6102 .block_erase = spi_block_erase_d8,
6103 }, {
6104 .eraseblocks = { {512 * 1024, 1} },
6105 .block_erase = spi_block_erase_60,
6106 }, {
6107 .eraseblocks = { {512 * 1024, 1} },
6108 .block_erase = spi_block_erase_c7,
6109 }
6110 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006111 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006112 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006113 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006114 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006115 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006116 },
6117
6118 {
6119 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006120 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006121 .bustype = BUS_SPI,
6122 .manufacture_id = GIGADEVICE_ID,
6123 .model_id = GIGADEVICE_GD25Q80,
6124 .total_size = 1024,
6125 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006126 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6128 .tested = TEST_OK_PREW,
6129 .probe = probe_spi_rdid,
6130 .probe_timing = TIMING_ZERO,
6131 .block_erasers =
6132 {
6133 {
6134 .eraseblocks = { {4 * 1024, 256} },
6135 .block_erase = spi_block_erase_20,
6136 }, {
6137 .eraseblocks = { {32 * 1024, 32} },
6138 .block_erase = spi_block_erase_52,
6139 }, {
6140 .eraseblocks = { {64 * 1024, 16} },
6141 .block_erase = spi_block_erase_d8,
6142 }, {
6143 .eraseblocks = { {1024 * 1024, 1} },
6144 .block_erase = spi_block_erase_60,
6145 }, {
6146 .eraseblocks = { {1024 * 1024, 1} },
6147 .block_erase = spi_block_erase_c7,
6148 }
6149 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006150 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006151 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006152 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006153 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006154 .voltage = {2700, 3600},
6155 },
6156
6157 {
6158 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006159 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006160 .bustype = BUS_SPI,
6161 .manufacture_id = GIGADEVICE_ID,
6162 .model_id = GIGADEVICE_GD25Q16,
6163 .total_size = 2048,
6164 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006165 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006166 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006167 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006168 .probe = probe_spi_rdid,
6169 .probe_timing = TIMING_ZERO,
6170 .block_erasers =
6171 {
6172 {
6173 .eraseblocks = { {4 * 1024, 512} },
6174 .block_erase = spi_block_erase_20,
6175 }, {
6176 .eraseblocks = { {32 * 1024, 64} },
6177 .block_erase = spi_block_erase_52,
6178 }, {
6179 .eraseblocks = { {64 * 1024, 32} },
6180 .block_erase = spi_block_erase_d8,
6181 }, {
6182 .eraseblocks = { {2 * 1024 * 1024, 1} },
6183 .block_erase = spi_block_erase_60,
6184 }, {
6185 .eraseblocks = { {2 * 1024 * 1024, 1} },
6186 .block_erase = spi_block_erase_c7,
6187 }
6188 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006189 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006190 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006191 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006192 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006193 .voltage = {2700, 3600},
6194 },
6195
6196 {
6197 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006198 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006199 .bustype = BUS_SPI,
6200 .manufacture_id = GIGADEVICE_ID,
6201 .model_id = GIGADEVICE_GD25Q32,
6202 .total_size = 4096,
6203 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006204 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006205 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006206 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006207 .probe = probe_spi_rdid,
6208 .probe_timing = TIMING_ZERO,
6209 .block_erasers =
6210 {
6211 {
6212 .eraseblocks = { {4 * 1024, 1024} },
6213 .block_erase = spi_block_erase_20,
6214 }, {
6215 .eraseblocks = { {32 * 1024, 128} },
6216 .block_erase = spi_block_erase_52,
6217 }, {
6218 .eraseblocks = { {64 * 1024, 64} },
6219 .block_erase = spi_block_erase_d8,
6220 }, {
6221 .eraseblocks = { {4 * 1024 * 1024, 1} },
6222 .block_erase = spi_block_erase_60,
6223 }, {
6224 .eraseblocks = { {4 * 1024 * 1024, 1} },
6225 .block_erase = spi_block_erase_c7,
6226 }
6227 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006228 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006229 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006230 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006231 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006232 .voltage = {2700, 3600},
6233 },
6234
6235 {
6236 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006237 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006238 .bustype = BUS_SPI,
6239 .manufacture_id = GIGADEVICE_ID,
6240 .model_id = GIGADEVICE_GD25Q64,
6241 .total_size = 8192,
6242 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006243 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006244 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006245 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006246 .probe = probe_spi_rdid,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = { {4 * 1024, 2048} },
6252 .block_erase = spi_block_erase_20,
6253 }, {
6254 .eraseblocks = { {32 * 1024, 256} },
6255 .block_erase = spi_block_erase_52,
6256 }, {
6257 .eraseblocks = { {64 * 1024, 128} },
6258 .block_erase = spi_block_erase_d8,
6259 }, {
6260 .eraseblocks = { {8 * 1024 * 1024, 1} },
6261 .block_erase = spi_block_erase_60,
6262 }, {
6263 .eraseblocks = { {8 * 1024 * 1024, 1} },
6264 .block_erase = spi_block_erase_c7,
6265 }
6266 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006267 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006268 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006269 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006270 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006271 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006272 },
6273
6274 {
6275 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006276 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006277 .bustype = BUS_SPI,
6278 .manufacture_id = GIGADEVICE_ID,
6279 .model_id = GIGADEVICE_GD25Q128,
6280 .total_size = 16384,
6281 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006282 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6284 .tested = TEST_UNTESTED,
6285 .probe = probe_spi_rdid,
6286 .probe_timing = TIMING_ZERO,
6287 .block_erasers =
6288 {
6289 {
6290 .eraseblocks = { {4 * 1024, 4096} },
6291 .block_erase = spi_block_erase_20,
6292 }, {
6293 .eraseblocks = { {32 * 1024, 512} },
6294 .block_erase = spi_block_erase_52,
6295 }, {
6296 .eraseblocks = { {64 * 1024, 256} },
6297 .block_erase = spi_block_erase_d8,
6298 }, {
6299 .eraseblocks = { {16 * 1024 * 1024, 1} },
6300 .block_erase = spi_block_erase_60,
6301 }, {
6302 .eraseblocks = { {16 * 1024 * 1024, 1} },
6303 .block_erase = spi_block_erase_c7,
6304 }
6305 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006306 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006307 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6308 .write = spi_chip_write_256,
6309 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6310 .voltage = {2700, 3600},
6311 },
6312
6313 {
6314 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006315 .name = "GD25Q128C",
6316 .bustype = BUS_SPI,
6317 .manufacture_id = GIGADEVICE_ID,
6318 .model_id = GIGADEVICE_GD25Q128,
6319 .total_size = 16384,
6320 .page_size = 256,
6321 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6322 /* QPI: enable 0x38, disable 0xFF */
6323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6324 .tested = TEST_UNTESTED,
6325 .probe = probe_spi_rdid,
6326 .probe_timing = TIMING_ZERO,
6327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = { {4 * 1024, 4096} },
6331 .block_erase = spi_block_erase_20,
6332 }, {
6333 .eraseblocks = { {32 * 1024, 512} },
6334 .block_erase = spi_block_erase_52,
6335 }, {
6336 .eraseblocks = { {64 * 1024, 256} },
6337 .block_erase = spi_block_erase_d8,
6338 }, {
6339 .eraseblocks = { {16 * 1024 * 1024, 1} },
6340 .block_erase = spi_block_erase_60,
6341 }, {
6342 .eraseblocks = { {16 * 1024 * 1024, 1} },
6343 .block_erase = spi_block_erase_c7,
6344 }
6345 },
6346 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6347 .printlock = spi_prettyprint_status_register_bp4_srwd,
6348 .unlock = spi_disable_blockprotect_bp4_srwd,
6349 .write = spi_chip_write_256,
6350 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6351 .voltage = {2700, 3600},
6352 },
6353
6354 {
6355 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006356 .name = "GD25T80",
6357 .bustype = BUS_SPI,
6358 .manufacture_id = GIGADEVICE_ID,
6359 .model_id = GIGADEVICE_GD25T80,
6360 .total_size = 1024,
6361 .page_size = 256,
6362 /* OTP: 256B total; enter 0x3A */
6363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6364 .tested = TEST_UNTESTED,
6365 .probe = probe_spi_rdid,
6366 .probe_timing = TIMING_ZERO,
6367 .block_erasers = {
6368 {
6369 .eraseblocks = { {4 * 1024, 256} },
6370 .block_erase = spi_block_erase_20,
6371 }, {
6372 .eraseblocks = { {64 * 1024, 16} },
6373 .block_erase = spi_block_erase_52,
6374 }, {
6375 .eraseblocks = { {64 * 1024, 16} },
6376 .block_erase = spi_block_erase_d8,
6377 }, {
6378 .eraseblocks = { {1024 * 1024, 1} },
6379 .block_erase = spi_block_erase_60,
6380 }, {
6381 .eraseblocks = { {1024 * 1024, 1} },
6382 .block_erase = spi_block_erase_c7,
6383 }
6384 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006385 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006386 .unlock = spi_disable_blockprotect,
6387 .write = spi_chip_write_256,
6388 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006389 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006390 },
6391
6392 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006393 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006394 .name = "GD25VQ21B",
6395 .bustype = BUS_SPI,
6396 .manufacture_id = GIGADEVICE_ID,
6397 .model_id = GIGADEVICE_GD25VQ21B,
6398 .total_size = 256,
6399 .page_size = 256,
6400 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6402 .tested = TEST_UNTESTED,
6403 .probe = probe_spi_rdid,
6404 .probe_timing = TIMING_ZERO,
6405 .block_erasers =
6406 {
6407 {
6408 .eraseblocks = { { 4 * 1024, 64} },
6409 .block_erase = spi_block_erase_20,
6410 }, {
6411 .eraseblocks = { { 32 * 1024, 8} },
6412 .block_erase = spi_block_erase_52,
6413 }, {
6414 .eraseblocks = { { 64 * 1024, 4} },
6415 .block_erase = spi_block_erase_d8,
6416 }, {
6417 .eraseblocks = { {256 * 1024, 1} },
6418 .block_erase = spi_block_erase_60,
6419 }, {
6420 .eraseblocks = { {256 * 1024, 1} },
6421 .block_erase = spi_block_erase_c7,
6422 }
6423 },
6424 .printlock = spi_prettyprint_status_register_bp4_srwd,
6425 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6426 .write = spi_chip_write_256,
6427 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6428 .voltage = {2300, 3600},
6429 },
6430
6431 {
6432 .vendor = "GigaDevice",
6433 .name = "GD25VQ40C",
6434 .bustype = BUS_SPI,
6435 .manufacture_id = GIGADEVICE_ID,
6436 .model_id = GIGADEVICE_GD25VQ41B,
6437 .total_size = 512,
6438 .page_size = 256,
6439 /* Supports SFDP */
6440 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6441 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6442 .tested = TEST_UNTESTED,
6443 .probe = probe_spi_rdid,
6444 .probe_timing = TIMING_ZERO,
6445 .block_erasers =
6446 {
6447 {
6448 .eraseblocks = { { 4 * 1024, 128} },
6449 .block_erase = spi_block_erase_20,
6450 }, {
6451 .eraseblocks = { { 32 * 1024, 16} },
6452 .block_erase = spi_block_erase_52,
6453 }, {
6454 .eraseblocks = { { 64 * 1024, 8} },
6455 .block_erase = spi_block_erase_d8,
6456 }, {
6457 .eraseblocks = { {512 * 1024, 1} },
6458 .block_erase = spi_block_erase_60,
6459 }, {
6460 .eraseblocks = { {512 * 1024, 1} },
6461 .block_erase = spi_block_erase_c7,
6462 }
6463 },
6464 .printlock = spi_prettyprint_status_register_bp4_srwd,
6465 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6466 .write = spi_chip_write_256,
6467 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6468 .voltage = {2300, 3600},
6469 },
6470
6471 {
6472 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006473 .name = "GD25VQ41B",
6474 .bustype = BUS_SPI,
6475 .manufacture_id = GIGADEVICE_ID,
6476 .model_id = GIGADEVICE_GD25VQ41B,
6477 .total_size = 512,
6478 .page_size = 256,
6479 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006481 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006482 .probe = probe_spi_rdid,
6483 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006484 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006485 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006486 {
6487 .eraseblocks = { { 4 * 1024, 128} },
6488 .block_erase = spi_block_erase_20,
6489 }, {
6490 .eraseblocks = { { 32 * 1024, 16} },
6491 .block_erase = spi_block_erase_52,
6492 }, {
6493 .eraseblocks = { { 64 * 1024, 8} },
6494 .block_erase = spi_block_erase_d8,
6495 }, {
6496 .eraseblocks = { {512 * 1024, 1} },
6497 .block_erase = spi_block_erase_60,
6498 }, {
6499 .eraseblocks = { {512 * 1024, 1} },
6500 .block_erase = spi_block_erase_c7,
6501 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006502 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006503 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006504 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6505 .write = spi_chip_write_256,
6506 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6507 .voltage = {2300, 3600},
6508 },
6509
6510 {
6511 .vendor = "GigaDevice",
6512 .name = "GD25VQ80C",
6513 .bustype = BUS_SPI,
6514 .manufacture_id = GIGADEVICE_ID,
6515 .model_id = GIGADEVICE_GD25VQ80C,
6516 .total_size = 1024,
6517 .page_size = 256,
6518 /* Supports SFDP */
6519 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6521 .tested = TEST_UNTESTED,
6522 .probe = probe_spi_rdid,
6523 .probe_timing = TIMING_ZERO,
6524 .block_erasers =
6525 {
6526 {
6527 .eraseblocks = { { 4 * 1024, 256} },
6528 .block_erase = spi_block_erase_20,
6529 }, {
6530 .eraseblocks = { { 32 * 1024, 32} },
6531 .block_erase = spi_block_erase_52,
6532 }, {
6533 .eraseblocks = { { 64 * 1024, 16} },
6534 .block_erase = spi_block_erase_d8,
6535 }, {
6536 .eraseblocks = { {1024 * 1024, 1} },
6537 .block_erase = spi_block_erase_60,
6538 }, {
6539 .eraseblocks = { {1024 * 1024, 1} },
6540 .block_erase = spi_block_erase_c7,
6541 }
6542 },
6543 .printlock = spi_prettyprint_status_register_bp4_srwd,
6544 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6545 .write = spi_chip_write_256,
6546 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6547 .voltage = {2300, 3600},
6548 },
6549
6550 {
6551 .vendor = "GigaDevice",
6552 .name = "GD25VQ16C",
6553 .bustype = BUS_SPI,
6554 .manufacture_id = GIGADEVICE_ID,
6555 .model_id = GIGADEVICE_GD25VQ16C,
6556 .total_size = 2 * 1024,
6557 .page_size = 256,
6558 /* Supports SFDP */
6559 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6560 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6561 .tested = TEST_UNTESTED,
6562 .probe = probe_spi_rdid,
6563 .probe_timing = TIMING_ZERO,
6564 .block_erasers =
6565 {
6566 {
6567 .eraseblocks = { { 4 * 1024, 512} },
6568 .block_erase = spi_block_erase_20,
6569 }, {
6570 .eraseblocks = { { 32 * 1024, 64} },
6571 .block_erase = spi_block_erase_52,
6572 }, {
6573 .eraseblocks = { { 64 * 1024, 32} },
6574 .block_erase = spi_block_erase_d8,
6575 }, {
6576 .eraseblocks = { {2 * 1024 * 1024, 1} },
6577 .block_erase = spi_block_erase_60,
6578 }, {
6579 .eraseblocks = { {2 * 1024 * 1024, 1} },
6580 .block_erase = spi_block_erase_c7,
6581 }
6582 },
6583 .printlock = spi_prettyprint_status_register_bp4_srwd,
6584 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006585 .write = spi_chip_write_256,
6586 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6587 .voltage = {2300, 3600},
6588 },
6589
6590 {
David Borgc96a8bd2010-06-21 16:12:22 +00006591 .vendor = "Hyundai",
6592 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006593 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006594 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006595 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006596 .total_size = 256,
6597 .page_size = 256 * 1024,
6598 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006599 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006600 .probe = probe_jedec,
6601 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6602 .block_erasers =
6603 {
6604 {
6605 .eraseblocks = {
6606 {64 * 1024, 3},
6607 {32 * 1024, 1},
6608 {8 * 1024, 2},
6609 {16 * 1024, 1},
6610 },
6611 .block_erase = erase_sector_jedec,
6612 }, {
6613 .eraseblocks = { {256 * 1024, 1} },
6614 .block_erase = erase_chip_block_jedec,
6615 },
6616 },
6617 .write = write_jedec_1,
6618 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006619 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006620 },
6621
6622 {
6623 .vendor = "Hyundai",
6624 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006625 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006626 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006627 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006628 .total_size = 256,
6629 .page_size = 256 * 1024,
6630 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6631 .tested = TEST_UNTESTED,
6632 .probe = probe_jedec,
6633 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6634 .block_erasers =
6635 {
6636 {
6637 .eraseblocks = {
6638 {16 * 1024, 1},
6639 {8 * 1024, 2},
6640 {32 * 1024, 1},
6641 {64 * 1024, 3},
6642 },
6643 .block_erase = erase_sector_jedec,
6644 }, {
6645 .eraseblocks = { {256 * 1024, 1} },
6646 .block_erase = erase_chip_block_jedec,
6647 },
6648 },
6649 .write = write_jedec_1,
6650 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006651 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006652 },
6653
6654 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006655 .vendor = "Hyundai",
6656 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006657 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006658 .manufacture_id = HYUNDAI_ID,
6659 .model_id = HYUNDAI_HY29F040A,
6660 .total_size = 512,
6661 .page_size = 64 * 1024,
6662 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6663 .tested = TEST_UNTESTED,
6664 .probe = probe_jedec,
6665 .probe_timing = TIMING_ZERO,
6666 .block_erasers =
6667 {
6668 {
6669 .eraseblocks = { {64 * 1024, 8} },
6670 .block_erase = erase_sector_jedec,
6671 }, {
6672 .eraseblocks = { {512 * 1024, 1} },
6673 .block_erase = erase_chip_block_jedec,
6674 },
6675 },
6676 .write = write_jedec_1,
6677 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006678 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006679 },
6680
6681 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006682 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006683 .name = "25F160S33B8",
6684 .bustype = BUS_SPI,
6685 .manufacture_id = INTEL_ID,
6686 .model_id = INTEL_25F160S33B8,
6687 .total_size = 2048,
6688 .page_size = 256,
6689 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6691 .tested = TEST_UNTESTED,
6692 .probe = probe_spi_rdid,
6693 .probe_timing = TIMING_ZERO,
6694 .block_erasers =
6695 {
6696 {
6697 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6698 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6699 * have no effect on the memory contents, but sets a flag in the SR.
6700 .eraseblocks = {
6701 {8 * 1024, 8},
6702 {64 * 1024, 31} // inaccessible
6703 },
6704 .block_erase = spi_block_erase_40,
6705 }, { */
6706 .eraseblocks = { {64 * 1024, 32} },
6707 .block_erase = spi_block_erase_d8,
6708 }, {
6709 .eraseblocks = { {2 * 1024 * 1024, 1} },
6710 .block_erase = spi_block_erase_c7,
6711 }
6712 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006713 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6714 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006715 .write = spi_chip_write_256,
6716 .read = spi_chip_read, /* also fast read 0x0B */
6717 .voltage = {2700, 3600},
6718 },
6719
6720 {
6721 .vendor = "Intel",
6722 .name = "25F160S33T8",
6723 .bustype = BUS_SPI,
6724 .manufacture_id = INTEL_ID,
6725 .model_id = INTEL_25F160S33T8,
6726 .total_size = 2048,
6727 .page_size = 256,
6728 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6730 .tested = TEST_UNTESTED,
6731 .probe = probe_spi_rdid,
6732 .probe_timing = TIMING_ZERO,
6733 .block_erasers =
6734 {
6735 {
6736 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6737 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6738 * have no effect on the memory contents, but sets a flag in the SR.
6739 .eraseblocks = {
6740 {64 * 1024, 31}, // inaccessible
6741 {8 * 1024, 8}
6742 },
6743 .block_erase = spi_block_erase_40,
6744 }, { */
6745 .eraseblocks = { {64 * 1024, 32} },
6746 .block_erase = spi_block_erase_d8,
6747 }, {
6748 .eraseblocks = { {2 * 1024 * 1024, 1} },
6749 .block_erase = spi_block_erase_c7,
6750 }
6751 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006752 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6753 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006754 .write = spi_chip_write_256,
6755 .read = spi_chip_read, /* also fast read 0x0B */
6756 .voltage = {2700, 3600},
6757 },
6758
6759 {
6760 .vendor = "Intel",
6761 .name = "25F320S33B8",
6762 .bustype = BUS_SPI,
6763 .manufacture_id = INTEL_ID,
6764 .model_id = INTEL_25F320S33B8,
6765 .total_size = 4096,
6766 .page_size = 256,
6767 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6768 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6769 .tested = TEST_UNTESTED,
6770 .probe = probe_spi_rdid,
6771 .probe_timing = TIMING_ZERO,
6772 .block_erasers =
6773 {
6774 {
6775 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6776 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6777 * have no effect on the memory contents, but sets a flag in the SR.
6778 .eraseblocks = {
6779 {8 * 1024, 8},
6780 {64 * 1024, 63} // inaccessible
6781 },
6782 .block_erase = spi_block_erase_40,
6783 }, { */
6784 .eraseblocks = { {64 * 1024, 64} },
6785 .block_erase = spi_block_erase_d8,
6786 }, {
6787 .eraseblocks = { {4 * 1024 * 1024, 1} },
6788 .block_erase = spi_block_erase_c7,
6789 }
6790 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006791 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6792 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006793 .write = spi_chip_write_256,
6794 .read = spi_chip_read, /* also fast read 0x0B */
6795 .voltage = {2700, 3600},
6796 },
6797
6798 {
6799 .vendor = "Intel",
6800 .name = "25F320S33T8",
6801 .bustype = BUS_SPI,
6802 .manufacture_id = INTEL_ID,
6803 .model_id = INTEL_25F320S33T8,
6804 .total_size = 4096,
6805 .page_size = 256,
6806 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6808 .tested = TEST_UNTESTED,
6809 .probe = probe_spi_rdid,
6810 .probe_timing = TIMING_ZERO,
6811 .block_erasers =
6812 {
6813 {
6814 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6815 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6816 * have no effect on the memory contents, but sets a flag in the SR.
6817 .eraseblocks = {
6818 {64 * 1024, 63}, // inaccessible
6819 {8 * 1024, 8}
6820 },
6821 .block_erase = spi_block_erase_40,
6822 }, { */
6823 .eraseblocks = { {64 * 1024, 64} },
6824 .block_erase = spi_block_erase_d8,
6825 }, {
6826 .eraseblocks = { {4 * 1024 * 1024, 1} },
6827 .block_erase = spi_block_erase_c7,
6828 }
6829 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006830 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6831 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006832 .write = spi_chip_write_256,
6833 .read = spi_chip_read, /* also fast read 0x0B */
6834 .voltage = {2700, 3600},
6835 },
6836
6837 {
6838 .vendor = "Intel",
6839 .name = "25F640S33B8",
6840 .bustype = BUS_SPI,
6841 .manufacture_id = INTEL_ID,
6842 .model_id = INTEL_25F640S33B8,
6843 .total_size = 8192,
6844 .page_size = 256,
6845 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6846 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6847 .tested = TEST_UNTESTED,
6848 .probe = probe_spi_rdid,
6849 .probe_timing = TIMING_ZERO,
6850 .block_erasers =
6851 {
6852 {
6853 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6854 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6855 * have no effect on the memory contents, but sets a flag in the SR.
6856 .eraseblocks = {
6857 {8 * 1024, 8},
6858 {64 * 1024, 127} // inaccessible
6859 },
6860 .block_erase = spi_block_erase_40,
6861 }, { */
6862 .eraseblocks = { {64 * 1024, 128} },
6863 .block_erase = spi_block_erase_d8,
6864 }, {
6865 .eraseblocks = { {8 * 1024 * 1024, 1} },
6866 .block_erase = spi_block_erase_c7,
6867 }
6868 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006869 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6870 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006871 .write = spi_chip_write_256,
6872 .read = spi_chip_read, /* also fast read 0x0B */
6873 .voltage = {2700, 3600},
6874 },
6875
6876 {
6877 .vendor = "Intel",
6878 .name = "25F640S33T8",
6879 .bustype = BUS_SPI,
6880 .manufacture_id = INTEL_ID,
6881 .model_id = INTEL_25F640S33T8,
6882 .total_size = 8192,
6883 .page_size = 256,
6884 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6886 .tested = TEST_UNTESTED,
6887 .probe = probe_spi_rdid,
6888 .probe_timing = TIMING_ZERO,
6889 .block_erasers =
6890 {
6891 {
6892 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6893 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6894 * have no effect on the memory contents, but sets a flag in the SR.
6895 .eraseblocks = {
6896 {64 * 1024, 127}, // inaccessible
6897 {8 * 1024, 8}
6898 },
6899 .block_erase = spi_block_erase_40,
6900 }, { */
6901 .eraseblocks = { {64 * 1024, 128} },
6902 .block_erase = spi_block_erase_d8,
6903 }, {
6904 .eraseblocks = { {8 * 1024 * 1024, 1} },
6905 .block_erase = spi_block_erase_c7,
6906 }
6907 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006908 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6909 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006910 .write = spi_chip_write_256,
6911 .read = spi_chip_read, /* also fast read 0x0B */
6912 .voltage = {2700, 3600},
6913 },
6914
6915 {
6916 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006917 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006918 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006919 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006920 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006921 .total_size = 128,
6922 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006923 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006924 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006925 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006926 .block_erasers =
6927 {
6928 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006929 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006930 {8 * 1024, 1},
6931 {4 * 1024, 2},
6932 {112 * 1024, 1},
6933 },
Sean Nelson28accc22010-03-19 18:47:06 +00006934 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006935 },
6936 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006937 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006938 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006939 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006940 },
6941
6942 {
6943 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006944 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006945 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006946 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006947 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006948 .total_size = 128,
6949 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006950 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006951 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006952 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006953 .block_erasers =
6954 {
6955 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006956 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006957 {112 * 1024, 1},
6958 {4 * 1024, 2},
6959 {8 * 1024, 1},
6960 },
Sean Nelson28accc22010-03-19 18:47:06 +00006961 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006962 },
6963 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006964 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006965 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006966 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006967 },
6968
6969 {
6970 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006971 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006972 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006973 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006974 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006975 .total_size = 256,
6976 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006977 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006978 .probe = probe_82802ab,
6979 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6980 .block_erasers =
6981 {
6982 {
6983 .eraseblocks = {
6984 {128 * 1024, 1},
6985 {96 * 1024, 1},
6986 {8 * 1024, 2},
6987 {16 * 1024, 1},
6988 },
6989 .block_erase = erase_block_82802ab,
6990 },
6991 },
6992 .write = write_82802ab,
6993 .read = read_memmapped,
6994 },
6995
6996 {
6997 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006998 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006999 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007000 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007001 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007002 .total_size = 512,
7003 .page_size = 256,
7004 .tested = TEST_UNTESTED,
7005 .probe = probe_82802ab,
7006 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007007 .block_erasers =
7008 {
7009 {
7010 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007011 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007012 },
7013 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007014 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007015 .write = write_82802ab,
7016 .read = read_memmapped,
7017 },
7018
7019 {
7020 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007021 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007022 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007023 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007024 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007025 .total_size = 512,
7026 .page_size = 128 * 1024, /* maximal block size */
7027 .tested = TEST_UNTESTED,
7028 .probe = probe_82802ab,
7029 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7030 .block_erasers =
7031 {
7032 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007033 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007034 {16 * 1024, 1},
7035 {8 * 1024, 2},
7036 {96 * 1024, 1},
7037 {128 * 1024, 3},
7038 },
7039 .block_erase = erase_block_82802ab,
7040 },
7041 },
7042 .write = write_82802ab,
7043 .read = read_memmapped,
7044 },
7045
7046 {
7047 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007048 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007049 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007050 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007051 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007052 .total_size = 512,
7053 .page_size = 128 * 1024, /* maximal block size */
7054 .tested = TEST_UNTESTED,
7055 .probe = probe_82802ab,
7056 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7057 .block_erasers =
7058 {
7059 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007060 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007061 {128 * 1024, 3},
7062 {96 * 1024, 1},
7063 {8 * 1024, 2},
7064 {16 * 1024, 1},
7065 },
7066 .block_erase = erase_block_82802ab,
7067 },
7068 },
7069 .write = write_82802ab,
7070 .read = read_memmapped,
7071 },
7072
7073 {
7074 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007075 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007076 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007077 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007078 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007079 .total_size = 512,
7080 .page_size = 128 * 1024, /* maximal block size */
7081 .feature_bits = FEATURE_ADDR_SHIFTED,
7082 .tested = TEST_UNTESTED,
7083 .probe = probe_82802ab,
7084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7085 .block_erasers =
7086 {
7087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007088 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007089 {16 * 1024, 1},
7090 {8 * 1024, 2},
7091 {96 * 1024, 1},
7092 {128 * 1024, 3},
7093 },
7094 .block_erase = erase_block_82802ab,
7095 },
7096 },
7097 .write = write_82802ab,
7098 .read = read_memmapped,
7099 },
7100
7101 {
7102 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007103 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007104 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007105 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007106 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007107 .total_size = 512,
7108 .page_size = 128 * 1024, /* maximal block size */
7109 .feature_bits = FEATURE_ADDR_SHIFTED,
7110 .tested = TEST_UNTESTED,
7111 .probe = probe_82802ab,
7112 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7113 .block_erasers =
7114 {
7115 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007116 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007117 {128 * 1024, 3},
7118 {96 * 1024, 1},
7119 {8 * 1024, 2},
7120 {16 * 1024, 1},
7121 },
7122 .block_erase = erase_block_82802ab,
7123 },
7124 },
7125 .write = write_82802ab,
7126 .read = read_memmapped,
7127 },
7128
7129 {
7130 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007131 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007132 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007133 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007134 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007135 .total_size = 512,
7136 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007137 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007138 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007139 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007140 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007141 .block_erasers =
7142 {
7143 {
7144 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007145 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007146 },
7147 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007148 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007149 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007151 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007152 },
7153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007154 {
7155 .vendor = "Intel",
7156 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007157 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007158 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007159 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007160 .total_size = 1024,
7161 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007162 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007163 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007164 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007165 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007166 .block_erasers =
7167 {
7168 {
7169 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007170 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007171 },
7172 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007173 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007174 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007176 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007177 },
7178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007179 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007180 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007181 .name = "IS25LP128",
7182 .bustype = BUS_SPI,
7183 .manufacture_id = ISSI_ID_SPI,
7184 .model_id = ISSI_IS25LP128,
7185 .total_size = 16384,
7186 .page_size = 256,
7187 /* OTP: 1024B total; read 0x48; write 0x42 */
7188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7189 .tested = TEST_OK_PREW,
7190 .probe = probe_spi_rdid,
7191 .probe_timing = TIMING_ZERO,
7192 .block_erasers =
7193 {
7194 {
7195 .eraseblocks = { {4 * 1024, 4096} },
7196 .block_erase = spi_block_erase_20,
7197 }, {
7198 .eraseblocks = { {4 * 1024, 4096} },
7199 .block_erase = spi_block_erase_d7,
7200 }, {
7201 .eraseblocks = { {32 * 1024, 512} },
7202 .block_erase = spi_block_erase_52,
7203 }, {
7204 .eraseblocks = { {64 * 1024, 256} },
7205 .block_erase = spi_block_erase_d8,
7206 }, {
7207 .eraseblocks = { {16 * 1024 * 1024, 1} },
7208 .block_erase = spi_block_erase_60,
7209 }, {
7210 .eraseblocks = { {16 * 1024 * 1024, 1} },
7211 .block_erase = spi_block_erase_c7,
7212 }
7213 },
7214 .unlock = spi_disable_blockprotect,
7215 .write = spi_chip_write_256,
7216 .read = spi_chip_read,
7217 .voltage = {2300, 3600},
7218 },
7219
7220 {
7221 .vendor = "ISSI",
7222 .name = "IS25WP128",
7223 .bustype = BUS_SPI,
7224 .manufacture_id = ISSI_ID_SPI,
7225 .model_id = ISSI_IS25WP128,
7226 .total_size = 16384,
7227 .page_size = 256,
7228 /* OTP: 1024B total; read 0x48; write 0x42 */
7229 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7230 .tested = TEST_OK_PREW,
7231 .probe = probe_spi_rdid,
7232 .probe_timing = TIMING_ZERO,
7233 .block_erasers =
7234 {
7235 {
7236 .eraseblocks = { {4 * 1024, 4096} },
7237 .block_erase = spi_block_erase_20,
7238 }, {
7239 .eraseblocks = { {4 * 1024, 4096} },
7240 .block_erase = spi_block_erase_d7,
7241 }, {
7242 .eraseblocks = { {32 * 1024, 512} },
7243 .block_erase = spi_block_erase_52,
7244 }, {
7245 .eraseblocks = { {64 * 1024, 256} },
7246 .block_erase = spi_block_erase_d8,
7247 }, {
7248 .eraseblocks = { {16 * 1024 * 1024, 1} },
7249 .block_erase = spi_block_erase_60,
7250 }, {
7251 .eraseblocks = { {16 * 1024 * 1024, 1} },
7252 .block_erase = spi_block_erase_c7,
7253 }
7254 },
7255 .unlock = spi_disable_blockprotect,
7256 .write = spi_chip_write_256,
7257 .read = spi_chip_read,
7258 .voltage = {1650, 1950},
7259 },
7260
7261 {
7262 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007263 .name = "IS29GL064B",
7264 .bustype = BUS_PARALLEL,
7265 .manufacture_id = ISSI_ID,
7266 .model_id = ISSI_PMC_IS29GL064B,
7267 .total_size = 8192,
7268 .page_size = 128 * 1024, /* actual page size is 16 */
7269 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7270 .tested = TEST_UNTESTED,
7271 .probe = probe_jedec_29gl,
7272 .probe_timing = TIMING_ZERO,
7273 .block_erasers =
7274 {
7275 {
7276 .eraseblocks = {
7277 {8 * 1024, 8},
7278 {64 * 1024, 127},
7279 },
7280 .block_erase = erase_sector_jedec,
7281 }, {
7282 .eraseblocks = { {8 * 1024 * 1024, 1} },
7283 .block_erase = erase_chip_block_jedec,
7284 },
7285 },
7286 .write = write_jedec_1,
7287 .read = read_memmapped,
7288 .voltage = {2700, 3600},
7289 },
7290
7291 {
7292 .vendor = "ISSI",
7293 .name = "IS29GL064T",
7294 .bustype = BUS_PARALLEL,
7295 .manufacture_id = ISSI_ID,
7296 .model_id = ISSI_PMC_IS29GL064T,
7297 .total_size = 8192,
7298 .page_size = 128 * 1024, /* actual page size is 16 */
7299 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7300 .tested = TEST_UNTESTED,
7301 .probe = probe_jedec_29gl,
7302 .probe_timing = TIMING_ZERO,
7303 .block_erasers =
7304 {
7305 {
7306 .eraseblocks = {
7307 {64 * 1024, 127},
7308 {8 * 1024, 8},
7309 },
7310 .block_erase = erase_sector_jedec,
7311 }, {
7312 .eraseblocks = { {8 * 1024 * 1024, 1} },
7313 .block_erase = erase_chip_block_jedec,
7314 },
7315 },
7316 .write = write_jedec_1,
7317 .read = read_memmapped,
7318 .voltage = {2700, 3600},
7319 },
7320
7321 {
7322 .vendor = "ISSI",
7323 .name = "IS29GL064H/L",
7324 .bustype = BUS_PARALLEL,
7325 .manufacture_id = ISSI_ID,
7326 .model_id = ISSI_PMC_IS29GL064HL,
7327 .total_size = 8192,
7328 .page_size = 128 * 1024, /* actual page size is 16 */
7329 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7330 .tested = TEST_UNTESTED,
7331 .probe = probe_jedec_29gl,
7332 .probe_timing = TIMING_ZERO,
7333 .block_erasers =
7334 {
7335 {
7336 .eraseblocks = { {64 * 1024, 128} },
7337 .block_erase = erase_sector_jedec,
7338 }, {
7339 .eraseblocks = { {8 * 1024 * 1024, 1} },
7340 .block_erase = erase_chip_block_jedec,
7341 },
7342 },
7343 .write = write_jedec_1,
7344 .read = read_memmapped,
7345 .voltage = {2700, 3600},
7346 },
7347
7348 {
7349 .vendor = "ISSI",
7350 .name = "IS29GL128H/L",
7351 .bustype = BUS_PARALLEL,
7352 .manufacture_id = ISSI_ID,
7353 .model_id = ISSI_PMC_IS29GL128HL,
7354 .total_size = 16384,
7355 .page_size = 128 * 1024, /* actual page size is 16 */
7356 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7357 .tested = TEST_UNTESTED,
7358 .probe = probe_jedec_29gl,
7359 .probe_timing = TIMING_ZERO,
7360 .block_erasers =
7361 {
7362 {
7363 .eraseblocks = { {128 * 1024, 128} },
7364 .block_erase = erase_sector_jedec,
7365 }, {
7366 .eraseblocks = { {16 * 1024 * 1024, 1} },
7367 .block_erase = erase_chip_block_jedec,
7368 },
7369 },
7370 .write = write_jedec_1,
7371 .read = read_memmapped,
7372 .voltage = {2700, 3600},
7373 },
7374
7375 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007376 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007377 .name = "MX23L1654",
7378 .bustype = BUS_SPI,
7379 .manufacture_id = MACRONIX_ID,
7380 .model_id = MACRONIX_MX23L1654,
7381 .total_size = 2048,
7382 .page_size = 256,
7383 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7384 .probe = probe_spi_rdid,
7385 .probe_timing = TIMING_ZERO,
7386 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7387 .read = spi_chip_read, /* Fast read (0x0B) supported */
7388 .voltage = {3000, 3600},
7389 },
7390
7391 {
7392 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007393 .name = "MX23L3254",
7394 .bustype = BUS_SPI,
7395 .manufacture_id = MACRONIX_ID,
7396 .model_id = MACRONIX_MX23L3254,
7397 .total_size = 4096,
7398 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007399 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007400 .probe = probe_spi_rdid,
7401 .probe_timing = TIMING_ZERO,
7402 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7403 .read = spi_chip_read, /* Fast read (0x0B) supported */
7404 .voltage = {3000, 3600},
7405 },
7406
7407 {
7408 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007409 .name = "MX23L6454",
7410 .bustype = BUS_SPI,
7411 .manufacture_id = MACRONIX_ID,
7412 .model_id = MACRONIX_MX23L6454,
7413 .total_size = 8192,
7414 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007415 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007416 .probe = probe_spi_rdid,
7417 .probe_timing = TIMING_ZERO,
7418 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7419 .read = spi_chip_read, /* Fast read (0x0B) supported */
7420 .voltage = {3000, 3600},
7421 },
7422
7423 {
7424 .vendor = "Macronix",
7425 .name = "MX23L12854",
7426 .bustype = BUS_SPI,
7427 .manufacture_id = MACRONIX_ID,
7428 .model_id = MACRONIX_MX23L12854,
7429 .total_size = 16384,
7430 .page_size = 256,
7431 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7432 .probe = probe_spi_rdid,
7433 .probe_timing = TIMING_ZERO,
7434 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7435 .read = spi_chip_read, /* Fast read (0x0B) supported */
7436 .voltage = {3000, 3600},
7437 },
7438
7439 {
7440 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007441 .name = "MX25L512(E)/MX25V512(C)",
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_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007445 .total_size = 64,
7446 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007447 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007448 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007449 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007450 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007451 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007452 .block_erasers =
7453 {
7454 {
7455 .eraseblocks = { {4 * 1024, 16} },
7456 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007457 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007458 .eraseblocks = { {64 * 1024, 1} },
7459 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007460 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007461 .eraseblocks = { {64 * 1024, 1} },
7462 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007463 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007464 .eraseblocks = { {64 * 1024, 1} },
7465 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007466 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007467 .eraseblocks = { {64 * 1024, 1} },
7468 .block_erase = spi_block_erase_c7,
7469 },
7470 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007471 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007472 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007473 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007474 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7475 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007476 },
7477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007478 {
7479 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007480 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007481 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007482 .manufacture_id = MACRONIX_ID,
7483 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007484 .total_size = 128,
7485 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007486 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007490 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007491 .block_erasers =
7492 {
7493 {
7494 .eraseblocks = { {4 * 1024, 32} },
7495 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007496 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007497 .eraseblocks = { {64 * 1024, 2} },
7498 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007499 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007500 .eraseblocks = { {128 * 1024, 1} },
7501 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007502 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007503 .eraseblocks = { {128 * 1024, 1} },
7504 .block_erase = spi_block_erase_c7,
7505 },
7506 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007507 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007508 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007509 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007510 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007512 },
7513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007514 {
7515 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007516 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007517 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007518 .manufacture_id = MACRONIX_ID,
7519 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007520 .total_size = 256,
7521 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007525 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007526 .block_erasers =
7527 {
7528 {
7529 .eraseblocks = { {4 * 1024, 64} },
7530 .block_erase = spi_block_erase_20,
7531 }, {
7532 .eraseblocks = { {64 * 1024, 4} },
7533 .block_erase = spi_block_erase_52,
7534 }, {
7535 .eraseblocks = { {64 * 1024, 4} },
7536 .block_erase = spi_block_erase_d8,
7537 }, {
7538 .eraseblocks = { {256 * 1024, 1} },
7539 .block_erase = spi_block_erase_60,
7540 }, {
7541 .eraseblocks = { {256 * 1024, 1} },
7542 .block_erase = spi_block_erase_c7,
7543 },
7544 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007545 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007547 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007548 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007550 },
7551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007552 {
7553 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007554 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007555 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007556 .manufacture_id = MACRONIX_ID,
7557 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007558 .total_size = 512,
7559 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007560 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007561 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007562 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007563 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007564 .block_erasers =
7565 {
7566 {
7567 .eraseblocks = { {4 * 1024, 128} },
7568 .block_erase = spi_block_erase_20,
7569 }, {
7570 .eraseblocks = { {64 * 1024, 8} },
7571 .block_erase = spi_block_erase_52,
7572 }, {
7573 .eraseblocks = { {64 * 1024, 8} },
7574 .block_erase = spi_block_erase_d8,
7575 }, {
7576 .eraseblocks = { {512 * 1024, 1} },
7577 .block_erase = spi_block_erase_60,
7578 }, {
7579 .eraseblocks = { {512 * 1024, 1} },
7580 .block_erase = spi_block_erase_c7,
7581 },
7582 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007583 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007585 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007586 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007587 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007588 },
7589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007590 {
7591 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007592 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007593 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007594 .manufacture_id = MACRONIX_ID,
7595 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 .total_size = 1024,
7597 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007598 /* MX25L8006E, MX25L8008E support SFDP */
7599 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007600 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007601 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007602 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007603 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007604 .block_erasers =
7605 {
7606 {
7607 .eraseblocks = { {4 * 1024, 256} },
7608 .block_erase = spi_block_erase_20,
7609 }, {
7610 .eraseblocks = { {64 * 1024, 16} },
7611 .block_erase = spi_block_erase_52,
7612 }, {
7613 .eraseblocks = { {64 * 1024, 16} },
7614 .block_erase = spi_block_erase_d8,
7615 }, {
7616 .eraseblocks = { {1024 * 1024, 1} },
7617 .block_erase = spi_block_erase_60,
7618 }, {
7619 .eraseblocks = { {1024 * 1024, 1} },
7620 .block_erase = spi_block_erase_c7,
7621 },
7622 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007623 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007624 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007625 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007626 .read = spi_chip_read, /* Fast read (0x0B) supported */
7627 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007628 },
7629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007630 {
7631 .vendor = "Macronix",
7632 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007633 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007634 .manufacture_id = MACRONIX_ID,
7635 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007636 .total_size = 2048,
7637 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007638 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007640 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007641 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007642 .block_erasers =
7643 {
7644 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007645 .eraseblocks = { {64 * 1024, 32} },
7646 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007647 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007648 .eraseblocks = { {64 * 1024, 32} },
7649 .block_erase = spi_block_erase_d8,
7650 }, {
7651 .eraseblocks = { {2 * 1024 * 1024, 1} },
7652 .block_erase = spi_block_erase_60,
7653 }, {
7654 .eraseblocks = { {2 * 1024 * 1024, 1} },
7655 .block_erase = spi_block_erase_c7,
7656 },
7657 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007658 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007659 .unlock = spi_disable_blockprotect,
7660 .write = spi_chip_write_256,
7661 .read = spi_chip_read, /* Fast read (0x0B) supported */
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007667 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007668 .bustype = BUS_SPI,
7669 .manufacture_id = MACRONIX_ID,
7670 .model_id = MACRONIX_MX25L1605,
7671 .total_size = 2048,
7672 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007673 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7675 .tested = TEST_OK_PREW,
7676 .probe = probe_spi_rdid,
7677 .probe_timing = TIMING_ZERO,
7678 .block_erasers =
7679 {
7680 {
7681 .eraseblocks = { {4 * 1024, 512} },
7682 .block_erase = spi_block_erase_20,
7683 }, {
7684 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007685 .block_erase = spi_block_erase_52,
7686 }, {
7687 .eraseblocks = { {64 * 1024, 32} },
7688 .block_erase = spi_block_erase_d8,
7689 }, {
7690 .eraseblocks = { {2 * 1024 * 1024, 1} },
7691 .block_erase = spi_block_erase_60,
7692 }, {
7693 .eraseblocks = { {2 * 1024 * 1024, 1} },
7694 .block_erase = spi_block_erase_c7,
7695 },
7696 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007697 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007698 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007699 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007700 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007701 .voltage = {2700, 3600},
7702 },
7703
7704 {
7705 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007706 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007707 .bustype = BUS_SPI,
7708 .manufacture_id = MACRONIX_ID,
7709 .model_id = MACRONIX_MX25L1605,
7710 .total_size = 2048,
7711 .page_size = 256,
7712 .feature_bits = FEATURE_WRSR_WREN,
7713 .tested = TEST_OK_PREW,
7714 .probe = probe_spi_rdid,
7715 .probe_timing = TIMING_ZERO,
7716 .block_erasers =
7717 {
7718 {
7719 .eraseblocks = { {4 * 1024, 512} },
7720 .block_erase = spi_block_erase_20,
7721 }, {
7722 .eraseblocks = { {64 * 1024, 32} },
7723 .block_erase = spi_block_erase_d8,
7724 }, {
7725 .eraseblocks = { {2 * 1024 * 1024, 1} },
7726 .block_erase = spi_block_erase_60,
7727 }, {
7728 .eraseblocks = { {2 * 1024 * 1024, 1} },
7729 .block_erase = spi_block_erase_c7,
7730 },
7731 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007732 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007733 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007734 .write = spi_chip_write_256,
7735 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007736 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007737 },
7738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007739 {
7740 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007741 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007742 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007743 .manufacture_id = MACRONIX_ID,
7744 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007745 .total_size = 2048,
7746 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007747 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7748 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007749 .tested = TEST_UNTESTED,
7750 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007751 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007752 .block_erasers =
7753 {
7754 {
7755 .eraseblocks = { {4 * 1024, 512} },
7756 .block_erase = spi_block_erase_20,
7757 }, {
7758 .eraseblocks = { {64 * 1024, 32} },
7759 .block_erase = spi_block_erase_d8,
7760 }, {
7761 .eraseblocks = { {2 * 1024 * 1024, 1} },
7762 .block_erase = spi_block_erase_60,
7763 }, {
7764 .eraseblocks = { {2 * 1024 * 1024, 1} },
7765 .block_erase = spi_block_erase_c7,
7766 }
7767 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007768 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007769 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007770 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007771 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007772 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007773 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007774
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007775 {
7776 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007777 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007778 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007779 .manufacture_id = MACRONIX_ID,
7780 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007781 .total_size = 2048,
7782 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007783 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7784 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007785 .tested = TEST_UNTESTED,
7786 .probe = probe_spi_rdid,
7787 .probe_timing = TIMING_ZERO,
7788 .block_erasers =
7789 {
7790 {
7791 .eraseblocks = { {4 * 1024, 512} },
7792 .block_erase = spi_block_erase_20,
7793 }, {
7794 .eraseblocks = { {64 * 1024, 32} },
7795 .block_erase = spi_block_erase_d8,
7796 }, {
7797 .eraseblocks = { {2 * 1024 * 1024, 1} },
7798 .block_erase = spi_block_erase_60,
7799 }, {
7800 .eraseblocks = { {2 * 1024 * 1024, 1} },
7801 .block_erase = spi_block_erase_c7,
7802 }
7803 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007804 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007805 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007806 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007807 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007808 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007809 },
7810
7811 {
7812 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007813 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007814 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007815 .manufacture_id = MACRONIX_ID,
7816 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007817 .total_size = 4096,
7818 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007819 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007820 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007821 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007822 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007823 .block_erasers =
7824 {
7825 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007826 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007827 .block_erase = spi_block_erase_20,
7828 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007829 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007830 .block_erase = spi_block_erase_d8,
7831 }, {
7832 .eraseblocks = { {4 * 1024 * 1024, 1} },
7833 .block_erase = spi_block_erase_60,
7834 }, {
7835 .eraseblocks = { {4 * 1024 * 1024, 1} },
7836 .block_erase = spi_block_erase_c7,
7837 },
7838 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007839 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007840 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007841 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007842 .read = spi_chip_read, /* Fast read (0x0B) supported */
7843 .voltage = {2700, 3600},
7844 },
7845
7846 {
7847 .vendor = "Macronix",
7848 .name = "MX25L3205D/MX25L3208D",
7849 .bustype = BUS_SPI,
7850 .manufacture_id = MACRONIX_ID,
7851 .model_id = MACRONIX_MX25L3205,
7852 .total_size = 4096,
7853 .page_size = 256,
7854 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7855 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7856 .tested = TEST_OK_PREW,
7857 .probe = probe_spi_rdid,
7858 .probe_timing = TIMING_ZERO,
7859 .block_erasers =
7860 {
7861 {
7862 .eraseblocks = { {4 * 1024, 1024} },
7863 .block_erase = spi_block_erase_20,
7864 }, {
7865 .eraseblocks = { {64 * 1024, 64} },
7866 .block_erase = spi_block_erase_d8,
7867 }, {
7868 .eraseblocks = { {4 * 1024 * 1024, 1} },
7869 .block_erase = spi_block_erase_60,
7870 }, {
7871 .eraseblocks = { {4 * 1024 * 1024, 1} },
7872 .block_erase = spi_block_erase_c7,
7873 },
7874 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007875 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007876 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007877 .write = spi_chip_write_256,
7878 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7879 .voltage = {2700, 3600},
7880 },
7881
7882 {
7883 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007884 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007885 .bustype = BUS_SPI,
7886 .manufacture_id = MACRONIX_ID,
7887 .model_id = MACRONIX_MX25L3205,
7888 .total_size = 4096,
7889 .page_size = 256,
7890 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7892 .tested = TEST_OK_PREW,
7893 .probe = probe_spi_rdid,
7894 .probe_timing = TIMING_ZERO,
7895 .block_erasers =
7896 {
7897 {
7898 .eraseblocks = { {4 * 1024, 1024} },
7899 .block_erase = spi_block_erase_20,
7900 }, {
7901 .eraseblocks = { {64 * 1024, 64} },
7902 .block_erase = spi_block_erase_d8,
7903 }, {
7904 .eraseblocks = { {64 * 1024, 64} },
7905 .block_erase = spi_block_erase_52,
7906 }, {
7907 .eraseblocks = { {4 * 1024 * 1024, 1} },
7908 .block_erase = spi_block_erase_60,
7909 }, {
7910 .eraseblocks = { {4 * 1024 * 1024, 1} },
7911 .block_erase = spi_block_erase_c7,
7912 },
7913 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007914 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007915 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007916 .write = spi_chip_write_256,
7917 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007918 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007919 },
7920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007921 {
7922 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007923 .name = "MX25L3273E",
7924 .bustype = BUS_SPI,
7925 .manufacture_id = MACRONIX_ID,
7926 .model_id = MACRONIX_MX25L3205,
7927 .total_size = 4096,
7928 .page_size = 256,
7929 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007931 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007932 .probe = probe_spi_rdid,
7933 .probe_timing = TIMING_ZERO,
7934 .block_erasers =
7935 {
7936 {
7937 .eraseblocks = { {4 * 1024, 1024} },
7938 .block_erase = spi_block_erase_20,
7939 }, {
7940 .eraseblocks = { {32 * 1024, 128} },
7941 .block_erase = spi_block_erase_52,
7942 }, {
7943 .eraseblocks = { {64 * 1024, 64} },
7944 .block_erase = spi_block_erase_d8,
7945 }, {
7946 .eraseblocks = { {4 * 1024 * 1024, 1} },
7947 .block_erase = spi_block_erase_60,
7948 }, {
7949 .eraseblocks = { {4 * 1024 * 1024, 1} },
7950 .block_erase = spi_block_erase_c7,
7951 },
7952 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007953 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007954 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007955 .write = spi_chip_write_256,
7956 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7957 .voltage = {2700, 3600},
7958 },
7959
7960 {
7961 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007962 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007963 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007964 .manufacture_id = MACRONIX_ID,
7965 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007966 .total_size = 4096,
7967 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007968 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7969 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007970 .tested = TEST_UNTESTED,
7971 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007972 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007973 .block_erasers =
7974 {
7975 {
7976 .eraseblocks = { {4 * 1024, 1024} },
7977 .block_erase = spi_block_erase_20,
7978 }, {
7979 .eraseblocks = { {64 * 1024, 64} },
7980 .block_erase = spi_block_erase_d8,
7981 }, {
7982 .eraseblocks = { {4 * 1024 * 1024, 1} },
7983 .block_erase = spi_block_erase_60,
7984 }, {
7985 .eraseblocks = { {4 * 1024 * 1024, 1} },
7986 .block_erase = spi_block_erase_c7,
7987 }
7988 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007989 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007990 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007991 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007992 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007993 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007994 },
7995
7996 {
7997 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007998 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007999 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008000 .manufacture_id = MACRONIX_ID,
8001 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008002 .total_size = 8192,
8003 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008004 /* Has an additional 512B EEPROM sector */
8005 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008006 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008007 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008008 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008009 .block_erasers =
8010 {
8011 {
8012 .eraseblocks = { {64 * 1024, 128} },
8013 .block_erase = spi_block_erase_20,
8014 }, {
8015 .eraseblocks = { {64 * 1024, 128} },
8016 .block_erase = spi_block_erase_d8,
8017 }, {
8018 .eraseblocks = { {8 * 1024 * 1024, 1} },
8019 .block_erase = spi_block_erase_60,
8020 }, {
8021 .eraseblocks = { {8 * 1024 * 1024, 1} },
8022 .block_erase = spi_block_erase_c7,
8023 }
8024 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008025 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008026 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008027 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008028 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008029 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008030 },
8031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008032 {
8033 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008034 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008035 .bustype = BUS_SPI,
8036 .manufacture_id = MACRONIX_ID,
8037 .model_id = MACRONIX_MX25L6405,
8038 .total_size = 8192,
8039 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008040 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008041 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8042 .tested = TEST_OK_PREW,
8043 .probe = probe_spi_rdid,
8044 .probe_timing = TIMING_ZERO,
8045 .block_erasers =
8046 {
8047 {
8048 .eraseblocks = { {4 * 1024, 2048} },
8049 .block_erase = spi_block_erase_20,
8050 }, {
8051 .eraseblocks = { {64 * 1024, 128} },
8052 .block_erase = spi_block_erase_d8,
8053 }, {
8054 .eraseblocks = { {8 * 1024 * 1024, 1} },
8055 .block_erase = spi_block_erase_60,
8056 }, {
8057 .eraseblocks = { {8 * 1024 * 1024, 1} },
8058 .block_erase = spi_block_erase_c7,
8059 }
8060 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008061 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008062 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008063 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008064 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008065 .voltage = {2700, 3600},
8066 },
8067
8068 {
8069 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008070 .name = "MX25L6406E/MX25L6408E",
8071 .bustype = BUS_SPI,
8072 .manufacture_id = MACRONIX_ID,
8073 .model_id = MACRONIX_MX25L6405,
8074 .total_size = 8192,
8075 .page_size = 256,
8076 /* MX25L6406E supports SFDP */
8077 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8079 .tested = TEST_OK_PREW,
8080 .probe = probe_spi_rdid,
8081 .probe_timing = TIMING_ZERO,
8082 .block_erasers =
8083 {
8084 {
8085 .eraseblocks = { {4 * 1024, 2048} },
8086 .block_erase = spi_block_erase_20,
8087 }, {
8088 .eraseblocks = { {64 * 1024, 128} },
8089 .block_erase = spi_block_erase_52,
8090 }, {
8091 .eraseblocks = { {64 * 1024, 128} },
8092 .block_erase = spi_block_erase_d8,
8093 }, {
8094 .eraseblocks = { {8 * 1024 * 1024, 1} },
8095 .block_erase = spi_block_erase_60,
8096 }, {
8097 .eraseblocks = { {8 * 1024 * 1024, 1} },
8098 .block_erase = spi_block_erase_c7,
8099 }
8100 },
8101 .printlock = spi_prettyprint_status_register_bp3_srwd,
8102 .unlock = spi_disable_blockprotect_bp3_srwd,
8103 .write = spi_chip_write_256,
8104 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8105 .voltage = {2700, 3600},
8106 },
8107
8108 {
8109 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008110 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008111 .bustype = BUS_SPI,
8112 .manufacture_id = MACRONIX_ID,
8113 .model_id = MACRONIX_MX25L6405,
8114 .total_size = 8192,
8115 .page_size = 256,
8116 /* supports SFDP */
8117 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8119 .tested = TEST_OK_PREW,
8120 .probe = probe_spi_rdid,
8121 .probe_timing = TIMING_ZERO,
8122 .block_erasers =
8123 {
8124 {
8125 .eraseblocks = { {4 * 1024, 2048} },
8126 .block_erase = spi_block_erase_20,
8127 }, {
8128 .eraseblocks = { {32 * 1024, 256} },
8129 .block_erase = spi_block_erase_52,
8130 }, {
8131 .eraseblocks = { {64 * 1024, 128} },
8132 .block_erase = spi_block_erase_d8,
8133 }, {
8134 .eraseblocks = { {8 * 1024 * 1024, 1} },
8135 .block_erase = spi_block_erase_60,
8136 }, {
8137 .eraseblocks = { {8 * 1024 * 1024, 1} },
8138 .block_erase = spi_block_erase_c7,
8139 }
8140 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008141 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008142 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008143 .write = spi_chip_write_256,
8144 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8145 .voltage = {2700, 3600},
8146 },
8147
8148 {
8149 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008150 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008151 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008152 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008153 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008154 .total_size = 16384,
8155 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008156 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008158 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008159 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008160 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008161 .block_erasers =
8162 {
8163 {
8164 .eraseblocks = { {4 * 1024, 4096} },
8165 .block_erase = spi_block_erase_20,
8166 }, {
8167 .eraseblocks = { {64 * 1024, 256} },
8168 .block_erase = spi_block_erase_d8,
8169 }, {
8170 .eraseblocks = { {16 * 1024 * 1024, 1} },
8171 .block_erase = spi_block_erase_60,
8172 }, {
8173 .eraseblocks = { {16 * 1024 * 1024, 1} },
8174 .block_erase = spi_block_erase_c7,
8175 }
8176 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008177 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008178 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008179 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008180 .read = spi_chip_read, /* Fast read (0x0B) supported */
8181 .voltage = {2700, 3600},
8182 },
8183
8184 {
8185 .vendor = "Macronix",
8186 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8187 .bustype = BUS_SPI,
8188 .manufacture_id = MACRONIX_ID,
8189 .model_id = MACRONIX_MX25L12805D,
8190 .total_size = 16384,
8191 .page_size = 256,
8192 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8194 .tested = TEST_OK_PREW,
8195 .probe = probe_spi_rdid,
8196 .probe_timing = TIMING_ZERO,
8197 .block_erasers =
8198 {
8199 {
8200 .eraseblocks = { {4 * 1024, 4096} },
8201 .block_erase = spi_block_erase_20,
8202 }, {
8203 .eraseblocks = { {32 * 1024, 512} },
8204 .block_erase = spi_block_erase_52,
8205 }, {
8206 .eraseblocks = { {64 * 1024, 256} },
8207 .block_erase = spi_block_erase_d8,
8208 }, {
8209 .eraseblocks = { {16 * 1024 * 1024, 1} },
8210 .block_erase = spi_block_erase_60,
8211 }, {
8212 .eraseblocks = { {16 * 1024 * 1024, 1} },
8213 .block_erase = spi_block_erase_c7,
8214 }
8215 },
8216 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8217 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8218 .unlock = spi_disable_blockprotect_bp3_srwd,
8219 .write = spi_chip_write_256,
8220 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008221 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008222 },
8223
8224 {
8225 .vendor = "Macronix",
Nico Huberaac81422017-11-10 22:54:13 +01008226 .name = "MX25L25635F",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008227 .bustype = BUS_SPI,
8228 .manufacture_id = MACRONIX_ID,
8229 .model_id = MACRONIX_MX25L25635F,
8230 .total_size = 32768,
8231 .page_size = 256,
8232 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8234 .tested = TEST_UNTESTED,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008235 .probe = probe_spi_rdid,
8236 .probe_timing = TIMING_ZERO,
8237 .block_erasers =
8238 {
8239 {
8240 .eraseblocks = { {4 * 1024, 8192} },
Nico Huberaac81422017-11-10 22:54:13 +01008241 .block_erase = spi_block_erase_21,
8242 }, {
8243 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008244 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008245 }, {
8246 .eraseblocks = { {32 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008247 .block_erase = spi_block_erase_5c,
8248 }, {
8249 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008250 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008251 }, {
8252 .eraseblocks = { {64 * 1024, 512} },
Nico Huberaac81422017-11-10 22:54:13 +01008253 .block_erase = spi_block_erase_dc,
8254 }, {
8255 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008256 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008257 }, {
8258 .eraseblocks = { {32 * 1024 * 1024, 1} },
8259 .block_erase = spi_block_erase_60,
8260 }, {
8261 .eraseblocks = { {32 * 1024 * 1024, 1} },
8262 .block_erase = spi_block_erase_c7,
8263 }
8264 },
8265 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8266 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8267 .unlock = spi_disable_blockprotect_bp3_srwd,
8268 .write = spi_chip_write_256,
8269 .read = spi_chip_read, /* Fast read (0x0B) supported */
8270 .voltage = {2700, 3600},
8271 },
8272
8273 {
8274 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008275 .name = "MX66L51235F",
8276 .bustype = BUS_SPI,
8277 .manufacture_id = MACRONIX_ID,
8278 .model_id = MACRONIX_MX66L51235F,
8279 .total_size = 65536,
8280 .page_size = 256,
8281 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8283 .tested = TEST_UNTESTED,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008284 .probe = probe_spi_rdid,
8285 .probe_timing = TIMING_ZERO,
8286 .block_erasers =
8287 {
8288 {
8289 .eraseblocks = { {4 * 1024, 16384} },
Nico Huberaac81422017-11-10 22:54:13 +01008290 .block_erase = spi_block_erase_21,
8291 }, {
8292 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008293 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008294 }, {
8295 .eraseblocks = { {32 * 1024, 2048} },
Nico Huberaac81422017-11-10 22:54:13 +01008296 .block_erase = spi_block_erase_5c,
8297 }, {
8298 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008299 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008300 }, {
8301 .eraseblocks = { {64 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008302 .block_erase = spi_block_erase_dc,
8303 }, {
8304 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008305 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008306 }, {
8307 .eraseblocks = { {64 * 1024 * 1024, 1} },
8308 .block_erase = spi_block_erase_60,
8309 }, {
8310 .eraseblocks = { {64 * 1024 * 1024, 1} },
8311 .block_erase = spi_block_erase_c7,
8312 }
8313 },
8314 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8315 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8316 .unlock = spi_disable_blockprotect_bp3_srwd,
8317 .write = spi_chip_write_256,
8318 .read = spi_chip_read, /* Fast read (0x0B) supported */
8319 .voltage = {2700, 3600},
8320 },
8321
8322 {
8323 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008324 .name = "MX25U1635E",
8325 .bustype = BUS_SPI,
8326 .manufacture_id = MACRONIX_ID,
8327 .model_id = MACRONIX_MX25U1635E,
8328 .total_size = 2048,
8329 .page_size = 256,
8330 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8331 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008333 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008334 .probe = probe_spi_rdid,
8335 .probe_timing = TIMING_ZERO,
8336 .block_erasers =
8337 {
8338 {
8339 .eraseblocks = { {4 * 1024, 512} },
8340 .block_erase = spi_block_erase_20,
8341 }, {
8342 .eraseblocks = { {32 * 1024, 64} },
8343 .block_erase = spi_block_erase_52,
8344 }, {
8345 .eraseblocks = { {64 * 1024, 32} },
8346 .block_erase = spi_block_erase_d8,
8347 }, {
8348 .eraseblocks = { {2 * 1024 * 1024, 1} },
8349 .block_erase = spi_block_erase_60,
8350 }, {
8351 .eraseblocks = { {2 * 1024 * 1024, 1} },
8352 .block_erase = spi_block_erase_c7,
8353 }
8354 },
8355 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008356 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008357 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008358 .write = spi_chip_write_256,
8359 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8360 .voltage = {1650, 2000},
8361 },
8362
8363 {
8364 .vendor = "Macronix",
8365 .name = "MX25U3235E/F",
8366 .bustype = BUS_SPI,
8367 .manufacture_id = MACRONIX_ID,
8368 .model_id = MACRONIX_MX25U3235E,
8369 .total_size = 4096,
8370 .page_size = 256,
8371 /* F model supports SFDP */
8372 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8373 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8375 .tested = TEST_OK_PREW,
8376 .probe = probe_spi_rdid,
8377 .probe_timing = TIMING_ZERO,
8378 .block_erasers =
8379 {
8380 {
8381 .eraseblocks = { {4 * 1024, 1024} },
8382 .block_erase = spi_block_erase_20,
8383 }, {
8384 .eraseblocks = { {32 * 1024, 128} },
8385 .block_erase = spi_block_erase_52,
8386 }, {
8387 .eraseblocks = { {64 * 1024, 64} },
8388 .block_erase = spi_block_erase_d8,
8389 }, {
8390 .eraseblocks = { {4 * 1024 * 1024, 1} },
8391 .block_erase = spi_block_erase_60,
8392 }, {
8393 .eraseblocks = { {4 * 1024 * 1024, 1} },
8394 .block_erase = spi_block_erase_c7,
8395 }
8396 },
8397 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008398 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008399 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008400 .write = spi_chip_write_256,
8401 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8402 .voltage = {1650, 2000},
8403 },
8404
8405 {
8406 .vendor = "Macronix",
8407 .name = "MX25U6435E/F",
8408 .bustype = BUS_SPI,
8409 .manufacture_id = MACRONIX_ID,
8410 .model_id = MACRONIX_MX25U6435E,
8411 .total_size = 8192,
8412 .page_size = 256,
8413 /* F model supports SFDP */
8414 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8415 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8416 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008417 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008418 .probe = probe_spi_rdid,
8419 .probe_timing = TIMING_ZERO,
8420 .block_erasers =
8421 {
8422 {
8423 .eraseblocks = { {4 * 1024, 2048} },
8424 .block_erase = spi_block_erase_20,
8425 }, {
8426 .eraseblocks = { {32 * 1024, 256} },
8427 .block_erase = spi_block_erase_52,
8428 }, {
8429 .eraseblocks = { {64 * 1024, 128} },
8430 .block_erase = spi_block_erase_d8,
8431 }, {
8432 .eraseblocks = { {8 * 1024 * 1024, 1} },
8433 .block_erase = spi_block_erase_60,
8434 }, {
8435 .eraseblocks = { {8 * 1024 * 1024, 1} },
8436 .block_erase = spi_block_erase_c7,
8437 }
8438 },
8439 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008440 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008441 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008442 .write = spi_chip_write_256,
8443 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8444 .voltage = {1650, 2000},
8445 },
8446
8447 {
8448 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008449 .name = "MX25U12835F",
8450 .bustype = BUS_SPI,
8451 .manufacture_id = MACRONIX_ID,
8452 .model_id = MACRONIX_MX25U12835E,
8453 .total_size = 16384,
8454 .page_size = 256,
8455 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8456 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8457 .tested = TEST_UNTESTED,
8458 .probe = probe_spi_rdid,
8459 .probe_timing = TIMING_ZERO,
8460 .block_erasers =
8461 {
8462 {
8463 .eraseblocks = { {4 * 1024, 4096} },
8464 .block_erase = spi_block_erase_20,
8465 }, {
8466 .eraseblocks = { {32 * 1024, 512} },
8467 .block_erase = spi_block_erase_52,
8468 }, {
8469 .eraseblocks = { {64 * 1024, 256} },
8470 .block_erase = spi_block_erase_d8,
8471 }, {
8472 .eraseblocks = { {16 * 1024 * 1024, 1} },
8473 .block_erase = spi_block_erase_60,
8474 }, {
8475 .eraseblocks = { {16 * 1024 * 1024, 1} },
8476 .block_erase = spi_block_erase_c7,
8477 }
8478 },
8479 /* TODO: security register */
8480 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8481 .unlock = spi_disable_blockprotect_bp3_srwd,
8482 .write = spi_chip_write_256, /* Multi I/O supported */
8483 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8484 .voltage = {1650, 2000},
8485 },
8486
8487 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008488 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008489 .name = "MX25L6495F",
8490 .bustype = BUS_SPI,
8491 .manufacture_id = MACRONIX_ID,
8492 .model_id = MACRONIX_MX25L6495F,
8493 .total_size = 8192,
8494 .page_size = 256,
8495 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8496 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8497 .tested = TEST_OK_PREW,
8498 .probe = probe_spi_rdid,
8499 .probe_timing = TIMING_ZERO,
8500 .block_erasers =
8501 {
8502 {
8503 .eraseblocks = { {4 * 1024, 2048} },
8504 .block_erase = spi_block_erase_20,
8505 }, {
8506 .eraseblocks = { {64 * 1024, 128} },
8507 .block_erase = spi_block_erase_d8,
8508 }, {
8509 .eraseblocks = { {32 * 1024, 256} },
8510 .block_erase = spi_block_erase_52,
8511 }, {
8512 .eraseblocks = { {8 * 1024 * 1024, 1} },
8513 .block_erase = spi_block_erase_60,
8514 }, {
8515 .eraseblocks = { {8 * 1024 * 1024, 1} },
8516 .block_erase = spi_block_erase_c7,
8517 }
8518 },
8519 .unlock = spi_disable_blockprotect,
8520 .write = spi_chip_write_256,
8521 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8522 .voltage = {2700, 3600},
8523 },
8524
8525 {
Martin Roth440057a2014-07-13 00:05:07 +00008526 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008527 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008528 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008529 .manufacture_id = MACRONIX_ID,
8530 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008531 .total_size = 128,
8532 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008533 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8534 .tested = TEST_UNTESTED,
8535 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008536 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008537 .block_erasers =
8538 {
8539 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008540 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008541 {8 * 1024, 1},
8542 {4 * 1024, 2},
8543 {8 * 1024, 2},
8544 {32 * 1024, 1},
8545 {64 * 1024, 1},
8546 },
Sean Nelson35727f72010-01-28 23:55:12 +00008547 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008548 }, {
8549 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008550 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008551 }
8552 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008553 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008555 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008556 },
8557
8558 {
8559 .vendor = "Macronix",
8560 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008561 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008562 .manufacture_id = MACRONIX_ID,
8563 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008564 .total_size = 128,
8565 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008566 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008567 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008568 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008569 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008570 .block_erasers =
8571 {
8572 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008573 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008574 {64 * 1024, 1},
8575 {32 * 1024, 1},
8576 {8 * 1024, 2},
8577 {4 * 1024, 2},
8578 {8 * 1024, 1},
8579 },
Sean Nelson35727f72010-01-28 23:55:12 +00008580 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008581 }, {
8582 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008583 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008584 }
8585 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008586 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008587 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008588 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008589 },
8590
8591 {
8592 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008593 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008594 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008595 .manufacture_id = MACRONIX_ID,
8596 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008597 .total_size = 256,
8598 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008599 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008600 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008601 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008602 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008603 .block_erasers =
8604 {
8605 {
8606 .eraseblocks = {
8607 {16 * 1024, 1},
8608 {8 * 1024, 2},
8609 {32 * 1024, 1},
8610 {64 * 1024, 3},
8611 },
Sean Nelson35727f72010-01-28 23:55:12 +00008612 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008613 }, {
8614 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008615 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008616 },
8617 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008618 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008619 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008620 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008621 },
8622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008623 {
8624 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008625 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008626 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008627 .manufacture_id = MACRONIX_ID,
8628 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008629 .total_size = 256,
8630 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008631 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008632 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008633 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008634 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008635 .block_erasers =
8636 {
8637 {
8638 .eraseblocks = {
8639 {64 * 1024, 3},
8640 {32 * 1024, 1},
8641 {8 * 1024, 2},
8642 {16 * 1024, 1},
8643 },
Sean Nelson35727f72010-01-28 23:55:12 +00008644 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008645 }, {
8646 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008647 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008648 },
8649 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008650 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008651 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008652 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008653 },
8654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008655 {
8656 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008657 .name = "MX29F022(N)B",
8658 .bustype = BUS_PARALLEL,
8659 .manufacture_id = MACRONIX_ID,
8660 .model_id = MACRONIX_MX29F022B,
8661 .total_size = 256,
8662 .page_size = 0, /* unused */
8663 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8664 .tested = TEST_UNTESTED,
8665 .probe = probe_jedec,
8666 .probe_timing = TIMING_ZERO,
8667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = {
8671 {16 * 1024, 1},
8672 {8 * 1024, 2},
8673 {32 * 1024, 1},
8674 {64 * 1024, 3},
8675 },
8676 .block_erase = erase_sector_jedec,
8677 }, {
8678 .eraseblocks = { {256 * 1024, 1} },
8679 .block_erase = erase_chip_block_jedec,
8680 }
8681 },
8682 .write = write_jedec_1,
8683 .read = read_memmapped,
8684 .voltage = {4500, 5500},
8685 },
8686
8687 {
8688 .vendor = "Macronix",
8689 .name = "MX29F022(N)T",
8690 .bustype = BUS_PARALLEL,
8691 .manufacture_id = MACRONIX_ID,
8692 .model_id = MACRONIX_MX29F022T,
8693 .total_size = 256,
8694 .page_size = 0, /* unused */
8695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8696 .tested = TEST_OK_PREW,
8697 .probe = probe_jedec,
8698 .probe_timing = TIMING_ZERO,
8699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = {
8703 {64 * 1024, 3},
8704 {32 * 1024, 1},
8705 {8 * 1024, 2},
8706 {16 * 1024, 1},
8707 },
8708 .block_erase = erase_sector_jedec,
8709 }, {
8710 .eraseblocks = { {256 * 1024, 1} },
8711 .block_erase = erase_chip_block_jedec,
8712 }
8713 },
8714 .write = write_jedec_1,
8715 .read = read_memmapped,
8716 .voltage = {4500, 5500},
8717 },
8718
8719 {
8720 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008721 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008722 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008723 .manufacture_id = MACRONIX_ID,
8724 .model_id = MACRONIX_MX29F040,
8725 .total_size = 512,
8726 .page_size = 64 * 1024,
8727 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8728 .tested = TEST_UNTESTED,
8729 .probe = probe_jedec,
8730 .probe_timing = TIMING_ZERO,
8731 .block_erasers =
8732 {
8733 {
8734 .eraseblocks = { {64 * 1024, 8} },
8735 .block_erase = erase_sector_jedec,
8736 }, {
8737 .eraseblocks = { {512 * 1024, 1} },
8738 .block_erase = erase_chip_block_jedec,
8739 },
8740 },
8741 .write = write_jedec_1,
8742 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008743 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008744 },
8745
8746 {
8747 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008748 .name = "MX29GL320EB",
8749 .bustype = BUS_PARALLEL,
8750 .manufacture_id = MACRONIX_ID,
8751 .model_id = MACRONIX_MX29GL320EB,
8752 .total_size = 4096,
8753 .page_size = 128 * 1024, /* actual page size is 16 */
8754 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8755 .tested = TEST_UNTESTED,
8756 .probe = probe_jedec_29gl,
8757 .probe_timing = TIMING_ZERO,
8758 .block_erasers =
8759 {
8760 {
8761 .eraseblocks = {
8762 {8 * 1024, 8},
8763 {64 * 1024, 63},
8764 },
8765 .block_erase = erase_sector_jedec,
8766 }, {
8767 .eraseblocks = { {4 * 1024 * 1024, 1} },
8768 .block_erase = erase_chip_block_jedec,
8769 },
8770 },
8771 .write = write_jedec_1,
8772 .read = read_memmapped,
8773 .voltage = {2700, 3600},
8774 },
8775
8776 {
8777 .vendor = "Macronix",
8778 .name = "MX29GL320ET",
8779 .bustype = BUS_PARALLEL,
8780 .manufacture_id = MACRONIX_ID,
8781 .model_id = MACRONIX_MX29GL320ET,
8782 .total_size = 4096,
8783 .page_size = 128 * 1024, /* actual page size is 16 */
8784 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8785 .tested = TEST_UNTESTED,
8786 .probe = probe_jedec_29gl,
8787 .probe_timing = TIMING_ZERO,
8788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = {
8792 {64 * 1024, 63},
8793 {8 * 1024, 8},
8794 },
8795 .block_erase = erase_sector_jedec,
8796 }, {
8797 .eraseblocks = { {4 * 1024 * 1024, 1} },
8798 .block_erase = erase_chip_block_jedec,
8799 },
8800 },
8801 .write = write_jedec_1,
8802 .read = read_memmapped,
8803 .voltage = {2700, 3600},
8804 },
8805
8806 {
8807 .vendor = "Macronix",
8808 .name = "MX29GL320EH/L",
8809 .bustype = BUS_PARALLEL,
8810 .manufacture_id = MACRONIX_ID,
8811 .model_id = MACRONIX_MX29GL320EHL,
8812 .total_size = 4096,
8813 .page_size = 128 * 1024, /* actual page size is 16 */
8814 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8815 .tested = TEST_UNTESTED,
8816 .probe = probe_jedec_29gl,
8817 .probe_timing = TIMING_ZERO,
8818 .block_erasers =
8819 {
8820 {
8821 .eraseblocks = { {64 * 1024, 64} },
8822 .block_erase = erase_sector_jedec,
8823 }, {
8824 .eraseblocks = { {4 * 1024 * 1024, 1} },
8825 .block_erase = erase_chip_block_jedec,
8826 },
8827 },
8828 .write = write_jedec_1,
8829 .read = read_memmapped,
8830 .voltage = {2700, 3600},
8831 },
8832
8833 {
8834 .vendor = "Macronix",
8835 .name = "MX29GL640EB",
8836 .bustype = BUS_PARALLEL,
8837 .manufacture_id = MACRONIX_ID,
8838 .model_id = MACRONIX_MX29GL640EB,
8839 .total_size = 8192,
8840 .page_size = 128 * 1024, /* actual page size is 16 */
8841 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8842 .tested = TEST_UNTESTED,
8843 .probe = probe_jedec_29gl,
8844 .probe_timing = TIMING_ZERO,
8845 .block_erasers =
8846 {
8847 {
8848 .eraseblocks = {
8849 {8 * 1024, 8},
8850 {64 * 1024, 127},
8851 },
8852 .block_erase = erase_sector_jedec,
8853 }, {
8854 .eraseblocks = { {8 * 1024 * 1024, 1} },
8855 .block_erase = erase_chip_block_jedec,
8856 },
8857 },
8858 .write = write_jedec_1,
8859 .read = read_memmapped,
8860 .voltage = {2700, 3600},
8861 },
8862
8863 {
8864 .vendor = "Macronix",
8865 .name = "MX29GL640ET",
8866 .bustype = BUS_PARALLEL,
8867 .manufacture_id = MACRONIX_ID,
8868 .model_id = MACRONIX_MX29GL640ET,
8869 .total_size = 8192,
8870 .page_size = 128 * 1024, /* actual page size is 16 */
8871 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8872 .tested = TEST_UNTESTED,
8873 .probe = probe_jedec_29gl,
8874 .probe_timing = TIMING_ZERO,
8875 .block_erasers =
8876 {
8877 {
8878 .eraseblocks = {
8879 {64 * 1024, 127},
8880 {8 * 1024, 8},
8881 },
8882 .block_erase = erase_sector_jedec,
8883 }, {
8884 .eraseblocks = { {8 * 1024 * 1024, 1} },
8885 .block_erase = erase_chip_block_jedec,
8886 },
8887 },
8888 .write = write_jedec_1,
8889 .read = read_memmapped,
8890 .voltage = {2700, 3600},
8891 },
8892
8893 {
8894 .vendor = "Macronix",
8895 .name = "MX29GL640EH/L",
8896 .bustype = BUS_PARALLEL,
8897 .manufacture_id = MACRONIX_ID,
8898 .model_id = MACRONIX_MX29GL640EHL,
8899 .total_size = 8192,
8900 .page_size = 128 * 1024, /* actual page size is 16 */
8901 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8902 .tested = TEST_UNTESTED,
8903 .probe = probe_jedec_29gl,
8904 .probe_timing = TIMING_ZERO,
8905 .block_erasers =
8906 {
8907 {
8908 .eraseblocks = { {64 * 1024, 128} },
8909 .block_erase = erase_sector_jedec,
8910 }, {
8911 .eraseblocks = { {8 * 1024 * 1024, 1} },
8912 .block_erase = erase_chip_block_jedec,
8913 },
8914 },
8915 .write = write_jedec_1,
8916 .read = read_memmapped,
8917 .voltage = {2700, 3600},
8918 },
8919
8920 {
8921 .vendor = "Macronix",
8922 .name = "MX29GL128F",
8923 .bustype = BUS_PARALLEL,
8924 .manufacture_id = MACRONIX_ID,
8925 .model_id = MACRONIX_MX29GL128F,
8926 .total_size = 16384,
8927 .page_size = 128 * 1024, /* actual page size is 16 */
8928 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8929 .tested = TEST_UNTESTED,
8930 .probe = probe_jedec_29gl,
8931 .probe_timing = TIMING_ZERO,
8932 .block_erasers =
8933 {
8934 {
8935 .eraseblocks = { {128 * 1024, 128} },
8936 .block_erase = erase_sector_jedec,
8937 }, {
8938 .eraseblocks = { {16 * 1024 * 1024, 1} },
8939 .block_erase = erase_chip_block_jedec,
8940 },
8941 },
8942 .write = write_jedec_1,
8943 .read = read_memmapped,
8944 .voltage = {2700, 3600},
8945 },
8946
8947 {
8948 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008949 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008950 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008951 .manufacture_id = MACRONIX_ID,
8952 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008953 .total_size = 512,
8954 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008955 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8956 .tested = TEST_UNTESTED,
8957 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008958 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008959 .block_erasers =
8960 {
8961 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008962 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008963 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008964 }, {
8965 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008966 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008967 },
8968 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008969 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008971 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008972 },
8973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008974 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008975 .vendor = "Micron/Numonyx/ST",
8976 .name = "M25P05-A",
8977 .bustype = BUS_SPI,
8978 .manufacture_id = ST_ID,
8979 .model_id = ST_M25P05A,
8980 .total_size = 64,
8981 .page_size = 256,
8982 .feature_bits = FEATURE_WRSR_WREN,
8983 .tested = TEST_OK_PREW,
8984 .probe = probe_spi_rdid,
8985 .probe_timing = TIMING_ZERO,
8986 .block_erasers =
8987 {
8988 {
8989 .eraseblocks = { {32 * 1024, 2} },
8990 .block_erase = spi_block_erase_d8,
8991 }, {
8992 .eraseblocks = { {64 * 1024, 1} },
8993 .block_erase = spi_block_erase_c7,
8994 }
8995 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008996 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008997 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008998 .write = spi_chip_write_256,
8999 .read = spi_chip_read,
9000 .voltage = {2700, 3600},
9001 },
9002
9003 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9004 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9005 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9006 * only is successful if RDID does not work.
9007 */
9008 {
9009 .vendor = "Micron/Numonyx/ST",
9010 .name = "M25P05",
9011 .bustype = BUS_SPI,
9012 .manufacture_id = 0, /* Not used. */
9013 .model_id = ST_M25P05_RES,
9014 .total_size = 64,
9015 .page_size = 256,
9016 .feature_bits = FEATURE_WRSR_WREN,
9017 .tested = TEST_UNTESTED,
9018 .probe = probe_spi_res1,
9019 .probe_timing = TIMING_ZERO,
9020 .block_erasers =
9021 {
9022 {
9023 .eraseblocks = { {32 * 1024, 2} },
9024 .block_erase = spi_block_erase_d8,
9025 }, {
9026 .eraseblocks = { {64 * 1024, 1} },
9027 .block_erase = spi_block_erase_c7,
9028 }
9029 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009030 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009031 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009032 .write = spi_chip_write_1, /* 128 */
9033 .read = spi_chip_read,
9034 .voltage = {2700, 3600},
9035 },
9036
9037 {
9038 .vendor = "Micron/Numonyx/ST",
9039 .name = "M25P10-A",
9040 .bustype = BUS_SPI,
9041 .manufacture_id = ST_ID,
9042 .model_id = ST_M25P10A,
9043 .total_size = 128,
9044 .page_size = 256,
9045 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009046 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009047 .probe = probe_spi_rdid,
9048 .probe_timing = TIMING_ZERO,
9049 .block_erasers =
9050 {
9051 {
9052 .eraseblocks = { {32 * 1024, 4} },
9053 .block_erase = spi_block_erase_d8,
9054 }, {
9055 .eraseblocks = { {128 * 1024, 1} },
9056 .block_erase = spi_block_erase_c7,
9057 }
9058 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009059 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009060 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009061 .write = spi_chip_write_256,
9062 .read = spi_chip_read,
9063 .voltage = {2700, 3600},
9064 },
9065
9066 /* The ST M25P10 has the same problem as the M25P05. */
9067 {
9068 .vendor = "Micron/Numonyx/ST",
9069 .name = "M25P10",
9070 .bustype = BUS_SPI,
9071 .manufacture_id = 0, /* Not used. */
9072 .model_id = ST_M25P10_RES,
9073 .total_size = 128,
9074 .page_size = 256,
9075 .feature_bits = FEATURE_WRSR_WREN,
9076 .tested = TEST_UNTESTED,
9077 .probe = probe_spi_res1,
9078 .probe_timing = TIMING_ZERO,
9079 .block_erasers =
9080 {
9081 {
9082 .eraseblocks = { {32 * 1024, 4} },
9083 .block_erase = spi_block_erase_d8,
9084 }, {
9085 .eraseblocks = { {128 * 1024, 1} },
9086 .block_erase = spi_block_erase_c7,
9087 }
9088 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009089 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009090 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009091 .write = spi_chip_write_1, /* 128 */
9092 .read = spi_chip_read,
9093 .voltage = {2700, 3600},
9094 },
9095
9096 {
9097 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9098 .name = "M25P20",
9099 .bustype = BUS_SPI,
9100 .manufacture_id = ST_ID,
9101 .model_id = ST_M25P20,
9102 .total_size = 256,
9103 .page_size = 256,
9104 .feature_bits = FEATURE_WRSR_WREN,
9105 .tested = TEST_UNTESTED,
9106 .probe = probe_spi_rdid,
9107 .probe_timing = TIMING_ZERO,
9108 .block_erasers =
9109 {
9110 {
9111 .eraseblocks = { {64 * 1024, 4} },
9112 .block_erase = spi_block_erase_d8,
9113 }, {
9114 .eraseblocks = { {256 * 1024, 1} },
9115 .block_erase = spi_block_erase_c7,
9116 }
9117 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009118 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009119 .unlock = spi_disable_blockprotect,
9120 .write = spi_chip_write_256,
9121 .read = spi_chip_read, /* Fast read (0x0B) supported */
9122 .voltage = {2700, 3600},
9123 },
9124
9125 {
9126 .vendor = "Micron/Numonyx/ST",
9127 .name = "M25P20-old",
9128 .bustype = BUS_SPI,
9129 .manufacture_id = 0, /* Not used. */
9130 .model_id = ST_M25P20_RES,
9131 .total_size = 256,
9132 .page_size = 256,
9133 .feature_bits = FEATURE_WRSR_WREN,
9134 .tested = TEST_OK_PREW,
9135 .probe = probe_spi_res1,
9136 .probe_timing = TIMING_ZERO,
9137 .block_erasers =
9138 {
9139 {
9140 .eraseblocks = { {64 * 1024, 4} },
9141 .block_erase = spi_block_erase_d8,
9142 }, {
9143 .eraseblocks = { {256 * 1024, 1} },
9144 .block_erase = spi_block_erase_c7,
9145 }
9146 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009147 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009148 .unlock = spi_disable_blockprotect,
9149 .write = spi_chip_write_256,
9150 .read = spi_chip_read, /* Fast read (0x0B) supported */
9151 .voltage = {2700, 3600},
9152 },
9153
9154 {
9155 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9156 .name = "M25P40",
9157 .bustype = BUS_SPI,
9158 .manufacture_id = ST_ID,
9159 .model_id = ST_M25P40,
9160 .total_size = 512,
9161 .page_size = 256,
9162 .feature_bits = FEATURE_WRSR_WREN,
9163 .tested = TEST_OK_PREW,
9164 .probe = probe_spi_rdid,
9165 .probe_timing = TIMING_ZERO,
9166 .block_erasers =
9167 {
9168 {
9169 .eraseblocks = { {64 * 1024, 8} },
9170 .block_erase = spi_block_erase_d8,
9171 }, {
9172 .eraseblocks = { {512 * 1024, 1} },
9173 .block_erase = spi_block_erase_c7,
9174 }
9175 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009176 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009177 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009178 .write = spi_chip_write_256,
9179 .read = spi_chip_read,
9180 .voltage = {2700, 3600},
9181 },
9182
9183 {
9184 .vendor = "Micron/Numonyx/ST",
9185 .name = "M25P40-old",
9186 .bustype = BUS_SPI,
9187 .manufacture_id = 0, /* Not used. */
9188 .model_id = ST_M25P40_RES,
9189 .total_size = 512,
9190 .page_size = 256,
9191 .feature_bits = FEATURE_WRSR_WREN,
9192 .tested = TEST_UNTESTED,
9193 .probe = probe_spi_res1,
9194 .probe_timing = TIMING_ZERO,
9195 .block_erasers =
9196 {
9197 {
9198 .eraseblocks = { {64 * 1024, 8} },
9199 .block_erase = spi_block_erase_d8,
9200 }, {
9201 .eraseblocks = { {512 * 1024, 1} },
9202 .block_erase = spi_block_erase_c7,
9203 }
9204 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009205 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009206 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009207 .write = spi_chip_write_256,
9208 .read = spi_chip_read,
9209 },
9210
9211 {
9212 .vendor = "Micron/Numonyx/ST",
9213 .name = "M25P80",
9214 .bustype = BUS_SPI,
9215 .manufacture_id = ST_ID,
9216 .model_id = ST_M25P80,
9217 .total_size = 1024,
9218 .page_size = 256,
9219 .feature_bits = FEATURE_WRSR_WREN,
9220 .tested = TEST_OK_PREW,
9221 .probe = probe_spi_rdid,
9222 .probe_timing = TIMING_ZERO,
9223 .block_erasers =
9224 {
9225 {
9226 .eraseblocks = { {64 * 1024, 16} },
9227 .block_erase = spi_block_erase_d8,
9228 }, {
9229 .eraseblocks = { {1024 * 1024, 1} },
9230 .block_erase = spi_block_erase_c7,
9231 }
9232 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009233 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009234 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009235 .write = spi_chip_write_256,
9236 .read = spi_chip_read,
9237 .voltage = {2700, 3600},
9238 },
9239
9240 {
9241 .vendor = "Micron/Numonyx/ST",
9242 .name = "M25P16",
9243 .bustype = BUS_SPI,
9244 .manufacture_id = ST_ID,
9245 .model_id = ST_M25P16,
9246 .total_size = 2048,
9247 .page_size = 256,
9248 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009249 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009250 .probe = probe_spi_rdid,
9251 .probe_timing = TIMING_ZERO,
9252 .block_erasers =
9253 {
9254 {
9255 .eraseblocks = { {64 * 1024, 32} },
9256 .block_erase = spi_block_erase_d8,
9257 }, {
9258 .eraseblocks = { {2 * 1024 * 1024, 1} },
9259 .block_erase = spi_block_erase_c7,
9260 }
9261 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009262 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009263 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009264 .write = spi_chip_write_256,
9265 .read = spi_chip_read,
9266 .voltage = {2700, 3600},
9267 },
9268
9269 {
9270 .vendor = "Micron/Numonyx/ST",
9271 .name = "M25P32",
9272 .bustype = BUS_SPI,
9273 .manufacture_id = ST_ID,
9274 .model_id = ST_M25P32,
9275 .total_size = 4096,
9276 .page_size = 256,
9277 .feature_bits = FEATURE_WRSR_WREN,
9278 .tested = TEST_OK_PREW,
9279 .probe = probe_spi_rdid,
9280 .probe_timing = TIMING_ZERO,
9281 .block_erasers =
9282 {
9283 {
9284 .eraseblocks = { {64 * 1024, 64} },
9285 .block_erase = spi_block_erase_d8,
9286 }, {
9287 .eraseblocks = { {4 * 1024 * 1024, 1} },
9288 .block_erase = spi_block_erase_c7,
9289 }
9290 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009291 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009292 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009293 .write = spi_chip_write_256,
9294 .read = spi_chip_read,
9295 .voltage = {2700, 3600},
9296 },
9297
9298 {
9299 .vendor = "Micron/Numonyx/ST",
9300 .name = "M25P64",
9301 .bustype = BUS_SPI,
9302 .manufacture_id = ST_ID,
9303 .model_id = ST_M25P64,
9304 .total_size = 8192,
9305 .page_size = 256,
9306 .feature_bits = FEATURE_WRSR_WREN,
9307 .tested = TEST_OK_PREW,
9308 .probe = probe_spi_rdid,
9309 .probe_timing = TIMING_ZERO,
9310 .block_erasers =
9311 {
9312 {
9313 .eraseblocks = { {64 * 1024, 128} },
9314 .block_erase = spi_block_erase_d8,
9315 }, {
9316 .eraseblocks = { {8 * 1024 * 1024, 1} },
9317 .block_erase = spi_block_erase_c7,
9318 }
9319 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009320 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009321 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009322 .write = spi_chip_write_256,
9323 .read = spi_chip_read,
9324 .voltage = {2700, 3600},
9325 },
9326
9327 {
9328 .vendor = "Micron/Numonyx/ST",
9329 .name = "M25P128",
9330 .bustype = BUS_SPI,
9331 .manufacture_id = ST_ID,
9332 .model_id = ST_M25P128,
9333 .total_size = 16384,
9334 .page_size = 256,
9335 .feature_bits = FEATURE_WRSR_WREN,
9336 .tested = TEST_OK_PREW,
9337 .probe = probe_spi_rdid,
9338 .probe_timing = TIMING_ZERO,
9339 .block_erasers =
9340 {
9341 {
9342 .eraseblocks = { {256 * 1024, 64} },
9343 .block_erase = spi_block_erase_d8,
9344 }, {
9345 .eraseblocks = { {16 * 1024 * 1024, 1} },
9346 .block_erase = spi_block_erase_c7,
9347 }
9348 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009349 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009350 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009351 .write = spi_chip_write_256,
9352 .read = spi_chip_read,
9353 .voltage = {2700, 3600},
9354 },
9355
9356 {
9357 .vendor = "Micron/Numonyx/ST",
9358 .name = "M25PE10",
9359 .bustype = BUS_SPI,
9360 .manufacture_id = ST_ID,
9361 .model_id = ST_M25PE10,
9362 .total_size = 128,
9363 .page_size = 256,
9364 .feature_bits = FEATURE_WRSR_WREN,
9365 .tested = TEST_UNTESTED,
9366 .probe = probe_spi_rdid,
9367 .probe_timing = TIMING_ZERO,
9368 .block_erasers =
9369 {
9370 {
9371 .eraseblocks = { {4 * 1024, 32} },
9372 .block_erase = spi_block_erase_20,
9373 }, {
9374 .eraseblocks = { {64 * 1024, 2} },
9375 .block_erase = spi_block_erase_d8,
9376 }, {
9377 .eraseblocks = { {128 * 1024, 1} },
9378 .block_erase = spi_block_erase_c7,
9379 }
9380 },
9381 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9382 .unlock = spi_disable_blockprotect,
9383 .write = spi_chip_write_256,
9384 .read = spi_chip_read,
9385 .voltage = {2700, 3600},
9386 },
9387
9388 {
9389 .vendor = "Micron/Numonyx/ST",
9390 .name = "M25PE20",
9391 .bustype = BUS_SPI,
9392 .manufacture_id = ST_ID,
9393 .model_id = ST_M25PE20,
9394 .total_size = 256,
9395 .page_size = 256,
9396 .feature_bits = FEATURE_WRSR_WREN,
9397 .tested = TEST_UNTESTED,
9398 .probe = probe_spi_rdid,
9399 .probe_timing = TIMING_ZERO,
9400 .block_erasers =
9401 {
9402 {
9403 .eraseblocks = { {4 * 1024, 64} },
9404 .block_erase = spi_block_erase_20,
9405 }, {
9406 .eraseblocks = { {64 * 1024, 4} },
9407 .block_erase = spi_block_erase_d8,
9408 }, {
9409 .eraseblocks = { {256 * 1024, 1} },
9410 .block_erase = spi_block_erase_c7,
9411 }
9412 },
9413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9414 .unlock = spi_disable_blockprotect,
9415 .write = spi_chip_write_256,
9416 .read = spi_chip_read,
9417 .voltage = {2700, 3600},
9418 },
9419
9420 {
9421 .vendor = "Micron/Numonyx/ST",
9422 .name = "M25PE40",
9423 .bustype = BUS_SPI,
9424 .manufacture_id = ST_ID,
9425 .model_id = ST_M25PE40,
9426 .total_size = 512,
9427 .page_size = 256,
9428 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009429 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009430 .probe = probe_spi_rdid,
9431 .probe_timing = TIMING_ZERO,
9432 .block_erasers =
9433 {
9434 {
9435 .eraseblocks = { {4 * 1024, 128} },
9436 .block_erase = spi_block_erase_20,
9437 }, {
9438 .eraseblocks = { {64 * 1024, 8} },
9439 .block_erase = spi_block_erase_d8,
9440 }, {
9441 .eraseblocks = { {512 * 1024, 1} },
9442 .block_erase = spi_block_erase_c7,
9443 }
9444 },
9445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9446 .unlock = spi_disable_blockprotect,
9447 .write = spi_chip_write_256,
9448 .read = spi_chip_read,
9449 .voltage = {2700, 3600},
9450 },
9451
9452 {
9453 .vendor = "Micron/Numonyx/ST",
9454 .name = "M25PE80",
9455 .bustype = BUS_SPI,
9456 .manufacture_id = ST_ID,
9457 .model_id = ST_M25PE80,
9458 .total_size = 1024,
9459 .page_size = 256,
9460 .feature_bits = FEATURE_WRSR_WREN,
9461 .tested = TEST_OK_PREW,
9462 .probe = probe_spi_rdid,
9463 .probe_timing = TIMING_ZERO,
9464 .block_erasers =
9465 {
9466 {
9467 .eraseblocks = { {4 * 1024, 256} },
9468 .block_erase = spi_block_erase_20,
9469 }, {
9470 .eraseblocks = { {64 * 1024, 16} },
9471 .block_erase = spi_block_erase_d8,
9472 }, {
9473 .eraseblocks = { {1024 * 1024, 1} },
9474 .block_erase = spi_block_erase_c7,
9475 }
9476 },
9477 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9478 .unlock = spi_disable_blockprotect,
9479 .write = spi_chip_write_256,
9480 .read = spi_chip_read,
9481 .voltage = {2700, 3600},
9482 },
9483
9484 {
9485 .vendor = "Micron/Numonyx/ST",
9486 .name = "M25PE16",
9487 .bustype = BUS_SPI,
9488 .manufacture_id = ST_ID,
9489 .model_id = ST_M25PE16,
9490 .total_size = 2048,
9491 .page_size = 256,
9492 .feature_bits = FEATURE_WRSR_WREN,
9493 .tested = TEST_UNTESTED,
9494 .probe = probe_spi_rdid,
9495 .probe_timing = TIMING_ZERO,
9496 .block_erasers =
9497 {
9498 {
9499 .eraseblocks = { {4 * 1024, 512} },
9500 .block_erase = spi_block_erase_20,
9501 }, {
9502 .eraseblocks = { {64 * 1024, 32} },
9503 .block_erase = spi_block_erase_d8,
9504 }, {
9505 .eraseblocks = { {2 * 1024 * 1024, 1} },
9506 .block_erase = spi_block_erase_c7,
9507 }
9508 },
9509 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9510 .unlock = spi_disable_blockprotect,
9511 .write = spi_chip_write_256,
9512 .read = spi_chip_read,
9513 .voltage = {2700, 3600},
9514 },
9515
9516 {
9517 .vendor = "Micron/Numonyx/ST",
9518 .name = "M25PX80",
9519 .bustype = BUS_SPI,
9520 .manufacture_id = ST_ID,
9521 .model_id = ST_M25PX80,
9522 .total_size = 1024,
9523 .page_size = 256,
9524 /* OTP: 64B total; read 0x4B, write 0x42 */
9525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9526 .tested = TEST_OK_PREW,
9527 .probe = probe_spi_rdid,
9528 .probe_timing = TIMING_ZERO,
9529 .block_erasers = {
9530 {
9531 .eraseblocks = { { 4 * 1024, 256 } },
9532 .block_erase = spi_block_erase_20,
9533 }, {
9534 .eraseblocks = { {64 * 1024, 16} },
9535 .block_erase = spi_block_erase_d8,
9536 }, {
9537 .eraseblocks = { {1024 * 1024, 1} },
9538 .block_erase = spi_block_erase_c7,
9539 }
9540 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009541 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009542 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9543 .write = spi_chip_write_256,
9544 .read = spi_chip_read,
9545 .voltage = {2700, 3600},
9546 },
9547
9548 {
9549 .vendor = "Micron/Numonyx/ST",
9550 .name = "M25PX16",
9551 .bustype = BUS_SPI,
9552 .manufacture_id = ST_ID,
9553 .model_id = ST_M25PX16,
9554 .total_size = 2048,
9555 .page_size = 256,
9556 /* OTP: 64B total; read 0x4B; write 0x42 */
9557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9558 .tested = TEST_OK_PREW,
9559 .probe = probe_spi_rdid,
9560 .probe_timing = TIMING_ZERO,
9561 .block_erasers =
9562 {
9563 {
9564 .eraseblocks = { { 4 * 1024, 512 } },
9565 .block_erase = spi_block_erase_20,
9566 }, {
9567 .eraseblocks = { {64 * 1024, 32} },
9568 .block_erase = spi_block_erase_d8,
9569 }, {
9570 .eraseblocks = { {2 * 1024 * 1024, 1} },
9571 .block_erase = spi_block_erase_c7,
9572 }
9573 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009574 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009575 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9576 .write = spi_chip_write_256,
9577 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009578 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009579 },
9580
9581 {
9582 .vendor = "Micron/Numonyx/ST",
9583 .name = "M25PX32",
9584 .bustype = BUS_SPI,
9585 .manufacture_id = ST_ID,
9586 .model_id = ST_M25PX32,
9587 .total_size = 4096,
9588 .page_size = 256,
9589 /* OTP: 64B total; read 0x4B; write 0x42 */
9590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9591 .tested = TEST_OK_PRE,
9592 .probe = probe_spi_rdid,
9593 .probe_timing = TIMING_ZERO,
9594 .block_erasers =
9595 {
9596 {
9597 .eraseblocks = { { 4 * 1024, 1024 } },
9598 .block_erase = spi_block_erase_20,
9599 }, {
9600 .eraseblocks = { {64 * 1024, 64} },
9601 .block_erase = spi_block_erase_d8,
9602 }, {
9603 .eraseblocks = { {4 * 1024 * 1024, 1} },
9604 .block_erase = spi_block_erase_c7,
9605 }
9606 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009607 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009608 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9609 .write = spi_chip_write_256,
9610 .read = spi_chip_read,
9611 .voltage = {2700, 3600},
9612 },
9613
9614 {
9615 .vendor = "Micron/Numonyx/ST",
9616 .name = "M25PX64",
9617 .bustype = BUS_SPI,
9618 .manufacture_id = ST_ID,
9619 .model_id = ST_M25PX64,
9620 .total_size = 8192,
9621 .page_size = 256,
9622 /* OTP: 64B total; read 0x4B; write 0x42 */
9623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009624 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009625 .probe = probe_spi_rdid,
9626 .probe_timing = TIMING_ZERO,
9627 .block_erasers =
9628 {
9629 {
9630 .eraseblocks = { { 4 * 1024, 2048 } },
9631 .block_erase = spi_block_erase_20,
9632 }, {
9633 .eraseblocks = { {64 * 1024, 128} },
9634 .block_erase = spi_block_erase_d8,
9635 }, {
9636 .eraseblocks = { {8 * 1024 * 1024, 1} },
9637 .block_erase = spi_block_erase_c7,
9638 }
9639 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009640 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009641 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9642 .write = spi_chip_write_256,
9643 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009644 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009645 },
9646
9647 {
9648 .vendor = "Micron/Numonyx/ST",
9649 .name = "M45PE10",
9650 .bustype = BUS_SPI,
9651 .manufacture_id = ST_ID,
9652 .model_id = ST_M45PE10,
9653 .total_size = 128,
9654 .page_size = 256,
9655 .tested = TEST_UNTESTED,
9656 .probe = probe_spi_rdid,
9657 .probe_timing = TIMING_ZERO,
9658 .block_erasers = {
9659 {
9660 .eraseblocks = { {256, 512} },
9661 .block_erase = spi_block_erase_db,
9662 }, {
9663 .eraseblocks = { {64 * 1024, 2} },
9664 .block_erase = spi_block_erase_d8,
9665 }
9666 },
9667 .printlock = spi_prettyprint_status_register_default_welwip,
9668 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9669 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9670 .read = spi_chip_read, /* Fast read (0x0B) supported */
9671 .voltage = {2700, 3600},
9672 },
9673
9674 {
9675 .vendor = "Micron/Numonyx/ST",
9676 .name = "M45PE20",
9677 .bustype = BUS_SPI,
9678 .manufacture_id = ST_ID,
9679 .model_id = ST_M45PE20,
9680 .total_size = 256,
9681 .page_size = 256,
9682 .tested = TEST_UNTESTED,
9683 .probe = probe_spi_rdid,
9684 .probe_timing = TIMING_ZERO,
9685 .block_erasers = {
9686 {
9687 .eraseblocks = { {256, 1024} },
9688 .block_erase = spi_block_erase_db,
9689 }, {
9690 .eraseblocks = { {64 * 1024, 4} },
9691 .block_erase = spi_block_erase_d8,
9692 }
9693 },
9694 .printlock = spi_prettyprint_status_register_default_welwip,
9695 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9696 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9697 .read = spi_chip_read, /* Fast read (0x0B) supported */
9698 .voltage = {2700, 3600},
9699 },
9700
9701 {
9702 .vendor = "Micron/Numonyx/ST",
9703 .name = "M45PE40",
9704 .bustype = BUS_SPI,
9705 .manufacture_id = ST_ID,
9706 .model_id = ST_M45PE40,
9707 .total_size = 512,
9708 .page_size = 256,
9709 .tested = TEST_UNTESTED,
9710 .probe = probe_spi_rdid,
9711 .probe_timing = TIMING_ZERO,
9712 .block_erasers = {
9713 {
9714 .eraseblocks = { {256, 2048} },
9715 .block_erase = spi_block_erase_db,
9716 }, {
9717 .eraseblocks = { {64 * 1024, 8} },
9718 .block_erase = spi_block_erase_d8,
9719 }
9720 },
9721 .printlock = spi_prettyprint_status_register_default_welwip,
9722 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009723 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009724 .read = spi_chip_read, /* Fast read (0x0B) supported */
9725 .voltage = {2700, 3600},
9726 },
9727
9728 {
9729 .vendor = "Micron/Numonyx/ST",
9730 .name = "M45PE80",
9731 .bustype = BUS_SPI,
9732 .manufacture_id = ST_ID,
9733 .model_id = ST_M45PE80,
9734 .total_size = 1024,
9735 .page_size = 256,
9736 .tested = TEST_UNTESTED,
9737 .probe = probe_spi_rdid,
9738 .probe_timing = TIMING_ZERO,
9739 .block_erasers = {
9740 {
9741 .eraseblocks = { {256, 4096} },
9742 .block_erase = spi_block_erase_db,
9743 }, {
9744 .eraseblocks = { {64 * 1024, 16} },
9745 .block_erase = spi_block_erase_d8,
9746 }
9747 },
9748 .printlock = spi_prettyprint_status_register_default_welwip,
9749 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9750 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9751 .read = spi_chip_read, /* Fast read (0x0B) supported */
9752 .voltage = {2700, 3600},
9753 },
9754
9755 {
9756 .vendor = "Micron/Numonyx/ST",
9757 .name = "M45PE16",
9758 .bustype = BUS_SPI,
9759 .manufacture_id = ST_ID,
9760 .model_id = ST_M45PE16,
9761 .total_size = 2048,
9762 .page_size = 256,
9763 .tested = TEST_UNTESTED,
9764 .probe = probe_spi_rdid,
9765 .probe_timing = TIMING_ZERO,
9766 .block_erasers = {
9767 {
9768 .eraseblocks = { {256, 8192} },
9769 .block_erase = spi_block_erase_db,
9770 }, {
9771 .eraseblocks = { {64 * 1024, 32} },
9772 .block_erase = spi_block_erase_d8,
9773 }
9774 },
9775 .printlock = spi_prettyprint_status_register_default_welwip,
9776 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9777 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9778 .read = spi_chip_read, /* Fast read (0x0B) supported */
9779 .voltage = {2700, 3600},
9780 },
9781
9782 {
9783 .vendor = "Micron/Numonyx/ST",
9784 .name = "N25Q016",
9785 .bustype = BUS_SPI,
9786 .manufacture_id = ST_ID,
9787 .model_id = ST_N25Q016__1E,
9788 .total_size = 2048,
9789 .page_size = 256,
9790 /* supports SFDP */
9791 /* OTP: 64B total; read 0x4B, write 0x42 */
9792 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9793 .tested = TEST_UNTESTED,
9794 .probe = probe_spi_rdid,
9795 .probe_timing = TIMING_ZERO,
9796 .block_erasers =
9797 {
9798 {
9799 .eraseblocks = { {4 * 1024, 512} },
9800 .block_erase = spi_block_erase_20,
9801 }, {
9802 .eraseblocks = { {32 * 1024, 64} },
9803 .block_erase = spi_block_erase_52,
9804 }, {
9805 .eraseblocks = { {64 * 1024, 32} },
9806 .block_erase = spi_block_erase_d8,
9807 }, {
9808 .eraseblocks = { {2 * 1024 * 1024, 1} },
9809 .block_erase = spi_block_erase_c7,
9810 }
9811 },
9812 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9813 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9814 .write = spi_chip_write_256, /* Multi I/O supported */
9815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9816 .voltage = {1700, 2000},
9817 },
9818
9819 {
9820 .vendor = "Micron/Numonyx/ST",
9821 .name = "N25Q032..1E",
9822 .bustype = BUS_SPI,
9823 .manufacture_id = ST_ID,
9824 .model_id = ST_N25Q032__1E,
9825 .total_size = 4096,
9826 .page_size = 256,
9827 /* supports SFDP */
9828 /* OTP: 64B total; read 0x4B, write 0x42 */
9829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9830 .tested = TEST_UNTESTED,
9831 .probe = probe_spi_rdid,
9832 .probe_timing = TIMING_ZERO,
9833 .block_erasers =
9834 {
9835 {
9836 .eraseblocks = { {4 * 1024, 1024} },
9837 .block_erase = spi_block_erase_20,
9838 }, {
9839 .eraseblocks = { {64 * 1024, 64} },
9840 .block_erase = spi_block_erase_d8,
9841 }, {
9842 .eraseblocks = { {4 * 1024 * 1024, 1} },
9843 .block_erase = spi_block_erase_c7,
9844 }
9845 },
9846 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9847 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9848 .write = spi_chip_write_256, /* Multi I/O supported */
9849 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9850 .voltage = {1700, 2000},
9851 },
9852
9853 {
9854 .vendor = "Micron/Numonyx/ST",
9855 .name = "N25Q032..3E",
9856 .bustype = BUS_SPI,
9857 .manufacture_id = ST_ID,
9858 .model_id = ST_N25Q032__3E,
9859 .total_size = 4096,
9860 .page_size = 256,
9861 /* supports SFDP */
9862 /* OTP: 64B total; read 0x4B, write 0x42 */
9863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9864 .tested = TEST_OK_PREW,
9865 .probe = probe_spi_rdid,
9866 .probe_timing = TIMING_ZERO,
9867 .block_erasers =
9868 {
9869 {
9870 .eraseblocks = { {4 * 1024, 1024} },
9871 .block_erase = spi_block_erase_20,
9872 }, {
9873 .eraseblocks = { {64 * 1024, 64} },
9874 .block_erase = spi_block_erase_d8,
9875 }, {
9876 .eraseblocks = { {4 * 1024 * 1024, 1} },
9877 .block_erase = spi_block_erase_c7,
9878 }
9879 },
9880 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9881 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9882 .write = spi_chip_write_256, /* Multi I/O supported */
9883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9884 .voltage = {2700, 3600},
9885 },
9886
9887 {
9888 .vendor = "Micron/Numonyx/ST",
9889 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9890 .bustype = BUS_SPI,
9891 .manufacture_id = ST_ID,
9892 .model_id = ST_N25Q064__1E,
9893 .total_size = 8192,
9894 .page_size = 256,
9895 /* supports SFDP */
9896 /* OTP: 64B total; read 0x4B, write 0x42 */
9897 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009898 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009899 .probe = probe_spi_rdid,
9900 .probe_timing = TIMING_ZERO,
9901 .block_erasers =
9902 {
9903 {
9904 .eraseblocks = { {4 * 1024, 2048 } },
9905 .block_erase = spi_block_erase_20,
9906 }, {
9907 .eraseblocks = { {64 * 1024, 128} },
9908 .block_erase = spi_block_erase_d8,
9909 }, {
9910 .eraseblocks = { {8 * 1024 * 1024, 1} },
9911 .block_erase = spi_block_erase_c7,
9912 }
9913 },
9914 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9915 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9916 .write = spi_chip_write_256, /* Multi I/O supported */
9917 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9918 .voltage = {1700, 2000},
9919 },
9920
9921 {
9922 .vendor = "Micron/Numonyx/ST",
9923 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9924 .bustype = BUS_SPI,
9925 .manufacture_id = ST_ID,
9926 .model_id = ST_N25Q064__3E,
9927 .total_size = 8192,
9928 .page_size = 256,
9929 /* supports SFDP */
9930 /* OTP: 64B total; read 0x4B, write 0x42 */
9931 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9932 .tested = TEST_OK_PREW,
9933 .probe = probe_spi_rdid,
9934 .probe_timing = TIMING_ZERO,
9935 .block_erasers =
9936 {
9937 {
9938 .eraseblocks = { {4 * 1024, 2048 } },
9939 .block_erase = spi_block_erase_20,
9940 }, {
9941 .eraseblocks = { {64 * 1024, 128} },
9942 .block_erase = spi_block_erase_d8,
9943 }, {
9944 .eraseblocks = { {8 * 1024 * 1024, 1} },
9945 .block_erase = spi_block_erase_c7,
9946 }
9947 },
9948 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9949 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9950 .write = spi_chip_write_256, /* Multi I/O supported */
9951 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9952 .voltage = {2700, 3600},
9953 },
9954
9955 {
9956 .vendor = "Micron/Numonyx/ST",
9957 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9958 .bustype = BUS_SPI,
9959 .manufacture_id = ST_ID,
9960 .model_id = ST_N25Q128__1E,
9961 .total_size = 16384,
9962 .page_size = 256,
9963 /* supports SFDP */
9964 /* OTP: 64B total; read 0x4B, write 0x42 */
9965 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009966 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009967 .probe = probe_spi_rdid,
9968 .probe_timing = TIMING_ZERO,
9969 .block_erasers = {
9970 {
9971 .eraseblocks = { {4 * 1024, 4096 } },
9972 .block_erase = spi_block_erase_20,
9973 }, {
9974 .eraseblocks = { {64 * 1024, 256} },
9975 .block_erase = spi_block_erase_d8,
9976 }, {
9977 .eraseblocks = { {16384 * 1024, 1} },
9978 .block_erase = spi_block_erase_c7,
9979 }
9980 },
9981 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9982 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9983 .write = spi_chip_write_256, /* Multi I/O supported */
9984 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9985 .voltage = {1700, 2000},
9986 },
9987
9988 {
9989 .vendor = "Micron/Numonyx/ST",
9990 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9991 .bustype = BUS_SPI,
9992 .manufacture_id = ST_ID,
9993 .model_id = ST_N25Q128__3E,
9994 .total_size = 16384,
9995 .page_size = 256,
9996 /* supports SFDP */
9997 /* OTP: 64B total; read 0x4B, write 0x42 */
9998 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9999 .tested = TEST_OK_PREW,
10000 .probe = probe_spi_rdid,
10001 .probe_timing = TIMING_ZERO,
10002 .block_erasers = {
10003 {
10004 .eraseblocks = { {4 * 1024, 4096 } },
10005 .block_erase = spi_block_erase_20,
10006 }, {
10007 .eraseblocks = { {64 * 1024, 256} },
10008 .block_erase = spi_block_erase_d8,
10009 }, {
10010 .eraseblocks = { {16384 * 1024, 1} },
10011 .block_erase = spi_block_erase_c7,
10012 }
10013 },
10014 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10015 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10016 .write = spi_chip_write_256, /* Multi I/O supported */
10017 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10018 .voltage = {2700, 3600},
10019 },
10020
10021 {
Ed Swierk199ab392017-07-03 13:33:44 -070010022 .vendor = "Micron",
10023 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10024 .bustype = BUS_SPI,
10025 .manufacture_id = ST_ID,
10026 .model_id = ST_N25Q256__3E,
10027 .total_size = 32768,
10028 .page_size = 256,
10029 /* supports SFDP */
10030 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10032 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010033 .probe = probe_spi_rdid,
10034 .probe_timing = TIMING_ZERO,
10035 .block_erasers = {
10036 {
10037 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010038 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010039 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010040 .eraseblocks = { {4 * 1024, 8192} },
10041 .block_erase = spi_block_erase_20,
10042 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010043 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010044 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010045 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010046 .eraseblocks = { {64 * 1024, 512} },
10047 .block_erase = spi_block_erase_d8,
10048 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010049 .eraseblocks = { {32768 * 1024, 1} },
10050 .block_erase = spi_block_erase_c7,
10051 }
10052 },
10053 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10054 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10055 .write = spi_chip_write_256, /* Multi I/O supported */
10056 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10057 .voltage = {2700, 3600},
10058 },
10059
10060 {
10061 .vendor = "Micron",
10062 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10063 .bustype = BUS_SPI,
10064 .manufacture_id = ST_ID,
10065 .model_id = ST_N25Q512__3E,
10066 .total_size = 65536,
10067 .page_size = 256,
10068 /* supports SFDP */
10069 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10071 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010072 .probe = probe_spi_rdid,
10073 .probe_timing = TIMING_ZERO,
10074 .block_erasers = {
10075 {
10076 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010077 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010078 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010079 .eraseblocks = { {4 * 1024, 16384} },
10080 .block_erase = spi_block_erase_20,
10081 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010082 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010083 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010084 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010085 .eraseblocks = { {64 * 1024, 1024} },
10086 .block_erase = spi_block_erase_d8,
10087 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010088 .eraseblocks = { {65536 * 1024, 1} },
10089 .block_erase = spi_block_erase_c7,
10090 }
10091 },
10092 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10093 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10094 .write = spi_chip_write_256, /* Multi I/O supported */
10095 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10096 .voltage = {2700, 3600},
10097 },
10098
10099 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010100 .vendor = "MoselVitelic",
10101 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010102 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010103 .manufacture_id = SYNCMOS_MVC_ID,
10104 .model_id = MVC_V29C51000B,
10105 .total_size = 64,
10106 .page_size = 512,
10107 .feature_bits = FEATURE_EITHER_RESET,
10108 .tested = TEST_UNTESTED,
10109 .probe = probe_jedec,
10110 .probe_timing = TIMING_ZERO,
10111 .block_erasers =
10112 {
10113 {
10114 .eraseblocks = { {512, 128} },
10115 .block_erase = erase_sector_jedec,
10116 }, {
10117 .eraseblocks = { {64 * 1024, 1} },
10118 .block_erase = erase_chip_block_jedec,
10119 },
10120 },
10121 .write = write_jedec_1,
10122 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010123 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010124 },
10125
10126 {
10127 .vendor = "MoselVitelic",
10128 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010129 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010130 .manufacture_id = SYNCMOS_MVC_ID,
10131 .model_id = MVC_V29C51000T,
10132 .total_size = 64,
10133 .page_size = 512,
10134 .feature_bits = FEATURE_EITHER_RESET,
10135 .tested = TEST_UNTESTED,
10136 .probe = probe_jedec,
10137 .probe_timing = TIMING_ZERO,
10138 .block_erasers =
10139 {
10140 {
10141 .eraseblocks = { {512, 128} },
10142 .block_erase = erase_sector_jedec,
10143 }, {
10144 .eraseblocks = { {64 * 1024, 1} },
10145 .block_erase = erase_chip_block_jedec,
10146 },
10147 },
10148 .write = write_jedec_1,
10149 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010150 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010151 },
10152
10153 {
10154 .vendor = "MoselVitelic",
10155 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010156 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010157 .manufacture_id = SYNCMOS_MVC_ID,
10158 .model_id = MVC_V29C51400B,
10159 .total_size = 512,
10160 .page_size = 1024,
10161 .feature_bits = FEATURE_EITHER_RESET,
10162 .tested = TEST_UNTESTED,
10163 .probe = probe_jedec,
10164 .probe_timing = TIMING_ZERO,
10165 .block_erasers =
10166 {
10167 {
10168 .eraseblocks = { {1024, 512} },
10169 .block_erase = erase_sector_jedec,
10170 }, {
10171 .eraseblocks = { {512 * 1024, 1} },
10172 .block_erase = erase_chip_block_jedec,
10173 },
10174 },
10175 .write = write_jedec_1,
10176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010177 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010178 },
10179
10180 {
10181 .vendor = "MoselVitelic",
10182 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010183 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010184 .manufacture_id = SYNCMOS_MVC_ID,
10185 .model_id = MVC_V29C51400T,
10186 .total_size = 512,
10187 .page_size = 1024,
10188 .feature_bits = FEATURE_EITHER_RESET,
10189 .tested = TEST_UNTESTED,
10190 .probe = probe_jedec,
10191 .probe_timing = TIMING_ZERO,
10192 .block_erasers =
10193 {
10194 {
10195 .eraseblocks = { {1024, 512} },
10196 .block_erase = erase_sector_jedec,
10197 }, {
10198 .eraseblocks = { {512 * 1024, 1} },
10199 .block_erase = erase_chip_block_jedec,
10200 },
10201 },
10202 .write = write_jedec_1,
10203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010204 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010205 },
10206
10207 {
10208 .vendor = "MoselVitelic",
10209 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010210 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010211 .manufacture_id = SYNCMOS_MVC_ID,
10212 .model_id = MVC_V29LC51000,
10213 .total_size = 64,
10214 .page_size = 512,
10215 .feature_bits = FEATURE_EITHER_RESET,
10216 .tested = TEST_UNTESTED,
10217 .probe = probe_jedec,
10218 .probe_timing = TIMING_ZERO,
10219 .block_erasers =
10220 {
10221 {
10222 .eraseblocks = { {512, 128} },
10223 .block_erase = erase_sector_jedec,
10224 }, {
10225 .eraseblocks = { {64 * 1024, 1} },
10226 .block_erase = erase_chip_block_jedec,
10227 },
10228 },
10229 .write = write_jedec_1,
10230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010231 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010232 },
10233
10234 {
10235 .vendor = "MoselVitelic",
10236 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010237 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010238 .manufacture_id = SYNCMOS_MVC_ID,
10239 .model_id = MVC_V29LC51001,
10240 .total_size = 128,
10241 .page_size = 512,
10242 .feature_bits = FEATURE_EITHER_RESET,
10243 .tested = TEST_UNTESTED,
10244 .probe = probe_jedec,
10245 .probe_timing = TIMING_ZERO,
10246 .block_erasers =
10247 {
10248 {
10249 .eraseblocks = { {512, 256} },
10250 .block_erase = erase_sector_jedec,
10251 }, {
10252 .eraseblocks = { {128 * 1024, 1} },
10253 .block_erase = erase_chip_block_jedec,
10254 },
10255 },
10256 .write = write_jedec_1,
10257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010258 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010259 },
10260
10261 {
10262 .vendor = "MoselVitelic",
10263 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010264 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010265 .manufacture_id = SYNCMOS_MVC_ID,
10266 .model_id = MVC_V29LC51002,
10267 .total_size = 256,
10268 .page_size = 512,
10269 .feature_bits = FEATURE_EITHER_RESET,
10270 .tested = TEST_UNTESTED,
10271 .probe = probe_jedec,
10272 .probe_timing = TIMING_ZERO,
10273 .block_erasers =
10274 {
10275 {
10276 .eraseblocks = { {512, 512} },
10277 .block_erase = erase_sector_jedec,
10278 }, {
10279 .eraseblocks = { {256 * 1024, 1} },
10280 .block_erase = erase_chip_block_jedec,
10281 },
10282 },
10283 .write = write_jedec_1,
10284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010285 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010286 },
10287
10288 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010289 .vendor = "Nantronics",
10290 .name = "N25S10",
10291 .bustype = BUS_SPI,
10292 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10293 .model_id = NANTRONICS_N25S10,
10294 .total_size = 128,
10295 .page_size = 256,
10296 .feature_bits = FEATURE_WRSR_WREN,
10297 .tested = TEST_UNTESTED,
10298 .probe = probe_spi_rdid,
10299 .probe_timing = TIMING_ZERO,
10300 .block_erasers =
10301 {
10302 {
10303 .eraseblocks = { {4 * 1024, 32} },
10304 .block_erase = spi_block_erase_20,
10305 }, {
10306 .eraseblocks = { {4 * 1024, 32} },
10307 .block_erase = spi_block_erase_d7,
10308 }, {
10309 .eraseblocks = { {32 * 1024, 4} },
10310 .block_erase = spi_block_erase_52,
10311 }, {
10312 .eraseblocks = { {64 * 1024, 2} },
10313 .block_erase = spi_block_erase_d8,
10314 }, {
10315 .eraseblocks = { {128 * 1024, 1} },
10316 .block_erase = spi_block_erase_60,
10317 }, {
10318 .eraseblocks = { {128 * 1024, 1} },
10319 .block_erase = spi_block_erase_c7,
10320 }
10321 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010322 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010323 .unlock = spi_disable_blockprotect_bp3_srwd,
10324 .write = spi_chip_write_256,
10325 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10326 .voltage = {2700, 3600},
10327 },
10328
10329 {
10330 .vendor = "Nantronics",
10331 .name = "N25S20",
10332 .bustype = BUS_SPI,
10333 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10334 .model_id = NANTRONICS_N25S20,
10335 .total_size = 256,
10336 .page_size = 256,
10337 .feature_bits = FEATURE_WRSR_WREN,
10338 .tested = TEST_UNTESTED,
10339 .probe = probe_spi_rdid,
10340 .probe_timing = TIMING_ZERO,
10341 .block_erasers =
10342 {
10343 {
10344 .eraseblocks = { {4 * 1024, 64} },
10345 .block_erase = spi_block_erase_20,
10346 }, {
10347 .eraseblocks = { {4 * 1024, 64} },
10348 .block_erase = spi_block_erase_d7,
10349 }, {
10350 .eraseblocks = { {32 * 1024, 8} },
10351 .block_erase = spi_block_erase_52,
10352 }, {
10353 .eraseblocks = { {64 * 1024, 4} },
10354 .block_erase = spi_block_erase_d8,
10355 }, {
10356 .eraseblocks = { {256 * 1024, 1} },
10357 .block_erase = spi_block_erase_60,
10358 }, {
10359 .eraseblocks = { {256 * 1024, 1} },
10360 .block_erase = spi_block_erase_c7,
10361 }
10362 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010363 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010364 .unlock = spi_disable_blockprotect_bp3_srwd,
10365 .write = spi_chip_write_256,
10366 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10367 .voltage = {2700, 3600},
10368 },
10369
10370 {
10371 .vendor = "Nantronics",
10372 .name = "N25S40",
10373 .bustype = BUS_SPI,
10374 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10375 .model_id = NANTRONICS_N25S40,
10376 .total_size = 512,
10377 .page_size = 256,
10378 .feature_bits = FEATURE_WRSR_WREN,
10379 .tested = TEST_UNTESTED,
10380 .probe = probe_spi_rdid,
10381 .probe_timing = TIMING_ZERO,
10382 .block_erasers =
10383 {
10384 {
10385 .eraseblocks = { {4 * 1024, 128} },
10386 .block_erase = spi_block_erase_20,
10387 }, {
10388 .eraseblocks = { {4 * 1024, 128} },
10389 .block_erase = spi_block_erase_d7,
10390 }, {
10391 .eraseblocks = { {32 * 1024, 16} },
10392 .block_erase = spi_block_erase_52,
10393 }, {
10394 .eraseblocks = { {64 * 1024, 8} },
10395 .block_erase = spi_block_erase_d8,
10396 }, {
10397 .eraseblocks = { {512 * 1024, 1} },
10398 .block_erase = spi_block_erase_60,
10399 }, {
10400 .eraseblocks = { {512 * 1024, 1} },
10401 .block_erase = spi_block_erase_c7,
10402 }
10403 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010404 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010405 .unlock = spi_disable_blockprotect_bp3_srwd,
10406 .write = spi_chip_write_256,
10407 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10408 .voltage = {2700, 3600},
10409 },
10410
10411 {
10412 .vendor = "Nantronics",
10413 .name = "N25S80",
10414 .bustype = BUS_SPI,
10415 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10416 .model_id = NANTRONICS_N25S80,
10417 .total_size = 1024,
10418 .page_size = 256,
10419 .feature_bits = FEATURE_WRSR_WREN,
10420 .tested = TEST_UNTESTED,
10421 .probe = probe_spi_rdid,
10422 .probe_timing = TIMING_ZERO,
10423 .block_erasers =
10424 {
10425 {
10426 .eraseblocks = { {4 * 1024, 256} },
10427 .block_erase = spi_block_erase_20,
10428 }, {
10429 .eraseblocks = { {32 * 1024, 32} },
10430 .block_erase = spi_block_erase_52,
10431 }, {
10432 .eraseblocks = { {64 * 1024, 16} },
10433 .block_erase = spi_block_erase_d8,
10434 }, {
10435 .eraseblocks = { {1024 * 1024, 1} },
10436 .block_erase = spi_block_erase_60,
10437 }, {
10438 .eraseblocks = { {1024 * 1024, 1} },
10439 .block_erase = spi_block_erase_c7,
10440 }
10441 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010442 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010443 .unlock = spi_disable_blockprotect_bp3_srwd,
10444 .write = spi_chip_write_256,
10445 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10446 .voltage = {2700, 3600},
10447 },
10448
10449 {
10450 .vendor = "Nantronics",
10451 .name = "N25S16",
10452 .bustype = BUS_SPI,
10453 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10454 .model_id = NANTRONICS_N25S16,
10455 .total_size = 2048,
10456 .page_size = 256,
10457 .feature_bits = FEATURE_WRSR_WREN,
10458 .tested = TEST_UNTESTED,
10459 .probe = probe_spi_rdid,
10460 .probe_timing = TIMING_ZERO,
10461 .block_erasers =
10462 {
10463 {
10464 .eraseblocks = { {4 * 1024, 512} },
10465 .block_erase = spi_block_erase_20,
10466 }, {
10467 .eraseblocks = { {64 * 1024, 32} },
10468 .block_erase = spi_block_erase_d8,
10469 }, {
10470 .eraseblocks = { {2048 * 1024, 1} },
10471 .block_erase = spi_block_erase_60,
10472 }, {
10473 .eraseblocks = { {2048 * 1024, 1} },
10474 .block_erase = spi_block_erase_c7,
10475 }
10476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010477 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010478 .unlock = spi_disable_blockprotect_bp3_srwd,
10479 .write = spi_chip_write_256,
10480 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10481 .voltage = {2700, 3600},
10482 },
10483
10484 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010485 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010486 .name = "Pm25LD256C",
10487 .bustype = BUS_SPI,
10488 .manufacture_id = PMC_ID,
10489 .model_id = PMC_PM25LD256C,
10490 .total_size = 32,
10491 .page_size = 256,
10492 .feature_bits = FEATURE_WRSR_WREN,
10493 .tested = TEST_UNTESTED,
10494 .probe = probe_spi_rdid,
10495 .probe_timing = TIMING_ZERO,
10496 .block_erasers =
10497 {
10498 {
10499 .eraseblocks = { {4 * 1024, 8} },
10500 .block_erase = spi_block_erase_20,
10501 }, {
10502 .eraseblocks = { {4 * 1024, 8} },
10503 .block_erase = spi_block_erase_d7,
10504 }, {
10505 .eraseblocks = { {32 * 1024, 1} },
10506 .block_erase = spi_block_erase_d8,
10507 }, {
10508 .eraseblocks = { {32 * 1024, 1} },
10509 .block_erase = spi_block_erase_60,
10510 }, {
10511 .eraseblocks = { {32 * 1024, 1} },
10512 .block_erase = spi_block_erase_c7,
10513 }
10514 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010515 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010516 .unlock = spi_disable_blockprotect,
10517 .write = spi_chip_write_256,
10518 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10519 .voltage = {2700, 3600},
10520 },
10521 {
10522 .vendor = "PMC",
10523 .name = "Pm25LD512(C)",
10524 .bustype = BUS_SPI,
10525 .manufacture_id = PMC_ID,
10526 .model_id = PMC_PM25LD512,
10527 .total_size = 64,
10528 .page_size = 256,
10529 .feature_bits = FEATURE_WRSR_WREN,
10530 .tested = TEST_OK_PREW,
10531 .probe = probe_spi_rdid,
10532 .probe_timing = TIMING_ZERO,
10533 .block_erasers =
10534 {
10535 {
10536 .eraseblocks = { {4 * 1024, 16} },
10537 .block_erase = spi_block_erase_20,
10538 }, {
10539 .eraseblocks = { {4 * 1024, 16} },
10540 .block_erase = spi_block_erase_d7,
10541 }, {
10542 .eraseblocks = { {32 * 1024, 2} },
10543 .block_erase = spi_block_erase_d8,
10544 }, {
10545 .eraseblocks = { {64 * 1024, 1} },
10546 .block_erase = spi_block_erase_60,
10547 }, {
10548 .eraseblocks = { {64 * 1024, 1} },
10549 .block_erase = spi_block_erase_c7,
10550 }
10551 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010552 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010553 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10554 .write = spi_chip_write_256,
10555 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10556 .voltage = {2300, 3600},
10557 },
10558
10559 {
10560 .vendor = "PMC",
10561 .name = "Pm25LD010(C)",
10562 .bustype = BUS_SPI,
10563 .manufacture_id = PMC_ID,
10564 .model_id = PMC_PM25LD010,
10565 .total_size = 128,
10566 .page_size = 256,
10567 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010568 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010569 .probe = probe_spi_rdid,
10570 .probe_timing = TIMING_ZERO,
10571 .block_erasers =
10572 {
10573 {
10574 .eraseblocks = { {4 * 1024, 32} },
10575 .block_erase = spi_block_erase_20,
10576 }, {
10577 .eraseblocks = { {4 * 1024, 32} },
10578 .block_erase = spi_block_erase_d7,
10579 }, {
10580 .eraseblocks = { {32 * 1024, 4} },
10581 .block_erase = spi_block_erase_d8,
10582 }, {
10583 .eraseblocks = { {128 * 1024, 1} },
10584 .block_erase = spi_block_erase_60,
10585 }, {
10586 .eraseblocks = { {128 * 1024, 1} },
10587 .block_erase = spi_block_erase_c7,
10588 }
10589 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010590 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010591 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10592 .write = spi_chip_write_256,
10593 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10594 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10595 },
10596
10597 {
10598 .vendor = "PMC",
10599 .name = "Pm25LD020(C)",
10600 .bustype = BUS_SPI,
10601 .manufacture_id = PMC_ID,
10602 .model_id = PMC_PM25LD020,
10603 .total_size = 256,
10604 .page_size = 256,
10605 .feature_bits = FEATURE_WRSR_WREN,
10606 .tested = TEST_UNTESTED,
10607 .probe = probe_spi_rdid,
10608 .probe_timing = TIMING_ZERO,
10609 .block_erasers =
10610 {
10611 {
10612 .eraseblocks = { {4 * 1024, 64} },
10613 .block_erase = spi_block_erase_20,
10614 }, {
10615 .eraseblocks = { {4 * 1024, 64} },
10616 .block_erase = spi_block_erase_d7,
10617 }, {
10618 .eraseblocks = { {64 * 1024, 4} },
10619 .block_erase = spi_block_erase_d8,
10620 }, {
10621 .eraseblocks = { {256 * 1024, 1} },
10622 .block_erase = spi_block_erase_60,
10623 }, {
10624 .eraseblocks = { {256 * 1024, 1} },
10625 .block_erase = spi_block_erase_c7,
10626 }
10627 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010628 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010629 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10630 .write = spi_chip_write_256,
10631 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10632 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
10633 },
10634
10635 {
10636 .vendor = "PMC",
10637 .name = "Pm25LD040(C)",
10638 .bustype = BUS_SPI,
10639 .manufacture_id = PMC_ID,
10640 .model_id = PMC_PM25LV040,
10641 .total_size = 512,
10642 .page_size = 256,
10643 .feature_bits = FEATURE_WRSR_WREN,
10644 .tested = TEST_UNTESTED,
10645 .probe = probe_spi_rdid,
10646 .probe_timing = TIMING_ZERO,
10647 .block_erasers =
10648 {
10649 {
10650 .eraseblocks = { {4 * 1024, 128} },
10651 .block_erase = spi_block_erase_20,
10652 }, {
10653 .eraseblocks = { {4 * 1024, 128} },
10654 .block_erase = spi_block_erase_d7,
10655 }, {
10656 .eraseblocks = { {64 * 1024, 8} },
10657 .block_erase = spi_block_erase_d8,
10658 }, {
10659 .eraseblocks = { {512 * 1024, 1} },
10660 .block_erase = spi_block_erase_60,
10661 }, {
10662 .eraseblocks = { {512 * 1024, 1} },
10663 .block_erase = spi_block_erase_c7,
10664 }
10665 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010666 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010667 .unlock = spi_disable_blockprotect,
10668 .write = spi_chip_write_256,
10669 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10670 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10671 },
10672
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010673 {
10674 .vendor = "PMC",
10675 .name = "Pm25LQ020",
10676 .bustype = BUS_SPI,
10677 .manufacture_id = PMC_ID,
10678 .model_id = PMC_PM25LQ020,
10679 .total_size = 256,
10680 .page_size = 256,
10681 /* OTP: 256B total; read 0x4B, write 0xB1 */
10682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10683 .tested = TEST_UNTESTED,
10684 .probe = probe_spi_rdid,
10685 .probe_timing = TIMING_ZERO,
10686 .block_erasers =
10687 {
10688 {
10689 .eraseblocks = { {4 * 1024, 64} },
10690 .block_erase = spi_block_erase_20,
10691 }, {
10692 .eraseblocks = { {4 * 1024, 64} },
10693 .block_erase = spi_block_erase_d7,
10694 }, {
10695 .eraseblocks = { {64 * 1024, 4} },
10696 .block_erase = spi_block_erase_d8,
10697 }, {
10698 .eraseblocks = { {256 * 1024, 1} },
10699 .block_erase = spi_block_erase_60,
10700 }, {
10701 .eraseblocks = { {256 * 1024, 1} },
10702 .block_erase = spi_block_erase_c7,
10703 }
10704 },
10705 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10706 .unlock = spi_disable_blockprotect_bp3_srwd,
10707 .write = spi_chip_write_256,
10708 .read = spi_chip_read,
10709 .voltage = {2300, 3600},
10710 },
10711
10712 {
10713 .vendor = "PMC",
10714 .name = "Pm25LQ040",
10715 .bustype = BUS_SPI,
10716 .manufacture_id = PMC_ID,
10717 .model_id = PMC_PM25LQ040,
10718 .total_size = 512,
10719 .page_size = 256,
10720 /* OTP: 256B total; read 0x4B, write 0xB1 */
10721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10722 .tested = TEST_UNTESTED,
10723 .probe = probe_spi_rdid,
10724 .probe_timing = TIMING_ZERO,
10725 .block_erasers =
10726 {
10727 {
10728 .eraseblocks = { {4 * 1024, 128} },
10729 .block_erase = spi_block_erase_20,
10730 }, {
10731 .eraseblocks = { {4 * 1024, 128} },
10732 .block_erase = spi_block_erase_d7,
10733 }, {
10734 .eraseblocks = { {64 * 1024, 8} },
10735 .block_erase = spi_block_erase_d8,
10736 }, {
10737 .eraseblocks = { {512 * 1024, 1} },
10738 .block_erase = spi_block_erase_60,
10739 }, {
10740 .eraseblocks = { {512 * 1024, 1} },
10741 .block_erase = spi_block_erase_c7,
10742 }
10743 },
10744 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10745 .unlock = spi_disable_blockprotect_bp3_srwd,
10746 .write = spi_chip_write_256,
10747 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10748 .voltage = {2300, 3600},
10749 },
10750
10751 {
10752 .vendor = "PMC",
10753 .name = "Pm25LQ080",
10754 .bustype = BUS_SPI,
10755 .manufacture_id = PMC_ID,
10756 .model_id = PMC_PM25LQ080,
10757 .total_size = 1024,
10758 .page_size = 256,
10759 /* OTP: 64B total; read 0x4B, write 0xB1 */
10760 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10761 .tested = TEST_UNTESTED,
10762 .probe = probe_spi_rdid,
10763 .probe_timing = TIMING_ZERO,
10764 .block_erasers =
10765 {
10766 {
10767 .eraseblocks = { {4 * 1024, 256} },
10768 .block_erase = spi_block_erase_20,
10769 }, {
10770 .eraseblocks = { {4 * 1024, 256} },
10771 .block_erase = spi_block_erase_d7,
10772 }, {
10773 .eraseblocks = { {64 * 1024, 16} },
10774 .block_erase = spi_block_erase_d8,
10775 }, {
10776 .eraseblocks = { {1024 * 1024, 1} },
10777 .block_erase = spi_block_erase_60,
10778 }, {
10779 .eraseblocks = { {1024 * 1024, 1} },
10780 .block_erase = spi_block_erase_c7,
10781 }
10782 },
10783 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10784 .unlock = spi_disable_blockprotect_bp3_srwd,
10785 .write = spi_chip_write_256,
10786 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10787 .voltage = {2300, 3600},
10788 },
10789
10790 {
10791 .vendor = "PMC",
10792 .name = "Pm25LQ016",
10793 .bustype = BUS_SPI,
10794 .manufacture_id = PMC_ID,
10795 .model_id = PMC_PM25LQ016,
10796 .total_size = 2048,
10797 .page_size = 256,
10798 /* OTP: 256B total; read 0x4B, write 0xB1 */
10799 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10800 .tested = TEST_UNTESTED,
10801 .probe = probe_spi_rdid,
10802 .probe_timing = TIMING_ZERO,
10803 .block_erasers =
10804 {
10805 {
10806 .eraseblocks = { {4 * 1024, 512} },
10807 .block_erase = spi_block_erase_20,
10808 }, {
10809 .eraseblocks = { {4 * 1024, 512} },
10810 .block_erase = spi_block_erase_d7,
10811 }, {
10812 .eraseblocks = { {64 * 1024, 32} },
10813 .block_erase = spi_block_erase_d8,
10814 }, {
10815 .eraseblocks = { {2048 * 1024, 1} },
10816 .block_erase = spi_block_erase_60,
10817 }, {
10818 .eraseblocks = { {2048 * 1024, 1} },
10819 .block_erase = spi_block_erase_c7,
10820 }
10821 },
10822 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10823 .unlock = spi_disable_blockprotect_bp3_srwd,
10824 .write = spi_chip_write_256,
10825 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10826 .voltage = {2300, 3600},
10827 },
10828
10829 {
10830 .vendor = "PMC",
10831 .name = "Pm25LQ032C",
10832 .bustype = BUS_SPI,
10833 .manufacture_id = PMC_ID,
10834 .model_id = PMC_PM25LQ032C,
10835 .total_size = 4096,
10836 .page_size = 256,
10837 /* OTP: 64B total; read 0x4B, write 0xB1 */
10838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010839 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010840 .probe = probe_spi_rdid,
10841 .probe_timing = TIMING_ZERO,
10842 .block_erasers =
10843 {
10844 {
10845 .eraseblocks = { {4 * 1024, 1024} },
10846 .block_erase = spi_block_erase_20,
10847 }, {
10848 .eraseblocks = { {4 * 1024, 1024} },
10849 .block_erase = spi_block_erase_d7,
10850 }, {
10851 .eraseblocks = { {64 * 1024, 64} },
10852 .block_erase = spi_block_erase_d8,
10853 }, {
10854 .eraseblocks = { {4096 * 1024, 1} },
10855 .block_erase = spi_block_erase_60,
10856 }, {
10857 .eraseblocks = { {4096 * 1024, 1} },
10858 .block_erase = spi_block_erase_c7,
10859 }
10860 },
10861 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10862 .unlock = spi_disable_blockprotect_bp3_srwd,
10863 .write = spi_chip_write_256,
10864 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10865 .voltage = {2700, 3600},
10866 },
10867
10868 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010869 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010870 .name = "Pm25LV512(A)",
10871 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010872 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010873 .model_id = PMC_PM25LV512,
10874 .total_size = 64,
10875 .page_size = 256,
10876 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010877 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010878 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010879 .probe_timing = TIMING_ZERO,
10880 .block_erasers =
10881 {
10882 {
10883 .eraseblocks = { {4 * 1024, 16} },
10884 .block_erase = spi_block_erase_d7,
10885 }, {
10886 .eraseblocks = { {32 * 1024, 2} },
10887 .block_erase = spi_block_erase_d8,
10888 }, {
10889 .eraseblocks = { {64 * 1024, 1} },
10890 .block_erase = spi_block_erase_c7,
10891 }
10892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010893 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010894 .unlock = spi_disable_blockprotect,
10895 .write = spi_chip_write_256,
10896 .read = spi_chip_read, /* Fast read (0x0B) supported */
10897 .voltage = {2700, 3600},
10898 },
10899
10900 {
10901 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010902 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010903 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010904 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010905 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010906 .total_size = 128,
10907 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010908 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010909 .tested = TEST_OK_PREW,
10910 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010911 .probe_timing = TIMING_ZERO,
10912 .block_erasers =
10913 {
10914 {
10915 .eraseblocks = { {4 * 1024, 32} },
10916 .block_erase = spi_block_erase_d7,
10917 }, {
10918 .eraseblocks = { {32 * 1024, 4} },
10919 .block_erase = spi_block_erase_d8,
10920 }, {
10921 .eraseblocks = { {128 * 1024, 1} },
10922 .block_erase = spi_block_erase_c7,
10923 }
10924 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010925 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010926 .unlock = spi_disable_blockprotect,
10927 .write = spi_chip_write_256,
10928 .read = spi_chip_read, /* Fast read (0x0B) supported */
10929 .voltage = {2700, 3600},
10930 },
10931
10932 {
10933 .vendor = "PMC",
10934 .name = "Pm25LV010A",
10935 .bustype = BUS_SPI,
10936 .manufacture_id = PMC_ID,
10937 .model_id = PMC_PM25LV010,
10938 .total_size = 128,
10939 .page_size = 256,
10940 .feature_bits = FEATURE_WRSR_WREN,
10941 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010943 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010944 .block_erasers =
10945 {
10946 {
10947 .eraseblocks = { {4 * 1024, 32} },
10948 .block_erase = spi_block_erase_d7,
10949 }, {
10950 .eraseblocks = { {32 * 1024, 4} },
10951 .block_erase = spi_block_erase_d8,
10952 }, {
10953 .eraseblocks = { {128 * 1024, 1} },
10954 .block_erase = spi_block_erase_c7,
10955 }
10956 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010957 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010958 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010959 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010960 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010961 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010962 },
10963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010964 {
10965 .vendor = "PMC",
10966 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010967 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010968 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010969 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010970 .total_size = 256,
10971 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010972 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010973 .tested = TEST_UNTESTED,
10974 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010975 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010976 .block_erasers =
10977 {
10978 {
10979 .eraseblocks = { {4 * 1024, 64} },
10980 .block_erase = spi_block_erase_d7,
10981 }, {
10982 .eraseblocks = { {64 * 1024, 4} },
10983 .block_erase = spi_block_erase_d8,
10984 }, {
10985 .eraseblocks = { {256 * 1024, 1} },
10986 .block_erase = spi_block_erase_c7,
10987 }
10988 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010989 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010990 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010991 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010992 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010993 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010994 },
10995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010996 {
10997 .vendor = "PMC",
10998 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010999 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011000 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011001 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011002 .total_size = 512,
11003 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011004 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011005 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011006 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011007 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011008 .block_erasers =
11009 {
11010 {
11011 .eraseblocks = { {4 * 1024, 128} },
11012 .block_erase = spi_block_erase_d7,
11013 }, {
11014 .eraseblocks = { {64 * 1024, 8} },
11015 .block_erase = spi_block_erase_d8,
11016 }, {
11017 .eraseblocks = { {512 * 1024, 1} },
11018 .block_erase = spi_block_erase_c7,
11019 }
11020 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011021 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011023 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011024 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011025 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011026 },
11027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011028 {
11029 .vendor = "PMC",
11030 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011031 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011032 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011033 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011034 .total_size = 1024,
11035 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011036 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011037 .tested = TEST_UNTESTED,
11038 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011039 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011040 .block_erasers =
11041 {
11042 {
11043 .eraseblocks = { {4 * 1024, 256} },
11044 .block_erase = spi_block_erase_d7,
11045 }, {
11046 .eraseblocks = { {4 * 1024, 256} },
11047 .block_erase = spi_block_erase_20,
11048 }, {
11049 .eraseblocks = { {64 * 1024, 16} },
11050 .block_erase = spi_block_erase_d8,
11051 }, {
11052 .eraseblocks = { {1024 * 1024, 1} },
11053 .block_erase = spi_block_erase_60,
11054 }, {
11055 .eraseblocks = { {1024 * 1024, 1} },
11056 .block_erase = spi_block_erase_c7,
11057 }
11058 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011059 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011060 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011061 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011062 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011063 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011064 },
11065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011066 {
11067 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011068 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011069 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011070 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011071 .model_id = PMC_PM25LV016B,
11072 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011073 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011074 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011075 .tested = TEST_UNTESTED,
11076 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011077 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011078 .block_erasers =
11079 {
11080 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011081 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000011082 .block_erase = spi_block_erase_d7,
11083 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011084 .eraseblocks = { {4 * 1024, 512} },
11085 .block_erase = spi_block_erase_20,
11086 }, {
11087 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000011088 .block_erase = spi_block_erase_d8,
11089 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011090 .eraseblocks = { {2 * 1024 * 1024, 1} },
11091 .block_erase = spi_block_erase_60,
11092 }, {
11093 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011094 .block_erase = spi_block_erase_c7,
11095 }
11096 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011097 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011098 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011099 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011100 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011101 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011102 },
11103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011104 {
11105 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011106 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011107 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011108 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011109 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011110 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011111 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011112 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011113 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011114 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011115 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011116 .block_erasers =
11117 {
11118 {
11119 .eraseblocks = {
11120 {128 * 1024, 1},
11121 {96 * 1024, 1},
11122 {8 * 1024, 2},
11123 {16 * 1024, 1},
11124 },
Sean Nelson35727f72010-01-28 23:55:12 +000011125 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011126 }, {
11127 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011128 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011129 },
11130 },
Sean Nelson35727f72010-01-28 23:55:12 +000011131 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011133 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011134 },
11135
11136 {
11137 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011138 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011139 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011140 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011141 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011142 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011143 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011145 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011146 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011147 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011148 .block_erasers =
11149 {
11150 {
11151 .eraseblocks = {
11152 {16 * 1024, 1},
11153 {8 * 1024, 2},
11154 {96 * 1024, 1},
11155 {128 * 1024, 1},
11156 },
Sean Nelson35727f72010-01-28 23:55:12 +000011157 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011158 }, {
11159 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011160 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011161 },
11162 },
Sean Nelson35727f72010-01-28 23:55:12 +000011163 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011165 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011166 },
11167
11168 {
11169 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011170 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011171 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011172 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011173 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011174 .total_size = 128,
11175 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011176 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011177 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011178 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011179 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011180 .block_erasers =
11181 {
11182 {
11183 .eraseblocks = { {4 * 1024, 32} },
11184 .block_erase = erase_sector_jedec,
11185 }, {
11186 .eraseblocks = { {64 * 1024, 2} },
11187 .block_erase = erase_block_jedec,
11188 }, {
11189 .eraseblocks = { {128 * 1024, 1} },
11190 .block_erase = erase_chip_block_jedec,
11191 }
11192 },
Sean Nelson35727f72010-01-28 23:55:12 +000011193 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011194 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011195 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011196 },
11197
11198 {
11199 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011200 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011201 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011202 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011203 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011204 .total_size = 256,
11205 .page_size = 4096,
11206 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11207 .tested = TEST_UNTESTED,
11208 .probe = probe_jedec,
11209 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11210 .block_erasers =
11211 {
11212 {
11213 .eraseblocks = { {4 * 1024, 64} },
11214 .block_erase = erase_sector_jedec,
11215 }, {
11216 .eraseblocks = { {64 * 1024, 4} },
11217 .block_erase = erase_block_jedec,
11218 }, {
11219 .eraseblocks = { {256 * 1024, 1} },
11220 .block_erase = erase_chip_block_jedec,
11221 }
11222 },
11223 .write = write_jedec_1,
11224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011225 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011226 },
11227
11228 {
11229 .vendor = "PMC",
11230 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011231 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011232 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011233 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011234 .total_size = 512,
11235 .page_size = 4096,
11236 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011237 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011238 .probe = probe_jedec,
11239 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11240 .block_erasers =
11241 {
11242 {
11243 .eraseblocks = { {4 * 1024, 128} },
11244 .block_erase = erase_sector_jedec,
11245 }, {
11246 .eraseblocks = { {64 * 1024, 8} },
11247 .block_erase = erase_block_jedec,
11248 }, {
11249 .eraseblocks = { {512 * 1024, 1} },
11250 .block_erase = erase_chip_block_jedec,
11251 }
11252 },
11253 .write = write_jedec_1,
11254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011255 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011256 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011257
11258 {
11259 .vendor = "PMC",
11260 .name = "Pm39LV512",
11261 .bustype = BUS_PARALLEL,
11262 .manufacture_id = PMC_ID_NOPREFIX,
11263 .model_id = PMC_PM39LV512,
11264 .total_size = 64,
11265 .page_size = 4096,
11266 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11267 .tested = TEST_OK_PREW,
11268 .probe = probe_jedec,
11269 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11270 .block_erasers =
11271 {
11272 {
11273 .eraseblocks = { {4 * 1024, 16} },
11274 .block_erase = erase_sector_jedec,
11275 }, {
11276 .eraseblocks = { {64 * 1024, 1} },
11277 .block_erase = erase_block_jedec,
11278 }, {
11279 .eraseblocks = { {64 * 1024, 1} },
11280 .block_erase = erase_chip_block_jedec,
11281 }
11282 },
11283 .write = write_jedec_1,
11284 .read = read_memmapped,
11285 .voltage = {2700, 3600},
11286 },
11287
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011288 {
11289 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011290 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011291 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011292 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011293 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011294 .total_size = 256,
11295 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011296 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011297 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011298 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011299 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011300 .block_erasers =
11301 {
11302 {
11303 .eraseblocks = { {4 * 1024, 64} },
11304 .block_erase = erase_sector_jedec,
11305 }, {
11306 .eraseblocks = { {16 * 1024, 16} },
11307 .block_erase = erase_block_jedec,
11308 }, {
11309 .eraseblocks = { {256 * 1024, 1} },
11310 .block_erase = erase_chip_block_jedec,
11311 }
11312 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011313 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011314 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011315 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011316 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011317 },
11318
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011319 {
11320 .vendor = "PMC",
11321 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011322 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011323 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011324 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011325 .total_size = 512,
11326 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011327 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011328 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011329 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011330 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011331 .block_erasers =
11332 {
11333 {
11334 .eraseblocks = { {4 * 1024, 128} },
11335 .block_erase = erase_sector_jedec,
11336 }, {
11337 .eraseblocks = { {64 * 1024, 8} },
11338 .block_erase = erase_block_jedec,
11339 }, {
11340 .eraseblocks = { {512 * 1024, 1} },
11341 .block_erase = erase_chip_block_jedec,
11342 }
11343 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011344 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011345 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011347 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011348 },
11349
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011350 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011351 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011352 .name = "LE25FW106",
11353 .bustype = BUS_SPI,
11354 .manufacture_id = SANYO_ID,
11355 .model_id = SANYO_LE25FW106,
11356 .total_size = 128,
11357 .page_size = 256,
11358 .feature_bits = FEATURE_WRSR_WREN,
11359 .tested = TEST_OK_PREW,
11360 .probe = probe_spi_res2,
11361 .probe_timing = TIMING_ZERO,
11362 .block_erasers = {
11363 {
11364 .eraseblocks = { {2 * 1024, 64} },
11365 .block_erase = spi_block_erase_d7,
11366 }, {
11367 .eraseblocks = { {32 * 1024, 4} },
11368 .block_erase = spi_block_erase_d8,
11369 }, {
11370 .eraseblocks = { {128 * 1024, 1} },
11371 .block_erase = spi_block_erase_c7,
11372 }
11373 },
11374 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11375 .unlock = spi_disable_blockprotect_bp1_srwd,
11376 .write = spi_chip_write_256,
11377 .read = spi_chip_read,
11378 .voltage = {2700, 3600},
11379 },
11380
11381 {
11382 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011383 .name = "LE25FW406A",
11384 .bustype = BUS_SPI,
11385 .manufacture_id = SANYO_ID,
11386 .model_id = SANYO_LE25FW406A,
11387 .total_size = 512,
11388 .page_size = 256,
11389 .feature_bits = FEATURE_WRSR_WREN,
11390 .tested = TEST_OK_PREW,
11391 .probe = probe_spi_res2,
11392 .probe_timing = TIMING_ZERO,
11393 .block_erasers = {
11394 {
11395 .eraseblocks = { {4 * 1024, 128} },
11396 .block_erase = spi_block_erase_d7,
11397 }, {
11398 .eraseblocks = { {64 * 1024, 8} },
11399 .block_erase = spi_block_erase_d8,
11400 }, {
11401 .eraseblocks = { {512 * 1024, 1} },
11402 .block_erase = spi_block_erase_c7,
11403 }
11404 },
11405 .printlock = spi_prettyprint_status_register_plain,
11406 .unlock = spi_disable_blockprotect,
11407 .write = spi_chip_write_256,
11408 .read = spi_chip_read,
11409 .voltage = {2700, 3600},
11410 },
11411
11412 {
11413 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011414 .name = "LE25FU406B",
11415 .bustype = BUS_SPI,
11416 .manufacture_id = SANYO_ID,
11417 .model_id = SANYO_LE25FU406B,
11418 .total_size = 512,
11419 .page_size = 256,
11420 .feature_bits = FEATURE_WRSR_WREN,
11421 .tested = TEST_OK_PREW,
11422 .probe = probe_spi_res2,
11423 .probe_timing = TIMING_ZERO,
11424 .block_erasers = {
11425 {
11426 .eraseblocks = { {4 * 1024, 128} },
11427 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011428 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011429 .eraseblocks = { {64 * 1024, 8} },
11430 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011431 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011432 .eraseblocks = { {512 * 1024, 1} },
11433 .block_erase = spi_block_erase_c7,
11434 }
11435 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011436 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011437 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11438 .write = spi_chip_write_256,
11439 .read = spi_chip_read,
11440 .voltage = {2300, 3600},
11441 },
11442
11443 {
11444 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011445 .name = "LE25FU406C/LE25U40CMC",
11446 .bustype = BUS_SPI,
11447 .manufacture_id = SANYO_ID,
11448 .model_id = SANYO_LE25FU406C,
11449 .total_size = 512,
11450 .page_size = 256,
11451 .feature_bits = FEATURE_WRSR_WREN,
11452 .tested = TEST_OK_PR,
11453 .probe = probe_spi_rdid,
11454 .probe_timing = TIMING_ZERO,
11455 .block_erasers = {
11456 {
11457 .eraseblocks = { {4 * 1024, 128} },
11458 .block_erase = spi_block_erase_20,
11459 }, {
11460 .eraseblocks = { {4 * 1024, 128} },
11461 .block_erase = spi_block_erase_d7,
11462 }, {
11463 .eraseblocks = { {64 * 1024, 8} },
11464 .block_erase = spi_block_erase_d8,
11465 }, {
11466 .eraseblocks = { {512 * 1024, 1} },
11467 .block_erase = spi_block_erase_60,
11468 }, {
11469 .eraseblocks = { {512 * 1024, 1} },
11470 .block_erase = spi_block_erase_c7,
11471 }
11472 },
11473 .printlock = spi_prettyprint_status_register_bp2_srwd,
11474 .unlock = spi_disable_blockprotect_bp2_srwd,
11475 .write = spi_chip_write_256,
11476 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11477 .voltage = {2300, 3600},
11478 },
11479
11480 {
11481 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011482 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011483 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011484 .manufacture_id = SANYO_ID,
11485 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011486 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011487 .page_size = 256,
11488 .tested = TEST_UNTESTED,
11489 .probe = probe_spi_rdid,
11490 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011491 .block_erasers =
11492 {
11493 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011494 .eraseblocks = { {256, 1024} },
11495 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011496 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011497 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011498 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011499 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011500 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011501 .block_erase = spi_block_erase_c7,
11502 }
11503 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011504 .printlock = spi_prettyprint_status_register_default_welwip,
11505 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011506 .write = spi_chip_write_256,
11507 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011508 .voltage = {2700, 3600},
11509 },
11510
11511 {
11512 .vendor = "Sanyo",
11513 .name = "LE25FW403A",
11514 .bustype = BUS_SPI,
11515 .manufacture_id = SANYO_ID,
11516 .model_id = SANYO_LE25FW403A,
11517 .total_size = 512,
11518 .page_size = 256,
11519 .tested = TEST_UNTESTED,
11520 .probe = probe_spi_rdid,
11521 .probe_timing = TIMING_ZERO,
11522 .block_erasers = {
11523 {
11524 .eraseblocks = { {256, 2 * 1024} },
11525 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011526 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011527 .eraseblocks = { {64 * 1024, 8} },
11528 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011529 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011530 .eraseblocks = { {512 * 1024, 1} },
11531 .block_erase = spi_block_erase_c7,
11532 }
11533 },
11534 .printlock = spi_prettyprint_status_register_default_welwip,
11535 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11536 .write = spi_chip_write_256,
11537 .read = spi_chip_read,
11538 .voltage = {2700, 3600},
11539 },
11540
11541 {
11542 .vendor = "Sanyo",
11543 .name = "LE25FW418A",
11544 .bustype = BUS_SPI,
11545 .manufacture_id = SANYO_ID,
11546 .model_id = SANYO_LE25FW418A,
11547 .total_size = 512,
11548 .page_size = 256,
11549 .feature_bits = FEATURE_WRSR_WREN,
11550 .tested = TEST_UNTESTED,
11551 .probe = probe_spi_res2,
11552 .probe_timing = TIMING_ZERO,
11553 .block_erasers = {
11554 {
11555 .eraseblocks = { {4 * 1024, 128} },
11556 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011557 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011558 .eraseblocks = { {64 * 1024, 8} },
11559 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011560 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011561 .eraseblocks = { {512 * 1024, 1} },
11562 .block_erase = spi_block_erase_c7,
11563 }
11564 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011565 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011566 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11567 .write = spi_chip_write_256,
11568 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11569 .voltage = {2700, 3600},
11570 },
11571
11572 {
11573 .vendor = "Sanyo",
11574 .name = "LE25FW806",
11575 .bustype = BUS_SPI,
11576 .manufacture_id = SANYO_ID,
11577 .model_id = SANYO_LE25FW806,
11578 .total_size = 1024,
11579 .page_size = 256,
11580 .feature_bits = FEATURE_WRSR_WREN,
11581 .tested = TEST_UNTESTED,
11582 .probe = probe_spi_res2,
11583 .probe_timing = TIMING_ZERO,
11584 .block_erasers = {
11585 {
11586 .eraseblocks = { {4 * 1024, 256} },
11587 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011588 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011589 .eraseblocks = { {4 * 1024, 256} },
11590 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011591 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011592 .eraseblocks = { {64 * 1024, 16} },
11593 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011594 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011595 .eraseblocks = { {1024 * 1024, 1} },
11596 .block_erase = spi_block_erase_c7,
11597 }
11598 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011599 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011600 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11601 .write = spi_chip_write_256,
11602 .read = spi_chip_read,
11603 .voltage = {2700, 3600},
11604 },
11605
11606 {
11607 .vendor = "Sanyo",
11608 .name = "LE25FW808",
11609 .bustype = BUS_SPI,
11610 .manufacture_id = SANYO_ID,
11611 .model_id = SANYO_LE25FW808,
11612 .total_size = 1024,
11613 .page_size = 256,
11614 .feature_bits = FEATURE_WRSR_WREN,
11615 .tested = TEST_UNTESTED,
11616 .probe = probe_spi_res2,
11617 .probe_timing = TIMING_ZERO,
11618 .block_erasers = {
11619 {
11620 .eraseblocks = { {8 * 1024, 128} },
11621 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011622 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011623 .eraseblocks = { {64 * 1024, 16} },
11624 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011625 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011626 .eraseblocks = { {1024 * 1024, 1} },
11627 .block_erase = spi_block_erase_c7,
11628 }
11629 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011630 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011631 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11632 .write = spi_chip_write_256,
11633 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11634 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011635 },
11636
11637 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011638 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011639 .name = "LH28F008BJT-BTLZ1",
11640 .bustype = BUS_PARALLEL,
11641 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011642 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011643 .total_size = 1024,
11644 .page_size = 64 * 1024,
11645 .tested = TEST_OK_PREW,
11646 .probe = probe_82802ab,
11647 .probe_timing = TIMING_ZERO,
11648 .block_erasers =
11649 {
11650 {
11651 .eraseblocks = {
11652 {8 * 1024, 8},
11653 {64 * 1024, 15}
11654 },
11655 .block_erase = erase_block_82802ab,
11656 }, {
11657 .eraseblocks = { {1024 * 1024, 1} },
11658 .block_erase = erase_sector_49lfxxxc,
11659 }
11660 },
11661 .unlock = unlock_lh28f008bjt,
11662 .write = write_82802ab,
11663 .read = read_memmapped,
11664 .voltage = {2700, 3600},
11665 },
11666
11667 {
11668 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011669 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011670 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011671 .manufacture_id = SHARP_ID,
11672 .model_id = SHARP_LHF00L04,
11673 .total_size = 1024,
11674 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011675 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011676 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011677 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011678 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011679 .block_erasers =
11680 {
11681 {
11682 .eraseblocks = {
11683 {64 * 1024, 15},
11684 {8 * 1024, 8}
11685 },
Sean Nelson28accc22010-03-19 18:47:06 +000011686 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011687 }, {
11688 .eraseblocks = {
11689 {1024 * 1024, 1}
11690 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011691 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011692 },
11693 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011694 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011695 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011697 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011698 },
11699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011700 {
11701 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011702 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011703 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011704 .manufacture_id = SPANSION_ID,
11705 .model_id = SPANSION_S25FL004A,
11706 .total_size = 512,
11707 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011708 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011709 .tested = TEST_UNTESTED,
11710 .probe = probe_spi_rdid,
11711 .probe_timing = TIMING_ZERO,
11712 .block_erasers =
11713 {
11714 {
11715 .eraseblocks = { {64 * 1024, 8} },
11716 .block_erase = spi_block_erase_d8,
11717 }, {
11718 .eraseblocks = { {512 * 1024, 1} },
11719 .block_erase = spi_block_erase_c7,
11720 }
11721 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011722 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011723 .unlock = spi_disable_blockprotect,
11724 .write = spi_chip_write_256,
11725 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011726 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011727 },
11728
11729 {
11730 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011731 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011732 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011733 .manufacture_id = SPANSION_ID,
11734 .model_id = SPANSION_S25FL008A,
11735 .total_size = 1024,
11736 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011737 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011738 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011739 .probe = probe_spi_rdid,
11740 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011741 .block_erasers =
11742 {
11743 {
11744 .eraseblocks = { {64 * 1024, 16} },
11745 .block_erase = spi_block_erase_d8,
11746 }, {
11747 .eraseblocks = { {1024 * 1024, 1} },
11748 .block_erase = spi_block_erase_c7,
11749 }
11750 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011751 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011752 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011753 .write = spi_chip_write_256,
11754 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011755 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011756 },
11757
11758 {
11759 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011760 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011761 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011762 .manufacture_id = SPANSION_ID,
11763 .model_id = SPANSION_S25FL016A,
11764 .total_size = 2048,
11765 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011766 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011767 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011768 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011769 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011770 .block_erasers =
11771 {
11772 {
11773 .eraseblocks = { {64 * 1024, 32} },
11774 .block_erase = spi_block_erase_d8,
11775 }, {
11776 .eraseblocks = { {2 * 1024 * 1024, 1} },
11777 .block_erase = spi_block_erase_c7,
11778 }
11779 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011781 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011782 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011783 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011784 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011785 },
11786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011787 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011788 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011789 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011790 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011791 .manufacture_id = SPANSION_ID,
11792 .model_id = SPANSION_S25FL032A,
11793 .total_size = 4096,
11794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011795 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011796 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011797 .probe = probe_spi_rdid,
11798 .probe_timing = TIMING_ZERO,
11799 .block_erasers =
11800 {
11801 {
11802 .eraseblocks = { {64 * 1024, 64} },
11803 .block_erase = spi_block_erase_d8,
11804 }, {
11805 .eraseblocks = { {4 * 1024 * 1024, 1} },
11806 .block_erase = spi_block_erase_c7,
11807 }
11808 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011810 .unlock = spi_disable_blockprotect,
11811 .write = spi_chip_write_256,
11812 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011813 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011814 },
11815
11816 {
11817 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011818 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011819 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011820 .manufacture_id = SPANSION_ID,
11821 .model_id = SPANSION_S25FL064A,
11822 .total_size = 8192,
11823 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011824 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011825 .tested = TEST_OK_PREW,
11826 .probe = probe_spi_rdid,
11827 .probe_timing = TIMING_ZERO,
11828 .block_erasers =
11829 {
11830 {
11831 .eraseblocks = { {64 * 1024, 128} },
11832 .block_erase = spi_block_erase_d8,
11833 }, {
11834 .eraseblocks = { {8 * 1024 * 1024, 1} },
11835 .block_erase = spi_block_erase_c7,
11836 }
11837 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011838 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011839 .unlock = spi_disable_blockprotect,
11840 .write = spi_chip_write_256,
11841 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011842 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011843 },
11844
11845 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011846 .vendor = "Spansion",
11847 .name = "S25FL204K",
11848 .bustype = BUS_SPI,
11849 .manufacture_id = SPANSION_ID,
11850 .model_id = SPANSION_S25FL204,
11851 .total_size = 512,
11852 .page_size = 256,
11853 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011854 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011855 .probe = probe_spi_rdid,
11856 .probe_timing = TIMING_ZERO,
11857 .block_erasers = {
11858 {
11859 .eraseblocks = { {4 * 1024, 128} },
11860 .block_erase = spi_block_erase_20,
11861 }, {
11862 .eraseblocks = { {64 * 1024, 8} },
11863 .block_erase = spi_block_erase_d8,
11864 }, {
11865 .eraseblocks = { { 512 * 1024, 1} },
11866 .block_erase = spi_block_erase_60,
11867 }, {
11868 .eraseblocks = { { 512 * 1024, 1} },
11869 .block_erase = spi_block_erase_c7,
11870 }
11871 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011872 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011873 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011874 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011875 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011876 .voltage = {2700, 3600},
11877 },
11878
11879 {
11880 .vendor = "Spansion",
11881 .name = "S25FL208K",
11882 .bustype = BUS_SPI,
11883 .manufacture_id = SPANSION_ID,
11884 .model_id = SPANSION_S25FL208,
11885 .total_size = 1024,
11886 .page_size = 256,
11887 .feature_bits = FEATURE_WRSR_WREN,
11888 .tested = TEST_UNTESTED,
11889 .probe = probe_spi_rdid,
11890 .probe_timing = TIMING_ZERO,
11891 .block_erasers = {
11892 {
11893 .eraseblocks = { {4 * 1024, 256} },
11894 .block_erase = spi_block_erase_20,
11895 }, {
11896 .eraseblocks = { {64 * 1024, 16} },
11897 .block_erase = spi_block_erase_d8,
11898 }, {
11899 .eraseblocks = { { 1024 * 1024, 1} },
11900 .block_erase = spi_block_erase_60,
11901 }, {
11902 .eraseblocks = { { 1024 * 1024, 1} },
11903 .block_erase = spi_block_erase_c7,
11904 }
11905 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011906 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011907 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011908 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011909 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011910 .voltage = {2700, 3600},
11911 },
11912
11913 {
11914 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011915 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011916 .bustype = BUS_SPI,
11917 .manufacture_id = SPANSION_ID,
11918 .model_id = SPANSION_S25FL216,
11919 .total_size = 2048,
11920 .page_size = 256,
11921 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11923 .tested = TEST_UNTESTED,
11924 .probe = probe_spi_rdid,
11925 .probe_timing = TIMING_ZERO,
11926 .block_erasers = {
11927 {
11928 .eraseblocks = { {4 * 1024, 512} },
11929 .block_erase = spi_block_erase_20,
11930 }, {
11931 .eraseblocks = { {64 * 1024, 32} },
11932 .block_erase = spi_block_erase_d8,
11933 }, {
11934 .eraseblocks = { { 2048 * 1024, 1} },
11935 .block_erase = spi_block_erase_60,
11936 }, {
11937 .eraseblocks = { { 2048 * 1024, 1} },
11938 .block_erase = spi_block_erase_c7,
11939 }
11940 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011941 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011942 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011943 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011944 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011945 .voltage = {2700, 3600},
11946 },
11947
11948 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011949 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011950 .name = "S25FL132K",
11951 .bustype = BUS_SPI,
11952 .manufacture_id = SPANSION_ID,
11953 .model_id = SPANSION_S25FL132K,
11954 .total_size = 4096,
11955 .page_size = 256,
11956 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11958 .tested = TEST_UNTESTED,
11959 .probe = probe_spi_rdid,
11960 .probe_timing = TIMING_ZERO,
11961 .block_erasers = {
11962 {
11963 .eraseblocks = { {4 * 1024, 1024} },
11964 .block_erase = spi_block_erase_20,
11965 }, {
11966 .eraseblocks = { {64 * 1024, 64} },
11967 .block_erase = spi_block_erase_d8,
11968 }, {
11969 .eraseblocks = { { 4096 * 1024, 1} },
11970 .block_erase = spi_block_erase_60,
11971 }, {
11972 .eraseblocks = { { 4096 * 1024, 1} },
11973 .block_erase = spi_block_erase_c7,
11974 }
11975 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011976 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011977 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11978 .write = spi_chip_write_256,
11979 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11980 .voltage = {2700, 3600},
11981 },
11982
11983 {
11984 .vendor = "Spansion",
11985 .name = "S25FL164K",
11986 .bustype = BUS_SPI,
11987 .manufacture_id = SPANSION_ID,
11988 .model_id = SPANSION_S25FL164K,
11989 .total_size = 8192,
11990 .page_size = 256,
11991 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11992 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11993 .tested = TEST_OK_PREW,
11994 .probe = probe_spi_rdid,
11995 .probe_timing = TIMING_ZERO,
11996 .block_erasers = {
11997 {
11998 .eraseblocks = { {4 * 1024, 2048} },
11999 .block_erase = spi_block_erase_20,
12000 }, {
12001 .eraseblocks = { {64 * 1024, 128} },
12002 .block_erase = spi_block_erase_d8,
12003 }, {
12004 .eraseblocks = { { 8192 * 1024, 1} },
12005 .block_erase = spi_block_erase_60,
12006 }, {
12007 .eraseblocks = { { 8192 * 1024, 1} },
12008 .block_erase = spi_block_erase_c7,
12009 }
12010 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012011 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012012 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12013 .write = spi_chip_write_256,
12014 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12015 .voltage = {2700, 3600},
12016 },
12017
12018 {
12019 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000012020 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12021 .bustype = BUS_SPI,
12022 .manufacture_id = SPANSION_ID,
12023 .model_id = SPANSION_S25FL128,
12024 .total_size = 16384,
12025 .page_size = 256,
12026 /* supports 4B addressing */
12027 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12029 .tested = TEST_OK_PREW,
12030 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
12031 .probe = probe_spi_rdid,
12032 .probe_timing = TIMING_ZERO,
12033 .block_erasers = {
12034 {
12035 /* This chip supports erasing of 32 so-called "parameter sectors" with
12036 * opcode 0x20 which may be configured to be on top or bottom of the address
12037 * space. Trying to access an address outside these 4kB blocks does have no
12038 * effect on the memory contents, e.g.
12039 .eraseblocks = {
12040 {4 * 1024, 32},
12041 {64 * 1024, 254} // inaccessible
12042 },
12043 .block_erase = spi_block_erase_20,
12044 }, { */
12045 .eraseblocks = { { 64 * 1024, 256} },
12046 .block_erase = spi_block_erase_d8,
12047 }, {
12048 .eraseblocks = { { 16384 * 1024, 1} },
12049 .block_erase = spi_block_erase_60,
12050 }, {
12051 .eraseblocks = { { 16384 * 1024, 1} },
12052 .block_erase = spi_block_erase_c7,
12053 }
12054 },
12055 .printlock = spi_prettyprint_status_register_bp2_srwd,
12056 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12057 .write = spi_chip_write_256, /* Multi I/O supported */
12058 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12059 .voltage = {2700, 3600},
12060 },
12061
12062 {
12063 .vendor = "Spansion",
12064 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
12065 .bustype = BUS_SPI,
12066 .manufacture_id = SPANSION_ID,
12067 .model_id = SPANSION_S25FL128,
12068 .total_size = 16384,
12069 .page_size = 512,
12070 /* supports 4B addressing */
12071 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12072 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12073 .tested = TEST_UNTESTED,
12074 .probe = probe_spi_rdid,
12075 .probe_timing = TIMING_ZERO,
12076 .block_erasers = {
12077 {
12078 .eraseblocks = { {256 * 1024, 64} },
12079 .block_erase = spi_block_erase_d8,
12080 }, {
12081 .eraseblocks = { { 16384 * 1024, 1} },
12082 .block_erase = spi_block_erase_60,
12083 }, {
12084 .eraseblocks = { { 16384 * 1024, 1} },
12085 .block_erase = spi_block_erase_c7,
12086 }
12087 },
12088 .printlock = spi_prettyprint_status_register_bp2_srwd,
12089 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12090 .write = spi_chip_write_256, /* Multi I/O supported */
12091 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12092 .voltage = {2700, 3600},
12093 },
12094
12095 {
12096 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000012097 .name = "S25FL128P......0", /* uniform 64 kB sectors */
12098 .bustype = BUS_SPI,
12099 .manufacture_id = SPANSION_ID,
12100 .model_id = SPANSION_S25FL128,
12101 .total_size = 16384,
12102 .page_size = 256,
12103 .feature_bits = FEATURE_WRSR_WREN,
12104 .tested = TEST_UNTESTED,
12105 .probe = probe_spi_rdid,
12106 .probe_timing = TIMING_ZERO,
12107 .block_erasers = {
12108 {
12109 .eraseblocks = { {64 * 1024, 256} },
12110 .block_erase = spi_block_erase_20,
12111 }, {
12112 .eraseblocks = { {64 * 1024, 256} },
12113 .block_erase = spi_block_erase_d8,
12114 }, {
12115 .eraseblocks = { { 16384 * 1024, 1} },
12116 .block_erase = spi_block_erase_60,
12117 }, {
12118 .eraseblocks = { { 16384 * 1024, 1} },
12119 .block_erase = spi_block_erase_c7,
12120 }
12121 },
12122 .printlock = spi_prettyprint_status_register_bp3_srwd,
12123 .unlock = spi_disable_blockprotect_bp3_srwd,
12124 .write = spi_chip_write_256,
12125 .read = spi_chip_read, /* Fast read (0x0B) supported */
12126 .voltage = {2700, 3600},
12127 },
12128
12129 {
12130 .vendor = "Spansion",
12131 .name = "S25FL128P......1", /* uniform 256kB sectors */
12132 .bustype = BUS_SPI,
12133 .manufacture_id = SPANSION_ID,
12134 .model_id = SPANSION_S25FL128,
12135 .total_size = 16384,
12136 .page_size = 256,
12137 .feature_bits = FEATURE_WRSR_WREN,
12138 .tested = TEST_UNTESTED,
12139 .probe = probe_spi_rdid,
12140 .probe_timing = TIMING_ZERO,
12141 .block_erasers = {
12142 {
12143 .eraseblocks = { {256 * 1024, 64} },
12144 .block_erase = spi_block_erase_d8,
12145 }, {
12146 .eraseblocks = { { 16384 * 1024, 1} },
12147 .block_erase = spi_block_erase_c7,
12148 }
12149 },
12150 .printlock = spi_prettyprint_status_register_bp2_srwd,
12151 .unlock = spi_disable_blockprotect_bp2_srwd,
12152 .write = spi_chip_write_256,
12153 .read = spi_chip_read, /* Fast read (0x0B) supported */
12154 .voltage = {2700, 3600},
12155 },
12156
12157 {
12158 .vendor = "Spansion",
12159 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012160 .bustype = BUS_SPI,
12161 .manufacture_id = SPANSION_ID,
12162 .model_id = SPANSION_S25FL128,
12163 .total_size = 16384,
12164 .page_size = 256,
12165 /* supports 4B addressing */
12166 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12167 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012168 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012169 .probe = probe_spi_rdid,
12170 .probe_timing = TIMING_ZERO,
12171 .block_erasers = {
12172 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012173 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12174 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12175 * have no effect on the memory contents, but sets a flag in the SR.
12176 .eraseblocks = {
12177 {4 * 1024, 32},
12178 {64 * 1024, 254} // inaccessible
12179 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012180 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012181 }, { */
12182 .eraseblocks = { { 64 * 1024, 256} },
12183 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012184 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012185 .eraseblocks = { { 16384 * 1024, 1} },
12186 .block_erase = spi_block_erase_60,
12187 }, {
12188 .eraseblocks = { { 16384 * 1024, 1} },
12189 .block_erase = spi_block_erase_c7,
12190 }
12191 },
12192 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12193 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12194 .write = spi_chip_write_256, /* Multi I/O supported */
12195 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12196 .voltage = {2700, 3600},
12197 },
12198
12199 {
12200 .vendor = "Spansion",
12201 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12202 .bustype = BUS_SPI,
12203 .manufacture_id = SPANSION_ID,
12204 .model_id = SPANSION_S25FL128,
12205 .total_size = 16384,
12206 .page_size = 512,
12207 /* supports 4B addressing */
12208 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12210 .tested = TEST_UNTESTED,
12211 .probe = probe_spi_rdid,
12212 .probe_timing = TIMING_ZERO,
12213 .block_erasers = {
12214 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012215 .eraseblocks = { {256 * 1024, 64} },
12216 .block_erase = spi_block_erase_d8,
12217 }, {
12218 .eraseblocks = { { 16384 * 1024, 1} },
12219 .block_erase = spi_block_erase_60,
12220 }, {
12221 .eraseblocks = { { 16384 * 1024, 1} },
12222 .block_erase = spi_block_erase_c7,
12223 }
12224 },
12225 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12226 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12227 .write = spi_chip_write_256, /* Multi I/O supported */
12228 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12229 .voltage = {2700, 3600},
12230 },
12231
12232 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012233 .vendor = "Spansion",
12234 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12235 .bustype = BUS_SPI,
12236 .manufacture_id = SPANSION_ID,
12237 .model_id = SPANSION_S25FL128,
12238 .total_size = 16384,
12239 .page_size = 256,
12240 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12241 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12242 .tested = TEST_OK_PREW,
12243 .probe = probe_spi_rdid,
12244 .probe_timing = TIMING_ZERO,
12245 .block_erasers = {
12246 {
12247 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12248 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12249 * effect on the memory contents, but sets a flag in the SR.
12250 .eraseblocks = {
12251 {4 * 1024, 32},
12252 {64 * 1024, 254} // inaccessible
12253 },
12254 .block_erase = spi_block_erase_20,
12255 }, { */
12256 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12257 .eraseblocks = {
12258 {8 * 1024, 16},
12259 {64 * 1024, 254} // inaccessible
12260 },
12261 .block_erase = spi_block_erase_40,
12262 }, { */
12263 .eraseblocks = { { 64 * 1024, 256} },
12264 .block_erase = spi_block_erase_d8,
12265 }, {
12266 .eraseblocks = { { 16384 * 1024, 1} },
12267 .block_erase = spi_block_erase_60,
12268 }, {
12269 .eraseblocks = { { 16384 * 1024, 1} },
12270 .block_erase = spi_block_erase_c7,
12271 }
12272 },
12273 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12274 .unlock = spi_disable_blockprotect_bp2_srwd,
12275 .write = spi_chip_write_256, /* Multi I/O supported */
12276 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12277 .voltage = {2700, 3600},
12278 },
12279
12280 {
12281 .vendor = "Spansion",
12282 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12283 .bustype = BUS_SPI,
12284 .manufacture_id = SPANSION_ID,
12285 .model_id = SPANSION_S25FL128,
12286 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012287 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012288 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12289 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12290 .tested = TEST_UNTESTED,
12291 .probe = probe_spi_rdid,
12292 .probe_timing = TIMING_ZERO,
12293 .block_erasers = {
12294 {
12295 .eraseblocks = { {256 * 1024, 64} },
12296 .block_erase = spi_block_erase_d8,
12297 }, {
12298 .eraseblocks = { { 16384 * 1024, 1} },
12299 .block_erase = spi_block_erase_60,
12300 }, {
12301 .eraseblocks = { { 16384 * 1024, 1} },
12302 .block_erase = spi_block_erase_c7,
12303 }
12304 },
12305 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12306 .unlock = spi_disable_blockprotect_bp2_srwd,
12307 .write = spi_chip_write_256, /* Multi I/O supported */
12308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12309 .voltage = {2700, 3600},
12310 },
12311
12312 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012313 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012314 .name = "SST25LF020A",
12315 .bustype = BUS_SPI,
12316 .manufacture_id = SST_ID,
12317 .model_id = SST_SST25VF020_REMS,
12318 .total_size = 256,
12319 .page_size = 256,
12320 .feature_bits = FEATURE_WRSR_EWSR,
12321 .tested = TEST_OK_PREW,
12322 .probe = probe_spi_rems,
12323 .probe_timing = TIMING_ZERO,
12324 .block_erasers =
12325 {
12326 {
12327 .eraseblocks = { {4 * 1024, 64} },
12328 .block_erase = spi_block_erase_20,
12329 }, {
12330 .eraseblocks = { {32 * 1024, 8} },
12331 .block_erase = spi_block_erase_52,
12332 }, {
12333 .eraseblocks = { {256 * 1024, 1} },
12334 .block_erase = spi_block_erase_60,
12335 },
12336 },
12337 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12338 .unlock = spi_disable_blockprotect,
12339 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12340 .read = spi_chip_read, /* Fast read (0x0B) supported */
12341 .voltage = {2700, 3600},
12342 },
12343
12344 {
12345 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012346 .name = "SST25LF040A",
12347 .bustype = BUS_SPI,
12348 .manufacture_id = SST_ID,
12349 .model_id = SST_SST25VF040_REMS,
12350 .total_size = 512,
12351 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012352 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012353 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012354 .probe = probe_spi_res2,
12355 .probe_timing = TIMING_ZERO,
12356 .block_erasers =
12357 {
12358 {
12359 .eraseblocks = { {4 * 1024, 128} },
12360 .block_erase = spi_block_erase_20,
12361 }, {
12362 .eraseblocks = { {32 * 1024, 16} },
12363 .block_erase = spi_block_erase_52,
12364 }, {
12365 .eraseblocks = { {512 * 1024, 1} },
12366 .block_erase = spi_block_erase_60,
12367 },
12368 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012369 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012370 .unlock = spi_disable_blockprotect,
12371 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12372 .read = spi_chip_read,
12373 .voltage = {3000, 3600},
12374 },
12375
12376 {
12377 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012378 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012379 .bustype = BUS_SPI,
12380 .manufacture_id = SST_ID,
12381 .model_id = SST_SST25VF080_REMS,
12382 .total_size = 1024,
12383 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012384 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012385 .tested = TEST_UNTESTED,
12386 .probe = probe_spi_res2,
12387 .probe_timing = TIMING_ZERO,
12388 .block_erasers =
12389 {
12390 {
12391 .eraseblocks = { {4 * 1024, 256} },
12392 .block_erase = spi_block_erase_20,
12393 }, {
12394 .eraseblocks = { {32 * 1024, 32} },
12395 .block_erase = spi_block_erase_52,
12396 }, {
12397 .eraseblocks = { {1024 * 1024, 1} },
12398 .block_erase = spi_block_erase_60,
12399 },
12400 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012401 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012402 .unlock = spi_disable_blockprotect,
12403 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12404 .read = spi_chip_read,
12405 .voltage = {3000, 3600},
12406 },
12407
12408 {
12409 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012410 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012411 .bustype = BUS_SPI,
12412 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012413 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012414 .total_size = 64,
12415 .page_size = 256,
12416 .feature_bits = FEATURE_WRSR_EWSR,
12417 .tested = TEST_OK_PREW,
12418 .probe = probe_spi_rems,
12419 .probe_timing = TIMING_ZERO,
12420 .block_erasers =
12421 {
12422 {
12423 .eraseblocks = { {4 * 1024, 16} },
12424 .block_erase = spi_block_erase_20,
12425 }, {
12426 .eraseblocks = { {32 * 1024, 2} },
12427 .block_erase = spi_block_erase_52,
12428 }, {
12429 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012430 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012431 }, {
12432 .eraseblocks = { {64 * 1024, 1} },
12433 .block_erase = spi_block_erase_60,
12434 }, {
12435 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012436 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012437 },
12438 },
12439 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12440 .unlock = spi_disable_blockprotect,
12441 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012442 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012443 .voltage = {2700, 3600},
12444 },
12445
12446 {
12447 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012448 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012449 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012450 .manufacture_id = SST_ID,
12451 .model_id = SST_SST25VF010_REMS,
12452 .total_size = 128,
12453 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012454 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012455 .tested = TEST_OK_PREW,
12456 .probe = probe_spi_rems,
12457 .probe_timing = TIMING_ZERO,
12458 .block_erasers =
12459 {
12460 {
12461 .eraseblocks = { {4 * 1024, 32} },
12462 .block_erase = spi_block_erase_20,
12463 }, {
12464 .eraseblocks = { {32 * 1024, 4} },
12465 .block_erase = spi_block_erase_52,
12466 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012467 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012468 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012469 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012470 .eraseblocks = { {128 * 1024, 1} },
12471 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012472 }, {
12473 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012474 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012475 },
12476 },
12477 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12478 .unlock = spi_disable_blockprotect,
12479 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012480 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012481 .voltage = {2700, 3600},
12482 },
12483
12484 {
12485 .vendor = "SST",
12486 .name = "SST25VF020",
12487 .bustype = BUS_SPI,
12488 .manufacture_id = SST_ID,
12489 .model_id = SST_SST25VF020_REMS,
12490 .total_size = 256,
12491 .page_size = 256,
12492 .feature_bits = FEATURE_WRSR_EWSR,
12493 .tested = TEST_UNTESTED,
12494 .probe = probe_spi_rems,
12495 .probe_timing = TIMING_ZERO,
12496 .block_erasers =
12497 {
12498 {
12499 .eraseblocks = { {4 * 1024, 64} },
12500 .block_erase = spi_block_erase_20,
12501 }, {
12502 .eraseblocks = { {32 * 1024, 8} },
12503 .block_erase = spi_block_erase_52,
12504 }, {
12505 .eraseblocks = { {256 * 1024, 1} },
12506 .block_erase = spi_block_erase_60,
12507 },
12508 },
12509 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12510 .unlock = spi_disable_blockprotect,
12511 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12512 .read = spi_chip_read, /* only */
12513 .voltage = {2700, 3600},
12514 },
12515
12516 {
12517 .vendor = "SST",
12518 .name = "SST25VF020B",
12519 .bustype = BUS_SPI,
12520 .manufacture_id = SST_ID,
12521 .model_id = SST_SST25VF020B,
12522 .total_size = 256,
12523 .page_size = 256,
12524 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012525 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012526 .probe = probe_spi_rdid,
12527 .probe_timing = TIMING_ZERO,
12528 .block_erasers =
12529 {
12530 {
12531 .eraseblocks = { {4 * 1024, 64} },
12532 .block_erase = spi_block_erase_20,
12533 }, {
12534 .eraseblocks = { {32 * 1024, 8} },
12535 .block_erase = spi_block_erase_52,
12536 }, {
12537 .eraseblocks = { {64 * 1024, 4} },
12538 .block_erase = spi_block_erase_d8,
12539 }, {
12540 .eraseblocks = { {256 * 1024, 1} },
12541 .block_erase = spi_block_erase_60,
12542 }, {
12543 .eraseblocks = { {256 * 1024, 1} },
12544 .block_erase = spi_block_erase_c7,
12545 },
12546 },
12547 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12548 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12549 .write = spi_aai_write, /* AAI supported (0xAD) */
12550 .read = spi_chip_read, /* Fast read (0x0B) supported */
12551 .voltage = {2700, 3600},
12552 },
12553
12554 {
12555 .vendor = "SST",
12556 .name = "SST25VF040",
12557 .bustype = BUS_SPI,
12558 .manufacture_id = SST_ID,
12559 .model_id = SST_SST25VF040_REMS,
12560 .total_size = 512,
12561 .page_size = 256,
12562 .feature_bits = FEATURE_WRSR_EWSR,
12563 .tested = TEST_OK_PR,
12564 .probe = probe_spi_rems,
12565 .probe_timing = TIMING_ZERO,
12566 .block_erasers =
12567 {
12568 {
12569 .eraseblocks = { {4 * 1024, 128} },
12570 .block_erase = spi_block_erase_20,
12571 }, {
12572 .eraseblocks = { {32 * 1024, 16} },
12573 .block_erase = spi_block_erase_52,
12574 }, {
12575 .eraseblocks = { {512 * 1024, 1} },
12576 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012577 },
12578 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012579 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012580 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012581 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12582 .read = spi_chip_read,
12583 .voltage = {2700, 3600},
12584 },
12585
12586 {
12587 .vendor = "SST",
12588 .name = "SST25VF040B",
12589 .bustype = BUS_SPI,
12590 .manufacture_id = SST_ID,
12591 .model_id = SST_SST25VF040B,
12592 .total_size = 512,
12593 .page_size = 256,
12594 .feature_bits = FEATURE_WRSR_EWSR,
12595 .tested = TEST_OK_PREW,
12596 .probe = probe_spi_rdid,
12597 .probe_timing = TIMING_ZERO,
12598 .block_erasers =
12599 {
12600 {
12601 .eraseblocks = { {4 * 1024, 128} },
12602 .block_erase = spi_block_erase_20,
12603 }, {
12604 .eraseblocks = { {32 * 1024, 16} },
12605 .block_erase = spi_block_erase_52,
12606 }, {
12607 .eraseblocks = { {64 * 1024, 8} },
12608 .block_erase = spi_block_erase_d8,
12609 }, {
12610 .eraseblocks = { {512 * 1024, 1} },
12611 .block_erase = spi_block_erase_60,
12612 }, {
12613 .eraseblocks = { {512 * 1024, 1} },
12614 .block_erase = spi_block_erase_c7,
12615 },
12616 },
12617 .printlock = spi_prettyprint_status_register_sst25vf040b,
12618 .unlock = spi_disable_blockprotect,
12619 .write = spi_aai_write, /* AAI supported (0xAD) */
12620 .read = spi_chip_read, /* Fast read (0x0B) supported */
12621 .voltage = {2700, 3600},
12622 },
12623
12624 {
12625 .vendor = "SST",
12626 .name = "SST25VF040B.REMS",
12627 .bustype = BUS_SPI,
12628 .manufacture_id = SST_ID,
12629 .model_id = SST_SST25VF040B_REMS,
12630 .total_size = 512,
12631 .page_size = 256,
12632 .feature_bits = FEATURE_WRSR_EWSR,
12633 .tested = TEST_OK_PREW,
12634 .probe = probe_spi_rems,
12635 .probe_timing = TIMING_ZERO,
12636 .block_erasers =
12637 {
12638 {
12639 .eraseblocks = { {4 * 1024, 128} },
12640 .block_erase = spi_block_erase_20,
12641 }, {
12642 .eraseblocks = { {32 * 1024, 16} },
12643 .block_erase = spi_block_erase_52,
12644 }, {
12645 .eraseblocks = { {64 * 1024, 8} },
12646 .block_erase = spi_block_erase_d8,
12647 }, {
12648 .eraseblocks = { {512 * 1024, 1} },
12649 .block_erase = spi_block_erase_60,
12650 }, {
12651 .eraseblocks = { {512 * 1024, 1} },
12652 .block_erase = spi_block_erase_c7,
12653 },
12654 },
12655 .printlock = spi_prettyprint_status_register_sst25vf040b,
12656 .unlock = spi_disable_blockprotect,
12657 .write = spi_aai_write,
12658 .read = spi_chip_read,
12659 .voltage = {2700, 3600},
12660 },
12661
12662 {
12663 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012664 .name = "SST25WF020A",
12665 .bustype = BUS_SPI,
12666 .manufacture_id = SANYO_ID, /* See flashchips.h */
12667 .model_id = SST_SST25WF020A,
12668 .total_size = 256,
12669 .page_size = 256,
12670 .feature_bits = FEATURE_WRSR_WREN,
12671 .tested = TEST_UNTESTED,
12672 .probe = probe_spi_rdid,
12673 .probe_timing = TIMING_ZERO,
12674 .block_erasers =
12675 {
12676 {
12677 .eraseblocks = { {4 * 1024, 64} },
12678 .block_erase = spi_block_erase_20,
12679 }, {
12680 .eraseblocks = { {64 * 1024, 4} },
12681 .block_erase = spi_block_erase_d8,
12682 }, {
12683 .eraseblocks = { {256 * 1024, 1} },
12684 .block_erase = spi_block_erase_60,
12685 }, {
12686 .eraseblocks = { {256 * 1024, 1} },
12687 .block_erase = spi_block_erase_c7,
12688 },
12689 },
12690 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12691 .unlock = spi_disable_blockprotect_bp2_srwd,
12692 .write = spi_chip_write_256,
12693 .read = spi_chip_read, /* Fast read (0x0B) supported */
12694 .voltage = {1650, 1950},
12695 },
12696
12697 {
12698 .vendor = "SST",
12699 .name = "SST25WF040B",
12700 .bustype = BUS_SPI,
12701 .manufacture_id = SANYO_ID, /* See flashchips.h */
12702 .model_id = SST_SST25WF040B,
12703 .total_size = 512,
12704 .page_size = 256,
12705 .feature_bits = FEATURE_WRSR_WREN,
12706 .tested = TEST_UNTESTED,
12707 .probe = probe_spi_rdid,
12708 .probe_timing = TIMING_ZERO,
12709 .block_erasers =
12710 {
12711 {
12712 .eraseblocks = { {4 * 1024, 128} },
12713 .block_erase = spi_block_erase_20,
12714 }, {
12715 .eraseblocks = { {64 * 1024, 8} },
12716 .block_erase = spi_block_erase_d8,
12717 }, {
12718 .eraseblocks = { {512 * 1024, 1} },
12719 .block_erase = spi_block_erase_60,
12720 }, {
12721 .eraseblocks = { {512 * 1024, 1} },
12722 .block_erase = spi_block_erase_c7,
12723 },
12724 },
12725 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12726 .unlock = spi_disable_blockprotect_bp2_srwd,
12727 .write = spi_chip_write_256,
12728 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12729 .voltage = {1650, 1950},
12730 },
12731
12732 {
12733 .vendor = "SST",
12734 .name = "SST25WF080B",
12735 .bustype = BUS_SPI,
12736 .manufacture_id = SANYO_ID, /* See flashchips.h */
12737 .model_id = SST_SST25WF080B,
12738 .total_size = 1024,
12739 .page_size = 256,
12740 .feature_bits = FEATURE_WRSR_WREN,
12741 .tested = TEST_OK_PREW,
12742 .probe = probe_spi_rdid,
12743 .probe_timing = TIMING_ZERO,
12744 .block_erasers =
12745 {
12746 {
12747 .eraseblocks = { {4 * 1024, 256} },
12748 .block_erase = spi_block_erase_20,
12749 }, {
12750 .eraseblocks = { {64 * 1024, 16} },
12751 .block_erase = spi_block_erase_d8,
12752 }, {
12753 .eraseblocks = { {1024 * 1024, 1} },
12754 .block_erase = spi_block_erase_60,
12755 }, {
12756 .eraseblocks = { {1024 * 1024, 1} },
12757 .block_erase = spi_block_erase_c7,
12758 },
12759 },
12760 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12761 .unlock = spi_disable_blockprotect_bp2_srwd,
12762 .write = spi_chip_write_256,
12763 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12764 .voltage = {1650, 1950},
12765 },
12766
12767 {
12768 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012769 .name = "SST25VF080B",
12770 .bustype = BUS_SPI,
12771 .manufacture_id = SST_ID,
12772 .model_id = SST_SST25VF080B,
12773 .total_size = 1024,
12774 .page_size = 256,
12775 .feature_bits = FEATURE_WRSR_EWSR,
12776 .tested = TEST_OK_PREW,
12777 .probe = probe_spi_rdid,
12778 .probe_timing = TIMING_ZERO,
12779 .block_erasers =
12780 {
12781 {
12782 .eraseblocks = { {4 * 1024, 256} },
12783 .block_erase = spi_block_erase_20,
12784 }, {
12785 .eraseblocks = { {32 * 1024, 32} },
12786 .block_erase = spi_block_erase_52,
12787 }, {
12788 .eraseblocks = { {64 * 1024, 16} },
12789 .block_erase = spi_block_erase_d8,
12790 }, {
12791 .eraseblocks = { {1024 * 1024, 1} },
12792 .block_erase = spi_block_erase_60,
12793 }, {
12794 .eraseblocks = { {1024 * 1024, 1} },
12795 .block_erase = spi_block_erase_c7,
12796 },
12797 },
12798 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12799 .unlock = spi_disable_blockprotect,
12800 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012801 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012802 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012803 },
12804
12805 {
12806 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012807 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012808 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012809 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012810 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012811 .total_size = 2048,
12812 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012813 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012814 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012815 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012816 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012817 .block_erasers =
12818 {
12819 {
12820 .eraseblocks = { {4 * 1024, 512} },
12821 .block_erase = spi_block_erase_20,
12822 }, {
12823 .eraseblocks = { {32 * 1024, 64} },
12824 .block_erase = spi_block_erase_52,
12825 }, {
12826 .eraseblocks = { {64 * 1024, 32} },
12827 .block_erase = spi_block_erase_d8,
12828 }, {
12829 .eraseblocks = { {2 * 1024 * 1024, 1} },
12830 .block_erase = spi_block_erase_60,
12831 }, {
12832 .eraseblocks = { {2 * 1024 * 1024, 1} },
12833 .block_erase = spi_block_erase_c7,
12834 },
12835 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012836 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012837 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012838 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012839 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012840 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012841 },
12842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012843 {
12844 .vendor = "SST",
12845 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012846 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012847 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012848 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 .total_size = 4096,
12850 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012851 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012852 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012853 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012854 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012855 .block_erasers =
12856 {
12857 {
12858 .eraseblocks = { {4 * 1024, 1024} },
12859 .block_erase = spi_block_erase_20,
12860 }, {
12861 .eraseblocks = { {32 * 1024, 128} },
12862 .block_erase = spi_block_erase_52,
12863 }, {
12864 .eraseblocks = { {64 * 1024, 64} },
12865 .block_erase = spi_block_erase_d8,
12866 }, {
12867 .eraseblocks = { {4 * 1024 * 1024, 1} },
12868 .block_erase = spi_block_erase_60,
12869 }, {
12870 .eraseblocks = { {4 * 1024 * 1024, 1} },
12871 .block_erase = spi_block_erase_c7,
12872 },
12873 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012874 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012875 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012876 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012877 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012878 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012879 },
12880
12881 {
12882 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012883 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012884 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012885 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012886 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012887 .total_size = 8192,
12888 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012889 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012890 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012891 .probe = probe_spi_rdid,
12892 .probe_timing = TIMING_ZERO,
12893 .block_erasers =
12894 {
12895 {
12896 .eraseblocks = { {4 * 1024, 2048} },
12897 .block_erase = spi_block_erase_20,
12898 }, {
12899 .eraseblocks = { {32 * 1024, 256} },
12900 .block_erase = spi_block_erase_52,
12901 }, {
12902 .eraseblocks = { {64 * 1024, 128} },
12903 .block_erase = spi_block_erase_d8,
12904 }, {
12905 .eraseblocks = { {8 * 1024 * 1024, 1} },
12906 .block_erase = spi_block_erase_60,
12907 }, {
12908 .eraseblocks = { {8 * 1024 * 1024, 1} },
12909 .block_erase = spi_block_erase_c7,
12910 },
12911 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012912 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012913 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012914 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012916 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012917 },
12918
12919 {
12920 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070012921 .name = "SST26VF016B(A)",
12922 .bustype = BUS_SPI,
12923 .manufacture_id = SST_ID,
12924 .model_id = SST_SST26VF016B,
12925 .total_size = 2048,
12926 .page_size = 256,
12927 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12928 .tested = TEST_OK_PREW,
12929 .probe = probe_spi_rdid,
12930 .probe_timing = TIMING_ZERO,
12931 .block_erasers =
12932 {
12933 {
12934 .eraseblocks = { {4 * 1024, 512} },
12935 .block_erase = spi_block_erase_20,
12936 }, {
12937 .eraseblocks = {
12938 {8 * 1024, 4},
12939 {32 * 1024, 1},
12940 {64 * 1024, 30},
12941 {32 * 1024, 1},
12942 {8 * 1024, 4},
12943 },
12944 .block_erase = spi_block_erase_d8,
12945 }, {
12946 .eraseblocks = { {2 * 1024 * 1024, 1} },
12947 .block_erase = spi_block_erase_c7,
12948 },
12949 },
12950 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12951 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12952 .write = spi_chip_write_256, /* Multi I/O supported */
12953 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12954 .voltage = {2700, 3600},
12955 },
12956 {
12957 .vendor = "SST",
12958 .name = "SST26VF032B(A)",
12959 .bustype = BUS_SPI,
12960 .manufacture_id = SST_ID,
12961 .model_id = SST_SST26VF032B,
12962 .total_size = 4096,
12963 .page_size = 256,
12964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12965 .tested = TEST_UNTESTED,
12966 .probe = probe_spi_rdid,
12967 .probe_timing = TIMING_ZERO,
12968 .block_erasers =
12969 {
12970 {
12971 .eraseblocks = { {4 * 1024, 1024} },
12972 .block_erase = spi_block_erase_20,
12973 }, {
12974 .eraseblocks = {
12975 {8 * 1024, 4},
12976 {32 * 1024, 1},
12977 {64 * 1024, 62},
12978 {32 * 1024, 1},
12979 {8 * 1024, 4},
12980 },
12981 .block_erase = spi_block_erase_d8,
12982 }, {
12983 .eraseblocks = { {4 * 1024 * 1024, 1} },
12984 .block_erase = spi_block_erase_c7,
12985 },
12986 },
12987 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12988 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12989 .write = spi_chip_write_256, /* Multi I/O supported */
12990 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12991 .voltage = {2700, 3600},
12992 },
12993
12994
12995 {
12996 .vendor = "SST",
12997 .name = "SST26VF064B(A)",
12998 .bustype = BUS_SPI,
12999 .manufacture_id = SST_ID,
13000 .model_id = SST_SST26VF064B,
13001 .total_size = 8192,
13002 .page_size = 256,
13003 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13004 .tested = TEST_OK_PREW,
13005 .probe = probe_spi_rdid,
13006 .probe_timing = TIMING_ZERO,
13007 .block_erasers =
13008 {
13009 {
13010 .eraseblocks = { {4 * 1024, 2048} },
13011 .block_erase = spi_block_erase_20,
13012 }, {
13013 .eraseblocks = {
13014 {8 * 1024, 4},
13015 {32 * 1024, 1},
13016 {64 * 1024, 126},
13017 {32 * 1024, 1},
13018 {8 * 1024, 4},
13019 },
13020 .block_erase = spi_block_erase_d8,
13021 }, {
13022 .eraseblocks = { {8 * 1024 * 1024, 1} },
13023 .block_erase = spi_block_erase_c7,
13024 },
13025 },
13026 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13027 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13028 .write = spi_chip_write_256, /* Multi I/O supported */
13029 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13030 .voltage = {2700, 3600},
13031 },
13032
13033 {
13034 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000013035 .name = "SST25WF512",
13036 .bustype = BUS_SPI,
13037 .manufacture_id = SST_ID,
13038 .model_id = SST_SST25WF512,
13039 .total_size = 64,
13040 .page_size = 256,
13041 .feature_bits = FEATURE_WRSR_EITHER,
13042 .tested = TEST_UNTESTED,
13043 .probe = probe_spi_rdid,
13044 .probe_timing = TIMING_ZERO,
13045 .block_erasers =
13046 {
13047 {
13048 .eraseblocks = { {4 * 1024, 16} },
13049 .block_erase = spi_block_erase_20,
13050 }, {
13051 .eraseblocks = { {32 * 1024, 2} },
13052 .block_erase = spi_block_erase_52,
13053 }, {
13054 .eraseblocks = { {1024 * 64, 1} },
13055 .block_erase = spi_block_erase_60,
13056 }, {
13057 .eraseblocks = { {1024 * 64, 1} },
13058 .block_erase = spi_block_erase_c7,
13059 },
13060 },
Jason Harper43ddef02014-05-04 00:55:24 +000013061 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13062 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013063 .write = spi_aai_write,
13064 .read = spi_chip_read, /* Fast read (0x0B) supported */
13065 .voltage = {1650, 1950},
13066 },
13067
13068 {
13069 .vendor = "SST",
13070 .name = "SST25WF010",
13071 .bustype = BUS_SPI,
13072 .manufacture_id = SST_ID,
13073 .model_id = SST_SST25WF010,
13074 .total_size = 128,
13075 .page_size = 256,
13076 .feature_bits = FEATURE_WRSR_EITHER,
13077 .tested = TEST_UNTESTED,
13078 .probe = probe_spi_rdid,
13079 .probe_timing = TIMING_ZERO,
13080 .block_erasers =
13081 {
13082 {
13083 .eraseblocks = { {4 * 1024, 32} },
13084 .block_erase = spi_block_erase_20,
13085 }, {
13086 .eraseblocks = { {32 * 1024, 4} },
13087 .block_erase = spi_block_erase_52,
13088 }, {
13089 .eraseblocks = { {1024 * 128, 1} },
13090 .block_erase = spi_block_erase_60,
13091 }, {
13092 .eraseblocks = { {1024 * 128, 1} },
13093 .block_erase = spi_block_erase_c7,
13094 },
13095 },
Jason Harper43ddef02014-05-04 00:55:24 +000013096 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13097 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013098 .write = spi_aai_write,
13099 .read = spi_chip_read, /* Fast read (0x0B) supported */
13100 .voltage = {1650, 1950},
13101 },
13102
13103 {
13104 .vendor = "SST",
13105 .name = "SST25WF020",
13106 .bustype = BUS_SPI,
13107 .manufacture_id = SST_ID,
13108 .model_id = SST_SST25WF020,
13109 .total_size = 256,
13110 .page_size = 256,
13111 .feature_bits = FEATURE_WRSR_EITHER,
13112 .tested = TEST_UNTESTED,
13113 .probe = probe_spi_rdid,
13114 .probe_timing = TIMING_ZERO,
13115 .block_erasers =
13116 {
13117 {
13118 .eraseblocks = { {4 * 1024, 64} },
13119 .block_erase = spi_block_erase_20,
13120 }, {
13121 .eraseblocks = { {32 * 1024, 8} },
13122 .block_erase = spi_block_erase_52,
13123 }, {
13124 .eraseblocks = { {64 * 1024, 4} },
13125 .block_erase = spi_block_erase_d8,
13126 }, {
13127 .eraseblocks = { {1024 * 256, 1} },
13128 .block_erase = spi_block_erase_60,
13129 }, {
13130 .eraseblocks = { {1024 * 256, 1} },
13131 .block_erase = spi_block_erase_c7,
13132 },
13133 },
Jason Harper43ddef02014-05-04 00:55:24 +000013134 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13135 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013136 .write = spi_aai_write,
13137 .read = spi_chip_read, /* Fast read (0x0B) supported */
13138 .voltage = {1650, 1950},
13139 },
13140
13141 {
13142 .vendor = "SST",
13143 .name = "SST25WF040",
13144 .bustype = BUS_SPI,
13145 .manufacture_id = SST_ID,
13146 .model_id = SST_SST25WF040,
13147 .total_size = 512,
13148 .page_size = 256,
13149 .feature_bits = FEATURE_WRSR_EITHER,
13150 .tested = TEST_UNTESTED,
13151 .probe = probe_spi_rdid,
13152 .probe_timing = TIMING_ZERO,
13153 .block_erasers =
13154 {
13155 {
13156 .eraseblocks = { {4 * 1024, 128} },
13157 .block_erase = spi_block_erase_20,
13158 }, {
13159 .eraseblocks = { {32 * 1024, 16} },
13160 .block_erase = spi_block_erase_52,
13161 }, {
13162 .eraseblocks = { {64 * 1024, 8} },
13163 .block_erase = spi_block_erase_d8,
13164 }, {
13165 .eraseblocks = { {1024 * 512, 1} },
13166 .block_erase = spi_block_erase_60,
13167 }, {
13168 .eraseblocks = { {1024 * 512, 1} },
13169 .block_erase = spi_block_erase_c7,
13170 },
13171 },
Jason Harper43ddef02014-05-04 00:55:24 +000013172 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13173 .unlock = spi_disable_blockprotect_bp2_srwd,
13174 .write = spi_aai_write,
13175 .read = spi_chip_read, /* Fast read (0x0B) supported */
13176 .voltage = {1650, 1950},
13177 },
13178
13179 {
13180 .vendor = "SST",
13181 .name = "SST25WF080",
13182 .bustype = BUS_SPI,
13183 .manufacture_id = SST_ID,
13184 .model_id = SST_SST25WF080,
13185 .total_size = 1024,
13186 .page_size = 256,
13187 .feature_bits = FEATURE_WRSR_EITHER,
13188 .tested = TEST_OK_PREW,
13189 .probe = probe_spi_rdid,
13190 .probe_timing = TIMING_ZERO,
13191 .block_erasers =
13192 {
13193 {
13194 .eraseblocks = { {4 * 1024, 256} },
13195 .block_erase = spi_block_erase_20,
13196 }, {
13197 .eraseblocks = { {32 * 1024, 32} },
13198 .block_erase = spi_block_erase_52,
13199 }, {
13200 .eraseblocks = { {64 * 1024, 16} },
13201 .block_erase = spi_block_erase_d8,
13202 }, {
13203 .eraseblocks = { {1024 * 1024, 1} },
13204 .block_erase = spi_block_erase_60,
13205 }, {
13206 .eraseblocks = { {1024 * 1024, 1} },
13207 .block_erase = spi_block_erase_c7,
13208 },
13209 },
13210 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13211 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013212 .write = spi_aai_write,
13213 .read = spi_chip_read, /* Fast read (0x0B) supported */
13214 .voltage = {1650, 1950},
13215 },
13216
13217 {
13218 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013219 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013220 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013221 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013222 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013223 .total_size = 512,
13224 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013225 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013226 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013227 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013228 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013229 .block_erasers =
13230 {
13231 {
13232 .eraseblocks = { {128, 4096} },
13233 .block_erase = erase_sector_28sf040,
13234 }, {
13235 .eraseblocks = { {512 * 1024, 1} },
13236 .block_erase = erase_chip_28sf040,
13237 }
13238 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013239 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013240 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013242 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013243 },
13244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013245 {
13246 .vendor = "SST",
13247 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013248 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013249 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013250 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013251 .total_size = 128,
13252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013254 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013255 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013256 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013257 .block_erasers =
13258 {
13259 {
13260 .eraseblocks = { {128 * 1024, 1} },
13261 .block_erase = erase_chip_block_jedec,
13262 }
13263 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013264 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013266 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013267 },
13268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013269 {
13270 .vendor = "SST",
13271 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013273 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013274 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013275 .total_size = 128,
13276 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013277 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013278 .tested = TEST_UNTESTED,
13279 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013280 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013281 .block_erasers =
13282 {
13283 {
13284 .eraseblocks = { {128 * 1024, 1} },
13285 .block_erase = erase_chip_block_jedec,
13286 }
13287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013290 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013291 },
13292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013293 {
13294 .vendor = "SST",
13295 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013298 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013299 .total_size = 256,
13300 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013301 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013302 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013303 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013304 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013305 .block_erasers =
13306 {
13307 {
13308 .eraseblocks = { {256 * 1024, 1} },
13309 .block_erase = erase_chip_block_jedec,
13310 }
13311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013315 },
13316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013317 {
13318 .vendor = "SST",
13319 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013320 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013321 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013322 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013323 .total_size = 256,
13324 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013325 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013326 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013327 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013328 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013329 .block_erasers =
13330 {
13331 {
13332 .eraseblocks = { {256 * 1024, 1} },
13333 .block_erase = erase_chip_block_jedec,
13334 }
13335 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013336 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013338 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013339 },
13340
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013341 {
13342 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000013343 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013344 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013345 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013346 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013347 .total_size = 64,
13348 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013349 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000013350 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013351 .probe = probe_jedec,
13352 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000013353 .block_erasers =
13354 {
13355 {
13356 .eraseblocks = { {4 * 1024, 16} },
13357 .block_erase = erase_sector_jedec,
13358 }, {
13359 .eraseblocks = { {64 * 1024, 1} },
13360 .block_erase = erase_chip_block_jedec,
13361 }
13362 },
Sean Nelson35727f72010-01-28 23:55:12 +000013363 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013364 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013365 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000013366 },
13367
13368 {
13369 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013370 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013371 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013372 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013373 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013374 .total_size = 128,
13375 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013376 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013377 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013378 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013379 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013380 .block_erasers =
13381 {
13382 {
13383 .eraseblocks = { {4 * 1024, 32} },
13384 .block_erase = erase_sector_jedec,
13385 }, {
13386 .eraseblocks = { {128 * 1024, 1} },
13387 .block_erase = erase_chip_block_jedec,
13388 }
13389 },
Sean Nelson35727f72010-01-28 23:55:12 +000013390 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013393 },
13394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013395 {
13396 .vendor = "SST",
13397 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013399 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013400 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013401 .total_size = 256,
13402 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013403 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013404 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013405 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013406 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013407 .block_erasers =
13408 {
13409 {
13410 .eraseblocks = { {4 * 1024, 64} },
13411 .block_erase = erase_sector_jedec,
13412 }, {
13413 .eraseblocks = { {256 * 1024, 1} },
13414 .block_erase = erase_chip_block_jedec,
13415 }
13416 },
Sean Nelson35727f72010-01-28 23:55:12 +000013417 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013418 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013419 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013420 },
13421
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013422 {
13423 .vendor = "SST",
13424 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013425 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013426 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013427 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013428 .total_size = 512,
13429 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013430 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013431 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013432 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013433 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013434 .block_erasers =
13435 {
13436 {
13437 .eraseblocks = { {4 * 1024, 128} },
13438 .block_erase = erase_sector_jedec,
13439 }, {
13440 .eraseblocks = { {512 * 1024, 1} },
13441 .block_erase = erase_chip_block_jedec,
13442 }
13443 },
Sean Nelson35727f72010-01-28 23:55:12 +000013444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013446 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013447 },
13448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013449 {
13450 .vendor = "SST",
13451 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013452 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013453 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013454 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013455 .total_size = 64,
13456 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013457 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013458 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013459 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013460 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013461 .block_erasers =
13462 {
13463 {
13464 .eraseblocks = { {4 * 1024, 16} },
13465 .block_erase = erase_sector_jedec,
13466 }, {
13467 .eraseblocks = { {64 * 1024, 1} },
13468 .block_erase = erase_chip_block_jedec,
13469 }
13470 },
Sean Nelson35727f72010-01-28 23:55:12 +000013471 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013474 },
13475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 {
13477 .vendor = "SST",
13478 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013479 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013480 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013481 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013482 .total_size = 128,
13483 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013484 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013485 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013486 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013487 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013488 .block_erasers =
13489 {
13490 {
13491 .eraseblocks = { {4 * 1024, 32} },
13492 .block_erase = erase_sector_jedec,
13493 }, {
13494 .eraseblocks = { {128 * 1024, 1} },
13495 .block_erase = erase_chip_block_jedec,
13496 }
13497 },
Sean Nelson35727f72010-01-28 23:55:12 +000013498 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013500 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013501 },
13502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013503 {
13504 .vendor = "SST",
13505 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013506 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013507 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013508 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013509 .total_size = 256,
13510 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013511 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013513 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013514 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013515 .block_erasers =
13516 {
13517 {
13518 .eraseblocks = { {4 * 1024, 64} },
13519 .block_erase = erase_sector_jedec,
13520 }, {
13521 .eraseblocks = { {256 * 1024, 1} },
13522 .block_erase = erase_chip_block_jedec,
13523 }
13524 },
Sean Nelson35727f72010-01-28 23:55:12 +000013525 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013526 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013527 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013528 },
13529
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013530 {
13531 .vendor = "SST",
13532 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013533 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013534 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013535 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013536 .total_size = 512,
13537 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013538 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013539 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013540 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013541 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013542 .block_erasers =
13543 {
13544 {
13545 .eraseblocks = { {4 * 1024, 128} },
13546 .block_erase = erase_sector_jedec,
13547 }, {
13548 .eraseblocks = { {512 * 1024, 1} },
13549 .block_erase = erase_chip_block_jedec,
13550 }
13551 },
Sean Nelson35727f72010-01-28 23:55:12 +000013552 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013553 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013554 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013555 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013557 {
13558 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013559 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013560 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013561 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013562 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013563 .total_size = 1024,
13564 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013565 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013566 .tested = TEST_UNTESTED,
13567 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013568 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013569 .block_erasers =
13570 {
13571 {
13572 .eraseblocks = { {4 * 1024, 256} },
13573 .block_erase = erase_sector_jedec,
13574 }, {
13575 .eraseblocks = { {64 * 1024, 16} },
13576 .block_erase = erase_block_jedec,
13577 }, {
13578 .eraseblocks = { {1024 * 1024, 1} },
13579 .block_erase = erase_chip_block_jedec,
13580 }
13581 },
Sean Nelson35727f72010-01-28 23:55:12 +000013582 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013584 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013585 },
13586
13587 {
13588 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013589 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013590 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013591 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013592 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013593 .total_size = 256,
13594 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013595 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013596 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013597 .probe = probe_jedec,
13598 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013599 .block_erasers =
13600 {
13601 {
13602 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013603 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013604 }, {
13605 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013606 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013607 }, {
13608 .eraseblocks = { {256 * 1024, 1} },
13609 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13610 }
13611 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013612 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013613 .unlock = unlock_sst_fwhub,
13614 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013616 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013617 },
13618
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013619 {
13620 .vendor = "SST",
13621 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013622 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013623 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013624 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013625 .total_size = 384,
13626 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013627 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013628 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013629 .probe = probe_jedec,
13630 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013631 .block_erasers =
13632 {
13633 {
13634 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013635 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013636 }, {
13637 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013638 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013639 }, {
13640 .eraseblocks = { {384 * 1024, 1} },
13641 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13642 }
13643 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013644 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013645 .unlock = unlock_sst_fwhub,
13646 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013648 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013649 },
13650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013651 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013652 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13653 * and is only honored for 64k block erase, but not 4k sector erase.
13654 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 .vendor = "SST",
13656 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013657 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013658 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013659 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013660 .total_size = 512,
13661 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013662 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013663 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013664 .probe = probe_jedec,
13665 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013666 .block_erasers =
13667 {
13668 {
13669 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013670 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013671 }, {
13672 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013673 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013674 }, {
13675 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013676 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013677 },
13678 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013679 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013680 .unlock = unlock_sst_fwhub,
13681 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013682 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013683 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013684 },
13685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013686 {
13687 .vendor = "SST",
13688 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013689 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013690 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013691 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013692 .total_size = 512,
13693 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013694 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013695 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013696 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013697 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013698 .block_erasers =
13699 {
13700 {
13701 .eraseblocks = { {4 * 1024, 128} },
13702 .block_erase = erase_sector_49lfxxxc,
13703 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013704 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013705 {64 * 1024, 7},
13706 {32 * 1024, 1},
13707 {8 * 1024, 2},
13708 {16 * 1024, 1},
13709 },
Sean Nelson69e58112010-03-23 17:10:28 +000013710 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013711 }
13712 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013713 .printlock = printlock_regspace2_block_eraser_1,
13714 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013715 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013716 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013717 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013718 },
13719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013720 {
13721 .vendor = "SST",
13722 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013723 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013724 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013725 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013726 .total_size = 1024,
13727 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013728 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013729 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013730 .probe = probe_jedec,
13731 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013732 .block_erasers =
13733 {
13734 {
13735 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013736 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013737 }, {
13738 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013739 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013740 }, {
13741 .eraseblocks = { {1024 * 1024, 1} },
13742 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13743 }
13744 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013745 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013746 .unlock = unlock_sst_fwhub,
13747 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013749 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013750 },
13751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013752 {
13753 .vendor = "SST",
13754 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013755 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013756 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013757 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013758 .total_size = 1024,
13759 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013760 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013761 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013762 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013763 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013764 .block_erasers =
13765 {
13766 {
13767 .eraseblocks = { {4 * 1024, 256} },
13768 .block_erase = erase_sector_49lfxxxc,
13769 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013770 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013771 {64 * 1024, 15},
13772 {32 * 1024, 1},
13773 {8 * 1024, 2},
13774 {16 * 1024, 1},
13775 },
Sean Nelson69e58112010-03-23 17:10:28 +000013776 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013777 }
13778 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013779 .printlock = printlock_regspace2_block_eraser_1,
13780 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013781 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013783 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013784 },
13785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013786 {
13787 .vendor = "SST",
13788 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013789 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013790 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013791 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013792 .total_size = 2048,
13793 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013794 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013795 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013796 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013797 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013798 .block_erasers =
13799 {
13800 {
13801 .eraseblocks = { {4 * 1024, 512} },
13802 .block_erase = erase_sector_49lfxxxc,
13803 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013804 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013805 {64 * 1024, 31},
13806 {32 * 1024, 1},
13807 {8 * 1024, 2},
13808 {16 * 1024, 1},
13809 },
Sean Nelson69e58112010-03-23 17:10:28 +000013810 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013811 }
13812 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013813 .printlock = printlock_regspace2_block_eraser_1,
13814 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013815 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013817 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013818 },
13819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013820 {
13821 .vendor = "SST",
13822 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013823 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013824 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013825 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013826 .total_size = 256,
13827 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013828 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013829 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013830 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013831 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013832 .block_erasers =
13833 {
13834 {
13835 .eraseblocks = { {4 * 1024, 64} },
13836 .block_erase = erase_sector_jedec,
13837 }, {
13838 .eraseblocks = { {16 * 1024, 16} },
13839 .block_erase = erase_block_jedec,
13840 }, {
13841 .eraseblocks = { {256 * 1024, 1} },
13842 .block_erase = NULL,
13843 }
13844 },
Sean Nelson35727f72010-01-28 23:55:12 +000013845 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013846 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013847 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013848 },
13849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013850 {
13851 .vendor = "SST",
13852 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013853 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013854 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013855 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013856 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013857 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013858 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013859 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013860 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013861 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013862 .block_erasers =
13863 {
13864 {
13865 .eraseblocks = { {4 * 1024, 64} },
13866 .block_erase = erase_sector_jedec,
13867 }, {
13868 .eraseblocks = { {16 * 1024, 16} },
13869 .block_erase = erase_block_jedec,
13870 }, {
13871 .eraseblocks = { {256 * 1024, 1} },
13872 .block_erase = NULL,
13873 }
13874 },
Sean Nelson35727f72010-01-28 23:55:12 +000013875 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013876 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013877 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013878 },
13879
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013880 {
13881 .vendor = "SST",
13882 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013883 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013884 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013885 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013886 .total_size = 512,
13887 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013888 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013889 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013890 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013891 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013892 .block_erasers =
13893 {
13894 {
13895 .eraseblocks = { {4 * 1024, 128} },
13896 .block_erase = erase_sector_jedec,
13897 }, {
13898 .eraseblocks = { {64 * 1024, 8} },
13899 .block_erase = erase_block_jedec,
13900 }, {
13901 .eraseblocks = { {512 * 1024, 1} },
13902 .block_erase = NULL,
13903 }
13904 },
Sean Nelson35727f72010-01-28 23:55:12 +000013905 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013908 },
13909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013910 {
13911 .vendor = "SST",
13912 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013913 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013914 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013915 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013916 .total_size = 512,
13917 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013918 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013919 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013920 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013921 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013922 .block_erasers =
13923 {
13924 {
13925 .eraseblocks = { {4 * 1024, 128} },
13926 .block_erase = erase_sector_jedec,
13927 }, {
13928 .eraseblocks = { {64 * 1024, 8} },
13929 .block_erase = erase_block_jedec,
13930 }, {
13931 .eraseblocks = { {512 * 1024, 1} },
13932 .block_erase = NULL,
13933 }
13934 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013935 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013936 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013937 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013938 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013939 },
13940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013941 {
13942 .vendor = "SST",
13943 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013944 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013945 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020013946 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013947 .total_size = 1024,
13948 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013949 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013950 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013951 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013952 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013953 .block_erasers =
13954 {
13955 {
13956 .eraseblocks = { {4 * 1024, 256} },
13957 .block_erase = erase_sector_jedec,
13958 }, {
13959 .eraseblocks = { {64 * 1024, 16} },
13960 .block_erase = erase_block_jedec,
13961 }, {
13962 .eraseblocks = { {1024 * 1024, 1} },
13963 .block_erase = NULL,
13964 }
13965 },
Sean Nelson35727f72010-01-28 23:55:12 +000013966 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013967 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013968 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013969 },
13970
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013971 {
13972 .vendor = "SST",
13973 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013974 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013975 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013976 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013977 .total_size = 2048,
13978 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013979 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013980 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013981 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013982 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013983 .block_erasers =
13984 {
13985 {
13986 .eraseblocks = { {4 * 1024, 512} },
13987 .block_erase = erase_sector_49lfxxxc,
13988 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013989 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013990 {64 * 1024, 31},
13991 {32 * 1024, 1},
13992 {8 * 1024, 2},
13993 {16 * 1024, 1},
13994 },
Sean Nelson69e58112010-03-23 17:10:28 +000013995 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013996 }
13997 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013998 .printlock = printlock_regspace2_block_eraser_1,
13999 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014000 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014002 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014003 },
14004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 {
14006 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014007 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014008 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .manufacture_id = ST_ID,
14010 .model_id = ST_M29F002B,
14011 .total_size = 256,
14012 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014013 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014014 .tested = TEST_UNTESTED,
14015 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014017 .block_erasers =
14018 {
14019 {
14020 .eraseblocks = {
14021 {16 * 1024, 1},
14022 {8 * 1024, 2},
14023 {32 * 1024, 1},
14024 {64 * 1024, 3},
14025 },
14026 .block_erase = erase_sector_jedec,
14027 }, {
14028 .eraseblocks = { {256 * 1024, 1} },
14029 .block_erase = erase_chip_block_jedec,
14030 }
14031 },
Sean Nelson35727f72010-01-28 23:55:12 +000014032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014033 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014034 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014035 },
14036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014037 {
14038 .vendor = "ST",
14039 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014040 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014041 .manufacture_id = ST_ID,
14042 .model_id = ST_M29F002T,
14043 .total_size = 256,
14044 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014045 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014046 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014047 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014048 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014049 .block_erasers =
14050 {
14051 {
14052 .eraseblocks = {
14053 {64 * 1024, 3},
14054 {32 * 1024, 1},
14055 {8 * 1024, 2},
14056 {16 * 1024, 1},
14057 },
14058 .block_erase = erase_sector_jedec,
14059 }, {
14060 .eraseblocks = { {256 * 1024, 1} },
14061 .block_erase = erase_chip_block_jedec,
14062 }
14063 },
Sean Nelson35727f72010-01-28 23:55:12 +000014064 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014065 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014066 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014067 },
14068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014069 {
14070 .vendor = "ST",
14071 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014072 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014073 .manufacture_id = ST_ID,
14074 .model_id = ST_M29F040B,
14075 .total_size = 512,
14076 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014077 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14078 .tested = TEST_UNTESTED,
14079 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014080 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014081 .block_erasers =
14082 {
14083 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014084 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014085 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014086 }, {
14087 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014088 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014089 }
14090 },
Sean Nelson35727f72010-01-28 23:55:12 +000014091 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014093 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014094 },
14095
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014096 {
Sean Nelson35727f72010-01-28 23:55:12 +000014097 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014098 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014099 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014100 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014101 .manufacture_id = ST_ID,
14102 .model_id = ST_M29F400BB,
14103 .total_size = 512,
14104 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014105 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014106 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014107 .probe = probe_jedec,
14108 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014109 .block_erasers =
14110 {
14111 {
14112 .eraseblocks = {
14113 {16 * 1024, 1},
14114 {8 * 1024, 2},
14115 {32 * 1024, 1},
14116 {64 * 1024, 7},
14117 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014118 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014119 }, {
14120 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014121 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014122 }
14123 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014124 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014126 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014127 },
14128 {
14129 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14130 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014131 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014132 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014133 .manufacture_id = ST_ID,
14134 .model_id = ST_M29F400BT,
14135 .total_size = 512,
14136 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014137 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014138 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014139 .probe = probe_jedec,
14140 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014141 .block_erasers =
14142 {
14143 {
14144 .eraseblocks = {
14145 {64 * 1024, 7},
14146 {32 * 1024, 1},
14147 {8 * 1024, 2},
14148 {16 * 1024, 1},
14149 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014150 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014151 }, {
14152 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014153 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014154 }
14155 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014156 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014157 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014158 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014159 },
14160
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014161 {
14162 .vendor = "ST",
14163 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014164 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014165 .manufacture_id = ST_ID,
14166 .model_id = ST_M29W010B,
14167 .total_size = 128,
14168 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014169 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014170 .tested = TEST_UNTESTED,
14171 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014172 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014173 .block_erasers =
14174 {
14175 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014176 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014177 .block_erase = erase_sector_jedec,
14178 }, {
14179 .eraseblocks = { {128 * 1024, 1} },
14180 .block_erase = erase_chip_block_jedec,
14181 }
14182 },
Sean Nelson35727f72010-01-28 23:55:12 +000014183 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014185 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014186 },
14187
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014188 {
14189 .vendor = "ST",
14190 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014191 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014192 .manufacture_id = ST_ID,
14193 .model_id = ST_M29W040B,
14194 .total_size = 512,
14195 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014197 .tested = TEST_UNTESTED,
14198 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014199 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014200 .block_erasers =
14201 {
14202 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014203 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014204 .block_erase = erase_sector_jedec,
14205 }, {
14206 .eraseblocks = { {512 * 1024, 1} },
14207 .block_erase = erase_chip_block_jedec,
14208 }
14209 },
Sean Nelson35727f72010-01-28 23:55:12 +000014210 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014211 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014212 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014213 },
14214
Stefan Taunereb582572012-09-21 12:52:50 +000014215 {
14216 .vendor = "ST",
14217 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014218 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000014219 .manufacture_id = ST_ID,
14220 .model_id = ST_M29W512B,
14221 .total_size = 64,
14222 .page_size = 64 * 1024,
14223 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014224 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014225 .probe = probe_jedec,
14226 .probe_timing = TIMING_ZERO,
14227 .block_erasers =
14228 {
14229 {
14230 .eraseblocks = { {64 * 1024, 1} },
14231 .block_erase = erase_chip_block_jedec,
14232 }
14233 },
14234 .write = write_jedec_1,
14235 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014236 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014237 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014239 {
14240 .vendor = "ST",
14241 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014242 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014243 .manufacture_id = ST_ID,
14244 .model_id = ST_M50FLW040A,
14245 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014246 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014247 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014248 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014249 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014250 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014251 .block_erasers =
14252 {
14253 {
Sean Nelson329bde72010-01-19 16:39:19 +000014254 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014255 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014256 {64 * 1024, 5}, /* block */
14257 {4 * 1024, 16}, /* sector */
14258 {4 * 1024, 16}, /* sector */
14259 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014260 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014261 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014262 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014263 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014264 }
14265 },
Sean Nelson28accc22010-03-19 18:47:06 +000014266 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014267 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014268 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014269 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014270 },
14271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014272 {
14273 .vendor = "ST",
14274 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014275 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014276 .manufacture_id = ST_ID,
14277 .model_id = ST_M50FLW040B,
14278 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014279 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014280 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014282 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014283 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014284 .block_erasers =
14285 {
14286 {
Sean Nelson329bde72010-01-19 16:39:19 +000014287 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014288 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014289 {4 * 1024, 16}, /* sector */
14290 {64 * 1024, 5}, /* block */
14291 {4 * 1024, 16}, /* sector */
14292 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014293 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014294 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014295 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014296 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014297 }
14298 },
Sean Nelson28accc22010-03-19 18:47:06 +000014299 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014300 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014302 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014303 },
14304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014305 {
14306 .vendor = "ST",
14307 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014308 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014309 .manufacture_id = ST_ID,
14310 .model_id = ST_M50FLW080A,
14311 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014312 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014313 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014314 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014315 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014316 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014317 .block_erasers =
14318 {
14319 {
Sean Nelson329bde72010-01-19 16:39:19 +000014320 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014321 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014322 {64 * 1024, 13}, /* block */
14323 {4 * 1024, 16}, /* sector */
14324 {4 * 1024, 16}, /* sector */
14325 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014326 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014327 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014328 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014329 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014330 }
14331 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014332 .printlock = printlock_regspace2_block_eraser_0,
14333 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014334 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014336 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014337 },
14338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014339 {
14340 .vendor = "ST",
14341 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014342 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014343 .manufacture_id = ST_ID,
14344 .model_id = ST_M50FLW080B,
14345 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014346 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014347 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014348 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014349 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014350 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014351 .block_erasers =
14352 {
14353 {
Sean Nelson329bde72010-01-19 16:39:19 +000014354 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014355 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014356 {4 * 1024, 16}, /* sector */
14357 {64 * 1024, 13}, /* block */
14358 {4 * 1024, 16}, /* sector */
14359 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014360 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014361 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014362 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014363 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014364 }
14365 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014366 .printlock = printlock_regspace2_block_eraser_0,
14367 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014368 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014370 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014371 },
14372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014373 {
14374 .vendor = "ST",
14375 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014376 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014377 .manufacture_id = ST_ID,
14378 .model_id = ST_M50FW002,
14379 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014380 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014381 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014382 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014383 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014384 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014385 .block_erasers =
14386 {
14387 {
14388 .eraseblocks = {
14389 {64 * 1024, 3},
14390 {32 * 1024, 1},
14391 {8 * 1024, 2},
14392 {16 * 1024, 1},
14393 },
Sean Nelson28accc22010-03-19 18:47:06 +000014394 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014395 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014396 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014397 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014398 }
14399 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014400 .printlock = printlock_regspace2_block_eraser_0,
14401 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014402 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014403 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014404 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014405 },
14406
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014407 {
14408 .vendor = "ST",
14409 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014410 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014411 .manufacture_id = ST_ID,
14412 .model_id = ST_M50FW016,
14413 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014414 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014415 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014416 .tested = TEST_UNTESTED,
14417 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014418 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014419 .block_erasers =
14420 {
14421 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014422 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014423 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014424 }
14425 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014426 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014427 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014428 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014429 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014430 },
14431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014432 {
14433 .vendor = "ST",
14434 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014435 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014436 .manufacture_id = ST_ID,
14437 .model_id = ST_M50FW040,
14438 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014439 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014440 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014441 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014442 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014443 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014444 .block_erasers =
14445 {
14446 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014447 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014448 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014449 }
14450 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014451 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014452 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014454 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014455 },
14456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014457 {
14458 .vendor = "ST",
14459 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014460 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014461 .manufacture_id = ST_ID,
14462 .model_id = ST_M50FW080,
14463 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014464 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014465 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014466 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014467 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014468 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014469 .block_erasers =
14470 {
14471 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014472 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014473 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014474 }
14475 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014476 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014477 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014479 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014480 },
14481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 {
14483 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014484 .name = "M50LPW080",
14485 .bustype = BUS_LPC, /* A/A Mux */
14486 .manufacture_id = ST_ID,
14487 .model_id = ST_M50LPW080,
14488 .total_size = 1024,
14489 .page_size = 0,
14490 .feature_bits = FEATURE_REGISTERMAP,
14491 .tested = TEST_UNTESTED,
14492 .probe = probe_82802ab,
14493 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14494 .block_erasers =
14495 {
14496 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014497 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014498 .block_erase = erase_block_82802ab,
14499 }
14500 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014501 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014502 .write = write_82802ab,
14503 .read = read_memmapped,
14504 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14505 },
14506
14507 {
14508 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014510 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014511 .manufacture_id = ST_ID,
14512 .model_id = ST_M50LPW116,
14513 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014514 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014515 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014516 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014517 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014518 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014519 .block_erasers =
14520 {
14521 {
14522 .eraseblocks = {
14523 {4 * 1024, 16},
14524 {64 * 1024, 30},
14525 {32 * 1024, 1},
14526 {8 * 1024, 2},
14527 {16 * 1024, 1},
14528 },
Sean Nelson28accc22010-03-19 18:47:06 +000014529 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014530 }
14531 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014532 .printlock = printlock_regspace2_block_eraser_0,
14533 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014534 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014536 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014537 },
14538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014539 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014540 .vendor = "SyncMOS/MoselVitelic",
14541 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014542 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014543 .manufacture_id = SYNCMOS_MVC_ID,
14544 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014545 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014546 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014547 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 .tested = TEST_UNTESTED,
14549 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014550 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014551 .block_erasers =
14552 {
14553 {
14554 .eraseblocks = { {512, 256} },
14555 .block_erase = erase_sector_jedec,
14556 }, {
14557 .eraseblocks = { {128 * 1024, 1} },
14558 .block_erase = erase_chip_block_jedec,
14559 },
14560 },
Sean Nelson35727f72010-01-28 23:55:12 +000014561 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014563 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014564 },
14565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014566 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014567 .vendor = "SyncMOS/MoselVitelic",
14568 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014569 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014570 .manufacture_id = SYNCMOS_MVC_ID,
14571 .model_id = SM_MVC_29C51001T,
14572 .total_size = 128,
14573 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014574 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014575 .tested = TEST_UNTESTED,
14576 .probe = probe_jedec,
14577 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14578 .block_erasers =
14579 {
14580 {
14581 .eraseblocks = { {512, 256} },
14582 .block_erase = erase_sector_jedec,
14583 }, {
14584 .eraseblocks = { {128 * 1024, 1} },
14585 .block_erase = erase_chip_block_jedec,
14586 },
14587 },
14588 .write = write_jedec_1,
14589 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014590 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014591 },
14592
14593 {
14594 .vendor = "SyncMOS/MoselVitelic",
14595 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014596 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014597 .manufacture_id = SYNCMOS_MVC_ID,
14598 .model_id = SM_MVC_29C51002B,
14599 .total_size = 256,
14600 .page_size = 512,
14601 .feature_bits = FEATURE_EITHER_RESET,
14602 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014603 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014604 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014605 .block_erasers =
14606 {
14607 {
14608 .eraseblocks = { {512, 512} },
14609 .block_erase = erase_sector_jedec,
14610 }, {
14611 .eraseblocks = { {256 * 1024, 1} },
14612 .block_erase = erase_chip_block_jedec,
14613 },
14614 },
Sean Nelson35727f72010-01-28 23:55:12 +000014615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014616 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014617 },
14618
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014619 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014620 .vendor = "SyncMOS/MoselVitelic",
14621 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014622 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014623 .manufacture_id = SYNCMOS_MVC_ID,
14624 .model_id = SM_MVC_29C51002T,
14625 .total_size = 256,
14626 .page_size = 512,
14627 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014628 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014629 .probe = probe_jedec,
14630 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14631 .block_erasers =
14632 {
14633 {
14634 .eraseblocks = { {512, 512} },
14635 .block_erase = erase_sector_jedec,
14636 }, {
14637 .eraseblocks = { {256 * 1024, 1} },
14638 .block_erase = erase_chip_block_jedec,
14639 },
14640 },
14641 .write = write_jedec_1,
14642 .read = read_memmapped,
14643 },
14644
14645 {
14646 .vendor = "SyncMOS/MoselVitelic",
14647 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014648 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014649 .manufacture_id = SYNCMOS_MVC_ID,
14650 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014651 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014652 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014653 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014654 .tested = TEST_UNTESTED,
14655 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014656 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014657 .block_erasers =
14658 {
14659 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014660 .eraseblocks = { {1024, 512} },
14661 .block_erase = erase_sector_jedec,
14662 }, {
14663 .eraseblocks = { {512 * 1024, 1} },
14664 .block_erase = erase_chip_block_jedec,
14665 },
14666 },
14667 .write = write_jedec_1,
14668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014669 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014670 },
14671
14672 {
14673 .vendor = "SyncMOS/MoselVitelic",
14674 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014675 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014676 .manufacture_id = SYNCMOS_MVC_ID,
14677 .model_id = SM_MVC_29C51004T,
14678 .total_size = 512,
14679 .page_size = 1024,
14680 .feature_bits = FEATURE_EITHER_RESET,
14681 .tested = TEST_UNTESTED,
14682 .probe = probe_jedec,
14683 .probe_timing = TIMING_ZERO,
14684 .block_erasers =
14685 {
14686 {
14687 .eraseblocks = { {1024, 512} },
14688 .block_erase = erase_sector_jedec,
14689 }, {
14690 .eraseblocks = { {512 * 1024, 1} },
14691 .block_erase = erase_chip_block_jedec,
14692 },
14693 },
14694 .write = write_jedec_1,
14695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014696 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014697 },
14698
14699 {
14700 .vendor = "SyncMOS/MoselVitelic",
14701 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014702 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014703 .manufacture_id = SYNCMOS_MVC_ID,
14704 .model_id = SM_MVC_29C31004B,
14705 .total_size = 512,
14706 .page_size = 1024,
14707 .feature_bits = FEATURE_EITHER_RESET,
14708 .tested = TEST_UNTESTED,
14709 .probe = probe_jedec,
14710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14711 .block_erasers =
14712 {
14713 {
14714 .eraseblocks = { {1024, 512} },
14715 .block_erase = erase_sector_jedec,
14716 }, {
14717 .eraseblocks = { {512 * 1024, 1} },
14718 .block_erase = erase_chip_block_jedec,
14719 },
14720 },
14721 .write = write_jedec_1,
14722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014723 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014724 },
14725
14726 {
14727 .vendor = "SyncMOS/MoselVitelic",
14728 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014729 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014730 .manufacture_id = SYNCMOS_MVC_ID,
14731 .model_id = SM_MVC_29C31004T,
14732 .total_size = 512,
14733 .page_size = 1024,
14734 .feature_bits = FEATURE_EITHER_RESET,
14735 .tested = TEST_UNTESTED,
14736 .probe = probe_jedec,
14737 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14738 .block_erasers =
14739 {
14740 {
14741 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014742 .block_erase = erase_sector_jedec,
14743 }, {
14744 .eraseblocks = { {512 * 1024, 1} },
14745 .block_erase = erase_chip_block_jedec,
14746 },
14747 },
Sean Nelson35727f72010-01-28 23:55:12 +000014748 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014749 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014750 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014751 },
14752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014753 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014754 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014755 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014756 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014757 .manufacture_id = TI_OLD_ID,
14758 .model_id = TI_TMS29F002RB,
14759 .total_size = 256,
14760 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014761 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014762 .tested = TEST_UNTESTED,
14763 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014764 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014765 .block_erasers =
14766 {
14767 {
14768 .eraseblocks = {
14769 {16 * 1024, 1},
14770 {8 * 1024, 2},
14771 {32 * 1024, 1},
14772 {64 * 1024, 3},
14773 },
14774 .block_erase = erase_sector_jedec,
14775 }, {
14776 .eraseblocks = { {256 * 1024, 1} },
14777 .block_erase = erase_chip_block_jedec,
14778 },
14779 },
Sean Nelson35727f72010-01-28 23:55:12 +000014780 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014781 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014782 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014783 },
14784
14785 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014786 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014787 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014788 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014789 .manufacture_id = TI_OLD_ID,
14790 .model_id = TI_TMS29F002RT,
14791 .total_size = 256,
14792 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014793 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014794 .tested = TEST_UNTESTED,
14795 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014796 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014797 .block_erasers =
14798 {
14799 {
14800 .eraseblocks = {
14801 {64 * 1024, 3},
14802 {32 * 1024, 1},
14803 {8 * 1024, 2},
14804 {16 * 1024, 1},
14805 },
14806 .block_erase = erase_sector_jedec,
14807 }, {
14808 .eraseblocks = { {256 * 1024, 1} },
14809 .block_erase = erase_chip_block_jedec,
14810 },
14811 },
Sean Nelson35727f72010-01-28 23:55:12 +000014812 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014813 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014814 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014815 },
14816
14817 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014818 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014819 .name = "W25Q40.V",
14820 .bustype = BUS_SPI,
14821 .manufacture_id = WINBOND_NEX_ID,
14822 .model_id = WINBOND_NEX_W25Q40_V,
14823 .total_size = 512,
14824 .page_size = 256,
14825 /* supports SFDP */
14826 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014828 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014829 .probe = probe_spi_rdid,
14830 .probe_timing = TIMING_ZERO,
14831 .block_erasers =
14832 {
14833 {
14834 .eraseblocks = { {4 * 1024, 128} },
14835 .block_erase = spi_block_erase_20,
14836 }, {
14837 .eraseblocks = { {32 * 1024, 16} },
14838 .block_erase = spi_block_erase_52,
14839 }, {
14840 .eraseblocks = { {64 * 1024, 8} },
14841 .block_erase = spi_block_erase_d8,
14842 }, {
14843 .eraseblocks = { {512 * 1024, 1} },
14844 .block_erase = spi_block_erase_60,
14845 }, {
14846 .eraseblocks = { {512 * 1024, 1} },
14847 .block_erase = spi_block_erase_c7,
14848 }
14849 },
14850 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14851 .unlock = spi_disable_blockprotect,
14852 .write = spi_chip_write_256, /* Multi I/O supported */
14853 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14854 .voltage = {2700, 3600},
14855 },
14856
14857 {
14858 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014859 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014860 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014861 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014862 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014863 .total_size = 1024,
14864 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014865 /* supports SFDP */
14866 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014868 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014869 .probe = probe_spi_rdid,
14870 .probe_timing = TIMING_ZERO,
14871 .block_erasers =
14872 {
14873 {
14874 .eraseblocks = { {4 * 1024, 256} },
14875 .block_erase = spi_block_erase_20,
14876 }, {
14877 .eraseblocks = { {32 * 1024, 32} },
14878 .block_erase = spi_block_erase_52,
14879 }, {
14880 .eraseblocks = { {64 * 1024, 16} },
14881 .block_erase = spi_block_erase_d8,
14882 }, {
14883 .eraseblocks = { {1024 * 1024, 1} },
14884 .block_erase = spi_block_erase_60,
14885 }, {
14886 .eraseblocks = { {1024 * 1024, 1} },
14887 .block_erase = spi_block_erase_c7,
14888 }
14889 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014890 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014891 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014892 .write = spi_chip_write_256,
14893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014894 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014895 },
14896
14897 {
14898 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014899 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014900 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014901 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014902 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014903 .total_size = 2048,
14904 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014905 /* supports SFDP */
14906 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014907 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014908 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014909 .probe = probe_spi_rdid,
14910 .probe_timing = TIMING_ZERO,
14911 .block_erasers =
14912 {
14913 {
14914 .eraseblocks = { {4 * 1024, 512} },
14915 .block_erase = spi_block_erase_20,
14916 }, {
14917 .eraseblocks = { {32 * 1024, 64} },
14918 .block_erase = spi_block_erase_52,
14919 }, {
14920 .eraseblocks = { {64 * 1024, 32} },
14921 .block_erase = spi_block_erase_d8,
14922 }, {
14923 .eraseblocks = { {2 * 1024 * 1024, 1} },
14924 .block_erase = spi_block_erase_60,
14925 }, {
14926 .eraseblocks = { {2 * 1024 * 1024, 1} },
14927 .block_erase = spi_block_erase_c7,
14928 }
14929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014931 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014932 .write = spi_chip_write_256,
14933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014934 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014935 },
14936
14937 {
14938 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014939 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014940 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014941 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014942 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014943 .total_size = 4096,
14944 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014945 /* supports SFDP */
14946 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014948 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014949 .probe = probe_spi_rdid,
14950 .probe_timing = TIMING_ZERO,
14951 .block_erasers =
14952 {
14953 {
14954 .eraseblocks = { {4 * 1024, 1024} },
14955 .block_erase = spi_block_erase_20,
14956 }, {
14957 .eraseblocks = { {32 * 1024, 128} },
14958 .block_erase = spi_block_erase_52,
14959 }, {
14960 .eraseblocks = { {64 * 1024, 64} },
14961 .block_erase = spi_block_erase_d8,
14962 }, {
14963 .eraseblocks = { {4 * 1024 * 1024, 1} },
14964 .block_erase = spi_block_erase_60,
14965 }, {
14966 .eraseblocks = { {4 * 1024 * 1024, 1} },
14967 .block_erase = spi_block_erase_c7,
14968 }
14969 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014971 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014972 .write = spi_chip_write_256,
14973 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014974 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014975 },
14976
14977 {
14978 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014979 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014980 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000014981 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014982 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000014983 .total_size = 8192,
14984 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014985 /* supports SFDP */
14986 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014987 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014988 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000014989 .probe = probe_spi_rdid,
14990 .probe_timing = TIMING_ZERO,
14991 .block_erasers =
14992 {
14993 {
14994 .eraseblocks = { {4 * 1024, 2048} },
14995 .block_erase = spi_block_erase_20,
14996 }, {
14997 .eraseblocks = { {32 * 1024, 256} },
14998 .block_erase = spi_block_erase_52,
14999 }, {
15000 .eraseblocks = { {64 * 1024, 128} },
15001 .block_erase = spi_block_erase_d8,
15002 }, {
15003 .eraseblocks = { {8 * 1024 * 1024, 1} },
15004 .block_erase = spi_block_erase_60,
15005 }, {
15006 .eraseblocks = { {8 * 1024 * 1024, 1} },
15007 .block_erase = spi_block_erase_c7,
15008 }
15009 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015010 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015011 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000015012 .write = spi_chip_write_256,
15013 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015014 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015015 },
15016
15017 {
15018 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015019 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015020 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015021 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015022 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015023 .total_size = 16384,
15024 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015025 /* supports SFDP */
15026 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015027 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015028 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015029 .probe = probe_spi_rdid,
15030 .probe_timing = TIMING_ZERO,
15031 .block_erasers =
15032 {
15033 {
15034 .eraseblocks = { {4 * 1024, 4096} },
15035 .block_erase = spi_block_erase_20,
15036 }, {
15037 .eraseblocks = { {32 * 1024, 512} },
15038 .block_erase = spi_block_erase_52,
15039 }, {
15040 .eraseblocks = { {64 * 1024, 256} },
15041 .block_erase = spi_block_erase_d8,
15042 }, {
15043 .eraseblocks = { {16 * 1024 * 1024, 1} },
15044 .block_erase = spi_block_erase_60,
15045 }, {
15046 .eraseblocks = { {16 * 1024 * 1024, 1} },
15047 .block_erase = spi_block_erase_c7,
15048 }
15049 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015050 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015051 .unlock = spi_disable_blockprotect,
15052 .write = spi_chip_write_256,
15053 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015054 .voltage = {2700, 3600},
15055 },
15056
15057 {
15058 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020015059 .name = "W25Q256.V",
15060 .bustype = BUS_SPI,
15061 .manufacture_id = WINBOND_NEX_ID,
15062 .model_id = WINBOND_NEX_W25Q256_V,
15063 .total_size = 32768,
15064 .page_size = 256,
15065 /* supports SFDP */
15066 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15067 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010015068 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
15069 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
15070 .tested = TEST_UNTESTED,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015071 .probe = probe_spi_rdid,
15072 .probe_timing = TIMING_ZERO,
15073 .block_erasers =
15074 {
15075 {
15076 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020015077 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015078 }, {
15079 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020015080 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015081 }, {
15082 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020015083 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015084 }, {
15085 .eraseblocks = { {32 * 1024 * 1024, 1} },
15086 .block_erase = spi_block_erase_60,
15087 }, {
15088 .eraseblocks = { {32 * 1024 * 1024, 1} },
15089 .block_erase = spi_block_erase_c7,
15090 }
15091 },
15092 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15093 .unlock = spi_disable_blockprotect,
15094 .write = spi_chip_write_256,
15095 .read = spi_chip_read,
15096 .voltage = {2700, 3600},
15097 },
15098
15099 {
15100 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015101 .name = "W25Q20.W",
15102 .bustype = BUS_SPI,
15103 .manufacture_id = WINBOND_NEX_ID,
15104 .model_id = WINBOND_NEX_W25Q20_W,
15105 .total_size = 256,
15106 .page_size = 256,
15107 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15109 .tested = TEST_UNTESTED,
15110 .probe = probe_spi_rdid,
15111 .probe_timing = TIMING_ZERO,
15112 .block_erasers =
15113 {
15114 {
15115 .eraseblocks = { {4 * 1024, 64} },
15116 .block_erase = spi_block_erase_20,
15117 }, {
15118 .eraseblocks = { {32 * 1024, 8} },
15119 .block_erase = spi_block_erase_52,
15120 }, {
15121 .eraseblocks = { {64 * 1024, 4} },
15122 .block_erase = spi_block_erase_d8,
15123 }, {
15124 .eraseblocks = { {256 * 1024, 1} },
15125 .block_erase = spi_block_erase_60,
15126 }, {
15127 .eraseblocks = { {256 * 1024, 1} },
15128 .block_erase = spi_block_erase_c7,
15129 }
15130 },
15131 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15132 .unlock = spi_disable_blockprotect,
15133 .write = spi_chip_write_256,
15134 .read = spi_chip_read,
15135 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15136 },
15137
15138 {
15139 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020015140 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015141 .bustype = BUS_SPI,
15142 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020015143 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015144 .total_size = 512,
15145 .page_size = 256,
15146 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15147 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15148 .tested = TEST_UNTESTED,
15149 .probe = probe_spi_rdid,
15150 .probe_timing = TIMING_ZERO,
15151 .block_erasers =
15152 {
15153 {
15154 .eraseblocks = { {4 * 1024, 128} },
15155 .block_erase = spi_block_erase_20,
15156 }, {
15157 .eraseblocks = { {32 * 1024, 16} },
15158 .block_erase = spi_block_erase_52,
15159 }, {
15160 .eraseblocks = { {64 * 1024, 8} },
15161 .block_erase = spi_block_erase_d8,
15162 }, {
15163 .eraseblocks = { {512 * 1024, 1} },
15164 .block_erase = spi_block_erase_60,
15165 }, {
15166 .eraseblocks = { {512 * 1024, 1} },
15167 .block_erase = spi_block_erase_c7,
15168 }
15169 },
15170 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15171 .unlock = spi_disable_blockprotect,
15172 .write = spi_chip_write_256,
15173 .read = spi_chip_read,
15174 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15175 },
15176
15177 {
15178 .vendor = "Winbond",
David Hendricksc699f5c2018-03-11 17:29:49 -070015179 .name = "W25Q80BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015180 .bustype = BUS_SPI,
15181 .manufacture_id = WINBOND_NEX_ID,
David Hendricksc699f5c2018-03-11 17:29:49 -070015182 .model_id = WINBOND_NEX_W25Q80BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015183 .total_size = 1024,
15184 .page_size = 256,
15185 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15186 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015187 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015188 .probe = probe_spi_rdid,
15189 .probe_timing = TIMING_ZERO,
15190 .block_erasers =
15191 {
15192 {
15193 .eraseblocks = { {4 * 1024, 256} },
15194 .block_erase = spi_block_erase_20,
15195 }, {
15196 .eraseblocks = { {32 * 1024, 32} },
15197 .block_erase = spi_block_erase_52,
15198 }, {
15199 .eraseblocks = { {64 * 1024, 16} },
15200 .block_erase = spi_block_erase_d8,
15201 }, {
15202 .eraseblocks = { {1 * 1024 * 1024, 1} },
15203 .block_erase = spi_block_erase_60,
15204 }, {
15205 .eraseblocks = { {1 * 1024 * 1024, 1} },
15206 .block_erase = spi_block_erase_c7,
15207 }
15208 },
15209 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15210 .unlock = spi_disable_blockprotect,
15211 .write = spi_chip_write_256,
15212 .read = spi_chip_read,
15213 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15214 },
Nico Huber25683572018-03-30 13:50:13 +020015215
15216 {
15217 .vendor = "Winbond",
15218 .name = "W25Q40EW",
15219 .bustype = BUS_SPI,
15220 .manufacture_id = WINBOND_NEX_ID,
15221 .model_id = WINBOND_NEX_W25Q40EW,
15222 .total_size = 512,
15223 .page_size = 256,
15224 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15225 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15226 .tested = TEST_UNTESTED,
15227 .probe = probe_spi_rdid,
15228 .probe_timing = TIMING_ZERO,
15229 .block_erasers =
15230 {
15231 {
15232 .eraseblocks = { {4 * 1024, 128} },
15233 .block_erase = spi_block_erase_20,
15234 }, {
15235 .eraseblocks = { {32 * 1024, 16} },
15236 .block_erase = spi_block_erase_52,
15237 }, {
15238 .eraseblocks = { {64 * 1024, 8} },
15239 .block_erase = spi_block_erase_d8,
15240 }, {
15241 .eraseblocks = { {512 * 1024, 1} },
15242 .block_erase = spi_block_erase_60,
15243 }, {
15244 .eraseblocks = { {512 * 1024, 1} },
15245 .block_erase = spi_block_erase_c7,
15246 }
15247 },
15248 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15249 .unlock = spi_disable_blockprotect,
15250 .write = spi_chip_write_256,
15251 .read = spi_chip_read,
15252 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15253 },
15254
Stanislav Sedovf5775442018-03-07 14:16:51 -080015255 {
15256 .vendor = "Winbond",
15257 .name = "W25Q80EW",
15258 .bustype = BUS_SPI,
15259 .manufacture_id = WINBOND_NEX_ID,
15260 .model_id = WINBOND_NEX_W25Q80EW,
15261 .total_size = 1024,
15262 .page_size = 256,
15263 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15264 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15265 .tested = TEST_OK_PREW,
15266 .probe = probe_spi_rdid,
15267 .probe_timing = TIMING_ZERO,
15268 .block_erasers =
15269 {
15270 {
15271 .eraseblocks = { {4 * 1024, 256} },
15272 .block_erase = spi_block_erase_20,
15273 }, {
15274 .eraseblocks = { {32 * 1024, 32} },
15275 .block_erase = spi_block_erase_52,
15276 }, {
15277 .eraseblocks = { {64 * 1024, 16} },
15278 .block_erase = spi_block_erase_d8,
15279 }, {
15280 .eraseblocks = { {1 * 1024 * 1024, 1} },
15281 .block_erase = spi_block_erase_60,
15282 }, {
15283 .eraseblocks = { {1 * 1024 * 1024, 1} },
15284 .block_erase = spi_block_erase_c7,
15285 }
15286 },
15287 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15288 .unlock = spi_disable_blockprotect,
15289 .write = spi_chip_write_256,
15290 .read = spi_chip_read,
15291 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15292 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015293
15294 {
15295 .vendor = "Winbond",
15296 .name = "W25Q16.W",
15297 .bustype = BUS_SPI,
15298 .manufacture_id = WINBOND_NEX_ID,
15299 .model_id = WINBOND_NEX_W25Q16_W,
15300 .total_size = 2048,
15301 .page_size = 256,
15302 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15303 /* QPI enable 0x38, disable 0xFF */
15304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15305 .tested = TEST_UNTESTED,
15306 .probe = probe_spi_rdid,
15307 .probe_timing = TIMING_ZERO,
15308 .block_erasers =
15309 {
15310 {
15311 .eraseblocks = { {4 * 1024, 512} },
15312 .block_erase = spi_block_erase_20,
15313 }, {
15314 .eraseblocks = { {32 * 1024, 64} },
15315 .block_erase = spi_block_erase_52,
15316 }, {
15317 .eraseblocks = { {64 * 1024, 32} },
15318 .block_erase = spi_block_erase_d8,
15319 }, {
15320 .eraseblocks = { {2 * 1024 * 1024, 1} },
15321 .block_erase = spi_block_erase_60,
15322 }, {
15323 .eraseblocks = { {2 * 1024 * 1024, 1} },
15324 .block_erase = spi_block_erase_c7,
15325 }
15326 },
15327 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15328 .unlock = spi_disable_blockprotect,
15329 .write = spi_chip_write_256,
15330 .read = spi_chip_read,
15331 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15332 },
15333
15334 {
15335 .vendor = "Winbond",
15336 .name = "W25Q32.W",
15337 .bustype = BUS_SPI,
15338 .manufacture_id = WINBOND_NEX_ID,
15339 .model_id = WINBOND_NEX_W25Q32_W,
15340 .total_size = 4096,
15341 .page_size = 256,
15342 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15343 /* QPI enable 0x38, disable 0xFF */
15344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15345 .tested = TEST_OK_PREW,
15346 .probe = probe_spi_rdid,
15347 .probe_timing = TIMING_ZERO,
15348 .block_erasers =
15349 {
15350 {
15351 .eraseblocks = { {4 * 1024, 1024} },
15352 .block_erase = spi_block_erase_20,
15353 }, {
15354 .eraseblocks = { {32 * 1024, 128} },
15355 .block_erase = spi_block_erase_52,
15356 }, {
15357 .eraseblocks = { {64 * 1024, 64} },
15358 .block_erase = spi_block_erase_d8,
15359 }, {
15360 .eraseblocks = { {4 * 1024 * 1024, 1} },
15361 .block_erase = spi_block_erase_60,
15362 }, {
15363 .eraseblocks = { {4 * 1024 * 1024, 1} },
15364 .block_erase = spi_block_erase_c7,
15365 }
15366 },
15367 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15368 .unlock = spi_disable_blockprotect,
15369 .write = spi_chip_write_256,
15370 .read = spi_chip_read,
15371 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15372 },
15373
15374 {
15375 .vendor = "Winbond",
15376 .name = "W25Q64.W",
15377 .bustype = BUS_SPI,
15378 .manufacture_id = WINBOND_NEX_ID,
15379 .model_id = WINBOND_NEX_W25Q64_W,
15380 .total_size = 8192,
15381 .page_size = 256,
15382 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15383 /* QPI enable 0x38, disable 0xFF */
15384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015385 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015386 .probe = probe_spi_rdid,
15387 .probe_timing = TIMING_ZERO,
15388 .block_erasers =
15389 {
15390 {
15391 .eraseblocks = { {4 * 1024, 2048} },
15392 .block_erase = spi_block_erase_20,
15393 }, {
15394 .eraseblocks = { {32 * 1024, 256} },
15395 .block_erase = spi_block_erase_52,
15396 }, {
15397 .eraseblocks = { {64 * 1024, 128} },
15398 .block_erase = spi_block_erase_d8,
15399 }, {
15400 .eraseblocks = { {8 * 1024 * 1024, 1} },
15401 .block_erase = spi_block_erase_60,
15402 }, {
15403 .eraseblocks = { {8 * 1024 * 1024, 1} },
15404 .block_erase = spi_block_erase_c7,
15405 }
15406 },
15407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15408 .unlock = spi_disable_blockprotect,
15409 .write = spi_chip_write_256,
15410 .read = spi_chip_read,
15411 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015412 },
15413
15414 {
15415 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020015416 .name = "W25Q128.W",
15417 .bustype = BUS_SPI,
15418 .manufacture_id = WINBOND_NEX_ID,
15419 .model_id = WINBOND_NEX_W25Q128_W,
15420 .total_size = 16384,
15421 .page_size = 256,
15422 /* supports SFDP */
15423 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15424 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080015425 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020015426 .probe = probe_spi_rdid,
15427 .probe_timing = TIMING_ZERO,
15428 .block_erasers =
15429 {
15430 {
15431 .eraseblocks = { {4 * 1024, 4096} },
15432 .block_erase = spi_block_erase_20,
15433 }, {
15434 .eraseblocks = { {32 * 1024, 512} },
15435 .block_erase = spi_block_erase_52,
15436 }, {
15437 .eraseblocks = { {64 * 1024, 256} },
15438 .block_erase = spi_block_erase_d8,
15439 }, {
15440 .eraseblocks = { {16 * 1024 * 1024, 1} },
15441 .block_erase = spi_block_erase_60,
15442 }, {
15443 .eraseblocks = { {16 * 1024 * 1024, 1} },
15444 .block_erase = spi_block_erase_c7,
15445 }
15446 },
15447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15448 .unlock = spi_disable_blockprotect,
15449 .write = spi_chip_write_256,
15450 .read = spi_chip_read,
15451 .voltage = {1650, 1950},
15452 },
15453
15454 {
15455 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015456 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015457 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015458 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015459 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015460 .total_size = 128,
15461 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015462 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015465 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015466 .block_erasers =
15467 {
15468 {
15469 .eraseblocks = { {4 * 1024, 32} },
15470 .block_erase = spi_block_erase_20,
15471 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015472 .eraseblocks = { {64 * 1024, 2} },
15473 .block_erase = spi_block_erase_d8,
15474 }, {
15475 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015476 .block_erase = spi_block_erase_c7,
15477 }
15478 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015479 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015480 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015481 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015482 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015483 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015484 },
15485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015486 {
15487 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015488 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015489 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015490 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015491 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015492 .total_size = 256,
15493 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015494 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015495 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015497 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015498 .block_erasers =
15499 {
15500 {
15501 .eraseblocks = { {4 * 1024, 64} },
15502 .block_erase = spi_block_erase_20,
15503 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015504 .eraseblocks = { {64 * 1024, 4} },
15505 .block_erase = spi_block_erase_d8,
15506 }, {
15507 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015508 .block_erase = spi_block_erase_c7,
15509 }
15510 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015511 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015512 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015513 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015514 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015515 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015516 },
15517
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015518 {
15519 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015520 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015521 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015522 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015523 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015524 .total_size = 512,
15525 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015526 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015527 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015528 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015529 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015530 .block_erasers =
15531 {
15532 {
15533 .eraseblocks = { {4 * 1024, 128} },
15534 .block_erase = spi_block_erase_20,
15535 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015536 .eraseblocks = { {64 * 1024, 8} },
15537 .block_erase = spi_block_erase_d8,
15538 }, {
15539 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015540 .block_erase = spi_block_erase_c7,
15541 }
15542 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015543 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015544 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015545 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015546 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015547 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015548 },
15549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015550 {
15551 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015552 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015553 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015554 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015555 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015556 .total_size = 1024,
15557 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015558 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000015559 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015560 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015561 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015562 .block_erasers =
15563 {
15564 {
15565 .eraseblocks = { {4 * 1024, 256} },
15566 .block_erase = spi_block_erase_20,
15567 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015568 .eraseblocks = { {64 * 1024, 16} },
15569 .block_erase = spi_block_erase_d8,
15570 }, {
15571 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015572 .block_erase = spi_block_erase_c7,
15573 }
15574 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015575 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015576 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015577 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015578 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015579 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015580 },
15581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015582 {
15583 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015584 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015585 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000015586 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015587 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000015588 .total_size = 2048,
15589 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015590 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000015591 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000015592 .probe = probe_spi_rdid,
15593 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015594 .block_erasers =
15595 {
15596 {
15597 .eraseblocks = { {4 * 1024, 512} },
15598 .block_erase = spi_block_erase_20,
15599 }, {
15600 .eraseblocks = { {32 * 1024, 64} },
15601 .block_erase = spi_block_erase_52,
15602 }, {
15603 .eraseblocks = { {64 * 1024, 32} },
15604 .block_erase = spi_block_erase_d8,
15605 }, {
15606 .eraseblocks = { {2 * 1024 * 1024, 1} },
15607 .block_erase = spi_block_erase_60,
15608 }, {
15609 .eraseblocks = { {2 * 1024 * 1024, 1} },
15610 .block_erase = spi_block_erase_c7,
15611 }
15612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015614 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000015615 .write = spi_chip_write_256,
15616 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015617 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000015618 },
15619
15620 {
15621 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015622 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015623 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015624 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015625 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000015626 .total_size = 4096,
15627 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015628 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015629 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015630 .probe = probe_spi_rdid,
15631 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015632 .block_erasers =
15633 {
15634 {
15635 .eraseblocks = { {4 * 1024, 1024} },
15636 .block_erase = spi_block_erase_20,
15637 }, {
15638 .eraseblocks = { {32 * 1024, 128} },
15639 .block_erase = spi_block_erase_52,
15640 }, {
15641 .eraseblocks = { {64 * 1024, 64} },
15642 .block_erase = spi_block_erase_d8,
15643 }, {
15644 .eraseblocks = { {4 * 1024 * 1024, 1} },
15645 .block_erase = spi_block_erase_60,
15646 }, {
15647 .eraseblocks = { {4 * 1024 * 1024, 1} },
15648 .block_erase = spi_block_erase_c7,
15649 }
15650 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015651 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015652 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015653 .write = spi_chip_write_256,
15654 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015655 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015656 },
15657
15658 {
15659 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015660 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015661 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015662 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015663 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000015664 .total_size = 8192,
15665 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015666 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015667 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015668 .probe = probe_spi_rdid,
15669 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015670 .block_erasers =
15671 {
15672 {
15673 .eraseblocks = { {4 * 1024, 2048} },
15674 .block_erase = spi_block_erase_20,
15675 }, {
15676 .eraseblocks = { {32 * 1024, 256} },
15677 .block_erase = spi_block_erase_52,
15678 }, {
15679 .eraseblocks = { {64 * 1024, 128} },
15680 .block_erase = spi_block_erase_d8,
15681 }, {
15682 .eraseblocks = { {8 * 1024 * 1024, 1} },
15683 .block_erase = spi_block_erase_60,
15684 }, {
15685 .eraseblocks = { {8 * 1024 * 1024, 1} },
15686 .block_erase = spi_block_erase_c7,
15687 }
15688 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015689 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015690 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015691 .write = spi_chip_write_256,
15692 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015693 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015694 },
15695
15696 {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080015697 .vendor = "Winbond",
15698 .name = "W25P80",
15699 .bustype = BUS_SPI,
15700 .manufacture_id = WINBOND_NEX_ID,
15701 .model_id = WINBOND_NEX_W25P80,
15702 .total_size = 1024,
15703 .page_size = 256,
15704 .feature_bits = FEATURE_WRSR_WREN,
15705 .tested = TEST_UNTESTED,
15706 .probe = probe_spi_rdid,
15707 .probe_timing = TIMING_ZERO,
15708 .block_erasers =
15709 {
15710 {
15711 .eraseblocks = { {64 * 1024, 16} },
15712 .block_erase = spi_block_erase_d8,
15713 }, {
15714 .eraseblocks = { {1024 * 1024, 1} },
15715 .block_erase = spi_block_erase_c7,
15716 }
15717 },
15718 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15719 .unlock = spi_disable_blockprotect,
15720 .write = spi_chip_write_256,
15721 .read = spi_chip_read, /* Fast read (0x0B) supported */
15722 .voltage = {2700, 3600},
15723 },
15724
15725 {
15726 .vendor = "Winbond",
15727 .name = "W25P16",
15728 .bustype = BUS_SPI,
15729 .manufacture_id = WINBOND_NEX_ID,
15730 .model_id = WINBOND_NEX_W25P16,
15731 .total_size = 2048,
15732 .page_size = 256,
15733 .feature_bits = FEATURE_WRSR_WREN,
15734 .tested = TEST_UNTESTED,
15735 .probe = probe_spi_rdid,
15736 .probe_timing = TIMING_ZERO,
15737 .block_erasers =
15738 {
15739 {
15740 .eraseblocks = { {64 * 1024, 32} },
15741 .block_erase = spi_block_erase_d8,
15742 }, {
15743 .eraseblocks = { {2048 * 1024, 1} },
15744 .block_erase = spi_block_erase_c7,
15745 }
15746 },
15747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15748 .unlock = spi_disable_blockprotect,
15749 .write = spi_chip_write_256,
15750 .read = spi_chip_read, /* Fast read (0x0B) supported */
15751 .voltage = {2700, 3600},
15752 },
15753
15754 {
15755 .vendor = "Winbond",
15756 .name = "W25P32",
15757 .bustype = BUS_SPI,
15758 .manufacture_id = WINBOND_NEX_ID,
15759 .model_id = WINBOND_NEX_W25P32,
15760 .total_size = 4096,
15761 .page_size = 256,
15762 .feature_bits = FEATURE_WRSR_WREN,
15763 .tested = TEST_UNTESTED,
15764 .probe = probe_spi_rdid,
15765 .probe_timing = TIMING_ZERO,
15766 .block_erasers =
15767 {
15768 {
15769 .eraseblocks = { {64 * 1024, 64} },
15770 .block_erase = spi_block_erase_d8,
15771 }, {
15772 .eraseblocks = { {4096 * 1024, 1} },
15773 .block_erase = spi_block_erase_c7,
15774 }
15775 },
15776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15777 .unlock = spi_disable_blockprotect,
15778 .write = spi_chip_write_256,
15779 .read = spi_chip_read, /* Fast read (0x0B) supported */
15780 .voltage = {2700, 3600},
15781 },
15782 {
Zheng Bao1db2b752009-11-26 11:05:01 +000015783 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000015784 .name = "W29C512A/W29EE512",
15785 .bustype = BUS_PARALLEL,
15786 .manufacture_id = WINBOND_ID,
15787 .model_id = WINBOND_W29C512A,
15788 .total_size = 64,
15789 .page_size = 128,
15790 .feature_bits = FEATURE_LONG_RESET,
15791 .tested = TEST_OK_PREW,
15792 .probe = probe_jedec,
15793 .probe_timing = 10,
15794 .block_erasers =
15795 {
15796 {
15797 .eraseblocks = { {64 * 1024, 1} },
15798 .block_erase = erase_chip_block_jedec,
15799 }
15800 },
15801 .write = write_jedec,
15802 .read = read_memmapped,
15803 .voltage = {4500, 5500},
15804 },
15805
15806 {
15807 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015808 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015809 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015810 .manufacture_id = WINBOND_ID,
15811 .model_id = WINBOND_W29C010,
15812 .total_size = 128,
15813 .page_size = 128,
15814 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015815 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015816 .probe = probe_w29ee011,
15817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
15818 .block_erasers =
15819 {
15820 {
15821 .eraseblocks = { {128 * 1024, 1} },
15822 .block_erase = erase_chip_block_jedec,
15823 }
15824 },
15825 .write = write_jedec,
15826 .read = read_memmapped,
15827 },
15828
15829 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
15830 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015831 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015832 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015833 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015834 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015835 .total_size = 128,
15836 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015837 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000015838 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015839 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015840 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015841 .block_erasers =
15842 {
15843 {
15844 .eraseblocks = { {128 * 1024, 1} },
15845 .block_erase = erase_chip_block_jedec,
15846 }
15847 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015848 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015849 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015850 },
15851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015852 {
15853 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015854 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015855 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015856 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015857 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015858 .total_size = 256,
15859 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015860 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015861 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015862 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015863 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015864 .block_erasers =
15865 {
15866 {
15867 .eraseblocks = { {256 * 1024, 1} },
15868 .block_erase = erase_chip_block_jedec,
15869 }
15870 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015871 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015872 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015873 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015874 },
15875
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015876 {
15877 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015878 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015879 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015880 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015881 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015882 .total_size = 512,
15883 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000015884 .feature_bits = FEATURE_LONG_RESET,
15885 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015886 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015887 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015888 .block_erasers =
15889 {
15890 {
15891 .eraseblocks = { {512 * 1024, 1} },
15892 .block_erase = erase_chip_block_jedec,
15893 }
15894 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015895 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015897 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015898 },
15899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015900 {
15901 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000015902 .name = "W29GL032CB",
15903 .bustype = BUS_PARALLEL,
15904 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15905 .model_id = WINBOND_W29GL032CB,
15906 .total_size = 4096,
15907 .page_size = 128 * 1024, /* actual page size is 16 */
15908 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15909 .tested = TEST_UNTESTED,
15910 .probe = probe_jedec_29gl,
15911 .probe_timing = TIMING_ZERO,
15912 .block_erasers =
15913 {
15914 {
15915 .eraseblocks = {
15916 {8 * 1024, 8},
15917 {64 * 1024, 63},
15918 },
15919 .block_erase = erase_sector_jedec,
15920 }, {
15921 .eraseblocks = { {4 * 1024 * 1024, 1} },
15922 .block_erase = erase_chip_block_jedec,
15923 },
15924 },
15925 .write = write_jedec_1,
15926 .read = read_memmapped,
15927 .voltage = {2700, 3600},
15928 },
15929
15930 {
15931 .vendor = "Winbond",
15932 .name = "W29GL032CT",
15933 .bustype = BUS_PARALLEL,
15934 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15935 .model_id = WINBOND_W29GL032CT,
15936 .total_size = 4096,
15937 .page_size = 128 * 1024, /* actual page size is 16 */
15938 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15939 .tested = TEST_UNTESTED,
15940 .probe = probe_jedec_29gl,
15941 .probe_timing = TIMING_ZERO,
15942 .block_erasers =
15943 {
15944 {
15945 .eraseblocks = {
15946 {64 * 1024, 63},
15947 {8 * 1024, 8},
15948 },
15949 .block_erase = erase_sector_jedec,
15950 }, {
15951 .eraseblocks = { {4 * 1024 * 1024, 1} },
15952 .block_erase = erase_chip_block_jedec,
15953 },
15954 },
15955 .write = write_jedec_1,
15956 .read = read_memmapped,
15957 .voltage = {2700, 3600},
15958 },
15959
15960 {
15961 .vendor = "Winbond",
15962 .name = "W29GL032CH/L",
15963 .bustype = BUS_PARALLEL,
15964 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15965 .model_id = WINBOND_W29GL032CHL,
15966 .total_size = 4096,
15967 .page_size = 128 * 1024, /* actual page size is 16 */
15968 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15969 .tested = TEST_UNTESTED,
15970 .probe = probe_jedec_29gl,
15971 .probe_timing = TIMING_ZERO,
15972 .block_erasers =
15973 {
15974 {
15975 .eraseblocks = { {64 * 1024, 64} },
15976 .block_erase = erase_sector_jedec,
15977 }, {
15978 .eraseblocks = { {4 * 1024 * 1024, 1} },
15979 .block_erase = erase_chip_block_jedec,
15980 },
15981 },
15982 .write = write_jedec_1,
15983 .read = read_memmapped,
15984 .voltage = {2700, 3600},
15985 },
15986
15987 {
15988 .vendor = "Winbond",
15989 .name = "W29GL064CB",
15990 .bustype = BUS_PARALLEL,
15991 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15992 .model_id = WINBOND_W29GL064CB,
15993 .total_size = 8192,
15994 .page_size = 128 * 1024, /* actual page size is 16 */
15995 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15996 .tested = TEST_UNTESTED,
15997 .probe = probe_jedec_29gl,
15998 .probe_timing = TIMING_ZERO,
15999 .block_erasers =
16000 {
16001 {
16002 .eraseblocks = {
16003 {8 * 1024, 8},
16004 {64 * 1024, 127},
16005 },
16006 .block_erase = erase_sector_jedec,
16007 }, {
16008 .eraseblocks = { {8 * 1024 * 1024, 1} },
16009 .block_erase = erase_chip_block_jedec,
16010 },
16011 },
16012 .write = write_jedec_1,
16013 .read = read_memmapped,
16014 .voltage = {2700, 3600},
16015 },
16016
16017 {
16018 .vendor = "Winbond",
16019 .name = "W29GL064CT",
16020 .bustype = BUS_PARALLEL,
16021 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16022 .model_id = WINBOND_W29GL064CT,
16023 .total_size = 8192,
16024 .page_size = 128 * 1024, /* actual page size is 16 */
16025 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16026 .tested = TEST_UNTESTED,
16027 .probe = probe_jedec_29gl,
16028 .probe_timing = TIMING_ZERO,
16029 .block_erasers =
16030 {
16031 {
16032 .eraseblocks = {
16033 {64 * 1024, 127},
16034 {8 * 1024, 8},
16035 },
16036 .block_erase = erase_sector_jedec,
16037 }, {
16038 .eraseblocks = { {8 * 1024 * 1024, 1} },
16039 .block_erase = erase_chip_block_jedec,
16040 },
16041 },
16042 .write = write_jedec_1,
16043 .read = read_memmapped,
16044 .voltage = {2700, 3600},
16045 },
16046
16047 {
16048 .vendor = "Winbond",
16049 .name = "W29GL064CH/L",
16050 .bustype = BUS_PARALLEL,
16051 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16052 .model_id = WINBOND_W29GL064CHL,
16053 .total_size = 8192,
16054 .page_size = 128 * 1024, /* actual page size is 16 */
16055 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16056 .tested = TEST_UNTESTED,
16057 .probe = probe_jedec_29gl,
16058 .probe_timing = TIMING_ZERO,
16059 .block_erasers =
16060 {
16061 {
16062 .eraseblocks = { {64 * 1024, 128} },
16063 .block_erase = erase_sector_jedec,
16064 }, {
16065 .eraseblocks = { {8 * 1024 * 1024, 1} },
16066 .block_erase = erase_chip_block_jedec,
16067 },
16068 },
16069 .write = write_jedec_1,
16070 .read = read_memmapped,
16071 .voltage = {2700, 3600},
16072 },
16073
16074 {
16075 .vendor = "Winbond",
16076 .name = "W29GL128C",
16077 .bustype = BUS_PARALLEL,
16078 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16079 .model_id = WINBOND_W29GL128CHL,
16080 .total_size = 16384,
16081 .page_size = 128 * 1024, /* actual page size is 16 */
16082 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16083 .tested = TEST_UNTESTED,
16084 .probe = probe_jedec_29gl,
16085 .probe_timing = TIMING_ZERO,
16086 .block_erasers =
16087 {
16088 {
16089 .eraseblocks = { {128 * 1024, 128} },
16090 .block_erase = erase_sector_jedec,
16091 }, {
16092 .eraseblocks = { {16 * 1024 * 1024, 1} },
16093 .block_erase = erase_chip_block_jedec,
16094 },
16095 },
16096 .write = write_jedec_1,
16097 .read = read_memmapped,
16098 .voltage = {2700, 3600},
16099 },
16100
16101 {
16102 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000016103 .name = "W39F010",
16104 .bustype = BUS_PARALLEL,
16105 .manufacture_id = WINBOND_ID,
16106 .model_id = WINBOND_W39F010,
16107 .total_size = 128,
16108 .page_size = 4 * 1024,
16109 .feature_bits = FEATURE_EITHER_RESET,
16110 .tested = TEST_OK_PREW,
16111 .probe = probe_jedec,
16112 .probe_timing = 10,
16113 .block_erasers =
16114 {
16115 {
16116 .eraseblocks = { {4 * 1024, 32} },
16117 .block_erase = erase_block_jedec,
16118 }, {
16119 .eraseblocks = { {128 * 1024, 1} },
16120 .block_erase = erase_chip_block_jedec,
16121 }
16122 },
16123 .printlock = printlock_w39f010,
16124 .write = write_jedec_1,
16125 .read = read_memmapped,
16126 .voltage = {4500, 5500},
16127 },
16128
16129 {
16130 .vendor = "Winbond",
16131 .name = "W39L010",
16132 .bustype = BUS_PARALLEL,
16133 .manufacture_id = WINBOND_ID,
16134 .model_id = WINBOND_W39L010,
16135 .total_size = 128,
16136 .page_size = 4 * 1024,
16137 .feature_bits = FEATURE_EITHER_RESET,
16138 .tested = TEST_UNTESTED,
16139 .probe = probe_jedec,
16140 .probe_timing = 10,
16141 .block_erasers =
16142 {
16143 {
16144 .eraseblocks = { {4 * 1024, 32} },
16145 .block_erase = erase_block_jedec,
16146 }, {
16147 .eraseblocks = { {128 * 1024, 1} },
16148 .block_erase = erase_chip_block_jedec,
16149 }
16150 },
16151 .printlock = printlock_w39l010,
16152 .write = write_jedec_1,
16153 .read = read_memmapped,
16154 .voltage = {3000, 3600},
16155 },
16156
16157 {
16158 .vendor = "Winbond",
16159 .name = "W39L020",
16160 .bustype = BUS_PARALLEL,
16161 .manufacture_id = WINBOND_ID,
16162 .model_id = WINBOND_W39L020,
16163 .total_size = 256,
16164 .page_size = 4 * 1024,
16165 .feature_bits = FEATURE_EITHER_RESET,
16166 .tested = TEST_UNTESTED,
16167 .probe = probe_jedec,
16168 .probe_timing = 10,
16169 .block_erasers =
16170 {
16171 {
16172 .eraseblocks = { {4 * 1024, 64} },
16173 .block_erase = erase_block_jedec,
16174 }, {
16175 .eraseblocks = { {64 * 1024, 4} },
16176 .block_erase = erase_sector_jedec,
16177 }, {
16178 .eraseblocks = { {256 * 1024, 1} },
16179 .block_erase = erase_chip_block_jedec,
16180 }
16181 },
16182 .printlock = printlock_w39l020,
16183 .write = write_jedec_1,
16184 .read = read_memmapped,
16185 .voltage = {3000, 3600},
16186 },
16187
16188 {
16189 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000016190 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016191 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000016192 .manufacture_id = WINBOND_ID,
16193 .model_id = WINBOND_W39L040,
16194 .total_size = 512,
16195 .page_size = 64 * 1024,
16196 .feature_bits = FEATURE_EITHER_RESET,
16197 .tested = TEST_OK_PR,
16198 .probe = probe_jedec,
16199 .probe_timing = 10,
16200 .block_erasers =
16201 {
16202 {
16203 .eraseblocks = { {4 * 1024, 128} },
16204 .block_erase = erase_block_jedec,
16205 }, {
16206 .eraseblocks = { {64 * 1024, 8} },
16207 .block_erase = erase_sector_jedec,
16208 }, {
16209 .eraseblocks = { {512 * 1024, 1} },
16210 .block_erase = erase_chip_block_jedec,
16211 }
16212 },
16213 .printlock = printlock_w39l040,
16214 .write = write_jedec_1,
16215 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016216 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000016217 },
16218
16219 {
16220 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016221 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016222 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016223 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016224 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016225 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016226 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016227 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016228 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016229 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000016230 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016231 .block_erasers =
16232 {
16233 {
16234 .eraseblocks = { {64 * 1024, 8} },
16235 .block_erase = erase_sector_jedec,
16236 }, {
16237 .eraseblocks = { {512 * 1024, 1} },
16238 .block_erase = erase_chip_block_jedec,
16239 }
16240 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016241 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000016242 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016243 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016244 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016245 },
16246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016247 {
16248 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016249 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016250 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016251 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016252 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016253 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016254 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016255 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016256 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016257 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000016258 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016259 .block_erasers =
16260 {
16261 {
16262 .eraseblocks = { {64 * 1024, 8} },
16263 .block_erase = erase_sector_jedec,
16264 }, {
16265 .eraseblocks = { {512 * 1024, 1} },
16266 .block_erase = erase_chip_block_jedec,
16267 }
16268 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016269 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000016270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016272 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016273 },
16274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016275 {
16276 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016277 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016278 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016279 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016280 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016281 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016282 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016283 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016284 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000016285 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016286 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016287 .block_erasers =
16288 {
16289 {
16290 .eraseblocks = { {64 * 1024, 8} },
16291 .block_erase = erase_sector_jedec,
16292 }, {
16293 .eraseblocks = { {512 * 1024, 1} },
16294 .block_erase = erase_chip_block_jedec,
16295 }
16296 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000016297 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000016298 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016299 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016300 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016301 },
16302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016303 {
16304 .vendor = "Winbond",
16305 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016306 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016307 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016308 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016309 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016310 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000016311 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016312 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016313 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016314 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016315 .block_erasers =
16316 {
16317 {
16318 .eraseblocks = { {4 * 1024, 128} },
16319 .block_erase = erase_block_jedec,
16320 }, {
16321 .eraseblocks = { {64 * 1024, 8} },
16322 .block_erase = erase_sector_jedec,
16323 }, {
16324 .eraseblocks = { {512 * 1024, 1} },
16325 .block_erase = erase_chip_block_jedec,
16326 }
16327 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016328 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016329 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016330 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016331 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016332 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016333 },
16334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016335 {
16336 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016337 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016338 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016339 .manufacture_id = WINBOND_ID,
16340 .model_id = WINBOND_W39V040B,
16341 .total_size = 512,
16342 .page_size = 64 * 1024,
16343 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000016344 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016345 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016346 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016347 .block_erasers =
16348 {
16349 {
16350 .eraseblocks = { {64 * 1024, 8} },
16351 .block_erase = erase_sector_jedec,
16352 }, {
16353 .eraseblocks = { {512 * 1024, 1} },
16354 .block_erase = erase_chip_block_jedec,
16355 }
16356 },
16357 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016358 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016359 .write = write_jedec_1,
16360 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016361 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016362 },
16363
16364 {
16365 .vendor = "Winbond",
16366 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016367 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016368 .manufacture_id = WINBOND_ID,
16369 .model_id = WINBOND_W39V040C,
16370 .total_size = 512,
16371 .page_size = 64 * 1024,
16372 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000016373 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016374 .probe = probe_jedec,
16375 .probe_timing = 10,
16376 .block_erasers =
16377 {
16378 {
16379 .eraseblocks = { {64 * 1024, 8} },
16380 .block_erase = erase_sector_jedec,
16381 }, {
16382 .eraseblocks = { {512 * 1024, 1} },
16383 .block_erase = erase_chip_block_jedec,
16384 }
16385 },
16386 .printlock = printlock_w39v040fc,
16387 .write = write_jedec_1,
16388 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016389 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016390 },
16391
16392 {
16393 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016394 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016395 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016396 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016397 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016398 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016399 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016400 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000016401 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016402 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000016403 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016404 .block_erasers =
16405 {
16406 {
16407 .eraseblocks = { {64 * 1024, 16} },
16408 .block_erase = erase_sector_jedec,
16409 }, {
16410 .eraseblocks = { {1024 * 1024, 1} },
16411 .block_erase = erase_chip_block_jedec,
16412 }
16413 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016414 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000016415 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016417 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016418 },
16419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016420 {
16421 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016422 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016423 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016424 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016425 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016426 .total_size = 256,
16427 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016428 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016429 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016430 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016431 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016432 .block_erasers =
16433 {
16434 {
16435 .eraseblocks = {
16436 {128 * 1024, 1},
16437 {96 * 1024, 1},
16438 {8 * 1024, 2},
16439 {16 * 1024, 1},
16440 },
16441 .block_erase = erase_sector_jedec,
16442 }, {
16443 .eraseblocks = { {256 * 1024, 1} },
16444 .block_erase = erase_chip_block_jedec,
16445 }
16446 },
Sean Nelson35727f72010-01-28 23:55:12 +000016447 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016449 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016450 },
16451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016452 {
16453 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016454 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016455 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016456 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016457 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016458 .total_size = 256,
16459 .page_size = 128,
16460 .feature_bits = FEATURE_EITHER_RESET,
16461 .tested = TEST_OK_PROBE,
16462 .probe = probe_jedec,
16463 .probe_timing = 10,
16464 .block_erasers =
16465 {
16466 {
16467 .eraseblocks = { {256 * 1024, 1} },
16468 .block_erase = erase_chip_block_jedec,
16469 }
16470 },
16471 .write = write_jedec_1,
16472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016473 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016474 },
16475
16476 {
16477 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016478 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016479 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016480 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016481 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016482 .total_size = 256,
16483 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016484 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016485 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016486 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016487 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016488 .block_erasers =
16489 {
16490 {
16491 .eraseblocks = {
16492 {64 * 1024, 3},
16493 {32 * 1024, 1},
16494 {8 * 1024, 2},
16495 {16 * 1024, 1},
16496 },
16497 .block_erase = erase_sector_jedec,
16498 }, {
16499 .eraseblocks = { {256 * 1024, 1} },
16500 .block_erase = erase_chip_block_jedec,
16501 }
16502 },
Sean Nelson35727f72010-01-28 23:55:12 +000016503 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016505 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016506 },
16507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016508 {
16509 .vendor = "Winbond",
16510 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016511 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016512 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016513 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016514 .total_size = 256,
16515 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016516 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000016517 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016518 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016519 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016520 .block_erasers =
16521 {
16522 {
16523 .eraseblocks = {
16524 {64 * 1024, 3},
16525 {32 * 1024, 1},
16526 {8 * 1024, 2},
16527 {16 * 1024, 1},
16528 },
16529 .block_erase = erase_sector_jedec,
16530 }, {
16531 .eraseblocks = { {256 * 1024, 1} },
16532 .block_erase = erase_chip_block_jedec,
16533 }
16534 },
Sean Nelson35727f72010-01-28 23:55:12 +000016535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016537 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016538 },
16539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016540 {
16541 .vendor = "Winbond",
16542 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016543 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016544 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016545 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016546 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016547 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016548 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016549 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016550 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016551 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016552 .block_erasers =
16553 {
16554 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016555 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016556 .block_erase = erase_sector_jedec,
16557 }, {
16558 .eraseblocks = { {1024 * 1024, 1} },
16559 .block_erase = erase_chip_block_jedec,
16560 }
16561 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016562 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016563 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016564 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016565 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016566 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016567 },
16568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016569 {
16570 .vendor = "Winbond",
16571 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016572 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016573 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016574 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016575 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016576 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016577 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016578 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016579 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016580 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016581 .block_erasers =
16582 {
16583 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016584 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016585 .block_erase = erase_sector_jedec,
16586 }, {
16587 .eraseblocks = { {512 * 1024, 1} },
16588 .block_erase = erase_chip_block_jedec,
16589 }
16590 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016591 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000016592 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016593 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016594 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016595 },
nybashcbb46e22018-02-11 17:53:49 -080016596
16597 {
16598 .vendor = "Zetta Device",
David Hendricksa72d5a92018-02-11 17:58:44 -080016599 .name = "ZD25D20",
16600 .bustype = BUS_SPI,
16601 .manufacture_id = ZETTADEVICE_ID,
16602 .model_id = ZETTADEVICE_ZD25D20,
16603 .total_size = 256,
16604 .page_size = 256,
16605 .feature_bits = FEATURE_WRSR_WREN,
16606 .tested = TEST_UNTESTED,
16607 .probe = probe_spi_rdid,
16608 .probe_timing = TIMING_ZERO,
16609 .block_erasers =
16610 {
16611 {
16612 .eraseblocks = { {4 * 1024, 64} },
16613 .block_erase = spi_block_erase_20,
16614 }, {
16615 .eraseblocks = { {32 * 1024, 8} },
16616 .block_erase = spi_block_erase_52,
16617 }, {
16618 .eraseblocks = { {64 * 1024, 4} },
16619 .block_erase = spi_block_erase_d8,
16620 }, {
16621 .eraseblocks = { {256 * 1024, 1} },
16622 .block_erase = spi_block_erase_60,
16623 }, {
16624 .eraseblocks = { {256 * 1024, 1} },
16625 .block_erase = spi_block_erase_c7,
16626 }
16627 },
16628 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16629 .unlock = spi_disable_blockprotect,
16630 .write = spi_chip_write_256,
16631 .read = spi_chip_read,
16632 .voltage = {2700, 3600},
16633 },
16634
16635 {
16636 .vendor = "Zetta Device",
nybashcbb46e22018-02-11 17:53:49 -080016637 .name = "ZD25D40",
16638 .bustype = BUS_SPI,
16639 .manufacture_id = ZETTADEVICE_ID,
16640 .model_id = ZETTADEVICE_ZD25D40,
16641 .total_size = 512,
16642 .page_size = 256,
16643 .feature_bits = FEATURE_WRSR_WREN,
16644 .tested = TEST_UNTESTED,
16645 .probe = probe_spi_rdid,
16646 .probe_timing = TIMING_ZERO,
16647 .block_erasers =
16648 {
16649 {
16650 .eraseblocks = { {4 * 1024, 128} },
16651 .block_erase = spi_block_erase_20,
16652 }, {
16653 .eraseblocks = { {32 * 1024, 16} },
16654 .block_erase = spi_block_erase_52,
16655 }, {
16656 .eraseblocks = { {64 * 1024, 8} },
16657 .block_erase = spi_block_erase_d8,
16658 }, {
16659 .eraseblocks = { {512 * 1024, 1} },
16660 .block_erase = spi_block_erase_60,
16661 }, {
16662 .eraseblocks = { {512 * 1024, 1} },
16663 .block_erase = spi_block_erase_c7,
16664 }
16665 },
16666 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16667 .unlock = spi_disable_blockprotect,
16668 .write = spi_chip_write_256,
16669 .read = spi_chip_read,
16670 .voltage = {2700, 3600},
16671 },
16672
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016673 {
16674 .vendor = "Unknown",
16675 .name = "SFDP-capable chip",
16676 .bustype = BUS_SPI,
16677 .manufacture_id = GENERIC_MANUF_ID,
16678 .model_id = SFDP_DEVICE_ID,
16679 /* We present our own "report this" text hence we do not
16680 * want the default "This flash part has status UNTESTED..."
16681 * text to be printed. */
16682 .tested = TEST_OK_PREW,
16683 .probe = probe_spi_sfdp,
16684 .unlock = spi_disable_blockprotect, /* is this safe? */
16685 .read = spi_chip_read,
16686 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000016687 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016688 /* Everything below will be set by the probing function. */
16689 .write = NULL,
16690 .total_size = 0,
16691 .page_size = 0,
16692 .feature_bits = 0,
16693 .block_erasers = {},
16694 },
FENG yu ningff692fb2008-12-08 18:15:10 +000016695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016696 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000016697 .vendor = "Programmer",
16698 .name = "Opaque flash chip",
16699 .bustype = BUS_PROG,
16700 .manufacture_id = PROGMANUF_ID,
16701 .model_id = PROGDEV_ID,
16702 .total_size = 0,
16703 .page_size = 256,
16704 /* probe is assumed to work, rest will be filled in by probe */
16705 .tested = TEST_OK_PROBE,
16706 .probe = probe_opaque,
16707 /* eraseblock sizes will be set by the probing function */
16708 .block_erasers =
16709 {
16710 {
16711 .block_erase = erase_opaque,
16712 }
16713 },
16714 .write = write_opaque,
16715 .read = read_opaque,
16716 },
16717
16718 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016719 .vendor = "AMIC",
16720 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016721 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016722 .manufacture_id = AMIC_ID,
16723 .model_id = GENERIC_DEVICE_ID,
16724 .total_size = 0,
16725 .page_size = 256,
16726 .tested = TEST_BAD_PREW,
16727 .probe = probe_spi_rdid4,
16728 .probe_timing = TIMING_ZERO,
16729 .write = NULL,
16730 .read = NULL,
16731 },
16732
16733 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016734 .vendor = "Atmel",
16735 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016736 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016737 .manufacture_id = ATMEL_ID,
16738 .model_id = GENERIC_DEVICE_ID,
16739 .total_size = 0,
16740 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016741 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016742 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016743 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016744 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016745 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016746 },
16747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016748 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000016749 .vendor = "Eon",
16750 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016751 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016752 .manufacture_id = EON_ID_NOPREFIX,
16753 .model_id = GENERIC_DEVICE_ID,
16754 .total_size = 0,
16755 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016756 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016757 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016758 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016759 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016760 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016761 },
16762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016763 {
16764 .vendor = "Macronix",
16765 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016766 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000016767 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016768 .model_id = GENERIC_DEVICE_ID,
16769 .total_size = 0,
16770 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016771 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016772 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016773 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016774 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016775 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016776 },
16777
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016778 {
16779 .vendor = "PMC",
16780 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016781 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016782 .manufacture_id = PMC_ID,
16783 .model_id = GENERIC_DEVICE_ID,
16784 .total_size = 0,
16785 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016786 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016787 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016788 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016789 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016790 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016791 },
16792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016793 {
16794 .vendor = "SST",
16795 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016797 .manufacture_id = SST_ID,
16798 .model_id = GENERIC_DEVICE_ID,
16799 .total_size = 0,
16800 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016801 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016802 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016803 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016804 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016805 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016806 },
16807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016808 {
16809 .vendor = "ST",
16810 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016812 .manufacture_id = ST_ID,
16813 .model_id = GENERIC_DEVICE_ID,
16814 .total_size = 0,
16815 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016816 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016817 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016818 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016819 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016820 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016821 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000016822
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016823 {
Sean Nelson118e1d62009-11-24 02:08:11 +000016824 .vendor = "Sanyo",
16825 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016826 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000016827 .manufacture_id = SANYO_ID,
16828 .model_id = GENERIC_DEVICE_ID,
16829 .total_size = 0,
16830 .page_size = 256,
16831 .tested = TEST_BAD_PREW,
16832 .probe = probe_spi_rdid,
16833 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000016834 .write = NULL,
16835 .read = NULL,
16836 },
16837
16838 {
Stefan Taunereb582572012-09-21 12:52:50 +000016839 .vendor = "Winbond",
16840 .name = "unknown Winbond (ex Nexcom) SPI chip",
16841 .bustype = BUS_SPI,
16842 .manufacture_id = WINBOND_NEX_ID,
16843 .model_id = GENERIC_DEVICE_ID,
16844 .total_size = 0,
16845 .page_size = 256,
16846 .tested = TEST_BAD_PREW,
16847 .probe = probe_spi_rdid,
16848 .probe_timing = TIMING_ZERO,
16849 .write = NULL,
16850 .read = NULL,
16851 },
16852
16853 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016854 .vendor = "Generic",
16855 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016856 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016857 .manufacture_id = GENERIC_MANUF_ID,
16858 .model_id = GENERIC_DEVICE_ID,
16859 .total_size = 0,
16860 .page_size = 256,
16861 .tested = TEST_BAD_PREW,
16862 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016863 .write = NULL,
16864 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000016865
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016866 {
16867 .vendor = "Generic",
16868 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016869 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016870 .manufacture_id = GENERIC_MANUF_ID,
16871 .model_id = GENERIC_DEVICE_ID,
16872 .total_size = 0,
16873 .page_size = 256,
16874 .tested = TEST_BAD_PREW,
16875 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016876 .write = NULL,
16877 },
16878
Stefan Tauner96658be2014-05-26 22:05:31 +000016879 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000016880};
Stefan Tauner96658be2014-05-26 22:05:31 +000016881
16882const unsigned int flashchips_size = ARRAY_SIZE(flashchips);