blob: 9898fa77747e139e4377cb96cbcaff08193991d5 [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",
Evan Jensen291c1012018-05-17 14:30:19 -07002214 .name = "AT25SF081",
2215 .bustype = BUS_SPI,
2216 .manufacture_id = ATMEL_ID,
2217 .model_id = ATMEL_AT25SF081,
2218 .total_size = 1024,
2219 .page_size = 256,
2220 .feature_bits = FEATURE_WRSR_WREN,
2221 .tested = TEST_OK_PREW,
2222 .probe = probe_spi_rdid,
2223 .probe_timing = TIMING_ZERO,
2224 .block_erasers =
2225 {
2226 {
2227 .eraseblocks = { {4 * 1024, 256} },
2228 .block_erase = spi_block_erase_20,
2229 }, {
2230 .eraseblocks = { {32 * 1024, 32} },
2231 .block_erase = spi_block_erase_52,
2232 }, {
2233 .eraseblocks = { {64 * 1024, 16} },
2234 .block_erase = spi_block_erase_d8,
2235 }, {
2236 .eraseblocks = { {1024 * 1024, 1} },
2237 .block_erase = spi_block_erase_60,
2238 }, {
2239 .eraseblocks = { {1024 * 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 = {2300, 3600},
2248 },
2249
2250 {
2251 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002252 .name = "AT25SF161",
2253 .bustype = BUS_SPI,
2254 .manufacture_id = ATMEL_ID,
2255 .model_id = ATMEL_AT25SF161,
2256 .total_size = 2048,
2257 .page_size = 256,
2258 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2259 .tested = TEST_OK_PREW,
2260 .probe = probe_spi_rdid,
2261 .probe_timing = TIMING_ZERO,
2262 .block_erasers =
2263 {
2264 {
2265 .eraseblocks = { {4 * 1024, 512} },
2266 .block_erase = spi_block_erase_20,
2267 }, {
2268 .eraseblocks = { {32 * 1024, 64} },
2269 .block_erase = spi_block_erase_52,
2270 }, {
2271 .eraseblocks = { {64 * 1024, 32} },
2272 .block_erase = spi_block_erase_d8,
2273 }, {
2274 .eraseblocks = { {2048 * 1024, 1} },
2275 .block_erase = spi_block_erase_60,
2276 }, {
2277 .eraseblocks = { {2048 * 1024, 1} },
2278 .block_erase = spi_block_erase_c7,
2279 }
2280 },
2281 .printlock = spi_prettyprint_status_register_plain,
2282 .unlock = spi_disable_blockprotect,
2283 .write = spi_chip_write_256,
2284 .read = spi_chip_read,
2285 .voltage = {2500, 3600},
2286 },
2287
2288 {
2289 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002291 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002293 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .total_size = 512,
2295 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002296 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002297 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002298 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002299 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002300 .block_erasers =
2301 {
2302 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002303 .eraseblocks = { {256, 2048} },
2304 .block_erase = spi_block_erase_81,
2305 }, {
2306 .eraseblocks = { {2 * 1024, 256} },
2307 .block_erase = spi_block_erase_50,
2308 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002309 .eraseblocks = { {4 * 1024, 128} },
2310 .block_erase = spi_block_erase_20,
2311 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002312 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002313 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002314 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002315 .write = spi_chip_write_1,
2316 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002317 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002318 },
2319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 {
2321 .vendor = "Atmel",
2322 .name = "AT26DF081A",
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_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002326 .total_size = 1024,
2327 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002328 .feature_bits = FEATURE_WRSR_WREN,
2329 .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, 256} },
2336 .block_erase = spi_block_erase_20,
2337 }, {
2338 .eraseblocks = { {32 * 1024, 32} },
2339 .block_erase = spi_block_erase_52,
2340 }, {
2341 .eraseblocks = { {64 * 1024, 16} },
2342 .block_erase = spi_block_erase_d8,
2343 }, {
2344 .eraseblocks = { {1024 * 1024, 1} },
2345 .block_erase = spi_block_erase_60,
2346 }, {
2347 .eraseblocks = { {1024 * 1024, 1} },
2348 .block_erase = spi_block_erase_c7,
2349 }
2350 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002351 .printlock = spi_prettyprint_status_register_at26df081a,
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 = "AT26DF161",
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_AT26DF161,
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 Tauner5c316f92015-02-08 21:57:52 +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 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002389 .printlock = spi_prettyprint_status_register_at25df,
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
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002396 {
2397 .vendor = "Atmel",
2398 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002399 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002400 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002401 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002402 .total_size = 2048,
2403 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002404 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002405 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002407 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002408 .block_erasers =
2409 {
2410 {
2411 .eraseblocks = { {4 * 1024, 512} },
2412 .block_erase = spi_block_erase_20,
2413 }, {
2414 .eraseblocks = { {32 * 1024, 64} },
2415 .block_erase = spi_block_erase_52,
2416 }, {
2417 .eraseblocks = { {64 * 1024, 32} },
2418 .block_erase = spi_block_erase_d8,
2419 }, {
2420 .eraseblocks = { {2 * 1024 * 1024, 1} },
2421 .block_erase = spi_block_erase_60,
2422 }, {
2423 .eraseblocks = { {2 * 1024 * 1024, 1} },
2424 .block_erase = spi_block_erase_c7,
2425 }
2426 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002427 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002428 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002429 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002430 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002431 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002432 },
2433
2434 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002435 /*{
2436 .vendor = "Atmel",
2437 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002438 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002439 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002440 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 .total_size = 4096,
2442 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002443 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002444 .tested = TEST_UNTESTED,
2445 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002446 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002447 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002448 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002449 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002450 .read = spi_chip_read,
2451 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002453 {
2454 .vendor = "Atmel",
2455 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002456 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002457 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002458 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002459 .total_size = 512,
2460 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002461 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002462 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002463 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002464 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002465 .block_erasers =
2466 {
2467 {
2468 .eraseblocks = { {4 * 1024, 128} },
2469 .block_erase = spi_block_erase_20,
2470 }, {
2471 .eraseblocks = { {32 * 1024, 16} },
2472 .block_erase = spi_block_erase_52,
2473 }, {
2474 .eraseblocks = { {64 * 1024, 8} },
2475 .block_erase = spi_block_erase_d8,
2476 }, {
2477 .eraseblocks = { {512 * 1024, 1} },
2478 .block_erase = spi_block_erase_60,
2479 }, {
2480 .eraseblocks = { {512 * 1024, 1} },
2481 .block_erase = spi_block_erase_c7,
2482 }
2483 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002484 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .write = NULL /* Incompatible Page write */,
2486 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002487 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002488 },
2489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002490 {
2491 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002492 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002493 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002494 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002495 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002496 .total_size = 64,
2497 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002498 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002499 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002500 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002501 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002502 .block_erasers =
2503 {
2504 {
2505 .eraseblocks = { {64 * 1024, 1} },
2506 .block_erase = erase_chip_block_jedec,
2507 }
2508 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002509 .write = write_jedec,
2510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002511 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002512 },
2513
2514 {
2515 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002516 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002517 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002518 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002519 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002520 .total_size = 128,
2521 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002522 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002523 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002524 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002525 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002526 .block_erasers =
2527 {
2528 {
2529 .eraseblocks = { {128 * 1024, 1} },
2530 .block_erase = erase_chip_block_jedec,
2531 }
2532 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002533 .write = write_jedec, /* FIXME */
2534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002535 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002536 },
2537
2538 {
2539 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002540 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002542 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002543 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002544 .total_size = 256,
2545 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002546 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002548 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002549 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002550 .block_erasers =
2551 {
2552 {
2553 .eraseblocks = { {256 * 1024, 1} },
2554 .block_erase = erase_chip_block_jedec,
2555 }
2556 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002559 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002560 },
2561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002562 {
2563 .vendor = "Atmel",
2564 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002565 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002566 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002567 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002568 .total_size = 512,
2569 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002570 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .tested = TEST_UNTESTED,
2572 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002573 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002574 .block_erasers =
2575 {
2576 {
2577 .eraseblocks = { {512 * 1024, 1} },
2578 .block_erase = erase_chip_block_jedec,
2579 }
2580 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002581 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002583 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002584 },
2585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002586 {
2587 .vendor = "Atmel",
2588 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002589 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002590 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002591 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002592 .total_size = 16896 /* No power of two sizes */,
2593 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002594 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002595 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2596 .feature_bits = FEATURE_OTP,
2597 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002598 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002599 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002600 .block_erasers =
2601 {
2602 {
2603 .eraseblocks = {
2604 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2605 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2606 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2607 },
2608 .block_erase = spi_erase_at45cs_sector,
2609 }
2610 },
2611 .printlock = spi_prettyprint_status_register_plain,
2612 .gran = write_gran_1056bytes,
2613 .write = spi_write_at45db,
2614 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002615 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002616 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 {
2619 .vendor = "Atmel",
2620 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002621 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002623 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002624 .total_size = 128 /* or 132, determined from status register */,
2625 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002626 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002627 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2628 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002629 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002630 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002631 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002632 .block_erasers =
2633 {
2634 {
2635 .eraseblocks = { {256, 512} },
2636 .block_erase = spi_erase_at45db_page,
2637 }, {
2638 .eraseblocks = { {8 * 256, 512/8} },
2639 .block_erase = spi_erase_at45db_block,
2640 }, {
2641 .eraseblocks = {
2642 {8 * 256, 1},
2643 {120 * 256, 1},
2644 {128 * 256, 3},
2645 },
2646 .block_erase = spi_erase_at45db_sector
2647 }, {
2648 .eraseblocks = { {128 * 1024, 1} },
2649 .block_erase = spi_erase_at45db_chip,
2650 }
2651 },
2652 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2653 .printlock = spi_prettyprint_status_register_at45db,
2654 /* granularity will be set by the probing function. */
2655 .write = spi_write_at45db,
2656 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002657 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002658 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002660 {
2661 .vendor = "Atmel",
2662 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002663 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002665 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002666 .total_size = 256 /* or 264, determined from status register */,
2667 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002668 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002669 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2670 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002671 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002672 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002673 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002674 .block_erasers =
2675 {
2676 {
2677 .eraseblocks = { {256, 1024} },
2678 .block_erase = spi_erase_at45db_page,
2679 }, {
2680 .eraseblocks = { {8 * 256, 1024/8} },
2681 .block_erase = spi_erase_at45db_block,
2682 }, {
2683 .eraseblocks = {
2684 {8 * 256, 1},
2685 {120 * 256, 1},
2686 {128 * 256, 7},
2687 },
2688 .block_erase = spi_erase_at45db_sector
2689 }, {
2690 .eraseblocks = { {256 * 1024, 1} },
2691 .block_erase = spi_erase_at45db_chip,
2692 }
2693 },
2694 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2695 .printlock = spi_prettyprint_status_register_at45db,
2696 /* granularity will be set by the probing function. */
2697 .write = spi_write_at45db,
2698 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002699 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002700 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002701
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002702 {
2703 .vendor = "Atmel",
2704 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002705 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002706 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002707 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002708 .total_size = 512 /* or 528, determined from status register */,
2709 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002710 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002711 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2712 .feature_bits = FEATURE_OTP,
2713 .tested = TEST_OK_PREW,
2714 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002715 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002716 .block_erasers =
2717 {
2718 {
2719 .eraseblocks = { {256, 2048} },
2720 .block_erase = spi_erase_at45db_page,
2721 }, {
2722 .eraseblocks = { {8 * 256, 2048/8} },
2723 .block_erase = spi_erase_at45db_block,
2724 }, {
2725 .eraseblocks = {
2726 {8 * 256, 1},
2727 {248 * 256, 1},
2728 {256 * 256, 7},
2729 },
2730 .block_erase = spi_erase_at45db_sector
2731 }, {
2732 .eraseblocks = { {512 * 1024, 1} },
2733 .block_erase = spi_erase_at45db_chip,
2734 }
2735 },
2736 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2737 .printlock = spi_prettyprint_status_register_at45db,
2738 /* granularity will be set by the probing function. */
2739 .write = spi_write_at45db,
2740 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2741 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002742 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002743
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002744 {
2745 .vendor = "Atmel",
2746 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002747 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002748 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002749 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002750 .total_size = 1024 /* or 1056, determined from status register */,
2751 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002752 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002753 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2754 .feature_bits = FEATURE_OTP,
2755 .tested = TEST_UNTESTED,
2756 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002757 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002758 .block_erasers =
2759 {
2760 {
2761 .eraseblocks = { {256, 4096} },
2762 .block_erase = spi_erase_at45db_page,
2763 }, {
2764 .eraseblocks = { {8 * 256, 4096/8} },
2765 .block_erase = spi_erase_at45db_block,
2766 }, {
2767 .eraseblocks = {
2768 {8 * 256, 1},
2769 {248 * 256, 1},
2770 {256 * 256, 15},
2771 },
2772 .block_erase = spi_erase_at45db_sector
2773 }, {
2774 .eraseblocks = { {1024 * 1024, 1} },
2775 .block_erase = spi_erase_at45db_chip,
2776 }
2777 },
2778 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2779 .printlock = spi_prettyprint_status_register_at45db,
2780 /* granularity will be set by the probing function. */
2781 .write = spi_write_at45db,
2782 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002783 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002784 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002786 {
2787 .vendor = "Atmel",
2788 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002789 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002791 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002792 .total_size = 2048 /* or 2112, determined from status register */,
2793 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002794 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002795 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2796 .feature_bits = FEATURE_OTP,
2797 .tested = TEST_OK_PREW,
2798 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002799 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002800 .block_erasers =
2801 {
2802 {
2803 .eraseblocks = { {512, 4096} },
2804 .block_erase = spi_erase_at45db_page,
2805 }, {
2806 .eraseblocks = { {8 * 512, 4096/8} },
2807 .block_erase = spi_erase_at45db_block,
2808 }, {
2809 .eraseblocks = {
2810 {8 * 512, 1},
2811 {248 * 512, 1},
2812 {256 * 512, 15},
2813 },
2814 .block_erase = spi_erase_at45db_sector
2815 }, {
2816 .eraseblocks = { {2048 * 1024, 1} },
2817 .block_erase = spi_erase_at45db_chip,
2818 }
2819 },
2820 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2821 .printlock = spi_prettyprint_status_register_at45db,
2822 /* granularity will be set by the probing function. */
2823 .write = spi_write_at45db,
2824 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002825 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002826 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002828 {
2829 .vendor = "Atmel",
2830 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002831 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002833 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002834 .total_size = 4224 /* No power of two sizes */,
2835 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002836 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002837 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2838 .feature_bits = FEATURE_OTP,
2839 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002840 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002841 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = { {528, 8192} },
2846 .block_erase = spi_erase_at45db_page,
2847 }, {
2848 .eraseblocks = { {8 * 528, 8192/8} },
2849 .block_erase = spi_erase_at45db_block,
2850 }, /* Although the datasheets describes sectors (which can be write protected)
2851 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002852 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002853 .eraseblocks = {
2854 {8 * 528, 1},
2855 {120 * 528, 1},
2856 {128 * 528, 63},
2857 },
2858 .block_erase = spi_erase_at45db_sector
2859 }, */ {
2860 .eraseblocks = { {4224 * 1024, 1} },
2861 .block_erase = spi_erase_at45db_chip,
2862 }
2863 },
2864 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2865 .gran = write_gran_528bytes,
2866 .write = spi_write_at45db,
2867 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002868 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002869 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002871 {
2872 .vendor = "Atmel",
2873 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002874 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002875 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002876 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002877 .total_size = 4096 /* or 4224, determined from status register */,
2878 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002879 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002881 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002882 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002883 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002884 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002885 .block_erasers =
2886 {
2887 {
2888 .eraseblocks = { {512, 8192} },
2889 .block_erase = spi_erase_at45db_page,
2890 }, {
2891 .eraseblocks = { {8 * 512, 8192/8} },
2892 .block_erase = spi_erase_at45db_block,
2893 }, {
2894 .eraseblocks = {
2895 {8 * 512, 1},
2896 {120 * 512, 1},
2897 {128 * 512, 63},
2898 },
2899 .block_erase = spi_erase_at45db_sector
2900 }, {
2901 .eraseblocks = { {4096 * 1024, 1} },
2902 .block_erase = spi_erase_at45db_chip,
2903 }
2904 },
2905 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2906 .printlock = spi_prettyprint_status_register_at45db,
2907 /* granularity will be set by the probing function. */
2908 .write = spi_write_at45db,
2909 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2910 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2911 },
2912
2913 {
2914 .vendor = "Atmel",
2915 .name = "AT45DB321E",
2916 .bustype = BUS_SPI,
2917 .manufacture_id = ATMEL_ID,
2918 .model_id = ATMEL_AT45DB321C,
2919 .total_size = 4096 /* or 4224, determined from status register */,
2920 .page_size = 512 /* or 528, determined from status register */,
2921 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2922 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2923 .feature_bits = FEATURE_OTP,
2924 .tested = TEST_UNTESTED,
2925 .probe = probe_spi_at45db,
2926 .probe_timing = TIMING_ZERO,
2927 .block_erasers =
2928 {
2929 {
2930 .eraseblocks = { {512, 8192} },
2931 .block_erase = spi_erase_at45db_page,
2932 }, {
2933 .eraseblocks = { {8 * 512, 8192/8} },
2934 .block_erase = spi_erase_at45db_block,
2935 }, {
2936 .eraseblocks = {
2937 {8 * 512, 1},
2938 {120 * 512, 1},
2939 {128 * 512, 63},
2940 },
2941 .block_erase = spi_erase_at45db_sector
2942 }, {
2943 .eraseblocks = { {4096 * 1024, 1} },
2944 .block_erase = spi_erase_at45db_chip,
2945 }
2946 },
2947 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2948 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2949 /* granularity will be set by the probing function. */
2950 .write = spi_write_at45db,
2951 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2952 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002953 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002955 {
2956 .vendor = "Atmel",
2957 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002958 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002959 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002960 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002961 .total_size = 8192 /* or 8448, determined from status register */,
2962 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002963 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002964 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2965 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002966 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002967 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002968 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002969 .block_erasers =
2970 {
2971 {
2972 .eraseblocks = { {1024, 8192} },
2973 .block_erase = spi_erase_at45db_page,
2974 }, {
2975 .eraseblocks = { {8 * 1024, 8192/8} },
2976 .block_erase = spi_erase_at45db_block,
2977 }, {
2978 .eraseblocks = {
2979 {8 * 1024, 1},
2980 {248 * 1024, 1},
2981 {256 * 1024, 31},
2982 },
2983 .block_erase = spi_erase_at45db_sector
2984 }, {
2985 .eraseblocks = { {8192 * 1024, 1} },
2986 .block_erase = spi_erase_at45db_chip,
2987 }
2988 },
2989 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2990 .printlock = spi_prettyprint_status_register_at45db,
2991 /* granularity will be set by the probing function. */
2992 .write = spi_write_at45db,
2993 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002994 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002995 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002997 {
2998 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002999 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003000 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003001 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003002 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003003 .total_size = 64,
3004 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003005 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003006 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003007 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003008 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003009 .block_erasers =
3010 {
3011 {
3012 .eraseblocks = { {64 * 1024, 1} },
3013 .block_erase = erase_chip_block_jedec,
3014 }
3015 },
Sean Nelson35727f72010-01-28 23:55:12 +00003016 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003018 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003019 },
3020
3021 {
3022 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003023 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003024 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003025 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003026 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003027 .total_size = 256,
3028 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003029 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003030 .tested = TEST_UNTESTED,
3031 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003032 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003033 .block_erasers =
3034 {
3035 {
3036 .eraseblocks = {
3037 {16 * 1024, 1},
3038 {8 * 1024, 2},
3039 {96 * 1024, 1},
3040 {128 * 1024, 1},
3041 },
3042 .block_erase = erase_sector_jedec,
3043 }, {
3044 .eraseblocks = { {256 * 1024, 1} },
3045 .block_erase = erase_chip_block_jedec,
3046 }
3047 },
Sean Nelson35727f72010-01-28 23:55:12 +00003048 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003050 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003051 },
3052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003053 {
3054 .vendor = "Atmel",
3055 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003056 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003058 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003059 .total_size = 256,
3060 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003061 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003062 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003063 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003064 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003065 .block_erasers =
3066 {
3067 {
3068 .eraseblocks = {
3069 {128 * 1024, 1},
3070 {96 * 1024, 1},
3071 {8 * 1024, 2},
3072 {16 * 1024, 1},
3073 },
3074 .block_erase = erase_sector_jedec,
3075 }, {
3076 .eraseblocks = { {256 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
Sean Nelson35727f72010-01-28 23:55:12 +00003080 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003083 },
3084
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003085 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003086 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003087 .name = "AT49(H)F010",
3088 .bustype = BUS_PARALLEL,
3089 .manufacture_id = ATMEL_ID,
3090 .model_id = ATMEL_AT49F010,
3091 .total_size = 128,
3092 .page_size = 0, /* unused */
3093 .feature_bits = FEATURE_EITHER_RESET,
3094 .tested = TEST_OK_PREW,
3095 .probe = probe_jedec,
3096 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3097 .block_erasers =
3098 {
3099 {
3100 .eraseblocks = { {128 * 1024, 1} },
3101 .block_erase = erase_chip_block_jedec,
3102 }
3103 },
3104 .printlock = printlock_at49f,
Elyes HAOUAS124ef382018-03-27 12:15:09 +02003105 .write = write_jedec_1,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003106 .read = read_memmapped,
3107 .voltage = {4500, 5500},
3108 },
3109
3110 {
3111 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003112 .name = "AT49F020",
3113 .bustype = BUS_PARALLEL,
3114 .manufacture_id = ATMEL_ID,
3115 .model_id = ATMEL_AT49F020,
3116 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003117 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003118 .feature_bits = FEATURE_EITHER_RESET,
3119 .tested = TEST_OK_PRE,
3120 .probe = probe_jedec,
3121 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3122 .block_erasers =
3123 {
3124 {
3125 .eraseblocks = { {256 * 1024, 1} },
3126 .block_erase = erase_chip_block_jedec,
3127 }
3128 /* Chip features an optional permanent write protection
3129 * of the first 8 kB. The erase function is the same as
3130 * above, but 00000H to 01FFFH will not be erased.
3131 * FIXME: add another eraser when partial erasers are
3132 * supported.
3133 */
3134 },
3135 .printlock = printlock_at49f,
3136 .write = write_jedec_1,
3137 .read = read_memmapped,
3138 .voltage = {4500, 5500},
3139 },
3140
3141 {
3142 .vendor = "Atmel",
3143 .name = "AT49F040",
3144 .bustype = BUS_PARALLEL,
3145 .manufacture_id = ATMEL_ID,
3146 .model_id = ATMEL_AT49F040,
3147 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003148 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003149 .feature_bits = FEATURE_EITHER_RESET,
3150 .tested = TEST_UNTESTED,
3151 .probe = probe_jedec,
3152 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3153 .block_erasers =
3154 {
3155 {
3156 .eraseblocks = { {512 * 1024, 1} },
3157 .block_erase = erase_chip_block_jedec,
3158 }
3159 /* Chip features an optional permanent write protection
3160 * of the first 16 kB. The erase function is the same as
3161 * above, but 00000H to 03FFFH will not be erased.
3162 * FIXME: add another eraser when partial erasers are
3163 * supported.
3164 */
3165 },
3166 .printlock = printlock_at49f,
3167 .write = write_jedec_1,
3168 .read = read_memmapped,
3169 .voltage = {4500, 5500},
3170 },
3171
3172 {
3173 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003174 .name = "AT49F080",
3175 .bustype = BUS_PARALLEL,
3176 .manufacture_id = ATMEL_ID,
3177 .model_id = ATMEL_AT49F080,
3178 .total_size = 1024,
3179 .page_size = 0, /* unused */
3180 .feature_bits = FEATURE_EITHER_RESET,
3181 .tested = TEST_UNTESTED,
3182 .probe = probe_jedec,
3183 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3184 .block_erasers =
3185 {
3186 {
3187 .eraseblocks = { {1024 * 1024, 1} },
3188 .block_erase = erase_chip_block_jedec,
3189 }
3190 /* Chip features an optional permanent write protection
3191 * of the first 16 kB. The erase function is the same as
3192 * above, but 00000H to 03FFFH will not be erased.
3193 * FIXME: add another eraser when partial erasers are
3194 * supported.
3195 */
3196 },
3197 .printlock = printlock_at49f,
3198 .write = write_jedec_1,
3199 .read = read_memmapped,
3200 .voltage = {4500, 5500},
3201 },
3202
3203 {
3204 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3205 .vendor = "Atmel",
3206 .name = "AT49F080T",
3207 .bustype = BUS_PARALLEL,
3208 .manufacture_id = ATMEL_ID,
3209 .model_id = ATMEL_AT49F080T,
3210 .total_size = 1024,
3211 .page_size = 0, /* unused */
3212 .feature_bits = FEATURE_EITHER_RESET,
3213 .tested = TEST_UNTESTED,
3214 .probe = probe_jedec,
3215 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3216 .block_erasers =
3217 {
3218 {
3219 .eraseblocks = { {1024 * 1024, 1} },
3220 .block_erase = erase_chip_block_jedec,
3221 }
3222 /* Chip features an optional permanent write protection
3223 * of the first 16 kB. The erase function is the same as
3224 * above, but FC000H to FFFFFH will not be erased.
3225 * FIXME: add another eraser when partial erasers are
3226 * supported.
3227 */
3228 },
3229 .printlock = printlock_at49f,
3230 .write = write_jedec_1,
3231 .read = read_memmapped,
3232 .voltage = {4500, 5500},
3233 },
3234
3235 {
3236 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003237 .name = "AT49LH002",
3238 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3239 .manufacture_id = ATMEL_ID,
3240 .model_id = ATMEL_AT49LH002,
3241 .total_size = 256,
3242 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003243 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003244 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003245 .probe = probe_82802ab,
3246 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = {
3251 {64 * 1024, 3},
3252 {32 * 1024, 1},
3253 {8 * 1024, 2},
3254 {16 * 1024, 1},
3255 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003256 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003257 }, {
3258 .eraseblocks = {
3259 {64 * 1024, 4},
3260 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003261 .block_erase = erase_block_82802ab,
3262 },
3263 },
3264 .printlock = printlock_regspace2_block_eraser_0,
3265 .unlock = unlock_regspace2_block_eraser_0,
3266 .write = write_82802ab,
3267 .read = read_memmapped,
3268 .voltage = {3000, 3600},
3269 },
3270
3271 {
3272 .vendor = "Atmel",
3273 .name = "AT49LH00B4",
3274 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3275 .manufacture_id = ATMEL_ID,
3276 .model_id = ATMEL_AT49LH00B4,
3277 .total_size = 512,
3278 .page_size = 0, /* unused */
3279 .feature_bits = FEATURE_REGISTERMAP,
3280 .tested = TEST_UNTESTED,
3281 .probe = probe_82802ab,
3282 .probe_timing = TIMING_ZERO,
3283 .block_erasers =
3284 {
3285 {
3286 .eraseblocks = {
3287 {8 * 1024, 2},
3288 {16 * 1024, 1},
3289 {32 * 1024, 1},
3290 {64 * 1024, 7},
3291 },
3292 .block_erase = NULL, /* TODO: Implement. */
3293 }, {
3294 .eraseblocks = {
3295 {64 * 1024, 8},
3296 },
3297 .block_erase = erase_block_82802ab,
3298 },
3299 },
3300 .printlock = printlock_regspace2_block_eraser_0,
3301 .unlock = unlock_regspace2_block_eraser_0,
3302 .write = write_82802ab,
3303 .read = read_memmapped,
3304 .voltage = {3000, 3600},
3305 },
3306
3307 {
3308 .vendor = "Atmel",
3309 .name = "AT49LH004",
3310 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3311 .manufacture_id = ATMEL_ID,
3312 .model_id = ATMEL_AT49LH004,
3313 .total_size = 512,
3314 .page_size = 0, /* unused */
3315 .feature_bits = FEATURE_REGISTERMAP,
3316 .tested = TEST_UNTESTED,
3317 .probe = probe_82802ab,
3318 .probe_timing = TIMING_ZERO,
3319 .block_erasers =
3320 {
3321 {
3322 .eraseblocks = {
3323 {64 * 1024, 7},
3324 {32 * 1024, 1},
3325 {8 * 1024, 2},
3326 {16 * 1024, 1},
3327 },
3328 .block_erase = erase_block_82802ab,
3329 }, {
3330 .eraseblocks = {
3331 {64 * 1024, 8},
3332 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003333 .block_erase = NULL, /* TODO: Implement. */
3334 },
3335 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003336 .printlock = printlock_regspace2_block_eraser_0,
3337 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003338 .write = write_82802ab,
3339 .read = read_memmapped,
3340 .voltage = {3000, 3600},
3341 },
3342
3343 {
Andrew Morganca081462011-09-13 22:05:44 +00003344 .vendor = "Catalyst",
3345 .name = "CAT28F512",
3346 .bustype = BUS_PARALLEL,
3347 .manufacture_id = CATALYST_ID,
3348 .model_id = CATALYST_CAT28F512,
3349 .total_size = 64,
3350 .page_size = 0, /* unused */
3351 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003352 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003353 .probe = probe_jedec, /* FIXME! */
3354 .probe_timing = TIMING_ZERO,
3355 .block_erasers =
3356 {
3357 {
3358 .eraseblocks = { {64 * 1024, 1} },
3359 .block_erase = NULL, /* TODO */
3360 },
3361 },
3362 .write = NULL, /* TODO */
3363 .read = read_memmapped,
3364 .voltage = {4500, 5500},
3365 },
3366
3367 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003368 .vendor = "Bright",
3369 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003370 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003371 .manufacture_id = BRIGHT_ID,
3372 .model_id = BRIGHT_BM29F040,
3373 .total_size = 512,
3374 .page_size = 64 * 1024,
3375 .feature_bits = FEATURE_EITHER_RESET,
3376 .tested = TEST_OK_PR,
3377 .probe = probe_jedec,
3378 .probe_timing = TIMING_ZERO,
3379 .block_erasers =
3380 {
3381 {
3382 .eraseblocks = { {64 * 1024, 8} },
3383 .block_erase = erase_sector_jedec,
3384 }, {
3385 .eraseblocks = { {512 * 1024, 1} },
3386 .block_erase = erase_chip_block_jedec,
3387 },
3388 },
3389 .write = write_jedec_1,
3390 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003391 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003392 },
3393
3394 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003395 .vendor = "ENE",
3396 .name = "KB9012 (EDI)",
3397 .bustype = BUS_SPI,
3398 .spi_cmd_set = SPI_EDI,
3399 .total_size = 128,
3400 .page_size = 128,
3401 .feature_bits = FEATURE_ERASED_ZERO,
3402 .tested = TEST_OK_PREW,
3403 .probe = edi_probe_kb9012,
3404 .probe_timing = TIMING_ZERO,
3405 .block_erasers =
3406 {
3407 {
3408 .eraseblocks = { {128, 1024} },
3409 .block_erase = edi_chip_block_erase,
3410 },
3411 },
3412 .gran = write_gran_128bytes,
3413 .write = edi_chip_write,
3414 .read = edi_chip_read,
3415 .voltage = {2700, 3600},
3416 },
3417
3418 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003419 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003420 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003421 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003422 .manufacture_id = ESMT_ID,
3423 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003424 .total_size = 256,
3425 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003426 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003427 .tested = TEST_UNTESTED,
3428 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003429 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003430 .block_erasers =
3431 {
3432 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003433 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003434 {128 * 1024, 1},
3435 {96 * 1024, 1},
3436 {8 * 1024, 2},
3437 {16 * 1024, 1},
3438 },
3439 .block_erase = erase_sector_jedec,
3440 }, {
3441 .eraseblocks = { {256 * 1024, 1} },
3442 .block_erase = erase_chip_block_jedec,
3443 }
3444 },
Sean Nelson35727f72010-01-28 23:55:12 +00003445 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003447 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003448 },
3449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003450 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003451 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003452 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003453 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003454 .manufacture_id = ESMT_ID,
3455 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003456 .total_size = 1024,
3457 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003458 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003459 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003460 .probe = probe_spi_rdid,
3461 .probe_timing = TIMING_ZERO,
3462 .block_erasers =
3463 {
3464 {
3465 .eraseblocks = { {4 * 1024, 256} },
3466 .block_erase = spi_block_erase_20,
3467 }, {
3468 .eraseblocks = { {64 * 1024, 16} },
3469 .block_erase = spi_block_erase_d8,
3470 }, {
3471 .eraseblocks = { {1024 * 1024, 1} },
3472 .block_erase = spi_block_erase_60,
3473 }, {
3474 .eraseblocks = { {1024 * 1024, 1} },
3475 .block_erase = spi_block_erase_c7,
3476 }
3477 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003478 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003479 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003480 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003481 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003482 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003483 },
3484
3485 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003486 .vendor = "ESMT",
3487 .name = "F25L32PA",
3488 .bustype = BUS_SPI,
3489 .manufacture_id = ESMT_ID,
3490 .model_id = ESMT_F25L32PA,
3491 .total_size = 4096,
3492 .page_size = 256,
3493 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3494 .tested = TEST_UNTESTED,
3495 .probe = probe_spi_rdid,
3496 .probe_timing = TIMING_ZERO,
3497 .block_erasers =
3498 {
3499 {
3500 .eraseblocks = { {4 * 1024, 1024} },
3501 .block_erase = spi_block_erase_20,
3502 }, {
3503 .eraseblocks = { {64 * 1024, 64} },
3504 .block_erase = spi_block_erase_d8,
3505 }, {
3506 .eraseblocks = { {4 * 1024 * 1024, 1} },
3507 .block_erase = spi_block_erase_60,
3508 }, {
3509 .eraseblocks = { {4 * 1024 * 1024, 1} },
3510 .block_erase = spi_block_erase_c7,
3511 }
3512 },
3513 .printlock = spi_prettyprint_status_register_bp2_bpl,
3514 .unlock = spi_disable_blockprotect,
3515 .write = spi_chip_write_256,
3516 .read = spi_chip_read,
3517 .voltage = {2700, 3600},
3518 },
3519
3520 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003521 .vendor = "Eon",
3522 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003523 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003524 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003525 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003526 .total_size = 64,
3527 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003528 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003529 .tested = TEST_UNTESTED,
3530 .probe = probe_spi_rdid,
3531 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003532 .block_erasers =
3533 {
3534 {
3535 .eraseblocks = {
3536 {4 * 1024, 2},
3537 {8 * 1024, 1},
3538 {16 * 1024, 1},
3539 {32 * 1024, 1},
3540 },
3541 .block_erase = spi_block_erase_d8,
3542 }, {
3543 .eraseblocks = { {64 * 1024, 1} },
3544 .block_erase = spi_block_erase_c7,
3545 }
3546 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003547 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003548 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003549 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003550 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003551 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003552 },
3553
3554 {
3555 .vendor = "Eon",
3556 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003557 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003558 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003559 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003560 .total_size = 64,
3561 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003562 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003563 .tested = TEST_UNTESTED,
3564 .probe = probe_spi_rdid,
3565 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003566 .block_erasers =
3567 {
3568 {
3569 .eraseblocks = {
3570 {32 * 1024, 1},
3571 {16 * 1024, 1},
3572 {8 * 1024, 1},
3573 {4 * 1024, 2},
3574 },
3575 .block_erase = spi_block_erase_d8,
3576 }, {
3577 .eraseblocks = { {64 * 1024, 1} },
3578 .block_erase = spi_block_erase_c7,
3579 }
3580 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003581 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003583 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003584 .read = spi_chip_read, /* Fast read (0x0B) supported */
3585 .voltage = {2700, 3600},
3586 },
3587
3588 {
3589 .vendor = "Eon",
3590 .name = "EN25P05",
3591 .bustype = BUS_SPI,
3592 .manufacture_id = EON_ID_NOPREFIX,
3593 .model_id = EON_EN25B05,
3594 .total_size = 64,
3595 .page_size = 256,
3596 .feature_bits = FEATURE_WRSR_WREN,
3597 .tested = TEST_UNTESTED,
3598 .probe = probe_spi_rdid,
3599 .probe_timing = TIMING_ZERO,
3600 .block_erasers =
3601 {
3602 {
3603 .eraseblocks = {
3604 {32 * 1024, 2} },
3605 .block_erase = spi_block_erase_d8,
3606 }, {
3607 .eraseblocks = { {64 * 1024, 1} },
3608 .block_erase = spi_block_erase_c7,
3609 }
3610 },
3611 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3612 .unlock = spi_disable_blockprotect,
3613 .write = spi_chip_write_256,
3614 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003615 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003616 },
3617
3618 {
3619 .vendor = "Eon",
3620 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003621 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003622 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003623 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003624 .total_size = 128,
3625 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003626 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003627 .tested = TEST_UNTESTED,
3628 .probe = probe_spi_rdid,
3629 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003630 .block_erasers =
3631 {
3632 {
3633 .eraseblocks = {
3634 {4 * 1024, 2},
3635 {8 * 1024, 1},
3636 {16 * 1024, 1},
3637 {32 * 1024, 3},
3638 },
3639 .block_erase = spi_block_erase_d8,
3640 }, {
3641 .eraseblocks = { {128 * 1024, 1} },
3642 .block_erase = spi_block_erase_c7,
3643 }
3644 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003646 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003647 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003648 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003649 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003650 },
3651
3652 {
3653 .vendor = "Eon",
3654 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003655 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003656 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003657 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003658 .total_size = 128,
3659 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003660 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003661 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003662 .probe = probe_spi_rdid,
3663 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003664 .block_erasers =
3665 {
3666 {
3667 .eraseblocks = {
3668 {32 * 1024, 3},
3669 {16 * 1024, 1},
3670 {8 * 1024, 1},
3671 {4 * 1024, 2},
3672 },
3673 .block_erase = spi_block_erase_d8,
3674 }, {
3675 .eraseblocks = { {128 * 1024, 1} },
3676 .block_erase = spi_block_erase_c7,
3677 }
3678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003680 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003681 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003682 .read = spi_chip_read, /* Fast read (0x0B) supported */
3683 .voltage = {2700, 3600},
3684 },
3685
3686 {
3687 .vendor = "Eon",
3688 .name = "EN25P10",
3689 .bustype = BUS_SPI,
3690 .manufacture_id = EON_ID_NOPREFIX,
3691 .model_id = EON_EN25B10,
3692 .total_size = 128,
3693 .page_size = 256,
3694 .feature_bits = FEATURE_WRSR_WREN,
3695 .tested = TEST_UNTESTED,
3696 .probe = probe_spi_rdid,
3697 .probe_timing = TIMING_ZERO,
3698 .block_erasers =
3699 {
3700 {
3701 .eraseblocks = { {32 * 1024, 4} },
3702 .block_erase = spi_block_erase_d8,
3703 }, {
3704 .eraseblocks = { {128 * 1024, 1} },
3705 .block_erase = spi_block_erase_c7,
3706 }
3707 },
3708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3709 .unlock = spi_disable_blockprotect,
3710 .write = spi_chip_write_256,
3711 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003712 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003713 },
3714
3715 {
3716 .vendor = "Eon",
3717 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003721 .total_size = 256,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {4 * 1024, 2},
3732 {8 * 1024, 1},
3733 {16 * 1024, 1},
3734 {32 * 1024, 1},
3735 {64 * 1024, 3}
3736 },
3737 .block_erase = spi_block_erase_d8,
3738 }, {
3739 .eraseblocks = { {256 * 1024, 1} },
3740 .block_erase = spi_block_erase_c7,
3741 }
3742 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003743 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003744 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003745 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003746 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003747 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003748 },
3749
3750 {
3751 .vendor = "Eon",
3752 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003753 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003754 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003755 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003756 .total_size = 256,
3757 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003758 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003759 .tested = TEST_UNTESTED,
3760 .probe = probe_spi_rdid,
3761 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003762 .block_erasers =
3763 {
3764 {
3765 .eraseblocks = {
3766 {64 * 1024, 3},
3767 {32 * 1024, 1},
3768 {16 * 1024, 1},
3769 {8 * 1024, 1},
3770 {4 * 1024, 2},
3771 },
3772 .block_erase = spi_block_erase_d8,
3773 }, {
3774 .eraseblocks = { {256 * 1024, 1} },
3775 .block_erase = spi_block_erase_c7,
3776 }
3777 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003778 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003779 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003780 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003781 .read = spi_chip_read, /* Fast read (0x0B) supported */
3782 .voltage = {2700, 3600},
3783 },
3784
3785 {
3786 .vendor = "Eon",
3787 .name = "EN25P20",
3788 .bustype = BUS_SPI,
3789 .manufacture_id = EON_ID_NOPREFIX,
3790 .model_id = EON_EN25B20,
3791 .total_size = 256,
3792 .page_size = 256,
3793 .feature_bits = FEATURE_WRSR_WREN,
3794 .tested = TEST_UNTESTED,
3795 .probe = probe_spi_rdid,
3796 .probe_timing = TIMING_ZERO,
3797 .block_erasers =
3798 {
3799 {
3800 .eraseblocks = { {64 * 1024, 4} },
3801 .block_erase = spi_block_erase_d8,
3802 }, {
3803 .eraseblocks = { {256 * 1024, 1} },
3804 .block_erase = spi_block_erase_c7,
3805 }
3806 },
3807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3808 .unlock = spi_disable_blockprotect,
3809 .write = spi_chip_write_256,
3810 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003811 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003812 },
3813
3814 {
3815 .vendor = "Eon",
3816 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003817 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003818 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003819 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003820 .total_size = 512,
3821 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003822 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003823 .tested = TEST_UNTESTED,
3824 .probe = probe_spi_rdid,
3825 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003826 .block_erasers =
3827 {
3828 {
3829 .eraseblocks = {
3830 {4 * 1024, 2},
3831 {8 * 1024, 1},
3832 {16 * 1024, 1},
3833 {32 * 1024, 1},
3834 {64 * 1024, 7}
3835 },
3836 .block_erase = spi_block_erase_d8,
3837 }, {
3838 .eraseblocks = { {512 * 1024, 1} },
3839 .block_erase = spi_block_erase_c7,
3840 }
3841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003843 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003844 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003845 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003846 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003847 },
3848
3849 {
3850 .vendor = "Eon",
3851 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003852 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003853 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003854 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003855 .total_size = 512,
3856 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003857 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003858 .tested = TEST_UNTESTED,
3859 .probe = probe_spi_rdid,
3860 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003861 .block_erasers =
3862 {
3863 {
3864 .eraseblocks = {
3865 {64 * 1024, 7},
3866 {32 * 1024, 1},
3867 {16 * 1024, 1},
3868 {8 * 1024, 1},
3869 {4 * 1024, 2},
3870 },
3871 .block_erase = spi_block_erase_d8,
3872 }, {
3873 .eraseblocks = { {512 * 1024, 1} },
3874 .block_erase = spi_block_erase_c7,
3875 }
3876 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003877 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003878 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003879 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003880 .read = spi_chip_read, /* Fast read (0x0B) supported */
3881 .voltage = {2700, 3600},
3882 },
3883
3884 {
3885 .vendor = "Eon",
3886 .name = "EN25P40",
3887 .bustype = BUS_SPI,
3888 .manufacture_id = EON_ID_NOPREFIX,
3889 .model_id = EON_EN25B40,
3890 .total_size = 512,
3891 .page_size = 256,
3892 .feature_bits = FEATURE_WRSR_WREN,
3893 .tested = TEST_UNTESTED,
3894 .probe = probe_spi_rdid,
3895 .probe_timing = TIMING_ZERO,
3896 .block_erasers =
3897 {
3898 {
3899 .eraseblocks = { {64 * 1024, 8} },
3900 .block_erase = spi_block_erase_d8,
3901 }, {
3902 .eraseblocks = { {512 * 1024, 1} },
3903 .block_erase = spi_block_erase_c7,
3904 }
3905 },
3906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3907 .unlock = spi_disable_blockprotect,
3908 .write = spi_chip_write_256,
3909 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003910 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003911 },
3912
3913 {
3914 .vendor = "Eon",
3915 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003916 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003917 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003918 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003919 .total_size = 1024,
3920 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003921 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003922 .tested = TEST_UNTESTED,
3923 .probe = probe_spi_rdid,
3924 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003925 .block_erasers =
3926 {
3927 {
3928 .eraseblocks = {
3929 {4 * 1024, 2},
3930 {8 * 1024, 1},
3931 {16 * 1024, 1},
3932 {32 * 1024, 1},
3933 {64 * 1024, 15}
3934 },
3935 .block_erase = spi_block_erase_d8,
3936 }, {
3937 .eraseblocks = { {1024 * 1024, 1} },
3938 .block_erase = spi_block_erase_c7,
3939 }
3940 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003942 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003943 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003944 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003945 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003946 },
3947
3948 {
3949 .vendor = "Eon",
3950 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003951 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003952 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003953 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003954 .total_size = 1024,
3955 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003956 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003957 .tested = TEST_UNTESTED,
3958 .probe = probe_spi_rdid,
3959 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003960 .block_erasers =
3961 {
3962 {
3963 .eraseblocks = {
3964 {64 * 1024, 15},
3965 {32 * 1024, 1},
3966 {16 * 1024, 1},
3967 {8 * 1024, 1},
3968 {4 * 1024, 2},
3969 },
3970 .block_erase = spi_block_erase_d8,
3971 }, {
3972 .eraseblocks = { {1024 * 1024, 1} },
3973 .block_erase = spi_block_erase_c7,
3974 }
3975 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003976 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003977 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003978 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003979 .read = spi_chip_read, /* Fast read (0x0B) supported */
3980 .voltage = {2700, 3600},
3981 },
3982
3983 {
3984 .vendor = "Eon",
3985 .name = "EN25P80",
3986 .bustype = BUS_SPI,
3987 .manufacture_id = EON_ID_NOPREFIX,
3988 .model_id = EON_EN25B80,
3989 .total_size = 1024,
3990 .page_size = 256,
3991 .feature_bits = FEATURE_WRSR_WREN,
3992 .tested = TEST_UNTESTED,
3993 .probe = probe_spi_rdid,
3994 .probe_timing = TIMING_ZERO,
3995 .block_erasers =
3996 {
3997 {
3998 .eraseblocks = { {64 * 1024, 16} },
3999 .block_erase = spi_block_erase_d8,
4000 }, {
4001 .eraseblocks = { {1024 * 1024, 1} },
4002 .block_erase = spi_block_erase_c7,
4003 }
4004 },
4005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4006 .unlock = spi_disable_blockprotect,
4007 .write = spi_chip_write_256,
4008 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004009 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004010 },
4011
4012 {
4013 .vendor = "Eon",
4014 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004015 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004016 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004017 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004018 .total_size = 2048,
4019 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004020 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004021 .tested = TEST_UNTESTED,
4022 .probe = probe_spi_rdid,
4023 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004024 .block_erasers =
4025 {
4026 {
4027 .eraseblocks = {
4028 {4 * 1024, 2},
4029 {8 * 1024, 1},
4030 {16 * 1024, 1},
4031 {32 * 1024, 1},
4032 {64 * 1024, 31},
4033 },
4034 .block_erase = spi_block_erase_d8,
4035 }, {
4036 .eraseblocks = { {2 * 1024 * 1024, 1} },
4037 .block_erase = spi_block_erase_c7,
4038 }
4039 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004040 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004041 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004042 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004043 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004044 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004045 },
4046
4047 {
4048 .vendor = "Eon",
4049 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004050 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004051 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004052 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004053 .total_size = 2048,
4054 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004055 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004056 .tested = TEST_UNTESTED,
4057 .probe = probe_spi_rdid,
4058 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004059 .block_erasers =
4060 {
4061 {
4062 .eraseblocks = {
4063 {64 * 1024, 31},
4064 {32 * 1024, 1},
4065 {16 * 1024, 1},
4066 {8 * 1024, 1},
4067 {4 * 1024, 2},
4068 },
4069 .block_erase = spi_block_erase_d8,
4070 }, {
4071 .eraseblocks = { {2 * 1024 * 1024, 1} },
4072 .block_erase = spi_block_erase_c7,
4073 }
4074 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004075 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004076 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004078 .read = spi_chip_read, /* Fast read (0x0B) supported */
4079 .voltage = {2700, 3600},
4080 },
4081
4082 {
4083 .vendor = "Eon",
4084 .name = "EN25P16",
4085 .bustype = BUS_SPI,
4086 .manufacture_id = EON_ID_NOPREFIX,
4087 .model_id = EON_EN25B16,
4088 .total_size = 2048,
4089 .page_size = 256,
4090 .feature_bits = FEATURE_WRSR_WREN,
4091 .tested = TEST_UNTESTED,
4092 .probe = probe_spi_rdid,
4093 .probe_timing = TIMING_ZERO,
4094 .block_erasers =
4095 {
4096 {
4097 .eraseblocks = { {64 * 1024, 32} },
4098 .block_erase = spi_block_erase_d8,
4099 }, {
4100 .eraseblocks = { {2 * 1024 * 1024, 1} },
4101 .block_erase = spi_block_erase_c7,
4102 }
4103 },
4104 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4105 .unlock = spi_disable_blockprotect,
4106 .write = spi_chip_write_256,
4107 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004108 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004109 },
4110
4111 {
4112 .vendor = "Eon",
4113 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004114 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004115 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004116 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004117 .total_size = 4096,
4118 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004119 /* OTP: 512B total; enter 0x3A */
4120 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004121 .tested = TEST_UNTESTED,
4122 .probe = probe_spi_rdid,
4123 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004124 .block_erasers =
4125 {
4126 {
4127 .eraseblocks = {
4128 {4 * 1024, 2},
4129 {8 * 1024, 1},
4130 {16 * 1024, 1},
4131 {32 * 1024, 1},
4132 {64 * 1024, 63},
4133 },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {4 * 1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_c7,
4138 }
4139 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004140 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004141 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004142 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004143 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004144 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004145 },
4146
4147 {
4148 .vendor = "Eon",
4149 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004150 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004151 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004152 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004153 .total_size = 4096,
4154 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004155 /* OTP: 512B total; enter 0x3A */
4156 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004157 .tested = TEST_UNTESTED,
4158 .probe = probe_spi_rdid,
4159 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004160 .block_erasers =
4161 {
4162 {
4163 .eraseblocks = {
4164 {64 * 1024, 63},
4165 {32 * 1024, 1},
4166 {16 * 1024, 1},
4167 {8 * 1024, 1},
4168 {4 * 1024, 2},
4169 },
4170 .block_erase = spi_block_erase_d8,
4171 }, {
4172 .eraseblocks = { {4 * 1024 * 1024, 1} },
4173 .block_erase = spi_block_erase_c7,
4174 }
4175 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004176 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004177 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004178 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004179 .read = spi_chip_read, /* Fast read (0x0B) supported */
4180 .voltage = {2700, 3600},
4181 },
4182
4183 {
4184 .vendor = "Eon",
4185 .name = "EN25P32", /* Uniform version of EN25B32 */
4186 .bustype = BUS_SPI,
4187 .manufacture_id = EON_ID_NOPREFIX,
4188 .model_id = EON_EN25B32,
4189 .total_size = 4096,
4190 .page_size = 256,
4191 /* OTP: 512B total; enter 0x3A */
4192 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4193 .tested = TEST_UNTESTED,
4194 .probe = probe_spi_rdid,
4195 .probe_timing = TIMING_ZERO,
4196 .block_erasers =
4197 {
4198 {
4199 .eraseblocks = { {64 * 1024, 64} },
4200 .block_erase = spi_block_erase_d8,
4201 }, {
4202 .eraseblocks = { {4 * 1024 * 1024, 1} },
4203 .block_erase = spi_block_erase_c7,
4204 }
4205 },
4206 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4207 .unlock = spi_disable_blockprotect,
4208 .write = spi_chip_write_256,
4209 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004210 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004211 },
4212
4213 {
4214 .vendor = "Eon",
4215 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004216 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004217 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004218 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004219 .total_size = 8192,
4220 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004221 /* OTP: 512B total; enter 0x3A */
4222 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004223 .tested = TEST_UNTESTED,
4224 .probe = probe_spi_rdid,
4225 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004226 .block_erasers =
4227 {
4228 {
4229 .eraseblocks = {
4230 {4 * 1024, 2},
4231 {8 * 1024, 1},
4232 {16 * 1024, 1},
4233 {32 * 1024, 1},
4234 {64 * 1024, 127},
4235 },
4236 .block_erase = spi_block_erase_d8,
4237 }, {
4238 .eraseblocks = { {8 * 1024 * 1024, 1} },
4239 .block_erase = spi_block_erase_c7,
4240 }
4241 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004243 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004244 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004245 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004246 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004247 },
4248
4249 {
4250 .vendor = "Eon",
4251 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004252 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004253 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004254 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004255 .total_size = 8192,
4256 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004257 /* OTP: 512B total; enter 0x3A */
4258 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004259 .tested = TEST_UNTESTED,
4260 .probe = probe_spi_rdid,
4261 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004262 .block_erasers =
4263 {
4264 {
4265 .eraseblocks = {
4266 {64 * 1024, 127},
4267 {32 * 1024, 1},
4268 {16 * 1024, 1},
4269 {8 * 1024, 1},
4270 {4 * 1024, 2},
4271 },
4272 .block_erase = spi_block_erase_d8,
4273 }, {
4274 .eraseblocks = { {8 * 1024 * 1024, 1} },
4275 .block_erase = spi_block_erase_c7,
4276 }
4277 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004278 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004279 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004280 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004281 .read = spi_chip_read, /* Fast read (0x0B) supported */
4282 .voltage = {2700, 3600},
4283 },
4284
4285 {
4286 .vendor = "Eon",
4287 .name = "EN25P64",
4288 .bustype = BUS_SPI,
4289 .manufacture_id = EON_ID_NOPREFIX,
4290 .model_id = EON_EN25B64,
4291 .total_size = 8192,
4292 .page_size = 256,
4293 /* OTP: 512B total; enter 0x3A */
4294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4295 .tested = TEST_UNTESTED,
4296 .probe = probe_spi_rdid,
4297 .probe_timing = TIMING_ZERO,
4298 .block_erasers =
4299 {
4300 {
4301 .eraseblocks = { {64 * 1024, 128} },
4302 .block_erase = spi_block_erase_d8,
4303 }, {
4304 .eraseblocks = { {8 * 1024 * 1024, 1} },
4305 .block_erase = spi_block_erase_c7,
4306 }
4307 },
4308 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4309 .unlock = spi_disable_blockprotect,
4310 .write = spi_chip_write_256,
4311 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004312 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004313 },
4314
4315 {
4316 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004317 .name = "EN25F05",
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_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004321 .total_size = 64,
4322 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004323 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004324 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004325 .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, 16} },
4331 .block_erase = spi_block_erase_20,
4332 }, {
4333 .eraseblocks = { {32 * 1024, 2} },
4334 .block_erase = spi_block_erase_d8,
4335 }, {
4336 .eraseblocks = { {32 * 1024, 2} },
4337 .block_erase = spi_block_erase_52,
4338 }, {
4339 .eraseblocks = { {64 * 1024, 1} },
4340 .block_erase = spi_block_erase_60,
4341 }, {
4342 .eraseblocks = { {64 * 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 = "EN25F10",
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_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004359 .total_size = 128,
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, 32} },
4369 .block_erase = spi_block_erase_20,
4370 }, {
4371 .eraseblocks = { {32 * 1024, 4} },
4372 .block_erase = spi_block_erase_d8,
4373 }, {
4374 .eraseblocks = { {32 * 1024, 4} },
4375 .block_erase = spi_block_erase_52,
4376 }, {
4377 .eraseblocks = { {128 * 1024, 1} },
4378 .block_erase = spi_block_erase_60,
4379 }, {
4380 .eraseblocks = { {128 * 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",
4393 .name = "EN25F20",
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_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004397 .total_size = 256,
4398 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004399 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004400 .tested = TEST_UNTESTED,
4401 .probe = probe_spi_rdid,
4402 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004403 .block_erasers =
4404 {
4405 {
4406 .eraseblocks = { {4 * 1024, 64} },
4407 .block_erase = spi_block_erase_20,
4408 }, {
4409 .eraseblocks = { {64 * 1024, 4} },
4410 .block_erase = spi_block_erase_d8,
4411 }, {
4412 .eraseblocks = { {64 * 1024, 4} },
4413 .block_erase = spi_block_erase_52,
4414 }, {
4415 .eraseblocks = { {256 * 1024, 1} },
4416 .block_erase = spi_block_erase_60,
4417 }, {
4418 .eraseblocks = { {256 * 1024, 1} },
4419 .block_erase = spi_block_erase_c7,
4420 }
4421 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004422 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004423 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004424 .write = spi_chip_write_256,
4425 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004426 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004427 },
4428
4429 {
4430 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004431 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004432 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004433 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004434 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004435 .total_size = 512,
4436 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004437 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004438 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004439 .probe = probe_spi_rdid,
4440 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004441 .block_erasers =
4442 {
4443 {
Sean Nelson54596372010-01-09 05:30:14 +00004444 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004445 .block_erase = spi_block_erase_20,
4446 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004447 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004448 .block_erase = spi_block_erase_d8,
4449 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004450 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004451 .block_erase = spi_block_erase_60,
4452 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004453 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004454 .block_erase = spi_block_erase_c7,
4455 },
4456 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004457 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004458 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004459 .write = spi_chip_write_256,
4460 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004461 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004462 },
4463
4464 {
4465 .vendor = "Eon",
4466 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004467 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004468 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004469 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004470 .total_size = 1024,
4471 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004472 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004473 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004474 .probe = probe_spi_rdid,
4475 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004476 .block_erasers =
4477 {
4478 {
4479 .eraseblocks = { {4 * 1024, 256} },
4480 .block_erase = spi_block_erase_20,
4481 }, {
4482 .eraseblocks = { {64 * 1024, 16} },
4483 .block_erase = spi_block_erase_d8,
4484 }, {
4485 .eraseblocks = { {1024 * 1024, 1} },
4486 .block_erase = spi_block_erase_60,
4487 }, {
4488 .eraseblocks = { {1024 * 1024, 1} },
4489 .block_erase = spi_block_erase_c7,
4490 }
4491 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004492 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004493 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004494 .write = spi_chip_write_256,
4495 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004496 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004497 },
4498
4499 {
4500 .vendor = "Eon",
4501 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004502 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004503 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004504 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004505 .total_size = 2048,
4506 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004507 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004508 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004509 .probe = probe_spi_rdid,
4510 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004511 .block_erasers =
4512 {
4513 {
4514 .eraseblocks = { {4 * 1024, 512} },
4515 .block_erase = spi_block_erase_20,
4516 }, {
4517 .eraseblocks = { {64 * 1024, 32} },
4518 .block_erase = spi_block_erase_d8,
4519 }, {
4520 .eraseblocks = { {2 * 1024 * 1024, 1} },
4521 .block_erase = spi_block_erase_60,
4522 }, {
4523 .eraseblocks = { {2 * 1024 * 1024, 1} },
4524 .block_erase = spi_block_erase_c7,
4525 }
4526 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004527 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004528 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004529 .write = spi_chip_write_256,
4530 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004531 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004532 },
4533
4534 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004535 .vendor = "Eon",
4536 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004537 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004538 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004539 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004540 .total_size = 4096,
4541 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004542 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004543 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004544 .probe = probe_spi_rdid,
4545 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004546 .block_erasers =
4547 {
4548 {
4549 .eraseblocks = { {4 * 1024, 1024} },
4550 .block_erase = spi_block_erase_20,
4551 }, {
4552 .eraseblocks = { {64 * 1024, 64} },
4553 .block_erase = spi_block_erase_d8,
4554 }, {
4555 .eraseblocks = { {4 * 1024 * 1024, 1} },
4556 .block_erase = spi_block_erase_60,
4557 }, {
4558 .eraseblocks = { {4 * 1024 * 1024, 1} },
4559 .block_erase = spi_block_erase_c7,
4560 }
4561 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004563 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004564 .write = spi_chip_write_256,
4565 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004566 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004567 },
4568
4569 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004570 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004571 .name = "EN25F64",
4572 .bustype = BUS_SPI,
4573 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004574 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004575 .total_size = 8192,
4576 .page_size = 256,
4577 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004578 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004579 .probe = probe_spi_rdid,
4580 .probe_timing = TIMING_ZERO,
4581 .block_erasers =
4582 {
4583 {
4584 .eraseblocks = { {4 * 1024, 2048} },
4585 .block_erase = spi_block_erase_20,
4586 }, {
4587 .eraseblocks = { {64 * 1024, 128} },
4588 .block_erase = spi_block_erase_d8,
4589 }, {
4590 .eraseblocks = { {8 * 1024 * 1024, 1} },
4591 .block_erase = spi_block_erase_60,
4592 }, {
4593 .eraseblocks = { {8 * 1024 * 1024, 1} },
4594 .block_erase = spi_block_erase_c7,
4595 }
4596 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004598 .unlock = spi_disable_blockprotect,
4599 .write = spi_chip_write_256,
4600 .read = spi_chip_read,
4601 .voltage = {2700, 3600},
4602 },
4603
4604 {
4605 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004606 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004607 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004608 .manufacture_id = EON_ID_NOPREFIX,
4609 .model_id = EON_EN25Q40,
4610 .total_size = 512,
4611 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004612 /* OTP: 256B total; enter 0x3A */
4613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004614 .tested = TEST_UNTESTED,
4615 .probe = probe_spi_rdid,
4616 .probe_timing = TIMING_ZERO,
4617 .block_erasers =
4618 {
4619 {
4620 .eraseblocks = { {4 * 1024, 128} },
4621 .block_erase = spi_block_erase_20,
4622 }, {
4623 .eraseblocks = { {64 * 1024, 8} },
4624 .block_erase = spi_block_erase_d8,
4625 }, {
4626 .eraseblocks = { {512 * 1024, 1} },
4627 .block_erase = spi_block_erase_60,
4628 }, {
4629 .eraseblocks = { {512 * 1024, 1} },
4630 .block_erase = spi_block_erase_c7,
4631 }
4632 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004633 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004634 .unlock = spi_disable_blockprotect,
4635 .write = spi_chip_write_256,
4636 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004637 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004638 },
4639
4640 {
4641 .vendor = "Eon",
4642 .name = "EN25Q80(A)",
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_EN25Q80,
4646 .total_size = 1024,
4647 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004648 /* OTP: 256B 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, 256} },
4657 .block_erase = spi_block_erase_20,
4658 }, {
4659 .eraseblocks = { {64 * 1024, 16} },
4660 .block_erase = spi_block_erase_d8,
4661 }, {
4662 .eraseblocks = { {1024 * 1024, 1} },
4663 .block_erase = spi_block_erase_60,
4664 }, {
4665 .eraseblocks = { {1024 * 1024, 1} },
4666 .block_erase = spi_block_erase_c7,
4667 }
4668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004670 .unlock = spi_disable_blockprotect,
4671 .write = spi_chip_write_256,
4672 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004673 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004674 },
4675
4676 {
4677 /* Note: EN25D16 is an evil twin which shares the model ID
4678 but has different write protection capabilities */
4679 .vendor = "Eon",
4680 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004681 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004682 .manufacture_id = EON_ID_NOPREFIX,
4683 .model_id = EON_EN25Q16,
4684 .total_size = 2048,
4685 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004686 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4687 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004688 .tested = TEST_UNTESTED,
4689 .probe = probe_spi_rdid,
4690 .probe_timing = TIMING_ZERO,
4691 .block_erasers =
4692 {
4693 {
4694 .eraseblocks = { {4 * 1024, 512} },
4695 .block_erase = spi_block_erase_20,
4696 }, {
4697 .eraseblocks = { {64 * 1024, 32} },
4698 .block_erase = spi_block_erase_d8,
4699 }, {
4700 /* not supported by Q16 version */
4701 .eraseblocks = { {64 * 1024, 32} },
4702 .block_erase = spi_block_erase_52,
4703 }, {
4704 .eraseblocks = { {2 * 1024 * 1024, 1} },
4705 .block_erase = spi_block_erase_60,
4706 }, {
4707 .eraseblocks = { {2 * 1024 * 1024, 1} },
4708 .block_erase = spi_block_erase_c7,
4709 }
4710 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004711 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004712 .unlock = spi_disable_blockprotect,
4713 .write = spi_chip_write_256,
4714 .read = spi_chip_read,
4715 .voltage = {2700, 3600},
4716 },
4717
4718 {
4719 .vendor = "Eon",
4720 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004721 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004722 .manufacture_id = EON_ID_NOPREFIX,
4723 .model_id = EON_EN25Q32,
4724 .total_size = 4096,
4725 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004726 /* OTP: 512B total; enter 0x3A */
4727 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004728 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004729 .probe = probe_spi_rdid,
4730 .probe_timing = TIMING_ZERO,
4731 .block_erasers =
4732 {
4733 {
4734 .eraseblocks = { {4 * 1024, 1024} },
4735 .block_erase = spi_block_erase_20,
4736 }, {
4737 .eraseblocks = { {64 * 1024, 64} },
4738 .block_erase = spi_block_erase_d8,
4739 }, {
4740 .eraseblocks = { {4 * 1024 * 1024, 1} },
4741 .block_erase = spi_block_erase_60,
4742 }, {
4743 .eraseblocks = { {4 * 1024 * 1024, 1} },
4744 .block_erase = spi_block_erase_c7,
4745 }
4746 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004748 .unlock = spi_disable_blockprotect,
4749 .write = spi_chip_write_256,
4750 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004751 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004752 },
4753
4754 {
4755 .vendor = "Eon",
4756 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004757 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004758 .manufacture_id = EON_ID_NOPREFIX,
4759 .model_id = EON_EN25Q64,
4760 .total_size = 8192,
4761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004762 /* OTP: 512B total; enter 0x3A */
4763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004764 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004765 .probe = probe_spi_rdid,
4766 .probe_timing = TIMING_ZERO,
4767 .block_erasers =
4768 {
4769 {
4770 .eraseblocks = { {4 * 1024, 2048} },
4771 .block_erase = spi_block_erase_20,
4772 }, {
4773 .eraseblocks = { {64 * 1024, 128} },
4774 .block_erase = spi_block_erase_d8,
4775 }, {
4776 .eraseblocks = { {8 * 1024 * 1024, 1} },
4777 .block_erase = spi_block_erase_60,
4778 }, {
4779 .eraseblocks = { {8 * 1024 * 1024, 1} },
4780 .block_erase = spi_block_erase_c7,
4781 }
4782 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004784 .unlock = spi_disable_blockprotect,
4785 .write = spi_chip_write_256,
4786 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004787 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004788 },
4789
4790 {
4791 .vendor = "Eon",
4792 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004793 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004794 .manufacture_id = EON_ID_NOPREFIX,
4795 .model_id = EON_EN25Q128,
4796 .total_size = 16384,
4797 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004798 /* OTP: 512B total; enter 0x3A */
4799 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004800 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004801 .probe = probe_spi_rdid,
4802 .probe_timing = TIMING_ZERO,
4803 .block_erasers =
4804 {
4805 {
4806 .eraseblocks = { {4 * 1024, 4096} },
4807 .block_erase = spi_block_erase_20,
4808 }, {
4809 .eraseblocks = { {64 * 1024, 256} },
4810 .block_erase = spi_block_erase_d8,
4811 }, {
4812 .eraseblocks = { {16 * 1024 * 1024, 1} },
4813 .block_erase = spi_block_erase_60,
4814 }, {
4815 .eraseblocks = { {16 * 1024 * 1024, 1} },
4816 .block_erase = spi_block_erase_c7,
4817 }
4818 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004820 .unlock = spi_disable_blockprotect,
4821 .write = spi_chip_write_256,
4822 .read = spi_chip_read,
4823 },
4824
4825 {
4826 .vendor = "Eon",
4827 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004828 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004829 .manufacture_id = EON_ID_NOPREFIX,
4830 .model_id = EON_EN25QH16,
4831 .total_size = 2048,
4832 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004833 /* 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 Tauner5c316f92015-02-08 21:57:52 +00004837 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004838 .probe = probe_spi_rdid,
4839 .probe_timing = TIMING_ZERO,
4840 .block_erasers =
4841 {
4842 {
4843 .eraseblocks = { {4 * 1024, 512} },
4844 .block_erase = spi_block_erase_20,
4845 }, {
4846 .eraseblocks = { {64 * 1024, 32} },
4847 .block_erase = spi_block_erase_d8,
4848 }, {
4849 .eraseblocks = { {1024 * 2048, 1} },
4850 .block_erase = spi_block_erase_60,
4851 }, {
4852 .eraseblocks = { {1024 * 2048, 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,
David Hendricks6d715302011-07-24 22:21:57 +00004858 .write = spi_chip_write_256,
4859 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004860 .voltage = {2700, 3600},
4861 },
4862
4863 {
4864 .vendor = "Eon",
4865 .name = "EN25QH32",
4866 .bustype = BUS_SPI,
4867 .manufacture_id = EON_ID_NOPREFIX,
4868 .model_id = EON_EN25QH32,
4869 .total_size = 4096,
4870 .page_size = 256,
4871 /* supports SFDP */
4872 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004873 /* 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,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004876 .probe = probe_spi_rdid,
4877 .probe_timing = TIMING_ZERO,
4878 .block_erasers =
4879 {
4880 {
4881 .eraseblocks = { {4 * 1024, 1024} },
4882 .block_erase = spi_block_erase_20,
4883 }, {
4884 .eraseblocks = { {64 * 1024, 64} },
4885 .block_erase = spi_block_erase_d8,
4886 }, {
4887 .eraseblocks = { {1024 * 4096, 1} },
4888 .block_erase = spi_block_erase_60,
4889 }, {
4890 .eraseblocks = { {1024 * 4096, 1} },
4891 .block_erase = spi_block_erase_c7,
4892 }
4893 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004894 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004895 .unlock = spi_disable_blockprotect_bp3_srwd,
4896 .write = spi_chip_write_256,
4897 .read = spi_chip_read,
4898 .voltage = {2700, 3600},
4899 },
4900
4901 {
4902 .vendor = "Eon",
4903 .name = "EN25QH64",
4904 .bustype = BUS_SPI,
4905 .manufacture_id = EON_ID_NOPREFIX,
4906 .model_id = EON_EN25QH64,
4907 .total_size = 8192,
4908 .page_size = 256,
4909 /* supports SFDP */
4910 /* OTP: 512B total; enter 0x3A */
4911 /* QPI enable 0x38, disable 0xFF */
4912 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004913 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004914 .probe = probe_spi_rdid,
4915 .probe_timing = TIMING_ZERO,
4916 .block_erasers = {
4917 {
4918 .eraseblocks = { {4 * 1024, 2048} },
4919 .block_erase = spi_block_erase_20,
4920 }, {
4921 .eraseblocks = { {64 * 1024, 128} },
4922 .block_erase = spi_block_erase_d8,
4923 }, {
4924 .eraseblocks = { { 8192 * 1024, 1} },
4925 .block_erase = spi_block_erase_60,
4926 }, {
4927 .eraseblocks = { { 8192 * 1024, 1} },
4928 .block_erase = spi_block_erase_c7,
4929 }
4930 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004931 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004932 .unlock = spi_disable_blockprotect_bp3_srwd,
4933 .write = spi_chip_write_256,
4934 .read = spi_chip_read,
4935 .voltage = {2700, 3600},
4936 },
4937
4938 {
4939 .vendor = "Eon",
4940 .name = "EN25QH128",
4941 .bustype = BUS_SPI,
4942 .manufacture_id = EON_ID_NOPREFIX,
4943 .model_id = EON_EN25QH128,
4944 .total_size = 16384,
4945 .page_size = 256,
4946 /* supports SFDP */
4947 /* OTP: 512B total; enter 0x3A */
4948 /* QPI enable 0x38, disable 0xFF */
4949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4950 .tested = TEST_UNTESTED,
4951 .probe = probe_spi_rdid,
4952 .probe_timing = TIMING_ZERO,
4953 .block_erasers = {
4954 {
4955 .eraseblocks = { {4 * 1024, 4096} },
4956 .block_erase = spi_block_erase_20,
4957 }, {
4958 .eraseblocks = { {64 * 1024, 256} },
4959 .block_erase = spi_block_erase_d8,
4960 }, {
4961 .eraseblocks = { { 16384 * 1024, 1} },
4962 .block_erase = spi_block_erase_60,
4963 }, {
4964 .eraseblocks = { { 16384 * 1024, 1} },
4965 .block_erase = spi_block_erase_c7,
4966 }
4967 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004968 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004969 .unlock = spi_disable_blockprotect_bp3_srwd,
4970 .write = spi_chip_write_256,
4971 .read = spi_chip_read,
4972 .voltage = {2700, 3600},
4973 },
4974
4975 {
4976 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004977 .name = "EN25S10",
4978 .bustype = BUS_SPI,
4979 .manufacture_id = EON_ID_NOPREFIX,
4980 .model_id = EON_EN25S10,
4981 .total_size = 128,
4982 .page_size = 256,
4983 /* OTP: 256B total; enter 0x3A */
4984 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4985 .tested = TEST_UNTESTED,
4986 .probe = probe_spi_rdid,
4987 .probe_timing = TIMING_ZERO,
4988 .block_erasers = {
4989 {
4990 .eraseblocks = { {4 * 1024, 32} },
4991 .block_erase = spi_block_erase_20,
4992 }, {
4993 .eraseblocks = { {32 * 1024, 4} },
4994 .block_erase = spi_block_erase_52,
4995 }, {
4996 .eraseblocks = { {128 * 1024, 1} },
4997 .block_erase = spi_block_erase_60,
4998 }, {
4999 .eraseblocks = { {128 * 1024, 1} },
5000 .block_erase = spi_block_erase_c7,
5001 }
5002 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005003 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005004 .unlock = spi_disable_blockprotect,
5005 .write = spi_chip_write_256,
5006 .read = spi_chip_read,
5007 .voltage = {1650, 1950},
5008 },
5009
5010 {
5011 .vendor = "Eon",
5012 .name = "EN25S20",
5013 .bustype = BUS_SPI,
5014 .manufacture_id = EON_ID_NOPREFIX,
5015 .model_id = EON_EN25S20,
5016 .total_size = 256,
5017 .page_size = 256,
5018 /* OTP: 256B total; enter 0x3A */
5019 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5020 .tested = TEST_UNTESTED,
5021 .probe = probe_spi_rdid,
5022 .probe_timing = TIMING_ZERO,
5023 .block_erasers = {
5024 {
5025 .eraseblocks = { {4 * 1024, 64} },
5026 .block_erase = spi_block_erase_20,
5027 }, {
5028 .eraseblocks = { {64 * 1024, 4} },
5029 .block_erase = spi_block_erase_d8,
5030 }, {
5031 .eraseblocks = { {256 * 1024, 1} },
5032 .block_erase = spi_block_erase_60,
5033 }, {
5034 .eraseblocks = { {256 * 1024, 1} },
5035 .block_erase = spi_block_erase_c7,
5036 }
5037 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005038 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005039 .unlock = spi_disable_blockprotect,
5040 .write = spi_chip_write_256,
5041 .read = spi_chip_read,
5042 .voltage = {1650, 1950},
5043 },
5044
5045 {
5046 .vendor = "Eon",
5047 .name = "EN25S40",
5048 .bustype = BUS_SPI,
5049 .manufacture_id = EON_ID_NOPREFIX,
5050 .model_id = EON_EN25S40,
5051 .total_size = 512,
5052 .page_size = 256,
5053 /* OTP: 256B total; enter 0x3A */
5054 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5055 .tested = TEST_UNTESTED,
5056 .probe = probe_spi_rdid,
5057 .probe_timing = TIMING_ZERO,
5058 .block_erasers = {
5059 {
5060 .eraseblocks = { {4 * 1024, 128} },
5061 .block_erase = spi_block_erase_20,
5062 }, {
5063 .eraseblocks = { {64 * 1024, 8} },
5064 .block_erase = spi_block_erase_d8,
5065 }, {
5066 .eraseblocks = { {512 * 1024, 1} },
5067 .block_erase = spi_block_erase_60,
5068 }, {
5069 .eraseblocks = { {512 * 1024, 1} },
5070 .block_erase = spi_block_erase_c7,
5071 }
5072 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005073 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005074 .unlock = spi_disable_blockprotect,
5075 .write = spi_chip_write_256,
5076 .read = spi_chip_read,
5077 .voltage = {1650, 1950},
5078 },
5079
5080 {
5081 .vendor = "Eon",
5082 .name = "EN25S80",
5083 .bustype = BUS_SPI,
5084 .manufacture_id = EON_ID_NOPREFIX,
5085 .model_id = EON_EN25S80,
5086 .total_size = 1024,
5087 .page_size = 256,
5088 /* OTP: 256B total; enter 0x3A */
5089 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5090 .tested = TEST_UNTESTED,
5091 .probe = probe_spi_rdid,
5092 .probe_timing = TIMING_ZERO,
5093 .block_erasers = {
5094 {
5095 .eraseblocks = { {4 * 1024, 256} },
5096 .block_erase = spi_block_erase_20,
5097 }, {
5098 .eraseblocks = { {64 * 1024, 16} },
5099 .block_erase = spi_block_erase_d8,
5100 }, {
5101 .eraseblocks = { {1024 * 1024, 1} },
5102 .block_erase = spi_block_erase_60,
5103 }, {
5104 .eraseblocks = { {1024 * 1024, 1} },
5105 .block_erase = spi_block_erase_c7,
5106 }
5107 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005108 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005109 .unlock = spi_disable_blockprotect,
5110 .write = spi_chip_write_256,
5111 .read = spi_chip_read,
5112 .voltage = {1650, 1950},
5113 },
5114
5115 {
5116 .vendor = "Eon",
5117 .name = "EN25S16",
5118 .bustype = BUS_SPI,
5119 .manufacture_id = EON_ID_NOPREFIX,
5120 .model_id = EON_EN25S16,
5121 .total_size = 2048,
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, 512} },
5131 .block_erase = spi_block_erase_20,
5132 }, {
5133 .eraseblocks = { {64 * 1024, 32} },
5134 .block_erase = spi_block_erase_52,
5135 }, {
5136 .eraseblocks = { {32 * 1024, 64} },
5137 .block_erase = spi_block_erase_d8,
5138 }, {
5139 .eraseblocks = { {2048 * 1024, 1} },
5140 .block_erase = spi_block_erase_60,
5141 }, {
5142 .eraseblocks = { {2048 * 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 = "EN25S32",
5156 .bustype = BUS_SPI,
5157 .manufacture_id = EON_ID_NOPREFIX,
5158 .model_id = EON_EN25S32,
5159 .total_size = 4096,
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, 1024} },
5169 .block_erase = spi_block_erase_20,
5170 }, {
5171 .eraseblocks = { {32 * 1024, 128} },
5172 .block_erase = spi_block_erase_52,
5173 }, {
5174 .eraseblocks = { {64 * 1024, 64} },
5175 .block_erase = spi_block_erase_d8,
5176 }, {
5177 .eraseblocks = { {4096 * 1024, 1} },
5178 .block_erase = spi_block_erase_60,
5179 }, {
5180 .eraseblocks = { {4096 * 1024, 1} },
5181 .block_erase = spi_block_erase_c7,
5182 }
5183 },
5184 .printlock = spi_prettyprint_status_register_en25s_wp,
5185 .unlock = spi_disable_blockprotect_bp3_srwd,
5186 .write = spi_chip_write_256,
5187 .read = spi_chip_read,
5188 .voltage = {1650, 1950},
5189 },
5190
5191 {
5192 .vendor = "Eon",
5193 .name = "EN25S64",
5194 .bustype = BUS_SPI,
5195 .manufacture_id = EON_ID_NOPREFIX,
5196 .model_id = EON_EN25S64,
5197 .total_size = 8192,
5198 .page_size = 256,
5199 /* OTP: 512B total; enter 0x3A */
5200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5201 .tested = TEST_UNTESTED,
5202 .probe = probe_spi_rdid,
5203 .probe_timing = TIMING_ZERO,
5204 .block_erasers = {
5205 {
5206 .eraseblocks = { {4 * 1024, 2048} },
5207 .block_erase = spi_block_erase_20,
5208 }, {
5209 .eraseblocks = { {64 * 1024, 128} },
5210 .block_erase = spi_block_erase_d8,
5211 }, {
5212 .eraseblocks = { {8192 * 1024, 1} },
5213 .block_erase = spi_block_erase_60,
5214 }, {
5215 .eraseblocks = { {8192 * 1024, 1} },
5216 .block_erase = spi_block_erase_c7,
5217 }
5218 },
5219 .printlock = spi_prettyprint_status_register_en25s_wp,
5220 .unlock = spi_disable_blockprotect_bp3_srwd,
5221 .write = spi_chip_write_256,
5222 .read = spi_chip_read,
5223 .voltage = {1650, 1950},
5224 },
5225
5226 {
5227 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005228 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005229 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005230 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005231 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005232 .total_size = 128,
5233 .page_size = 128,
5234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005235 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005236 .probe = probe_jedec,
5237 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5238 .block_erasers =
5239 {
5240 {
5241 .eraseblocks = { {16 * 1024, 8} },
5242 .block_erase = erase_sector_jedec,
5243 },
5244 {
5245 .eraseblocks = { {128 * 1024, 1} },
5246 .block_erase = erase_chip_block_jedec,
5247 },
5248 },
5249 .write = write_jedec_1,
5250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005251 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005252 },
5253
5254 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005255 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005256 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005257 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005258 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005259 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005260 .total_size = 256,
5261 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005262 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005263 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005264 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005265 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005266 .block_erasers =
5267 {
5268 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005269 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005270 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005271 {8 * 1024, 2},
5272 {32 * 1024, 1},
5273 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005274 },
5275 .block_erase = erase_sector_jedec,
5276 }, {
5277 .eraseblocks = { {256 * 1024, 1} },
5278 .block_erase = erase_chip_block_jedec,
5279 },
5280 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005281 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005282 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005283 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005284 },
5285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005286 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005287 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005288 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005289 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005290 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005291 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005292 .total_size = 256,
5293 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005294 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005297 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005298 .block_erasers =
5299 {
5300 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005301 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005302 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005303 {32 * 1024, 1},
5304 {8 * 1024, 2},
5305 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005306 },
5307 .block_erase = erase_sector_jedec,
5308 }, {
5309 .eraseblocks = { {256 * 1024, 1} },
5310 .block_erase = erase_chip_block_jedec,
5311 },
5312 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005315 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005316 },
5317
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005318 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005319 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005320 .name = "EN29LV040(A)",
5321 .bustype = BUS_PARALLEL,
5322 .manufacture_id = EON_ID,
5323 .model_id = EON_EN29LV040,
5324 .total_size = 512,
5325 .page_size = 4 * 1024,
5326 .tested = TEST_OK_PREW,
5327 .probe = probe_jedec,
5328 .probe_timing = TIMING_ZERO,
5329 .block_erasers =
5330 {
5331 {
5332 .eraseblocks = { {64 * 1024, 8} },
5333 .block_erase = erase_sector_jedec,
5334 },
5335 {
5336 .eraseblocks = { {512 * 1024, 1} },
5337 .block_erase = erase_chip_block_jedec,
5338 },
5339 },
5340 .write = write_jedec_1,
5341 .read = read_memmapped,
5342 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5343 },
5344
5345 {
5346 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005347 .name = "EN29LV640B",
5348 .bustype = BUS_PARALLEL,
5349 .manufacture_id = EON_ID,
5350 .model_id = EON_EN29LV640B,
5351 .total_size = 8192,
5352 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005353 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005354 .tested = TEST_OK_PREW,
5355 .probe = probe_en29lv640b,
5356 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5357 .block_erasers =
5358 {
5359 {
5360 .eraseblocks = {
5361 {8 * 1024, 8},
5362 {64 * 1024, 127},
5363 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005364 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005365 }, {
5366 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005367 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005368 },
5369 },
5370 .write = write_en29lv640b,
5371 .read = read_memmapped,
5372 .voltage = {2700, 3600},
5373 },
5374
5375 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005376 .vendor = "Eon",
5377 .name = "EN29GL064(A)B",
5378 .bustype = BUS_PARALLEL,
5379 .manufacture_id = EON_ID,
5380 .model_id = EON_EN29GL064B,
5381 .total_size = 8192,
5382 .page_size = 128 * 1024, /* actual page size is 16 */
5383 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5384 .tested = TEST_UNTESTED,
5385 .probe = probe_jedec_29gl,
5386 .probe_timing = TIMING_ZERO,
5387 .block_erasers =
5388 {
5389 {
5390 .eraseblocks = {
5391 {8 * 1024, 8},
5392 {64 * 1024, 127},
5393 },
5394 .block_erase = erase_sector_jedec,
5395 }, {
5396 .eraseblocks = { {8 * 1024 * 1024, 1} },
5397 .block_erase = erase_chip_block_jedec,
5398 },
5399 },
5400 .write = write_jedec_1,
5401 .read = read_memmapped,
5402 .voltage = {2700, 3600},
5403 },
5404
5405 {
5406 .vendor = "Eon",
5407 .name = "EN29GL064(A)T",
5408 .bustype = BUS_PARALLEL,
5409 .manufacture_id = EON_ID,
5410 .model_id = EON_EN29GL064T,
5411 .total_size = 8192,
5412 .page_size = 128 * 1024, /* actual page size is 16 */
5413 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5414 .tested = TEST_UNTESTED,
5415 .probe = probe_jedec_29gl,
5416 .probe_timing = TIMING_ZERO,
5417 .block_erasers =
5418 {
5419 {
5420 .eraseblocks = {
5421 {64 * 1024, 127},
5422 {8 * 1024, 8},
5423 },
5424 .block_erase = erase_sector_jedec,
5425 }, {
5426 .eraseblocks = { {8 * 1024 * 1024, 1} },
5427 .block_erase = erase_chip_block_jedec,
5428 },
5429 },
5430 .write = write_jedec_1,
5431 .read = read_memmapped,
5432 .voltage = {2700, 3600},
5433 },
5434
5435 {
5436 .vendor = "Eon",
5437 .name = "EN29GL064H/L",
5438 .bustype = BUS_PARALLEL,
5439 .manufacture_id = EON_ID,
5440 .model_id = EON_EN29GL064HL,
5441 .total_size = 8192,
5442 .page_size = 128 * 1024, /* actual page size is 16 */
5443 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5444 .tested = TEST_UNTESTED,
5445 .probe = probe_jedec_29gl,
5446 .probe_timing = TIMING_ZERO,
5447 .block_erasers =
5448 {
5449 {
5450 .eraseblocks = { {64 * 1024, 128} },
5451 .block_erase = erase_sector_jedec,
5452 }, {
5453 .eraseblocks = { {8 * 1024 * 1024, 1} },
5454 .block_erase = erase_chip_block_jedec,
5455 },
5456 },
5457 .write = write_jedec_1,
5458 .read = read_memmapped,
5459 .voltage = {2700, 3600},
5460 },
5461
5462 {
5463 .vendor = "Eon",
5464 .name = "EN29GL128",
5465 .bustype = BUS_PARALLEL,
5466 .manufacture_id = EON_ID,
5467 .model_id = EON_EN29GL128HL,
5468 .total_size = 16384,
5469 .page_size = 128 * 1024, /* actual page size is 16 */
5470 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5471 .tested = TEST_UNTESTED,
5472 .probe = probe_jedec_29gl,
5473 .probe_timing = TIMING_ZERO,
5474 .block_erasers =
5475 {
5476 {
5477 .eraseblocks = { {128 * 1024, 128} },
5478 .block_erase = erase_sector_jedec,
5479 }, {
5480 .eraseblocks = { {16 * 1024 * 1024, 1} },
5481 .block_erase = erase_chip_block_jedec,
5482 },
5483 },
5484 .write = write_jedec_1,
5485 .read = read_memmapped,
5486 .voltage = {2700, 3600},
5487 },
5488
5489 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005490 .vendor = "ESI",
5491 .name = "ES25P40",
5492 .bustype = BUS_SPI,
5493 .manufacture_id = EXCEL_ID_NOPREFIX,
5494 .model_id = EXCEL_ES25P40,
5495 .total_size = 512,
5496 .page_size = 256,
5497 /* 256-byte paramter page separate from memory array:
5498 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5499 .feature_bits = FEATURE_WRSR_WREN,
5500 .tested = TEST_UNTESTED,
5501 .probe = probe_spi_rdid,
5502 .probe_timing = TIMING_ZERO,
5503 .block_erasers =
5504 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005505 {
5506 .eraseblocks = { {64 * 1024, 8} },
5507 .block_erase = spi_block_erase_d8,
5508 }, {
5509 .eraseblocks = { {512 * 1024, 1} },
5510 .block_erase = spi_block_erase_c7,
5511 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005512 },
5513 .printlock = spi_prettyprint_status_register_bp2_srwd,
5514 .unlock = spi_disable_blockprotect_bp2_srwd,
5515 .write = spi_chip_write_256,
5516 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5517 .voltage = {2700, 3600},
5518 },
5519
5520 {
5521 .vendor = "ESI",
5522 .name = "ES25P80",
5523 .bustype = BUS_SPI,
5524 .manufacture_id = EXCEL_ID_NOPREFIX,
5525 .model_id = EXCEL_ES25P80,
5526 .total_size = 1024,
5527 .page_size = 256,
5528 /* 256-byte paramter page separate from memory array:
5529 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5530 .feature_bits = FEATURE_WRSR_WREN,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_spi_rdid,
5533 .probe_timing = TIMING_ZERO,
5534 .block_erasers =
5535 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005536 {
5537 .eraseblocks = { {64 * 1024, 16} },
5538 .block_erase = spi_block_erase_d8,
5539 }, {
5540 .eraseblocks = { {1024 * 1024, 1} },
5541 .block_erase = spi_block_erase_c7,
5542 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005543 },
5544 .printlock = spi_prettyprint_status_register_bp2_srwd,
5545 .unlock = spi_disable_blockprotect_bp2_srwd,
5546 .write = spi_chip_write_256,
5547 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5548 .voltage = {2700, 3600},
5549 },
5550
5551 {
5552 .vendor = "ESI",
5553 .name = "ES25P16",
5554 .bustype = BUS_SPI,
5555 .manufacture_id = EXCEL_ID_NOPREFIX,
5556 .model_id = EXCEL_ES25P16,
5557 .total_size = 2 * 1024,
5558 .page_size = 256,
5559 /* 256-byte paramter page separate from memory array:
5560 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5561 .feature_bits = FEATURE_WRSR_WREN,
5562 .tested = TEST_UNTESTED,
5563 .probe = probe_spi_rdid,
5564 .probe_timing = TIMING_ZERO,
5565 .block_erasers =
5566 {
5567 {
5568 .eraseblocks = { {64 * 1024, 32} },
5569 .block_erase = spi_block_erase_d8,
5570 }, {
5571 .eraseblocks = { {2 * 1024 * 1024, 1} },
5572 .block_erase = spi_block_erase_c7,
5573 }
5574 },
5575 .printlock = spi_prettyprint_status_register_bp2_srwd,
5576 .unlock = spi_disable_blockprotect_bp2_srwd,
5577 .write = spi_chip_write_256,
5578 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005583 .vendor = "Fujitsu",
5584 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005585 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005586 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005587 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005588 .total_size = 512,
5589 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005591 .tested = TEST_UNTESTED,
5592 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005593 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005594 .block_erasers =
5595 {
5596 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005597 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005598 {16 * 1024, 1},
5599 {8 * 1024, 2},
5600 {32 * 1024, 1},
5601 {64 * 1024, 7},
5602 },
Sean Nelson35727f72010-01-28 23:55:12 +00005603 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005604 }, {
5605 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005606 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005607 },
5608 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005609 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005611 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005612 },
5613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005614 {
5615 .vendor = "Fujitsu",
5616 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005618 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005619 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005620 .total_size = 512,
5621 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005622 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .tested = TEST_UNTESTED,
5624 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005625 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005626 .block_erasers =
5627 {
5628 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005629 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005630 {64 * 1024, 7},
5631 {32 * 1024, 1},
5632 {8 * 1024, 2},
5633 {16 * 1024, 1},
5634 },
Sean Nelson35727f72010-01-28 23:55:12 +00005635 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005636 }, {
5637 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005638 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005639 },
5640 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005641 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005643 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005644 },
5645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005646 {
Sean Nelson35727f72010-01-28 23:55:12 +00005647 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005648 .vendor = "Fujitsu",
5649 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005652 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 .total_size = 512,
5654 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005655 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005656 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005657 .probe = probe_jedec,
5658 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005659 .block_erasers =
5660 {
5661 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005662 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005663 {16 * 1024, 1},
5664 {8 * 1024, 2},
5665 {32 * 1024, 1},
5666 {64 * 1024, 7},
5667 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005668 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005669 }, {
5670 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005671 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005672 },
5673 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005674 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005677 },
5678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005679 {
5680 .vendor = "Fujitsu",
5681 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005682 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005683 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005684 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005685 .total_size = 512,
5686 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005687 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005688 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005689 .probe = probe_jedec,
5690 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005691 .block_erasers =
5692 {
5693 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005694 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005695 {64 * 1024, 7},
5696 {32 * 1024, 1},
5697 {8 * 1024, 2},
5698 {16 * 1024, 1},
5699 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005700 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005701 }, {
5702 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005703 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005704 },
5705 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005706 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005708 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005709 },
5710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005711 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005712 .vendor = "Fujitsu",
5713 .name = "MBM29LV160BE",
5714 .bustype = BUS_PARALLEL,
5715 .manufacture_id = FUJITSU_ID,
5716 .model_id = FUJITSU_MBM29LV160BE,
5717 .total_size = 2 * 1024,
5718 .page_size = 0,
5719 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5720 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005721 .probe = probe_jedec,
5722 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = {
5727 {16 * 1024, 1},
5728 {8 * 1024, 2},
5729 {32 * 1024, 1},
5730 {64 * 1024, 31},
5731 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005732 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005733 }, {
5734 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005735 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005736 },
5737 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005738 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005739 .read = read_memmapped,
5740 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5741 },
5742
5743 {
5744 .vendor = "Fujitsu",
5745 .name = "MBM29LV160TE",
5746 .bustype = BUS_PARALLEL,
5747 .manufacture_id = FUJITSU_ID,
5748 .model_id = FUJITSU_MBM29LV160TE,
5749 .total_size = 2 * 1024,
5750 .page_size = 0,
5751 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5752 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005753 .probe = probe_jedec,
5754 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005755 .block_erasers =
5756 {
5757 {
5758 .eraseblocks = {
5759 {64 * 1024, 31},
5760 {32 * 1024, 1},
5761 {8 * 1024, 2},
5762 {16 * 1024, 1},
5763 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005764 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005765 }, {
5766 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005767 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005768 },
5769 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005770 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005771 .read = read_memmapped,
5772 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5773 },
5774
5775 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005776 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005777 .name = "GD25LQ40",
5778 .bustype = BUS_SPI,
5779 .manufacture_id = GIGADEVICE_ID,
5780 .model_id = GIGADEVICE_GD25LQ40,
5781 .total_size = 512,
5782 .page_size = 256,
5783 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5784 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5785 .tested = TEST_UNTESTED,
5786 .probe = probe_spi_rdid,
5787 .probe_timing = TIMING_ZERO,
5788 .block_erasers =
5789 {
5790 {
5791 .eraseblocks = { {4 * 1024, 128} },
5792 .block_erase = spi_block_erase_20,
5793 }, {
5794 .eraseblocks = { {32 * 1024, 16} },
5795 .block_erase = spi_block_erase_52,
5796 }, {
5797 .eraseblocks = { {64 * 1024, 8} },
5798 .block_erase = spi_block_erase_d8,
5799 }, {
5800 .eraseblocks = { {512 * 1024, 1} },
5801 .block_erase = spi_block_erase_60,
5802 }, {
5803 .eraseblocks = { {512 * 1024, 1} },
5804 .block_erase = spi_block_erase_c7,
5805 }
5806 },
5807 .printlock = spi_prettyprint_status_register_bp4_srwd,
5808 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5809 .write = spi_chip_write_256,
5810 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5811 .voltage = {1695, 1950},
5812 },
5813
5814 {
5815 .vendor = "GigaDevice",
5816 .name = "GD25LQ80",
5817 .bustype = BUS_SPI,
5818 .manufacture_id = GIGADEVICE_ID,
5819 .model_id = GIGADEVICE_GD25LQ80,
5820 .total_size = 1024,
5821 .page_size = 256,
5822 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5824 .tested = TEST_UNTESTED,
5825 .probe = probe_spi_rdid,
5826 .probe_timing = TIMING_ZERO,
5827 .block_erasers =
5828 {
5829 {
5830 .eraseblocks = { {4 * 1024, 256} },
5831 .block_erase = spi_block_erase_20,
5832 }, {
5833 .eraseblocks = { {32 * 1024, 32} },
5834 .block_erase = spi_block_erase_52,
5835 }, {
5836 .eraseblocks = { {64 * 1024, 16} },
5837 .block_erase = spi_block_erase_d8,
5838 }, {
5839 .eraseblocks = { {1 * 1024 * 1024, 1} },
5840 .block_erase = spi_block_erase_60,
5841 }, {
5842 .eraseblocks = { {1 * 1024 * 1024, 1} },
5843 .block_erase = spi_block_erase_c7,
5844 }
5845 },
5846 .printlock = spi_prettyprint_status_register_bp4_srwd,
5847 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5848 .write = spi_chip_write_256,
5849 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5850 .voltage = {1695, 1950},
5851 },
5852
5853 {
5854 .vendor = "GigaDevice",
5855 .name = "GD25LQ16",
5856 .bustype = BUS_SPI,
5857 .manufacture_id = GIGADEVICE_ID,
5858 .model_id = GIGADEVICE_GD25LQ16,
5859 .total_size = 2048,
5860 .page_size = 256,
5861 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5862 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5863 .tested = TEST_UNTESTED,
5864 .probe = probe_spi_rdid,
5865 .probe_timing = TIMING_ZERO,
5866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = { {4 * 1024, 512} },
5870 .block_erase = spi_block_erase_20,
5871 }, {
5872 .eraseblocks = { {32 * 1024, 64} },
5873 .block_erase = spi_block_erase_52,
5874 }, {
5875 .eraseblocks = { {64 * 1024, 32} },
5876 .block_erase = spi_block_erase_d8,
5877 }, {
5878 .eraseblocks = { {2 * 1024 * 1024, 1} },
5879 .block_erase = spi_block_erase_60,
5880 }, {
5881 .eraseblocks = { {2 * 1024 * 1024, 1} },
5882 .block_erase = spi_block_erase_c7,
5883 }
5884 },
5885 .printlock = spi_prettyprint_status_register_bp4_srwd,
5886 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5887 .write = spi_chip_write_256,
5888 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5889 .voltage = {1695, 1950},
5890 },
5891
5892 {
5893 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005894 .name = "GD25LQ32",
5895 .bustype = BUS_SPI,
5896 .manufacture_id = GIGADEVICE_ID,
5897 .model_id = GIGADEVICE_GD25LQ32,
5898 .total_size = 4096,
5899 .page_size = 256,
5900 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5901 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5902 .tested = TEST_OK_PREW,
5903 .probe = probe_spi_rdid,
5904 .probe_timing = TIMING_ZERO,
5905 .block_erasers =
5906 {
5907 {
5908 .eraseblocks = { {4 * 1024, 1024} },
5909 .block_erase = spi_block_erase_20,
5910 }, {
5911 .eraseblocks = { {32 * 1024, 128} },
5912 .block_erase = spi_block_erase_52,
5913 }, {
5914 .eraseblocks = { {64 * 1024, 64} },
5915 .block_erase = spi_block_erase_d8,
5916 }, {
5917 .eraseblocks = { {4 * 1024 * 1024, 1} },
5918 .block_erase = spi_block_erase_60,
5919 }, {
5920 .eraseblocks = { {4 * 1024 * 1024, 1} },
5921 .block_erase = spi_block_erase_c7,
5922 }
5923 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005924 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005925 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5926 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005927 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5928 .voltage = {1695, 1950},
5929 },
5930
5931 {
5932 .vendor = "GigaDevice",
5933 .name = "GD25LQ64(B)",
5934 .bustype = BUS_SPI,
5935 .manufacture_id = GIGADEVICE_ID,
5936 .model_id = GIGADEVICE_GD25LQ64,
5937 .total_size = 8192,
5938 .page_size = 256,
5939 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005941 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005942 .probe = probe_spi_rdid,
5943 .probe_timing = TIMING_ZERO,
5944 .block_erasers =
5945 {
5946 {
5947 .eraseblocks = { {4 * 1024, 2048} },
5948 .block_erase = spi_block_erase_20,
5949 }, {
5950 .eraseblocks = { {32 * 1024, 256} },
5951 .block_erase = spi_block_erase_52,
5952 }, {
5953 .eraseblocks = { {64 * 1024, 128} },
5954 .block_erase = spi_block_erase_d8,
5955 }, {
5956 .eraseblocks = { {8 * 1024 * 1024, 1} },
5957 .block_erase = spi_block_erase_60,
5958 }, {
5959 .eraseblocks = { {8 * 1024 * 1024, 1} },
5960 .block_erase = spi_block_erase_c7,
5961 }
5962 },
5963 .printlock = spi_prettyprint_status_register_bp4_srwd,
5964 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5965 .write = spi_chip_write_256,
5966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5967 .voltage = {1695, 1950},
5968 },
5969
5970 {
5971 .vendor = "GigaDevice",
5972 .name = "GD25LQ128",
5973 .bustype = BUS_SPI,
5974 .manufacture_id = GIGADEVICE_ID,
5975 .model_id = GIGADEVICE_GD25LQ128,
5976 .total_size = 16384,
5977 .page_size = 256,
5978 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5980 .tested = TEST_UNTESTED,
5981 .probe = probe_spi_rdid,
5982 .probe_timing = TIMING_ZERO,
5983 .block_erasers =
5984 {
5985 {
5986 .eraseblocks = { {4 * 1024, 4096} },
5987 .block_erase = spi_block_erase_20,
5988 }, {
5989 .eraseblocks = { {32 * 1024, 512} },
5990 .block_erase = spi_block_erase_52,
5991 }, {
5992 .eraseblocks = { {64 * 1024, 256} },
5993 .block_erase = spi_block_erase_d8,
5994 }, {
5995 .eraseblocks = { {16 * 1024 * 1024, 1} },
5996 .block_erase = spi_block_erase_60,
5997 }, {
5998 .eraseblocks = { {16 * 1024 * 1024, 1} },
5999 .block_erase = spi_block_erase_c7,
6000 }
6001 },
6002 .printlock = spi_prettyprint_status_register_bp4_srwd,
6003 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6004 .write = spi_chip_write_256,
6005 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6006 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006007 },
6008
6009 {
6010 .vendor = "GigaDevice",
6011 .name = "GD25Q512",
6012 .bustype = BUS_SPI,
6013 .manufacture_id = GIGADEVICE_ID,
6014 .model_id = GIGADEVICE_GD25Q512,
6015 .total_size = 64,
6016 .page_size = 256,
6017 .feature_bits = FEATURE_WRSR_WREN,
6018 .tested = TEST_UNTESTED,
6019 .probe = probe_spi_rdid,
6020 .probe_timing = TIMING_ZERO,
6021 .block_erasers = {
6022 {
6023 .eraseblocks = { {4 * 1024, 16} },
6024 .block_erase = spi_block_erase_20,
6025 }, {
6026 .eraseblocks = { {32 * 1024, 2} },
6027 .block_erase = spi_block_erase_52,
6028 }, {
6029 .eraseblocks = { {64 * 1024, 1} },
6030 .block_erase = spi_block_erase_60,
6031 }, {
6032 .eraseblocks = { {64 * 1024, 1} },
6033 .block_erase = spi_block_erase_c7,
6034 }
6035 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006036 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006037 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6038 .write = spi_chip_write_256,
6039 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6040 .voltage = {2700, 3600},
6041 },
6042
6043 {
6044 .vendor = "GigaDevice",
6045 .name = "GD25Q10",
6046 .bustype = BUS_SPI,
6047 .manufacture_id = GIGADEVICE_ID,
6048 .model_id = GIGADEVICE_GD25Q10,
6049 .total_size = 128,
6050 .page_size = 256,
6051 .feature_bits = FEATURE_WRSR_WREN,
6052 .tested = TEST_UNTESTED,
6053 .probe = probe_spi_rdid,
6054 .probe_timing = TIMING_ZERO,
6055 .block_erasers = {
6056 {
6057 .eraseblocks = { {4 * 1024, 32} },
6058 .block_erase = spi_block_erase_20,
6059 }, {
6060 .eraseblocks = { {32 * 1024, 4} },
6061 .block_erase = spi_block_erase_52,
6062 }, {
6063 .eraseblocks = { {64 * 1024, 2} },
6064 .block_erase = spi_block_erase_d8,
6065 }, {
6066 .eraseblocks = { {128 * 1024, 1} },
6067 .block_erase = spi_block_erase_60,
6068 }, {
6069 .eraseblocks = { {128 * 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) */
6075 .write = spi_chip_write_256,
6076 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6077 .voltage = {2700, 3600},
6078 },
6079
6080 {
6081 .vendor = "GigaDevice",
6082 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006083 .bustype = BUS_SPI,
6084 .manufacture_id = GIGADEVICE_ID,
6085 .model_id = GIGADEVICE_GD25Q20,
6086 .total_size = 256,
6087 .page_size = 256,
6088 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00006089 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006090 .probe = probe_spi_rdid,
6091 .probe_timing = TIMING_ZERO,
6092 .block_erasers =
6093 {
6094 {
6095 .eraseblocks = { {4 * 1024, 64} },
6096 .block_erase = spi_block_erase_20,
6097 }, {
6098 .eraseblocks = { {32 * 1024, 8} },
6099 .block_erase = spi_block_erase_52,
6100 }, {
6101 .eraseblocks = { {64 * 1024, 4} },
6102 .block_erase = spi_block_erase_d8,
6103 }, {
6104 .eraseblocks = { {256 * 1024, 1} },
6105 .block_erase = spi_block_erase_60,
6106 }, {
6107 .eraseblocks = { {256 * 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",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006120 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006121 .bustype = BUS_SPI,
6122 .manufacture_id = GIGADEVICE_ID,
6123 .model_id = GIGADEVICE_GD25Q40,
6124 .total_size = 512,
6125 .page_size = 256,
6126 .feature_bits = FEATURE_WRSR_WREN,
6127 .tested = TEST_UNTESTED,
6128 .probe = probe_spi_rdid,
6129 .probe_timing = TIMING_ZERO,
6130 .block_erasers =
6131 {
6132 {
6133 .eraseblocks = { {4 * 1024, 128} },
6134 .block_erase = spi_block_erase_20,
6135 }, {
6136 .eraseblocks = { {32 * 1024, 16} },
6137 .block_erase = spi_block_erase_52,
6138 }, {
6139 .eraseblocks = { {64 * 1024, 8} },
6140 .block_erase = spi_block_erase_d8,
6141 }, {
6142 .eraseblocks = { {512 * 1024, 1} },
6143 .block_erase = spi_block_erase_60,
6144 }, {
6145 .eraseblocks = { {512 * 1024, 1} },
6146 .block_erase = spi_block_erase_c7,
6147 }
6148 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006149 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006150 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006151 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006152 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006153 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006154 },
6155
6156 {
6157 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006158 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006159 .bustype = BUS_SPI,
6160 .manufacture_id = GIGADEVICE_ID,
6161 .model_id = GIGADEVICE_GD25Q80,
6162 .total_size = 1024,
6163 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006164 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006165 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6166 .tested = TEST_OK_PREW,
6167 .probe = probe_spi_rdid,
6168 .probe_timing = TIMING_ZERO,
6169 .block_erasers =
6170 {
6171 {
6172 .eraseblocks = { {4 * 1024, 256} },
6173 .block_erase = spi_block_erase_20,
6174 }, {
6175 .eraseblocks = { {32 * 1024, 32} },
6176 .block_erase = spi_block_erase_52,
6177 }, {
6178 .eraseblocks = { {64 * 1024, 16} },
6179 .block_erase = spi_block_erase_d8,
6180 }, {
6181 .eraseblocks = { {1024 * 1024, 1} },
6182 .block_erase = spi_block_erase_60,
6183 }, {
6184 .eraseblocks = { {1024 * 1024, 1} },
6185 .block_erase = spi_block_erase_c7,
6186 }
6187 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006188 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006189 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006190 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006191 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006192 .voltage = {2700, 3600},
6193 },
6194
6195 {
6196 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006197 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006198 .bustype = BUS_SPI,
6199 .manufacture_id = GIGADEVICE_ID,
6200 .model_id = GIGADEVICE_GD25Q16,
6201 .total_size = 2048,
6202 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006203 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006204 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006205 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006206 .probe = probe_spi_rdid,
6207 .probe_timing = TIMING_ZERO,
6208 .block_erasers =
6209 {
6210 {
6211 .eraseblocks = { {4 * 1024, 512} },
6212 .block_erase = spi_block_erase_20,
6213 }, {
6214 .eraseblocks = { {32 * 1024, 64} },
6215 .block_erase = spi_block_erase_52,
6216 }, {
6217 .eraseblocks = { {64 * 1024, 32} },
6218 .block_erase = spi_block_erase_d8,
6219 }, {
6220 .eraseblocks = { {2 * 1024 * 1024, 1} },
6221 .block_erase = spi_block_erase_60,
6222 }, {
6223 .eraseblocks = { {2 * 1024 * 1024, 1} },
6224 .block_erase = spi_block_erase_c7,
6225 }
6226 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006227 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006228 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006229 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006230 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006231 .voltage = {2700, 3600},
6232 },
6233
6234 {
6235 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006236 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
6239 .model_id = GIGADEVICE_GD25Q32,
6240 .total_size = 4096,
6241 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006244 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006245 .probe = probe_spi_rdid,
6246 .probe_timing = TIMING_ZERO,
6247 .block_erasers =
6248 {
6249 {
6250 .eraseblocks = { {4 * 1024, 1024} },
6251 .block_erase = spi_block_erase_20,
6252 }, {
6253 .eraseblocks = { {32 * 1024, 128} },
6254 .block_erase = spi_block_erase_52,
6255 }, {
6256 .eraseblocks = { {64 * 1024, 64} },
6257 .block_erase = spi_block_erase_d8,
6258 }, {
6259 .eraseblocks = { {4 * 1024 * 1024, 1} },
6260 .block_erase = spi_block_erase_60,
6261 }, {
6262 .eraseblocks = { {4 * 1024 * 1024, 1} },
6263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006266 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006267 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006268 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006269 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006270 .voltage = {2700, 3600},
6271 },
6272
6273 {
6274 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006275 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
6278 .model_id = GIGADEVICE_GD25Q64,
6279 .total_size = 8192,
6280 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006283 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006284 .probe = probe_spi_rdid,
6285 .probe_timing = TIMING_ZERO,
6286 .block_erasers =
6287 {
6288 {
6289 .eraseblocks = { {4 * 1024, 2048} },
6290 .block_erase = spi_block_erase_20,
6291 }, {
6292 .eraseblocks = { {32 * 1024, 256} },
6293 .block_erase = spi_block_erase_52,
6294 }, {
6295 .eraseblocks = { {64 * 1024, 128} },
6296 .block_erase = spi_block_erase_d8,
6297 }, {
6298 .eraseblocks = { {8 * 1024 * 1024, 1} },
6299 .block_erase = spi_block_erase_60,
6300 }, {
6301 .eraseblocks = { {8 * 1024 * 1024, 1} },
6302 .block_erase = spi_block_erase_c7,
6303 }
6304 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006305 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006306 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006307 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006309 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006310 },
6311
6312 {
6313 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006314 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006315 .bustype = BUS_SPI,
6316 .manufacture_id = GIGADEVICE_ID,
6317 .model_id = GIGADEVICE_GD25Q128,
6318 .total_size = 16384,
6319 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006320 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6322 .tested = TEST_UNTESTED,
6323 .probe = probe_spi_rdid,
6324 .probe_timing = TIMING_ZERO,
6325 .block_erasers =
6326 {
6327 {
6328 .eraseblocks = { {4 * 1024, 4096} },
6329 .block_erase = spi_block_erase_20,
6330 }, {
6331 .eraseblocks = { {32 * 1024, 512} },
6332 .block_erase = spi_block_erase_52,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 256} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {16 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {16 * 1024 * 1024, 1} },
6341 .block_erase = spi_block_erase_c7,
6342 }
6343 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006344 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006345 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6346 .write = spi_chip_write_256,
6347 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6348 .voltage = {2700, 3600},
6349 },
6350
6351 {
6352 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006353 .name = "GD25Q128C",
6354 .bustype = BUS_SPI,
6355 .manufacture_id = GIGADEVICE_ID,
6356 .model_id = GIGADEVICE_GD25Q128,
6357 .total_size = 16384,
6358 .page_size = 256,
6359 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6360 /* QPI: enable 0x38, disable 0xFF */
6361 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6362 .tested = TEST_UNTESTED,
6363 .probe = probe_spi_rdid,
6364 .probe_timing = TIMING_ZERO,
6365 .block_erasers =
6366 {
6367 {
6368 .eraseblocks = { {4 * 1024, 4096} },
6369 .block_erase = spi_block_erase_20,
6370 }, {
6371 .eraseblocks = { {32 * 1024, 512} },
6372 .block_erase = spi_block_erase_52,
6373 }, {
6374 .eraseblocks = { {64 * 1024, 256} },
6375 .block_erase = spi_block_erase_d8,
6376 }, {
6377 .eraseblocks = { {16 * 1024 * 1024, 1} },
6378 .block_erase = spi_block_erase_60,
6379 }, {
6380 .eraseblocks = { {16 * 1024 * 1024, 1} },
6381 .block_erase = spi_block_erase_c7,
6382 }
6383 },
6384 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6385 .printlock = spi_prettyprint_status_register_bp4_srwd,
6386 .unlock = spi_disable_blockprotect_bp4_srwd,
6387 .write = spi_chip_write_256,
6388 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6389 .voltage = {2700, 3600},
6390 },
6391
6392 {
6393 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006394 .name = "GD25T80",
6395 .bustype = BUS_SPI,
6396 .manufacture_id = GIGADEVICE_ID,
6397 .model_id = GIGADEVICE_GD25T80,
6398 .total_size = 1024,
6399 .page_size = 256,
6400 /* OTP: 256B total; enter 0x3A */
6401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6402 .tested = TEST_UNTESTED,
6403 .probe = probe_spi_rdid,
6404 .probe_timing = TIMING_ZERO,
6405 .block_erasers = {
6406 {
6407 .eraseblocks = { {4 * 1024, 256} },
6408 .block_erase = spi_block_erase_20,
6409 }, {
6410 .eraseblocks = { {64 * 1024, 16} },
6411 .block_erase = spi_block_erase_52,
6412 }, {
6413 .eraseblocks = { {64 * 1024, 16} },
6414 .block_erase = spi_block_erase_d8,
6415 }, {
6416 .eraseblocks = { {1024 * 1024, 1} },
6417 .block_erase = spi_block_erase_60,
6418 }, {
6419 .eraseblocks = { {1024 * 1024, 1} },
6420 .block_erase = spi_block_erase_c7,
6421 }
6422 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006423 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006424 .unlock = spi_disable_blockprotect,
6425 .write = spi_chip_write_256,
6426 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006427 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006428 },
6429
6430 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006431 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006432 .name = "GD25VQ21B",
6433 .bustype = BUS_SPI,
6434 .manufacture_id = GIGADEVICE_ID,
6435 .model_id = GIGADEVICE_GD25VQ21B,
6436 .total_size = 256,
6437 .page_size = 256,
6438 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6440 .tested = TEST_UNTESTED,
6441 .probe = probe_spi_rdid,
6442 .probe_timing = TIMING_ZERO,
6443 .block_erasers =
6444 {
6445 {
6446 .eraseblocks = { { 4 * 1024, 64} },
6447 .block_erase = spi_block_erase_20,
6448 }, {
6449 .eraseblocks = { { 32 * 1024, 8} },
6450 .block_erase = spi_block_erase_52,
6451 }, {
6452 .eraseblocks = { { 64 * 1024, 4} },
6453 .block_erase = spi_block_erase_d8,
6454 }, {
6455 .eraseblocks = { {256 * 1024, 1} },
6456 .block_erase = spi_block_erase_60,
6457 }, {
6458 .eraseblocks = { {256 * 1024, 1} },
6459 .block_erase = spi_block_erase_c7,
6460 }
6461 },
6462 .printlock = spi_prettyprint_status_register_bp4_srwd,
6463 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6464 .write = spi_chip_write_256,
6465 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6466 .voltage = {2300, 3600},
6467 },
6468
6469 {
6470 .vendor = "GigaDevice",
6471 .name = "GD25VQ40C",
6472 .bustype = BUS_SPI,
6473 .manufacture_id = GIGADEVICE_ID,
6474 .model_id = GIGADEVICE_GD25VQ41B,
6475 .total_size = 512,
6476 .page_size = 256,
6477 /* Supports SFDP */
6478 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6480 .tested = TEST_UNTESTED,
6481 .probe = probe_spi_rdid,
6482 .probe_timing = TIMING_ZERO,
6483 .block_erasers =
6484 {
6485 {
6486 .eraseblocks = { { 4 * 1024, 128} },
6487 .block_erase = spi_block_erase_20,
6488 }, {
6489 .eraseblocks = { { 32 * 1024, 16} },
6490 .block_erase = spi_block_erase_52,
6491 }, {
6492 .eraseblocks = { { 64 * 1024, 8} },
6493 .block_erase = spi_block_erase_d8,
6494 }, {
6495 .eraseblocks = { {512 * 1024, 1} },
6496 .block_erase = spi_block_erase_60,
6497 }, {
6498 .eraseblocks = { {512 * 1024, 1} },
6499 .block_erase = spi_block_erase_c7,
6500 }
6501 },
6502 .printlock = spi_prettyprint_status_register_bp4_srwd,
6503 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6504 .write = spi_chip_write_256,
6505 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6506 .voltage = {2300, 3600},
6507 },
6508
6509 {
6510 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006511 .name = "GD25VQ41B",
6512 .bustype = BUS_SPI,
6513 .manufacture_id = GIGADEVICE_ID,
6514 .model_id = GIGADEVICE_GD25VQ41B,
6515 .total_size = 512,
6516 .page_size = 256,
6517 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6518 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006519 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006520 .probe = probe_spi_rdid,
6521 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006522 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006523 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006524 {
6525 .eraseblocks = { { 4 * 1024, 128} },
6526 .block_erase = spi_block_erase_20,
6527 }, {
6528 .eraseblocks = { { 32 * 1024, 16} },
6529 .block_erase = spi_block_erase_52,
6530 }, {
6531 .eraseblocks = { { 64 * 1024, 8} },
6532 .block_erase = spi_block_erase_d8,
6533 }, {
6534 .eraseblocks = { {512 * 1024, 1} },
6535 .block_erase = spi_block_erase_60,
6536 }, {
6537 .eraseblocks = { {512 * 1024, 1} },
6538 .block_erase = spi_block_erase_c7,
6539 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006540 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006541 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006542 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6543 .write = spi_chip_write_256,
6544 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6545 .voltage = {2300, 3600},
6546 },
6547
6548 {
6549 .vendor = "GigaDevice",
6550 .name = "GD25VQ80C",
6551 .bustype = BUS_SPI,
6552 .manufacture_id = GIGADEVICE_ID,
6553 .model_id = GIGADEVICE_GD25VQ80C,
6554 .total_size = 1024,
6555 .page_size = 256,
6556 /* Supports SFDP */
6557 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6558 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6559 .tested = TEST_UNTESTED,
6560 .probe = probe_spi_rdid,
6561 .probe_timing = TIMING_ZERO,
6562 .block_erasers =
6563 {
6564 {
6565 .eraseblocks = { { 4 * 1024, 256} },
6566 .block_erase = spi_block_erase_20,
6567 }, {
6568 .eraseblocks = { { 32 * 1024, 32} },
6569 .block_erase = spi_block_erase_52,
6570 }, {
6571 .eraseblocks = { { 64 * 1024, 16} },
6572 .block_erase = spi_block_erase_d8,
6573 }, {
6574 .eraseblocks = { {1024 * 1024, 1} },
6575 .block_erase = spi_block_erase_60,
6576 }, {
6577 .eraseblocks = { {1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_c7,
6579 }
6580 },
6581 .printlock = spi_prettyprint_status_register_bp4_srwd,
6582 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6583 .write = spi_chip_write_256,
6584 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6585 .voltage = {2300, 3600},
6586 },
6587
6588 {
6589 .vendor = "GigaDevice",
6590 .name = "GD25VQ16C",
6591 .bustype = BUS_SPI,
6592 .manufacture_id = GIGADEVICE_ID,
6593 .model_id = GIGADEVICE_GD25VQ16C,
6594 .total_size = 2 * 1024,
6595 .page_size = 256,
6596 /* Supports SFDP */
6597 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6599 .tested = TEST_UNTESTED,
6600 .probe = probe_spi_rdid,
6601 .probe_timing = TIMING_ZERO,
6602 .block_erasers =
6603 {
6604 {
6605 .eraseblocks = { { 4 * 1024, 512} },
6606 .block_erase = spi_block_erase_20,
6607 }, {
6608 .eraseblocks = { { 32 * 1024, 64} },
6609 .block_erase = spi_block_erase_52,
6610 }, {
6611 .eraseblocks = { { 64 * 1024, 32} },
6612 .block_erase = spi_block_erase_d8,
6613 }, {
6614 .eraseblocks = { {2 * 1024 * 1024, 1} },
6615 .block_erase = spi_block_erase_60,
6616 }, {
6617 .eraseblocks = { {2 * 1024 * 1024, 1} },
6618 .block_erase = spi_block_erase_c7,
6619 }
6620 },
6621 .printlock = spi_prettyprint_status_register_bp4_srwd,
6622 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006623 .write = spi_chip_write_256,
6624 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6625 .voltage = {2300, 3600},
6626 },
6627
6628 {
David Borgc96a8bd2010-06-21 16:12:22 +00006629 .vendor = "Hyundai",
6630 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006631 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006632 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006633 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006634 .total_size = 256,
6635 .page_size = 256 * 1024,
6636 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006637 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006638 .probe = probe_jedec,
6639 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6640 .block_erasers =
6641 {
6642 {
6643 .eraseblocks = {
6644 {64 * 1024, 3},
6645 {32 * 1024, 1},
6646 {8 * 1024, 2},
6647 {16 * 1024, 1},
6648 },
6649 .block_erase = erase_sector_jedec,
6650 }, {
6651 .eraseblocks = { {256 * 1024, 1} },
6652 .block_erase = erase_chip_block_jedec,
6653 },
6654 },
6655 .write = write_jedec_1,
6656 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006657 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006658 },
6659
6660 {
6661 .vendor = "Hyundai",
6662 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006663 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006664 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006665 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006666 .total_size = 256,
6667 .page_size = 256 * 1024,
6668 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6669 .tested = TEST_UNTESTED,
6670 .probe = probe_jedec,
6671 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6672 .block_erasers =
6673 {
6674 {
6675 .eraseblocks = {
6676 {16 * 1024, 1},
6677 {8 * 1024, 2},
6678 {32 * 1024, 1},
6679 {64 * 1024, 3},
6680 },
6681 .block_erase = erase_sector_jedec,
6682 }, {
6683 .eraseblocks = { {256 * 1024, 1} },
6684 .block_erase = erase_chip_block_jedec,
6685 },
6686 },
6687 .write = write_jedec_1,
6688 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006689 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006690 },
6691
6692 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006693 .vendor = "Hyundai",
6694 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006695 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006696 .manufacture_id = HYUNDAI_ID,
6697 .model_id = HYUNDAI_HY29F040A,
6698 .total_size = 512,
6699 .page_size = 64 * 1024,
6700 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6701 .tested = TEST_UNTESTED,
6702 .probe = probe_jedec,
6703 .probe_timing = TIMING_ZERO,
6704 .block_erasers =
6705 {
6706 {
6707 .eraseblocks = { {64 * 1024, 8} },
6708 .block_erase = erase_sector_jedec,
6709 }, {
6710 .eraseblocks = { {512 * 1024, 1} },
6711 .block_erase = erase_chip_block_jedec,
6712 },
6713 },
6714 .write = write_jedec_1,
6715 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006716 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006717 },
6718
6719 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006720 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006721 .name = "25F160S33B8",
6722 .bustype = BUS_SPI,
6723 .manufacture_id = INTEL_ID,
6724 .model_id = INTEL_25F160S33B8,
6725 .total_size = 2048,
6726 .page_size = 256,
6727 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6729 .tested = TEST_UNTESTED,
6730 .probe = probe_spi_rdid,
6731 .probe_timing = TIMING_ZERO,
6732 .block_erasers =
6733 {
6734 {
6735 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6736 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6737 * have no effect on the memory contents, but sets a flag in the SR.
6738 .eraseblocks = {
6739 {8 * 1024, 8},
6740 {64 * 1024, 31} // inaccessible
6741 },
6742 .block_erase = spi_block_erase_40,
6743 }, { */
6744 .eraseblocks = { {64 * 1024, 32} },
6745 .block_erase = spi_block_erase_d8,
6746 }, {
6747 .eraseblocks = { {2 * 1024 * 1024, 1} },
6748 .block_erase = spi_block_erase_c7,
6749 }
6750 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006751 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6752 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006753 .write = spi_chip_write_256,
6754 .read = spi_chip_read, /* also fast read 0x0B */
6755 .voltage = {2700, 3600},
6756 },
6757
6758 {
6759 .vendor = "Intel",
6760 .name = "25F160S33T8",
6761 .bustype = BUS_SPI,
6762 .manufacture_id = INTEL_ID,
6763 .model_id = INTEL_25F160S33T8,
6764 .total_size = 2048,
6765 .page_size = 256,
6766 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6768 .tested = TEST_UNTESTED,
6769 .probe = probe_spi_rdid,
6770 .probe_timing = TIMING_ZERO,
6771 .block_erasers =
6772 {
6773 {
6774 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6775 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6776 * have no effect on the memory contents, but sets a flag in the SR.
6777 .eraseblocks = {
6778 {64 * 1024, 31}, // inaccessible
6779 {8 * 1024, 8}
6780 },
6781 .block_erase = spi_block_erase_40,
6782 }, { */
6783 .eraseblocks = { {64 * 1024, 32} },
6784 .block_erase = spi_block_erase_d8,
6785 }, {
6786 .eraseblocks = { {2 * 1024 * 1024, 1} },
6787 .block_erase = spi_block_erase_c7,
6788 }
6789 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006790 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6791 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006792 .write = spi_chip_write_256,
6793 .read = spi_chip_read, /* also fast read 0x0B */
6794 .voltage = {2700, 3600},
6795 },
6796
6797 {
6798 .vendor = "Intel",
6799 .name = "25F320S33B8",
6800 .bustype = BUS_SPI,
6801 .manufacture_id = INTEL_ID,
6802 .model_id = INTEL_25F320S33B8,
6803 .total_size = 4096,
6804 .page_size = 256,
6805 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6807 .tested = TEST_UNTESTED,
6808 .probe = probe_spi_rdid,
6809 .probe_timing = TIMING_ZERO,
6810 .block_erasers =
6811 {
6812 {
6813 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6814 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6815 * have no effect on the memory contents, but sets a flag in the SR.
6816 .eraseblocks = {
6817 {8 * 1024, 8},
6818 {64 * 1024, 63} // inaccessible
6819 },
6820 .block_erase = spi_block_erase_40,
6821 }, { */
6822 .eraseblocks = { {64 * 1024, 64} },
6823 .block_erase = spi_block_erase_d8,
6824 }, {
6825 .eraseblocks = { {4 * 1024 * 1024, 1} },
6826 .block_erase = spi_block_erase_c7,
6827 }
6828 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006829 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6830 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006831 .write = spi_chip_write_256,
6832 .read = spi_chip_read, /* also fast read 0x0B */
6833 .voltage = {2700, 3600},
6834 },
6835
6836 {
6837 .vendor = "Intel",
6838 .name = "25F320S33T8",
6839 .bustype = BUS_SPI,
6840 .manufacture_id = INTEL_ID,
6841 .model_id = INTEL_25F320S33T8,
6842 .total_size = 4096,
6843 .page_size = 256,
6844 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6846 .tested = TEST_UNTESTED,
6847 .probe = probe_spi_rdid,
6848 .probe_timing = TIMING_ZERO,
6849 .block_erasers =
6850 {
6851 {
6852 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6853 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6854 * have no effect on the memory contents, but sets a flag in the SR.
6855 .eraseblocks = {
6856 {64 * 1024, 63}, // inaccessible
6857 {8 * 1024, 8}
6858 },
6859 .block_erase = spi_block_erase_40,
6860 }, { */
6861 .eraseblocks = { {64 * 1024, 64} },
6862 .block_erase = spi_block_erase_d8,
6863 }, {
6864 .eraseblocks = { {4 * 1024 * 1024, 1} },
6865 .block_erase = spi_block_erase_c7,
6866 }
6867 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006868 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6869 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006870 .write = spi_chip_write_256,
6871 .read = spi_chip_read, /* also fast read 0x0B */
6872 .voltage = {2700, 3600},
6873 },
6874
6875 {
6876 .vendor = "Intel",
6877 .name = "25F640S33B8",
6878 .bustype = BUS_SPI,
6879 .manufacture_id = INTEL_ID,
6880 .model_id = INTEL_25F640S33B8,
6881 .total_size = 8192,
6882 .page_size = 256,
6883 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6885 .tested = TEST_UNTESTED,
6886 .probe = probe_spi_rdid,
6887 .probe_timing = TIMING_ZERO,
6888 .block_erasers =
6889 {
6890 {
6891 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6892 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6893 * have no effect on the memory contents, but sets a flag in the SR.
6894 .eraseblocks = {
6895 {8 * 1024, 8},
6896 {64 * 1024, 127} // inaccessible
6897 },
6898 .block_erase = spi_block_erase_40,
6899 }, { */
6900 .eraseblocks = { {64 * 1024, 128} },
6901 .block_erase = spi_block_erase_d8,
6902 }, {
6903 .eraseblocks = { {8 * 1024 * 1024, 1} },
6904 .block_erase = spi_block_erase_c7,
6905 }
6906 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006907 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6908 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006909 .write = spi_chip_write_256,
6910 .read = spi_chip_read, /* also fast read 0x0B */
6911 .voltage = {2700, 3600},
6912 },
6913
6914 {
6915 .vendor = "Intel",
6916 .name = "25F640S33T8",
6917 .bustype = BUS_SPI,
6918 .manufacture_id = INTEL_ID,
6919 .model_id = INTEL_25F640S33T8,
6920 .total_size = 8192,
6921 .page_size = 256,
6922 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6923 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6924 .tested = TEST_UNTESTED,
6925 .probe = probe_spi_rdid,
6926 .probe_timing = TIMING_ZERO,
6927 .block_erasers =
6928 {
6929 {
6930 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6931 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6932 * have no effect on the memory contents, but sets a flag in the SR.
6933 .eraseblocks = {
6934 {64 * 1024, 127}, // inaccessible
6935 {8 * 1024, 8}
6936 },
6937 .block_erase = spi_block_erase_40,
6938 }, { */
6939 .eraseblocks = { {64 * 1024, 128} },
6940 .block_erase = spi_block_erase_d8,
6941 }, {
6942 .eraseblocks = { {8 * 1024 * 1024, 1} },
6943 .block_erase = spi_block_erase_c7,
6944 }
6945 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006946 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6947 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006948 .write = spi_chip_write_256,
6949 .read = spi_chip_read, /* also fast read 0x0B */
6950 .voltage = {2700, 3600},
6951 },
6952
6953 {
6954 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006955 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006956 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006957 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006958 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006959 .total_size = 128,
6960 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006961 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006962 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006963 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006964 .block_erasers =
6965 {
6966 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006967 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006968 {8 * 1024, 1},
6969 {4 * 1024, 2},
6970 {112 * 1024, 1},
6971 },
Sean Nelson28accc22010-03-19 18:47:06 +00006972 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006973 },
6974 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006975 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006977 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006978 },
6979
6980 {
6981 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006982 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006983 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006984 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006985 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006986 .total_size = 128,
6987 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006988 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006989 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006990 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006991 .block_erasers =
6992 {
6993 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006994 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006995 {112 * 1024, 1},
6996 {4 * 1024, 2},
6997 {8 * 1024, 1},
6998 },
Sean Nelson28accc22010-03-19 18:47:06 +00006999 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007000 },
7001 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007002 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007003 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007004 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007005 },
7006
7007 {
7008 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007009 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007010 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007011 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007012 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007013 .total_size = 256,
7014 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007015 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007016 .probe = probe_82802ab,
7017 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7018 .block_erasers =
7019 {
7020 {
7021 .eraseblocks = {
7022 {128 * 1024, 1},
7023 {96 * 1024, 1},
7024 {8 * 1024, 2},
7025 {16 * 1024, 1},
7026 },
7027 .block_erase = erase_block_82802ab,
7028 },
7029 },
7030 .write = write_82802ab,
7031 .read = read_memmapped,
7032 },
7033
7034 {
7035 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007036 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007037 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007038 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007039 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007040 .total_size = 512,
7041 .page_size = 256,
7042 .tested = TEST_UNTESTED,
7043 .probe = probe_82802ab,
7044 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007045 .block_erasers =
7046 {
7047 {
7048 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007049 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007050 },
7051 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007052 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007053 .write = write_82802ab,
7054 .read = read_memmapped,
7055 },
7056
7057 {
7058 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007059 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007060 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007061 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007062 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007063 .total_size = 512,
7064 .page_size = 128 * 1024, /* maximal block size */
7065 .tested = TEST_UNTESTED,
7066 .probe = probe_82802ab,
7067 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7068 .block_erasers =
7069 {
7070 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007071 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007072 {16 * 1024, 1},
7073 {8 * 1024, 2},
7074 {96 * 1024, 1},
7075 {128 * 1024, 3},
7076 },
7077 .block_erase = erase_block_82802ab,
7078 },
7079 },
7080 .write = write_82802ab,
7081 .read = read_memmapped,
7082 },
7083
7084 {
7085 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007086 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007087 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007088 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007089 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007090 .total_size = 512,
7091 .page_size = 128 * 1024, /* maximal block size */
7092 .tested = TEST_UNTESTED,
7093 .probe = probe_82802ab,
7094 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7095 .block_erasers =
7096 {
7097 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007098 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007099 {128 * 1024, 3},
7100 {96 * 1024, 1},
7101 {8 * 1024, 2},
7102 {16 * 1024, 1},
7103 },
7104 .block_erase = erase_block_82802ab,
7105 },
7106 },
7107 .write = write_82802ab,
7108 .read = read_memmapped,
7109 },
7110
7111 {
7112 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007113 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007114 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007115 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007116 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007117 .total_size = 512,
7118 .page_size = 128 * 1024, /* maximal block size */
7119 .feature_bits = FEATURE_ADDR_SHIFTED,
7120 .tested = TEST_UNTESTED,
7121 .probe = probe_82802ab,
7122 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7123 .block_erasers =
7124 {
7125 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007126 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007127 {16 * 1024, 1},
7128 {8 * 1024, 2},
7129 {96 * 1024, 1},
7130 {128 * 1024, 3},
7131 },
7132 .block_erase = erase_block_82802ab,
7133 },
7134 },
7135 .write = write_82802ab,
7136 .read = read_memmapped,
7137 },
7138
7139 {
7140 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007141 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007142 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007143 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007144 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007145 .total_size = 512,
7146 .page_size = 128 * 1024, /* maximal block size */
7147 .feature_bits = FEATURE_ADDR_SHIFTED,
7148 .tested = TEST_UNTESTED,
7149 .probe = probe_82802ab,
7150 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7151 .block_erasers =
7152 {
7153 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007154 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007155 {128 * 1024, 3},
7156 {96 * 1024, 1},
7157 {8 * 1024, 2},
7158 {16 * 1024, 1},
7159 },
7160 .block_erase = erase_block_82802ab,
7161 },
7162 },
7163 .write = write_82802ab,
7164 .read = read_memmapped,
7165 },
7166
7167 {
7168 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007169 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007170 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007171 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007172 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007173 .total_size = 512,
7174 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007175 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007177 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007178 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007179 .block_erasers =
7180 {
7181 {
7182 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007183 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007184 },
7185 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007186 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007187 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007189 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007190 },
7191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007192 {
7193 .vendor = "Intel",
7194 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007195 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007196 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007197 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007198 .total_size = 1024,
7199 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007200 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007201 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007202 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007203 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007204 .block_erasers =
7205 {
7206 {
7207 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007208 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007209 },
7210 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007211 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007212 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007214 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007215 },
7216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007217 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007218 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007219 .name = "IS25LP128",
7220 .bustype = BUS_SPI,
7221 .manufacture_id = ISSI_ID_SPI,
7222 .model_id = ISSI_IS25LP128,
7223 .total_size = 16384,
7224 .page_size = 256,
7225 /* OTP: 1024B total; read 0x48; write 0x42 */
7226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7227 .tested = TEST_OK_PREW,
7228 .probe = probe_spi_rdid,
7229 .probe_timing = TIMING_ZERO,
7230 .block_erasers =
7231 {
7232 {
7233 .eraseblocks = { {4 * 1024, 4096} },
7234 .block_erase = spi_block_erase_20,
7235 }, {
7236 .eraseblocks = { {4 * 1024, 4096} },
7237 .block_erase = spi_block_erase_d7,
7238 }, {
7239 .eraseblocks = { {32 * 1024, 512} },
7240 .block_erase = spi_block_erase_52,
7241 }, {
7242 .eraseblocks = { {64 * 1024, 256} },
7243 .block_erase = spi_block_erase_d8,
7244 }, {
7245 .eraseblocks = { {16 * 1024 * 1024, 1} },
7246 .block_erase = spi_block_erase_60,
7247 }, {
7248 .eraseblocks = { {16 * 1024 * 1024, 1} },
7249 .block_erase = spi_block_erase_c7,
7250 }
7251 },
7252 .unlock = spi_disable_blockprotect,
7253 .write = spi_chip_write_256,
7254 .read = spi_chip_read,
7255 .voltage = {2300, 3600},
7256 },
7257
7258 {
7259 .vendor = "ISSI",
7260 .name = "IS25WP128",
7261 .bustype = BUS_SPI,
7262 .manufacture_id = ISSI_ID_SPI,
7263 .model_id = ISSI_IS25WP128,
7264 .total_size = 16384,
7265 .page_size = 256,
7266 /* OTP: 1024B total; read 0x48; write 0x42 */
7267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7268 .tested = TEST_OK_PREW,
7269 .probe = probe_spi_rdid,
7270 .probe_timing = TIMING_ZERO,
7271 .block_erasers =
7272 {
7273 {
7274 .eraseblocks = { {4 * 1024, 4096} },
7275 .block_erase = spi_block_erase_20,
7276 }, {
7277 .eraseblocks = { {4 * 1024, 4096} },
7278 .block_erase = spi_block_erase_d7,
7279 }, {
7280 .eraseblocks = { {32 * 1024, 512} },
7281 .block_erase = spi_block_erase_52,
7282 }, {
7283 .eraseblocks = { {64 * 1024, 256} },
7284 .block_erase = spi_block_erase_d8,
7285 }, {
7286 .eraseblocks = { {16 * 1024 * 1024, 1} },
7287 .block_erase = spi_block_erase_60,
7288 }, {
7289 .eraseblocks = { {16 * 1024 * 1024, 1} },
7290 .block_erase = spi_block_erase_c7,
7291 }
7292 },
7293 .unlock = spi_disable_blockprotect,
7294 .write = spi_chip_write_256,
7295 .read = spi_chip_read,
7296 .voltage = {1650, 1950},
7297 },
7298
7299 {
7300 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007301 .name = "IS29GL064B",
7302 .bustype = BUS_PARALLEL,
7303 .manufacture_id = ISSI_ID,
7304 .model_id = ISSI_PMC_IS29GL064B,
7305 .total_size = 8192,
7306 .page_size = 128 * 1024, /* actual page size is 16 */
7307 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7308 .tested = TEST_UNTESTED,
7309 .probe = probe_jedec_29gl,
7310 .probe_timing = TIMING_ZERO,
7311 .block_erasers =
7312 {
7313 {
7314 .eraseblocks = {
7315 {8 * 1024, 8},
7316 {64 * 1024, 127},
7317 },
7318 .block_erase = erase_sector_jedec,
7319 }, {
7320 .eraseblocks = { {8 * 1024 * 1024, 1} },
7321 .block_erase = erase_chip_block_jedec,
7322 },
7323 },
7324 .write = write_jedec_1,
7325 .read = read_memmapped,
7326 .voltage = {2700, 3600},
7327 },
7328
7329 {
7330 .vendor = "ISSI",
7331 .name = "IS29GL064T",
7332 .bustype = BUS_PARALLEL,
7333 .manufacture_id = ISSI_ID,
7334 .model_id = ISSI_PMC_IS29GL064T,
7335 .total_size = 8192,
7336 .page_size = 128 * 1024, /* actual page size is 16 */
7337 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7338 .tested = TEST_UNTESTED,
7339 .probe = probe_jedec_29gl,
7340 .probe_timing = TIMING_ZERO,
7341 .block_erasers =
7342 {
7343 {
7344 .eraseblocks = {
7345 {64 * 1024, 127},
7346 {8 * 1024, 8},
7347 },
7348 .block_erase = erase_sector_jedec,
7349 }, {
7350 .eraseblocks = { {8 * 1024 * 1024, 1} },
7351 .block_erase = erase_chip_block_jedec,
7352 },
7353 },
7354 .write = write_jedec_1,
7355 .read = read_memmapped,
7356 .voltage = {2700, 3600},
7357 },
7358
7359 {
7360 .vendor = "ISSI",
7361 .name = "IS29GL064H/L",
7362 .bustype = BUS_PARALLEL,
7363 .manufacture_id = ISSI_ID,
7364 .model_id = ISSI_PMC_IS29GL064HL,
7365 .total_size = 8192,
7366 .page_size = 128 * 1024, /* actual page size is 16 */
7367 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7368 .tested = TEST_UNTESTED,
7369 .probe = probe_jedec_29gl,
7370 .probe_timing = TIMING_ZERO,
7371 .block_erasers =
7372 {
7373 {
7374 .eraseblocks = { {64 * 1024, 128} },
7375 .block_erase = erase_sector_jedec,
7376 }, {
7377 .eraseblocks = { {8 * 1024 * 1024, 1} },
7378 .block_erase = erase_chip_block_jedec,
7379 },
7380 },
7381 .write = write_jedec_1,
7382 .read = read_memmapped,
7383 .voltage = {2700, 3600},
7384 },
7385
7386 {
7387 .vendor = "ISSI",
7388 .name = "IS29GL128H/L",
7389 .bustype = BUS_PARALLEL,
7390 .manufacture_id = ISSI_ID,
7391 .model_id = ISSI_PMC_IS29GL128HL,
7392 .total_size = 16384,
7393 .page_size = 128 * 1024, /* actual page size is 16 */
7394 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7395 .tested = TEST_UNTESTED,
7396 .probe = probe_jedec_29gl,
7397 .probe_timing = TIMING_ZERO,
7398 .block_erasers =
7399 {
7400 {
7401 .eraseblocks = { {128 * 1024, 128} },
7402 .block_erase = erase_sector_jedec,
7403 }, {
7404 .eraseblocks = { {16 * 1024 * 1024, 1} },
7405 .block_erase = erase_chip_block_jedec,
7406 },
7407 },
7408 .write = write_jedec_1,
7409 .read = read_memmapped,
7410 .voltage = {2700, 3600},
7411 },
7412
7413 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007414 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007415 .name = "MX23L1654",
7416 .bustype = BUS_SPI,
7417 .manufacture_id = MACRONIX_ID,
7418 .model_id = MACRONIX_MX23L1654,
7419 .total_size = 2048,
7420 .page_size = 256,
7421 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7422 .probe = probe_spi_rdid,
7423 .probe_timing = TIMING_ZERO,
7424 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7425 .read = spi_chip_read, /* Fast read (0x0B) supported */
7426 .voltage = {3000, 3600},
7427 },
7428
7429 {
7430 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007431 .name = "MX23L3254",
7432 .bustype = BUS_SPI,
7433 .manufacture_id = MACRONIX_ID,
7434 .model_id = MACRONIX_MX23L3254,
7435 .total_size = 4096,
7436 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007437 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007438 .probe = probe_spi_rdid,
7439 .probe_timing = TIMING_ZERO,
7440 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7441 .read = spi_chip_read, /* Fast read (0x0B) supported */
7442 .voltage = {3000, 3600},
7443 },
7444
7445 {
7446 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007447 .name = "MX23L6454",
7448 .bustype = BUS_SPI,
7449 .manufacture_id = MACRONIX_ID,
7450 .model_id = MACRONIX_MX23L6454,
7451 .total_size = 8192,
7452 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007453 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007454 .probe = probe_spi_rdid,
7455 .probe_timing = TIMING_ZERO,
7456 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7457 .read = spi_chip_read, /* Fast read (0x0B) supported */
7458 .voltage = {3000, 3600},
7459 },
7460
7461 {
7462 .vendor = "Macronix",
7463 .name = "MX23L12854",
7464 .bustype = BUS_SPI,
7465 .manufacture_id = MACRONIX_ID,
7466 .model_id = MACRONIX_MX23L12854,
7467 .total_size = 16384,
7468 .page_size = 256,
7469 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7470 .probe = probe_spi_rdid,
7471 .probe_timing = TIMING_ZERO,
7472 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7473 .read = spi_chip_read, /* Fast read (0x0B) supported */
7474 .voltage = {3000, 3600},
7475 },
7476
7477 {
7478 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007479 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007480 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007481 .manufacture_id = MACRONIX_ID,
7482 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007483 .total_size = 64,
7484 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007485 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007486 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007487 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007489 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007490 .block_erasers =
7491 {
7492 {
7493 .eraseblocks = { {4 * 1024, 16} },
7494 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007495 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007496 .eraseblocks = { {64 * 1024, 1} },
7497 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007498 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007499 .eraseblocks = { {64 * 1024, 1} },
7500 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007501 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007502 .eraseblocks = { {64 * 1024, 1} },
7503 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007504 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007505 .eraseblocks = { {64 * 1024, 1} },
7506 .block_erase = spi_block_erase_c7,
7507 },
7508 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007509 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007511 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007512 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7513 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007514 },
7515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007516 {
7517 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007518 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007519 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007520 .manufacture_id = MACRONIX_ID,
7521 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007522 .total_size = 128,
7523 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007524 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007528 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007529 .block_erasers =
7530 {
7531 {
7532 .eraseblocks = { {4 * 1024, 32} },
7533 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007534 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007535 .eraseblocks = { {64 * 1024, 2} },
7536 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007537 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007538 .eraseblocks = { {128 * 1024, 1} },
7539 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007540 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007541 .eraseblocks = { {128 * 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, MX25L1006E supports dual I/O */
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 = "MX25L2005(C)/MX25L2006E",
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_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007558 .total_size = 256,
7559 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007560 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +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, 64} },
7568 .block_erase = spi_block_erase_20,
7569 }, {
7570 .eraseblocks = { {64 * 1024, 4} },
7571 .block_erase = spi_block_erase_52,
7572 }, {
7573 .eraseblocks = { {64 * 1024, 4} },
7574 .block_erase = spi_block_erase_d8,
7575 }, {
7576 .eraseblocks = { {256 * 1024, 1} },
7577 .block_erase = spi_block_erase_60,
7578 }, {
7579 .eraseblocks = { {256 * 1024, 1} },
7580 .block_erase = spi_block_erase_c7,
7581 },
7582 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007583 .printlock = spi_prettyprint_status_register_bp1_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 Tauner5c316f92015-02-08 21:57:52 +00007592 .name = "MX25L4005(A/C)/MX25L4006E",
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_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 .total_size = 512,
7597 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007598 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007599 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007601 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007602 .block_erasers =
7603 {
7604 {
7605 .eraseblocks = { {4 * 1024, 128} },
7606 .block_erase = spi_block_erase_20,
7607 }, {
7608 .eraseblocks = { {64 * 1024, 8} },
7609 .block_erase = spi_block_erase_52,
7610 }, {
7611 .eraseblocks = { {64 * 1024, 8} },
7612 .block_erase = spi_block_erase_d8,
7613 }, {
7614 .eraseblocks = { {512 * 1024, 1} },
7615 .block_erase = spi_block_erase_60,
7616 }, {
7617 .eraseblocks = { {512 * 1024, 1} },
7618 .block_erase = spi_block_erase_c7,
7619 },
7620 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007621 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007622 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007623 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007624 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007625 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007626 },
7627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007628 {
7629 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007630 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007631 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007632 .manufacture_id = MACRONIX_ID,
7633 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007634 .total_size = 1024,
7635 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007636 /* MX25L8006E, MX25L8008E support SFDP */
7637 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007638 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +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 {
7645 .eraseblocks = { {4 * 1024, 256} },
7646 .block_erase = spi_block_erase_20,
7647 }, {
7648 .eraseblocks = { {64 * 1024, 16} },
7649 .block_erase = spi_block_erase_52,
7650 }, {
7651 .eraseblocks = { {64 * 1024, 16} },
7652 .block_erase = spi_block_erase_d8,
7653 }, {
7654 .eraseblocks = { {1024 * 1024, 1} },
7655 .block_erase = spi_block_erase_60,
7656 }, {
7657 .eraseblocks = { {1024 * 1024, 1} },
7658 .block_erase = spi_block_erase_c7,
7659 },
7660 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007661 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007662 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007663 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007664 .read = spi_chip_read, /* Fast read (0x0B) supported */
7665 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007666 },
7667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007668 {
7669 .vendor = "Macronix",
7670 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007671 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007672 .manufacture_id = MACRONIX_ID,
7673 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007674 .total_size = 2048,
7675 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007676 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007677 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007679 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007680 .block_erasers =
7681 {
7682 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007683 .eraseblocks = { {64 * 1024, 32} },
7684 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007685 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007686 .eraseblocks = { {64 * 1024, 32} },
7687 .block_erase = spi_block_erase_d8,
7688 }, {
7689 .eraseblocks = { {2 * 1024 * 1024, 1} },
7690 .block_erase = spi_block_erase_60,
7691 }, {
7692 .eraseblocks = { {2 * 1024 * 1024, 1} },
7693 .block_erase = spi_block_erase_c7,
7694 },
7695 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007696 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007697 .unlock = spi_disable_blockprotect,
7698 .write = spi_chip_write_256,
7699 .read = spi_chip_read, /* Fast read (0x0B) supported */
7700 .voltage = {2700, 3600},
7701 },
7702
7703 {
7704 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007705 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007706 .bustype = BUS_SPI,
7707 .manufacture_id = MACRONIX_ID,
7708 .model_id = MACRONIX_MX25L1605,
7709 .total_size = 2048,
7710 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007711 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007712 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
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} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007723 .block_erase = spi_block_erase_52,
7724 }, {
7725 .eraseblocks = { {64 * 1024, 32} },
7726 .block_erase = spi_block_erase_d8,
7727 }, {
7728 .eraseblocks = { {2 * 1024 * 1024, 1} },
7729 .block_erase = spi_block_erase_60,
7730 }, {
7731 .eraseblocks = { {2 * 1024 * 1024, 1} },
7732 .block_erase = spi_block_erase_c7,
7733 },
7734 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007735 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007736 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007737 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007738 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007739 .voltage = {2700, 3600},
7740 },
7741
7742 {
7743 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007744 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007745 .bustype = BUS_SPI,
7746 .manufacture_id = MACRONIX_ID,
7747 .model_id = MACRONIX_MX25L1605,
7748 .total_size = 2048,
7749 .page_size = 256,
7750 .feature_bits = FEATURE_WRSR_WREN,
7751 .tested = TEST_OK_PREW,
7752 .probe = probe_spi_rdid,
7753 .probe_timing = TIMING_ZERO,
7754 .block_erasers =
7755 {
7756 {
7757 .eraseblocks = { {4 * 1024, 512} },
7758 .block_erase = spi_block_erase_20,
7759 }, {
7760 .eraseblocks = { {64 * 1024, 32} },
7761 .block_erase = spi_block_erase_d8,
7762 }, {
7763 .eraseblocks = { {2 * 1024 * 1024, 1} },
7764 .block_erase = spi_block_erase_60,
7765 }, {
7766 .eraseblocks = { {2 * 1024 * 1024, 1} },
7767 .block_erase = spi_block_erase_c7,
7768 },
7769 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007770 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007771 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007772 .write = spi_chip_write_256,
7773 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007774 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007775 },
7776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007777 {
7778 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007779 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007780 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007781 .manufacture_id = MACRONIX_ID,
7782 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007783 .total_size = 2048,
7784 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007785 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007787 .tested = TEST_UNTESTED,
7788 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007789 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007790 .block_erasers =
7791 {
7792 {
7793 .eraseblocks = { {4 * 1024, 512} },
7794 .block_erase = spi_block_erase_20,
7795 }, {
7796 .eraseblocks = { {64 * 1024, 32} },
7797 .block_erase = spi_block_erase_d8,
7798 }, {
7799 .eraseblocks = { {2 * 1024 * 1024, 1} },
7800 .block_erase = spi_block_erase_60,
7801 }, {
7802 .eraseblocks = { {2 * 1024 * 1024, 1} },
7803 .block_erase = spi_block_erase_c7,
7804 }
7805 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007806 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007807 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007808 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007809 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007810 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007811 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007812
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007813 {
7814 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007815 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007816 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007817 .manufacture_id = MACRONIX_ID,
7818 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007819 .total_size = 2048,
7820 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007821 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007823 .tested = TEST_UNTESTED,
7824 .probe = probe_spi_rdid,
7825 .probe_timing = TIMING_ZERO,
7826 .block_erasers =
7827 {
7828 {
7829 .eraseblocks = { {4 * 1024, 512} },
7830 .block_erase = spi_block_erase_20,
7831 }, {
7832 .eraseblocks = { {64 * 1024, 32} },
7833 .block_erase = spi_block_erase_d8,
7834 }, {
7835 .eraseblocks = { {2 * 1024 * 1024, 1} },
7836 .block_erase = spi_block_erase_60,
7837 }, {
7838 .eraseblocks = { {2 * 1024 * 1024, 1} },
7839 .block_erase = spi_block_erase_c7,
7840 }
7841 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007842 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007843 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007844 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007845 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007846 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007847 },
7848
7849 {
7850 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007851 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007852 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007853 .manufacture_id = MACRONIX_ID,
7854 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007855 .total_size = 4096,
7856 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007857 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007858 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007859 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007860 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007861 .block_erasers =
7862 {
7863 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007864 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007865 .block_erase = spi_block_erase_20,
7866 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007867 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007868 .block_erase = spi_block_erase_d8,
7869 }, {
7870 .eraseblocks = { {4 * 1024 * 1024, 1} },
7871 .block_erase = spi_block_erase_60,
7872 }, {
7873 .eraseblocks = { {4 * 1024 * 1024, 1} },
7874 .block_erase = spi_block_erase_c7,
7875 },
7876 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007877 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007878 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007879 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007880 .read = spi_chip_read, /* Fast read (0x0B) supported */
7881 .voltage = {2700, 3600},
7882 },
7883
7884 {
7885 .vendor = "Macronix",
7886 .name = "MX25L3205D/MX25L3208D",
7887 .bustype = BUS_SPI,
7888 .manufacture_id = MACRONIX_ID,
7889 .model_id = MACRONIX_MX25L3205,
7890 .total_size = 4096,
7891 .page_size = 256,
7892 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7894 .tested = TEST_OK_PREW,
7895 .probe = probe_spi_rdid,
7896 .probe_timing = TIMING_ZERO,
7897 .block_erasers =
7898 {
7899 {
7900 .eraseblocks = { {4 * 1024, 1024} },
7901 .block_erase = spi_block_erase_20,
7902 }, {
7903 .eraseblocks = { {64 * 1024, 64} },
7904 .block_erase = spi_block_erase_d8,
7905 }, {
7906 .eraseblocks = { {4 * 1024 * 1024, 1} },
7907 .block_erase = spi_block_erase_60,
7908 }, {
7909 .eraseblocks = { {4 * 1024 * 1024, 1} },
7910 .block_erase = spi_block_erase_c7,
7911 },
7912 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007913 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007914 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007915 .write = spi_chip_write_256,
7916 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7917 .voltage = {2700, 3600},
7918 },
7919
7920 {
7921 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007922 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007923 .bustype = BUS_SPI,
7924 .manufacture_id = MACRONIX_ID,
7925 .model_id = MACRONIX_MX25L3205,
7926 .total_size = 4096,
7927 .page_size = 256,
7928 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7930 .tested = TEST_OK_PREW,
7931 .probe = probe_spi_rdid,
7932 .probe_timing = TIMING_ZERO,
7933 .block_erasers =
7934 {
7935 {
7936 .eraseblocks = { {4 * 1024, 1024} },
7937 .block_erase = spi_block_erase_20,
7938 }, {
7939 .eraseblocks = { {64 * 1024, 64} },
7940 .block_erase = spi_block_erase_d8,
7941 }, {
7942 .eraseblocks = { {64 * 1024, 64} },
7943 .block_erase = spi_block_erase_52,
7944 }, {
7945 .eraseblocks = { {4 * 1024 * 1024, 1} },
7946 .block_erase = spi_block_erase_60,
7947 }, {
7948 .eraseblocks = { {4 * 1024 * 1024, 1} },
7949 .block_erase = spi_block_erase_c7,
7950 },
7951 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007952 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007953 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007954 .write = spi_chip_write_256,
7955 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007956 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007957 },
7958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007959 {
7960 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007961 .name = "MX25L3273E",
7962 .bustype = BUS_SPI,
7963 .manufacture_id = MACRONIX_ID,
7964 .model_id = MACRONIX_MX25L3205,
7965 .total_size = 4096,
7966 .page_size = 256,
7967 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7968 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007969 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007970 .probe = probe_spi_rdid,
7971 .probe_timing = TIMING_ZERO,
7972 .block_erasers =
7973 {
7974 {
7975 .eraseblocks = { {4 * 1024, 1024} },
7976 .block_erase = spi_block_erase_20,
7977 }, {
7978 .eraseblocks = { {32 * 1024, 128} },
7979 .block_erase = spi_block_erase_52,
7980 }, {
7981 .eraseblocks = { {64 * 1024, 64} },
7982 .block_erase = spi_block_erase_d8,
7983 }, {
7984 .eraseblocks = { {4 * 1024 * 1024, 1} },
7985 .block_erase = spi_block_erase_60,
7986 }, {
7987 .eraseblocks = { {4 * 1024 * 1024, 1} },
7988 .block_erase = spi_block_erase_c7,
7989 },
7990 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007991 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007992 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007993 .write = spi_chip_write_256,
7994 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7995 .voltage = {2700, 3600},
7996 },
7997
7998 {
7999 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008000 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008001 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008002 .manufacture_id = MACRONIX_ID,
8003 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008004 .total_size = 4096,
8005 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008006 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008008 .tested = TEST_UNTESTED,
8009 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008010 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008011 .block_erasers =
8012 {
8013 {
8014 .eraseblocks = { {4 * 1024, 1024} },
8015 .block_erase = spi_block_erase_20,
8016 }, {
8017 .eraseblocks = { {64 * 1024, 64} },
8018 .block_erase = spi_block_erase_d8,
8019 }, {
8020 .eraseblocks = { {4 * 1024 * 1024, 1} },
8021 .block_erase = spi_block_erase_60,
8022 }, {
8023 .eraseblocks = { {4 * 1024 * 1024, 1} },
8024 .block_erase = spi_block_erase_c7,
8025 }
8026 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008027 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008028 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008029 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008031 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008032 },
8033
8034 {
8035 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008036 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008037 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008038 .manufacture_id = MACRONIX_ID,
8039 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008040 .total_size = 8192,
8041 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008042 /* Has an additional 512B EEPROM sector */
8043 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008044 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008045 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008046 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008047 .block_erasers =
8048 {
8049 {
8050 .eraseblocks = { {64 * 1024, 128} },
8051 .block_erase = spi_block_erase_20,
8052 }, {
8053 .eraseblocks = { {64 * 1024, 128} },
8054 .block_erase = spi_block_erase_d8,
8055 }, {
8056 .eraseblocks = { {8 * 1024 * 1024, 1} },
8057 .block_erase = spi_block_erase_60,
8058 }, {
8059 .eraseblocks = { {8 * 1024 * 1024, 1} },
8060 .block_erase = spi_block_erase_c7,
8061 }
8062 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008063 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008064 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008065 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008066 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008067 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008068 },
8069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008070 {
8071 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008072 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008073 .bustype = BUS_SPI,
8074 .manufacture_id = MACRONIX_ID,
8075 .model_id = MACRONIX_MX25L6405,
8076 .total_size = 8192,
8077 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008078 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8080 .tested = TEST_OK_PREW,
8081 .probe = probe_spi_rdid,
8082 .probe_timing = TIMING_ZERO,
8083 .block_erasers =
8084 {
8085 {
8086 .eraseblocks = { {4 * 1024, 2048} },
8087 .block_erase = spi_block_erase_20,
8088 }, {
8089 .eraseblocks = { {64 * 1024, 128} },
8090 .block_erase = spi_block_erase_d8,
8091 }, {
8092 .eraseblocks = { {8 * 1024 * 1024, 1} },
8093 .block_erase = spi_block_erase_60,
8094 }, {
8095 .eraseblocks = { {8 * 1024 * 1024, 1} },
8096 .block_erase = spi_block_erase_c7,
8097 }
8098 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008099 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008100 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008101 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008102 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008103 .voltage = {2700, 3600},
8104 },
8105
8106 {
8107 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008108 .name = "MX25L6406E/MX25L6408E",
8109 .bustype = BUS_SPI,
8110 .manufacture_id = MACRONIX_ID,
8111 .model_id = MACRONIX_MX25L6405,
8112 .total_size = 8192,
8113 .page_size = 256,
8114 /* MX25L6406E supports SFDP */
8115 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8116 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8117 .tested = TEST_OK_PREW,
8118 .probe = probe_spi_rdid,
8119 .probe_timing = TIMING_ZERO,
8120 .block_erasers =
8121 {
8122 {
8123 .eraseblocks = { {4 * 1024, 2048} },
8124 .block_erase = spi_block_erase_20,
8125 }, {
8126 .eraseblocks = { {64 * 1024, 128} },
8127 .block_erase = spi_block_erase_52,
8128 }, {
8129 .eraseblocks = { {64 * 1024, 128} },
8130 .block_erase = spi_block_erase_d8,
8131 }, {
8132 .eraseblocks = { {8 * 1024 * 1024, 1} },
8133 .block_erase = spi_block_erase_60,
8134 }, {
8135 .eraseblocks = { {8 * 1024 * 1024, 1} },
8136 .block_erase = spi_block_erase_c7,
8137 }
8138 },
8139 .printlock = spi_prettyprint_status_register_bp3_srwd,
8140 .unlock = spi_disable_blockprotect_bp3_srwd,
8141 .write = spi_chip_write_256,
8142 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8143 .voltage = {2700, 3600},
8144 },
8145
8146 {
8147 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008148 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008149 .bustype = BUS_SPI,
8150 .manufacture_id = MACRONIX_ID,
8151 .model_id = MACRONIX_MX25L6405,
8152 .total_size = 8192,
8153 .page_size = 256,
8154 /* supports SFDP */
8155 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8156 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8157 .tested = TEST_OK_PREW,
8158 .probe = probe_spi_rdid,
8159 .probe_timing = TIMING_ZERO,
8160 .block_erasers =
8161 {
8162 {
8163 .eraseblocks = { {4 * 1024, 2048} },
8164 .block_erase = spi_block_erase_20,
8165 }, {
8166 .eraseblocks = { {32 * 1024, 256} },
8167 .block_erase = spi_block_erase_52,
8168 }, {
8169 .eraseblocks = { {64 * 1024, 128} },
8170 .block_erase = spi_block_erase_d8,
8171 }, {
8172 .eraseblocks = { {8 * 1024 * 1024, 1} },
8173 .block_erase = spi_block_erase_60,
8174 }, {
8175 .eraseblocks = { {8 * 1024 * 1024, 1} },
8176 .block_erase = spi_block_erase_c7,
8177 }
8178 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008179 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008180 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008181 .write = spi_chip_write_256,
8182 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8183 .voltage = {2700, 3600},
8184 },
8185
8186 {
8187 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008188 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008189 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008190 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008191 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008192 .total_size = 16384,
8193 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008194 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008196 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008197 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008198 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008199 .block_erasers =
8200 {
8201 {
8202 .eraseblocks = { {4 * 1024, 4096} },
8203 .block_erase = spi_block_erase_20,
8204 }, {
8205 .eraseblocks = { {64 * 1024, 256} },
8206 .block_erase = spi_block_erase_d8,
8207 }, {
8208 .eraseblocks = { {16 * 1024 * 1024, 1} },
8209 .block_erase = spi_block_erase_60,
8210 }, {
8211 .eraseblocks = { {16 * 1024 * 1024, 1} },
8212 .block_erase = spi_block_erase_c7,
8213 }
8214 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008215 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008216 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008217 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008218 .read = spi_chip_read, /* Fast read (0x0B) supported */
8219 .voltage = {2700, 3600},
8220 },
8221
8222 {
8223 .vendor = "Macronix",
8224 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8225 .bustype = BUS_SPI,
8226 .manufacture_id = MACRONIX_ID,
8227 .model_id = MACRONIX_MX25L12805D,
8228 .total_size = 16384,
8229 .page_size = 256,
8230 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8232 .tested = TEST_OK_PREW,
8233 .probe = probe_spi_rdid,
8234 .probe_timing = TIMING_ZERO,
8235 .block_erasers =
8236 {
8237 {
8238 .eraseblocks = { {4 * 1024, 4096} },
8239 .block_erase = spi_block_erase_20,
8240 }, {
8241 .eraseblocks = { {32 * 1024, 512} },
8242 .block_erase = spi_block_erase_52,
8243 }, {
8244 .eraseblocks = { {64 * 1024, 256} },
8245 .block_erase = spi_block_erase_d8,
8246 }, {
8247 .eraseblocks = { {16 * 1024 * 1024, 1} },
8248 .block_erase = spi_block_erase_60,
8249 }, {
8250 .eraseblocks = { {16 * 1024 * 1024, 1} },
8251 .block_erase = spi_block_erase_c7,
8252 }
8253 },
8254 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8255 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8256 .unlock = spi_disable_blockprotect_bp3_srwd,
8257 .write = spi_chip_write_256,
8258 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008259 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008260 },
8261
8262 {
8263 .vendor = "Macronix",
Nico Huberaac81422017-11-10 22:54:13 +01008264 .name = "MX25L25635F",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008265 .bustype = BUS_SPI,
8266 .manufacture_id = MACRONIX_ID,
8267 .model_id = MACRONIX_MX25L25635F,
8268 .total_size = 32768,
8269 .page_size = 256,
8270 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008271 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8272 .tested = TEST_UNTESTED,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008273 .probe = probe_spi_rdid,
8274 .probe_timing = TIMING_ZERO,
8275 .block_erasers =
8276 {
8277 {
8278 .eraseblocks = { {4 * 1024, 8192} },
Nico Huberaac81422017-11-10 22:54:13 +01008279 .block_erase = spi_block_erase_21,
8280 }, {
8281 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008282 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008283 }, {
8284 .eraseblocks = { {32 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008285 .block_erase = spi_block_erase_5c,
8286 }, {
8287 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008288 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008289 }, {
8290 .eraseblocks = { {64 * 1024, 512} },
Nico Huberaac81422017-11-10 22:54:13 +01008291 .block_erase = spi_block_erase_dc,
8292 }, {
8293 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008294 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008295 }, {
8296 .eraseblocks = { {32 * 1024 * 1024, 1} },
8297 .block_erase = spi_block_erase_60,
8298 }, {
8299 .eraseblocks = { {32 * 1024 * 1024, 1} },
8300 .block_erase = spi_block_erase_c7,
8301 }
8302 },
8303 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8304 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8305 .unlock = spi_disable_blockprotect_bp3_srwd,
8306 .write = spi_chip_write_256,
8307 .read = spi_chip_read, /* Fast read (0x0B) supported */
8308 .voltage = {2700, 3600},
8309 },
8310
8311 {
8312 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008313 .name = "MX66L51235F",
8314 .bustype = BUS_SPI,
8315 .manufacture_id = MACRONIX_ID,
8316 .model_id = MACRONIX_MX66L51235F,
8317 .total_size = 65536,
8318 .page_size = 256,
8319 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8321 .tested = TEST_UNTESTED,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008322 .probe = probe_spi_rdid,
8323 .probe_timing = TIMING_ZERO,
8324 .block_erasers =
8325 {
8326 {
8327 .eraseblocks = { {4 * 1024, 16384} },
Nico Huberaac81422017-11-10 22:54:13 +01008328 .block_erase = spi_block_erase_21,
8329 }, {
8330 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008331 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008332 }, {
8333 .eraseblocks = { {32 * 1024, 2048} },
Nico Huberaac81422017-11-10 22:54:13 +01008334 .block_erase = spi_block_erase_5c,
8335 }, {
8336 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008337 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008338 }, {
8339 .eraseblocks = { {64 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008340 .block_erase = spi_block_erase_dc,
8341 }, {
8342 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008343 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008344 }, {
8345 .eraseblocks = { {64 * 1024 * 1024, 1} },
8346 .block_erase = spi_block_erase_60,
8347 }, {
8348 .eraseblocks = { {64 * 1024 * 1024, 1} },
8349 .block_erase = spi_block_erase_c7,
8350 }
8351 },
8352 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8353 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8354 .unlock = spi_disable_blockprotect_bp3_srwd,
8355 .write = spi_chip_write_256,
8356 .read = spi_chip_read, /* Fast read (0x0B) supported */
8357 .voltage = {2700, 3600},
8358 },
8359
8360 {
8361 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008362 .name = "MX25U1635E",
8363 .bustype = BUS_SPI,
8364 .manufacture_id = MACRONIX_ID,
8365 .model_id = MACRONIX_MX25U1635E,
8366 .total_size = 2048,
8367 .page_size = 256,
8368 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8369 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008371 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008372 .probe = probe_spi_rdid,
8373 .probe_timing = TIMING_ZERO,
8374 .block_erasers =
8375 {
8376 {
8377 .eraseblocks = { {4 * 1024, 512} },
8378 .block_erase = spi_block_erase_20,
8379 }, {
8380 .eraseblocks = { {32 * 1024, 64} },
8381 .block_erase = spi_block_erase_52,
8382 }, {
8383 .eraseblocks = { {64 * 1024, 32} },
8384 .block_erase = spi_block_erase_d8,
8385 }, {
8386 .eraseblocks = { {2 * 1024 * 1024, 1} },
8387 .block_erase = spi_block_erase_60,
8388 }, {
8389 .eraseblocks = { {2 * 1024 * 1024, 1} },
8390 .block_erase = spi_block_erase_c7,
8391 }
8392 },
8393 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008394 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008395 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008396 .write = spi_chip_write_256,
8397 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8398 .voltage = {1650, 2000},
8399 },
8400
8401 {
8402 .vendor = "Macronix",
8403 .name = "MX25U3235E/F",
8404 .bustype = BUS_SPI,
8405 .manufacture_id = MACRONIX_ID,
8406 .model_id = MACRONIX_MX25U3235E,
8407 .total_size = 4096,
8408 .page_size = 256,
8409 /* F model supports SFDP */
8410 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8411 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8412 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8413 .tested = TEST_OK_PREW,
8414 .probe = probe_spi_rdid,
8415 .probe_timing = TIMING_ZERO,
8416 .block_erasers =
8417 {
8418 {
8419 .eraseblocks = { {4 * 1024, 1024} },
8420 .block_erase = spi_block_erase_20,
8421 }, {
8422 .eraseblocks = { {32 * 1024, 128} },
8423 .block_erase = spi_block_erase_52,
8424 }, {
8425 .eraseblocks = { {64 * 1024, 64} },
8426 .block_erase = spi_block_erase_d8,
8427 }, {
8428 .eraseblocks = { {4 * 1024 * 1024, 1} },
8429 .block_erase = spi_block_erase_60,
8430 }, {
8431 .eraseblocks = { {4 * 1024 * 1024, 1} },
8432 .block_erase = spi_block_erase_c7,
8433 }
8434 },
8435 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008436 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008437 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008438 .write = spi_chip_write_256,
8439 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8440 .voltage = {1650, 2000},
8441 },
8442
8443 {
8444 .vendor = "Macronix",
8445 .name = "MX25U6435E/F",
8446 .bustype = BUS_SPI,
8447 .manufacture_id = MACRONIX_ID,
8448 .model_id = MACRONIX_MX25U6435E,
8449 .total_size = 8192,
8450 .page_size = 256,
8451 /* F model supports SFDP */
8452 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8453 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008455 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008456 .probe = probe_spi_rdid,
8457 .probe_timing = TIMING_ZERO,
8458 .block_erasers =
8459 {
8460 {
8461 .eraseblocks = { {4 * 1024, 2048} },
8462 .block_erase = spi_block_erase_20,
8463 }, {
8464 .eraseblocks = { {32 * 1024, 256} },
8465 .block_erase = spi_block_erase_52,
8466 }, {
8467 .eraseblocks = { {64 * 1024, 128} },
8468 .block_erase = spi_block_erase_d8,
8469 }, {
8470 .eraseblocks = { {8 * 1024 * 1024, 1} },
8471 .block_erase = spi_block_erase_60,
8472 }, {
8473 .eraseblocks = { {8 * 1024 * 1024, 1} },
8474 .block_erase = spi_block_erase_c7,
8475 }
8476 },
8477 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008478 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008479 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008480 .write = spi_chip_write_256,
8481 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8482 .voltage = {1650, 2000},
8483 },
8484
8485 {
8486 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008487 .name = "MX25U12835F",
8488 .bustype = BUS_SPI,
8489 .manufacture_id = MACRONIX_ID,
8490 .model_id = MACRONIX_MX25U12835E,
8491 .total_size = 16384,
8492 .page_size = 256,
8493 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8495 .tested = TEST_UNTESTED,
8496 .probe = probe_spi_rdid,
8497 .probe_timing = TIMING_ZERO,
8498 .block_erasers =
8499 {
8500 {
8501 .eraseblocks = { {4 * 1024, 4096} },
8502 .block_erase = spi_block_erase_20,
8503 }, {
8504 .eraseblocks = { {32 * 1024, 512} },
8505 .block_erase = spi_block_erase_52,
8506 }, {
8507 .eraseblocks = { {64 * 1024, 256} },
8508 .block_erase = spi_block_erase_d8,
8509 }, {
8510 .eraseblocks = { {16 * 1024 * 1024, 1} },
8511 .block_erase = spi_block_erase_60,
8512 }, {
8513 .eraseblocks = { {16 * 1024 * 1024, 1} },
8514 .block_erase = spi_block_erase_c7,
8515 }
8516 },
8517 /* TODO: security register */
8518 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8519 .unlock = spi_disable_blockprotect_bp3_srwd,
8520 .write = spi_chip_write_256, /* Multi I/O supported */
8521 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8522 .voltage = {1650, 2000},
8523 },
8524
8525 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008526 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008527 .name = "MX25L6495F",
8528 .bustype = BUS_SPI,
8529 .manufacture_id = MACRONIX_ID,
8530 .model_id = MACRONIX_MX25L6495F,
8531 .total_size = 8192,
8532 .page_size = 256,
8533 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8535 .tested = TEST_OK_PREW,
8536 .probe = probe_spi_rdid,
8537 .probe_timing = TIMING_ZERO,
8538 .block_erasers =
8539 {
8540 {
8541 .eraseblocks = { {4 * 1024, 2048} },
8542 .block_erase = spi_block_erase_20,
8543 }, {
8544 .eraseblocks = { {64 * 1024, 128} },
8545 .block_erase = spi_block_erase_d8,
8546 }, {
8547 .eraseblocks = { {32 * 1024, 256} },
8548 .block_erase = spi_block_erase_52,
8549 }, {
8550 .eraseblocks = { {8 * 1024 * 1024, 1} },
8551 .block_erase = spi_block_erase_60,
8552 }, {
8553 .eraseblocks = { {8 * 1024 * 1024, 1} },
8554 .block_erase = spi_block_erase_c7,
8555 }
8556 },
8557 .unlock = spi_disable_blockprotect,
8558 .write = spi_chip_write_256,
8559 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8560 .voltage = {2700, 3600},
8561 },
8562
8563 {
Martin Roth440057a2014-07-13 00:05:07 +00008564 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008565 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008566 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008567 .manufacture_id = MACRONIX_ID,
8568 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008569 .total_size = 128,
8570 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008571 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8572 .tested = TEST_UNTESTED,
8573 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008574 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008575 .block_erasers =
8576 {
8577 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008578 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008579 {8 * 1024, 1},
8580 {4 * 1024, 2},
8581 {8 * 1024, 2},
8582 {32 * 1024, 1},
8583 {64 * 1024, 1},
8584 },
Sean Nelson35727f72010-01-28 23:55:12 +00008585 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008586 }, {
8587 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008588 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008589 }
8590 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008591 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008593 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008594 },
8595
8596 {
8597 .vendor = "Macronix",
8598 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008599 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008600 .manufacture_id = MACRONIX_ID,
8601 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008602 .total_size = 128,
8603 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008604 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008605 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008606 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008607 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008608 .block_erasers =
8609 {
8610 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008611 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008612 {64 * 1024, 1},
8613 {32 * 1024, 1},
8614 {8 * 1024, 2},
8615 {4 * 1024, 2},
8616 {8 * 1024, 1},
8617 },
Sean Nelson35727f72010-01-28 23:55:12 +00008618 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008619 }, {
8620 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008621 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008622 }
8623 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008624 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008626 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008627 },
8628
8629 {
8630 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008631 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008632 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008633 .manufacture_id = MACRONIX_ID,
8634 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008635 .total_size = 256,
8636 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008637 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008638 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008639 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008640 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008641 .block_erasers =
8642 {
8643 {
8644 .eraseblocks = {
8645 {16 * 1024, 1},
8646 {8 * 1024, 2},
8647 {32 * 1024, 1},
8648 {64 * 1024, 3},
8649 },
Sean Nelson35727f72010-01-28 23:55:12 +00008650 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008651 }, {
8652 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008653 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008654 },
8655 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008656 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008657 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008658 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008659 },
8660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008661 {
8662 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008663 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008664 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008665 .manufacture_id = MACRONIX_ID,
8666 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008667 .total_size = 256,
8668 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008669 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008670 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008671 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008672 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008673 .block_erasers =
8674 {
8675 {
8676 .eraseblocks = {
8677 {64 * 1024, 3},
8678 {32 * 1024, 1},
8679 {8 * 1024, 2},
8680 {16 * 1024, 1},
8681 },
Sean Nelson35727f72010-01-28 23:55:12 +00008682 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008683 }, {
8684 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008685 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008686 },
8687 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008689 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008690 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008691 },
8692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008693 {
8694 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008695 .name = "MX29F022(N)B",
8696 .bustype = BUS_PARALLEL,
8697 .manufacture_id = MACRONIX_ID,
8698 .model_id = MACRONIX_MX29F022B,
8699 .total_size = 256,
8700 .page_size = 0, /* unused */
8701 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8702 .tested = TEST_UNTESTED,
8703 .probe = probe_jedec,
8704 .probe_timing = TIMING_ZERO,
8705 .block_erasers =
8706 {
8707 {
8708 .eraseblocks = {
8709 {16 * 1024, 1},
8710 {8 * 1024, 2},
8711 {32 * 1024, 1},
8712 {64 * 1024, 3},
8713 },
8714 .block_erase = erase_sector_jedec,
8715 }, {
8716 .eraseblocks = { {256 * 1024, 1} },
8717 .block_erase = erase_chip_block_jedec,
8718 }
8719 },
8720 .write = write_jedec_1,
8721 .read = read_memmapped,
8722 .voltage = {4500, 5500},
8723 },
8724
8725 {
8726 .vendor = "Macronix",
8727 .name = "MX29F022(N)T",
8728 .bustype = BUS_PARALLEL,
8729 .manufacture_id = MACRONIX_ID,
8730 .model_id = MACRONIX_MX29F022T,
8731 .total_size = 256,
8732 .page_size = 0, /* unused */
8733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8734 .tested = TEST_OK_PREW,
8735 .probe = probe_jedec,
8736 .probe_timing = TIMING_ZERO,
8737 .block_erasers =
8738 {
8739 {
8740 .eraseblocks = {
8741 {64 * 1024, 3},
8742 {32 * 1024, 1},
8743 {8 * 1024, 2},
8744 {16 * 1024, 1},
8745 },
8746 .block_erase = erase_sector_jedec,
8747 }, {
8748 .eraseblocks = { {256 * 1024, 1} },
8749 .block_erase = erase_chip_block_jedec,
8750 }
8751 },
8752 .write = write_jedec_1,
8753 .read = read_memmapped,
8754 .voltage = {4500, 5500},
8755 },
8756
8757 {
8758 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008759 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008760 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008761 .manufacture_id = MACRONIX_ID,
8762 .model_id = MACRONIX_MX29F040,
8763 .total_size = 512,
8764 .page_size = 64 * 1024,
8765 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8766 .tested = TEST_UNTESTED,
8767 .probe = probe_jedec,
8768 .probe_timing = TIMING_ZERO,
8769 .block_erasers =
8770 {
8771 {
8772 .eraseblocks = { {64 * 1024, 8} },
8773 .block_erase = erase_sector_jedec,
8774 }, {
8775 .eraseblocks = { {512 * 1024, 1} },
8776 .block_erase = erase_chip_block_jedec,
8777 },
8778 },
8779 .write = write_jedec_1,
8780 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008781 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008782 },
8783
8784 {
8785 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008786 .name = "MX29GL320EB",
8787 .bustype = BUS_PARALLEL,
8788 .manufacture_id = MACRONIX_ID,
8789 .model_id = MACRONIX_MX29GL320EB,
8790 .total_size = 4096,
8791 .page_size = 128 * 1024, /* actual page size is 16 */
8792 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8793 .tested = TEST_UNTESTED,
8794 .probe = probe_jedec_29gl,
8795 .probe_timing = TIMING_ZERO,
8796 .block_erasers =
8797 {
8798 {
8799 .eraseblocks = {
8800 {8 * 1024, 8},
8801 {64 * 1024, 63},
8802 },
8803 .block_erase = erase_sector_jedec,
8804 }, {
8805 .eraseblocks = { {4 * 1024 * 1024, 1} },
8806 .block_erase = erase_chip_block_jedec,
8807 },
8808 },
8809 .write = write_jedec_1,
8810 .read = read_memmapped,
8811 .voltage = {2700, 3600},
8812 },
8813
8814 {
8815 .vendor = "Macronix",
8816 .name = "MX29GL320ET",
8817 .bustype = BUS_PARALLEL,
8818 .manufacture_id = MACRONIX_ID,
8819 .model_id = MACRONIX_MX29GL320ET,
8820 .total_size = 4096,
8821 .page_size = 128 * 1024, /* actual page size is 16 */
8822 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8823 .tested = TEST_UNTESTED,
8824 .probe = probe_jedec_29gl,
8825 .probe_timing = TIMING_ZERO,
8826 .block_erasers =
8827 {
8828 {
8829 .eraseblocks = {
8830 {64 * 1024, 63},
8831 {8 * 1024, 8},
8832 },
8833 .block_erase = erase_sector_jedec,
8834 }, {
8835 .eraseblocks = { {4 * 1024 * 1024, 1} },
8836 .block_erase = erase_chip_block_jedec,
8837 },
8838 },
8839 .write = write_jedec_1,
8840 .read = read_memmapped,
8841 .voltage = {2700, 3600},
8842 },
8843
8844 {
8845 .vendor = "Macronix",
8846 .name = "MX29GL320EH/L",
8847 .bustype = BUS_PARALLEL,
8848 .manufacture_id = MACRONIX_ID,
8849 .model_id = MACRONIX_MX29GL320EHL,
8850 .total_size = 4096,
8851 .page_size = 128 * 1024, /* actual page size is 16 */
8852 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8853 .tested = TEST_UNTESTED,
8854 .probe = probe_jedec_29gl,
8855 .probe_timing = TIMING_ZERO,
8856 .block_erasers =
8857 {
8858 {
8859 .eraseblocks = { {64 * 1024, 64} },
8860 .block_erase = erase_sector_jedec,
8861 }, {
8862 .eraseblocks = { {4 * 1024 * 1024, 1} },
8863 .block_erase = erase_chip_block_jedec,
8864 },
8865 },
8866 .write = write_jedec_1,
8867 .read = read_memmapped,
8868 .voltage = {2700, 3600},
8869 },
8870
8871 {
8872 .vendor = "Macronix",
8873 .name = "MX29GL640EB",
8874 .bustype = BUS_PARALLEL,
8875 .manufacture_id = MACRONIX_ID,
8876 .model_id = MACRONIX_MX29GL640EB,
8877 .total_size = 8192,
8878 .page_size = 128 * 1024, /* actual page size is 16 */
8879 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8880 .tested = TEST_UNTESTED,
8881 .probe = probe_jedec_29gl,
8882 .probe_timing = TIMING_ZERO,
8883 .block_erasers =
8884 {
8885 {
8886 .eraseblocks = {
8887 {8 * 1024, 8},
8888 {64 * 1024, 127},
8889 },
8890 .block_erase = erase_sector_jedec,
8891 }, {
8892 .eraseblocks = { {8 * 1024 * 1024, 1} },
8893 .block_erase = erase_chip_block_jedec,
8894 },
8895 },
8896 .write = write_jedec_1,
8897 .read = read_memmapped,
8898 .voltage = {2700, 3600},
8899 },
8900
8901 {
8902 .vendor = "Macronix",
8903 .name = "MX29GL640ET",
8904 .bustype = BUS_PARALLEL,
8905 .manufacture_id = MACRONIX_ID,
8906 .model_id = MACRONIX_MX29GL640ET,
8907 .total_size = 8192,
8908 .page_size = 128 * 1024, /* actual page size is 16 */
8909 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8910 .tested = TEST_UNTESTED,
8911 .probe = probe_jedec_29gl,
8912 .probe_timing = TIMING_ZERO,
8913 .block_erasers =
8914 {
8915 {
8916 .eraseblocks = {
8917 {64 * 1024, 127},
8918 {8 * 1024, 8},
8919 },
8920 .block_erase = erase_sector_jedec,
8921 }, {
8922 .eraseblocks = { {8 * 1024 * 1024, 1} },
8923 .block_erase = erase_chip_block_jedec,
8924 },
8925 },
8926 .write = write_jedec_1,
8927 .read = read_memmapped,
8928 .voltage = {2700, 3600},
8929 },
8930
8931 {
8932 .vendor = "Macronix",
8933 .name = "MX29GL640EH/L",
8934 .bustype = BUS_PARALLEL,
8935 .manufacture_id = MACRONIX_ID,
8936 .model_id = MACRONIX_MX29GL640EHL,
8937 .total_size = 8192,
8938 .page_size = 128 * 1024, /* actual page size is 16 */
8939 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8940 .tested = TEST_UNTESTED,
8941 .probe = probe_jedec_29gl,
8942 .probe_timing = TIMING_ZERO,
8943 .block_erasers =
8944 {
8945 {
8946 .eraseblocks = { {64 * 1024, 128} },
8947 .block_erase = erase_sector_jedec,
8948 }, {
8949 .eraseblocks = { {8 * 1024 * 1024, 1} },
8950 .block_erase = erase_chip_block_jedec,
8951 },
8952 },
8953 .write = write_jedec_1,
8954 .read = read_memmapped,
8955 .voltage = {2700, 3600},
8956 },
8957
8958 {
8959 .vendor = "Macronix",
8960 .name = "MX29GL128F",
8961 .bustype = BUS_PARALLEL,
8962 .manufacture_id = MACRONIX_ID,
8963 .model_id = MACRONIX_MX29GL128F,
8964 .total_size = 16384,
8965 .page_size = 128 * 1024, /* actual page size is 16 */
8966 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8967 .tested = TEST_UNTESTED,
8968 .probe = probe_jedec_29gl,
8969 .probe_timing = TIMING_ZERO,
8970 .block_erasers =
8971 {
8972 {
8973 .eraseblocks = { {128 * 1024, 128} },
8974 .block_erase = erase_sector_jedec,
8975 }, {
8976 .eraseblocks = { {16 * 1024 * 1024, 1} },
8977 .block_erase = erase_chip_block_jedec,
8978 },
8979 },
8980 .write = write_jedec_1,
8981 .read = read_memmapped,
8982 .voltage = {2700, 3600},
8983 },
8984
8985 {
8986 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008987 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008988 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008989 .manufacture_id = MACRONIX_ID,
8990 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008991 .total_size = 512,
8992 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008993 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8994 .tested = TEST_UNTESTED,
8995 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008996 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008997 .block_erasers =
8998 {
8999 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009000 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009001 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009002 }, {
9003 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009004 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009005 },
9006 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009007 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009009 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009010 },
9011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009012 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009013 .vendor = "Micron/Numonyx/ST",
9014 .name = "M25P05-A",
9015 .bustype = BUS_SPI,
9016 .manufacture_id = ST_ID,
9017 .model_id = ST_M25P05A,
9018 .total_size = 64,
9019 .page_size = 256,
9020 .feature_bits = FEATURE_WRSR_WREN,
9021 .tested = TEST_OK_PREW,
9022 .probe = probe_spi_rdid,
9023 .probe_timing = TIMING_ZERO,
9024 .block_erasers =
9025 {
9026 {
9027 .eraseblocks = { {32 * 1024, 2} },
9028 .block_erase = spi_block_erase_d8,
9029 }, {
9030 .eraseblocks = { {64 * 1024, 1} },
9031 .block_erase = spi_block_erase_c7,
9032 }
9033 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009034 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009035 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009036 .write = spi_chip_write_256,
9037 .read = spi_chip_read,
9038 .voltage = {2700, 3600},
9039 },
9040
9041 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9042 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9043 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9044 * only is successful if RDID does not work.
9045 */
9046 {
9047 .vendor = "Micron/Numonyx/ST",
9048 .name = "M25P05",
9049 .bustype = BUS_SPI,
9050 .manufacture_id = 0, /* Not used. */
9051 .model_id = ST_M25P05_RES,
9052 .total_size = 64,
9053 .page_size = 256,
9054 .feature_bits = FEATURE_WRSR_WREN,
9055 .tested = TEST_UNTESTED,
9056 .probe = probe_spi_res1,
9057 .probe_timing = TIMING_ZERO,
9058 .block_erasers =
9059 {
9060 {
9061 .eraseblocks = { {32 * 1024, 2} },
9062 .block_erase = spi_block_erase_d8,
9063 }, {
9064 .eraseblocks = { {64 * 1024, 1} },
9065 .block_erase = spi_block_erase_c7,
9066 }
9067 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009068 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009069 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009070 .write = spi_chip_write_1, /* 128 */
9071 .read = spi_chip_read,
9072 .voltage = {2700, 3600},
9073 },
9074
9075 {
9076 .vendor = "Micron/Numonyx/ST",
9077 .name = "M25P10-A",
9078 .bustype = BUS_SPI,
9079 .manufacture_id = ST_ID,
9080 .model_id = ST_M25P10A,
9081 .total_size = 128,
9082 .page_size = 256,
9083 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009084 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009085 .probe = probe_spi_rdid,
9086 .probe_timing = TIMING_ZERO,
9087 .block_erasers =
9088 {
9089 {
9090 .eraseblocks = { {32 * 1024, 4} },
9091 .block_erase = spi_block_erase_d8,
9092 }, {
9093 .eraseblocks = { {128 * 1024, 1} },
9094 .block_erase = spi_block_erase_c7,
9095 }
9096 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009097 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009098 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009099 .write = spi_chip_write_256,
9100 .read = spi_chip_read,
9101 .voltage = {2700, 3600},
9102 },
9103
9104 /* The ST M25P10 has the same problem as the M25P05. */
9105 {
9106 .vendor = "Micron/Numonyx/ST",
9107 .name = "M25P10",
9108 .bustype = BUS_SPI,
9109 .manufacture_id = 0, /* Not used. */
9110 .model_id = ST_M25P10_RES,
9111 .total_size = 128,
9112 .page_size = 256,
9113 .feature_bits = FEATURE_WRSR_WREN,
9114 .tested = TEST_UNTESTED,
9115 .probe = probe_spi_res1,
9116 .probe_timing = TIMING_ZERO,
9117 .block_erasers =
9118 {
9119 {
9120 .eraseblocks = { {32 * 1024, 4} },
9121 .block_erase = spi_block_erase_d8,
9122 }, {
9123 .eraseblocks = { {128 * 1024, 1} },
9124 .block_erase = spi_block_erase_c7,
9125 }
9126 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009128 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009129 .write = spi_chip_write_1, /* 128 */
9130 .read = spi_chip_read,
9131 .voltage = {2700, 3600},
9132 },
9133
9134 {
9135 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9136 .name = "M25P20",
9137 .bustype = BUS_SPI,
9138 .manufacture_id = ST_ID,
9139 .model_id = ST_M25P20,
9140 .total_size = 256,
9141 .page_size = 256,
9142 .feature_bits = FEATURE_WRSR_WREN,
9143 .tested = TEST_UNTESTED,
9144 .probe = probe_spi_rdid,
9145 .probe_timing = TIMING_ZERO,
9146 .block_erasers =
9147 {
9148 {
9149 .eraseblocks = { {64 * 1024, 4} },
9150 .block_erase = spi_block_erase_d8,
9151 }, {
9152 .eraseblocks = { {256 * 1024, 1} },
9153 .block_erase = spi_block_erase_c7,
9154 }
9155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009156 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009157 .unlock = spi_disable_blockprotect,
9158 .write = spi_chip_write_256,
9159 .read = spi_chip_read, /* Fast read (0x0B) supported */
9160 .voltage = {2700, 3600},
9161 },
9162
9163 {
9164 .vendor = "Micron/Numonyx/ST",
9165 .name = "M25P20-old",
9166 .bustype = BUS_SPI,
9167 .manufacture_id = 0, /* Not used. */
9168 .model_id = ST_M25P20_RES,
9169 .total_size = 256,
9170 .page_size = 256,
9171 .feature_bits = FEATURE_WRSR_WREN,
9172 .tested = TEST_OK_PREW,
9173 .probe = probe_spi_res1,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {64 * 1024, 4} },
9179 .block_erase = spi_block_erase_d8,
9180 }, {
9181 .eraseblocks = { {256 * 1024, 1} },
9182 .block_erase = spi_block_erase_c7,
9183 }
9184 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009185 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009186 .unlock = spi_disable_blockprotect,
9187 .write = spi_chip_write_256,
9188 .read = spi_chip_read, /* Fast read (0x0B) supported */
9189 .voltage = {2700, 3600},
9190 },
9191
9192 {
9193 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9194 .name = "M25P40",
9195 .bustype = BUS_SPI,
9196 .manufacture_id = ST_ID,
9197 .model_id = ST_M25P40,
9198 .total_size = 512,
9199 .page_size = 256,
9200 .feature_bits = FEATURE_WRSR_WREN,
9201 .tested = TEST_OK_PREW,
9202 .probe = probe_spi_rdid,
9203 .probe_timing = TIMING_ZERO,
9204 .block_erasers =
9205 {
9206 {
9207 .eraseblocks = { {64 * 1024, 8} },
9208 .block_erase = spi_block_erase_d8,
9209 }, {
9210 .eraseblocks = { {512 * 1024, 1} },
9211 .block_erase = spi_block_erase_c7,
9212 }
9213 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009214 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009215 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009216 .write = spi_chip_write_256,
9217 .read = spi_chip_read,
9218 .voltage = {2700, 3600},
9219 },
9220
9221 {
9222 .vendor = "Micron/Numonyx/ST",
9223 .name = "M25P40-old",
9224 .bustype = BUS_SPI,
9225 .manufacture_id = 0, /* Not used. */
9226 .model_id = ST_M25P40_RES,
9227 .total_size = 512,
9228 .page_size = 256,
9229 .feature_bits = FEATURE_WRSR_WREN,
9230 .tested = TEST_UNTESTED,
9231 .probe = probe_spi_res1,
9232 .probe_timing = TIMING_ZERO,
9233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = { {64 * 1024, 8} },
9237 .block_erase = spi_block_erase_d8,
9238 }, {
9239 .eraseblocks = { {512 * 1024, 1} },
9240 .block_erase = spi_block_erase_c7,
9241 }
9242 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009243 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009244 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009245 .write = spi_chip_write_256,
9246 .read = spi_chip_read,
9247 },
9248
9249 {
9250 .vendor = "Micron/Numonyx/ST",
9251 .name = "M25P80",
9252 .bustype = BUS_SPI,
9253 .manufacture_id = ST_ID,
9254 .model_id = ST_M25P80,
9255 .total_size = 1024,
9256 .page_size = 256,
9257 .feature_bits = FEATURE_WRSR_WREN,
9258 .tested = TEST_OK_PREW,
9259 .probe = probe_spi_rdid,
9260 .probe_timing = TIMING_ZERO,
9261 .block_erasers =
9262 {
9263 {
9264 .eraseblocks = { {64 * 1024, 16} },
9265 .block_erase = spi_block_erase_d8,
9266 }, {
9267 .eraseblocks = { {1024 * 1024, 1} },
9268 .block_erase = spi_block_erase_c7,
9269 }
9270 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009271 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009272 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009273 .write = spi_chip_write_256,
9274 .read = spi_chip_read,
9275 .voltage = {2700, 3600},
9276 },
9277
9278 {
9279 .vendor = "Micron/Numonyx/ST",
9280 .name = "M25P16",
9281 .bustype = BUS_SPI,
9282 .manufacture_id = ST_ID,
9283 .model_id = ST_M25P16,
9284 .total_size = 2048,
9285 .page_size = 256,
9286 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009287 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009288 .probe = probe_spi_rdid,
9289 .probe_timing = TIMING_ZERO,
9290 .block_erasers =
9291 {
9292 {
9293 .eraseblocks = { {64 * 1024, 32} },
9294 .block_erase = spi_block_erase_d8,
9295 }, {
9296 .eraseblocks = { {2 * 1024 * 1024, 1} },
9297 .block_erase = spi_block_erase_c7,
9298 }
9299 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009300 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009301 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009302 .write = spi_chip_write_256,
9303 .read = spi_chip_read,
9304 .voltage = {2700, 3600},
9305 },
9306
9307 {
9308 .vendor = "Micron/Numonyx/ST",
9309 .name = "M25P32",
9310 .bustype = BUS_SPI,
9311 .manufacture_id = ST_ID,
9312 .model_id = ST_M25P32,
9313 .total_size = 4096,
9314 .page_size = 256,
9315 .feature_bits = FEATURE_WRSR_WREN,
9316 .tested = TEST_OK_PREW,
9317 .probe = probe_spi_rdid,
9318 .probe_timing = TIMING_ZERO,
9319 .block_erasers =
9320 {
9321 {
9322 .eraseblocks = { {64 * 1024, 64} },
9323 .block_erase = spi_block_erase_d8,
9324 }, {
9325 .eraseblocks = { {4 * 1024 * 1024, 1} },
9326 .block_erase = spi_block_erase_c7,
9327 }
9328 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009329 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009330 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009331 .write = spi_chip_write_256,
9332 .read = spi_chip_read,
9333 .voltage = {2700, 3600},
9334 },
9335
9336 {
9337 .vendor = "Micron/Numonyx/ST",
9338 .name = "M25P64",
9339 .bustype = BUS_SPI,
9340 .manufacture_id = ST_ID,
9341 .model_id = ST_M25P64,
9342 .total_size = 8192,
9343 .page_size = 256,
9344 .feature_bits = FEATURE_WRSR_WREN,
9345 .tested = TEST_OK_PREW,
9346 .probe = probe_spi_rdid,
9347 .probe_timing = TIMING_ZERO,
9348 .block_erasers =
9349 {
9350 {
9351 .eraseblocks = { {64 * 1024, 128} },
9352 .block_erase = spi_block_erase_d8,
9353 }, {
9354 .eraseblocks = { {8 * 1024 * 1024, 1} },
9355 .block_erase = spi_block_erase_c7,
9356 }
9357 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009358 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009359 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009360 .write = spi_chip_write_256,
9361 .read = spi_chip_read,
9362 .voltage = {2700, 3600},
9363 },
9364
9365 {
9366 .vendor = "Micron/Numonyx/ST",
9367 .name = "M25P128",
9368 .bustype = BUS_SPI,
9369 .manufacture_id = ST_ID,
9370 .model_id = ST_M25P128,
9371 .total_size = 16384,
9372 .page_size = 256,
9373 .feature_bits = FEATURE_WRSR_WREN,
9374 .tested = TEST_OK_PREW,
9375 .probe = probe_spi_rdid,
9376 .probe_timing = TIMING_ZERO,
9377 .block_erasers =
9378 {
9379 {
9380 .eraseblocks = { {256 * 1024, 64} },
9381 .block_erase = spi_block_erase_d8,
9382 }, {
9383 .eraseblocks = { {16 * 1024 * 1024, 1} },
9384 .block_erase = spi_block_erase_c7,
9385 }
9386 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009387 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009388 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009389 .write = spi_chip_write_256,
9390 .read = spi_chip_read,
9391 .voltage = {2700, 3600},
9392 },
9393
9394 {
9395 .vendor = "Micron/Numonyx/ST",
9396 .name = "M25PE10",
9397 .bustype = BUS_SPI,
9398 .manufacture_id = ST_ID,
9399 .model_id = ST_M25PE10,
9400 .total_size = 128,
9401 .page_size = 256,
9402 .feature_bits = FEATURE_WRSR_WREN,
9403 .tested = TEST_UNTESTED,
9404 .probe = probe_spi_rdid,
9405 .probe_timing = TIMING_ZERO,
9406 .block_erasers =
9407 {
9408 {
9409 .eraseblocks = { {4 * 1024, 32} },
9410 .block_erase = spi_block_erase_20,
9411 }, {
9412 .eraseblocks = { {64 * 1024, 2} },
9413 .block_erase = spi_block_erase_d8,
9414 }, {
9415 .eraseblocks = { {128 * 1024, 1} },
9416 .block_erase = spi_block_erase_c7,
9417 }
9418 },
9419 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9420 .unlock = spi_disable_blockprotect,
9421 .write = spi_chip_write_256,
9422 .read = spi_chip_read,
9423 .voltage = {2700, 3600},
9424 },
9425
9426 {
9427 .vendor = "Micron/Numonyx/ST",
9428 .name = "M25PE20",
9429 .bustype = BUS_SPI,
9430 .manufacture_id = ST_ID,
9431 .model_id = ST_M25PE20,
9432 .total_size = 256,
9433 .page_size = 256,
9434 .feature_bits = FEATURE_WRSR_WREN,
9435 .tested = TEST_UNTESTED,
9436 .probe = probe_spi_rdid,
9437 .probe_timing = TIMING_ZERO,
9438 .block_erasers =
9439 {
9440 {
9441 .eraseblocks = { {4 * 1024, 64} },
9442 .block_erase = spi_block_erase_20,
9443 }, {
9444 .eraseblocks = { {64 * 1024, 4} },
9445 .block_erase = spi_block_erase_d8,
9446 }, {
9447 .eraseblocks = { {256 * 1024, 1} },
9448 .block_erase = spi_block_erase_c7,
9449 }
9450 },
9451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9452 .unlock = spi_disable_blockprotect,
9453 .write = spi_chip_write_256,
9454 .read = spi_chip_read,
9455 .voltage = {2700, 3600},
9456 },
9457
9458 {
9459 .vendor = "Micron/Numonyx/ST",
9460 .name = "M25PE40",
9461 .bustype = BUS_SPI,
9462 .manufacture_id = ST_ID,
9463 .model_id = ST_M25PE40,
9464 .total_size = 512,
9465 .page_size = 256,
9466 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009467 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009468 .probe = probe_spi_rdid,
9469 .probe_timing = TIMING_ZERO,
9470 .block_erasers =
9471 {
9472 {
9473 .eraseblocks = { {4 * 1024, 128} },
9474 .block_erase = spi_block_erase_20,
9475 }, {
9476 .eraseblocks = { {64 * 1024, 8} },
9477 .block_erase = spi_block_erase_d8,
9478 }, {
9479 .eraseblocks = { {512 * 1024, 1} },
9480 .block_erase = spi_block_erase_c7,
9481 }
9482 },
9483 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9484 .unlock = spi_disable_blockprotect,
9485 .write = spi_chip_write_256,
9486 .read = spi_chip_read,
9487 .voltage = {2700, 3600},
9488 },
9489
9490 {
9491 .vendor = "Micron/Numonyx/ST",
9492 .name = "M25PE80",
9493 .bustype = BUS_SPI,
9494 .manufacture_id = ST_ID,
9495 .model_id = ST_M25PE80,
9496 .total_size = 1024,
9497 .page_size = 256,
9498 .feature_bits = FEATURE_WRSR_WREN,
9499 .tested = TEST_OK_PREW,
9500 .probe = probe_spi_rdid,
9501 .probe_timing = TIMING_ZERO,
9502 .block_erasers =
9503 {
9504 {
9505 .eraseblocks = { {4 * 1024, 256} },
9506 .block_erase = spi_block_erase_20,
9507 }, {
9508 .eraseblocks = { {64 * 1024, 16} },
9509 .block_erase = spi_block_erase_d8,
9510 }, {
9511 .eraseblocks = { {1024 * 1024, 1} },
9512 .block_erase = spi_block_erase_c7,
9513 }
9514 },
9515 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9516 .unlock = spi_disable_blockprotect,
9517 .write = spi_chip_write_256,
9518 .read = spi_chip_read,
9519 .voltage = {2700, 3600},
9520 },
9521
9522 {
9523 .vendor = "Micron/Numonyx/ST",
9524 .name = "M25PE16",
9525 .bustype = BUS_SPI,
9526 .manufacture_id = ST_ID,
9527 .model_id = ST_M25PE16,
9528 .total_size = 2048,
9529 .page_size = 256,
9530 .feature_bits = FEATURE_WRSR_WREN,
9531 .tested = TEST_UNTESTED,
9532 .probe = probe_spi_rdid,
9533 .probe_timing = TIMING_ZERO,
9534 .block_erasers =
9535 {
9536 {
9537 .eraseblocks = { {4 * 1024, 512} },
9538 .block_erase = spi_block_erase_20,
9539 }, {
9540 .eraseblocks = { {64 * 1024, 32} },
9541 .block_erase = spi_block_erase_d8,
9542 }, {
9543 .eraseblocks = { {2 * 1024 * 1024, 1} },
9544 .block_erase = spi_block_erase_c7,
9545 }
9546 },
9547 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9548 .unlock = spi_disable_blockprotect,
9549 .write = spi_chip_write_256,
9550 .read = spi_chip_read,
9551 .voltage = {2700, 3600},
9552 },
9553
9554 {
9555 .vendor = "Micron/Numonyx/ST",
9556 .name = "M25PX80",
9557 .bustype = BUS_SPI,
9558 .manufacture_id = ST_ID,
9559 .model_id = ST_M25PX80,
9560 .total_size = 1024,
9561 .page_size = 256,
9562 /* OTP: 64B total; read 0x4B, write 0x42 */
9563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9564 .tested = TEST_OK_PREW,
9565 .probe = probe_spi_rdid,
9566 .probe_timing = TIMING_ZERO,
9567 .block_erasers = {
9568 {
9569 .eraseblocks = { { 4 * 1024, 256 } },
9570 .block_erase = spi_block_erase_20,
9571 }, {
9572 .eraseblocks = { {64 * 1024, 16} },
9573 .block_erase = spi_block_erase_d8,
9574 }, {
9575 .eraseblocks = { {1024 * 1024, 1} },
9576 .block_erase = spi_block_erase_c7,
9577 }
9578 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009579 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009580 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9581 .write = spi_chip_write_256,
9582 .read = spi_chip_read,
9583 .voltage = {2700, 3600},
9584 },
9585
9586 {
9587 .vendor = "Micron/Numonyx/ST",
9588 .name = "M25PX16",
9589 .bustype = BUS_SPI,
9590 .manufacture_id = ST_ID,
9591 .model_id = ST_M25PX16,
9592 .total_size = 2048,
9593 .page_size = 256,
9594 /* OTP: 64B total; read 0x4B; write 0x42 */
9595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9596 .tested = TEST_OK_PREW,
9597 .probe = probe_spi_rdid,
9598 .probe_timing = TIMING_ZERO,
9599 .block_erasers =
9600 {
9601 {
9602 .eraseblocks = { { 4 * 1024, 512 } },
9603 .block_erase = spi_block_erase_20,
9604 }, {
9605 .eraseblocks = { {64 * 1024, 32} },
9606 .block_erase = spi_block_erase_d8,
9607 }, {
9608 .eraseblocks = { {2 * 1024 * 1024, 1} },
9609 .block_erase = spi_block_erase_c7,
9610 }
9611 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009612 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009613 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9614 .write = spi_chip_write_256,
9615 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009616 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009617 },
9618
9619 {
9620 .vendor = "Micron/Numonyx/ST",
9621 .name = "M25PX32",
9622 .bustype = BUS_SPI,
9623 .manufacture_id = ST_ID,
9624 .model_id = ST_M25PX32,
9625 .total_size = 4096,
9626 .page_size = 256,
9627 /* OTP: 64B total; read 0x4B; write 0x42 */
9628 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9629 .tested = TEST_OK_PRE,
9630 .probe = probe_spi_rdid,
9631 .probe_timing = TIMING_ZERO,
9632 .block_erasers =
9633 {
9634 {
9635 .eraseblocks = { { 4 * 1024, 1024 } },
9636 .block_erase = spi_block_erase_20,
9637 }, {
9638 .eraseblocks = { {64 * 1024, 64} },
9639 .block_erase = spi_block_erase_d8,
9640 }, {
9641 .eraseblocks = { {4 * 1024 * 1024, 1} },
9642 .block_erase = spi_block_erase_c7,
9643 }
9644 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009645 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009646 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9647 .write = spi_chip_write_256,
9648 .read = spi_chip_read,
9649 .voltage = {2700, 3600},
9650 },
9651
9652 {
9653 .vendor = "Micron/Numonyx/ST",
9654 .name = "M25PX64",
9655 .bustype = BUS_SPI,
9656 .manufacture_id = ST_ID,
9657 .model_id = ST_M25PX64,
9658 .total_size = 8192,
9659 .page_size = 256,
9660 /* OTP: 64B total; read 0x4B; write 0x42 */
9661 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009662 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009663 .probe = probe_spi_rdid,
9664 .probe_timing = TIMING_ZERO,
9665 .block_erasers =
9666 {
9667 {
9668 .eraseblocks = { { 4 * 1024, 2048 } },
9669 .block_erase = spi_block_erase_20,
9670 }, {
9671 .eraseblocks = { {64 * 1024, 128} },
9672 .block_erase = spi_block_erase_d8,
9673 }, {
9674 .eraseblocks = { {8 * 1024 * 1024, 1} },
9675 .block_erase = spi_block_erase_c7,
9676 }
9677 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009678 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009679 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9680 .write = spi_chip_write_256,
9681 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009682 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009683 },
9684
9685 {
9686 .vendor = "Micron/Numonyx/ST",
9687 .name = "M45PE10",
9688 .bustype = BUS_SPI,
9689 .manufacture_id = ST_ID,
9690 .model_id = ST_M45PE10,
9691 .total_size = 128,
9692 .page_size = 256,
9693 .tested = TEST_UNTESTED,
9694 .probe = probe_spi_rdid,
9695 .probe_timing = TIMING_ZERO,
9696 .block_erasers = {
9697 {
9698 .eraseblocks = { {256, 512} },
9699 .block_erase = spi_block_erase_db,
9700 }, {
9701 .eraseblocks = { {64 * 1024, 2} },
9702 .block_erase = spi_block_erase_d8,
9703 }
9704 },
9705 .printlock = spi_prettyprint_status_register_default_welwip,
9706 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9707 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9708 .read = spi_chip_read, /* Fast read (0x0B) supported */
9709 .voltage = {2700, 3600},
9710 },
9711
9712 {
9713 .vendor = "Micron/Numonyx/ST",
9714 .name = "M45PE20",
9715 .bustype = BUS_SPI,
9716 .manufacture_id = ST_ID,
9717 .model_id = ST_M45PE20,
9718 .total_size = 256,
9719 .page_size = 256,
9720 .tested = TEST_UNTESTED,
9721 .probe = probe_spi_rdid,
9722 .probe_timing = TIMING_ZERO,
9723 .block_erasers = {
9724 {
9725 .eraseblocks = { {256, 1024} },
9726 .block_erase = spi_block_erase_db,
9727 }, {
9728 .eraseblocks = { {64 * 1024, 4} },
9729 .block_erase = spi_block_erase_d8,
9730 }
9731 },
9732 .printlock = spi_prettyprint_status_register_default_welwip,
9733 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9734 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9735 .read = spi_chip_read, /* Fast read (0x0B) supported */
9736 .voltage = {2700, 3600},
9737 },
9738
9739 {
9740 .vendor = "Micron/Numonyx/ST",
9741 .name = "M45PE40",
9742 .bustype = BUS_SPI,
9743 .manufacture_id = ST_ID,
9744 .model_id = ST_M45PE40,
9745 .total_size = 512,
9746 .page_size = 256,
9747 .tested = TEST_UNTESTED,
9748 .probe = probe_spi_rdid,
9749 .probe_timing = TIMING_ZERO,
9750 .block_erasers = {
9751 {
9752 .eraseblocks = { {256, 2048} },
9753 .block_erase = spi_block_erase_db,
9754 }, {
9755 .eraseblocks = { {64 * 1024, 8} },
9756 .block_erase = spi_block_erase_d8,
9757 }
9758 },
9759 .printlock = spi_prettyprint_status_register_default_welwip,
9760 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009761 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009762 .read = spi_chip_read, /* Fast read (0x0B) supported */
9763 .voltage = {2700, 3600},
9764 },
9765
9766 {
9767 .vendor = "Micron/Numonyx/ST",
9768 .name = "M45PE80",
9769 .bustype = BUS_SPI,
9770 .manufacture_id = ST_ID,
9771 .model_id = ST_M45PE80,
9772 .total_size = 1024,
9773 .page_size = 256,
9774 .tested = TEST_UNTESTED,
9775 .probe = probe_spi_rdid,
9776 .probe_timing = TIMING_ZERO,
9777 .block_erasers = {
9778 {
9779 .eraseblocks = { {256, 4096} },
9780 .block_erase = spi_block_erase_db,
9781 }, {
9782 .eraseblocks = { {64 * 1024, 16} },
9783 .block_erase = spi_block_erase_d8,
9784 }
9785 },
9786 .printlock = spi_prettyprint_status_register_default_welwip,
9787 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9788 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9789 .read = spi_chip_read, /* Fast read (0x0B) supported */
9790 .voltage = {2700, 3600},
9791 },
9792
9793 {
9794 .vendor = "Micron/Numonyx/ST",
9795 .name = "M45PE16",
9796 .bustype = BUS_SPI,
9797 .manufacture_id = ST_ID,
9798 .model_id = ST_M45PE16,
9799 .total_size = 2048,
9800 .page_size = 256,
9801 .tested = TEST_UNTESTED,
9802 .probe = probe_spi_rdid,
9803 .probe_timing = TIMING_ZERO,
9804 .block_erasers = {
9805 {
9806 .eraseblocks = { {256, 8192} },
9807 .block_erase = spi_block_erase_db,
9808 }, {
9809 .eraseblocks = { {64 * 1024, 32} },
9810 .block_erase = spi_block_erase_d8,
9811 }
9812 },
9813 .printlock = spi_prettyprint_status_register_default_welwip,
9814 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9815 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9816 .read = spi_chip_read, /* Fast read (0x0B) supported */
9817 .voltage = {2700, 3600},
9818 },
9819
9820 {
9821 .vendor = "Micron/Numonyx/ST",
9822 .name = "N25Q016",
9823 .bustype = BUS_SPI,
9824 .manufacture_id = ST_ID,
9825 .model_id = ST_N25Q016__1E,
9826 .total_size = 2048,
9827 .page_size = 256,
9828 /* supports SFDP */
9829 /* OTP: 64B total; read 0x4B, write 0x42 */
9830 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9831 .tested = TEST_UNTESTED,
9832 .probe = probe_spi_rdid,
9833 .probe_timing = TIMING_ZERO,
9834 .block_erasers =
9835 {
9836 {
9837 .eraseblocks = { {4 * 1024, 512} },
9838 .block_erase = spi_block_erase_20,
9839 }, {
9840 .eraseblocks = { {32 * 1024, 64} },
9841 .block_erase = spi_block_erase_52,
9842 }, {
9843 .eraseblocks = { {64 * 1024, 32} },
9844 .block_erase = spi_block_erase_d8,
9845 }, {
9846 .eraseblocks = { {2 * 1024 * 1024, 1} },
9847 .block_erase = spi_block_erase_c7,
9848 }
9849 },
9850 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9851 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9852 .write = spi_chip_write_256, /* Multi I/O supported */
9853 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9854 .voltage = {1700, 2000},
9855 },
9856
9857 {
9858 .vendor = "Micron/Numonyx/ST",
9859 .name = "N25Q032..1E",
9860 .bustype = BUS_SPI,
9861 .manufacture_id = ST_ID,
9862 .model_id = ST_N25Q032__1E,
9863 .total_size = 4096,
9864 .page_size = 256,
9865 /* supports SFDP */
9866 /* OTP: 64B total; read 0x4B, write 0x42 */
9867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9868 .tested = TEST_UNTESTED,
9869 .probe = probe_spi_rdid,
9870 .probe_timing = TIMING_ZERO,
9871 .block_erasers =
9872 {
9873 {
9874 .eraseblocks = { {4 * 1024, 1024} },
9875 .block_erase = spi_block_erase_20,
9876 }, {
9877 .eraseblocks = { {64 * 1024, 64} },
9878 .block_erase = spi_block_erase_d8,
9879 }, {
9880 .eraseblocks = { {4 * 1024 * 1024, 1} },
9881 .block_erase = spi_block_erase_c7,
9882 }
9883 },
9884 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9885 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9886 .write = spi_chip_write_256, /* Multi I/O supported */
9887 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9888 .voltage = {1700, 2000},
9889 },
9890
9891 {
9892 .vendor = "Micron/Numonyx/ST",
9893 .name = "N25Q032..3E",
9894 .bustype = BUS_SPI,
9895 .manufacture_id = ST_ID,
9896 .model_id = ST_N25Q032__3E,
9897 .total_size = 4096,
9898 .page_size = 256,
9899 /* supports SFDP */
9900 /* OTP: 64B total; read 0x4B, write 0x42 */
9901 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9902 .tested = TEST_OK_PREW,
9903 .probe = probe_spi_rdid,
9904 .probe_timing = TIMING_ZERO,
9905 .block_erasers =
9906 {
9907 {
9908 .eraseblocks = { {4 * 1024, 1024} },
9909 .block_erase = spi_block_erase_20,
9910 }, {
9911 .eraseblocks = { {64 * 1024, 64} },
9912 .block_erase = spi_block_erase_d8,
9913 }, {
9914 .eraseblocks = { {4 * 1024 * 1024, 1} },
9915 .block_erase = spi_block_erase_c7,
9916 }
9917 },
9918 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9919 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9920 .write = spi_chip_write_256, /* Multi I/O supported */
9921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9922 .voltage = {2700, 3600},
9923 },
9924
9925 {
9926 .vendor = "Micron/Numonyx/ST",
9927 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9928 .bustype = BUS_SPI,
9929 .manufacture_id = ST_ID,
9930 .model_id = ST_N25Q064__1E,
9931 .total_size = 8192,
9932 .page_size = 256,
9933 /* supports SFDP */
9934 /* OTP: 64B total; read 0x4B, write 0x42 */
9935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009936 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009937 .probe = probe_spi_rdid,
9938 .probe_timing = TIMING_ZERO,
9939 .block_erasers =
9940 {
9941 {
9942 .eraseblocks = { {4 * 1024, 2048 } },
9943 .block_erase = spi_block_erase_20,
9944 }, {
9945 .eraseblocks = { {64 * 1024, 128} },
9946 .block_erase = spi_block_erase_d8,
9947 }, {
9948 .eraseblocks = { {8 * 1024 * 1024, 1} },
9949 .block_erase = spi_block_erase_c7,
9950 }
9951 },
9952 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9953 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9954 .write = spi_chip_write_256, /* Multi I/O supported */
9955 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9956 .voltage = {1700, 2000},
9957 },
9958
9959 {
9960 .vendor = "Micron/Numonyx/ST",
9961 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9962 .bustype = BUS_SPI,
9963 .manufacture_id = ST_ID,
9964 .model_id = ST_N25Q064__3E,
9965 .total_size = 8192,
9966 .page_size = 256,
9967 /* supports SFDP */
9968 /* OTP: 64B total; read 0x4B, write 0x42 */
9969 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9970 .tested = TEST_OK_PREW,
9971 .probe = probe_spi_rdid,
9972 .probe_timing = TIMING_ZERO,
9973 .block_erasers =
9974 {
9975 {
9976 .eraseblocks = { {4 * 1024, 2048 } },
9977 .block_erase = spi_block_erase_20,
9978 }, {
9979 .eraseblocks = { {64 * 1024, 128} },
9980 .block_erase = spi_block_erase_d8,
9981 }, {
9982 .eraseblocks = { {8 * 1024 * 1024, 1} },
9983 .block_erase = spi_block_erase_c7,
9984 }
9985 },
9986 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9987 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9988 .write = spi_chip_write_256, /* Multi I/O supported */
9989 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9990 .voltage = {2700, 3600},
9991 },
9992
9993 {
9994 .vendor = "Micron/Numonyx/ST",
9995 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9996 .bustype = BUS_SPI,
9997 .manufacture_id = ST_ID,
9998 .model_id = ST_N25Q128__1E,
9999 .total_size = 16384,
10000 .page_size = 256,
10001 /* supports SFDP */
10002 /* OTP: 64B total; read 0x4B, write 0x42 */
10003 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010004 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010005 .probe = probe_spi_rdid,
10006 .probe_timing = TIMING_ZERO,
10007 .block_erasers = {
10008 {
10009 .eraseblocks = { {4 * 1024, 4096 } },
10010 .block_erase = spi_block_erase_20,
10011 }, {
10012 .eraseblocks = { {64 * 1024, 256} },
10013 .block_erase = spi_block_erase_d8,
10014 }, {
10015 .eraseblocks = { {16384 * 1024, 1} },
10016 .block_erase = spi_block_erase_c7,
10017 }
10018 },
10019 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10020 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10021 .write = spi_chip_write_256, /* Multi I/O supported */
10022 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10023 .voltage = {1700, 2000},
10024 },
10025
10026 {
10027 .vendor = "Micron/Numonyx/ST",
10028 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10029 .bustype = BUS_SPI,
10030 .manufacture_id = ST_ID,
10031 .model_id = ST_N25Q128__3E,
10032 .total_size = 16384,
10033 .page_size = 256,
10034 /* supports SFDP */
10035 /* OTP: 64B total; read 0x4B, write 0x42 */
10036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10037 .tested = TEST_OK_PREW,
10038 .probe = probe_spi_rdid,
10039 .probe_timing = TIMING_ZERO,
10040 .block_erasers = {
10041 {
10042 .eraseblocks = { {4 * 1024, 4096 } },
10043 .block_erase = spi_block_erase_20,
10044 }, {
10045 .eraseblocks = { {64 * 1024, 256} },
10046 .block_erase = spi_block_erase_d8,
10047 }, {
10048 .eraseblocks = { {16384 * 1024, 1} },
10049 .block_erase = spi_block_erase_c7,
10050 }
10051 },
10052 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10053 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10054 .write = spi_chip_write_256, /* Multi I/O supported */
10055 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10056 .voltage = {2700, 3600},
10057 },
10058
10059 {
Ed Swierk199ab392017-07-03 13:33:44 -070010060 .vendor = "Micron",
10061 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10062 .bustype = BUS_SPI,
10063 .manufacture_id = ST_ID,
10064 .model_id = ST_N25Q256__3E,
10065 .total_size = 32768,
10066 .page_size = 256,
10067 /* supports SFDP */
10068 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10070 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010071 .probe = probe_spi_rdid,
10072 .probe_timing = TIMING_ZERO,
10073 .block_erasers = {
10074 {
10075 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010076 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010077 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010078 .eraseblocks = { {4 * 1024, 8192} },
10079 .block_erase = spi_block_erase_20,
10080 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010081 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010082 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010083 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010084 .eraseblocks = { {64 * 1024, 512} },
10085 .block_erase = spi_block_erase_d8,
10086 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010087 .eraseblocks = { {32768 * 1024, 1} },
10088 .block_erase = spi_block_erase_c7,
10089 }
10090 },
10091 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10092 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10093 .write = spi_chip_write_256, /* Multi I/O supported */
10094 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10095 .voltage = {2700, 3600},
10096 },
10097
10098 {
10099 .vendor = "Micron",
10100 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10101 .bustype = BUS_SPI,
10102 .manufacture_id = ST_ID,
10103 .model_id = ST_N25Q512__3E,
10104 .total_size = 65536,
10105 .page_size = 256,
10106 /* supports SFDP */
10107 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10109 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010110 .probe = probe_spi_rdid,
10111 .probe_timing = TIMING_ZERO,
10112 .block_erasers = {
10113 {
10114 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010115 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010116 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010117 .eraseblocks = { {4 * 1024, 16384} },
10118 .block_erase = spi_block_erase_20,
10119 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010120 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010121 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010122 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010123 .eraseblocks = { {64 * 1024, 1024} },
10124 .block_erase = spi_block_erase_d8,
10125 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010126 .eraseblocks = { {65536 * 1024, 1} },
10127 .block_erase = spi_block_erase_c7,
10128 }
10129 },
10130 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10131 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10132 .write = spi_chip_write_256, /* Multi I/O supported */
10133 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10134 .voltage = {2700, 3600},
10135 },
10136
10137 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010138 .vendor = "MoselVitelic",
10139 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010140 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010141 .manufacture_id = SYNCMOS_MVC_ID,
10142 .model_id = MVC_V29C51000B,
10143 .total_size = 64,
10144 .page_size = 512,
10145 .feature_bits = FEATURE_EITHER_RESET,
10146 .tested = TEST_UNTESTED,
10147 .probe = probe_jedec,
10148 .probe_timing = TIMING_ZERO,
10149 .block_erasers =
10150 {
10151 {
10152 .eraseblocks = { {512, 128} },
10153 .block_erase = erase_sector_jedec,
10154 }, {
10155 .eraseblocks = { {64 * 1024, 1} },
10156 .block_erase = erase_chip_block_jedec,
10157 },
10158 },
10159 .write = write_jedec_1,
10160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010161 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010162 },
10163
10164 {
10165 .vendor = "MoselVitelic",
10166 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010167 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010168 .manufacture_id = SYNCMOS_MVC_ID,
10169 .model_id = MVC_V29C51000T,
10170 .total_size = 64,
10171 .page_size = 512,
10172 .feature_bits = FEATURE_EITHER_RESET,
10173 .tested = TEST_UNTESTED,
10174 .probe = probe_jedec,
10175 .probe_timing = TIMING_ZERO,
10176 .block_erasers =
10177 {
10178 {
10179 .eraseblocks = { {512, 128} },
10180 .block_erase = erase_sector_jedec,
10181 }, {
10182 .eraseblocks = { {64 * 1024, 1} },
10183 .block_erase = erase_chip_block_jedec,
10184 },
10185 },
10186 .write = write_jedec_1,
10187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010188 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010189 },
10190
10191 {
10192 .vendor = "MoselVitelic",
10193 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010194 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010195 .manufacture_id = SYNCMOS_MVC_ID,
10196 .model_id = MVC_V29C51400B,
10197 .total_size = 512,
10198 .page_size = 1024,
10199 .feature_bits = FEATURE_EITHER_RESET,
10200 .tested = TEST_UNTESTED,
10201 .probe = probe_jedec,
10202 .probe_timing = TIMING_ZERO,
10203 .block_erasers =
10204 {
10205 {
10206 .eraseblocks = { {1024, 512} },
10207 .block_erase = erase_sector_jedec,
10208 }, {
10209 .eraseblocks = { {512 * 1024, 1} },
10210 .block_erase = erase_chip_block_jedec,
10211 },
10212 },
10213 .write = write_jedec_1,
10214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010215 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010216 },
10217
10218 {
10219 .vendor = "MoselVitelic",
10220 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010221 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010222 .manufacture_id = SYNCMOS_MVC_ID,
10223 .model_id = MVC_V29C51400T,
10224 .total_size = 512,
10225 .page_size = 1024,
10226 .feature_bits = FEATURE_EITHER_RESET,
10227 .tested = TEST_UNTESTED,
10228 .probe = probe_jedec,
10229 .probe_timing = TIMING_ZERO,
10230 .block_erasers =
10231 {
10232 {
10233 .eraseblocks = { {1024, 512} },
10234 .block_erase = erase_sector_jedec,
10235 }, {
10236 .eraseblocks = { {512 * 1024, 1} },
10237 .block_erase = erase_chip_block_jedec,
10238 },
10239 },
10240 .write = write_jedec_1,
10241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010242 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010243 },
10244
10245 {
10246 .vendor = "MoselVitelic",
10247 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010248 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010249 .manufacture_id = SYNCMOS_MVC_ID,
10250 .model_id = MVC_V29LC51000,
10251 .total_size = 64,
10252 .page_size = 512,
10253 .feature_bits = FEATURE_EITHER_RESET,
10254 .tested = TEST_UNTESTED,
10255 .probe = probe_jedec,
10256 .probe_timing = TIMING_ZERO,
10257 .block_erasers =
10258 {
10259 {
10260 .eraseblocks = { {512, 128} },
10261 .block_erase = erase_sector_jedec,
10262 }, {
10263 .eraseblocks = { {64 * 1024, 1} },
10264 .block_erase = erase_chip_block_jedec,
10265 },
10266 },
10267 .write = write_jedec_1,
10268 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010269 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010270 },
10271
10272 {
10273 .vendor = "MoselVitelic",
10274 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010275 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010276 .manufacture_id = SYNCMOS_MVC_ID,
10277 .model_id = MVC_V29LC51001,
10278 .total_size = 128,
10279 .page_size = 512,
10280 .feature_bits = FEATURE_EITHER_RESET,
10281 .tested = TEST_UNTESTED,
10282 .probe = probe_jedec,
10283 .probe_timing = TIMING_ZERO,
10284 .block_erasers =
10285 {
10286 {
10287 .eraseblocks = { {512, 256} },
10288 .block_erase = erase_sector_jedec,
10289 }, {
10290 .eraseblocks = { {128 * 1024, 1} },
10291 .block_erase = erase_chip_block_jedec,
10292 },
10293 },
10294 .write = write_jedec_1,
10295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010296 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010297 },
10298
10299 {
10300 .vendor = "MoselVitelic",
10301 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010302 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010303 .manufacture_id = SYNCMOS_MVC_ID,
10304 .model_id = MVC_V29LC51002,
10305 .total_size = 256,
10306 .page_size = 512,
10307 .feature_bits = FEATURE_EITHER_RESET,
10308 .tested = TEST_UNTESTED,
10309 .probe = probe_jedec,
10310 .probe_timing = TIMING_ZERO,
10311 .block_erasers =
10312 {
10313 {
10314 .eraseblocks = { {512, 512} },
10315 .block_erase = erase_sector_jedec,
10316 }, {
10317 .eraseblocks = { {256 * 1024, 1} },
10318 .block_erase = erase_chip_block_jedec,
10319 },
10320 },
10321 .write = write_jedec_1,
10322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010323 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010324 },
10325
10326 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010327 .vendor = "Nantronics",
10328 .name = "N25S10",
10329 .bustype = BUS_SPI,
10330 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10331 .model_id = NANTRONICS_N25S10,
10332 .total_size = 128,
10333 .page_size = 256,
10334 .feature_bits = FEATURE_WRSR_WREN,
10335 .tested = TEST_UNTESTED,
10336 .probe = probe_spi_rdid,
10337 .probe_timing = TIMING_ZERO,
10338 .block_erasers =
10339 {
10340 {
10341 .eraseblocks = { {4 * 1024, 32} },
10342 .block_erase = spi_block_erase_20,
10343 }, {
10344 .eraseblocks = { {4 * 1024, 32} },
10345 .block_erase = spi_block_erase_d7,
10346 }, {
10347 .eraseblocks = { {32 * 1024, 4} },
10348 .block_erase = spi_block_erase_52,
10349 }, {
10350 .eraseblocks = { {64 * 1024, 2} },
10351 .block_erase = spi_block_erase_d8,
10352 }, {
10353 .eraseblocks = { {128 * 1024, 1} },
10354 .block_erase = spi_block_erase_60,
10355 }, {
10356 .eraseblocks = { {128 * 1024, 1} },
10357 .block_erase = spi_block_erase_c7,
10358 }
10359 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010360 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010361 .unlock = spi_disable_blockprotect_bp3_srwd,
10362 .write = spi_chip_write_256,
10363 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10364 .voltage = {2700, 3600},
10365 },
10366
10367 {
10368 .vendor = "Nantronics",
10369 .name = "N25S20",
10370 .bustype = BUS_SPI,
10371 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10372 .model_id = NANTRONICS_N25S20,
10373 .total_size = 256,
10374 .page_size = 256,
10375 .feature_bits = FEATURE_WRSR_WREN,
10376 .tested = TEST_UNTESTED,
10377 .probe = probe_spi_rdid,
10378 .probe_timing = TIMING_ZERO,
10379 .block_erasers =
10380 {
10381 {
10382 .eraseblocks = { {4 * 1024, 64} },
10383 .block_erase = spi_block_erase_20,
10384 }, {
10385 .eraseblocks = { {4 * 1024, 64} },
10386 .block_erase = spi_block_erase_d7,
10387 }, {
10388 .eraseblocks = { {32 * 1024, 8} },
10389 .block_erase = spi_block_erase_52,
10390 }, {
10391 .eraseblocks = { {64 * 1024, 4} },
10392 .block_erase = spi_block_erase_d8,
10393 }, {
10394 .eraseblocks = { {256 * 1024, 1} },
10395 .block_erase = spi_block_erase_60,
10396 }, {
10397 .eraseblocks = { {256 * 1024, 1} },
10398 .block_erase = spi_block_erase_c7,
10399 }
10400 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010401 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010402 .unlock = spi_disable_blockprotect_bp3_srwd,
10403 .write = spi_chip_write_256,
10404 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10405 .voltage = {2700, 3600},
10406 },
10407
10408 {
10409 .vendor = "Nantronics",
10410 .name = "N25S40",
10411 .bustype = BUS_SPI,
10412 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10413 .model_id = NANTRONICS_N25S40,
10414 .total_size = 512,
10415 .page_size = 256,
10416 .feature_bits = FEATURE_WRSR_WREN,
10417 .tested = TEST_UNTESTED,
10418 .probe = probe_spi_rdid,
10419 .probe_timing = TIMING_ZERO,
10420 .block_erasers =
10421 {
10422 {
10423 .eraseblocks = { {4 * 1024, 128} },
10424 .block_erase = spi_block_erase_20,
10425 }, {
10426 .eraseblocks = { {4 * 1024, 128} },
10427 .block_erase = spi_block_erase_d7,
10428 }, {
10429 .eraseblocks = { {32 * 1024, 16} },
10430 .block_erase = spi_block_erase_52,
10431 }, {
10432 .eraseblocks = { {64 * 1024, 8} },
10433 .block_erase = spi_block_erase_d8,
10434 }, {
10435 .eraseblocks = { {512 * 1024, 1} },
10436 .block_erase = spi_block_erase_60,
10437 }, {
10438 .eraseblocks = { {512 * 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 = "N25S80",
10452 .bustype = BUS_SPI,
10453 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10454 .model_id = NANTRONICS_N25S80,
10455 .total_size = 1024,
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, 256} },
10465 .block_erase = spi_block_erase_20,
10466 }, {
10467 .eraseblocks = { {32 * 1024, 32} },
10468 .block_erase = spi_block_erase_52,
10469 }, {
10470 .eraseblocks = { {64 * 1024, 16} },
10471 .block_erase = spi_block_erase_d8,
10472 }, {
10473 .eraseblocks = { {1024 * 1024, 1} },
10474 .block_erase = spi_block_erase_60,
10475 }, {
10476 .eraseblocks = { {1024 * 1024, 1} },
10477 .block_erase = spi_block_erase_c7,
10478 }
10479 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010480 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010481 .unlock = spi_disable_blockprotect_bp3_srwd,
10482 .write = spi_chip_write_256,
10483 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10484 .voltage = {2700, 3600},
10485 },
10486
10487 {
10488 .vendor = "Nantronics",
10489 .name = "N25S16",
10490 .bustype = BUS_SPI,
10491 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10492 .model_id = NANTRONICS_N25S16,
10493 .total_size = 2048,
10494 .page_size = 256,
10495 .feature_bits = FEATURE_WRSR_WREN,
10496 .tested = TEST_UNTESTED,
10497 .probe = probe_spi_rdid,
10498 .probe_timing = TIMING_ZERO,
10499 .block_erasers =
10500 {
10501 {
10502 .eraseblocks = { {4 * 1024, 512} },
10503 .block_erase = spi_block_erase_20,
10504 }, {
10505 .eraseblocks = { {64 * 1024, 32} },
10506 .block_erase = spi_block_erase_d8,
10507 }, {
10508 .eraseblocks = { {2048 * 1024, 1} },
10509 .block_erase = spi_block_erase_60,
10510 }, {
10511 .eraseblocks = { {2048 * 1024, 1} },
10512 .block_erase = spi_block_erase_c7,
10513 }
10514 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010515 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010516 .unlock = spi_disable_blockprotect_bp3_srwd,
10517 .write = spi_chip_write_256,
10518 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10519 .voltage = {2700, 3600},
10520 },
10521
10522 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010523 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010524 .name = "Pm25LD256C",
10525 .bustype = BUS_SPI,
10526 .manufacture_id = PMC_ID,
10527 .model_id = PMC_PM25LD256C,
10528 .total_size = 32,
10529 .page_size = 256,
10530 .feature_bits = FEATURE_WRSR_WREN,
10531 .tested = TEST_UNTESTED,
10532 .probe = probe_spi_rdid,
10533 .probe_timing = TIMING_ZERO,
10534 .block_erasers =
10535 {
10536 {
10537 .eraseblocks = { {4 * 1024, 8} },
10538 .block_erase = spi_block_erase_20,
10539 }, {
10540 .eraseblocks = { {4 * 1024, 8} },
10541 .block_erase = spi_block_erase_d7,
10542 }, {
10543 .eraseblocks = { {32 * 1024, 1} },
10544 .block_erase = spi_block_erase_d8,
10545 }, {
10546 .eraseblocks = { {32 * 1024, 1} },
10547 .block_erase = spi_block_erase_60,
10548 }, {
10549 .eraseblocks = { {32 * 1024, 1} },
10550 .block_erase = spi_block_erase_c7,
10551 }
10552 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010553 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010554 .unlock = spi_disable_blockprotect,
10555 .write = spi_chip_write_256,
10556 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10557 .voltage = {2700, 3600},
10558 },
10559 {
10560 .vendor = "PMC",
10561 .name = "Pm25LD512(C)",
10562 .bustype = BUS_SPI,
10563 .manufacture_id = PMC_ID,
10564 .model_id = PMC_PM25LD512,
10565 .total_size = 64,
10566 .page_size = 256,
10567 .feature_bits = FEATURE_WRSR_WREN,
10568 .tested = TEST_OK_PREW,
10569 .probe = probe_spi_rdid,
10570 .probe_timing = TIMING_ZERO,
10571 .block_erasers =
10572 {
10573 {
10574 .eraseblocks = { {4 * 1024, 16} },
10575 .block_erase = spi_block_erase_20,
10576 }, {
10577 .eraseblocks = { {4 * 1024, 16} },
10578 .block_erase = spi_block_erase_d7,
10579 }, {
10580 .eraseblocks = { {32 * 1024, 2} },
10581 .block_erase = spi_block_erase_d8,
10582 }, {
10583 .eraseblocks = { {64 * 1024, 1} },
10584 .block_erase = spi_block_erase_60,
10585 }, {
10586 .eraseblocks = { {64 * 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 = {2300, 3600},
10595 },
10596
10597 {
10598 .vendor = "PMC",
10599 .name = "Pm25LD010(C)",
10600 .bustype = BUS_SPI,
10601 .manufacture_id = PMC_ID,
10602 .model_id = PMC_PM25LD010,
10603 .total_size = 128,
10604 .page_size = 256,
10605 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010606 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010607 .probe = probe_spi_rdid,
10608 .probe_timing = TIMING_ZERO,
10609 .block_erasers =
10610 {
10611 {
10612 .eraseblocks = { {4 * 1024, 32} },
10613 .block_erase = spi_block_erase_20,
10614 }, {
10615 .eraseblocks = { {4 * 1024, 32} },
10616 .block_erase = spi_block_erase_d7,
10617 }, {
10618 .eraseblocks = { {32 * 1024, 4} },
10619 .block_erase = spi_block_erase_d8,
10620 }, {
10621 .eraseblocks = { {128 * 1024, 1} },
10622 .block_erase = spi_block_erase_60,
10623 }, {
10624 .eraseblocks = { {128 * 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 Pm25LD010 */
10633 },
10634
10635 {
10636 .vendor = "PMC",
10637 .name = "Pm25LD020(C)",
10638 .bustype = BUS_SPI,
10639 .manufacture_id = PMC_ID,
10640 .model_id = PMC_PM25LD020,
10641 .total_size = 256,
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, 64} },
10651 .block_erase = spi_block_erase_20,
10652 }, {
10653 .eraseblocks = { {4 * 1024, 64} },
10654 .block_erase = spi_block_erase_d7,
10655 }, {
10656 .eraseblocks = { {64 * 1024, 4} },
10657 .block_erase = spi_block_erase_d8,
10658 }, {
10659 .eraseblocks = { {256 * 1024, 1} },
10660 .block_erase = spi_block_erase_60,
10661 }, {
10662 .eraseblocks = { {256 * 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, /* FIXME: C version supports "Safe Guard" */
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 Pm25LD020 */
10671 },
10672
10673 {
10674 .vendor = "PMC",
10675 .name = "Pm25LD040(C)",
10676 .bustype = BUS_SPI,
10677 .manufacture_id = PMC_ID,
10678 .model_id = PMC_PM25LV040,
10679 .total_size = 512,
10680 .page_size = 256,
10681 .feature_bits = FEATURE_WRSR_WREN,
10682 .tested = TEST_UNTESTED,
10683 .probe = probe_spi_rdid,
10684 .probe_timing = TIMING_ZERO,
10685 .block_erasers =
10686 {
10687 {
10688 .eraseblocks = { {4 * 1024, 128} },
10689 .block_erase = spi_block_erase_20,
10690 }, {
10691 .eraseblocks = { {4 * 1024, 128} },
10692 .block_erase = spi_block_erase_d7,
10693 }, {
10694 .eraseblocks = { {64 * 1024, 8} },
10695 .block_erase = spi_block_erase_d8,
10696 }, {
10697 .eraseblocks = { {512 * 1024, 1} },
10698 .block_erase = spi_block_erase_60,
10699 }, {
10700 .eraseblocks = { {512 * 1024, 1} },
10701 .block_erase = spi_block_erase_c7,
10702 }
10703 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010704 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010705 .unlock = spi_disable_blockprotect,
10706 .write = spi_chip_write_256,
10707 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10708 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10709 },
10710
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010711 {
10712 .vendor = "PMC",
10713 .name = "Pm25LQ020",
10714 .bustype = BUS_SPI,
10715 .manufacture_id = PMC_ID,
10716 .model_id = PMC_PM25LQ020,
10717 .total_size = 256,
10718 .page_size = 256,
10719 /* OTP: 256B total; read 0x4B, write 0xB1 */
10720 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10721 .tested = TEST_UNTESTED,
10722 .probe = probe_spi_rdid,
10723 .probe_timing = TIMING_ZERO,
10724 .block_erasers =
10725 {
10726 {
10727 .eraseblocks = { {4 * 1024, 64} },
10728 .block_erase = spi_block_erase_20,
10729 }, {
10730 .eraseblocks = { {4 * 1024, 64} },
10731 .block_erase = spi_block_erase_d7,
10732 }, {
10733 .eraseblocks = { {64 * 1024, 4} },
10734 .block_erase = spi_block_erase_d8,
10735 }, {
10736 .eraseblocks = { {256 * 1024, 1} },
10737 .block_erase = spi_block_erase_60,
10738 }, {
10739 .eraseblocks = { {256 * 1024, 1} },
10740 .block_erase = spi_block_erase_c7,
10741 }
10742 },
10743 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10744 .unlock = spi_disable_blockprotect_bp3_srwd,
10745 .write = spi_chip_write_256,
10746 .read = spi_chip_read,
10747 .voltage = {2300, 3600},
10748 },
10749
10750 {
10751 .vendor = "PMC",
10752 .name = "Pm25LQ040",
10753 .bustype = BUS_SPI,
10754 .manufacture_id = PMC_ID,
10755 .model_id = PMC_PM25LQ040,
10756 .total_size = 512,
10757 .page_size = 256,
10758 /* OTP: 256B total; read 0x4B, write 0xB1 */
10759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10760 .tested = TEST_UNTESTED,
10761 .probe = probe_spi_rdid,
10762 .probe_timing = TIMING_ZERO,
10763 .block_erasers =
10764 {
10765 {
10766 .eraseblocks = { {4 * 1024, 128} },
10767 .block_erase = spi_block_erase_20,
10768 }, {
10769 .eraseblocks = { {4 * 1024, 128} },
10770 .block_erase = spi_block_erase_d7,
10771 }, {
10772 .eraseblocks = { {64 * 1024, 8} },
10773 .block_erase = spi_block_erase_d8,
10774 }, {
10775 .eraseblocks = { {512 * 1024, 1} },
10776 .block_erase = spi_block_erase_60,
10777 }, {
10778 .eraseblocks = { {512 * 1024, 1} },
10779 .block_erase = spi_block_erase_c7,
10780 }
10781 },
10782 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10783 .unlock = spi_disable_blockprotect_bp3_srwd,
10784 .write = spi_chip_write_256,
10785 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10786 .voltage = {2300, 3600},
10787 },
10788
10789 {
10790 .vendor = "PMC",
10791 .name = "Pm25LQ080",
10792 .bustype = BUS_SPI,
10793 .manufacture_id = PMC_ID,
10794 .model_id = PMC_PM25LQ080,
10795 .total_size = 1024,
10796 .page_size = 256,
10797 /* OTP: 64B total; read 0x4B, write 0xB1 */
10798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10799 .tested = TEST_UNTESTED,
10800 .probe = probe_spi_rdid,
10801 .probe_timing = TIMING_ZERO,
10802 .block_erasers =
10803 {
10804 {
10805 .eraseblocks = { {4 * 1024, 256} },
10806 .block_erase = spi_block_erase_20,
10807 }, {
10808 .eraseblocks = { {4 * 1024, 256} },
10809 .block_erase = spi_block_erase_d7,
10810 }, {
10811 .eraseblocks = { {64 * 1024, 16} },
10812 .block_erase = spi_block_erase_d8,
10813 }, {
10814 .eraseblocks = { {1024 * 1024, 1} },
10815 .block_erase = spi_block_erase_60,
10816 }, {
10817 .eraseblocks = { {1024 * 1024, 1} },
10818 .block_erase = spi_block_erase_c7,
10819 }
10820 },
10821 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10822 .unlock = spi_disable_blockprotect_bp3_srwd,
10823 .write = spi_chip_write_256,
10824 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10825 .voltage = {2300, 3600},
10826 },
10827
10828 {
10829 .vendor = "PMC",
10830 .name = "Pm25LQ016",
10831 .bustype = BUS_SPI,
10832 .manufacture_id = PMC_ID,
10833 .model_id = PMC_PM25LQ016,
10834 .total_size = 2048,
10835 .page_size = 256,
10836 /* OTP: 256B total; read 0x4B, write 0xB1 */
10837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10838 .tested = TEST_UNTESTED,
10839 .probe = probe_spi_rdid,
10840 .probe_timing = TIMING_ZERO,
10841 .block_erasers =
10842 {
10843 {
10844 .eraseblocks = { {4 * 1024, 512} },
10845 .block_erase = spi_block_erase_20,
10846 }, {
10847 .eraseblocks = { {4 * 1024, 512} },
10848 .block_erase = spi_block_erase_d7,
10849 }, {
10850 .eraseblocks = { {64 * 1024, 32} },
10851 .block_erase = spi_block_erase_d8,
10852 }, {
10853 .eraseblocks = { {2048 * 1024, 1} },
10854 .block_erase = spi_block_erase_60,
10855 }, {
10856 .eraseblocks = { {2048 * 1024, 1} },
10857 .block_erase = spi_block_erase_c7,
10858 }
10859 },
10860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10861 .unlock = spi_disable_blockprotect_bp3_srwd,
10862 .write = spi_chip_write_256,
10863 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10864 .voltage = {2300, 3600},
10865 },
10866
10867 {
10868 .vendor = "PMC",
10869 .name = "Pm25LQ032C",
10870 .bustype = BUS_SPI,
10871 .manufacture_id = PMC_ID,
10872 .model_id = PMC_PM25LQ032C,
10873 .total_size = 4096,
10874 .page_size = 256,
10875 /* OTP: 64B total; read 0x4B, write 0xB1 */
10876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010877 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010878 .probe = probe_spi_rdid,
10879 .probe_timing = TIMING_ZERO,
10880 .block_erasers =
10881 {
10882 {
10883 .eraseblocks = { {4 * 1024, 1024} },
10884 .block_erase = spi_block_erase_20,
10885 }, {
10886 .eraseblocks = { {4 * 1024, 1024} },
10887 .block_erase = spi_block_erase_d7,
10888 }, {
10889 .eraseblocks = { {64 * 1024, 64} },
10890 .block_erase = spi_block_erase_d8,
10891 }, {
10892 .eraseblocks = { {4096 * 1024, 1} },
10893 .block_erase = spi_block_erase_60,
10894 }, {
10895 .eraseblocks = { {4096 * 1024, 1} },
10896 .block_erase = spi_block_erase_c7,
10897 }
10898 },
10899 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10900 .unlock = spi_disable_blockprotect_bp3_srwd,
10901 .write = spi_chip_write_256,
10902 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10903 .voltage = {2700, 3600},
10904 },
10905
10906 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010907 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010908 .name = "Pm25LV512(A)",
10909 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010910 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010911 .model_id = PMC_PM25LV512,
10912 .total_size = 64,
10913 .page_size = 256,
10914 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010915 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010916 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010917 .probe_timing = TIMING_ZERO,
10918 .block_erasers =
10919 {
10920 {
10921 .eraseblocks = { {4 * 1024, 16} },
10922 .block_erase = spi_block_erase_d7,
10923 }, {
10924 .eraseblocks = { {32 * 1024, 2} },
10925 .block_erase = spi_block_erase_d8,
10926 }, {
10927 .eraseblocks = { {64 * 1024, 1} },
10928 .block_erase = spi_block_erase_c7,
10929 }
10930 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010931 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010932 .unlock = spi_disable_blockprotect,
10933 .write = spi_chip_write_256,
10934 .read = spi_chip_read, /* Fast read (0x0B) supported */
10935 .voltage = {2700, 3600},
10936 },
10937
10938 {
10939 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010940 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010941 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010942 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010943 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010944 .total_size = 128,
10945 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010946 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010947 .tested = TEST_OK_PREW,
10948 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010949 .probe_timing = TIMING_ZERO,
10950 .block_erasers =
10951 {
10952 {
10953 .eraseblocks = { {4 * 1024, 32} },
10954 .block_erase = spi_block_erase_d7,
10955 }, {
10956 .eraseblocks = { {32 * 1024, 4} },
10957 .block_erase = spi_block_erase_d8,
10958 }, {
10959 .eraseblocks = { {128 * 1024, 1} },
10960 .block_erase = spi_block_erase_c7,
10961 }
10962 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010963 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010964 .unlock = spi_disable_blockprotect,
10965 .write = spi_chip_write_256,
10966 .read = spi_chip_read, /* Fast read (0x0B) supported */
10967 .voltage = {2700, 3600},
10968 },
10969
10970 {
10971 .vendor = "PMC",
10972 .name = "Pm25LV010A",
10973 .bustype = BUS_SPI,
10974 .manufacture_id = PMC_ID,
10975 .model_id = PMC_PM25LV010,
10976 .total_size = 128,
10977 .page_size = 256,
10978 .feature_bits = FEATURE_WRSR_WREN,
10979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010981 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010982 .block_erasers =
10983 {
10984 {
10985 .eraseblocks = { {4 * 1024, 32} },
10986 .block_erase = spi_block_erase_d7,
10987 }, {
10988 .eraseblocks = { {32 * 1024, 4} },
10989 .block_erase = spi_block_erase_d8,
10990 }, {
10991 .eraseblocks = { {128 * 1024, 1} },
10992 .block_erase = spi_block_erase_c7,
10993 }
10994 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010995 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010996 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010997 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010998 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011000 },
11001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011002 {
11003 .vendor = "PMC",
11004 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011005 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011006 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011007 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011008 .total_size = 256,
11009 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011010 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011011 .tested = TEST_UNTESTED,
11012 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011013 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011014 .block_erasers =
11015 {
11016 {
11017 .eraseblocks = { {4 * 1024, 64} },
11018 .block_erase = spi_block_erase_d7,
11019 }, {
11020 .eraseblocks = { {64 * 1024, 4} },
11021 .block_erase = spi_block_erase_d8,
11022 }, {
11023 .eraseblocks = { {256 * 1024, 1} },
11024 .block_erase = spi_block_erase_c7,
11025 }
11026 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011027 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011028 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011029 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011031 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011032 },
11033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011034 {
11035 .vendor = "PMC",
11036 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011037 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011038 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011039 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011040 .total_size = 512,
11041 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011042 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011043 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011044 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011045 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011046 .block_erasers =
11047 {
11048 {
11049 .eraseblocks = { {4 * 1024, 128} },
11050 .block_erase = spi_block_erase_d7,
11051 }, {
11052 .eraseblocks = { {64 * 1024, 8} },
11053 .block_erase = spi_block_erase_d8,
11054 }, {
11055 .eraseblocks = { {512 * 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",
11068 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011069 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011070 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011071 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011072 .total_size = 1024,
11073 .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 {
11081 .eraseblocks = { {4 * 1024, 256} },
11082 .block_erase = spi_block_erase_d7,
11083 }, {
11084 .eraseblocks = { {4 * 1024, 256} },
11085 .block_erase = spi_block_erase_20,
11086 }, {
11087 .eraseblocks = { {64 * 1024, 16} },
11088 .block_erase = spi_block_erase_d8,
11089 }, {
11090 .eraseblocks = { {1024 * 1024, 1} },
11091 .block_erase = spi_block_erase_60,
11092 }, {
11093 .eraseblocks = { {1024 * 1024, 1} },
11094 .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 Zakuleccbe370e2011-06-03 07:26:31 +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",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011106 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011107 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011108 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011109 .model_id = PMC_PM25LV016B,
11110 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011111 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011112 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011113 .tested = TEST_UNTESTED,
11114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011115 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011116 .block_erasers =
11117 {
11118 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011119 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000011120 .block_erase = spi_block_erase_d7,
11121 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011122 .eraseblocks = { {4 * 1024, 512} },
11123 .block_erase = spi_block_erase_20,
11124 }, {
11125 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000011126 .block_erase = spi_block_erase_d8,
11127 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011128 .eraseblocks = { {2 * 1024 * 1024, 1} },
11129 .block_erase = spi_block_erase_60,
11130 }, {
11131 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011132 .block_erase = spi_block_erase_c7,
11133 }
11134 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011135 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011136 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011137 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011138 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011139 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011140 },
11141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011142 {
11143 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011144 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011145 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011146 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011147 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011148 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011149 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011150 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011151 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011152 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011153 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011154 .block_erasers =
11155 {
11156 {
11157 .eraseblocks = {
11158 {128 * 1024, 1},
11159 {96 * 1024, 1},
11160 {8 * 1024, 2},
11161 {16 * 1024, 1},
11162 },
Sean Nelson35727f72010-01-28 23:55:12 +000011163 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011164 }, {
11165 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011166 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011167 },
11168 },
Sean Nelson35727f72010-01-28 23:55:12 +000011169 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011171 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011172 },
11173
11174 {
11175 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011176 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011177 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011178 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011179 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011180 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011181 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011183 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011184 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011185 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011186 .block_erasers =
11187 {
11188 {
11189 .eraseblocks = {
11190 {16 * 1024, 1},
11191 {8 * 1024, 2},
11192 {96 * 1024, 1},
11193 {128 * 1024, 1},
11194 },
Sean Nelson35727f72010-01-28 23:55:12 +000011195 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011196 }, {
11197 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011198 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011199 },
11200 },
Sean Nelson35727f72010-01-28 23:55:12 +000011201 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011203 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011204 },
11205
11206 {
11207 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011208 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011209 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011210 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011211 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011212 .total_size = 128,
11213 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011214 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011215 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011216 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011217 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011218 .block_erasers =
11219 {
11220 {
11221 .eraseblocks = { {4 * 1024, 32} },
11222 .block_erase = erase_sector_jedec,
11223 }, {
11224 .eraseblocks = { {64 * 1024, 2} },
11225 .block_erase = erase_block_jedec,
11226 }, {
11227 .eraseblocks = { {128 * 1024, 1} },
11228 .block_erase = erase_chip_block_jedec,
11229 }
11230 },
Sean Nelson35727f72010-01-28 23:55:12 +000011231 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011233 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011234 },
11235
11236 {
11237 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011238 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011239 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011240 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011241 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011242 .total_size = 256,
11243 .page_size = 4096,
11244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11245 .tested = TEST_UNTESTED,
11246 .probe = probe_jedec,
11247 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11248 .block_erasers =
11249 {
11250 {
11251 .eraseblocks = { {4 * 1024, 64} },
11252 .block_erase = erase_sector_jedec,
11253 }, {
11254 .eraseblocks = { {64 * 1024, 4} },
11255 .block_erase = erase_block_jedec,
11256 }, {
11257 .eraseblocks = { {256 * 1024, 1} },
11258 .block_erase = erase_chip_block_jedec,
11259 }
11260 },
11261 .write = write_jedec_1,
11262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011263 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011264 },
11265
11266 {
11267 .vendor = "PMC",
11268 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011269 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011270 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011271 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011272 .total_size = 512,
11273 .page_size = 4096,
11274 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011275 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011276 .probe = probe_jedec,
11277 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11278 .block_erasers =
11279 {
11280 {
11281 .eraseblocks = { {4 * 1024, 128} },
11282 .block_erase = erase_sector_jedec,
11283 }, {
11284 .eraseblocks = { {64 * 1024, 8} },
11285 .block_erase = erase_block_jedec,
11286 }, {
11287 .eraseblocks = { {512 * 1024, 1} },
11288 .block_erase = erase_chip_block_jedec,
11289 }
11290 },
11291 .write = write_jedec_1,
11292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011293 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011294 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011295
11296 {
11297 .vendor = "PMC",
11298 .name = "Pm39LV512",
11299 .bustype = BUS_PARALLEL,
11300 .manufacture_id = PMC_ID_NOPREFIX,
11301 .model_id = PMC_PM39LV512,
11302 .total_size = 64,
11303 .page_size = 4096,
11304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11305 .tested = TEST_OK_PREW,
11306 .probe = probe_jedec,
11307 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11308 .block_erasers =
11309 {
11310 {
11311 .eraseblocks = { {4 * 1024, 16} },
11312 .block_erase = erase_sector_jedec,
11313 }, {
11314 .eraseblocks = { {64 * 1024, 1} },
11315 .block_erase = erase_block_jedec,
11316 }, {
11317 .eraseblocks = { {64 * 1024, 1} },
11318 .block_erase = erase_chip_block_jedec,
11319 }
11320 },
11321 .write = write_jedec_1,
11322 .read = read_memmapped,
11323 .voltage = {2700, 3600},
11324 },
11325
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011326 {
11327 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011328 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011329 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011330 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011331 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011332 .total_size = 256,
11333 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011334 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011335 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011336 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011337 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011338 .block_erasers =
11339 {
11340 {
11341 .eraseblocks = { {4 * 1024, 64} },
11342 .block_erase = erase_sector_jedec,
11343 }, {
11344 .eraseblocks = { {16 * 1024, 16} },
11345 .block_erase = erase_block_jedec,
11346 }, {
11347 .eraseblocks = { {256 * 1024, 1} },
11348 .block_erase = erase_chip_block_jedec,
11349 }
11350 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011351 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011352 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011353 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011354 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011355 },
11356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011357 {
11358 .vendor = "PMC",
11359 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011360 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011361 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011362 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011363 .total_size = 512,
11364 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011365 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011366 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011367 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011368 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011369 .block_erasers =
11370 {
11371 {
11372 .eraseblocks = { {4 * 1024, 128} },
11373 .block_erase = erase_sector_jedec,
11374 }, {
11375 .eraseblocks = { {64 * 1024, 8} },
11376 .block_erase = erase_block_jedec,
11377 }, {
11378 .eraseblocks = { {512 * 1024, 1} },
11379 .block_erase = erase_chip_block_jedec,
11380 }
11381 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011382 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011383 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011385 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011386 },
11387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011388 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011389 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011390 .name = "LE25FW106",
11391 .bustype = BUS_SPI,
11392 .manufacture_id = SANYO_ID,
11393 .model_id = SANYO_LE25FW106,
11394 .total_size = 128,
11395 .page_size = 256,
11396 .feature_bits = FEATURE_WRSR_WREN,
11397 .tested = TEST_OK_PREW,
11398 .probe = probe_spi_res2,
11399 .probe_timing = TIMING_ZERO,
11400 .block_erasers = {
11401 {
11402 .eraseblocks = { {2 * 1024, 64} },
11403 .block_erase = spi_block_erase_d7,
11404 }, {
11405 .eraseblocks = { {32 * 1024, 4} },
11406 .block_erase = spi_block_erase_d8,
11407 }, {
11408 .eraseblocks = { {128 * 1024, 1} },
11409 .block_erase = spi_block_erase_c7,
11410 }
11411 },
11412 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11413 .unlock = spi_disable_blockprotect_bp1_srwd,
11414 .write = spi_chip_write_256,
11415 .read = spi_chip_read,
11416 .voltage = {2700, 3600},
11417 },
11418
11419 {
11420 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011421 .name = "LE25FW406A",
11422 .bustype = BUS_SPI,
11423 .manufacture_id = SANYO_ID,
11424 .model_id = SANYO_LE25FW406A,
11425 .total_size = 512,
11426 .page_size = 256,
11427 .feature_bits = FEATURE_WRSR_WREN,
11428 .tested = TEST_OK_PREW,
11429 .probe = probe_spi_res2,
11430 .probe_timing = TIMING_ZERO,
11431 .block_erasers = {
11432 {
11433 .eraseblocks = { {4 * 1024, 128} },
11434 .block_erase = spi_block_erase_d7,
11435 }, {
11436 .eraseblocks = { {64 * 1024, 8} },
11437 .block_erase = spi_block_erase_d8,
11438 }, {
11439 .eraseblocks = { {512 * 1024, 1} },
11440 .block_erase = spi_block_erase_c7,
11441 }
11442 },
11443 .printlock = spi_prettyprint_status_register_plain,
11444 .unlock = spi_disable_blockprotect,
11445 .write = spi_chip_write_256,
11446 .read = spi_chip_read,
11447 .voltage = {2700, 3600},
11448 },
11449
11450 {
11451 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011452 .name = "LE25FU406B",
11453 .bustype = BUS_SPI,
11454 .manufacture_id = SANYO_ID,
11455 .model_id = SANYO_LE25FU406B,
11456 .total_size = 512,
11457 .page_size = 256,
11458 .feature_bits = FEATURE_WRSR_WREN,
11459 .tested = TEST_OK_PREW,
11460 .probe = probe_spi_res2,
11461 .probe_timing = TIMING_ZERO,
11462 .block_erasers = {
11463 {
11464 .eraseblocks = { {4 * 1024, 128} },
11465 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011466 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011467 .eraseblocks = { {64 * 1024, 8} },
11468 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011469 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011470 .eraseblocks = { {512 * 1024, 1} },
11471 .block_erase = spi_block_erase_c7,
11472 }
11473 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011474 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011475 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11476 .write = spi_chip_write_256,
11477 .read = spi_chip_read,
11478 .voltage = {2300, 3600},
11479 },
11480
11481 {
11482 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011483 .name = "LE25FU406C/LE25U40CMC",
11484 .bustype = BUS_SPI,
11485 .manufacture_id = SANYO_ID,
11486 .model_id = SANYO_LE25FU406C,
11487 .total_size = 512,
11488 .page_size = 256,
11489 .feature_bits = FEATURE_WRSR_WREN,
11490 .tested = TEST_OK_PR,
11491 .probe = probe_spi_rdid,
11492 .probe_timing = TIMING_ZERO,
11493 .block_erasers = {
11494 {
11495 .eraseblocks = { {4 * 1024, 128} },
11496 .block_erase = spi_block_erase_20,
11497 }, {
11498 .eraseblocks = { {4 * 1024, 128} },
11499 .block_erase = spi_block_erase_d7,
11500 }, {
11501 .eraseblocks = { {64 * 1024, 8} },
11502 .block_erase = spi_block_erase_d8,
11503 }, {
11504 .eraseblocks = { {512 * 1024, 1} },
11505 .block_erase = spi_block_erase_60,
11506 }, {
11507 .eraseblocks = { {512 * 1024, 1} },
11508 .block_erase = spi_block_erase_c7,
11509 }
11510 },
11511 .printlock = spi_prettyprint_status_register_bp2_srwd,
11512 .unlock = spi_disable_blockprotect_bp2_srwd,
11513 .write = spi_chip_write_256,
11514 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11515 .voltage = {2300, 3600},
11516 },
11517
11518 {
11519 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011520 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011521 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011522 .manufacture_id = SANYO_ID,
11523 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011524 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011525 .page_size = 256,
11526 .tested = TEST_UNTESTED,
11527 .probe = probe_spi_rdid,
11528 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011529 .block_erasers =
11530 {
11531 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011532 .eraseblocks = { {256, 1024} },
11533 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011534 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011535 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011536 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011537 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011538 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011539 .block_erase = spi_block_erase_c7,
11540 }
11541 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011542 .printlock = spi_prettyprint_status_register_default_welwip,
11543 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011544 .write = spi_chip_write_256,
11545 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011546 .voltage = {2700, 3600},
11547 },
11548
11549 {
11550 .vendor = "Sanyo",
11551 .name = "LE25FW403A",
11552 .bustype = BUS_SPI,
11553 .manufacture_id = SANYO_ID,
11554 .model_id = SANYO_LE25FW403A,
11555 .total_size = 512,
11556 .page_size = 256,
11557 .tested = TEST_UNTESTED,
11558 .probe = probe_spi_rdid,
11559 .probe_timing = TIMING_ZERO,
11560 .block_erasers = {
11561 {
11562 .eraseblocks = { {256, 2 * 1024} },
11563 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011564 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011565 .eraseblocks = { {64 * 1024, 8} },
11566 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011567 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011568 .eraseblocks = { {512 * 1024, 1} },
11569 .block_erase = spi_block_erase_c7,
11570 }
11571 },
11572 .printlock = spi_prettyprint_status_register_default_welwip,
11573 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11574 .write = spi_chip_write_256,
11575 .read = spi_chip_read,
11576 .voltage = {2700, 3600},
11577 },
11578
11579 {
11580 .vendor = "Sanyo",
11581 .name = "LE25FW418A",
11582 .bustype = BUS_SPI,
11583 .manufacture_id = SANYO_ID,
11584 .model_id = SANYO_LE25FW418A,
11585 .total_size = 512,
11586 .page_size = 256,
11587 .feature_bits = FEATURE_WRSR_WREN,
11588 .tested = TEST_UNTESTED,
11589 .probe = probe_spi_res2,
11590 .probe_timing = TIMING_ZERO,
11591 .block_erasers = {
11592 {
11593 .eraseblocks = { {4 * 1024, 128} },
11594 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011595 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011596 .eraseblocks = { {64 * 1024, 8} },
11597 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011598 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011599 .eraseblocks = { {512 * 1024, 1} },
11600 .block_erase = spi_block_erase_c7,
11601 }
11602 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011603 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011604 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11605 .write = spi_chip_write_256,
11606 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11607 .voltage = {2700, 3600},
11608 },
11609
11610 {
11611 .vendor = "Sanyo",
11612 .name = "LE25FW806",
11613 .bustype = BUS_SPI,
11614 .manufacture_id = SANYO_ID,
11615 .model_id = SANYO_LE25FW806,
11616 .total_size = 1024,
11617 .page_size = 256,
11618 .feature_bits = FEATURE_WRSR_WREN,
11619 .tested = TEST_UNTESTED,
11620 .probe = probe_spi_res2,
11621 .probe_timing = TIMING_ZERO,
11622 .block_erasers = {
11623 {
11624 .eraseblocks = { {4 * 1024, 256} },
11625 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011626 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011627 .eraseblocks = { {4 * 1024, 256} },
11628 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011629 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011630 .eraseblocks = { {64 * 1024, 16} },
11631 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011632 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011633 .eraseblocks = { {1024 * 1024, 1} },
11634 .block_erase = spi_block_erase_c7,
11635 }
11636 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011637 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011638 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11639 .write = spi_chip_write_256,
11640 .read = spi_chip_read,
11641 .voltage = {2700, 3600},
11642 },
11643
11644 {
11645 .vendor = "Sanyo",
11646 .name = "LE25FW808",
11647 .bustype = BUS_SPI,
11648 .manufacture_id = SANYO_ID,
11649 .model_id = SANYO_LE25FW808,
11650 .total_size = 1024,
11651 .page_size = 256,
11652 .feature_bits = FEATURE_WRSR_WREN,
11653 .tested = TEST_UNTESTED,
11654 .probe = probe_spi_res2,
11655 .probe_timing = TIMING_ZERO,
11656 .block_erasers = {
11657 {
11658 .eraseblocks = { {8 * 1024, 128} },
11659 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011660 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011661 .eraseblocks = { {64 * 1024, 16} },
11662 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011663 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011664 .eraseblocks = { {1024 * 1024, 1} },
11665 .block_erase = spi_block_erase_c7,
11666 }
11667 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011668 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011669 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11670 .write = spi_chip_write_256,
11671 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11672 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011673 },
11674
11675 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011676 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011677 .name = "LH28F008BJT-BTLZ1",
11678 .bustype = BUS_PARALLEL,
11679 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011680 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011681 .total_size = 1024,
11682 .page_size = 64 * 1024,
11683 .tested = TEST_OK_PREW,
11684 .probe = probe_82802ab,
11685 .probe_timing = TIMING_ZERO,
11686 .block_erasers =
11687 {
11688 {
11689 .eraseblocks = {
11690 {8 * 1024, 8},
11691 {64 * 1024, 15}
11692 },
11693 .block_erase = erase_block_82802ab,
11694 }, {
11695 .eraseblocks = { {1024 * 1024, 1} },
11696 .block_erase = erase_sector_49lfxxxc,
11697 }
11698 },
11699 .unlock = unlock_lh28f008bjt,
11700 .write = write_82802ab,
11701 .read = read_memmapped,
11702 .voltage = {2700, 3600},
11703 },
11704
11705 {
11706 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011707 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011708 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011709 .manufacture_id = SHARP_ID,
11710 .model_id = SHARP_LHF00L04,
11711 .total_size = 1024,
11712 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011713 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011714 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011715 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011716 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011717 .block_erasers =
11718 {
11719 {
11720 .eraseblocks = {
11721 {64 * 1024, 15},
11722 {8 * 1024, 8}
11723 },
Sean Nelson28accc22010-03-19 18:47:06 +000011724 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011725 }, {
11726 .eraseblocks = {
11727 {1024 * 1024, 1}
11728 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011729 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011730 },
11731 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011732 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011733 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011734 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011735 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011736 },
11737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011738 {
11739 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011740 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011741 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011742 .manufacture_id = SPANSION_ID,
11743 .model_id = SPANSION_S25FL004A,
11744 .total_size = 512,
11745 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011746 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011747 .tested = TEST_UNTESTED,
11748 .probe = probe_spi_rdid,
11749 .probe_timing = TIMING_ZERO,
11750 .block_erasers =
11751 {
11752 {
11753 .eraseblocks = { {64 * 1024, 8} },
11754 .block_erase = spi_block_erase_d8,
11755 }, {
11756 .eraseblocks = { {512 * 1024, 1} },
11757 .block_erase = spi_block_erase_c7,
11758 }
11759 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011760 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011761 .unlock = spi_disable_blockprotect,
11762 .write = spi_chip_write_256,
11763 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011764 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011765 },
11766
11767 {
11768 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011769 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011770 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011771 .manufacture_id = SPANSION_ID,
11772 .model_id = SPANSION_S25FL008A,
11773 .total_size = 1024,
11774 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011775 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011776 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011777 .probe = probe_spi_rdid,
11778 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011779 .block_erasers =
11780 {
11781 {
11782 .eraseblocks = { {64 * 1024, 16} },
11783 .block_erase = spi_block_erase_d8,
11784 }, {
11785 .eraseblocks = { {1024 * 1024, 1} },
11786 .block_erase = spi_block_erase_c7,
11787 }
11788 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011789 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011790 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011791 .write = spi_chip_write_256,
11792 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011793 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011794 },
11795
11796 {
11797 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011798 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011799 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011800 .manufacture_id = SPANSION_ID,
11801 .model_id = SPANSION_S25FL016A,
11802 .total_size = 2048,
11803 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011804 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011805 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011806 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011807 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011808 .block_erasers =
11809 {
11810 {
11811 .eraseblocks = { {64 * 1024, 32} },
11812 .block_erase = spi_block_erase_d8,
11813 }, {
11814 .eraseblocks = { {2 * 1024 * 1024, 1} },
11815 .block_erase = spi_block_erase_c7,
11816 }
11817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011820 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011822 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011823 },
11824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011825 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011826 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011827 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011828 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011829 .manufacture_id = SPANSION_ID,
11830 .model_id = SPANSION_S25FL032A,
11831 .total_size = 4096,
11832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011833 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011834 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011835 .probe = probe_spi_rdid,
11836 .probe_timing = TIMING_ZERO,
11837 .block_erasers =
11838 {
11839 {
11840 .eraseblocks = { {64 * 1024, 64} },
11841 .block_erase = spi_block_erase_d8,
11842 }, {
11843 .eraseblocks = { {4 * 1024 * 1024, 1} },
11844 .block_erase = spi_block_erase_c7,
11845 }
11846 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011847 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011848 .unlock = spi_disable_blockprotect,
11849 .write = spi_chip_write_256,
11850 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011851 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011852 },
11853
11854 {
11855 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011856 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011857 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011858 .manufacture_id = SPANSION_ID,
11859 .model_id = SPANSION_S25FL064A,
11860 .total_size = 8192,
11861 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011862 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011863 .tested = TEST_OK_PREW,
11864 .probe = probe_spi_rdid,
11865 .probe_timing = TIMING_ZERO,
11866 .block_erasers =
11867 {
11868 {
11869 .eraseblocks = { {64 * 1024, 128} },
11870 .block_erase = spi_block_erase_d8,
11871 }, {
11872 .eraseblocks = { {8 * 1024 * 1024, 1} },
11873 .block_erase = spi_block_erase_c7,
11874 }
11875 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011876 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011877 .unlock = spi_disable_blockprotect,
11878 .write = spi_chip_write_256,
11879 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011880 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011881 },
11882
11883 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011884 .vendor = "Spansion",
11885 .name = "S25FL204K",
11886 .bustype = BUS_SPI,
11887 .manufacture_id = SPANSION_ID,
11888 .model_id = SPANSION_S25FL204,
11889 .total_size = 512,
11890 .page_size = 256,
11891 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011892 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011893 .probe = probe_spi_rdid,
11894 .probe_timing = TIMING_ZERO,
11895 .block_erasers = {
11896 {
11897 .eraseblocks = { {4 * 1024, 128} },
11898 .block_erase = spi_block_erase_20,
11899 }, {
11900 .eraseblocks = { {64 * 1024, 8} },
11901 .block_erase = spi_block_erase_d8,
11902 }, {
11903 .eraseblocks = { { 512 * 1024, 1} },
11904 .block_erase = spi_block_erase_60,
11905 }, {
11906 .eraseblocks = { { 512 * 1024, 1} },
11907 .block_erase = spi_block_erase_c7,
11908 }
11909 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011910 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011911 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011912 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011913 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011914 .voltage = {2700, 3600},
11915 },
11916
11917 {
11918 .vendor = "Spansion",
11919 .name = "S25FL208K",
11920 .bustype = BUS_SPI,
11921 .manufacture_id = SPANSION_ID,
11922 .model_id = SPANSION_S25FL208,
11923 .total_size = 1024,
11924 .page_size = 256,
11925 .feature_bits = FEATURE_WRSR_WREN,
11926 .tested = TEST_UNTESTED,
11927 .probe = probe_spi_rdid,
11928 .probe_timing = TIMING_ZERO,
11929 .block_erasers = {
11930 {
11931 .eraseblocks = { {4 * 1024, 256} },
11932 .block_erase = spi_block_erase_20,
11933 }, {
11934 .eraseblocks = { {64 * 1024, 16} },
11935 .block_erase = spi_block_erase_d8,
11936 }, {
11937 .eraseblocks = { { 1024 * 1024, 1} },
11938 .block_erase = spi_block_erase_60,
11939 }, {
11940 .eraseblocks = { { 1024 * 1024, 1} },
11941 .block_erase = spi_block_erase_c7,
11942 }
11943 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011944 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011945 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011946 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011947 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011948 .voltage = {2700, 3600},
11949 },
11950
11951 {
11952 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011953 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011954 .bustype = BUS_SPI,
11955 .manufacture_id = SPANSION_ID,
11956 .model_id = SPANSION_S25FL216,
11957 .total_size = 2048,
11958 .page_size = 256,
11959 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11960 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11961 .tested = TEST_UNTESTED,
11962 .probe = probe_spi_rdid,
11963 .probe_timing = TIMING_ZERO,
11964 .block_erasers = {
11965 {
11966 .eraseblocks = { {4 * 1024, 512} },
11967 .block_erase = spi_block_erase_20,
11968 }, {
11969 .eraseblocks = { {64 * 1024, 32} },
11970 .block_erase = spi_block_erase_d8,
11971 }, {
11972 .eraseblocks = { { 2048 * 1024, 1} },
11973 .block_erase = spi_block_erase_60,
11974 }, {
11975 .eraseblocks = { { 2048 * 1024, 1} },
11976 .block_erase = spi_block_erase_c7,
11977 }
11978 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011979 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011980 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011981 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011982 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011983 .voltage = {2700, 3600},
11984 },
11985
11986 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011987 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011988 .name = "S25FL132K",
11989 .bustype = BUS_SPI,
11990 .manufacture_id = SPANSION_ID,
11991 .model_id = SPANSION_S25FL132K,
11992 .total_size = 4096,
11993 .page_size = 256,
11994 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11995 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11996 .tested = TEST_UNTESTED,
11997 .probe = probe_spi_rdid,
11998 .probe_timing = TIMING_ZERO,
11999 .block_erasers = {
12000 {
12001 .eraseblocks = { {4 * 1024, 1024} },
12002 .block_erase = spi_block_erase_20,
12003 }, {
12004 .eraseblocks = { {64 * 1024, 64} },
12005 .block_erase = spi_block_erase_d8,
12006 }, {
12007 .eraseblocks = { { 4096 * 1024, 1} },
12008 .block_erase = spi_block_erase_60,
12009 }, {
12010 .eraseblocks = { { 4096 * 1024, 1} },
12011 .block_erase = spi_block_erase_c7,
12012 }
12013 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012014 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012015 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12016 .write = spi_chip_write_256,
12017 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12018 .voltage = {2700, 3600},
12019 },
12020
12021 {
12022 .vendor = "Spansion",
12023 .name = "S25FL164K",
12024 .bustype = BUS_SPI,
12025 .manufacture_id = SPANSION_ID,
12026 .model_id = SPANSION_S25FL164K,
12027 .total_size = 8192,
12028 .page_size = 256,
12029 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12030 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12031 .tested = TEST_OK_PREW,
12032 .probe = probe_spi_rdid,
12033 .probe_timing = TIMING_ZERO,
12034 .block_erasers = {
12035 {
12036 .eraseblocks = { {4 * 1024, 2048} },
12037 .block_erase = spi_block_erase_20,
12038 }, {
12039 .eraseblocks = { {64 * 1024, 128} },
12040 .block_erase = spi_block_erase_d8,
12041 }, {
12042 .eraseblocks = { { 8192 * 1024, 1} },
12043 .block_erase = spi_block_erase_60,
12044 }, {
12045 .eraseblocks = { { 8192 * 1024, 1} },
12046 .block_erase = spi_block_erase_c7,
12047 }
12048 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012049 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012050 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12051 .write = spi_chip_write_256,
12052 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12053 .voltage = {2700, 3600},
12054 },
12055
12056 {
12057 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000012058 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12059 .bustype = BUS_SPI,
12060 .manufacture_id = SPANSION_ID,
12061 .model_id = SPANSION_S25FL128,
12062 .total_size = 16384,
12063 .page_size = 256,
12064 /* supports 4B addressing */
12065 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12067 .tested = TEST_OK_PREW,
12068 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
12069 .probe = probe_spi_rdid,
12070 .probe_timing = TIMING_ZERO,
12071 .block_erasers = {
12072 {
12073 /* This chip supports erasing of 32 so-called "parameter sectors" with
12074 * opcode 0x20 which may be configured to be on top or bottom of the address
12075 * space. Trying to access an address outside these 4kB blocks does have no
12076 * effect on the memory contents, e.g.
12077 .eraseblocks = {
12078 {4 * 1024, 32},
12079 {64 * 1024, 254} // inaccessible
12080 },
12081 .block_erase = spi_block_erase_20,
12082 }, { */
12083 .eraseblocks = { { 64 * 1024, 256} },
12084 .block_erase = spi_block_erase_d8,
12085 }, {
12086 .eraseblocks = { { 16384 * 1024, 1} },
12087 .block_erase = spi_block_erase_60,
12088 }, {
12089 .eraseblocks = { { 16384 * 1024, 1} },
12090 .block_erase = spi_block_erase_c7,
12091 }
12092 },
12093 .printlock = spi_prettyprint_status_register_bp2_srwd,
12094 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12095 .write = spi_chip_write_256, /* Multi I/O supported */
12096 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12097 .voltage = {2700, 3600},
12098 },
12099
12100 {
12101 .vendor = "Spansion",
12102 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
12103 .bustype = BUS_SPI,
12104 .manufacture_id = SPANSION_ID,
12105 .model_id = SPANSION_S25FL128,
12106 .total_size = 16384,
12107 .page_size = 512,
12108 /* supports 4B addressing */
12109 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12110 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12111 .tested = TEST_UNTESTED,
12112 .probe = probe_spi_rdid,
12113 .probe_timing = TIMING_ZERO,
12114 .block_erasers = {
12115 {
12116 .eraseblocks = { {256 * 1024, 64} },
12117 .block_erase = spi_block_erase_d8,
12118 }, {
12119 .eraseblocks = { { 16384 * 1024, 1} },
12120 .block_erase = spi_block_erase_60,
12121 }, {
12122 .eraseblocks = { { 16384 * 1024, 1} },
12123 .block_erase = spi_block_erase_c7,
12124 }
12125 },
12126 .printlock = spi_prettyprint_status_register_bp2_srwd,
12127 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12128 .write = spi_chip_write_256, /* Multi I/O supported */
12129 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12130 .voltage = {2700, 3600},
12131 },
12132
12133 {
12134 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000012135 .name = "S25FL128P......0", /* uniform 64 kB sectors */
12136 .bustype = BUS_SPI,
12137 .manufacture_id = SPANSION_ID,
12138 .model_id = SPANSION_S25FL128,
12139 .total_size = 16384,
12140 .page_size = 256,
12141 .feature_bits = FEATURE_WRSR_WREN,
12142 .tested = TEST_UNTESTED,
12143 .probe = probe_spi_rdid,
12144 .probe_timing = TIMING_ZERO,
12145 .block_erasers = {
12146 {
12147 .eraseblocks = { {64 * 1024, 256} },
12148 .block_erase = spi_block_erase_20,
12149 }, {
12150 .eraseblocks = { {64 * 1024, 256} },
12151 .block_erase = spi_block_erase_d8,
12152 }, {
12153 .eraseblocks = { { 16384 * 1024, 1} },
12154 .block_erase = spi_block_erase_60,
12155 }, {
12156 .eraseblocks = { { 16384 * 1024, 1} },
12157 .block_erase = spi_block_erase_c7,
12158 }
12159 },
12160 .printlock = spi_prettyprint_status_register_bp3_srwd,
12161 .unlock = spi_disable_blockprotect_bp3_srwd,
12162 .write = spi_chip_write_256,
12163 .read = spi_chip_read, /* Fast read (0x0B) supported */
12164 .voltage = {2700, 3600},
12165 },
12166
12167 {
12168 .vendor = "Spansion",
12169 .name = "S25FL128P......1", /* uniform 256kB sectors */
12170 .bustype = BUS_SPI,
12171 .manufacture_id = SPANSION_ID,
12172 .model_id = SPANSION_S25FL128,
12173 .total_size = 16384,
12174 .page_size = 256,
12175 .feature_bits = FEATURE_WRSR_WREN,
12176 .tested = TEST_UNTESTED,
12177 .probe = probe_spi_rdid,
12178 .probe_timing = TIMING_ZERO,
12179 .block_erasers = {
12180 {
12181 .eraseblocks = { {256 * 1024, 64} },
12182 .block_erase = spi_block_erase_d8,
12183 }, {
12184 .eraseblocks = { { 16384 * 1024, 1} },
12185 .block_erase = spi_block_erase_c7,
12186 }
12187 },
12188 .printlock = spi_prettyprint_status_register_bp2_srwd,
12189 .unlock = spi_disable_blockprotect_bp2_srwd,
12190 .write = spi_chip_write_256,
12191 .read = spi_chip_read, /* Fast read (0x0B) supported */
12192 .voltage = {2700, 3600},
12193 },
12194
12195 {
12196 .vendor = "Spansion",
12197 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012198 .bustype = BUS_SPI,
12199 .manufacture_id = SPANSION_ID,
12200 .model_id = SPANSION_S25FL128,
12201 .total_size = 16384,
12202 .page_size = 256,
12203 /* supports 4B addressing */
12204 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12205 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012206 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012207 .probe = probe_spi_rdid,
12208 .probe_timing = TIMING_ZERO,
12209 .block_erasers = {
12210 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012211 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12212 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12213 * have no effect on the memory contents, but sets a flag in the SR.
12214 .eraseblocks = {
12215 {4 * 1024, 32},
12216 {64 * 1024, 254} // inaccessible
12217 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012218 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012219 }, { */
12220 .eraseblocks = { { 64 * 1024, 256} },
12221 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012222 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012223 .eraseblocks = { { 16384 * 1024, 1} },
12224 .block_erase = spi_block_erase_60,
12225 }, {
12226 .eraseblocks = { { 16384 * 1024, 1} },
12227 .block_erase = spi_block_erase_c7,
12228 }
12229 },
12230 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12231 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12232 .write = spi_chip_write_256, /* Multi I/O supported */
12233 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12234 .voltage = {2700, 3600},
12235 },
12236
12237 {
12238 .vendor = "Spansion",
12239 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12240 .bustype = BUS_SPI,
12241 .manufacture_id = SPANSION_ID,
12242 .model_id = SPANSION_S25FL128,
12243 .total_size = 16384,
12244 .page_size = 512,
12245 /* supports 4B addressing */
12246 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12248 .tested = TEST_UNTESTED,
12249 .probe = probe_spi_rdid,
12250 .probe_timing = TIMING_ZERO,
12251 .block_erasers = {
12252 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012253 .eraseblocks = { {256 * 1024, 64} },
12254 .block_erase = spi_block_erase_d8,
12255 }, {
12256 .eraseblocks = { { 16384 * 1024, 1} },
12257 .block_erase = spi_block_erase_60,
12258 }, {
12259 .eraseblocks = { { 16384 * 1024, 1} },
12260 .block_erase = spi_block_erase_c7,
12261 }
12262 },
12263 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12264 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12265 .write = spi_chip_write_256, /* Multi I/O supported */
12266 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12267 .voltage = {2700, 3600},
12268 },
12269
12270 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012271 .vendor = "Spansion",
12272 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12273 .bustype = BUS_SPI,
12274 .manufacture_id = SPANSION_ID,
12275 .model_id = SPANSION_S25FL128,
12276 .total_size = 16384,
12277 .page_size = 256,
12278 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12280 .tested = TEST_OK_PREW,
12281 .probe = probe_spi_rdid,
12282 .probe_timing = TIMING_ZERO,
12283 .block_erasers = {
12284 {
12285 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12286 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12287 * effect on the memory contents, but sets a flag in the SR.
12288 .eraseblocks = {
12289 {4 * 1024, 32},
12290 {64 * 1024, 254} // inaccessible
12291 },
12292 .block_erase = spi_block_erase_20,
12293 }, { */
12294 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12295 .eraseblocks = {
12296 {8 * 1024, 16},
12297 {64 * 1024, 254} // inaccessible
12298 },
12299 .block_erase = spi_block_erase_40,
12300 }, { */
12301 .eraseblocks = { { 64 * 1024, 256} },
12302 .block_erase = spi_block_erase_d8,
12303 }, {
12304 .eraseblocks = { { 16384 * 1024, 1} },
12305 .block_erase = spi_block_erase_60,
12306 }, {
12307 .eraseblocks = { { 16384 * 1024, 1} },
12308 .block_erase = spi_block_erase_c7,
12309 }
12310 },
12311 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12312 .unlock = spi_disable_blockprotect_bp2_srwd,
12313 .write = spi_chip_write_256, /* Multi I/O supported */
12314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12315 .voltage = {2700, 3600},
12316 },
12317
12318 {
12319 .vendor = "Spansion",
12320 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12321 .bustype = BUS_SPI,
12322 .manufacture_id = SPANSION_ID,
12323 .model_id = SPANSION_S25FL128,
12324 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012325 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012326 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12328 .tested = TEST_UNTESTED,
12329 .probe = probe_spi_rdid,
12330 .probe_timing = TIMING_ZERO,
12331 .block_erasers = {
12332 {
12333 .eraseblocks = { {256 * 1024, 64} },
12334 .block_erase = spi_block_erase_d8,
12335 }, {
12336 .eraseblocks = { { 16384 * 1024, 1} },
12337 .block_erase = spi_block_erase_60,
12338 }, {
12339 .eraseblocks = { { 16384 * 1024, 1} },
12340 .block_erase = spi_block_erase_c7,
12341 }
12342 },
12343 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12344 .unlock = spi_disable_blockprotect_bp2_srwd,
12345 .write = spi_chip_write_256, /* Multi I/O supported */
12346 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12347 .voltage = {2700, 3600},
12348 },
12349
12350 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012351 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012352 .name = "SST25LF020A",
12353 .bustype = BUS_SPI,
12354 .manufacture_id = SST_ID,
12355 .model_id = SST_SST25VF020_REMS,
12356 .total_size = 256,
12357 .page_size = 256,
12358 .feature_bits = FEATURE_WRSR_EWSR,
12359 .tested = TEST_OK_PREW,
12360 .probe = probe_spi_rems,
12361 .probe_timing = TIMING_ZERO,
12362 .block_erasers =
12363 {
12364 {
12365 .eraseblocks = { {4 * 1024, 64} },
12366 .block_erase = spi_block_erase_20,
12367 }, {
12368 .eraseblocks = { {32 * 1024, 8} },
12369 .block_erase = spi_block_erase_52,
12370 }, {
12371 .eraseblocks = { {256 * 1024, 1} },
12372 .block_erase = spi_block_erase_60,
12373 },
12374 },
12375 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12376 .unlock = spi_disable_blockprotect,
12377 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12378 .read = spi_chip_read, /* Fast read (0x0B) supported */
12379 .voltage = {2700, 3600},
12380 },
12381
12382 {
12383 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012384 .name = "SST25LF040A",
12385 .bustype = BUS_SPI,
12386 .manufacture_id = SST_ID,
12387 .model_id = SST_SST25VF040_REMS,
12388 .total_size = 512,
12389 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012390 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012391 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012392 .probe = probe_spi_res2,
12393 .probe_timing = TIMING_ZERO,
12394 .block_erasers =
12395 {
12396 {
12397 .eraseblocks = { {4 * 1024, 128} },
12398 .block_erase = spi_block_erase_20,
12399 }, {
12400 .eraseblocks = { {32 * 1024, 16} },
12401 .block_erase = spi_block_erase_52,
12402 }, {
12403 .eraseblocks = { {512 * 1024, 1} },
12404 .block_erase = spi_block_erase_60,
12405 },
12406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012407 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012408 .unlock = spi_disable_blockprotect,
12409 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12410 .read = spi_chip_read,
12411 .voltage = {3000, 3600},
12412 },
12413
12414 {
12415 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012416 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012417 .bustype = BUS_SPI,
12418 .manufacture_id = SST_ID,
12419 .model_id = SST_SST25VF080_REMS,
12420 .total_size = 1024,
12421 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012422 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012423 .tested = TEST_UNTESTED,
12424 .probe = probe_spi_res2,
12425 .probe_timing = TIMING_ZERO,
12426 .block_erasers =
12427 {
12428 {
12429 .eraseblocks = { {4 * 1024, 256} },
12430 .block_erase = spi_block_erase_20,
12431 }, {
12432 .eraseblocks = { {32 * 1024, 32} },
12433 .block_erase = spi_block_erase_52,
12434 }, {
12435 .eraseblocks = { {1024 * 1024, 1} },
12436 .block_erase = spi_block_erase_60,
12437 },
12438 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012439 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012440 .unlock = spi_disable_blockprotect,
12441 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12442 .read = spi_chip_read,
12443 .voltage = {3000, 3600},
12444 },
12445
12446 {
12447 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012448 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012449 .bustype = BUS_SPI,
12450 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012451 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012452 .total_size = 64,
12453 .page_size = 256,
12454 .feature_bits = FEATURE_WRSR_EWSR,
12455 .tested = TEST_OK_PREW,
12456 .probe = probe_spi_rems,
12457 .probe_timing = TIMING_ZERO,
12458 .block_erasers =
12459 {
12460 {
12461 .eraseblocks = { {4 * 1024, 16} },
12462 .block_erase = spi_block_erase_20,
12463 }, {
12464 .eraseblocks = { {32 * 1024, 2} },
12465 .block_erase = spi_block_erase_52,
12466 }, {
12467 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012468 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012469 }, {
12470 .eraseblocks = { {64 * 1024, 1} },
12471 .block_erase = spi_block_erase_60,
12472 }, {
12473 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012474 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A 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 SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012481 .voltage = {2700, 3600},
12482 },
12483
12484 {
12485 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012486 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012487 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012488 .manufacture_id = SST_ID,
12489 .model_id = SST_SST25VF010_REMS,
12490 .total_size = 128,
12491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012492 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012493 .tested = TEST_OK_PREW,
12494 .probe = probe_spi_rems,
12495 .probe_timing = TIMING_ZERO,
12496 .block_erasers =
12497 {
12498 {
12499 .eraseblocks = { {4 * 1024, 32} },
12500 .block_erase = spi_block_erase_20,
12501 }, {
12502 .eraseblocks = { {32 * 1024, 4} },
12503 .block_erase = spi_block_erase_52,
12504 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012505 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012506 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012507 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012508 .eraseblocks = { {128 * 1024, 1} },
12509 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012510 }, {
12511 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012512 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012513 },
12514 },
12515 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12516 .unlock = spi_disable_blockprotect,
12517 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012518 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012519 .voltage = {2700, 3600},
12520 },
12521
12522 {
12523 .vendor = "SST",
12524 .name = "SST25VF020",
12525 .bustype = BUS_SPI,
12526 .manufacture_id = SST_ID,
12527 .model_id = SST_SST25VF020_REMS,
12528 .total_size = 256,
12529 .page_size = 256,
12530 .feature_bits = FEATURE_WRSR_EWSR,
12531 .tested = TEST_UNTESTED,
12532 .probe = probe_spi_rems,
12533 .probe_timing = TIMING_ZERO,
12534 .block_erasers =
12535 {
12536 {
12537 .eraseblocks = { {4 * 1024, 64} },
12538 .block_erase = spi_block_erase_20,
12539 }, {
12540 .eraseblocks = { {32 * 1024, 8} },
12541 .block_erase = spi_block_erase_52,
12542 }, {
12543 .eraseblocks = { {256 * 1024, 1} },
12544 .block_erase = spi_block_erase_60,
12545 },
12546 },
12547 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12548 .unlock = spi_disable_blockprotect,
12549 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12550 .read = spi_chip_read, /* only */
12551 .voltage = {2700, 3600},
12552 },
12553
12554 {
12555 .vendor = "SST",
12556 .name = "SST25VF020B",
12557 .bustype = BUS_SPI,
12558 .manufacture_id = SST_ID,
12559 .model_id = SST_SST25VF020B,
12560 .total_size = 256,
12561 .page_size = 256,
12562 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012563 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012564 .probe = probe_spi_rdid,
12565 .probe_timing = TIMING_ZERO,
12566 .block_erasers =
12567 {
12568 {
12569 .eraseblocks = { {4 * 1024, 64} },
12570 .block_erase = spi_block_erase_20,
12571 }, {
12572 .eraseblocks = { {32 * 1024, 8} },
12573 .block_erase = spi_block_erase_52,
12574 }, {
12575 .eraseblocks = { {64 * 1024, 4} },
12576 .block_erase = spi_block_erase_d8,
12577 }, {
12578 .eraseblocks = { {256 * 1024, 1} },
12579 .block_erase = spi_block_erase_60,
12580 }, {
12581 .eraseblocks = { {256 * 1024, 1} },
12582 .block_erase = spi_block_erase_c7,
12583 },
12584 },
12585 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12586 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12587 .write = spi_aai_write, /* AAI supported (0xAD) */
12588 .read = spi_chip_read, /* Fast read (0x0B) supported */
12589 .voltage = {2700, 3600},
12590 },
12591
12592 {
12593 .vendor = "SST",
12594 .name = "SST25VF040",
12595 .bustype = BUS_SPI,
12596 .manufacture_id = SST_ID,
12597 .model_id = SST_SST25VF040_REMS,
12598 .total_size = 512,
12599 .page_size = 256,
12600 .feature_bits = FEATURE_WRSR_EWSR,
12601 .tested = TEST_OK_PR,
12602 .probe = probe_spi_rems,
12603 .probe_timing = TIMING_ZERO,
12604 .block_erasers =
12605 {
12606 {
12607 .eraseblocks = { {4 * 1024, 128} },
12608 .block_erase = spi_block_erase_20,
12609 }, {
12610 .eraseblocks = { {32 * 1024, 16} },
12611 .block_erase = spi_block_erase_52,
12612 }, {
12613 .eraseblocks = { {512 * 1024, 1} },
12614 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012615 },
12616 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012617 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012618 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012619 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12620 .read = spi_chip_read,
12621 .voltage = {2700, 3600},
12622 },
12623
12624 {
12625 .vendor = "SST",
12626 .name = "SST25VF040B",
12627 .bustype = BUS_SPI,
12628 .manufacture_id = SST_ID,
12629 .model_id = SST_SST25VF040B,
12630 .total_size = 512,
12631 .page_size = 256,
12632 .feature_bits = FEATURE_WRSR_EWSR,
12633 .tested = TEST_OK_PREW,
12634 .probe = probe_spi_rdid,
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, /* AAI supported (0xAD) */
12658 .read = spi_chip_read, /* Fast read (0x0B) supported */
12659 .voltage = {2700, 3600},
12660 },
12661
12662 {
12663 .vendor = "SST",
12664 .name = "SST25VF040B.REMS",
12665 .bustype = BUS_SPI,
12666 .manufacture_id = SST_ID,
12667 .model_id = SST_SST25VF040B_REMS,
12668 .total_size = 512,
12669 .page_size = 256,
12670 .feature_bits = FEATURE_WRSR_EWSR,
12671 .tested = TEST_OK_PREW,
12672 .probe = probe_spi_rems,
12673 .probe_timing = TIMING_ZERO,
12674 .block_erasers =
12675 {
12676 {
12677 .eraseblocks = { {4 * 1024, 128} },
12678 .block_erase = spi_block_erase_20,
12679 }, {
12680 .eraseblocks = { {32 * 1024, 16} },
12681 .block_erase = spi_block_erase_52,
12682 }, {
12683 .eraseblocks = { {64 * 1024, 8} },
12684 .block_erase = spi_block_erase_d8,
12685 }, {
12686 .eraseblocks = { {512 * 1024, 1} },
12687 .block_erase = spi_block_erase_60,
12688 }, {
12689 .eraseblocks = { {512 * 1024, 1} },
12690 .block_erase = spi_block_erase_c7,
12691 },
12692 },
12693 .printlock = spi_prettyprint_status_register_sst25vf040b,
12694 .unlock = spi_disable_blockprotect,
12695 .write = spi_aai_write,
12696 .read = spi_chip_read,
12697 .voltage = {2700, 3600},
12698 },
12699
12700 {
12701 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012702 .name = "SST25WF020A",
12703 .bustype = BUS_SPI,
12704 .manufacture_id = SANYO_ID, /* See flashchips.h */
12705 .model_id = SST_SST25WF020A,
12706 .total_size = 256,
12707 .page_size = 256,
12708 .feature_bits = FEATURE_WRSR_WREN,
12709 .tested = TEST_UNTESTED,
12710 .probe = probe_spi_rdid,
12711 .probe_timing = TIMING_ZERO,
12712 .block_erasers =
12713 {
12714 {
12715 .eraseblocks = { {4 * 1024, 64} },
12716 .block_erase = spi_block_erase_20,
12717 }, {
12718 .eraseblocks = { {64 * 1024, 4} },
12719 .block_erase = spi_block_erase_d8,
12720 }, {
12721 .eraseblocks = { {256 * 1024, 1} },
12722 .block_erase = spi_block_erase_60,
12723 }, {
12724 .eraseblocks = { {256 * 1024, 1} },
12725 .block_erase = spi_block_erase_c7,
12726 },
12727 },
12728 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12729 .unlock = spi_disable_blockprotect_bp2_srwd,
12730 .write = spi_chip_write_256,
12731 .read = spi_chip_read, /* Fast read (0x0B) supported */
12732 .voltage = {1650, 1950},
12733 },
12734
12735 {
12736 .vendor = "SST",
12737 .name = "SST25WF040B",
12738 .bustype = BUS_SPI,
12739 .manufacture_id = SANYO_ID, /* See flashchips.h */
12740 .model_id = SST_SST25WF040B,
12741 .total_size = 512,
12742 .page_size = 256,
12743 .feature_bits = FEATURE_WRSR_WREN,
12744 .tested = TEST_UNTESTED,
12745 .probe = probe_spi_rdid,
12746 .probe_timing = TIMING_ZERO,
12747 .block_erasers =
12748 {
12749 {
12750 .eraseblocks = { {4 * 1024, 128} },
12751 .block_erase = spi_block_erase_20,
12752 }, {
12753 .eraseblocks = { {64 * 1024, 8} },
12754 .block_erase = spi_block_erase_d8,
12755 }, {
12756 .eraseblocks = { {512 * 1024, 1} },
12757 .block_erase = spi_block_erase_60,
12758 }, {
12759 .eraseblocks = { {512 * 1024, 1} },
12760 .block_erase = spi_block_erase_c7,
12761 },
12762 },
12763 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12764 .unlock = spi_disable_blockprotect_bp2_srwd,
12765 .write = spi_chip_write_256,
12766 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12767 .voltage = {1650, 1950},
12768 },
12769
12770 {
12771 .vendor = "SST",
12772 .name = "SST25WF080B",
12773 .bustype = BUS_SPI,
12774 .manufacture_id = SANYO_ID, /* See flashchips.h */
12775 .model_id = SST_SST25WF080B,
12776 .total_size = 1024,
12777 .page_size = 256,
12778 .feature_bits = FEATURE_WRSR_WREN,
12779 .tested = TEST_OK_PREW,
12780 .probe = probe_spi_rdid,
12781 .probe_timing = TIMING_ZERO,
12782 .block_erasers =
12783 {
12784 {
12785 .eraseblocks = { {4 * 1024, 256} },
12786 .block_erase = spi_block_erase_20,
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_bp2_tb_bpl,
12799 .unlock = spi_disable_blockprotect_bp2_srwd,
12800 .write = spi_chip_write_256,
12801 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12802 .voltage = {1650, 1950},
12803 },
12804
12805 {
12806 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012807 .name = "SST25VF080B",
12808 .bustype = BUS_SPI,
12809 .manufacture_id = SST_ID,
12810 .model_id = SST_SST25VF080B,
12811 .total_size = 1024,
12812 .page_size = 256,
12813 .feature_bits = FEATURE_WRSR_EWSR,
12814 .tested = TEST_OK_PREW,
12815 .probe = probe_spi_rdid,
12816 .probe_timing = TIMING_ZERO,
12817 .block_erasers =
12818 {
12819 {
12820 .eraseblocks = { {4 * 1024, 256} },
12821 .block_erase = spi_block_erase_20,
12822 }, {
12823 .eraseblocks = { {32 * 1024, 32} },
12824 .block_erase = spi_block_erase_52,
12825 }, {
12826 .eraseblocks = { {64 * 1024, 16} },
12827 .block_erase = spi_block_erase_d8,
12828 }, {
12829 .eraseblocks = { {1024 * 1024, 1} },
12830 .block_erase = spi_block_erase_60,
12831 }, {
12832 .eraseblocks = { {1024 * 1024, 1} },
12833 .block_erase = spi_block_erase_c7,
12834 },
12835 },
12836 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12837 .unlock = spi_disable_blockprotect,
12838 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012839 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012840 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012841 },
12842
12843 {
12844 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012845 .name = "SST25VF016B",
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_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 .total_size = 2048,
12850 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012851 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +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, 512} },
12859 .block_erase = spi_block_erase_20,
12860 }, {
12861 .eraseblocks = { {32 * 1024, 64} },
12862 .block_erase = spi_block_erase_52,
12863 }, {
12864 .eraseblocks = { {64 * 1024, 32} },
12865 .block_erase = spi_block_erase_d8,
12866 }, {
12867 .eraseblocks = { {2 * 1024 * 1024, 1} },
12868 .block_erase = spi_block_erase_60,
12869 }, {
12870 .eraseblocks = { {2 * 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_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012875 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012876 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012877 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012878 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012879 },
12880
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012881 {
12882 .vendor = "SST",
12883 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012884 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012885 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012886 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012887 .total_size = 4096,
12888 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012889 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012890 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012891 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012892 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012893 .block_erasers =
12894 {
12895 {
12896 .eraseblocks = { {4 * 1024, 1024} },
12897 .block_erase = spi_block_erase_20,
12898 }, {
12899 .eraseblocks = { {32 * 1024, 128} },
12900 .block_erase = spi_block_erase_52,
12901 }, {
12902 .eraseblocks = { {64 * 1024, 64} },
12903 .block_erase = spi_block_erase_d8,
12904 }, {
12905 .eraseblocks = { {4 * 1024 * 1024, 1} },
12906 .block_erase = spi_block_erase_60,
12907 }, {
12908 .eraseblocks = { {4 * 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 */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012913 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012914 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012916 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012917 },
12918
12919 {
12920 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012921 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012922 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012923 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012924 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012925 .total_size = 8192,
12926 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012927 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012928 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012929 .probe = probe_spi_rdid,
12930 .probe_timing = TIMING_ZERO,
12931 .block_erasers =
12932 {
12933 {
12934 .eraseblocks = { {4 * 1024, 2048} },
12935 .block_erase = spi_block_erase_20,
12936 }, {
12937 .eraseblocks = { {32 * 1024, 256} },
12938 .block_erase = spi_block_erase_52,
12939 }, {
12940 .eraseblocks = { {64 * 1024, 128} },
12941 .block_erase = spi_block_erase_d8,
12942 }, {
12943 .eraseblocks = { {8 * 1024 * 1024, 1} },
12944 .block_erase = spi_block_erase_60,
12945 }, {
12946 .eraseblocks = { {8 * 1024 * 1024, 1} },
12947 .block_erase = spi_block_erase_c7,
12948 },
12949 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012950 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012951 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012952 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012954 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012955 },
12956
12957 {
12958 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070012959 .name = "SST26VF016B(A)",
12960 .bustype = BUS_SPI,
12961 .manufacture_id = SST_ID,
12962 .model_id = SST_SST26VF016B,
12963 .total_size = 2048,
12964 .page_size = 256,
12965 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12966 .tested = TEST_OK_PREW,
12967 .probe = probe_spi_rdid,
12968 .probe_timing = TIMING_ZERO,
12969 .block_erasers =
12970 {
12971 {
12972 .eraseblocks = { {4 * 1024, 512} },
12973 .block_erase = spi_block_erase_20,
12974 }, {
12975 .eraseblocks = {
12976 {8 * 1024, 4},
12977 {32 * 1024, 1},
12978 {64 * 1024, 30},
12979 {32 * 1024, 1},
12980 {8 * 1024, 4},
12981 },
12982 .block_erase = spi_block_erase_d8,
12983 }, {
12984 .eraseblocks = { {2 * 1024 * 1024, 1} },
12985 .block_erase = spi_block_erase_c7,
12986 },
12987 },
12988 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12989 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12990 .write = spi_chip_write_256, /* Multi I/O supported */
12991 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12992 .voltage = {2700, 3600},
12993 },
12994 {
12995 .vendor = "SST",
12996 .name = "SST26VF032B(A)",
12997 .bustype = BUS_SPI,
12998 .manufacture_id = SST_ID,
12999 .model_id = SST_SST26VF032B,
13000 .total_size = 4096,
13001 .page_size = 256,
13002 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13003 .tested = TEST_UNTESTED,
13004 .probe = probe_spi_rdid,
13005 .probe_timing = TIMING_ZERO,
13006 .block_erasers =
13007 {
13008 {
13009 .eraseblocks = { {4 * 1024, 1024} },
13010 .block_erase = spi_block_erase_20,
13011 }, {
13012 .eraseblocks = {
13013 {8 * 1024, 4},
13014 {32 * 1024, 1},
13015 {64 * 1024, 62},
13016 {32 * 1024, 1},
13017 {8 * 1024, 4},
13018 },
13019 .block_erase = spi_block_erase_d8,
13020 }, {
13021 .eraseblocks = { {4 * 1024 * 1024, 1} },
13022 .block_erase = spi_block_erase_c7,
13023 },
13024 },
13025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13026 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13027 .write = spi_chip_write_256, /* Multi I/O supported */
13028 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13029 .voltage = {2700, 3600},
13030 },
13031
13032
13033 {
13034 .vendor = "SST",
13035 .name = "SST26VF064B(A)",
13036 .bustype = BUS_SPI,
13037 .manufacture_id = SST_ID,
13038 .model_id = SST_SST26VF064B,
13039 .total_size = 8192,
13040 .page_size = 256,
13041 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13042 .tested = TEST_OK_PREW,
13043 .probe = probe_spi_rdid,
13044 .probe_timing = TIMING_ZERO,
13045 .block_erasers =
13046 {
13047 {
13048 .eraseblocks = { {4 * 1024, 2048} },
13049 .block_erase = spi_block_erase_20,
13050 }, {
13051 .eraseblocks = {
13052 {8 * 1024, 4},
13053 {32 * 1024, 1},
13054 {64 * 1024, 126},
13055 {32 * 1024, 1},
13056 {8 * 1024, 4},
13057 },
13058 .block_erase = spi_block_erase_d8,
13059 }, {
13060 .eraseblocks = { {8 * 1024 * 1024, 1} },
13061 .block_erase = spi_block_erase_c7,
13062 },
13063 },
13064 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13065 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13066 .write = spi_chip_write_256, /* Multi I/O supported */
13067 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13068 .voltage = {2700, 3600},
13069 },
13070
13071 {
13072 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000013073 .name = "SST25WF512",
13074 .bustype = BUS_SPI,
13075 .manufacture_id = SST_ID,
13076 .model_id = SST_SST25WF512,
13077 .total_size = 64,
13078 .page_size = 256,
13079 .feature_bits = FEATURE_WRSR_EITHER,
13080 .tested = TEST_UNTESTED,
13081 .probe = probe_spi_rdid,
13082 .probe_timing = TIMING_ZERO,
13083 .block_erasers =
13084 {
13085 {
13086 .eraseblocks = { {4 * 1024, 16} },
13087 .block_erase = spi_block_erase_20,
13088 }, {
13089 .eraseblocks = { {32 * 1024, 2} },
13090 .block_erase = spi_block_erase_52,
13091 }, {
13092 .eraseblocks = { {1024 * 64, 1} },
13093 .block_erase = spi_block_erase_60,
13094 }, {
13095 .eraseblocks = { {1024 * 64, 1} },
13096 .block_erase = spi_block_erase_c7,
13097 },
13098 },
Jason Harper43ddef02014-05-04 00:55:24 +000013099 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13100 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013101 .write = spi_aai_write,
13102 .read = spi_chip_read, /* Fast read (0x0B) supported */
13103 .voltage = {1650, 1950},
13104 },
13105
13106 {
13107 .vendor = "SST",
13108 .name = "SST25WF010",
13109 .bustype = BUS_SPI,
13110 .manufacture_id = SST_ID,
13111 .model_id = SST_SST25WF010,
13112 .total_size = 128,
13113 .page_size = 256,
13114 .feature_bits = FEATURE_WRSR_EITHER,
13115 .tested = TEST_UNTESTED,
13116 .probe = probe_spi_rdid,
13117 .probe_timing = TIMING_ZERO,
13118 .block_erasers =
13119 {
13120 {
13121 .eraseblocks = { {4 * 1024, 32} },
13122 .block_erase = spi_block_erase_20,
13123 }, {
13124 .eraseblocks = { {32 * 1024, 4} },
13125 .block_erase = spi_block_erase_52,
13126 }, {
13127 .eraseblocks = { {1024 * 128, 1} },
13128 .block_erase = spi_block_erase_60,
13129 }, {
13130 .eraseblocks = { {1024 * 128, 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 = "SST25WF020",
13144 .bustype = BUS_SPI,
13145 .manufacture_id = SST_ID,
13146 .model_id = SST_SST25WF020,
13147 .total_size = 256,
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, 64} },
13157 .block_erase = spi_block_erase_20,
13158 }, {
13159 .eraseblocks = { {32 * 1024, 8} },
13160 .block_erase = spi_block_erase_52,
13161 }, {
13162 .eraseblocks = { {64 * 1024, 4} },
13163 .block_erase = spi_block_erase_d8,
13164 }, {
13165 .eraseblocks = { {1024 * 256, 1} },
13166 .block_erase = spi_block_erase_60,
13167 }, {
13168 .eraseblocks = { {1024 * 256, 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,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013174 .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 = "SST25WF040",
13182 .bustype = BUS_SPI,
13183 .manufacture_id = SST_ID,
13184 .model_id = SST_SST25WF040,
13185 .total_size = 512,
13186 .page_size = 256,
13187 .feature_bits = FEATURE_WRSR_EITHER,
13188 .tested = TEST_UNTESTED,
13189 .probe = probe_spi_rdid,
13190 .probe_timing = TIMING_ZERO,
13191 .block_erasers =
13192 {
13193 {
13194 .eraseblocks = { {4 * 1024, 128} },
13195 .block_erase = spi_block_erase_20,
13196 }, {
13197 .eraseblocks = { {32 * 1024, 16} },
13198 .block_erase = spi_block_erase_52,
13199 }, {
13200 .eraseblocks = { {64 * 1024, 8} },
13201 .block_erase = spi_block_erase_d8,
13202 }, {
13203 .eraseblocks = { {1024 * 512, 1} },
13204 .block_erase = spi_block_erase_60,
13205 }, {
13206 .eraseblocks = { {1024 * 512, 1} },
13207 .block_erase = spi_block_erase_c7,
13208 },
13209 },
Jason Harper43ddef02014-05-04 00:55:24 +000013210 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13211 .unlock = spi_disable_blockprotect_bp2_srwd,
13212 .write = spi_aai_write,
13213 .read = spi_chip_read, /* Fast read (0x0B) supported */
13214 .voltage = {1650, 1950},
13215 },
13216
13217 {
13218 .vendor = "SST",
13219 .name = "SST25WF080",
13220 .bustype = BUS_SPI,
13221 .manufacture_id = SST_ID,
13222 .model_id = SST_SST25WF080,
13223 .total_size = 1024,
13224 .page_size = 256,
13225 .feature_bits = FEATURE_WRSR_EITHER,
13226 .tested = TEST_OK_PREW,
13227 .probe = probe_spi_rdid,
13228 .probe_timing = TIMING_ZERO,
13229 .block_erasers =
13230 {
13231 {
13232 .eraseblocks = { {4 * 1024, 256} },
13233 .block_erase = spi_block_erase_20,
13234 }, {
13235 .eraseblocks = { {32 * 1024, 32} },
13236 .block_erase = spi_block_erase_52,
13237 }, {
13238 .eraseblocks = { {64 * 1024, 16} },
13239 .block_erase = spi_block_erase_d8,
13240 }, {
13241 .eraseblocks = { {1024 * 1024, 1} },
13242 .block_erase = spi_block_erase_60,
13243 }, {
13244 .eraseblocks = { {1024 * 1024, 1} },
13245 .block_erase = spi_block_erase_c7,
13246 },
13247 },
13248 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13249 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013250 .write = spi_aai_write,
13251 .read = spi_chip_read, /* Fast read (0x0B) supported */
13252 .voltage = {1650, 1950},
13253 },
13254
13255 {
13256 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013257 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013258 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013259 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013260 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013261 .total_size = 512,
13262 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013263 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013264 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013265 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013266 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013267 .block_erasers =
13268 {
13269 {
13270 .eraseblocks = { {128, 4096} },
13271 .block_erase = erase_sector_28sf040,
13272 }, {
13273 .eraseblocks = { {512 * 1024, 1} },
13274 .block_erase = erase_chip_28sf040,
13275 }
13276 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013277 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013278 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013280 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013281 },
13282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013283 {
13284 .vendor = "SST",
13285 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013286 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013287 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013288 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013289 .total_size = 128,
13290 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013291 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013292 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013293 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013294 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013295 .block_erasers =
13296 {
13297 {
13298 .eraseblocks = { {128 * 1024, 1} },
13299 .block_erase = erase_chip_block_jedec,
13300 }
13301 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013302 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013304 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013305 },
13306
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013307 {
13308 .vendor = "SST",
13309 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013310 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013311 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013312 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013313 .total_size = 128,
13314 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013315 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013316 .tested = TEST_UNTESTED,
13317 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013318 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013319 .block_erasers =
13320 {
13321 {
13322 .eraseblocks = { {128 * 1024, 1} },
13323 .block_erase = erase_chip_block_jedec,
13324 }
13325 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013326 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013328 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013329 },
13330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013331 {
13332 .vendor = "SST",
13333 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013334 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013335 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013336 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013337 .total_size = 256,
13338 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013339 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013340 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013341 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013342 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013343 .block_erasers =
13344 {
13345 {
13346 .eraseblocks = { {256 * 1024, 1} },
13347 .block_erase = erase_chip_block_jedec,
13348 }
13349 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013350 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013351 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013352 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013353 },
13354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013355 {
13356 .vendor = "SST",
13357 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013358 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013359 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013360 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013361 .total_size = 256,
13362 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013363 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013364 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013365 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013366 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013367 .block_erasers =
13368 {
13369 {
13370 .eraseblocks = { {256 * 1024, 1} },
13371 .block_erase = erase_chip_block_jedec,
13372 }
13373 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013374 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013376 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013377 },
13378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013379 {
13380 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000013381 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013382 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013383 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013384 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013385 .total_size = 64,
13386 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013387 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000013388 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013389 .probe = probe_jedec,
13390 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000013391 .block_erasers =
13392 {
13393 {
13394 .eraseblocks = { {4 * 1024, 16} },
13395 .block_erase = erase_sector_jedec,
13396 }, {
13397 .eraseblocks = { {64 * 1024, 1} },
13398 .block_erase = erase_chip_block_jedec,
13399 }
13400 },
Sean Nelson35727f72010-01-28 23:55:12 +000013401 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013403 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000013404 },
13405
13406 {
13407 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013408 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013409 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013410 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013411 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013412 .total_size = 128,
13413 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013414 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013415 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013416 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013417 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013418 .block_erasers =
13419 {
13420 {
13421 .eraseblocks = { {4 * 1024, 32} },
13422 .block_erase = erase_sector_jedec,
13423 }, {
13424 .eraseblocks = { {128 * 1024, 1} },
13425 .block_erase = erase_chip_block_jedec,
13426 }
13427 },
Sean Nelson35727f72010-01-28 23:55:12 +000013428 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013430 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013431 },
13432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013433 {
13434 .vendor = "SST",
13435 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013436 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013437 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013438 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013439 .total_size = 256,
13440 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013441 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013442 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013443 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013444 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013445 .block_erasers =
13446 {
13447 {
13448 .eraseblocks = { {4 * 1024, 64} },
13449 .block_erase = erase_sector_jedec,
13450 }, {
13451 .eraseblocks = { {256 * 1024, 1} },
13452 .block_erase = erase_chip_block_jedec,
13453 }
13454 },
Sean Nelson35727f72010-01-28 23:55:12 +000013455 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013457 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013458 },
13459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013460 {
13461 .vendor = "SST",
13462 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013463 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013464 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013465 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013466 .total_size = 512,
13467 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013468 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013469 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013470 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013471 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013472 .block_erasers =
13473 {
13474 {
13475 .eraseblocks = { {4 * 1024, 128} },
13476 .block_erase = erase_sector_jedec,
13477 }, {
13478 .eraseblocks = { {512 * 1024, 1} },
13479 .block_erase = erase_chip_block_jedec,
13480 }
13481 },
Sean Nelson35727f72010-01-28 23:55:12 +000013482 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013483 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013484 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013485 },
13486
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013487 {
13488 .vendor = "SST",
13489 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013490 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013491 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013492 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013493 .total_size = 64,
13494 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013495 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013496 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013497 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013498 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013499 .block_erasers =
13500 {
13501 {
13502 .eraseblocks = { {4 * 1024, 16} },
13503 .block_erase = erase_sector_jedec,
13504 }, {
13505 .eraseblocks = { {64 * 1024, 1} },
13506 .block_erase = erase_chip_block_jedec,
13507 }
13508 },
Sean Nelson35727f72010-01-28 23:55:12 +000013509 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013512 },
13513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 {
13515 .vendor = "SST",
13516 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013517 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013519 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013520 .total_size = 128,
13521 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013522 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013524 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013525 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013526 .block_erasers =
13527 {
13528 {
13529 .eraseblocks = { {4 * 1024, 32} },
13530 .block_erase = erase_sector_jedec,
13531 }, {
13532 .eraseblocks = { {128 * 1024, 1} },
13533 .block_erase = erase_chip_block_jedec,
13534 }
13535 },
Sean Nelson35727f72010-01-28 23:55:12 +000013536 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013538 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013539 },
13540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013541 {
13542 .vendor = "SST",
13543 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013544 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013545 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013546 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013547 .total_size = 256,
13548 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013549 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013550 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013551 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013552 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013553 .block_erasers =
13554 {
13555 {
13556 .eraseblocks = { {4 * 1024, 64} },
13557 .block_erase = erase_sector_jedec,
13558 }, {
13559 .eraseblocks = { {256 * 1024, 1} },
13560 .block_erase = erase_chip_block_jedec,
13561 }
13562 },
Sean Nelson35727f72010-01-28 23:55:12 +000013563 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013565 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013566 },
13567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013568 {
13569 .vendor = "SST",
13570 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013571 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013572 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013573 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013574 .total_size = 512,
13575 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013576 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013577 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013578 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013579 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013580 .block_erasers =
13581 {
13582 {
13583 .eraseblocks = { {4 * 1024, 128} },
13584 .block_erase = erase_sector_jedec,
13585 }, {
13586 .eraseblocks = { {512 * 1024, 1} },
13587 .block_erase = erase_chip_block_jedec,
13588 }
13589 },
Sean Nelson35727f72010-01-28 23:55:12 +000013590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013592 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013593 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013595 {
13596 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013597 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013598 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013599 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013600 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013601 .total_size = 1024,
13602 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013603 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013604 .tested = TEST_UNTESTED,
13605 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013606 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013607 .block_erasers =
13608 {
13609 {
13610 .eraseblocks = { {4 * 1024, 256} },
13611 .block_erase = erase_sector_jedec,
13612 }, {
13613 .eraseblocks = { {64 * 1024, 16} },
13614 .block_erase = erase_block_jedec,
13615 }, {
13616 .eraseblocks = { {1024 * 1024, 1} },
13617 .block_erase = erase_chip_block_jedec,
13618 }
13619 },
Sean Nelson35727f72010-01-28 23:55:12 +000013620 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013621 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013622 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013623 },
13624
13625 {
13626 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013627 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013628 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013629 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013630 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013631 .total_size = 256,
13632 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013633 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013634 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013635 .probe = probe_jedec,
13636 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013637 .block_erasers =
13638 {
13639 {
13640 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013641 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013642 }, {
13643 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013644 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013645 }, {
13646 .eraseblocks = { {256 * 1024, 1} },
13647 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13648 }
13649 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013650 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013651 .unlock = unlock_sst_fwhub,
13652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013654 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013655 },
13656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013657 {
13658 .vendor = "SST",
13659 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013660 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013661 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013662 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013663 .total_size = 384,
13664 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013665 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013666 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013667 .probe = probe_jedec,
13668 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013669 .block_erasers =
13670 {
13671 {
13672 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013673 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013674 }, {
13675 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013676 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013677 }, {
13678 .eraseblocks = { {384 * 1024, 1} },
13679 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13680 }
13681 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013682 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013683 .unlock = unlock_sst_fwhub,
13684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013686 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013687 },
13688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013689 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013690 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13691 * and is only honored for 64k block erase, but not 4k sector erase.
13692 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013693 .vendor = "SST",
13694 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013695 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013696 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013697 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013698 .total_size = 512,
13699 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013700 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013701 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013702 .probe = probe_jedec,
13703 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013704 .block_erasers =
13705 {
13706 {
13707 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013708 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013709 }, {
13710 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013711 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013712 }, {
13713 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013714 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013715 },
13716 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013717 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013718 .unlock = unlock_sst_fwhub,
13719 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013720 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013721 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013722 },
13723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013724 {
13725 .vendor = "SST",
13726 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013727 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013728 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013729 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013730 .total_size = 512,
13731 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013732 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013733 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013734 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013735 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013736 .block_erasers =
13737 {
13738 {
13739 .eraseblocks = { {4 * 1024, 128} },
13740 .block_erase = erase_sector_49lfxxxc,
13741 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013742 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013743 {64 * 1024, 7},
13744 {32 * 1024, 1},
13745 {8 * 1024, 2},
13746 {16 * 1024, 1},
13747 },
Sean Nelson69e58112010-03-23 17:10:28 +000013748 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013749 }
13750 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013751 .printlock = printlock_regspace2_block_eraser_1,
13752 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013753 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013755 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013756 },
13757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013758 {
13759 .vendor = "SST",
13760 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013761 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013762 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013763 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013764 .total_size = 1024,
13765 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013766 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013767 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013768 .probe = probe_jedec,
13769 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013770 .block_erasers =
13771 {
13772 {
13773 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013774 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013775 }, {
13776 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013777 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013778 }, {
13779 .eraseblocks = { {1024 * 1024, 1} },
13780 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13781 }
13782 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013783 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013784 .unlock = unlock_sst_fwhub,
13785 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013787 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013788 },
13789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013790 {
13791 .vendor = "SST",
13792 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013793 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013794 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013795 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013796 .total_size = 1024,
13797 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013798 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013799 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013800 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013801 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013802 .block_erasers =
13803 {
13804 {
13805 .eraseblocks = { {4 * 1024, 256} },
13806 .block_erase = erase_sector_49lfxxxc,
13807 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013808 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013809 {64 * 1024, 15},
13810 {32 * 1024, 1},
13811 {8 * 1024, 2},
13812 {16 * 1024, 1},
13813 },
Sean Nelson69e58112010-03-23 17:10:28 +000013814 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013815 }
13816 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013817 .printlock = printlock_regspace2_block_eraser_1,
13818 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013819 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013820 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013821 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013822 },
13823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013824 {
13825 .vendor = "SST",
13826 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013827 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013828 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013829 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013830 .total_size = 2048,
13831 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013832 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013833 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013834 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013835 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013836 .block_erasers =
13837 {
13838 {
13839 .eraseblocks = { {4 * 1024, 512} },
13840 .block_erase = erase_sector_49lfxxxc,
13841 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013842 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013843 {64 * 1024, 31},
13844 {32 * 1024, 1},
13845 {8 * 1024, 2},
13846 {16 * 1024, 1},
13847 },
Sean Nelson69e58112010-03-23 17:10:28 +000013848 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013849 }
13850 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013851 .printlock = printlock_regspace2_block_eraser_1,
13852 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013853 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013855 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013856 },
13857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013858 {
13859 .vendor = "SST",
13860 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013861 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013862 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013863 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013864 .total_size = 256,
13865 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013866 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013867 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013868 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013869 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013870 .block_erasers =
13871 {
13872 {
13873 .eraseblocks = { {4 * 1024, 64} },
13874 .block_erase = erase_sector_jedec,
13875 }, {
13876 .eraseblocks = { {16 * 1024, 16} },
13877 .block_erase = erase_block_jedec,
13878 }, {
13879 .eraseblocks = { {256 * 1024, 1} },
13880 .block_erase = NULL,
13881 }
13882 },
Sean Nelson35727f72010-01-28 23:55:12 +000013883 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013885 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013886 },
13887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013888 {
13889 .vendor = "SST",
13890 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013891 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013892 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013893 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013894 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013895 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013896 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013897 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013898 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013899 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013900 .block_erasers =
13901 {
13902 {
13903 .eraseblocks = { {4 * 1024, 64} },
13904 .block_erase = erase_sector_jedec,
13905 }, {
13906 .eraseblocks = { {16 * 1024, 16} },
13907 .block_erase = erase_block_jedec,
13908 }, {
13909 .eraseblocks = { {256 * 1024, 1} },
13910 .block_erase = NULL,
13911 }
13912 },
Sean Nelson35727f72010-01-28 23:55:12 +000013913 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013915 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013916 },
13917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013918 {
13919 .vendor = "SST",
13920 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013921 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013922 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013923 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013924 .total_size = 512,
13925 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013926 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013927 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013928 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013929 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013930 .block_erasers =
13931 {
13932 {
13933 .eraseblocks = { {4 * 1024, 128} },
13934 .block_erase = erase_sector_jedec,
13935 }, {
13936 .eraseblocks = { {64 * 1024, 8} },
13937 .block_erase = erase_block_jedec,
13938 }, {
13939 .eraseblocks = { {512 * 1024, 1} },
13940 .block_erase = NULL,
13941 }
13942 },
Sean Nelson35727f72010-01-28 23:55:12 +000013943 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013944 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013945 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013946 },
13947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013948 {
13949 .vendor = "SST",
13950 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013951 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013952 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013953 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013954 .total_size = 512,
13955 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013956 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013957 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013958 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013959 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013960 .block_erasers =
13961 {
13962 {
13963 .eraseblocks = { {4 * 1024, 128} },
13964 .block_erase = erase_sector_jedec,
13965 }, {
13966 .eraseblocks = { {64 * 1024, 8} },
13967 .block_erase = erase_block_jedec,
13968 }, {
13969 .eraseblocks = { {512 * 1024, 1} },
13970 .block_erase = NULL,
13971 }
13972 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013973 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013974 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013976 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013977 },
13978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013979 {
13980 .vendor = "SST",
13981 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013982 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013983 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020013984 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013985 .total_size = 1024,
13986 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013987 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013988 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013989 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013990 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013991 .block_erasers =
13992 {
13993 {
13994 .eraseblocks = { {4 * 1024, 256} },
13995 .block_erase = erase_sector_jedec,
13996 }, {
13997 .eraseblocks = { {64 * 1024, 16} },
13998 .block_erase = erase_block_jedec,
13999 }, {
14000 .eraseblocks = { {1024 * 1024, 1} },
14001 .block_erase = NULL,
14002 }
14003 },
Sean Nelson35727f72010-01-28 23:55:12 +000014004 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014006 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014007 },
14008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 {
14010 .vendor = "SST",
14011 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014012 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014013 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014014 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014015 .total_size = 2048,
14016 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014017 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014018 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014019 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014020 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014021 .block_erasers =
14022 {
14023 {
14024 .eraseblocks = { {4 * 1024, 512} },
14025 .block_erase = erase_sector_49lfxxxc,
14026 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014027 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014028 {64 * 1024, 31},
14029 {32 * 1024, 1},
14030 {8 * 1024, 2},
14031 {16 * 1024, 1},
14032 },
Sean Nelson69e58112010-03-23 17:10:28 +000014033 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014034 }
14035 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014036 .printlock = printlock_regspace2_block_eraser_1,
14037 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014038 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014039 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014040 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014041 },
14042
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014043 {
14044 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014045 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014046 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014047 .manufacture_id = ST_ID,
14048 .model_id = ST_M29F002B,
14049 .total_size = 256,
14050 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014051 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014052 .tested = TEST_UNTESTED,
14053 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014054 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014055 .block_erasers =
14056 {
14057 {
14058 .eraseblocks = {
14059 {16 * 1024, 1},
14060 {8 * 1024, 2},
14061 {32 * 1024, 1},
14062 {64 * 1024, 3},
14063 },
14064 .block_erase = erase_sector_jedec,
14065 }, {
14066 .eraseblocks = { {256 * 1024, 1} },
14067 .block_erase = erase_chip_block_jedec,
14068 }
14069 },
Sean Nelson35727f72010-01-28 23:55:12 +000014070 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014071 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014072 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014073 },
14074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014075 {
14076 .vendor = "ST",
14077 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014078 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014079 .manufacture_id = ST_ID,
14080 .model_id = ST_M29F002T,
14081 .total_size = 256,
14082 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014083 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014084 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014085 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014086 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014087 .block_erasers =
14088 {
14089 {
14090 .eraseblocks = {
14091 {64 * 1024, 3},
14092 {32 * 1024, 1},
14093 {8 * 1024, 2},
14094 {16 * 1024, 1},
14095 },
14096 .block_erase = erase_sector_jedec,
14097 }, {
14098 .eraseblocks = { {256 * 1024, 1} },
14099 .block_erase = erase_chip_block_jedec,
14100 }
14101 },
Sean Nelson35727f72010-01-28 23:55:12 +000014102 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014103 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014104 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014105 },
14106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014107 {
14108 .vendor = "ST",
14109 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014110 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014111 .manufacture_id = ST_ID,
14112 .model_id = ST_M29F040B,
14113 .total_size = 512,
14114 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014115 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14116 .tested = TEST_UNTESTED,
14117 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014118 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014119 .block_erasers =
14120 {
14121 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014122 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014123 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014124 }, {
14125 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014126 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014127 }
14128 },
Sean Nelson35727f72010-01-28 23:55:12 +000014129 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014131 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014132 },
14133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014134 {
Sean Nelson35727f72010-01-28 23:55:12 +000014135 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014136 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014137 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014138 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014139 .manufacture_id = ST_ID,
14140 .model_id = ST_M29F400BB,
14141 .total_size = 512,
14142 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014143 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014144 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014145 .probe = probe_jedec,
14146 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014147 .block_erasers =
14148 {
14149 {
14150 .eraseblocks = {
14151 {16 * 1024, 1},
14152 {8 * 1024, 2},
14153 {32 * 1024, 1},
14154 {64 * 1024, 7},
14155 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014156 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014157 }, {
14158 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014159 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014160 }
14161 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014162 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014164 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014165 },
14166 {
14167 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14168 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014169 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014170 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014171 .manufacture_id = ST_ID,
14172 .model_id = ST_M29F400BT,
14173 .total_size = 512,
14174 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014175 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014176 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014177 .probe = probe_jedec,
14178 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014179 .block_erasers =
14180 {
14181 {
14182 .eraseblocks = {
14183 {64 * 1024, 7},
14184 {32 * 1024, 1},
14185 {8 * 1024, 2},
14186 {16 * 1024, 1},
14187 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014188 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014189 }, {
14190 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014191 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014192 }
14193 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014195 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014196 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014197 },
14198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014199 {
14200 .vendor = "ST",
14201 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014202 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014203 .manufacture_id = ST_ID,
14204 .model_id = ST_M29W010B,
14205 .total_size = 128,
14206 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014207 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014208 .tested = TEST_UNTESTED,
14209 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014210 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014211 .block_erasers =
14212 {
14213 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014214 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014215 .block_erase = erase_sector_jedec,
14216 }, {
14217 .eraseblocks = { {128 * 1024, 1} },
14218 .block_erase = erase_chip_block_jedec,
14219 }
14220 },
Sean Nelson35727f72010-01-28 23:55:12 +000014221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014223 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014224 },
14225
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014226 {
14227 .vendor = "ST",
14228 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014229 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014230 .manufacture_id = ST_ID,
14231 .model_id = ST_M29W040B,
14232 .total_size = 512,
14233 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014235 .tested = TEST_UNTESTED,
14236 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014237 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014238 .block_erasers =
14239 {
14240 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014241 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014242 .block_erase = erase_sector_jedec,
14243 }, {
14244 .eraseblocks = { {512 * 1024, 1} },
14245 .block_erase = erase_chip_block_jedec,
14246 }
14247 },
Sean Nelson35727f72010-01-28 23:55:12 +000014248 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014249 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014250 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014251 },
14252
Stefan Taunereb582572012-09-21 12:52:50 +000014253 {
14254 .vendor = "ST",
14255 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014256 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000014257 .manufacture_id = ST_ID,
14258 .model_id = ST_M29W512B,
14259 .total_size = 64,
14260 .page_size = 64 * 1024,
14261 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014262 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014263 .probe = probe_jedec,
14264 .probe_timing = TIMING_ZERO,
14265 .block_erasers =
14266 {
14267 {
14268 .eraseblocks = { {64 * 1024, 1} },
14269 .block_erase = erase_chip_block_jedec,
14270 }
14271 },
14272 .write = write_jedec_1,
14273 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014274 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014275 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014277 {
14278 .vendor = "ST",
14279 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014280 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 .manufacture_id = ST_ID,
14282 .model_id = ST_M50FLW040A,
14283 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014284 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014285 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014286 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014287 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014288 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014289 .block_erasers =
14290 {
14291 {
Sean Nelson329bde72010-01-19 16:39:19 +000014292 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014293 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014294 {64 * 1024, 5}, /* block */
14295 {4 * 1024, 16}, /* sector */
14296 {4 * 1024, 16}, /* sector */
14297 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014298 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014299 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014300 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014301 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014302 }
14303 },
Sean Nelson28accc22010-03-19 18:47:06 +000014304 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014305 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014307 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014308 },
14309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014310 {
14311 .vendor = "ST",
14312 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014313 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014314 .manufacture_id = ST_ID,
14315 .model_id = ST_M50FLW040B,
14316 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014317 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014318 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014319 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014320 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014321 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014322 .block_erasers =
14323 {
14324 {
Sean Nelson329bde72010-01-19 16:39:19 +000014325 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014326 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014327 {4 * 1024, 16}, /* sector */
14328 {64 * 1024, 5}, /* block */
14329 {4 * 1024, 16}, /* sector */
14330 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014331 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014332 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014333 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014334 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014335 }
14336 },
Sean Nelson28accc22010-03-19 18:47:06 +000014337 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014338 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014339 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014340 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014341 },
14342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014343 {
14344 .vendor = "ST",
14345 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014346 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014347 .manufacture_id = ST_ID,
14348 .model_id = ST_M50FLW080A,
14349 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014350 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014351 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014352 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014353 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014354 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014355 .block_erasers =
14356 {
14357 {
Sean Nelson329bde72010-01-19 16:39:19 +000014358 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014359 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014360 {64 * 1024, 13}, /* block */
14361 {4 * 1024, 16}, /* sector */
14362 {4 * 1024, 16}, /* sector */
14363 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014364 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014365 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014366 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014367 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014368 }
14369 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014370 .printlock = printlock_regspace2_block_eraser_0,
14371 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014372 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014374 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014375 },
14376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014377 {
14378 .vendor = "ST",
14379 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014380 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014381 .manufacture_id = ST_ID,
14382 .model_id = ST_M50FLW080B,
14383 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014384 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014385 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014386 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014387 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014388 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014389 .block_erasers =
14390 {
14391 {
Sean Nelson329bde72010-01-19 16:39:19 +000014392 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014393 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014394 {4 * 1024, 16}, /* sector */
14395 {64 * 1024, 13}, /* block */
14396 {4 * 1024, 16}, /* sector */
14397 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014398 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014399 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014400 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014401 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014402 }
14403 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014404 .printlock = printlock_regspace2_block_eraser_0,
14405 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014406 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014407 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014408 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014409 },
14410
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014411 {
14412 .vendor = "ST",
14413 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014414 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014415 .manufacture_id = ST_ID,
14416 .model_id = ST_M50FW002,
14417 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014418 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014419 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014420 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014421 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014422 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014423 .block_erasers =
14424 {
14425 {
14426 .eraseblocks = {
14427 {64 * 1024, 3},
14428 {32 * 1024, 1},
14429 {8 * 1024, 2},
14430 {16 * 1024, 1},
14431 },
Sean Nelson28accc22010-03-19 18:47:06 +000014432 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014433 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014434 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014435 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014436 }
14437 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014438 .printlock = printlock_regspace2_block_eraser_0,
14439 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014440 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014441 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014442 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014443 },
14444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014445 {
14446 .vendor = "ST",
14447 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014448 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014449 .manufacture_id = ST_ID,
14450 .model_id = ST_M50FW016,
14451 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014452 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014453 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014454 .tested = TEST_UNTESTED,
14455 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014456 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014457 .block_erasers =
14458 {
14459 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014460 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014461 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014462 }
14463 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014464 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014465 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014466 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014467 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014468 },
14469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014470 {
14471 .vendor = "ST",
14472 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014473 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014474 .manufacture_id = ST_ID,
14475 .model_id = ST_M50FW040,
14476 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014477 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014478 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014479 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014480 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014481 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014482 .block_erasers =
14483 {
14484 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014485 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014486 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014487 }
14488 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014489 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014490 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014491 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014492 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014493 },
14494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014495 {
14496 .vendor = "ST",
14497 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014498 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014499 .manufacture_id = ST_ID,
14500 .model_id = ST_M50FW080,
14501 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014502 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014503 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014504 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014505 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014506 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014507 .block_erasers =
14508 {
14509 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014510 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014511 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014512 }
14513 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014514 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014515 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014517 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014518 },
14519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014520 {
14521 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014522 .name = "M50LPW080",
14523 .bustype = BUS_LPC, /* A/A Mux */
14524 .manufacture_id = ST_ID,
14525 .model_id = ST_M50LPW080,
14526 .total_size = 1024,
14527 .page_size = 0,
14528 .feature_bits = FEATURE_REGISTERMAP,
14529 .tested = TEST_UNTESTED,
14530 .probe = probe_82802ab,
14531 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14532 .block_erasers =
14533 {
14534 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014535 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014536 .block_erase = erase_block_82802ab,
14537 }
14538 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014539 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014540 .write = write_82802ab,
14541 .read = read_memmapped,
14542 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14543 },
14544
14545 {
14546 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014547 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014548 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014549 .manufacture_id = ST_ID,
14550 .model_id = ST_M50LPW116,
14551 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014552 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014553 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014554 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014555 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014556 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014557 .block_erasers =
14558 {
14559 {
14560 .eraseblocks = {
14561 {4 * 1024, 16},
14562 {64 * 1024, 30},
14563 {32 * 1024, 1},
14564 {8 * 1024, 2},
14565 {16 * 1024, 1},
14566 },
Sean Nelson28accc22010-03-19 18:47:06 +000014567 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014568 }
14569 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014570 .printlock = printlock_regspace2_block_eraser_0,
14571 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014572 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014574 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014575 },
14576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014577 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014578 .vendor = "SyncMOS/MoselVitelic",
14579 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014580 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014581 .manufacture_id = SYNCMOS_MVC_ID,
14582 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014583 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014584 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014585 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014586 .tested = TEST_UNTESTED,
14587 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014588 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014589 .block_erasers =
14590 {
14591 {
14592 .eraseblocks = { {512, 256} },
14593 .block_erase = erase_sector_jedec,
14594 }, {
14595 .eraseblocks = { {128 * 1024, 1} },
14596 .block_erase = erase_chip_block_jedec,
14597 },
14598 },
Sean Nelson35727f72010-01-28 23:55:12 +000014599 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014601 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014602 },
14603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014604 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014605 .vendor = "SyncMOS/MoselVitelic",
14606 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014607 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014608 .manufacture_id = SYNCMOS_MVC_ID,
14609 .model_id = SM_MVC_29C51001T,
14610 .total_size = 128,
14611 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014612 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014613 .tested = TEST_UNTESTED,
14614 .probe = probe_jedec,
14615 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14616 .block_erasers =
14617 {
14618 {
14619 .eraseblocks = { {512, 256} },
14620 .block_erase = erase_sector_jedec,
14621 }, {
14622 .eraseblocks = { {128 * 1024, 1} },
14623 .block_erase = erase_chip_block_jedec,
14624 },
14625 },
14626 .write = write_jedec_1,
14627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014628 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014629 },
14630
14631 {
14632 .vendor = "SyncMOS/MoselVitelic",
14633 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014634 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014635 .manufacture_id = SYNCMOS_MVC_ID,
14636 .model_id = SM_MVC_29C51002B,
14637 .total_size = 256,
14638 .page_size = 512,
14639 .feature_bits = FEATURE_EITHER_RESET,
14640 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014641 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014642 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014643 .block_erasers =
14644 {
14645 {
14646 .eraseblocks = { {512, 512} },
14647 .block_erase = erase_sector_jedec,
14648 }, {
14649 .eraseblocks = { {256 * 1024, 1} },
14650 .block_erase = erase_chip_block_jedec,
14651 },
14652 },
Sean Nelson35727f72010-01-28 23:55:12 +000014653 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014654 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014655 },
14656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014657 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014658 .vendor = "SyncMOS/MoselVitelic",
14659 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014660 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014661 .manufacture_id = SYNCMOS_MVC_ID,
14662 .model_id = SM_MVC_29C51002T,
14663 .total_size = 256,
14664 .page_size = 512,
14665 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014666 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014667 .probe = probe_jedec,
14668 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14669 .block_erasers =
14670 {
14671 {
14672 .eraseblocks = { {512, 512} },
14673 .block_erase = erase_sector_jedec,
14674 }, {
14675 .eraseblocks = { {256 * 1024, 1} },
14676 .block_erase = erase_chip_block_jedec,
14677 },
14678 },
14679 .write = write_jedec_1,
14680 .read = read_memmapped,
14681 },
14682
14683 {
14684 .vendor = "SyncMOS/MoselVitelic",
14685 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014686 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014687 .manufacture_id = SYNCMOS_MVC_ID,
14688 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014689 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014690 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014691 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 .tested = TEST_UNTESTED,
14693 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014694 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014695 .block_erasers =
14696 {
14697 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014698 .eraseblocks = { {1024, 512} },
14699 .block_erase = erase_sector_jedec,
14700 }, {
14701 .eraseblocks = { {512 * 1024, 1} },
14702 .block_erase = erase_chip_block_jedec,
14703 },
14704 },
14705 .write = write_jedec_1,
14706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014707 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014708 },
14709
14710 {
14711 .vendor = "SyncMOS/MoselVitelic",
14712 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014713 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014714 .manufacture_id = SYNCMOS_MVC_ID,
14715 .model_id = SM_MVC_29C51004T,
14716 .total_size = 512,
14717 .page_size = 1024,
14718 .feature_bits = FEATURE_EITHER_RESET,
14719 .tested = TEST_UNTESTED,
14720 .probe = probe_jedec,
14721 .probe_timing = TIMING_ZERO,
14722 .block_erasers =
14723 {
14724 {
14725 .eraseblocks = { {1024, 512} },
14726 .block_erase = erase_sector_jedec,
14727 }, {
14728 .eraseblocks = { {512 * 1024, 1} },
14729 .block_erase = erase_chip_block_jedec,
14730 },
14731 },
14732 .write = write_jedec_1,
14733 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014734 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014735 },
14736
14737 {
14738 .vendor = "SyncMOS/MoselVitelic",
14739 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014740 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014741 .manufacture_id = SYNCMOS_MVC_ID,
14742 .model_id = SM_MVC_29C31004B,
14743 .total_size = 512,
14744 .page_size = 1024,
14745 .feature_bits = FEATURE_EITHER_RESET,
14746 .tested = TEST_UNTESTED,
14747 .probe = probe_jedec,
14748 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14749 .block_erasers =
14750 {
14751 {
14752 .eraseblocks = { {1024, 512} },
14753 .block_erase = erase_sector_jedec,
14754 }, {
14755 .eraseblocks = { {512 * 1024, 1} },
14756 .block_erase = erase_chip_block_jedec,
14757 },
14758 },
14759 .write = write_jedec_1,
14760 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014761 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014762 },
14763
14764 {
14765 .vendor = "SyncMOS/MoselVitelic",
14766 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014767 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014768 .manufacture_id = SYNCMOS_MVC_ID,
14769 .model_id = SM_MVC_29C31004T,
14770 .total_size = 512,
14771 .page_size = 1024,
14772 .feature_bits = FEATURE_EITHER_RESET,
14773 .tested = TEST_UNTESTED,
14774 .probe = probe_jedec,
14775 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14776 .block_erasers =
14777 {
14778 {
14779 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014780 .block_erase = erase_sector_jedec,
14781 }, {
14782 .eraseblocks = { {512 * 1024, 1} },
14783 .block_erase = erase_chip_block_jedec,
14784 },
14785 },
Sean Nelson35727f72010-01-28 23:55:12 +000014786 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014787 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014788 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014789 },
14790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014791 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014792 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014793 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014794 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014795 .manufacture_id = TI_OLD_ID,
14796 .model_id = TI_TMS29F002RB,
14797 .total_size = 256,
14798 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014799 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014800 .tested = TEST_UNTESTED,
14801 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014802 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014803 .block_erasers =
14804 {
14805 {
14806 .eraseblocks = {
14807 {16 * 1024, 1},
14808 {8 * 1024, 2},
14809 {32 * 1024, 1},
14810 {64 * 1024, 3},
14811 },
14812 .block_erase = erase_sector_jedec,
14813 }, {
14814 .eraseblocks = { {256 * 1024, 1} },
14815 .block_erase = erase_chip_block_jedec,
14816 },
14817 },
Sean Nelson35727f72010-01-28 23:55:12 +000014818 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014819 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014820 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014821 },
14822
14823 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014824 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014825 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014826 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014827 .manufacture_id = TI_OLD_ID,
14828 .model_id = TI_TMS29F002RT,
14829 .total_size = 256,
14830 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014831 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014832 .tested = TEST_UNTESTED,
14833 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014834 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014835 .block_erasers =
14836 {
14837 {
14838 .eraseblocks = {
14839 {64 * 1024, 3},
14840 {32 * 1024, 1},
14841 {8 * 1024, 2},
14842 {16 * 1024, 1},
14843 },
14844 .block_erase = erase_sector_jedec,
14845 }, {
14846 .eraseblocks = { {256 * 1024, 1} },
14847 .block_erase = erase_chip_block_jedec,
14848 },
14849 },
Sean Nelson35727f72010-01-28 23:55:12 +000014850 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014851 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014852 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014853 },
14854
14855 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014856 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014857 .name = "W25Q40.V",
14858 .bustype = BUS_SPI,
14859 .manufacture_id = WINBOND_NEX_ID,
14860 .model_id = WINBOND_NEX_W25Q40_V,
14861 .total_size = 512,
14862 .page_size = 256,
14863 /* supports SFDP */
14864 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14865 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014866 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014867 .probe = probe_spi_rdid,
14868 .probe_timing = TIMING_ZERO,
14869 .block_erasers =
14870 {
14871 {
14872 .eraseblocks = { {4 * 1024, 128} },
14873 .block_erase = spi_block_erase_20,
14874 }, {
14875 .eraseblocks = { {32 * 1024, 16} },
14876 .block_erase = spi_block_erase_52,
14877 }, {
14878 .eraseblocks = { {64 * 1024, 8} },
14879 .block_erase = spi_block_erase_d8,
14880 }, {
14881 .eraseblocks = { {512 * 1024, 1} },
14882 .block_erase = spi_block_erase_60,
14883 }, {
14884 .eraseblocks = { {512 * 1024, 1} },
14885 .block_erase = spi_block_erase_c7,
14886 }
14887 },
14888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14889 .unlock = spi_disable_blockprotect,
14890 .write = spi_chip_write_256, /* Multi I/O supported */
14891 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14892 .voltage = {2700, 3600},
14893 },
14894
14895 {
14896 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014897 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014898 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014899 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014900 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014901 .total_size = 1024,
14902 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014903 /* supports SFDP */
14904 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014906 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014907 .probe = probe_spi_rdid,
14908 .probe_timing = TIMING_ZERO,
14909 .block_erasers =
14910 {
14911 {
14912 .eraseblocks = { {4 * 1024, 256} },
14913 .block_erase = spi_block_erase_20,
14914 }, {
14915 .eraseblocks = { {32 * 1024, 32} },
14916 .block_erase = spi_block_erase_52,
14917 }, {
14918 .eraseblocks = { {64 * 1024, 16} },
14919 .block_erase = spi_block_erase_d8,
14920 }, {
14921 .eraseblocks = { {1024 * 1024, 1} },
14922 .block_erase = spi_block_erase_60,
14923 }, {
14924 .eraseblocks = { {1024 * 1024, 1} },
14925 .block_erase = spi_block_erase_c7,
14926 }
14927 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014928 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014929 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014930 .write = spi_chip_write_256,
14931 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014932 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014933 },
14934
14935 {
14936 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014937 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014938 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014939 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014940 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014941 .total_size = 2048,
14942 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014943 /* supports SFDP */
14944 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014946 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014947 .probe = probe_spi_rdid,
14948 .probe_timing = TIMING_ZERO,
14949 .block_erasers =
14950 {
14951 {
14952 .eraseblocks = { {4 * 1024, 512} },
14953 .block_erase = spi_block_erase_20,
14954 }, {
14955 .eraseblocks = { {32 * 1024, 64} },
14956 .block_erase = spi_block_erase_52,
14957 }, {
14958 .eraseblocks = { {64 * 1024, 32} },
14959 .block_erase = spi_block_erase_d8,
14960 }, {
14961 .eraseblocks = { {2 * 1024 * 1024, 1} },
14962 .block_erase = spi_block_erase_60,
14963 }, {
14964 .eraseblocks = { {2 * 1024 * 1024, 1} },
14965 .block_erase = spi_block_erase_c7,
14966 }
14967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014969 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014970 .write = spi_chip_write_256,
14971 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014972 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014973 },
14974
14975 {
14976 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014977 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014978 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014979 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014980 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014981 .total_size = 4096,
14982 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014983 /* supports SFDP */
14984 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014985 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014986 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014987 .probe = probe_spi_rdid,
14988 .probe_timing = TIMING_ZERO,
14989 .block_erasers =
14990 {
14991 {
14992 .eraseblocks = { {4 * 1024, 1024} },
14993 .block_erase = spi_block_erase_20,
14994 }, {
14995 .eraseblocks = { {32 * 1024, 128} },
14996 .block_erase = spi_block_erase_52,
14997 }, {
14998 .eraseblocks = { {64 * 1024, 64} },
14999 .block_erase = spi_block_erase_d8,
15000 }, {
15001 .eraseblocks = { {4 * 1024 * 1024, 1} },
15002 .block_erase = spi_block_erase_60,
15003 }, {
15004 .eraseblocks = { {4 * 1024 * 1024, 1} },
15005 .block_erase = spi_block_erase_c7,
15006 }
15007 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015008 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015009 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015010 .write = spi_chip_write_256,
15011 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015012 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015013 },
15014
15015 {
15016 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015017 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015018 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000015019 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015020 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000015021 .total_size = 8192,
15022 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015023 /* supports SFDP */
15024 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015026 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000015027 .probe = probe_spi_rdid,
15028 .probe_timing = TIMING_ZERO,
15029 .block_erasers =
15030 {
15031 {
15032 .eraseblocks = { {4 * 1024, 2048} },
15033 .block_erase = spi_block_erase_20,
15034 }, {
15035 .eraseblocks = { {32 * 1024, 256} },
15036 .block_erase = spi_block_erase_52,
15037 }, {
15038 .eraseblocks = { {64 * 1024, 128} },
15039 .block_erase = spi_block_erase_d8,
15040 }, {
15041 .eraseblocks = { {8 * 1024 * 1024, 1} },
15042 .block_erase = spi_block_erase_60,
15043 }, {
15044 .eraseblocks = { {8 * 1024 * 1024, 1} },
15045 .block_erase = spi_block_erase_c7,
15046 }
15047 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015048 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015049 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000015050 .write = spi_chip_write_256,
15051 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015052 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015053 },
15054
15055 {
15056 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015057 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015058 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015059 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015060 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015061 .total_size = 16384,
15062 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015063 /* supports SFDP */
15064 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015065 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015066 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015067 .probe = probe_spi_rdid,
15068 .probe_timing = TIMING_ZERO,
15069 .block_erasers =
15070 {
15071 {
15072 .eraseblocks = { {4 * 1024, 4096} },
15073 .block_erase = spi_block_erase_20,
15074 }, {
15075 .eraseblocks = { {32 * 1024, 512} },
15076 .block_erase = spi_block_erase_52,
15077 }, {
15078 .eraseblocks = { {64 * 1024, 256} },
15079 .block_erase = spi_block_erase_d8,
15080 }, {
15081 .eraseblocks = { {16 * 1024 * 1024, 1} },
15082 .block_erase = spi_block_erase_60,
15083 }, {
15084 .eraseblocks = { {16 * 1024 * 1024, 1} },
15085 .block_erase = spi_block_erase_c7,
15086 }
15087 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015088 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015089 .unlock = spi_disable_blockprotect,
15090 .write = spi_chip_write_256,
15091 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015092 .voltage = {2700, 3600},
15093 },
15094
15095 {
15096 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020015097 .name = "W25Q256.V",
15098 .bustype = BUS_SPI,
15099 .manufacture_id = WINBOND_NEX_ID,
15100 .model_id = WINBOND_NEX_W25Q256_V,
15101 .total_size = 32768,
15102 .page_size = 256,
15103 /* supports SFDP */
15104 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15105 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010015106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
15107 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
15108 .tested = TEST_UNTESTED,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015109 .probe = probe_spi_rdid,
15110 .probe_timing = TIMING_ZERO,
15111 .block_erasers =
15112 {
15113 {
15114 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020015115 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015116 }, {
15117 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020015118 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015119 }, {
15120 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020015121 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015122 }, {
15123 .eraseblocks = { {32 * 1024 * 1024, 1} },
15124 .block_erase = spi_block_erase_60,
15125 }, {
15126 .eraseblocks = { {32 * 1024 * 1024, 1} },
15127 .block_erase = spi_block_erase_c7,
15128 }
15129 },
15130 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15131 .unlock = spi_disable_blockprotect,
15132 .write = spi_chip_write_256,
15133 .read = spi_chip_read,
15134 .voltage = {2700, 3600},
15135 },
15136
15137 {
15138 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015139 .name = "W25Q20.W",
15140 .bustype = BUS_SPI,
15141 .manufacture_id = WINBOND_NEX_ID,
15142 .model_id = WINBOND_NEX_W25Q20_W,
15143 .total_size = 256,
15144 .page_size = 256,
15145 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15147 .tested = TEST_UNTESTED,
15148 .probe = probe_spi_rdid,
15149 .probe_timing = TIMING_ZERO,
15150 .block_erasers =
15151 {
15152 {
15153 .eraseblocks = { {4 * 1024, 64} },
15154 .block_erase = spi_block_erase_20,
15155 }, {
15156 .eraseblocks = { {32 * 1024, 8} },
15157 .block_erase = spi_block_erase_52,
15158 }, {
15159 .eraseblocks = { {64 * 1024, 4} },
15160 .block_erase = spi_block_erase_d8,
15161 }, {
15162 .eraseblocks = { {256 * 1024, 1} },
15163 .block_erase = spi_block_erase_60,
15164 }, {
15165 .eraseblocks = { {256 * 1024, 1} },
15166 .block_erase = spi_block_erase_c7,
15167 }
15168 },
15169 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15170 .unlock = spi_disable_blockprotect,
15171 .write = spi_chip_write_256,
15172 .read = spi_chip_read,
15173 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15174 },
15175
15176 {
15177 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020015178 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015179 .bustype = BUS_SPI,
15180 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020015181 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015182 .total_size = 512,
15183 .page_size = 256,
15184 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15185 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15186 .tested = TEST_UNTESTED,
15187 .probe = probe_spi_rdid,
15188 .probe_timing = TIMING_ZERO,
15189 .block_erasers =
15190 {
15191 {
15192 .eraseblocks = { {4 * 1024, 128} },
15193 .block_erase = spi_block_erase_20,
15194 }, {
15195 .eraseblocks = { {32 * 1024, 16} },
15196 .block_erase = spi_block_erase_52,
15197 }, {
15198 .eraseblocks = { {64 * 1024, 8} },
15199 .block_erase = spi_block_erase_d8,
15200 }, {
15201 .eraseblocks = { {512 * 1024, 1} },
15202 .block_erase = spi_block_erase_60,
15203 }, {
15204 .eraseblocks = { {512 * 1024, 1} },
15205 .block_erase = spi_block_erase_c7,
15206 }
15207 },
15208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15209 .unlock = spi_disable_blockprotect,
15210 .write = spi_chip_write_256,
15211 .read = spi_chip_read,
15212 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15213 },
15214
15215 {
15216 .vendor = "Winbond",
David Hendricksc699f5c2018-03-11 17:29:49 -070015217 .name = "W25Q80BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015218 .bustype = BUS_SPI,
15219 .manufacture_id = WINBOND_NEX_ID,
David Hendricksc699f5c2018-03-11 17:29:49 -070015220 .model_id = WINBOND_NEX_W25Q80BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015221 .total_size = 1024,
15222 .page_size = 256,
15223 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015225 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015226 .probe = probe_spi_rdid,
15227 .probe_timing = TIMING_ZERO,
15228 .block_erasers =
15229 {
15230 {
15231 .eraseblocks = { {4 * 1024, 256} },
15232 .block_erase = spi_block_erase_20,
15233 }, {
15234 .eraseblocks = { {32 * 1024, 32} },
15235 .block_erase = spi_block_erase_52,
15236 }, {
15237 .eraseblocks = { {64 * 1024, 16} },
15238 .block_erase = spi_block_erase_d8,
15239 }, {
15240 .eraseblocks = { {1 * 1024 * 1024, 1} },
15241 .block_erase = spi_block_erase_60,
15242 }, {
15243 .eraseblocks = { {1 * 1024 * 1024, 1} },
15244 .block_erase = spi_block_erase_c7,
15245 }
15246 },
15247 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15248 .unlock = spi_disable_blockprotect,
15249 .write = spi_chip_write_256,
15250 .read = spi_chip_read,
15251 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15252 },
Nico Huber25683572018-03-30 13:50:13 +020015253
15254 {
15255 .vendor = "Winbond",
15256 .name = "W25Q40EW",
15257 .bustype = BUS_SPI,
15258 .manufacture_id = WINBOND_NEX_ID,
15259 .model_id = WINBOND_NEX_W25Q40EW,
15260 .total_size = 512,
15261 .page_size = 256,
15262 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15264 .tested = TEST_UNTESTED,
15265 .probe = probe_spi_rdid,
15266 .probe_timing = TIMING_ZERO,
15267 .block_erasers =
15268 {
15269 {
15270 .eraseblocks = { {4 * 1024, 128} },
15271 .block_erase = spi_block_erase_20,
15272 }, {
15273 .eraseblocks = { {32 * 1024, 16} },
15274 .block_erase = spi_block_erase_52,
15275 }, {
15276 .eraseblocks = { {64 * 1024, 8} },
15277 .block_erase = spi_block_erase_d8,
15278 }, {
15279 .eraseblocks = { {512 * 1024, 1} },
15280 .block_erase = spi_block_erase_60,
15281 }, {
15282 .eraseblocks = { {512 * 1024, 1} },
15283 .block_erase = spi_block_erase_c7,
15284 }
15285 },
15286 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15287 .unlock = spi_disable_blockprotect,
15288 .write = spi_chip_write_256,
15289 .read = spi_chip_read,
15290 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15291 },
15292
Stanislav Sedovf5775442018-03-07 14:16:51 -080015293 {
15294 .vendor = "Winbond",
15295 .name = "W25Q80EW",
15296 .bustype = BUS_SPI,
15297 .manufacture_id = WINBOND_NEX_ID,
15298 .model_id = WINBOND_NEX_W25Q80EW,
15299 .total_size = 1024,
15300 .page_size = 256,
15301 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15303 .tested = TEST_OK_PREW,
15304 .probe = probe_spi_rdid,
15305 .probe_timing = TIMING_ZERO,
15306 .block_erasers =
15307 {
15308 {
15309 .eraseblocks = { {4 * 1024, 256} },
15310 .block_erase = spi_block_erase_20,
15311 }, {
15312 .eraseblocks = { {32 * 1024, 32} },
15313 .block_erase = spi_block_erase_52,
15314 }, {
15315 .eraseblocks = { {64 * 1024, 16} },
15316 .block_erase = spi_block_erase_d8,
15317 }, {
15318 .eraseblocks = { {1 * 1024 * 1024, 1} },
15319 .block_erase = spi_block_erase_60,
15320 }, {
15321 .eraseblocks = { {1 * 1024 * 1024, 1} },
15322 .block_erase = spi_block_erase_c7,
15323 }
15324 },
15325 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15326 .unlock = spi_disable_blockprotect,
15327 .write = spi_chip_write_256,
15328 .read = spi_chip_read,
15329 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15330 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015331
15332 {
15333 .vendor = "Winbond",
15334 .name = "W25Q16.W",
15335 .bustype = BUS_SPI,
15336 .manufacture_id = WINBOND_NEX_ID,
15337 .model_id = WINBOND_NEX_W25Q16_W,
15338 .total_size = 2048,
15339 .page_size = 256,
15340 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15341 /* QPI enable 0x38, disable 0xFF */
15342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15343 .tested = TEST_UNTESTED,
15344 .probe = probe_spi_rdid,
15345 .probe_timing = TIMING_ZERO,
15346 .block_erasers =
15347 {
15348 {
15349 .eraseblocks = { {4 * 1024, 512} },
15350 .block_erase = spi_block_erase_20,
15351 }, {
15352 .eraseblocks = { {32 * 1024, 64} },
15353 .block_erase = spi_block_erase_52,
15354 }, {
15355 .eraseblocks = { {64 * 1024, 32} },
15356 .block_erase = spi_block_erase_d8,
15357 }, {
15358 .eraseblocks = { {2 * 1024 * 1024, 1} },
15359 .block_erase = spi_block_erase_60,
15360 }, {
15361 .eraseblocks = { {2 * 1024 * 1024, 1} },
15362 .block_erase = spi_block_erase_c7,
15363 }
15364 },
15365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15366 .unlock = spi_disable_blockprotect,
15367 .write = spi_chip_write_256,
15368 .read = spi_chip_read,
15369 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15370 },
15371
15372 {
15373 .vendor = "Winbond",
15374 .name = "W25Q32.W",
15375 .bustype = BUS_SPI,
15376 .manufacture_id = WINBOND_NEX_ID,
15377 .model_id = WINBOND_NEX_W25Q32_W,
15378 .total_size = 4096,
15379 .page_size = 256,
15380 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15381 /* QPI enable 0x38, disable 0xFF */
15382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15383 .tested = TEST_OK_PREW,
15384 .probe = probe_spi_rdid,
15385 .probe_timing = TIMING_ZERO,
15386 .block_erasers =
15387 {
15388 {
15389 .eraseblocks = { {4 * 1024, 1024} },
15390 .block_erase = spi_block_erase_20,
15391 }, {
15392 .eraseblocks = { {32 * 1024, 128} },
15393 .block_erase = spi_block_erase_52,
15394 }, {
15395 .eraseblocks = { {64 * 1024, 64} },
15396 .block_erase = spi_block_erase_d8,
15397 }, {
15398 .eraseblocks = { {4 * 1024 * 1024, 1} },
15399 .block_erase = spi_block_erase_60,
15400 }, {
15401 .eraseblocks = { {4 * 1024 * 1024, 1} },
15402 .block_erase = spi_block_erase_c7,
15403 }
15404 },
15405 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15406 .unlock = spi_disable_blockprotect,
15407 .write = spi_chip_write_256,
15408 .read = spi_chip_read,
15409 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15410 },
15411
15412 {
15413 .vendor = "Winbond",
15414 .name = "W25Q64.W",
15415 .bustype = BUS_SPI,
15416 .manufacture_id = WINBOND_NEX_ID,
15417 .model_id = WINBOND_NEX_W25Q64_W,
15418 .total_size = 8192,
15419 .page_size = 256,
15420 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15421 /* QPI enable 0x38, disable 0xFF */
15422 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015423 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015424 .probe = probe_spi_rdid,
15425 .probe_timing = TIMING_ZERO,
15426 .block_erasers =
15427 {
15428 {
15429 .eraseblocks = { {4 * 1024, 2048} },
15430 .block_erase = spi_block_erase_20,
15431 }, {
15432 .eraseblocks = { {32 * 1024, 256} },
15433 .block_erase = spi_block_erase_52,
15434 }, {
15435 .eraseblocks = { {64 * 1024, 128} },
15436 .block_erase = spi_block_erase_d8,
15437 }, {
15438 .eraseblocks = { {8 * 1024 * 1024, 1} },
15439 .block_erase = spi_block_erase_60,
15440 }, {
15441 .eraseblocks = { {8 * 1024 * 1024, 1} },
15442 .block_erase = spi_block_erase_c7,
15443 }
15444 },
15445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15446 .unlock = spi_disable_blockprotect,
15447 .write = spi_chip_write_256,
15448 .read = spi_chip_read,
15449 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015450 },
15451
15452 {
15453 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020015454 .name = "W25Q128.W",
15455 .bustype = BUS_SPI,
15456 .manufacture_id = WINBOND_NEX_ID,
15457 .model_id = WINBOND_NEX_W25Q128_W,
15458 .total_size = 16384,
15459 .page_size = 256,
15460 /* supports SFDP */
15461 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15462 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080015463 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020015464 .probe = probe_spi_rdid,
15465 .probe_timing = TIMING_ZERO,
15466 .block_erasers =
15467 {
15468 {
15469 .eraseblocks = { {4 * 1024, 4096} },
15470 .block_erase = spi_block_erase_20,
15471 }, {
15472 .eraseblocks = { {32 * 1024, 512} },
15473 .block_erase = spi_block_erase_52,
15474 }, {
15475 .eraseblocks = { {64 * 1024, 256} },
15476 .block_erase = spi_block_erase_d8,
15477 }, {
15478 .eraseblocks = { {16 * 1024 * 1024, 1} },
15479 .block_erase = spi_block_erase_60,
15480 }, {
15481 .eraseblocks = { {16 * 1024 * 1024, 1} },
15482 .block_erase = spi_block_erase_c7,
15483 }
15484 },
15485 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15486 .unlock = spi_disable_blockprotect,
15487 .write = spi_chip_write_256,
15488 .read = spi_chip_read,
15489 .voltage = {1650, 1950},
15490 },
15491
15492 {
15493 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015494 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015495 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015496 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015497 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015498 .total_size = 128,
15499 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015500 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015501 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015502 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015503 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015504 .block_erasers =
15505 {
15506 {
15507 .eraseblocks = { {4 * 1024, 32} },
15508 .block_erase = spi_block_erase_20,
15509 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015510 .eraseblocks = { {64 * 1024, 2} },
15511 .block_erase = spi_block_erase_d8,
15512 }, {
15513 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015514 .block_erase = spi_block_erase_c7,
15515 }
15516 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015517 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015518 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015520 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015521 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015522 },
15523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015524 {
15525 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015526 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015527 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015528 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015529 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015530 .total_size = 256,
15531 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015532 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015533 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015534 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015535 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015536 .block_erasers =
15537 {
15538 {
15539 .eraseblocks = { {4 * 1024, 64} },
15540 .block_erase = spi_block_erase_20,
15541 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015542 .eraseblocks = { {64 * 1024, 4} },
15543 .block_erase = spi_block_erase_d8,
15544 }, {
15545 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015546 .block_erase = spi_block_erase_c7,
15547 }
15548 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015549 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015550 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015551 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015552 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015553 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015554 },
15555
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015556 {
15557 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015558 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015559 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015560 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015561 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015562 .total_size = 512,
15563 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015564 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015565 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015566 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015567 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015568 .block_erasers =
15569 {
15570 {
15571 .eraseblocks = { {4 * 1024, 128} },
15572 .block_erase = spi_block_erase_20,
15573 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015574 .eraseblocks = { {64 * 1024, 8} },
15575 .block_erase = spi_block_erase_d8,
15576 }, {
15577 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015578 .block_erase = spi_block_erase_c7,
15579 }
15580 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015581 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015583 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015584 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015585 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015586 },
15587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015588 {
15589 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015590 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015591 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015592 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015593 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015594 .total_size = 1024,
15595 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015596 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000015597 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015598 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015599 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015600 .block_erasers =
15601 {
15602 {
15603 .eraseblocks = { {4 * 1024, 256} },
15604 .block_erase = spi_block_erase_20,
15605 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015606 .eraseblocks = { {64 * 1024, 16} },
15607 .block_erase = spi_block_erase_d8,
15608 }, {
15609 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015610 .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,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015615 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015616 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015617 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015618 },
15619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015620 {
15621 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015622 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015623 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000015624 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015625 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000015626 .total_size = 2048,
15627 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015628 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000015629 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +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, 512} },
15636 .block_erase = spi_block_erase_20,
15637 }, {
15638 .eraseblocks = { {32 * 1024, 64} },
15639 .block_erase = spi_block_erase_52,
15640 }, {
15641 .eraseblocks = { {64 * 1024, 32} },
15642 .block_erase = spi_block_erase_d8,
15643 }, {
15644 .eraseblocks = { {2 * 1024 * 1024, 1} },
15645 .block_erase = spi_block_erase_60,
15646 }, {
15647 .eraseblocks = { {2 * 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,
Hector Martina721ae22009-07-11 19:39:11 +000015653 .write = spi_chip_write_256,
15654 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015655 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000015656 },
15657
15658 {
15659 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015660 .name = "W25X32",
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_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000015664 .total_size = 4096,
15665 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015666 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +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, 1024} },
15674 .block_erase = spi_block_erase_20,
15675 }, {
15676 .eraseblocks = { {32 * 1024, 128} },
15677 .block_erase = spi_block_erase_52,
15678 }, {
15679 .eraseblocks = { {64 * 1024, 64} },
15680 .block_erase = spi_block_erase_d8,
15681 }, {
15682 .eraseblocks = { {4 * 1024 * 1024, 1} },
15683 .block_erase = spi_block_erase_60,
15684 }, {
15685 .eraseblocks = { {4 * 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 {
15697 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015698 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015699 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015700 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015701 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000015702 .total_size = 8192,
15703 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015704 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015705 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015706 .probe = probe_spi_rdid,
15707 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015708 .block_erasers =
15709 {
15710 {
15711 .eraseblocks = { {4 * 1024, 2048} },
15712 .block_erase = spi_block_erase_20,
15713 }, {
15714 .eraseblocks = { {32 * 1024, 256} },
15715 .block_erase = spi_block_erase_52,
15716 }, {
15717 .eraseblocks = { {64 * 1024, 128} },
15718 .block_erase = spi_block_erase_d8,
15719 }, {
15720 .eraseblocks = { {8 * 1024 * 1024, 1} },
15721 .block_erase = spi_block_erase_60,
15722 }, {
15723 .eraseblocks = { {8 * 1024 * 1024, 1} },
15724 .block_erase = spi_block_erase_c7,
15725 }
15726 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015727 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015728 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015729 .write = spi_chip_write_256,
15730 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015731 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015732 },
15733
15734 {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080015735 .vendor = "Winbond",
15736 .name = "W25P80",
15737 .bustype = BUS_SPI,
15738 .manufacture_id = WINBOND_NEX_ID,
15739 .model_id = WINBOND_NEX_W25P80,
15740 .total_size = 1024,
15741 .page_size = 256,
15742 .feature_bits = FEATURE_WRSR_WREN,
15743 .tested = TEST_UNTESTED,
15744 .probe = probe_spi_rdid,
15745 .probe_timing = TIMING_ZERO,
15746 .block_erasers =
15747 {
15748 {
15749 .eraseblocks = { {64 * 1024, 16} },
15750 .block_erase = spi_block_erase_d8,
15751 }, {
15752 .eraseblocks = { {1024 * 1024, 1} },
15753 .block_erase = spi_block_erase_c7,
15754 }
15755 },
15756 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15757 .unlock = spi_disable_blockprotect,
15758 .write = spi_chip_write_256,
15759 .read = spi_chip_read, /* Fast read (0x0B) supported */
15760 .voltage = {2700, 3600},
15761 },
15762
15763 {
15764 .vendor = "Winbond",
15765 .name = "W25P16",
15766 .bustype = BUS_SPI,
15767 .manufacture_id = WINBOND_NEX_ID,
15768 .model_id = WINBOND_NEX_W25P16,
15769 .total_size = 2048,
15770 .page_size = 256,
15771 .feature_bits = FEATURE_WRSR_WREN,
15772 .tested = TEST_UNTESTED,
15773 .probe = probe_spi_rdid,
15774 .probe_timing = TIMING_ZERO,
15775 .block_erasers =
15776 {
15777 {
15778 .eraseblocks = { {64 * 1024, 32} },
15779 .block_erase = spi_block_erase_d8,
15780 }, {
15781 .eraseblocks = { {2048 * 1024, 1} },
15782 .block_erase = spi_block_erase_c7,
15783 }
15784 },
15785 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15786 .unlock = spi_disable_blockprotect,
15787 .write = spi_chip_write_256,
15788 .read = spi_chip_read, /* Fast read (0x0B) supported */
15789 .voltage = {2700, 3600},
15790 },
15791
15792 {
15793 .vendor = "Winbond",
15794 .name = "W25P32",
15795 .bustype = BUS_SPI,
15796 .manufacture_id = WINBOND_NEX_ID,
15797 .model_id = WINBOND_NEX_W25P32,
15798 .total_size = 4096,
15799 .page_size = 256,
15800 .feature_bits = FEATURE_WRSR_WREN,
15801 .tested = TEST_UNTESTED,
15802 .probe = probe_spi_rdid,
15803 .probe_timing = TIMING_ZERO,
15804 .block_erasers =
15805 {
15806 {
15807 .eraseblocks = { {64 * 1024, 64} },
15808 .block_erase = spi_block_erase_d8,
15809 }, {
15810 .eraseblocks = { {4096 * 1024, 1} },
15811 .block_erase = spi_block_erase_c7,
15812 }
15813 },
15814 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15815 .unlock = spi_disable_blockprotect,
15816 .write = spi_chip_write_256,
15817 .read = spi_chip_read, /* Fast read (0x0B) supported */
15818 .voltage = {2700, 3600},
15819 },
15820 {
Zheng Bao1db2b752009-11-26 11:05:01 +000015821 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000015822 .name = "W29C512A/W29EE512",
15823 .bustype = BUS_PARALLEL,
15824 .manufacture_id = WINBOND_ID,
15825 .model_id = WINBOND_W29C512A,
15826 .total_size = 64,
15827 .page_size = 128,
15828 .feature_bits = FEATURE_LONG_RESET,
15829 .tested = TEST_OK_PREW,
15830 .probe = probe_jedec,
15831 .probe_timing = 10,
15832 .block_erasers =
15833 {
15834 {
15835 .eraseblocks = { {64 * 1024, 1} },
15836 .block_erase = erase_chip_block_jedec,
15837 }
15838 },
15839 .write = write_jedec,
15840 .read = read_memmapped,
15841 .voltage = {4500, 5500},
15842 },
15843
15844 {
15845 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015846 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015847 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015848 .manufacture_id = WINBOND_ID,
15849 .model_id = WINBOND_W29C010,
15850 .total_size = 128,
15851 .page_size = 128,
15852 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015853 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015854 .probe = probe_w29ee011,
15855 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
15856 .block_erasers =
15857 {
15858 {
15859 .eraseblocks = { {128 * 1024, 1} },
15860 .block_erase = erase_chip_block_jedec,
15861 }
15862 },
15863 .write = write_jedec,
15864 .read = read_memmapped,
15865 },
15866
15867 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
15868 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015869 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015870 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015871 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015872 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015873 .total_size = 128,
15874 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015875 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000015876 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015877 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015878 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015879 .block_erasers =
15880 {
15881 {
15882 .eraseblocks = { {128 * 1024, 1} },
15883 .block_erase = erase_chip_block_jedec,
15884 }
15885 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015886 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015887 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015888 },
15889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015890 {
15891 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015892 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015893 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015894 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015895 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015896 .total_size = 256,
15897 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015898 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015899 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015900 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015901 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015902 .block_erasers =
15903 {
15904 {
15905 .eraseblocks = { {256 * 1024, 1} },
15906 .block_erase = erase_chip_block_jedec,
15907 }
15908 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015909 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015910 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015911 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015912 },
15913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015914 {
15915 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015916 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015917 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015918 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015919 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015920 .total_size = 512,
15921 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000015922 .feature_bits = FEATURE_LONG_RESET,
15923 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015924 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015925 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015926 .block_erasers =
15927 {
15928 {
15929 .eraseblocks = { {512 * 1024, 1} },
15930 .block_erase = erase_chip_block_jedec,
15931 }
15932 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015933 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015935 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015936 },
15937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015938 {
15939 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000015940 .name = "W29GL032CB",
15941 .bustype = BUS_PARALLEL,
15942 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15943 .model_id = WINBOND_W29GL032CB,
15944 .total_size = 4096,
15945 .page_size = 128 * 1024, /* actual page size is 16 */
15946 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15947 .tested = TEST_UNTESTED,
15948 .probe = probe_jedec_29gl,
15949 .probe_timing = TIMING_ZERO,
15950 .block_erasers =
15951 {
15952 {
15953 .eraseblocks = {
15954 {8 * 1024, 8},
15955 {64 * 1024, 63},
15956 },
15957 .block_erase = erase_sector_jedec,
15958 }, {
15959 .eraseblocks = { {4 * 1024 * 1024, 1} },
15960 .block_erase = erase_chip_block_jedec,
15961 },
15962 },
15963 .write = write_jedec_1,
15964 .read = read_memmapped,
15965 .voltage = {2700, 3600},
15966 },
15967
15968 {
15969 .vendor = "Winbond",
15970 .name = "W29GL032CT",
15971 .bustype = BUS_PARALLEL,
15972 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15973 .model_id = WINBOND_W29GL032CT,
15974 .total_size = 4096,
15975 .page_size = 128 * 1024, /* actual page size is 16 */
15976 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15977 .tested = TEST_UNTESTED,
15978 .probe = probe_jedec_29gl,
15979 .probe_timing = TIMING_ZERO,
15980 .block_erasers =
15981 {
15982 {
15983 .eraseblocks = {
15984 {64 * 1024, 63},
15985 {8 * 1024, 8},
15986 },
15987 .block_erase = erase_sector_jedec,
15988 }, {
15989 .eraseblocks = { {4 * 1024 * 1024, 1} },
15990 .block_erase = erase_chip_block_jedec,
15991 },
15992 },
15993 .write = write_jedec_1,
15994 .read = read_memmapped,
15995 .voltage = {2700, 3600},
15996 },
15997
15998 {
15999 .vendor = "Winbond",
16000 .name = "W29GL032CH/L",
16001 .bustype = BUS_PARALLEL,
16002 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16003 .model_id = WINBOND_W29GL032CHL,
16004 .total_size = 4096,
16005 .page_size = 128 * 1024, /* actual page size is 16 */
16006 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16007 .tested = TEST_UNTESTED,
16008 .probe = probe_jedec_29gl,
16009 .probe_timing = TIMING_ZERO,
16010 .block_erasers =
16011 {
16012 {
16013 .eraseblocks = { {64 * 1024, 64} },
16014 .block_erase = erase_sector_jedec,
16015 }, {
16016 .eraseblocks = { {4 * 1024 * 1024, 1} },
16017 .block_erase = erase_chip_block_jedec,
16018 },
16019 },
16020 .write = write_jedec_1,
16021 .read = read_memmapped,
16022 .voltage = {2700, 3600},
16023 },
16024
16025 {
16026 .vendor = "Winbond",
16027 .name = "W29GL064CB",
16028 .bustype = BUS_PARALLEL,
16029 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16030 .model_id = WINBOND_W29GL064CB,
16031 .total_size = 8192,
16032 .page_size = 128 * 1024, /* actual page size is 16 */
16033 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16034 .tested = TEST_UNTESTED,
16035 .probe = probe_jedec_29gl,
16036 .probe_timing = TIMING_ZERO,
16037 .block_erasers =
16038 {
16039 {
16040 .eraseblocks = {
16041 {8 * 1024, 8},
16042 {64 * 1024, 127},
16043 },
16044 .block_erase = erase_sector_jedec,
16045 }, {
16046 .eraseblocks = { {8 * 1024 * 1024, 1} },
16047 .block_erase = erase_chip_block_jedec,
16048 },
16049 },
16050 .write = write_jedec_1,
16051 .read = read_memmapped,
16052 .voltage = {2700, 3600},
16053 },
16054
16055 {
16056 .vendor = "Winbond",
16057 .name = "W29GL064CT",
16058 .bustype = BUS_PARALLEL,
16059 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16060 .model_id = WINBOND_W29GL064CT,
16061 .total_size = 8192,
16062 .page_size = 128 * 1024, /* actual page size is 16 */
16063 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16064 .tested = TEST_UNTESTED,
16065 .probe = probe_jedec_29gl,
16066 .probe_timing = TIMING_ZERO,
16067 .block_erasers =
16068 {
16069 {
16070 .eraseblocks = {
16071 {64 * 1024, 127},
16072 {8 * 1024, 8},
16073 },
16074 .block_erase = erase_sector_jedec,
16075 }, {
16076 .eraseblocks = { {8 * 1024 * 1024, 1} },
16077 .block_erase = erase_chip_block_jedec,
16078 },
16079 },
16080 .write = write_jedec_1,
16081 .read = read_memmapped,
16082 .voltage = {2700, 3600},
16083 },
16084
16085 {
16086 .vendor = "Winbond",
16087 .name = "W29GL064CH/L",
16088 .bustype = BUS_PARALLEL,
16089 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16090 .model_id = WINBOND_W29GL064CHL,
16091 .total_size = 8192,
16092 .page_size = 128 * 1024, /* actual page size is 16 */
16093 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16094 .tested = TEST_UNTESTED,
16095 .probe = probe_jedec_29gl,
16096 .probe_timing = TIMING_ZERO,
16097 .block_erasers =
16098 {
16099 {
16100 .eraseblocks = { {64 * 1024, 128} },
16101 .block_erase = erase_sector_jedec,
16102 }, {
16103 .eraseblocks = { {8 * 1024 * 1024, 1} },
16104 .block_erase = erase_chip_block_jedec,
16105 },
16106 },
16107 .write = write_jedec_1,
16108 .read = read_memmapped,
16109 .voltage = {2700, 3600},
16110 },
16111
16112 {
16113 .vendor = "Winbond",
16114 .name = "W29GL128C",
16115 .bustype = BUS_PARALLEL,
16116 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16117 .model_id = WINBOND_W29GL128CHL,
16118 .total_size = 16384,
16119 .page_size = 128 * 1024, /* actual page size is 16 */
16120 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16121 .tested = TEST_UNTESTED,
16122 .probe = probe_jedec_29gl,
16123 .probe_timing = TIMING_ZERO,
16124 .block_erasers =
16125 {
16126 {
16127 .eraseblocks = { {128 * 1024, 128} },
16128 .block_erase = erase_sector_jedec,
16129 }, {
16130 .eraseblocks = { {16 * 1024 * 1024, 1} },
16131 .block_erase = erase_chip_block_jedec,
16132 },
16133 },
16134 .write = write_jedec_1,
16135 .read = read_memmapped,
16136 .voltage = {2700, 3600},
16137 },
16138
16139 {
16140 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000016141 .name = "W39F010",
16142 .bustype = BUS_PARALLEL,
16143 .manufacture_id = WINBOND_ID,
16144 .model_id = WINBOND_W39F010,
16145 .total_size = 128,
16146 .page_size = 4 * 1024,
16147 .feature_bits = FEATURE_EITHER_RESET,
16148 .tested = TEST_OK_PREW,
16149 .probe = probe_jedec,
16150 .probe_timing = 10,
16151 .block_erasers =
16152 {
16153 {
16154 .eraseblocks = { {4 * 1024, 32} },
16155 .block_erase = erase_block_jedec,
16156 }, {
16157 .eraseblocks = { {128 * 1024, 1} },
16158 .block_erase = erase_chip_block_jedec,
16159 }
16160 },
16161 .printlock = printlock_w39f010,
16162 .write = write_jedec_1,
16163 .read = read_memmapped,
16164 .voltage = {4500, 5500},
16165 },
16166
16167 {
16168 .vendor = "Winbond",
16169 .name = "W39L010",
16170 .bustype = BUS_PARALLEL,
16171 .manufacture_id = WINBOND_ID,
16172 .model_id = WINBOND_W39L010,
16173 .total_size = 128,
16174 .page_size = 4 * 1024,
16175 .feature_bits = FEATURE_EITHER_RESET,
16176 .tested = TEST_UNTESTED,
16177 .probe = probe_jedec,
16178 .probe_timing = 10,
16179 .block_erasers =
16180 {
16181 {
16182 .eraseblocks = { {4 * 1024, 32} },
16183 .block_erase = erase_block_jedec,
16184 }, {
16185 .eraseblocks = { {128 * 1024, 1} },
16186 .block_erase = erase_chip_block_jedec,
16187 }
16188 },
16189 .printlock = printlock_w39l010,
16190 .write = write_jedec_1,
16191 .read = read_memmapped,
16192 .voltage = {3000, 3600},
16193 },
16194
16195 {
16196 .vendor = "Winbond",
16197 .name = "W39L020",
16198 .bustype = BUS_PARALLEL,
16199 .manufacture_id = WINBOND_ID,
16200 .model_id = WINBOND_W39L020,
16201 .total_size = 256,
16202 .page_size = 4 * 1024,
16203 .feature_bits = FEATURE_EITHER_RESET,
16204 .tested = TEST_UNTESTED,
16205 .probe = probe_jedec,
16206 .probe_timing = 10,
16207 .block_erasers =
16208 {
16209 {
16210 .eraseblocks = { {4 * 1024, 64} },
16211 .block_erase = erase_block_jedec,
16212 }, {
16213 .eraseblocks = { {64 * 1024, 4} },
16214 .block_erase = erase_sector_jedec,
16215 }, {
16216 .eraseblocks = { {256 * 1024, 1} },
16217 .block_erase = erase_chip_block_jedec,
16218 }
16219 },
16220 .printlock = printlock_w39l020,
16221 .write = write_jedec_1,
16222 .read = read_memmapped,
16223 .voltage = {3000, 3600},
16224 },
16225
16226 {
16227 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000016228 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016229 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000016230 .manufacture_id = WINBOND_ID,
16231 .model_id = WINBOND_W39L040,
16232 .total_size = 512,
16233 .page_size = 64 * 1024,
16234 .feature_bits = FEATURE_EITHER_RESET,
16235 .tested = TEST_OK_PR,
16236 .probe = probe_jedec,
16237 .probe_timing = 10,
16238 .block_erasers =
16239 {
16240 {
16241 .eraseblocks = { {4 * 1024, 128} },
16242 .block_erase = erase_block_jedec,
16243 }, {
16244 .eraseblocks = { {64 * 1024, 8} },
16245 .block_erase = erase_sector_jedec,
16246 }, {
16247 .eraseblocks = { {512 * 1024, 1} },
16248 .block_erase = erase_chip_block_jedec,
16249 }
16250 },
16251 .printlock = printlock_w39l040,
16252 .write = write_jedec_1,
16253 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016254 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000016255 },
16256
16257 {
16258 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016259 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016260 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016261 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016262 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016263 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016264 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016265 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016266 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016267 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000016268 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016269 .block_erasers =
16270 {
16271 {
16272 .eraseblocks = { {64 * 1024, 8} },
16273 .block_erase = erase_sector_jedec,
16274 }, {
16275 .eraseblocks = { {512 * 1024, 1} },
16276 .block_erase = erase_chip_block_jedec,
16277 }
16278 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016279 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000016280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016282 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016283 },
16284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016285 {
16286 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016287 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016288 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016289 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016290 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016291 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016293 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016294 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016295 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000016296 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016297 .block_erasers =
16298 {
16299 {
16300 .eraseblocks = { {64 * 1024, 8} },
16301 .block_erase = erase_sector_jedec,
16302 }, {
16303 .eraseblocks = { {512 * 1024, 1} },
16304 .block_erase = erase_chip_block_jedec,
16305 }
16306 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016307 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000016308 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016309 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016310 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016311 },
16312
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016313 {
16314 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016315 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016316 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016317 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016318 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016319 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016320 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016321 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016322 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000016323 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016324 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016325 .block_erasers =
16326 {
16327 {
16328 .eraseblocks = { {64 * 1024, 8} },
16329 .block_erase = erase_sector_jedec,
16330 }, {
16331 .eraseblocks = { {512 * 1024, 1} },
16332 .block_erase = erase_chip_block_jedec,
16333 }
16334 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000016335 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000016336 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016338 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016339 },
16340
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016341 {
16342 .vendor = "Winbond",
16343 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016344 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016345 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016346 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016347 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016348 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000016349 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016350 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016351 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016352 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016353 .block_erasers =
16354 {
16355 {
16356 .eraseblocks = { {4 * 1024, 128} },
16357 .block_erase = erase_block_jedec,
16358 }, {
16359 .eraseblocks = { {64 * 1024, 8} },
16360 .block_erase = erase_sector_jedec,
16361 }, {
16362 .eraseblocks = { {512 * 1024, 1} },
16363 .block_erase = erase_chip_block_jedec,
16364 }
16365 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016366 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016367 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016368 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016370 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016371 },
16372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016373 {
16374 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016375 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016376 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016377 .manufacture_id = WINBOND_ID,
16378 .model_id = WINBOND_W39V040B,
16379 .total_size = 512,
16380 .page_size = 64 * 1024,
16381 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000016382 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016383 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016384 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016385 .block_erasers =
16386 {
16387 {
16388 .eraseblocks = { {64 * 1024, 8} },
16389 .block_erase = erase_sector_jedec,
16390 }, {
16391 .eraseblocks = { {512 * 1024, 1} },
16392 .block_erase = erase_chip_block_jedec,
16393 }
16394 },
16395 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016396 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016397 .write = write_jedec_1,
16398 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016399 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016400 },
16401
16402 {
16403 .vendor = "Winbond",
16404 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016405 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016406 .manufacture_id = WINBOND_ID,
16407 .model_id = WINBOND_W39V040C,
16408 .total_size = 512,
16409 .page_size = 64 * 1024,
16410 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000016411 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016412 .probe = probe_jedec,
16413 .probe_timing = 10,
16414 .block_erasers =
16415 {
16416 {
16417 .eraseblocks = { {64 * 1024, 8} },
16418 .block_erase = erase_sector_jedec,
16419 }, {
16420 .eraseblocks = { {512 * 1024, 1} },
16421 .block_erase = erase_chip_block_jedec,
16422 }
16423 },
16424 .printlock = printlock_w39v040fc,
16425 .write = write_jedec_1,
16426 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016427 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016428 },
16429
16430 {
16431 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016432 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016433 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016434 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016435 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016436 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016437 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016438 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000016439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016440 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000016441 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016442 .block_erasers =
16443 {
16444 {
16445 .eraseblocks = { {64 * 1024, 16} },
16446 .block_erase = erase_sector_jedec,
16447 }, {
16448 .eraseblocks = { {1024 * 1024, 1} },
16449 .block_erase = erase_chip_block_jedec,
16450 }
16451 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016452 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000016453 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016454 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016455 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016456 },
16457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016458 {
16459 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016460 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016461 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016462 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016463 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016464 .total_size = 256,
16465 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016466 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016467 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016468 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016469 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016470 .block_erasers =
16471 {
16472 {
16473 .eraseblocks = {
16474 {128 * 1024, 1},
16475 {96 * 1024, 1},
16476 {8 * 1024, 2},
16477 {16 * 1024, 1},
16478 },
16479 .block_erase = erase_sector_jedec,
16480 }, {
16481 .eraseblocks = { {256 * 1024, 1} },
16482 .block_erase = erase_chip_block_jedec,
16483 }
16484 },
Sean Nelson35727f72010-01-28 23:55:12 +000016485 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016486 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016487 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016488 },
16489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016490 {
16491 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016492 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016493 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016494 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016495 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016496 .total_size = 256,
16497 .page_size = 128,
16498 .feature_bits = FEATURE_EITHER_RESET,
16499 .tested = TEST_OK_PROBE,
16500 .probe = probe_jedec,
16501 .probe_timing = 10,
16502 .block_erasers =
16503 {
16504 {
16505 .eraseblocks = { {256 * 1024, 1} },
16506 .block_erase = erase_chip_block_jedec,
16507 }
16508 },
16509 .write = write_jedec_1,
16510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016511 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016512 },
16513
16514 {
16515 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016516 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016517 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016518 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016519 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016520 .total_size = 256,
16521 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016522 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016524 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016525 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016526 .block_erasers =
16527 {
16528 {
16529 .eraseblocks = {
16530 {64 * 1024, 3},
16531 {32 * 1024, 1},
16532 {8 * 1024, 2},
16533 {16 * 1024, 1},
16534 },
16535 .block_erase = erase_sector_jedec,
16536 }, {
16537 .eraseblocks = { {256 * 1024, 1} },
16538 .block_erase = erase_chip_block_jedec,
16539 }
16540 },
Sean Nelson35727f72010-01-28 23:55:12 +000016541 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016542 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016543 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016544 },
16545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016546 {
16547 .vendor = "Winbond",
16548 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016549 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016550 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016551 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016552 .total_size = 256,
16553 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016554 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000016555 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016556 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016557 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016558 .block_erasers =
16559 {
16560 {
16561 .eraseblocks = {
16562 {64 * 1024, 3},
16563 {32 * 1024, 1},
16564 {8 * 1024, 2},
16565 {16 * 1024, 1},
16566 },
16567 .block_erase = erase_sector_jedec,
16568 }, {
16569 .eraseblocks = { {256 * 1024, 1} },
16570 .block_erase = erase_chip_block_jedec,
16571 }
16572 },
Sean Nelson35727f72010-01-28 23:55:12 +000016573 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016574 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016575 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016576 },
16577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016578 {
16579 .vendor = "Winbond",
16580 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016581 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016582 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016583 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016584 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016585 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016586 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016587 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016588 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016589 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016590 .block_erasers =
16591 {
16592 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016593 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016594 .block_erase = erase_sector_jedec,
16595 }, {
16596 .eraseblocks = { {1024 * 1024, 1} },
16597 .block_erase = erase_chip_block_jedec,
16598 }
16599 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016600 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016601 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016602 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016603 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016604 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016605 },
16606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016607 {
16608 .vendor = "Winbond",
16609 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016610 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016611 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016612 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016613 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016614 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016615 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016616 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016617 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016618 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016619 .block_erasers =
16620 {
16621 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016622 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016623 .block_erase = erase_sector_jedec,
16624 }, {
16625 .eraseblocks = { {512 * 1024, 1} },
16626 .block_erase = erase_chip_block_jedec,
16627 }
16628 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016629 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000016630 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016631 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016632 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016633 },
nybashcbb46e22018-02-11 17:53:49 -080016634
16635 {
16636 .vendor = "Zetta Device",
David Hendricksa72d5a92018-02-11 17:58:44 -080016637 .name = "ZD25D20",
16638 .bustype = BUS_SPI,
16639 .manufacture_id = ZETTADEVICE_ID,
16640 .model_id = ZETTADEVICE_ZD25D20,
16641 .total_size = 256,
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, 64} },
16651 .block_erase = spi_block_erase_20,
16652 }, {
16653 .eraseblocks = { {32 * 1024, 8} },
16654 .block_erase = spi_block_erase_52,
16655 }, {
16656 .eraseblocks = { {64 * 1024, 4} },
16657 .block_erase = spi_block_erase_d8,
16658 }, {
16659 .eraseblocks = { {256 * 1024, 1} },
16660 .block_erase = spi_block_erase_60,
16661 }, {
16662 .eraseblocks = { {256 * 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
16673 {
16674 .vendor = "Zetta Device",
nybashcbb46e22018-02-11 17:53:49 -080016675 .name = "ZD25D40",
16676 .bustype = BUS_SPI,
16677 .manufacture_id = ZETTADEVICE_ID,
16678 .model_id = ZETTADEVICE_ZD25D40,
16679 .total_size = 512,
16680 .page_size = 256,
16681 .feature_bits = FEATURE_WRSR_WREN,
16682 .tested = TEST_UNTESTED,
16683 .probe = probe_spi_rdid,
16684 .probe_timing = TIMING_ZERO,
16685 .block_erasers =
16686 {
16687 {
16688 .eraseblocks = { {4 * 1024, 128} },
16689 .block_erase = spi_block_erase_20,
16690 }, {
16691 .eraseblocks = { {32 * 1024, 16} },
16692 .block_erase = spi_block_erase_52,
16693 }, {
16694 .eraseblocks = { {64 * 1024, 8} },
16695 .block_erase = spi_block_erase_d8,
16696 }, {
16697 .eraseblocks = { {512 * 1024, 1} },
16698 .block_erase = spi_block_erase_60,
16699 }, {
16700 .eraseblocks = { {512 * 1024, 1} },
16701 .block_erase = spi_block_erase_c7,
16702 }
16703 },
16704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16705 .unlock = spi_disable_blockprotect,
16706 .write = spi_chip_write_256,
16707 .read = spi_chip_read,
16708 .voltage = {2700, 3600},
16709 },
16710
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016711 {
16712 .vendor = "Unknown",
16713 .name = "SFDP-capable chip",
16714 .bustype = BUS_SPI,
16715 .manufacture_id = GENERIC_MANUF_ID,
16716 .model_id = SFDP_DEVICE_ID,
16717 /* We present our own "report this" text hence we do not
16718 * want the default "This flash part has status UNTESTED..."
16719 * text to be printed. */
16720 .tested = TEST_OK_PREW,
16721 .probe = probe_spi_sfdp,
16722 .unlock = spi_disable_blockprotect, /* is this safe? */
16723 .read = spi_chip_read,
16724 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000016725 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016726 /* Everything below will be set by the probing function. */
16727 .write = NULL,
16728 .total_size = 0,
16729 .page_size = 0,
16730 .feature_bits = 0,
16731 .block_erasers = {},
16732 },
FENG yu ningff692fb2008-12-08 18:15:10 +000016733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016734 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000016735 .vendor = "Programmer",
16736 .name = "Opaque flash chip",
16737 .bustype = BUS_PROG,
16738 .manufacture_id = PROGMANUF_ID,
16739 .model_id = PROGDEV_ID,
16740 .total_size = 0,
16741 .page_size = 256,
16742 /* probe is assumed to work, rest will be filled in by probe */
16743 .tested = TEST_OK_PROBE,
16744 .probe = probe_opaque,
16745 /* eraseblock sizes will be set by the probing function */
16746 .block_erasers =
16747 {
16748 {
16749 .block_erase = erase_opaque,
16750 }
16751 },
16752 .write = write_opaque,
16753 .read = read_opaque,
16754 },
16755
16756 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016757 .vendor = "AMIC",
16758 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016759 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016760 .manufacture_id = AMIC_ID,
16761 .model_id = GENERIC_DEVICE_ID,
16762 .total_size = 0,
16763 .page_size = 256,
16764 .tested = TEST_BAD_PREW,
16765 .probe = probe_spi_rdid4,
16766 .probe_timing = TIMING_ZERO,
16767 .write = NULL,
16768 .read = NULL,
16769 },
16770
16771 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016772 .vendor = "Atmel",
16773 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016774 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016775 .manufacture_id = ATMEL_ID,
16776 .model_id = GENERIC_DEVICE_ID,
16777 .total_size = 0,
16778 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016779 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016780 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016781 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016782 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016783 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016784 },
16785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016786 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000016787 .vendor = "Eon",
16788 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016789 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016790 .manufacture_id = EON_ID_NOPREFIX,
16791 .model_id = GENERIC_DEVICE_ID,
16792 .total_size = 0,
16793 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016794 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016795 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016796 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016797 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016798 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016799 },
16800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016801 {
16802 .vendor = "Macronix",
16803 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016804 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000016805 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016806 .model_id = GENERIC_DEVICE_ID,
16807 .total_size = 0,
16808 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016809 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016810 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016811 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016812 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016813 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016814 },
16815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016816 {
16817 .vendor = "PMC",
16818 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016819 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016820 .manufacture_id = PMC_ID,
16821 .model_id = GENERIC_DEVICE_ID,
16822 .total_size = 0,
16823 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016824 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016825 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016826 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016827 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016828 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016829 },
16830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016831 {
16832 .vendor = "SST",
16833 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016834 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016835 .manufacture_id = SST_ID,
16836 .model_id = GENERIC_DEVICE_ID,
16837 .total_size = 0,
16838 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016839 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016840 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016841 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016842 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016843 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016844 },
16845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016846 {
16847 .vendor = "ST",
16848 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016850 .manufacture_id = ST_ID,
16851 .model_id = GENERIC_DEVICE_ID,
16852 .total_size = 0,
16853 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016854 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016855 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016856 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016857 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016858 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016859 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000016860
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016861 {
Sean Nelson118e1d62009-11-24 02:08:11 +000016862 .vendor = "Sanyo",
16863 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016864 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000016865 .manufacture_id = SANYO_ID,
16866 .model_id = GENERIC_DEVICE_ID,
16867 .total_size = 0,
16868 .page_size = 256,
16869 .tested = TEST_BAD_PREW,
16870 .probe = probe_spi_rdid,
16871 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000016872 .write = NULL,
16873 .read = NULL,
16874 },
16875
16876 {
Stefan Taunereb582572012-09-21 12:52:50 +000016877 .vendor = "Winbond",
16878 .name = "unknown Winbond (ex Nexcom) SPI chip",
16879 .bustype = BUS_SPI,
16880 .manufacture_id = WINBOND_NEX_ID,
16881 .model_id = GENERIC_DEVICE_ID,
16882 .total_size = 0,
16883 .page_size = 256,
16884 .tested = TEST_BAD_PREW,
16885 .probe = probe_spi_rdid,
16886 .probe_timing = TIMING_ZERO,
16887 .write = NULL,
16888 .read = NULL,
16889 },
16890
16891 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016892 .vendor = "Generic",
16893 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016894 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016895 .manufacture_id = GENERIC_MANUF_ID,
16896 .model_id = GENERIC_DEVICE_ID,
16897 .total_size = 0,
16898 .page_size = 256,
16899 .tested = TEST_BAD_PREW,
16900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016901 .write = NULL,
16902 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000016903
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016904 {
16905 .vendor = "Generic",
16906 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016907 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016908 .manufacture_id = GENERIC_MANUF_ID,
16909 .model_id = GENERIC_DEVICE_ID,
16910 .total_size = 0,
16911 .page_size = 256,
16912 .tested = TEST_BAD_PREW,
16913 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016914 .write = NULL,
16915 },
16916
Stefan Tauner96658be2014-05-26 22:05:31 +000016917 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000016918};
Stefan Tauner96658be2014-05-26 22:05:31 +000016919
16920const unsigned int flashchips_size = ARRAY_SIZE(flashchips);